/*
Theme Name: surah-yasin
Text Domain: surah-yasin
Description: A custom classic WordPress theme for a Surah Ya-Sin reading, listening and download resource.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
WPVibe: yes
*/

/* ===== Quranic typeface =====
   KFGQPC UthmanicHafs, the King Fahd Complex face used in the printed Madani
   mushaf and served by Quran Foundation, whose API we already use for audio.
   Amiri draws the harakat small, thin and detached, and renders the small yeh
   (U+06E6) and small waw (U+06E5) at nearly full letter weight, which reads as
   an extra letter to anyone who does not already know the word. UthmanicHafs
   draws them the way the printed mushaf does. Amiri stays as the fallback. */
@font-face {
  font-family: 'UthmanicHafs';
  src: url('https://verses.quran.foundation/fonts/quran/hafs/uthmanic_hafs/UthmanicHafs1Ver18.woff2') format('woff2'),
       url('https://verses.quran.foundation/fonts/quran/hafs/uthmanic_hafs/UthmanicHafs1Ver18.ttf') format('truetype');
  font-display: swap;
}

/* IndoPak script face, also from Quran Foundation. IndoPak text uses
   different characters from Uthmani (U+0656 subscript alef, U+06E1 head of
   khah) and needs a face drawn for them. */
@font-face {
  font-family: 'IndoPakQF';
  src: url('https://verses.quran.foundation/fonts/quran/hafs/nastaleeq/indopak/indopak-nastaleeq-waqf-lazim-v4.2.1.woff2') format('woff2');
  font-display: swap;
}

/* Per-script faces. Compound selectors so these beat the .ayah / .verse-ar
   font-family rules defined further down the file. */
.ayah.script-uthmani,
.verse-ar.script-uthmani,
.bismillah .ar.script-uthmani { font-family: 'UthmanicHafs', 'Amiri', serif; }
.ayah.script-indopak,
.verse-ar.script-indopak,
.bismillah .ar.script-indopak {
  font-family: 'IndoPakQF', 'Noto Nastaliq Urdu', 'Amiri', serif;
  line-height: 2.7;
}

/* ===== Tokens ===== */
:root {
  --bg: #faf9f7;
  --surface: #ffffff;
  --border: #ece9e4;
  --border-soft: #f2efea;
  --ink: #1c1917;
  --ink-2: #292524;
  --ink-3: #44403c;
  --muted: #57534e;
  --muted-2: #78716c;
  --muted-3: #a8a29e;
  --faint: #c9c5bf;
  --faint-2: #b7b1aa;
  --accent: #0f766e;
  --accent-dark: #115e56;
  --accent-deep: #0f5d54;
  --accent-soft: #ecfdf5;
  --accent-border: #cce9e0;
  --panel-2: #f5f4f2;
  --font-ui: 'Manrope', system-ui, -apple-system, Segoe UI, sans-serif;
  --font-read: 'Lora', Georgia, serif;
  --font-ar: 'UthmanicHafs', 'Amiri', 'Scheherazade New', serif;
  --wrap: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }
img { max-width: 100%; height: auto; }
h1, h2, h3 { letter-spacing: -0.02em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(20px, 4vw, 56px); }
.site-main { display: block; }

/* ===== Buttons ===== */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 10px; font-size: 14px; font-weight: 700; cursor: pointer; border: 1px solid transparent; }
.btn svg { display: block; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { color: #fff; }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--ink); }
.btn-ghost:hover { color: var(--ink); border-color: var(--faint); }

/* ===== Header ===== */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 18px; padding-bottom: 18px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 38px; height: 38px; border-radius: 10px; background: var(--accent); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.brand-name { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; color: var(--ink); line-height: 1; }
.brand-ar { font-family: var(--font-ar); font-size: 14px; color: var(--muted-3); margin-top: 3px; display: block; }
.nav { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; font-size: 15px; font-weight: 600; }
.nav a { color: var(--muted); }
.nav a:hover, .nav .current-menu-item a { color: var(--accent); }

/* ===== Hero ===== */
.hero { padding: clamp(36px, 5vw, 56px) 0 28px; }
.hero-inner { max-width: 780px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; background: var(--accent-soft); color: var(--accent); padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; margin-bottom: 18px; }
.eyebrow .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--accent); }
.hero h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.05; font-weight: 800; letter-spacing: -0.03em; margin: 0 0 16px; }
.hero h1 .muted { color: var(--muted-3); font-weight: 700; }
.hero p { font-size: 19px; line-height: 1.6; color: var(--muted); margin: 0 0 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 7px; background: var(--surface); border: 1px solid var(--border); padding: 8px 14px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }

/* ===== Reading toolbar ===== */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px 18px; }
.toolbar-group { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tool { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--border); padding: 9px 14px; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--ink-3); background: var(--surface); cursor: pointer; }
.stepper { display: flex; align-items: center; border: 1px solid var(--border); border-radius: 9px; overflow: hidden; }
.stepper span { padding: 9px 13px; font-weight: 700; color: var(--muted-2); cursor: pointer; }
.stepper .sep { width: 1px; align-self: stretch; padding: 0; background: var(--border); }
.stepper .lg { font-size: 15px; color: var(--ink); }

/* ===== Ad slots ===== */
.ad { border: 1px dashed #d6d3d1; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--panel-2); }
.ad span { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint-2); }
.ad-leaderboard { height: 90px; }
.ad-inline { height: 250px; }
.ad-box { height: 300px; }

/* ===== Reader ===== */
.reader { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: clamp(24px, 4vw, 40px) clamp(20px, 4vw, 48px); }
.bismillah { text-align: center; padding: 8px 0 28px; border-bottom: 1px solid var(--border-soft); margin-bottom: 28px; }
.bismillah .ar { font-family: var(--font-ar); font-size: clamp(30px, 5vw, 40px); color: var(--accent); line-height: 1.6; }
.bismillah .en { font-size: 14px; color: var(--muted-3); font-style: italic; margin-top: 8px; font-family: var(--font-read); }
.verse { display: grid; grid-template-columns: 56px 1fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--border-soft); }
.verse:last-child { border-bottom: none; }
.verse-aside { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.verse-num { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 800; }
.verse-play { cursor: pointer; }
.verse-ar { font-family: var(--font-ar); font-size: clamp(30px, 4vw, 38px); line-height: 2; text-align: right; direction: rtl; color: var(--ink); }
.verse-translit { font-size: 15px; color: var(--muted-3); font-style: italic; margin-top: 10px; font-family: var(--font-read); }
.verse-tr { font-size: 17px; line-height: 1.65; color: var(--ink-3); margin-top: 8px; font-family: var(--font-read); }
.divider { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 30px; }
.divider .line { height: 1px; flex: 1; background: var(--border-soft); }
.divider .label { font-size: 13px; font-weight: 700; color: var(--muted-3); }

/* ===== Generic sections ===== */
.section { padding: 32px 0; }
.section-tight { padding: 24px 0 8px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 32px; }
.card h3 { font-size: 22px; font-weight: 800; margin: 0 0 8px; }
.card > p { font-size: 15px; line-height: 1.6; color: var(--muted-2); margin: 0 0 22px; }
.download-card { background: var(--accent); border-radius: 18px; padding: 32px; color: #fff; }
.download-card h3 { font-size: 22px; font-weight: 800; margin: 0 0 8px; }
.download-card p { font-size: 15px; line-height: 1.6; color: #c8ece6; margin: 0 0 22px; }
.download-row { display: flex; align-items: center; justify-content: space-between; background: rgba(255,255,255,0.12); padding: 14px 18px; border-radius: 11px; font-size: 15px; font-weight: 600; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.link-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--border-soft); border-radius: 12px; }
.link-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.link-row .t { font-size: 15px; font-weight: 700; }
.link-row .s { font-size: 13px; color: var(--muted-3); }

/* ===== Footer ===== */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 44px 0 36px; margin-top: 36px; }
.footer-cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer-brand p { font-size: 14px; line-height: 1.6; color: var(--muted-3); margin: 0; max-width: 360px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col .head { font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.footer-col a { font-size: 14px; color: var(--muted); }
.footer-bottom { border-top: 1px solid var(--border-soft); margin-top: 32px; padding-top: 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.footer-bottom span { font-size: 13px; color: var(--faint-2); }

/* ===== Article ===== */
.article-layout { display: grid; grid-template-columns: 1fr 340px; gap: 40px; padding: 44px 0 8px; align-items: start; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted-3); margin-bottom: 20px; flex-wrap: wrap; }
.breadcrumb .here { color: var(--muted); }
.article h1 { font-size: clamp(30px, 4vw, 42px); line-height: 1.12; font-weight: 800; margin: 0 0 18px; }
.byline { display: flex; align-items: center; gap: 16px; padding-bottom: 24px; border-bottom: 1px solid var(--border); margin-bottom: 8px; flex-wrap: wrap; }
.byline .avatar { width: 40px; height: 40px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 800; }
.byline .who { font-size: 14px; font-weight: 700; }
.byline .when { font-size: 13px; color: var(--muted-3); }
.byline .rt { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--muted-2); }
.byline .vsep { width: 1px; height: 28px; background: var(--border); }
.featured { height: 300px; border-radius: 16px; background: linear-gradient(135deg, var(--accent-soft) 0%, var(--panel-2) 100%); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; margin: 24px 0 32px; }
.featured span { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint-2); }
.prose p { font-family: var(--font-read); font-size: 17px; line-height: 1.75; color: var(--ink-3); margin: 0 0 16px; }
.prose .lead { font-size: 19px; color: var(--ink-2); }
.prose h2 { font-size: clamp(22px, 3vw, 27px); font-weight: 800; margin: 36px 0 14px; }
.callout { display: flex; gap: 16px; background: var(--accent-soft); border: 1px solid var(--accent-border); border-radius: 14px; padding: 22px 24px; margin: 28px 0; }
.callout svg { flex-shrink: 0; margin-top: 2px; }
.callout .h { font-size: 14px; font-weight: 800; color: var(--accent-deep); margin-bottom: 4px; }
.callout .b { font-size: 15px; line-height: 1.6; color: #3f5a54; }
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--border); border-radius: 12px; padding: 18px 20px; background: var(--surface); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-item .q { font-size: 16px; font-weight: 700; }
/* Real accordions, built on <details> so they open with no JavaScript
   and stay readable to a crawler with the answer already in the markup. */
.sy-faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 12px; overflow: hidden; }
.sy-faq summary { list-style: none; cursor: pointer; padding: 18px 20px; font-weight: 700; font-size: 16px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.sy-faq summary::-webkit-details-marker { display: none; }
.sy-faq summary::after { content: "+"; color: #a8a29e; font-weight: 400; font-size: 20px; line-height: 1; }
.sy-faq details[open] summary::after { content: "\2212"; }
.sy-faq .a { padding: 0 20px 18px; font-family: var(--font-read); font-size: 16px; line-height: 1.75; color: var(--ink-3); margin: 0; }
.cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; background: var(--ink); border-radius: 16px; padding: 28px 32px; margin: 36px 0 8px; flex-wrap: wrap; }
.cta .t { font-size: 20px; font-weight: 800; color: #fff; margin-bottom: 4px; }
.cta .s { font-size: 14px; color: var(--faint-2); }

/* Sidebar */
.sidebar { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 24px; }
.side-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 22px; }
.side-head { font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); margin-bottom: 14px; }
.toc { display: flex; flex-direction: column; gap: 11px; }
.toc a { font-size: 14px; color: var(--muted); border-left: 2px solid var(--border); padding-left: 12px; }
.toc a.active { color: var(--accent); border-left-color: var(--accent); font-weight: 600; }
.side-pdf { background: var(--accent-soft); border: 1px solid var(--accent-border); border-radius: 14px; padding: 22px; }
.side-pdf .h { font-size: 16px; font-weight: 800; color: var(--accent-deep); margin-bottom: 6px; }
.side-pdf .s { font-size: 13px; line-height: 1.55; color: #3f5a54; margin-bottom: 16px; }
.related { display: flex; flex-direction: column; gap: 14px; }
.related a { font-size: 14px; font-weight: 600; color: var(--ink-2); line-height: 1.4; }
.related .hr { width: 100%; height: 1px; background: var(--border-soft); }

/* ===== PDF hub ===== */
.pdf-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.pdf-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.pdf-preview { height: 150px; background: var(--panel-2); border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: center; padding: 20px; }
.pdf-page { width: 96px; height: 118px; background: #fff; border: 1px solid #e2ddd6; border-radius: 4px; box-shadow: 0 6px 16px rgba(28,25,23,0.06); padding: 12px 10px; display: flex; flex-direction: column; align-items: center; gap: 7px; }
.pdf-page .ph { font-family: var(--font-ar); font-size: 13px; color: var(--accent); direction: rtl; }
.pdf-page .ln { width: 100%; height: 3px; background: #efece7; border-radius: 2px; }
.pdf-page .ln.tr { background: #cfe9e2; width: 70%; }
.pdf-body { padding: 20px; }
.pdf-body .t { font-size: 17px; font-weight: 800; margin-bottom: 4px; }
.pdf-body .m { font-size: 13px; color: var(--muted-3); margin-bottom: 16px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.feature { display: flex; gap: 12px; align-items: flex-start; }
.feature svg { flex-shrink: 0; margin-top: 2px; }
.feature .t { font-size: 15px; font-weight: 700; }
.feature .s { font-size: 14px; color: var(--muted-2); line-height: 1.5; }

/* ===== Audio hub ===== */
.player { background: var(--ink); border-radius: 20px; padding: 32px 36px; color: #fff; }
.player-row { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.player-art { width: 96px; height: 96px; border-radius: 18px; background: var(--accent); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.player-meta { flex: 1; min-width: 220px; }
.player-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #6ee7d3; margin-bottom: 6px; }
.player-title { font-size: 24px; font-weight: 800; margin-bottom: 4px; }
.player-sub { font-size: 14px; color: var(--muted-3); }
.wave { display: flex; align-items: center; gap: 4px; margin-top: 16px; height: 26px; }
.wave i { width: 4px; background: #57534e; border-radius: 2px; display: block; }
.wave i.on { background: var(--accent); }
.reciter { display: flex; align-items: center; gap: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px 20px; }
.reciter.active { border-color: var(--accent-border); }
.reciter .avatar { width: 44px; height: 44px; border-radius: 999px; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.reciter.active .avatar { background: var(--accent); }
.reciter .n { font-size: 16px; font-weight: 700; }
.reciter .d { font-size: 13px; color: var(--muted-3); }
.reciter .badge { font-size: 12px; font-weight: 700; color: var(--accent); background: var(--accent-soft); padding: 5px 12px; border-radius: 999px; }

/* ===== Full read ===== */
.read-progress { height: 3px; background: var(--border); }
.read-progress .bar { height: 3px; background: var(--accent); }
.read-toolbar { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; background: var(--surface); border-bottom: 1px solid var(--border); padding: 12px 24px; }
.read-toolbar .lbl { font-size: 13px; font-weight: 700; color: var(--muted-3); }
.read-toolbar .vsep { width: 1px; height: 20px; background: var(--border); }
.read-col { max-width: 760px; margin: 0 auto; padding: 40px 24px 8px; }
/* Sized in em, not px, so the A- / A+ control can scale the whole column
   by setting a font-size on .read-col. A px value here would ignore it. */
.ayah { direction: rtl; text-align: right; font-family: var(--font-ar); font-size: 1.7em; line-height: 2.15; color: var(--ink); }
@media (min-width: 640px) { .ayah { font-size: 2.06em; } }
.ayah .num { display: inline-flex; align-items: center; justify-content: center; width: 2.5em; height: 2.5em; margin: 0 0.5em; border-radius: 999px; border: 1.5px solid var(--accent-border); color: var(--accent); font-family: var(--font-ui); font-size: 0.36em; font-weight: 700; vertical-align: middle; }
.tr { direction: ltr; text-align: left; font-family: var(--font-read); font-size: 1em; line-height: 1.65; color: var(--muted-2); margin-top: 12px; }
.v { padding: 22px 0; border-bottom: 1px solid var(--border-soft); }
.completion { text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 36px; margin: 24px 0 8px; }
.completion .ar { font-family: var(--font-ar); font-size: 30px; color: var(--accent); margin-bottom: 8px; }
.completion .t { font-size: 20px; font-weight: 800; margin-bottom: 6px; }
.completion .s { font-size: 15px; color: var(--muted-2); margin-bottom: 22px; }
.completion .actions { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }

/* ===== Post body (default WP content) ===== */
.entry-content { font-family: var(--font-read); font-size: 17px; line-height: 1.75; color: var(--ink-3); }
.entry-content h2 { font-family: var(--font-ui); font-size: 27px; font-weight: 800; margin: 36px 0 14px; }
.entry-content h3 { font-family: var(--font-ui); font-size: 21px; font-weight: 700; margin: 28px 0 12px; }
.entry-content a { text-decoration: underline; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content img { border-radius: 12px; }

/* ===== Script switcher ===== */
.script-switch { display: inline-flex; border: 1px solid var(--border); border-radius: 9px; overflow: hidden; }
.script-switch .opt { padding: 9px 14px; font-size: 13px; font-weight: 600; color: var(--muted-2); background: var(--surface); }
.script-switch .opt + .opt { border-left: 1px solid var(--border); }
.script-switch .opt:hover { color: var(--accent); }
.script-switch .opt.is-on { background: var(--accent-soft); color: var(--accent); }

/* ===== Mobile navigation ===== */
.mobile-nav { display: none; position: relative; }
.mobile-nav summary { list-style: none; cursor: pointer; color: var(--ink); width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); display: flex; align-items: center; justify-content: center; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav .ico-close { display: none; }
.mobile-nav[open] .ico-open { display: none; }
.mobile-nav[open] .ico-close { display: block; }
.mobile-nav-panel { position: absolute; right: 0; top: calc(100% + 12px); z-index: 60; min-width: 236px; padding: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 14px 34px rgba(28,25,23,0.13); }
.mobile-nav-list { list-style: none; margin: 0 0 10px; padding: 0; }
.mobile-nav-list li + li { border-top: 1px solid var(--border-soft); }
.mobile-nav-list a { display: block; padding: 12px; border-radius: 9px; font-family: var(--font-ui); font-size: 15px; font-weight: 600; color: var(--ink); }
.mobile-nav-list a:hover { background: var(--accent-soft); color: var(--accent); }
.mobile-nav-list .current-menu-item > a { background: var(--accent-soft); color: var(--accent); }
.mobile-nav-panel .btn { width: 100%; justify-content: center; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .pdf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav { display: none; }
  .primary-nav { display: none; }
  .header-cta { display: none; }
  .mobile-nav { display: block; }
  .site-header .wrap { gap: 12px; }
  .footer-cols { grid-template-columns: 1fr; }
  .pdf-grid { grid-template-columns: 1fr; }
  .verse { grid-template-columns: 44px 1fr; gap: 16px; }
  .toolbar { justify-content: flex-start; }
  .cta { flex-direction: column; align-items: flex-start; }
}
