/* معاني كلمات القرآن الكريم — Landing index V1
   Scoped to .words-page so the shared V15 header/footer stay untouched. */
body.words-index-body{margin:0;background:var(--eq-theme-bg,#f8faf7)}
.words-page,.words-page *{box-sizing:border-box}
.words-page{--ink:#173f35;--ink-2:#275447;--muted:#607269;--gold:#a8843f;--gold-soft:#ead9aa;--line:#dce5de;--paper:#fff;--soft:#f5f8f3;--soft-2:#eef4ee;--shadow:0 18px 46px rgba(23,63,53,.08);width:100%;max-width:1160px;margin:0 auto;padding:22px 24px 60px;color:var(--ink);font-family:inherit;line-height:1.8}
.words-page [hidden]{display:none!important}
.words-page a{text-decoration:none}
.words-page :is(a,button,input):focus-visible{outline:3px solid var(--gold);outline-offset:4px}
.words-breadcrumb{display:flex;flex-wrap:wrap;gap:9px;align-items:center;font-size:13px;margin:0 0 16px;color:var(--muted)}
.words-breadcrumb a{color:var(--ink)}
.words-breadcrumb .separator{color:var(--gold)}

/* Hero */
.words-hero{position:relative;isolation:isolate;overflow:hidden;display:grid;grid-template-columns:minmax(0,1.55fr) minmax(190px,.45fr);gap:28px;align-items:center;padding:34px 36px;border:1px solid #a88948;border-radius:24px;background:linear-gradient(135deg,#10392f 0%,#17483a 58%,#1c5141 100%);color:#fff;box-shadow:0 22px 60px rgba(15,55,45,.16)}
.words-hero:before,.words-hero:after{content:"";position:absolute;z-index:-1;pointer-events:none}
.words-hero:before{inset:0;opacity:.11;background-image:linear-gradient(30deg,#e4c77f 12%,transparent 12.5%,transparent 87%,#e4c77f 87.5%,#e4c77f),linear-gradient(150deg,#e4c77f 12%,transparent 12.5%,transparent 87%,#e4c77f 87.5%,#e4c77f),linear-gradient(30deg,#e4c77f 12%,transparent 12.5%,transparent 87%,#e4c77f 87.5%,#e4c77f),linear-gradient(150deg,#e4c77f 12%,transparent 12.5%,transparent 87%,#e4c77f 87.5%,#e4c77f);background-size:70px 122px;background-position:0 0,0 0,35px 61px,35px 61px;mask-image:linear-gradient(to left,#000,transparent 72%)}
.words-hero:after{width:360px;height:360px;border:1px solid rgba(230,205,139,.18);border-radius:50%;inset:auto -145px -205px auto;box-shadow:0 0 0 38px rgba(230,205,139,.035),0 0 0 78px rgba(230,205,139,.025)}
.words-hero-copy{min-width:0}
.words-eyebrow,.words-kicker{display:block;color:#ddc27f;font-size:13px;font-weight:700;letter-spacing:.1px}
.words-eyebrow{margin-bottom:8px}
.words-page .words-hero h1{font-family:inherit;font-size:clamp(29px,4.2vw,43px);line-height:1.45;margin:0 0 8px;color:#fff;background:none;border:0}
.words-page .words-hero p{max-width:760px;margin:0;color:#e3eee8;font-size:15px;line-height:2}
.words-hero-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:20px}
.words-cta{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:46px;padding:8px 16px;border-radius:12px;font-weight:700;font-size:14px;transition:transform .16s ease,border-color .16s ease,background .16s ease}
.words-cta:hover{transform:translateY(-2px)}
.words-cta-primary{background:#e0c57e;color:#12382f;border:1px solid #edd89f}
.words-cta-secondary,.words-cta-resume{color:#fff;border:1px solid rgba(231,211,154,.45);background:rgba(255,255,255,.07)}
.words-cta-secondary:hover,.words-cta-resume:hover{background:rgba(255,255,255,.13);border-color:#e2cb8e}
.words-cta-resume:before{content:'↺';font:700 18px/1 system-ui}
.words-hero-meta{display:flex;flex-wrap:wrap;align-items:center;gap:9px;margin-top:18px;color:#dce9e2;font-size:12px}
.words-hero-meta span{display:inline-flex;align-items:center;gap:5px;padding:4px 10px;border:1px solid rgba(234,217,170,.2);border-radius:999px;background:rgba(255,255,255,.055)}
.words-hero-meta strong{color:#f1d993;font-weight:800}
.words-hero-mark{position:relative;display:grid;place-content:center;justify-items:center;min-height:180px;border:1px solid rgba(226,203,142,.32);border-radius:50%;aspect-ratio:1;max-width:190px;margin-inline:auto;color:#f1d993;background:radial-gradient(circle,rgba(240,215,149,.11),rgba(255,255,255,.015) 64%,transparent 65%)}
.words-hero-mark strong{font-size:30px;line-height:1.2;font-weight:800}
.words-hero-mark-small{font-size:15px;color:#fff;margin-bottom:2px}
.words-hero-mark-ring{position:absolute;inset:12px;border:1px dashed rgba(241,217,147,.35);border-radius:50%}

/* Discovery and search */
.words-discovery{margin-top:18px;padding:20px;border:1px solid var(--line);border-radius:20px;background:var(--paper);box-shadow:0 12px 34px rgba(23,63,53,.055)}
.words-discovery-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:14px}
.words-discovery-head h2,.words-section-heading h2,.words-portal h2{margin:2px 0 0;color:var(--ink);font-size:clamp(20px,2.5vw,26px);line-height:1.55}
.words-kicker{color:var(--gold);font-size:12px}
.words-related-inline{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:7px}
.words-related-inline a{display:inline-flex;align-items:center;min-height:38px;padding:4px 11px;border:1px solid var(--line);border-radius:10px;color:var(--ink);background:var(--soft);font-size:12px}
.words-related-inline a:hover{border-color:#b99b55;background:#f6f1e5}
.words-search-box{display:grid;grid-template-columns:minmax(170px,.32fr) minmax(0,1fr);align-items:center;gap:16px;padding:14px;border:1px solid #dfdfcf;border-radius:15px;background:#f8faf6}
.words-search-copy{min-width:0}
.words-search-label{display:block;font-size:17px;font-weight:800;line-height:1.5}
.words-search-hint{font-size:12px;color:var(--muted);margin:2px 0 0;line-height:1.7}
.words-search-wrap{position:relative;display:flex;align-items:center;gap:7px;min-width:0}
.words-search-icon{position:absolute;inset-inline-start:14px;top:50%;transform:translateY(-50%);font:700 22px/1 system-ui;color:#7b8d82;pointer-events:none}
.words-search{min-width:0;width:100%;height:50px;border:1px solid #b8c7bd;border-radius:11px;background:#fff;color:var(--ink);font:inherit;font-size:15px;padding:9px 44px 9px 14px;outline-offset:3px}
.words-search::placeholder{color:#728279}
.words-clear{flex:0 0 auto;border:1px solid #d3dcd4;border-radius:10px;min-height:46px;padding:7px 13px;background:#fff;color:var(--ink);font:inherit;font-size:13px;cursor:pointer}
.words-clear:hover{border-color:#a88a48;background:#f8f3e7}
.words-featured{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin-top:11px}
.words-featured-label{font-size:12px;font-weight:700;color:var(--muted);margin-inline-end:2px}
.words-featured a{display:inline-flex;align-items:center;min-height:34px;padding:3px 10px;border-radius:999px;background:#f3f6f1;border:1px solid #e0e7df;color:var(--ink);font-size:12px}
.words-featured a:hover{border-color:#b0914e;background:#f8f3e7}

/* Index */
.words-index-section{scroll-margin-top:100px;margin-top:28px}
.words-index-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin:0 0 12px}
.words-page .words-section-title{font-weight:800;line-height:1.55;font-family:inherit;font-size:clamp(21px,2.7vw,27px);margin:2px 0 0;color:var(--ink);background:none;border:0}
.words-count{font-size:12px;color:var(--muted);flex-shrink:0;padding:5px 10px;border:1px solid var(--line);border-radius:999px;background:var(--soft)}
.words-view{display:flex;justify-content:flex-end;gap:6px;margin:0 0 10px}
.words-view button{font:inherit;font-size:12px;min-height:38px;border:1px solid var(--line);border-radius:9px;background:transparent;color:var(--ink);padding:4px 11px;cursor:pointer}
.words-view button[aria-pressed="true"]{background:var(--ink);border-color:var(--ink);color:#fff}
.words-surah-list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;list-style:none;margin:0;padding:0}
.words-surah-item{margin:0;padding:0;min-width:0}
.words-surah-link{position:relative;display:flex;align-items:center;gap:11px;min-height:77px;padding:12px 13px;border:1px solid var(--line);border-top:2px solid #b5944d;border-radius:13px;background:#fff;color:var(--ink);box-shadow:0 6px 18px rgba(23,63,53,.025);transition:border-color .15s ease,background .15s ease,transform .15s ease,box-shadow .15s ease}
.words-surah-link:hover{background:#f1f6ef;border-color:#9f8242;transform:translateY(-2px);box-shadow:0 10px 24px rgba(23,63,53,.07)}
.words-surah-number{display:grid;place-items:center;flex-shrink:0;width:39px;height:39px;border:1px solid #d7dfce;border-radius:11px 4px;background:#f4f5ec;color:#566b49;font:700 11px/1.2 system-ui;direction:ltr}
.words-surah-name{flex:1;min-width:0;color:var(--ink);font-size:17px;font-weight:700;line-height:1.55;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.words-surah-arrow{color:var(--gold);font:23px/1 system-ui;transition:transform .15s ease}
.words-surah-link:hover .words-surah-arrow{transform:translateX(-2px)}
.words-surah-list.is-list{grid-template-columns:repeat(2,minmax(0,1fr))}
.words-surah-list.is-list .words-surah-link{min-height:64px}
.words-no-results{text-align:center;padding:28px 16px;border:1px dashed #b6c7bd;border-radius:13px;color:var(--muted);background:#fff}

/* Guide */
.words-guide{margin-top:34px;padding:26px;border:1px solid #ded9c8;border-radius:20px;background:linear-gradient(180deg,#f8f6ee,#fbfcf8)}
.words-section-heading{max-width:780px;margin-bottom:18px}
.words-section-heading p{margin:7px 0 0;color:var(--muted);font-size:14px;line-height:1.9}
.words-guide-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}
.words-guide-card{display:flex;align-items:flex-start;gap:12px;padding:17px;border:1px solid #e4e3d8;border-radius:14px;background:#fff}
.words-guide-num{display:grid;place-items:center;flex:0 0 37px;width:37px;height:37px;border-radius:11px;background:#173f35;color:#efd896;font-weight:800;font-size:14px}
.words-guide-card h3{margin:0 0 4px;color:var(--ink);font-size:16px}
.words-guide-card p{margin:0;color:var(--muted);font-size:12.5px;line-height:1.8}

/* Content portal */
.words-portal{margin-top:26px}
.words-section-heading-inline{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;max-width:none}
.words-section-heading-inline>p{max-width:450px;text-align:start}
.words-portal-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}
.words-portal-card{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;min-height:104px;padding:16px;border:1px solid var(--line);border-radius:15px;background:#fff;color:var(--ink);transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease}
.words-portal-card:hover{transform:translateY(-2px);border-color:#af914b;box-shadow:0 12px 28px rgba(23,63,53,.07)}
.words-portal-icon{display:grid;place-items:center;width:44px;height:44px;border-radius:13px;background:#173f35;color:#e9ce88;font-size:21px}
.words-portal-card strong{display:block;font-size:15px;margin-bottom:3px}
.words-portal-card small{display:block;color:var(--muted);font-size:11.5px;line-height:1.65}
.words-portal-arrow{color:var(--gold);font:24px/1 system-ui}

.words-info{margin-top:24px;padding:20px 22px;border:1px solid #e1ddcc;border-inline-start:4px solid var(--gold);border-radius:13px;background:#f6f4eb}
.words-page .words-info h2{margin:0 0 6px;font-size:18px;color:var(--ink);background:none}
.words-info p{margin:0;font-size:13.5px;color:#59685e;line-height:2}

/* Dark mode */
html[data-theme="dark"] body.words-index-body{background:#081b14;color:#e5f0e9}
html[data-theme="dark"] .words-page{--ink:#e7f1eb;--ink-2:#cfe4d8;--muted:#b6c7bd;--gold:#dec27e;--gold-soft:#8b7648;--line:#39574b;--paper:#10271f;--soft:#142e25;--soft-2:#173328;color:var(--ink)}
html[data-theme="dark"] .words-discovery,html[data-theme="dark"] .words-surah-link,html[data-theme="dark"] .words-guide-card,html[data-theme="dark"] .words-portal-card,html[data-theme="dark"] .words-no-results{background:#10271f;color:var(--ink);border-color:#3c594e}
html[data-theme="dark"] .words-search-box{background:#0c211a;border-color:#425c52}
html[data-theme="dark"] .words-search{background:#0b2019;color:var(--ink);border-color:#50675e}
html[data-theme="dark"] .words-search::placeholder,html[data-theme="dark"] .words-search-hint,html[data-theme="dark"] .words-guide-card p,html[data-theme="dark"] .words-portal-card small,html[data-theme="dark"] .words-section-heading p,html[data-theme="dark"] .words-info p{color:#b6c7bd}
html[data-theme="dark"] .words-clear{background:#173328;color:var(--ink);border-color:#456057}
html[data-theme="dark"] .words-featured a,html[data-theme="dark"] .words-related-inline a,html[data-theme="dark"] .words-count{background:#173328;color:var(--ink);border-color:#405d52}
html[data-theme="dark"] .words-surah-number{background:#293d2a;color:#ead18f;border-color:#736d47}
html[data-theme="dark"] .words-surah-link:hover{background:#18372b}
html[data-theme="dark"] .words-guide{background:linear-gradient(180deg,#10271f,#0c211a);border-color:#4a5a45}
html[data-theme="dark"] .words-info{background:#162d24;border-color:#53604b;border-inline-start-color:var(--gold)}
html[data-theme="dark"] .words-view button[aria-pressed="true"]{background:#dec27e;border-color:#dec27e;color:#10271f}

@media(min-width:1400px){.words-page{margin-top:14px}}
@media(max-width:980px){.words-hero{grid-template-columns:1fr auto}.words-hero-mark{max-width:155px;min-height:155px}.words-surah-list{grid-template-columns:repeat(3,minmax(0,1fr))}.words-guide-grid,.words-portal-grid{grid-template-columns:1fr 1fr}.words-guide-card:last-child,.words-portal-card:last-child{grid-column:1/-1}.words-section-heading-inline{align-items:flex-start;flex-direction:column;gap:4px}}
@media(max-width:760px){.words-page{padding:18px 14px 42px}.words-hero{grid-template-columns:1fr;padding:25px 22px;border-radius:19px}.words-hero-mark{display:none}.words-page .words-hero h1{font-size:28px}.words-page .words-hero p{font-size:13.5px}.words-hero-actions{display:grid;grid-template-columns:1fr 1fr}.words-cta-resume{grid-column:1/-1}.words-discovery{padding:16px}.words-discovery-head{align-items:flex-start;flex-direction:column;gap:10px}.words-related-inline{justify-content:flex-start}.words-search-box{grid-template-columns:1fr;gap:8px}.words-featured{overflow-x:auto;flex-wrap:nowrap;padding-bottom:4px;scrollbar-width:thin}.words-featured a,.words-featured-label{flex:0 0 auto}.words-surah-list{grid-template-columns:repeat(2,minmax(0,1fr))}.words-guide-grid,.words-portal-grid{grid-template-columns:1fr}.words-guide-card:last-child,.words-portal-card:last-child{grid-column:auto}.words-guide{padding:20px}.words-section-heading-inline>p{max-width:none}}
@media(max-width:460px){.words-hero{padding:21px 18px}.words-page .words-hero h1{font-size:25px}.words-hero-actions{grid-template-columns:1fr}.words-cta-resume{grid-column:auto}.words-hero-meta{gap:6px}.words-hero-meta span{padding:3px 8px}.words-discovery{padding:14px}.words-related-inline{display:grid;grid-template-columns:repeat(3,1fr);width:100%}.words-related-inline a{justify-content:center;text-align:center;padding-inline:6px}.words-search-wrap{gap:6px}.words-search{height:48px;font-size:14px}.words-clear{min-height:44px;padding-inline:10px}.words-index-heading{align-items:flex-start}.words-count{margin-top:4px}.words-view{justify-content:flex-start}.words-surah-list{gap:8px}.words-surah-link{min-height:70px;padding:10px 9px;gap:8px}.words-surah-number{width:34px;height:36px;font-size:10px}.words-surah-name{font-size:15px}.words-surah-arrow{display:none}.words-surah-list.is-list{grid-template-columns:1fr}.words-guide{padding:17px}.words-guide-card{padding:14px}.words-portal-card{min-height:94px;padding:13px}.words-info{padding:17px}}
@media(max-width:340px){.words-surah-list{grid-template-columns:1fr}.words-related-inline{grid-template-columns:1fr}.words-hero-meta span{width:100%;justify-content:center}}
@media(prefers-reduced-motion:reduce){.words-cta,.words-surah-link,.words-portal-card,.words-surah-arrow{transition:none}.words-cta:hover,.words-surah-link:hover,.words-portal-card:hover{transform:none}}
