:root {
  --bg: #f3eee4;
  --surface: #fbf8f1;
  --surface-2: #eee6d7;
  --ink: #17201d;
  --muted: #6d716c;
  --line: #d8cdbb;
  --green-950: #071513;
  --green-900: #0b211d;
  --green-850: #102a24;
  --green-800: #17362d;
  --green-700: #23483c;
  --gold: #b99352;
  --gold-2: #d2b276;
  --gold-soft: #ead9b7;
  --danger: #803c35;
  --shadow: 0 18px 55px rgba(20, 30, 25, 0.09);
  --shadow-sm: 0 8px 24px rgba(20, 30, 25, 0.07);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --container: 1240px;
  --reading: 760px;
  --header-h: 76px;
  --font: "IBM Plex Sans Arabic", "Noto Sans Arabic", Tahoma, Arial, sans-serif;
}

html[data-theme="dark"] {
  --bg: #0e1311;
  --surface: #151c19;
  --surface-2: #1b2521;
  --ink: #ece5d8;
  --muted: #aaa99f;
  --line: #2b3731;
  --green-950: #07100e;
  --green-900: #0b1714;
  --green-850: #0f1e1a;
  --green-800: #163028;
  --gold-soft: #3b3325;
  --shadow: 0 18px 55px rgba(0, 0, 0, 0.22);
  --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.75;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
::selection { background: var(--gold-soft); color: var(--ink); }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.screen-reader-text:focus,
.skip-link:focus {
  clip: auto !important; width: auto; height: auto; margin: 8px; padding: 10px 14px;
  background: var(--surface); color: var(--ink); z-index: 99999; border-radius: 8px;
}
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.narrow-content { width: min(calc(100% - 40px), var(--reading)); margin-inline: auto; }
.site-shell { min-height: 100vh; overflow: clip; }
.icon { display: inline-flex; width: 20px; height: 20px; flex: 0 0 20px; }
.icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Header */
.site-header {
  height: var(--header-h);
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(7, 21, 19, 0.98);
  border-bottom: 1px solid rgba(185,147,82,.32);
  color: #f4ede0;
}
.site-header__inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: max-content; }
.brand__logo .custom-logo-link { display: block; }
.brand__logo img { max-height: 54px; width: auto; }
.brand__mark {
  width: 42px; height: 48px; display: grid; place-items: center;
  border: 1px solid var(--gold); color: var(--gold-2); font-weight: 700; font-size: 22px;
  position: relative; background: #0d2923;
}
.brand__mark::before,
.brand__mark::after { content: ""; position: absolute; inset: 5px; border: 1px solid rgba(185,147,82,.28); }
.brand__mark::after { inset: 9px; }
.brand__text { display: grid; line-height: 1.15; }
.brand__text strong { font-size: 16px; font-weight: 700; }
.brand__text small { margin-top: 6px; font-size: 11px; color: #c3bba9; font-weight: 400; }
.primary-nav { margin-inline-start: auto; }
.primary-menu { list-style: none; display: flex; align-items: center; gap: 3px; padding: 0; margin: 0; }
.primary-menu > li { position: relative; }
.primary-menu > li > a {
  display: flex; align-items: center; min-height: 44px; padding: 0 12px;
  color: #e9e1d4; font-size: 14px; font-weight: 500; position: relative;
}
.primary-menu > li > a::after {
  content: ""; position: absolute; inset-inline: 12px; bottom: 2px; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .2s ease;
}
.primary-menu > li > a:hover::after,
.primary-menu > .current-menu-item > a::after,
.primary-menu > .current-menu-parent > a::after { transform: scaleX(1); }
.primary-menu .sub-menu {
  position: absolute; inset-inline-start: 0; top: calc(100% + 9px); width: 230px;
  list-style: none; margin: 0; padding: 9px; background: #0d241f;
  border: 1px solid rgba(185,147,82,.25); box-shadow: 0 18px 50px rgba(0,0,0,.24);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s ease;
}
.primary-menu li:hover > .sub-menu,
.primary-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.primary-menu .sub-menu a { display: block; padding: 10px 12px; color: #e9e1d4; font-size: 13px; }
.primary-menu .sub-menu a:hover { background: rgba(255,255,255,.05); color: var(--gold-2); }
.header-actions { display: flex; align-items: center; gap: 4px; }
.icon-button {
  width: 40px; height: 40px; border: 0; background: transparent; display: grid; place-items: center;
  cursor: pointer; border-radius: 50%; transition: background .18s ease, color .18s ease;
}
.icon-button:hover { background: rgba(255,255,255,.07); color: var(--gold-2); }
.menu-toggle { display: none; }
.theme-icon--sun { display: none; }
html[data-theme="dark"] .theme-icon--moon { display: none; }
html[data-theme="dark"] .theme-icon--sun { display: inline-flex; }
.reading-progress { position: absolute; bottom: -1px; inset-inline: 0; height: 2px; overflow: hidden; }
.reading-progress span { display: block; height: 100%; width: 0; background: var(--gold); }

/* Hidden elements must stay hidden */
[hidden] { display: none !important; }

/* Mobile navigation */
.mobile-nav { position: fixed; inset: 0; z-index: 2000; }
.mobile-nav { background: rgba(3, 10, 8, .72); }
.mobile-nav__panel {
  width: min(88vw, 380px); height: 100%; margin-inline-start: auto; background: #0b1d19; color: #f4ede0;
  border-inline-end: 1px solid rgba(185,147,82,.26); padding: 20px; overflow-y: auto;
  transform: translateX(0); box-shadow: 20px 0 60px rgba(0,0,0,.34);
}
.mobile-nav__head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,.08); }
.mobile-menu, .mobile-menu ul { list-style: none; padding: 0; margin: 0; }
.mobile-menu { padding-top: 14px; }
.mobile-menu a { display: block; padding: 12px 4px; border-bottom: 1px solid rgba(255,255,255,.06); }
.mobile-menu .sub-menu { padding-inline-start: 16px; opacity: .8; }

/* Search form */
.search-form { display: flex; align-items: stretch; width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.search-field { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); padding: 14px 16px; }
.search-field::placeholder { color: var(--muted); }
.search-submit { width: 54px; flex: 0 0 54px; border: 0; background: var(--green-800); color: #fff; display: grid; place-items: center; cursor: pointer; }
.search-submit:hover { background: var(--green-700); }

/* Hero */
.hero-section {
  position: relative; background-color: var(--green-950); color: #f4ede0; overflow: hidden;
  border-bottom: 1px solid rgba(185,147,82,.28);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cg fill='none' stroke='%23b99352' stroke-opacity='.06'%3E%3Cpath d='M90 5 112 31l34-3-3 34 27 28-27 28 3 34-34-3-22 26-22-26-34 3 3-34L10 90l27-28-3-34 34 3Z'/%3E%3Ccircle cx='90' cy='90' r='35'/%3E%3Cpath d='M55 90h70M90 55v70'/%3E%3C/g%3E%3C/svg%3E");
}
.hero-grid { min-height: 590px; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 54px; padding-block: 68px 78px; }
.hero-copy { max-width: 700px; position: relative; z-index: 2; }
.hero-kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--gold-2); font-weight: 600; font-size: 16px; margin-bottom: 14px; }
.hero-kicker::before { content: ""; width: 28px; height: 1px; background: var(--gold); }
.hero-copy h1 { font-size: clamp(40px, 5.4vw, 76px); line-height: 1.18; margin: 0; letter-spacing: -.025em; font-weight: 700; }
.hero-copy > p { max-width: 630px; margin: 18px 0 0; color: #c9c1b4; font-size: 17px; line-height: 1.9; }
.hero-search-wrap { margin-top: 30px; max-width: 690px; }
.hero-section .search-form { background: #f7f2e9; border-color: rgba(185,147,82,.58); box-shadow: 0 14px 35px rgba(0,0,0,.18); }
.hero-section .search-field { color: #17201d; padding-block: 17px; }
.hero-section .search-submit { width: 62px; flex-basis: 62px; background: #17362d; }
.hero-search-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.hero-search-tags a { padding: 5px 11px; border: 1px solid rgba(185,147,82,.28); color: #d8d0c3; border-radius: 999px; font-size: 12px; }
.hero-search-tags a:hover { border-color: var(--gold); color: var(--gold-2); }
.hero-feature { position: relative; z-index: 2; }
.hero-feature__frame { border: 1px solid rgba(185,147,82,.34); background: #0c201b; box-shadow: 0 20px 60px rgba(0,0,0,.25); position: relative; }
.hero-feature__label { position: absolute; z-index: 2; top: 14px; inset-inline-start: 14px; padding: 6px 10px; background: var(--gold); color: #142019; font-size: 11px; font-weight: 700; }
.hero-feature__media { display: block; height: 270px; background: #0d2a23; border-bottom: 1px solid rgba(185,147,82,.22); overflow: hidden; }
.hero-feature__media img { width: 100%; height: 100%; object-fit: cover; opacity: .86; transition: transform .35s ease, opacity .35s ease; }
.hero-feature__frame:hover .hero-feature__media img { transform: scale(1.025); opacity: .95; }
.hero-feature__media--empty { display: grid; place-items: center; }
.hero-feature__illustration { width: 100%; height: 100%; display: grid; place-items: end center; position: relative; overflow: hidden; }
.arch { width: 48%; height: 82%; border: 1px solid rgba(185,147,82,.52); border-radius: 50% 50% 0 0 / 28% 28% 0 0; position: absolute; bottom: 0; }
.arch::before { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(185,147,82,.22); border-radius: inherit; }
.book-stack { display: flex; align-items: end; gap: 6px; margin-bottom: 22px; position: relative; z-index: 2; }
.book-stack i { width: 42px; height: 86px; background: #182e27; border: 1px solid rgba(185,147,82,.45); display: block; }
.book-stack i:nth-child(2) { height: 110px; width: 50px; }
.book-stack i:nth-child(3) { height: 74px; }
.hero-feature__content { padding: 20px 22px 22px; }
.hero-feature__content h2 { font-size: 24px; line-height: 1.45; margin: 5px 0 8px; }
.hero-feature__content p { color: #aaa99f; font-size: 13px; margin: 0 0 14px; }
.hero-ornament { position: absolute; width: 300px; height: 300px; border: 1px solid rgba(185,147,82,.08); transform: rotate(45deg); }
.hero-ornament--right { right: -175px; top: 90px; }
.hero-ornament--left { left: -220px; bottom: -170px; }

/* Common UI */
.eyebrow { color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.text-link { display: inline-flex; align-items: center; gap: 7px; color: var(--gold-2); font-size: 13px; font-weight: 600; }
.text-link .icon { width: 16px; height: 16px; transform: rotate(180deg); }
.section { padding-block: 72px; }
.section--dark { background: var(--green-950); color: #f4ede0; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 28px; }
.section-heading h2 { margin: 4px 0 0; font-size: clamp(27px, 3.4vw, 40px); line-height: 1.3; }
.section-heading > p { color: var(--muted); max-width: 520px; margin: 0; }
.section-heading--compact { align-items: center; }
.section-heading--compact h2 { font-size: 28px; }
.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 16px; border: 1px solid transparent; font-size: 13px; font-weight: 600; cursor: pointer; }
.button .icon { width: 16px; height: 16px; transform: rotate(180deg); }
.button--gold { background: var(--gold); color: #12201b; }
.button--dark { background: var(--green-900); color: #f8f2e8; border-color: rgba(185,147,82,.32); }
.button--outline { border-color: var(--gold); color: var(--gold-2); }
.button:hover { transform: translateY(-1px); }

/* Stats */
.stat-strip { position: relative; z-index: 3; margin-top: -32px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: #0e2520; color: #eee6d8; border: 1px solid rgba(185,147,82,.34); box-shadow: 0 14px 40px rgba(0,0,0,.17); }
.stat-item { min-height: 92px; display: flex; align-items: center; justify-content: center; gap: 14px; padding: 16px; border-inline-start: 1px solid rgba(185,147,82,.18); }
.stat-item:first-child { border-inline-start: 0; }
.stat-item__icon { width: 28px; height: 28px; color: var(--gold-2); }
.stat-item div { display: grid; line-height: 1.2; }
.stat-item strong { font-size: 25px; color: var(--gold-2); font-weight: 500; }
.stat-item span:not(.icon) { margin-top: 6px; font-size: 12px; color: #b9b3a8; }

/* Posts */
.editorial-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.post-card { background: var(--surface); border: 1px solid var(--line); min-width: 0; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: rgba(185,147,82,.58); }
.post-card--featured { grid-column: span 2; grid-row: span 2; }
.post-card__media { height: 190px; display: block; background: var(--surface-2); overflow: hidden; }
.post-card--featured .post-card__media { height: 310px; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.post-card:hover .post-card__media img { transform: scale(1.025); }
.post-card__placeholder { height: 100%; display: grid; place-items: center; color: var(--gold); background-color: var(--green-900); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90'%3E%3Cpath d='M45 5 57 20l19-2-2 19 15 8-15 8 2 19-19-2-12 15-12-15-19 2 2-19L1 45l15-8-2-19 19 2Z' fill='none' stroke='%23b99352' stroke-opacity='.09'/%3E%3C/svg%3E"); }
.post-card__placeholder .icon { width: 46px; height: 46px; }
.post-card__body { padding: 17px; }
.post-card__title { font-size: 18px; line-height: 1.55; margin: 5px 0 8px; }
.post-card--featured .post-card__title { font-size: 27px; }
.post-card__excerpt { color: var(--muted); font-size: 13px; margin: 0 0 14px; line-height: 1.75; }
.post-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 11px; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 13px; }
.post-card__meta span { display: inline-flex; align-items: center; gap: 5px; }
.post-card__meta .icon { width: 14px; height: 14px; }

/* Feature band */
.feature-band { border-block: 1px solid rgba(185,147,82,.2); }
.feature-band__grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 22px; }
.quote-panel, .quran-panel { min-height: 430px; position: relative; border: 1px solid rgba(185,147,82,.34); padding: clamp(28px,4vw,48px); background: #0d231e; overflow: hidden; }
.quote-panel__ornament { position: absolute; width: 330px; height: 330px; inset-inline-end: -160px; bottom: -170px; border: 1px solid rgba(185,147,82,.08); transform: rotate(45deg); }
.quote-panel__icon { width: 54px; height: 54px; color: var(--gold); opacity: .55; margin-top: 28px; }
.quote-panel blockquote { font-size: clamp(23px,3vw,34px); line-height: 1.8; margin: 12px 0 24px; max-width: 780px; }
.quote-panel__footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 18px; border-top: 1px solid rgba(185,147,82,.18); }
.quote-panel cite { color: #c4bcad; font-size: 13px; font-style: normal; }
.copy-button { border: 1px solid rgba(185,147,82,.36); background: transparent; color: var(--gold-2); display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; cursor: pointer; }
.copy-button .icon { width: 16px; height: 16px; }
.quran-panel { background: #102b24; }
.line-story { display: grid; grid-template-columns: 42px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.line-story__number { color: var(--gold); font-size: 12px; padding-top: 5px; }
.line-story h3 { margin: 0 0 4px; font-size: 18px; }
.line-story p { margin: 0; color: #aaa99f; font-size: 12px; }
.quran-panel .button { margin-top: 20px; }

/* Categories */
.category-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-inline-start: 1px solid var(--line); }
.category-tile { display: grid; grid-template-columns: 54px 1fr 34px; align-items: center; gap: 18px; min-height: 160px; padding: 26px; background: var(--surface); border-inline-end: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .2s ease, color .2s ease; }
.category-tile:hover { background: var(--green-900); color: #f5eee3; }
.category-tile__num { font-size: 12px; color: var(--gold); align-self: start; }
.category-tile h3 { margin: 0 0 5px; font-size: 22px; }
.category-tile p { margin: 0; color: var(--muted); font-size: 13px; max-width: 540px; }
.category-tile:hover p { color: #bcb7ad; }
.category-tile__arrow { color: var(--gold); }
.category-tile__arrow .icon { transform: rotate(180deg); }

/* Split / library */
.section--split { padding-top: 0; }
.split-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 24px; align-items: start; }
.split-main, .library-preview { background: var(--surface); border: 1px solid var(--line); padding: 26px; }
.response-row { display: grid; grid-template-columns: 58px 1fr 34px; gap: 16px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); }
.response-row:last-child { border-bottom: 0; }
.response-row__badge { width: 52px; height: 52px; display: grid; place-items: center; border: 1px solid rgba(128,60,53,.3); background: rgba(128,60,53,.07); color: var(--danger); font-size: 11px; font-weight: 700; }
.response-row h3 { margin: 0 0 3px; font-size: 18px; }
.response-row p { color: var(--muted); font-size: 12px; margin: 0; }
.response-row__link { color: var(--gold); }
.response-row__link .icon { transform: rotate(180deg); }
.library-preview { background: var(--green-900); color: #f4ede0; border-color: rgba(185,147,82,.28); }
.library-preview__head h2 { margin: 3px 0 8px; font-size: 28px; }
.library-preview__head p { color: #a9a89e; margin: 0 0 20px; font-size: 13px; }
.book-shelf { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; align-items: end; padding-bottom: 22px; border-bottom: 8px solid #6c4f2d; position: relative; }
.book-shelf::after { content: ""; position: absolute; left: 0; right: 0; bottom: -14px; height: 6px; background: #3c2b1c; }
.book-card { min-width: 0; display: grid; gap: 7px; }
.book-card__cover { height: 148px; background: #18352d; border: 1px solid rgba(185,147,82,.28); overflow: hidden; box-shadow: 4px 5px 0 rgba(0,0,0,.18); }
.book-card__cover img { width: 100%; height: 100%; object-fit: cover; }
.book-card__placeholder { height: 100%; display: grid; place-items: center; color: var(--gold); }
.book-card strong { font-size: 10px; line-height: 1.4; font-weight: 500; color: #d9d1c3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.library-preview .button { margin-top: 28px; width: 100%; }

/* Archives */
.page-shell { padding-block: 62px 80px; min-height: 70vh; }
.archive-header { margin-bottom: 30px; }
.archive-header h1 { margin: 4px 0 8px; font-size: clamp(34px,5vw,56px); line-height: 1.3; }
.archive-header h1 span { color: var(--gold); }
.archive-description { max-width: 720px; color: var(--muted); }
.archive-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.category-hero { background: var(--green-950); color: #f4ede0; border-bottom: 1px solid rgba(185,147,82,.3); }
.category-hero__inner { min-height: 270px; display: flex; align-items: center; justify-content: space-between; gap: 40px; position: relative; }
.category-hero__inner::after { content: ""; position: absolute; width: 180px; height: 180px; inset-inline-end: 160px; opacity: .2; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 3 62 22l22-6-6 22 19 12-19 12 6 22-22-6-12 19-12-19-22 6 6-22L3 50l19-12-6-22 22 6Z' fill='none' stroke='%23b99352'/%3E%3Ccircle cx='50' cy='50' r='20' fill='none' stroke='%23b99352'/%3E%3C/svg%3E"); }
.category-hero h1 { font-size: clamp(42px,6vw,72px); margin: 4px 0 7px; }
.category-hero .archive-description { color: #b7b2a8; }
.category-hero__count { display: grid; text-align: center; padding: 18px 28px; border: 1px solid rgba(185,147,82,.28); position: relative; z-index: 1; }
.category-hero__count strong { color: var(--gold-2); font-size: 32px; font-weight: 500; }
.category-hero__count span { color: #aaa99f; font-size: 11px; }
.category-content { padding-top: 42px; }
.archive-search { max-width: 680px; margin-top: 20px; }
.nav-links { display: flex; justify-content: center; gap: 7px; margin-top: 34px; }
.page-numbers { min-width: 38px; height: 38px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); }
.page-numbers.current { background: var(--green-900); color: #fff; border-color: var(--green-900); }

/* Single article */
.single-shell { min-height: 70vh; }
.article-hero { background: var(--green-950); color: #f4ede0; border-bottom: 1px solid rgba(185,147,82,.25); }
.article-hero__inner { min-height: 430px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 50px; align-items: center; padding-block: 62px; }
.article-hero--page .article-hero__inner { min-height: 280px; grid-template-columns: 1fr; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; color: #9f9d95; font-size: 11px; margin-bottom: 18px; }
.breadcrumbs a:hover { color: var(--gold-2); }
.article-hero h1 { font-size: clamp(38px,5vw,62px); line-height: 1.35; letter-spacing: -.018em; margin: 6px 0 15px; }
.article-deck { color: #c0b9ad; font-size: 16px; max-width: 760px; margin: 0 0 18px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 18px; color: #aaa69d; font-size: 12px; }
.article-meta span { display: inline-flex; align-items: center; gap: 6px; }
.article-meta .icon { width: 15px; height: 15px; }
.article-hero__media { margin: 0; height: 310px; border: 1px solid rgba(185,147,82,.3); overflow: hidden; box-shadow: 16px 16px 0 rgba(185,147,82,.06); }
.article-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.article-hero__seal { display: grid; place-items: center; height: 310px; border: 1px solid rgba(185,147,82,.2); background-color: #0e2a23; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cpath d='M60 3 74 25l26-7-7 26 22 16-22 16 7 26-26-7-14 22-14-22-26 7 7-26L5 60l22-16-7-26 26 7Z' fill='none' stroke='%23b99352' stroke-opacity='.08'/%3E%3C/svg%3E"); }
.article-hero__seal span { width: 100px; height: 120px; display: grid; place-items: center; border: 1px solid var(--gold); color: var(--gold-2); font-size: 46px; }
.article-layout { display: grid; grid-template-columns: 90px minmax(0, var(--reading)) 260px; justify-content: center; gap: 34px; align-items: start; padding-block: 56px; }
.article-tools { position: sticky; top: calc(var(--header-h) + 28px); display: grid; gap: 8px; }
.article-tool { width: 72px; min-height: 66px; padding: 7px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); display: grid; place-items: center; gap: 3px; font-size: 9px; cursor: pointer; }
.article-tool:hover { color: var(--gold); border-color: var(--gold); }
.article-tool .icon { width: 19px; height: 19px; }
.article-tool__print { font-size: 21px; transform: rotate(-45deg); line-height: 1; }
.article-aside { position: sticky; top: calc(var(--header-h) + 28px); }
.article-aside__card { border: 1px solid var(--line); background: var(--surface); padding: 18px; }
.article-toc { display: grid; gap: 1px; margin-top: 10px; }
.article-toc a { padding: 7px 8px; font-size: 12px; color: var(--muted); border-inline-start: 2px solid transparent; }
.article-toc a.is-active { color: var(--ink); border-color: var(--gold); background: var(--surface-2); }
.article-toc a[data-level="3"] { padding-inline-start: 22px; font-size: 11px; }
.muted { color: var(--muted); font-size: 12px; }
.article-content { font-size: 18px; line-height: 2.05; }
.article-content > *:first-child { margin-top: 0; }
.article-content p { margin: 0 0 1.45em; }
.article-content h2, .article-content h3, .article-content h4 { scroll-margin-top: 110px; line-height: 1.55; }
.article-content h2 { font-size: 31px; margin: 2.2em 0 .7em; padding-bottom: .35em; border-bottom: 1px solid var(--line); }
.article-content h3 { font-size: 24px; margin: 1.8em 0 .6em; }
.article-content blockquote { margin: 2em 0; padding: 24px 26px; border: 1px solid var(--line); border-inline-start: 4px solid var(--gold); background: var(--surface); font-size: 19px; }
.article-content blockquote p:last-child { margin-bottom: 0; }
.article-content a { color: #806333; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
html[data-theme="dark"] .article-content a { color: var(--gold-2); }
.article-content table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; margin: 1.6em 0; }
.article-content th, .article-content td { border: 1px solid var(--line); padding: 10px 12px; min-width: 120px; }
.article-content th { background: var(--surface-2); }
.article-content pre { overflow-x: auto; background: #101a16; color: #e8e0d5; padding: 18px; border-radius: var(--radius-sm); direction: ltr; text-align: left; }
.article-content code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.article-content .wp-caption, .article-content figure { max-width: 100%; }
.article-content figcaption { color: var(--muted); font-size: 12px; text-align: center; margin-top: 7px; }
.article-footer { padding-bottom: 70px; }
.article-tags { padding-top: 22px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.article-tags a { display: inline-block; padding: 4px 8px; margin: 2px; border: 1px solid var(--line); color: var(--ink); }
.post-navigation-custom { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
.post-navigation-custom a { display: grid; padding: 18px; border: 1px solid var(--line); background: var(--surface); }
.post-navigation-custom span { color: var(--gold); font-size: 10px; }
.post-navigation-custom strong { margin-top: 4px; font-size: 14px; }
.comments-wrap { padding-bottom: 70px; }
.comments-area { max-width: var(--reading); margin-inline: auto; }
.comment-list { padding-inline-start: 22px; }
.comment-body { padding: 18px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 12px; }
.comment-respond input:not([type="submit"]), .comment-respond textarea { width: 100%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); padding: 12px; }
.comment-form input[type="submit"] { border: 0; background: var(--green-900); color: #fff; padding: 11px 18px; cursor: pointer; }

/* Footer */
.site-footer { background: #081411; color: #ede5d8; border-top: 1px solid rgba(185,147,82,.26); }
.footer-cta { display: flex; justify-content: space-between; align-items: center; gap: 28px; padding: 38px 0; border-bottom: 1px solid rgba(185,147,82,.18); }
.footer-cta h2 { margin: 5px 0 0; font-size: clamp(22px,3vw,34px); max-width: 800px; line-height: 1.55; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .7fr .7fr 1fr; gap: 40px; padding: 46px 0 38px; }
.brand--footer .brand__text small { color: #9e9b93; }
.footer-brand p, .footer-grid p { color: #9e9b93; font-size: 12px; max-width: 350px; }
.footer-grid h3 { font-size: 14px; color: var(--gold-2); margin: 0 0 12px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; color: #bbb5aa; font-size: 12px; }
.footer-links a:hover { color: var(--gold-2); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid rgba(255,255,255,.07); padding: 18px 0; color: #7f817c; font-size: 10px; }
.footer-widget__title { font-size: 14px; color: var(--gold-2); }

/* Empty and 404 */
.empty-state { display: grid; gap: 4px; padding: 24px; border: 1px dashed var(--line); color: var(--muted); }
.empty-state strong { color: var(--ink); }
.empty-state--dark { border-color: rgba(255,255,255,.12); color: #aaa99f; }
.empty-state--dark strong { color: #f1eadf; }
.empty-state--large { min-height: 240px; place-content: center; text-align: center; }
.not-found { min-height: 60vh; display: grid; place-items: center; align-content: center; text-align: center; }
.not-found__code { font-size: clamp(90px,20vw,210px); line-height: .8; color: var(--surface-2); font-weight: 700; }
.not-found h1 { margin: 8px 0; }
.not-found p { color: var(--muted); }
.not-found__search { width: min(100%, 600px); margin: 18px 0; }

/* Focus */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* Responsive */
@media (max-width: 1120px) {
  :root { --container: 980px; }
  .primary-nav { display: none; }
  .menu-toggle { display: grid; }
  .header-actions { margin-inline-start: auto; }
  .hero-grid { grid-template-columns: 1fr 380px; gap: 32px; }
  .article-layout { grid-template-columns: 70px minmax(0, var(--reading)); }
  .article-aside { display: none; }
  .archive-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 860px) {
  :root { --header-h: 68px; }
  .container { width: min(calc(100% - 28px), var(--container)); }
  .brand__text strong { font-size: 14px; }
  .brand__text small { font-size: 10px; }
  .hero-grid { min-height: auto; grid-template-columns: 1fr; padding-block: 48px 62px; }
  .hero-copy { max-width: none; }
  .hero-copy h1 { font-size: clamp(38px,10vw,58px); }
  .hero-feature { max-width: 620px; }
  .stat-grid { grid-template-columns: repeat(2,1fr); }
  .stat-item:nth-child(3) { border-top: 1px solid rgba(185,147,82,.18); }
  .stat-item:nth-child(4) { border-top: 1px solid rgba(185,147,82,.18); }
  .editorial-grid { grid-template-columns: repeat(2,1fr); }
  .post-card--featured { grid-column: span 2; grid-row: auto; }
  .feature-band__grid, .split-grid { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: 1fr; }
  .article-hero__inner { grid-template-columns: 1fr; min-height: auto; gap: 28px; padding-block: 42px; }
  .article-hero__media, .article-hero__seal { height: 250px; }
  .article-layout { grid-template-columns: 1fr; padding-top: 34px; }
  .article-tools { position: static; display: flex; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
  .article-tool { width: auto; min-height: 42px; display: inline-flex; padding-inline: 12px; }
  .article-content { max-width: 100%; }
  .footer-grid { grid-template-columns: repeat(2,1fr); }
  .category-hero__inner::after { display: none; }
}

@media (max-width: 620px) {
  .container { width: min(calc(100% - 22px), var(--container)); }
  .site-header__inner { gap: 10px; }
  .brand__mark { width: 36px; height: 40px; font-size: 18px; }
  .brand__text small { display: none; }
  .header-actions .icon-button { width: 36px; height: 36px; }
  .hero-grid { padding-block: 38px 50px; }
  .hero-kicker { font-size: 13px; }
  .hero-copy > p { font-size: 14px; }
  .hero-search-wrap { margin-top: 22px; }
  .hero-search-tags { gap: 6px; }
  .hero-feature__media { height: 210px; }
  .hero-feature__content h2 { font-size: 20px; }
  .stat-strip { margin-top: -20px; }
  .stat-grid { grid-template-columns: repeat(2,1fr); }
  .stat-item { min-height: 78px; padding: 10px; gap: 9px; }
  .stat-item strong { font-size: 20px; }
  .stat-item__icon { width: 22px; height: 22px; }
  .section { padding-block: 50px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
  .section-heading h2 { font-size: 28px; }
  .editorial-grid, .archive-grid { grid-template-columns: 1fr; }
  .post-card--featured { grid-column: auto; }
  .post-card__media, .post-card--featured .post-card__media { height: 220px; }
  .post-card--featured .post-card__title { font-size: 22px; }
  .quote-panel, .quran-panel { min-height: auto; padding: 24px 20px; }
  .quote-panel blockquote { font-size: 21px; }
  .quote-panel__footer { align-items: flex-start; flex-direction: column; }
  .category-tile { grid-template-columns: 38px 1fr 24px; padding: 20px 16px; min-height: 140px; gap: 10px; }
  .category-tile h3 { font-size: 20px; }
  .split-main, .library-preview { padding: 18px; }
  .response-row { grid-template-columns: 46px 1fr 26px; gap: 10px; }
  .response-row__badge { width: 42px; height: 42px; }
  .book-shelf { gap: 5px; }
  .book-card__cover { height: 118px; }
  .category-hero__inner { min-height: 220px; align-items: flex-start; flex-direction: column; justify-content: center; gap: 18px; padding-block: 36px; }
  .category-hero h1 { font-size: 46px; }
  .category-hero__count { display: flex; align-items: baseline; gap: 10px; padding: 8px 12px; }
  .category-hero__count strong { font-size: 24px; }
  .page-shell { padding-top: 44px; }
  .article-hero h1 { font-size: 36px; }
  .article-deck { font-size: 14px; }
  .article-hero__media, .article-hero__seal { height: 210px; }
  .article-content { font-size: 17px; line-height: 2; }
  .article-content h2 { font-size: 26px; }
  .article-content h3 { font-size: 21px; }
  .post-navigation-custom { grid-template-columns: 1fr; }
  .footer-cta { align-items: flex-start; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 380px) {
  .brand__text strong { font-size: 12px; }
  .header-actions { gap: 0; }
  .header-actions .icon-button { width: 32px; }
  .stat-item { gap: 6px; }
  .stat-item strong { font-size: 18px; }
  .stat-item span:not(.icon) { font-size: 10px; }
  .book-card__cover { height: 100px; }
}

/* Print */
@media print {
  .site-header, .site-footer, .article-tools, .article-aside, .comments-wrap, .post-navigation-custom { display: none !important; }
  body { background: #fff; color: #000; }
  .article-hero { background: #fff; color: #000; border: 0; }
  .article-hero__inner { display: block; min-height: 0; padding: 0 0 30px; }
  .article-hero__media, .article-hero__seal { display: none; }
  .article-layout { display: block; padding: 0; }
  .article-content { max-width: none; font-size: 14pt; }
}
