/* ============================================================================
   FROM CONQUEST TO KINGDOM — Bible Study Series (Joshua–2 Samuel)
   Design system v2 — "Aged vellum & illuminated ink"
   Muted, warm, editorial. Built for long-form reading and serious study.
   ----------------------------------------------------------------------------
   1. Tokens   2. Reset/base   3. Type   4. Layout   5. Ornament
   6. Nav      7. Subnav       8. Hero/headers  9. Buttons  10. Cards
   11. Figure cards  12. Scripture  13. Pull quote  14. Callouts
   15. Questions  16. Timelines  17. Maps + lightbox  18. Cycle  19. Genealogy
   20. Accordion/tabs  21. Tables  22. Glossary  23. Footer  24. Utilities
   25. Reveal   26. Responsive
   ========================================================================== */

/* ----------------------------------------------------------------------------
   1. TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Warm ink */
  --ink:        #2c2417;
  --ink-soft:   #564b38;
  --ink-faint:  #837459;

  /* Muted parchment family (toned down — easy on the eyes) */
  --parchment:   #d9c79f;   /* page background — muted aged paper */
  --parchment-2: #d0bd8f;   /* alternating panel band (slightly deeper) */
  --parchment-3: #c5b384;   /* deeper accents */
  --surface:     #e3d7b2;   /* cards & reading surfaces (warm, never bright white) */
  --surface-2:   #e9debf;   /* raised surface */
  --cream:       #e3d7b2;   /* legacy alias */

  /* Jewel accents */
  --navy:        #16263f;
  --navy-2:      #0d1a2e;
  --navy-3:      #1e3450;
  --navy-soft:   #2c456a;
  --burgundy:    #6e1f2b;
  --burgundy-2:  #511620;
  --burgundy-soft:#883240;

  /* Gold — used as accent, with restraint */
  --gold:        #b9933a;
  --gold-bright: #d4b25a;
  --gold-deep:   #8a6a22;
  --gold-pale:   #e7d6a8;
  --gold-line:   rgba(150, 116, 48, 0.42);

  /* Hairlines / rules */
  --rule:        rgba(120, 94, 44, 0.24);
  --rule-soft:   rgba(120, 94, 44, 0.14);

  /* Links */
  --link:        #7a2531;
  --link-hover:  #5c1822;

  /* Shadows — soft, warm, restrained */
  --shadow-sm:   0 1px 2px rgba(40, 30, 14, 0.08);
  --shadow:      0 10px 30px rgba(40, 30, 14, 0.10);
  --shadow-lg:   0 24px 60px rgba(20, 16, 8, 0.22);
  --ring:        0 0 0 3px rgba(185, 147, 58, 0.34);

  /* Type */
  --font-display: 'Cinzel', 'Trajan Pro', Georgia, serif;
  --font-head:    'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body:    'Spectral', Georgia, 'Times New Roman', serif;
  --font-ui:      'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Space scale */
  --s1: 0.35rem; --s2: 0.6rem; --s3: 1rem; --s4: 1.6rem; --s5: 2.4rem; --s6: 4rem; --s7: 6rem;

  --maxw: 1200px;
  --measure: 44rem;     /* ~70ch reading column */
  --radius: 7px;
  --radius-lg: 12px;
}

/* ----------------------------------------------------------------------------
   2. RESET / BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 110px; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.15rem;
  line-height: 1.8;
  font-feature-settings: "onum" 1, "liga" 1, "kern" 1;
  color: var(--ink);
  background-color: var(--parchment);
  background-image:
    radial-gradient(120% 90% at 50% -5%, rgba(58,42,16,0.10), transparent 48%),
    radial-gradient(130% 120% at 50% 118%, rgba(58,42,16,0.22), transparent 55%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  background-attachment: fixed, fixed, scroll;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { max-width: 100%; }
svg { display: block; }
::selection { background: var(--gold-pale); color: var(--ink); }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 3px; }
hr { border: 0; height: 1px; background: var(--rule); }

/* ----------------------------------------------------------------------------
   3. TYPOGRAPHY
   -------------------------------------------------------------------------- */
h1,h2,h3,h4,h5 { font-family: var(--font-head); color: var(--navy); line-height: 1.14; margin: 0 0 0.5em; font-weight: 700; letter-spacing: 0.002em; }
.display { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.035em; }

h1 { font-size: clamp(2.4rem, 5vw, 3.7rem); }
h2 { font-size: clamp(1.95rem, 3.4vw, 2.7rem); letter-spacing: 0; }
h3 { font-size: clamp(1.45rem, 2.3vw, 1.9rem); color: var(--burgundy); }
h4 { font-size: 1.32rem; color: var(--ink); font-weight: 600; }
h5 { font-size: 1rem; font-family: var(--font-ui); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-deep); font-weight: 600; }

p { margin: 0 0 1.15em; }
p.lead { font-size: clamp(1.24rem, 1.9vw, 1.5rem); line-height: 1.62; color: var(--ink-soft); font-family: var(--font-head); font-weight: 500; }

a { color: var(--link); text-decoration-thickness: 1px; text-decoration-color: var(--gold-line); text-underline-offset: 3px; transition: color .15s ease; }
a:hover { color: var(--link-hover); }

strong, b { font-weight: 700; color: var(--ink); }
em, i { font-style: italic; }
.hebrew { font-style: italic; color: var(--burgundy); font-weight: 600; }
.smallcaps { font-variant: small-caps; letter-spacing: 0.04em; }

blockquote { margin: 1.6em 0; padding-left: 1.3em; border-left: 2px solid var(--gold-line); font-family: var(--font-head); font-size: 1.3rem; font-style: italic; color: var(--ink-soft); }

/* eyebrow label with flanking detail */
.eyebrow { font-family: var(--font-ui); font-size: 0.76rem; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-deep); margin: 0 0 0.85rem; display: flex; align-items: center; gap: 0.6rem; }
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--gold-line); display: inline-block; }
.eyebrow.center { justify-content: center; }
.eyebrow.center::after { content: ""; width: 26px; height: 1px; background: var(--gold-line); display: inline-block; }
.eyebrow.on-dark { color: var(--gold-bright); }
.eyebrow.on-dark::before, .eyebrow.on-dark::after { background: rgba(212,178,90,0.5); }
.eyebrow.plain::before, .eyebrow.plain::after { display: none; }

/* ----------------------------------------------------------------------------
   4. LAYOUT
   -------------------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.2rem, 5vw, 3rem); }
/* Editorial column: running text holds a readable measure; feature blocks break out wide. */
.prose { max-width: none; }
.prose > p, .prose > h2, .prose > h3, .prose > h4, .prose > h5,
.prose > ul, .prose > ol, .prose > blockquote, .prose > .eyebrow,
.prose > .pullquote, .prose > .scripture, .prose > .callout,
.prose > .keyfacts, .prose > .ornament, .prose > .rule-gold {
  max-width: var(--measure); margin-inline: auto;
}
.prose > .grid, .prose > .data-table, .prose > .refuge-cols,
.prose > .cycle-wrap, .prose > .genealogy { max-width: 100%; }
.prose > .questions, .prose > .accordion, .prose > .vtimeline,
.prose > .tabs, .prose > .map-figure { max-width: var(--measure); margin-inline: auto; }
/* unify every section header: centered eyebrow + heading, body text left within the column */
.prose > h2 { text-align: center; }
.prose > .eyebrow { justify-content: center; }
.prose > .eyebrow::after { content: ""; width: 26px; height: 1px; background: var(--gold-line); display: inline-block; }
.prose.wide { max-width: none; }
.measure { max-width: var(--measure); margin-inline: auto; }
.center { text-align: center; }

section.band { padding-block: clamp(3.2rem, 7vw, var(--s7)); position: relative; }
section.band.tight { padding-block: clamp(2.6rem, 5vw, var(--s6)); }

.band.dark { background:
    linear-gradient(170deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #e8ddc6; }
.band.dark::before, .band.deep::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(100% 85% at 50% 0%, rgba(255,255,255,0.035), transparent 55%); }
.band.dark > .wrap, .band.deep > .wrap { position: relative; z-index: 1; }
:where(.band.dark,.band.deep) h1, :where(.band.dark,.band.deep) h2, :where(.band.dark,.band.deep) h3, :where(.band.dark,.band.deep) h4 { color: #f3ead4; }
:where(.band.dark) h3 { color: var(--gold-bright); }
.band.dark a { color: var(--gold-bright); }
.band.dark p.lead { color: var(--gold-pale); }

.band.deep { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 62%, #2a0f16 150%); color: #e8ddc6; }
:where(.band.deep) h1, :where(.band.deep) h2, :where(.band.deep) h3 { color: #f3ead4; }

.band.panel { background: var(--parchment-2); border-block: 1px solid var(--rule-soft); }

.grid { display: grid; gap: var(--s4); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid.cols-auto { grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); }

.split { display: grid; grid-template-columns: 1.5fr 1fr; gap: var(--s5); align-items: center; }
.split.reverse { grid-template-columns: 1fr 1.5fr; }

/* refined section opener */
.section-head { text-align: center; margin-bottom: clamp(1.6rem, 4vw, 2.8rem); }
.section-head h2 { margin: 0; }
.section-head .kicker { display: block; font-family: var(--font-head); font-style: italic; font-size: 1.2rem; color: var(--ink-faint); margin-top: 0.6rem; }

/* ----------------------------------------------------------------------------
   5. ORNAMENT
   -------------------------------------------------------------------------- */
.rule-gold { border: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-line) 18%, var(--gold) 50%, var(--gold-line) 82%, transparent); margin: var(--s5) auto; max-width: 280px; }
.ornament { display: flex; align-items: center; justify-content: center; gap: 1rem; color: var(--gold-deep); margin: var(--s4) auto; max-width: 420px; }
.ornament::before, .ornament::after { content: ""; height: 1px; flex: 1; background: linear-gradient(90deg, transparent, var(--gold-line)); }
.ornament::after { background: linear-gradient(90deg, var(--gold-line), transparent); }
.ornament .diamond { font-size: 0.85rem; letter-spacing: 0.3em; }

.dropcap::first-letter {
  font-family: var(--font-display); font-weight: 700; font-size: 3.9rem; line-height: 0.74;
  float: left; margin: 0.06em 0.14em 0 0; padding: 0.1em 0.16em 0.04em;
  color: var(--burgundy); background: linear-gradient(165deg, var(--gold-pale), var(--parchment-3));
  border: 1px solid var(--gold-line); border-radius: 3px;
}

.badge { display: inline-flex; align-items: center; gap: 0.4rem; font-family: var(--font-ui); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; padding: 0.3rem 0.7rem; border-radius: 999px; background: var(--parchment-3); color: var(--gold-deep); border: 1px solid var(--rule); }
.badge.navy { background: var(--navy); color: var(--gold-bright); border-color: var(--navy-soft); }
.badge.burgundy { background: var(--burgundy); color: var(--gold-pale); border-color: var(--burgundy-soft); }

/* ----------------------------------------------------------------------------
   6. NAV
   -------------------------------------------------------------------------- */
.site-nav { position: sticky; top: 0; z-index: 100; background: rgba(13, 22, 40, 0.94); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(185,147,58,0.25); }
.site-nav .bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.65rem clamp(1.2rem, 5vw, 3rem); max-width: 1300px; margin-inline: auto; }
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: #f3ead4; }
.brand .seal { width: 38px; height: 38px; flex: none; }
.brand .brand-title { font-family: var(--font-display); font-weight: 700; font-size: 1rem; letter-spacing: 0.06em; color: var(--gold-bright); line-height: 1.05; }
.brand .brand-sub { font-family: var(--font-ui); font-size: 0.64rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-pale); opacity: 0.8; }
.nav-links { display: flex; align-items: center; gap: 0.1rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; font-family: var(--font-ui); font-size: 0.85rem; font-weight: 500; letter-spacing: 0.03em; color: #ddd2bb; text-decoration: none; padding: 0.5rem 0.85rem; border-radius: 5px; position: relative; transition: color .15s, background .15s; }
.nav-links a:hover { color: #fff; background: rgba(255,255,255,0.05); }
.nav-links a.active { color: var(--gold-bright); }
.nav-links a.active::after { content: ""; position: absolute; left: 0.85rem; right: 0.85rem; bottom: 0.25rem; height: 1.5px; background: var(--gold); border-radius: 2px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--navy-soft); border-radius: 6px; width: 44px; height: 40px; cursor: pointer; color: var(--gold-bright); }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { content: ""; display: block; width: 20px; height: 2px; background: currentColor; margin-inline: auto; position: relative; transition: .2s; }
.nav-toggle span::before { position: absolute; top: -6px; } .nav-toggle span::after { position: absolute; top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: rotate(45deg); top: 0; }
.nav-open .nav-toggle span::after { transform: rotate(-45deg); top: 0; }
.progress-bar { position: fixed; top: 0; left: 0; height: 2px; width: 0; background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright)); z-index: 200; transition: width .1s linear; }

/* ----------------------------------------------------------------------------
   7. SUBNAV
   -------------------------------------------------------------------------- */
.subnav { position: sticky; top: 52px; z-index: 80; background: rgba(231, 220, 195, 0.9); backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule); }
.subnav .bar { display: flex; gap: 0.2rem; overflow-x: auto; padding: 0.4rem clamp(1.2rem, 5vw, 3rem); max-width: 1300px; margin-inline: auto; scrollbar-width: thin; }
.subnav a { font-family: var(--font-ui); font-size: 0.8rem; font-weight: 500; white-space: nowrap; color: var(--ink-soft); text-decoration: none; padding: 0.4rem 0.85rem; border-radius: 999px; transition: background .15s, color .15s; }
.subnav a:hover { background: var(--parchment-3); color: var(--burgundy); }
.subnav a.active { background: var(--navy); color: var(--gold-bright); }

/* ----------------------------------------------------------------------------
   8. HERO / HEADERS
   -------------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; color: #e8ddc6; background:
    radial-gradient(ellipse at 72% 0%, rgba(110,31,43,0.4), transparent 56%),
    radial-gradient(ellipse at 8% 100%, rgba(28,52,90,0.55), transparent 55%),
    linear-gradient(165deg, var(--navy) 0%, var(--navy-2) 60%, #090f1e 100%); }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 125%, rgba(0,0,0,0.34), transparent 60%); }
.hero .wrap { position: relative; z-index: 1; padding-block: clamp(4rem, 9vw, 7rem); }
.hero h1 { color: #f6efda; }
.hero .display { background: linear-gradient(178deg, #efe0bb, var(--gold) 72%, var(--gold-deep)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero p.lead { color: var(--gold-pale); max-width: 40rem; }
.hero .kicker { color: var(--gold-bright); }

.page-head { position: relative; color: #e8ddc6; background:
    radial-gradient(ellipse at 88% -20%, rgba(110,31,43,0.38), transparent 56%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); border-bottom: 2px solid var(--gold); }
.page-head::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 100% at 50% 125%, rgba(0,0,0,0.28), transparent 62%); }
.page-head .wrap { padding-block: clamp(2.8rem, 6vw, 5rem); position: relative; z-index: 1; }
.page-head h1 { color: #f6efda; margin-bottom: 0.2em; }
.page-head .ref { font-family: var(--font-ui); letter-spacing: 0.18em; text-transform: uppercase; font-size: 0.78rem; color: var(--gold-bright); }
.page-head p { color: var(--gold-pale); max-width: 44rem; }
.crumbs { font-family: var(--font-ui); font-size: 0.78rem; letter-spacing: 0.04em; margin-bottom: 1rem; color: var(--gold-pale); }
.crumbs a { color: var(--gold-pale); text-decoration: none; } .crumbs a:hover { color: #fff; }
.crumbs span { opacity: 0.5; margin-inline: 0.4rem; }

/* ----------------------------------------------------------------------------
   9. BUTTONS
   -------------------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; gap: 0.55rem; font-family: var(--font-ui); font-weight: 600; font-size: 0.9rem; letter-spacing: 0.01em; padding: 0.8rem 1.5rem; border-radius: var(--radius); border: 1px solid transparent; text-decoration: none; cursor: pointer; transition: transform .14s ease, box-shadow .15s, background .15s; }
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: linear-gradient(180deg, var(--gold-bright), var(--gold)); color: #36280a; box-shadow: var(--shadow-sm); }
.btn-gold:hover { color: #36280a; box-shadow: var(--shadow); }
.btn-outline { background: transparent; border-color: var(--gold-line); color: var(--gold-bright); }
.btn-outline:hover { background: rgba(185,147,58,0.12); color: var(--gold-bright); }
.btn .arrow, .text-link .arrow { transition: transform .15s; }
.btn:hover .arrow { transform: translateX(3px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.7rem; }
.text-link { font-family: var(--font-ui); font-weight: 600; font-size: 0.88rem; text-decoration: none; color: var(--burgundy); display: inline-flex; align-items: center; gap: 0.4rem; }
.text-link:hover .arrow { transform: translateX(3px); }
.to-top { position: fixed; right: 1.3rem; bottom: 1.3rem; z-index: 90; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--gold-line); background: var(--navy); color: var(--gold-bright); cursor: pointer; display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; box-shadow: var(--shadow); }
.to-top.show { opacity: 1; pointer-events: auto; } .to-top:hover { transform: translateY(-3px); background: var(--navy-3); }

/* ----------------------------------------------------------------------------
   10. CARDS
   -------------------------------------------------------------------------- */
.card { background: var(--surface); color: var(--ink); border: 1px solid var(--rule-soft); border-radius: var(--radius-lg); padding: var(--s4); box-shadow: var(--shadow-sm); position: relative; transition: transform .18s ease, box-shadow .18s ease, border-color .18s; }
.card p { color: var(--ink-soft); }
.card h2, .card h3, .card h4, .card h5 { color: var(--navy); }
.card .text-burgundy { color: var(--burgundy); }
.card .text-gold { color: var(--gold-deep); }
.card.hover:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gold-line); }

.module-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--rule-soft); border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .22s ease; }
.module-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); color: var(--ink); }
.module-card .mc-top { padding: 1.3rem 1.45rem 1.1rem; color: #e8ddc6; position: relative; min-height: 120px; display: flex; flex-direction: column; justify-content: flex-end; }
.module-card .mc-top.joshua { background: linear-gradient(150deg, #1e3a5e, #0d1a2e); }
.module-card .mc-top.judges { background: linear-gradient(150deg, #6e1f2b, #380e16); }
.module-card .mc-top.ruth   { background: linear-gradient(150deg, #7e6320, #43350c); }
.module-card .mc-top.samuel { background: linear-gradient(150deg, #21484d, #0d2326); }
.module-card .mc-top.david  { background: linear-gradient(150deg, #352556, #16102b); }
.module-card .mc-num { position: absolute; top: 0.8rem; right: 1.1rem; font-family: var(--font-display); font-size: 2.3rem; color: rgba(255,255,255,0.15); font-weight: 700; }
.module-card .mc-top .eyebrow { color: var(--gold-bright); margin-bottom: 0.25rem; }
.module-card .mc-top .eyebrow::before { background: rgba(212,178,90,0.5); }
.module-card .mc-top h3 { color: #f3ead4; margin: 0; }
.module-card .mc-body { padding: 1.15rem 1.45rem 1.4rem; display: flex; flex-direction: column; gap: 0.85rem; flex: 1; }
.module-card .mc-body p { margin: 0; color: var(--ink-soft); font-size: 1rem; }
.module-card .mc-meta { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: auto; }
.module-card .mc-go { font-family: var(--font-ui); font-weight: 600; font-size: 0.84rem; color: var(--burgundy); display: inline-flex; align-items: center; gap: 0.4rem; }
.module-card .mc-go .arrow { transition: transform .15s; } .module-card:hover .mc-go .arrow { transform: translateX(4px); }

/* weekly progression: movements + weeks (parchment) */
.movement { background: var(--surface); border: 1px solid var(--rule-soft); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 1.5rem; box-shadow: var(--shadow-sm); }
.movement .mv-head { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.7rem 1.2rem; padding: 1.15rem 1.5rem; color: #e8ddc6; border-left: 5px solid var(--gold); }
.movement.m-joshua .mv-head  { background: linear-gradient(150deg,#1e3a5e,#0d1a2e); border-left-color:#3a6ea5; }
.movement.m-judges .mv-head  { background: linear-gradient(150deg,#6e1f2b,#380e16); border-left-color: var(--burgundy-soft); }
.movement.m-ruth .mv-head    { background: linear-gradient(150deg,#7e6320,#43350c); border-left-color: var(--gold-bright); }
.movement.m-samuel .mv-head  { background: linear-gradient(150deg,#21484d,#0d2326); border-left-color:#3c7d84; }
.movement.m-david .mv-head   { background: linear-gradient(150deg,#352556,#16102b); border-left-color:#6a4fa0; }
.movement.m-capstone .mv-head{ background: linear-gradient(150deg,#3d6b4e,#1c3324); border-left-color:#5fa376; }
.mv-num { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; color: rgba(255,255,255,0.32); line-height: 1; grid-row: span 2; min-width: 1.5rem; text-align: center; }
.mv-titles .mv-era { font-family: var(--font-ui); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-bright); }
.mv-titles h3 { color: #f3ead4; margin: 0.1rem 0 0; font-size: 1.4rem; }
.mv-meta { text-align: right; }
.mv-meta .mv-dates { font-family: var(--font-ui); color: var(--gold-pale); font-size: 0.8rem; font-weight: 600; }
.mv-weeks { list-style: none; margin: 0; padding: 0.3rem 0; }
.wk { display: grid; grid-template-columns: 3.1rem 1fr; align-items: baseline; gap: 0.9rem; padding: 0.6rem 1.5rem; border-bottom: 1px solid var(--rule-soft); break-inside: avoid; text-decoration: none; transition: background .13s; }
.wk:last-child { border-bottom: 0; }
a.wk:hover { background: var(--surface-2); }
.wk-num { font-family: var(--font-ui); font-size: 0.64rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--gold-deep); background: var(--parchment-3); border: 1px solid var(--rule); border-radius: 5px; padding: 0.2rem 0.35rem; text-align: center; white-space: nowrap; }
.wk-body .wk-title { font-family: var(--font-head); font-size: 1.16rem; font-weight: 600; color: var(--navy); }
a.wk:hover .wk-title { color: var(--burgundy); }
.wk-body .wk-title .wk-tag { font-family: var(--font-ui); font-size: 0.58rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-deep); background: var(--parchment-3); border: 1px solid var(--rule); border-radius: 999px; padding: 0.05rem 0.5rem; margin-left: 0.5rem; vertical-align: middle; }
.wk-body .wk-ref { font-family: var(--font-ui); font-size: 0.8rem; color: var(--ink-faint); margin-top: 0.05rem; }
@media (min-width: 720px) {
  .mv-weeks.two { display: grid; grid-template-columns: 1fr 1fr; padding-block: 0.4rem; }
  .mv-weeks.two .wk { border-bottom: 1px solid var(--rule-soft); }
  .mv-weeks.two .wk:nth-child(odd) { border-right: 1px solid var(--rule-soft); }
}
@media (max-width: 620px) { .movement .mv-head { grid-template-columns: auto 1fr; } .mv-meta { grid-column: 1 / -1; text-align: left; } .mv-num { grid-row: span 1; } }

.fact { display: flex; gap: 0.95rem; align-items: flex-start; }
.fact .ficon { flex: none; width: 44px; height: 44px; border-radius: 9px; background: var(--parchment-3); color: var(--gold-deep); display: grid; place-items: center; border: 1px solid var(--rule); }
.fact h4 { margin: 0 0 0.25rem; } .fact p { margin: 0; font-size: 1rem; color: var(--ink-soft); }

/* a calmer "definition" inline list for facts (replaces gimmicky stat boxes) */
.keyfacts { display: grid; gap: 0; margin: 1.6rem 0; border: 1px solid var(--rule); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
.keyfacts > div { display: grid; grid-template-columns: 8.5rem 1fr; gap: 1rem; padding: 0.85rem 1.2rem; border-bottom: 1px solid var(--rule-soft); }
.keyfacts > div:last-child { border-bottom: 0; }
.keyfacts dt, .keyfacts .k { font-family: var(--font-ui); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-deep); padding-top: 0.2rem; }
.keyfacts dd, .keyfacts .v { margin: 0; color: var(--ink); }

/* ----------------------------------------------------------------------------
   11. FIGURE (character) CARDS
   -------------------------------------------------------------------------- */
.figure-card { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.figure-card .fc-head { background: linear-gradient(160deg, var(--navy), var(--navy-2)); color: #e8ddc6; padding: 1rem 1.2rem; display: flex; align-items: center; gap: 0.9rem; }
.figure-card .fc-portrait { width: 54px; height: 54px; flex: none; border-radius: 50%; background: var(--navy-3); border: 1.5px solid var(--gold); display: grid; place-items: center; overflow: hidden; }
.figure-card .fc-portrait svg { width: 36px; height: 36px; }
.figure-card .fc-name { font-family: var(--font-display); font-weight: 700; font-size: 1.14rem; color: var(--gold-bright); line-height: 1.1; }
.figure-card .fc-title { font-family: var(--font-ui); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-pale); opacity: 0.85; }
.figure-card .fc-body { padding: 1rem 1.2rem 1.2rem; display: flex; flex-direction: column; gap: 0.7rem; }
.figure-card .fc-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem 0.9rem; margin: 0; padding: 0; list-style: none; }
.figure-card .fc-stats li { font-size: 0.9rem; line-height: 1.35; }
.figure-card .fc-stats .k { font-family: var(--font-ui); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-deep); display: block; }
.figure-card .fc-stats .v { color: var(--ink); }
.figure-card .fc-verse { font-family: var(--font-head); font-style: italic; font-size: 1.08rem; color: var(--burgundy); border-top: 1px solid var(--rule); padding-top: 0.7rem; }
.figure-card .fc-verse cite { display: block; font-style: normal; font-family: var(--font-ui); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); margin-top: 0.3rem; }
.figure-card .fc-lesson { font-size: 0.95rem; color: var(--ink-soft); } .figure-card .fc-lesson b { color: var(--burgundy); }

/* ----------------------------------------------------------------------------
   12. SCRIPTURE
   -------------------------------------------------------------------------- */
.scripture { position: relative; background: var(--surface-2); border: 1px solid var(--rule); border-left: 3px solid var(--gold); border-radius: var(--radius); padding: 1.4rem 1.6rem 1.2rem 2.7rem; margin: 1.8rem 0; font-family: var(--font-head); font-size: 1.34rem; line-height: 1.55; color: var(--ink); box-shadow: var(--shadow-sm); }
.scripture::before { content: "\201C"; position: absolute; left: 0.55rem; top: 0.05rem; font-family: var(--font-display); font-size: 2.6rem; color: var(--gold-line); line-height: 1; }
.scripture .verse-num { font-family: var(--font-ui); font-size: 0.6rem; font-weight: 700; color: var(--gold-deep); vertical-align: super; margin-right: 0.15rem; }
.scripture cite { display: block; margin-top: 0.7rem; font-style: normal; font-family: var(--font-ui); font-size: 0.76rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--burgundy); }
.scripture cite::before { content: "— "; color: var(--gold-deep); }
.scripture.dark { background: linear-gradient(160deg, var(--navy), var(--navy-2)); color: var(--gold-pale); border-color: var(--navy-soft); border-left-color: var(--gold); }
.scripture.dark::before { color: rgba(185,147,58,0.4); } .scripture.dark cite { color: var(--gold-bright); }
.ref-pill { font-family: var(--font-ui); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.03em; color: var(--burgundy); background: var(--parchment-3); border: 1px solid var(--rule); padding: 0.08rem 0.45rem; border-radius: 4px; white-space: nowrap; }

/* ----------------------------------------------------------------------------
   13. PULL QUOTE (editorial)
   -------------------------------------------------------------------------- */
.pullquote { margin: 2.2rem auto; max-width: 36rem; text-align: center; }
.pullquote p { font-family: var(--font-head); font-style: italic; font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.35; color: var(--burgundy); margin: 0; }
.pullquote .mark { font-family: var(--font-display); color: var(--gold); font-size: 2.4rem; line-height: 0.5; display: block; margin-bottom: 0.4rem; }
.pullquote cite { display: block; margin-top: 0.8rem; font-style: normal; font-family: var(--font-ui); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); }

/* ----------------------------------------------------------------------------
   14. CALLOUTS — tonal, refined (accent bar + muted ground)
   -------------------------------------------------------------------------- */
.callout { border-radius: var(--radius-lg); padding: 1.25rem 1.5rem; margin: 1.8rem 0; background: var(--surface); border: 1px solid var(--rule-soft); border-left: 3px solid var(--gold); position: relative; }
.callout .co-label { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--font-ui); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 0.5rem; color: var(--gold-deep); }
.callout p:last-child { margin-bottom: 0; }
.callout.insight { border-left-color: var(--gold); } .callout.insight .co-label { color: var(--gold-deep); }
.callout.term { border-left-color: var(--burgundy); } .callout.term .co-label { color: var(--burgundy); }
.callout.term .hebrew-word { font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; color: var(--burgundy); }
.callout.term .translit { font-family: var(--font-ui); font-size: 0.78rem; letter-spacing: 0.06em; color: var(--ink-faint); }
.callout.leader { border-left-color: #3d6b4e; background: #e6e9df; } .callout.leader .co-label { color: #2f5d40; }
.callout.deeper { border-left-color: var(--navy-soft); background: #e3e3da; } .callout.deeper .co-label { color: var(--navy-soft); }
.callout.warn { border-left-color: #a9682c; background: #ece0d0; } .callout.warn .co-label { color: #8a4f1c; }

/* ----------------------------------------------------------------------------
   15. QUESTIONS
   -------------------------------------------------------------------------- */
.questions { background: linear-gradient(180deg, var(--navy), var(--navy-2)); color: #e8ddc6; border-radius: var(--radius-lg); padding: 1.8rem 1.9rem; margin: 2rem 0; border: 1px solid var(--navy-soft); box-shadow: var(--shadow); }
.questions h4 { color: var(--gold-bright); font-family: var(--font-display); letter-spacing: 0.04em; display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1rem; font-size: 1.2rem; }
.questions ol { margin: 0; padding-left: 0; list-style: none; counter-reset: q; }
.questions ol li { counter-increment: q; position: relative; padding: 0.6rem 0 0.6rem 2.5rem; border-bottom: 1px solid rgba(255,255,255,0.08); line-height: 1.65; }
.questions ol li:last-child { border-bottom: 0; }
.questions ol li::before { content: counter(q); position: absolute; left: 0; top: 0.6rem; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: rgba(185,147,58,0.16); border: 1px solid var(--gold-line); color: var(--gold-bright); font-family: var(--font-ui); font-size: 0.8rem; font-weight: 700; display: grid; place-items: center; }
.questions .q-tag { font-family: var(--font-ui); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.1rem 0.4rem; border-radius: 3px; margin-left: 0.4rem; vertical-align: middle; white-space: nowrap; }
.questions .q-tag.discuss { background: rgba(212,178,90,0.18); color: var(--gold-bright); }
.questions .q-tag.reflect { background: rgba(136,50,64,0.4); color: #f0c3cb; }

/* ----------------------------------------------------------------------------
   16. TIMELINES
   -------------------------------------------------------------------------- */
.timestrip { position: relative; margin: 2.5rem 0 0.5rem; padding: 0.5rem 0; overflow-x: auto; }
.timestrip .track { display: flex; align-items: flex-start; min-width: min(100%, 940px); position: relative; padding-top: 6px; }
.timestrip .track::before { content: ""; position: absolute; left: 7%; right: 7%; top: 14px; height: 2px; background: linear-gradient(90deg, transparent, var(--gold) 8%, var(--gold) 92%, transparent); z-index: 0; }
.timestrip .stop { flex: 1; text-align: center; position: relative; padding: 0 0.6rem; min-width: 120px; }
.timestrip .stop .dot { width: 16px; height: 16px; border-radius: 50%; background: var(--gold-bright); border: 2px solid var(--navy); box-shadow: 0 0 0 5px var(--navy); margin: 0 auto; position: relative; z-index: 1; }
.timestrip .stop .yr { font-family: var(--font-ui); font-weight: 700; font-size: 0.8rem; color: var(--gold-bright); margin-top: 0.95rem; }
.timestrip .stop .lbl { font-size: 0.9rem; color: var(--gold-pale); line-height: 1.3; margin-top: 0.15rem; }

.vtimeline { position: relative; margin: 2rem 0; padding-left: 2.3rem; }
.vtimeline::before { content: ""; position: absolute; left: 0.5rem; top: 0.4rem; bottom: 0.4rem; width: 2px; background: linear-gradient(180deg, var(--gold), var(--gold-line)); }
.vtimeline .ev { position: relative; margin-bottom: 1.7rem; }
.vtimeline .ev::before { content: ""; position: absolute; left: -2.05rem; top: 0.4rem; width: 13px; height: 13px; border-radius: 50%; background: var(--surface); border: 3px solid var(--gold); }
.vtimeline .ev.key::before { background: var(--burgundy); border-color: var(--gold); }
.vtimeline .ev .ev-ref { font-family: var(--font-ui); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-deep); }
.vtimeline .ev h4 { margin: 0.1rem 0 0.3rem; } .vtimeline .ev p { margin: 0; color: var(--ink-soft); }

/* ----------------------------------------------------------------------------
   17. MAPS + LIGHTBOX
   -------------------------------------------------------------------------- */
.map-figure { margin: 1.8rem auto; }
.map-figure figcaption, .map-caption { font-family: var(--font-ui); font-size: 0.82rem; color: var(--ink-faint); text-align: center; margin-top: 0.7rem; letter-spacing: 0.01em; }
.map-photo { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: 0.6rem; box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: center; }
.map-photo img { max-width: 100%; max-height: 72vh; width: auto; height: auto; border-radius: 5px; display: block; cursor: zoom-in; }
.map-photo .zoom-hint { font-family: var(--font-ui); font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-faint); margin-top: 0.45rem; display: inline-flex; align-items: center; gap: 0.35rem; }
.map-credit { font-family: var(--font-ui); font-size: 0.7rem; color: var(--ink-faint); text-align: center; margin: 0.4rem 0 0; letter-spacing: 0.01em; }
.map-credit a { color: var(--gold-deep); text-decoration: none; } .map-credit a:hover { text-decoration: underline; }

/* artwork / illustration figures — paintings + engravings interlaced in the reading */
.figure { margin: 2rem auto; max-width: var(--measure); }
.figure.wide { max-width: 100%; }
.figure img { width: 100%; height: auto; display: block; border-radius: var(--radius); border: 1px solid var(--rule); box-shadow: var(--shadow); }
.figure.zoom img { cursor: zoom-in; }
.figure figcaption { font-family: var(--font-ui); font-size: 0.83rem; color: var(--ink-faint); line-height: 1.5; margin-top: 0.7rem; }
.figure figcaption b, .figure figcaption strong { color: var(--burgundy); font-weight: 600; }
.figure .credit { display: block; font-size: 0.72rem; color: var(--ink-faint); margin-top: 0.25rem; }
.figure .credit a { color: var(--gold-deep); }
.figure.plate { background: var(--surface); border: 1px solid var(--gold-line); border-radius: var(--radius-lg); padding: 0.55rem; box-shadow: var(--shadow); }
.figure.plate img { border-radius: 5px; border-color: rgba(120,94,44,0.30); }
.figure.plate figcaption { padding: 0 0.45rem 0.25rem; }
.fig-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; margin: 2rem auto; max-width: var(--measure); }
.fig-duo.wide { max-width: 100%; }
.fig-duo .figure { margin: 0; max-width: none; }
@media (max-width: 760px) { .fig-duo { grid-template-columns: 1fr; } }

/* allotment explorer layout */
.map-layout { display: grid; grid-template-columns: 1.25fr 1fr; gap: 1.6rem; align-items: start; }
.map-info { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: 1.3rem 1.5rem; }
.map-info .mi-eyebrow { font-family: var(--font-ui); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-deep); }
.map-info h4 { margin: 0.25rem 0 0.6rem; color: var(--burgundy); font-size: 1.4rem; }
.map-info .mi-default { color: var(--ink-faint); font-style: italic; }
.map-info dl { margin: 0.5rem 0 0; } .map-info dt { font-family: var(--font-ui); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-deep); margin-top: 0.7rem; } .map-info dd { margin: 0.1rem 0 0; }
.map-info.just-updated { animation: miFlash .4s ease; }
@keyframes miFlash { from { background: var(--gold-pale); } to { background: var(--surface); } }
.tribe-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 1.1rem; }
.tribe-chip { font-family: var(--font-ui); font-size: 0.8rem; font-weight: 600; cursor: pointer; padding: 0.35rem 0.75rem; border-radius: 999px; border: 1px solid var(--gold-line); background: var(--surface); color: var(--ink-soft); transition: background .15s, color .15s, opacity .15s, border-color .15s; }
.tribe-chip:hover { background: var(--parchment-3); color: var(--burgundy); }
.tribe-chip.dim { opacity: 0.4; border-color: var(--rule-soft); }

.refuge-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; margin: 1.6rem 0; }
.refuge-side { background: var(--surface); border: 1px solid var(--rule-soft); border-top: 3px solid var(--gold); border-radius: var(--radius-lg); padding: 1.3rem 1.5rem; }
.refuge-side h4 { color: var(--burgundy); margin-top: 0; }
.refuge-side ul { list-style: none; margin: 0; padding: 0; }
.refuge-side li { padding: 0.55rem 0; border-bottom: 1px solid var(--rule-soft); } .refuge-side li:last-child { border-bottom: 0; }
.refuge-side .rc-name { font-family: var(--font-head); font-size: 1.2rem; font-weight: 700; color: var(--navy); }
.refuge-side .rc-note { font-size: 0.92rem; color: var(--ink-soft); }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 500; display: none; align-items: center; justify-content: center; padding: 3vmin; background: rgba(14,11,6,0.93); cursor: zoom-out; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 95vw; max-height: 92vh; width: auto; height: auto; border: 6px solid var(--surface); border-radius: 4px; box-shadow: 0 30px 90px rgba(0,0,0,0.6); cursor: default; }
.lightbox .lb-close { position: absolute; top: 1.1rem; right: 1.3rem; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,0.08); border: 1px solid var(--gold-line); color: var(--gold-bright); font-size: 1.5rem; cursor: pointer; display: grid; place-items: center; }
.lightbox .lb-hint { position: absolute; bottom: 1.2rem; left: 0; right: 0; text-align: center; font-family: var(--font-ui); font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(231,214,168,0.7); }

/* legacy SVG map text classes (used by cycle diagram) */
.tribe-label { font-family: var(--font-head); font-weight: 700; font-size: 15px; fill: #fff; paint-order: stroke; stroke: rgba(20,18,14,0.5); stroke-width: 2.6px; pointer-events: none; }
.route-label { font-family: var(--font-ui); font-size: 11px; font-weight: 600; fill: var(--navy-2); paint-order: stroke; stroke: #fff; stroke-width: 2.6px; pointer-events: none; }

/* ----------------------------------------------------------------------------
   18. CYCLE DIAGRAM
   -------------------------------------------------------------------------- */
.cycle-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 2.4rem; align-items: center; }
.cycle-stage svg { width: 100%; max-width: 440px; margin-inline: auto; }
.cycle-node { cursor: pointer; transition: transform .15s; } .cycle-node:hover { filter: brightness(1.06); }
.cycle-node circle { transition: stroke-width .15s; } .cycle-node.active circle { stroke-width: 5; }
.cycle-detail { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: 1.4rem 1.6rem; }
.cycle-detail .step-num { font-family: var(--font-display); font-size: 0.95rem; color: var(--gold-deep); letter-spacing: 0.1em; }
.cycle-detail h4 { color: var(--burgundy); font-size: 1.5rem; margin: 0.2rem 0 0.6rem; }

/* ----------------------------------------------------------------------------
   19. GENEALOGY
   -------------------------------------------------------------------------- */
.genealogy { margin: 2rem 0; }
.gen-line { display: flex; flex-direction: column; align-items: center; gap: 0; }
.gen-node { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 0.7rem 1.2rem; text-align: center; min-width: 188px; box-shadow: var(--shadow-sm); }
.gen-node .gn-name { font-family: var(--font-display); font-weight: 700; color: var(--navy); font-size: 1.08rem; }
.gen-node .gn-note { font-family: var(--font-ui); font-size: 0.7rem; color: var(--ink-faint); letter-spacing: 0.03em; }
.gen-node.highlight { background: linear-gradient(180deg, #f5ecd3, var(--gold-pale)); border-color: var(--gold); }
.gen-node.messiah { background: linear-gradient(160deg, var(--burgundy), var(--burgundy-2)); border-color: var(--gold); }
.gen-node.messiah .gn-name { color: var(--gold-bright); } .gen-node.messiah .gn-note { color: var(--gold-pale); }
.gen-connector { width: 2px; height: 1.5rem; background: var(--gold-line); }
.gen-connector.dashed { background: repeating-linear-gradient(180deg, var(--gold-line) 0 4px, transparent 4px 9px); }
.gen-couple { display: flex; align-items: center; gap: 0.8rem; } .gen-couple .plus { color: var(--gold-deep); font-family: var(--font-head); font-size: 1.4rem; }

/* ----------------------------------------------------------------------------
   20. ACCORDION / TABS
   -------------------------------------------------------------------------- */
.accordion { border: 1px solid var(--rule); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); margin: 1.6rem 0; }
.accordion .ac-item { border-bottom: 1px solid var(--rule-soft); } .accordion .ac-item:last-child { border-bottom: 0; }
.accordion .ac-head { width: 100%; text-align: left; background: none; border: 0; cursor: pointer; padding: 1.15rem 1.4rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-family: var(--font-head); font-size: 1.3rem; font-weight: 600; color: var(--navy); transition: background .15s; }
.accordion .ac-head:hover { background: var(--surface-2); }
.accordion .ac-head .ac-icon { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--gold-line); color: var(--gold-deep); display: grid; place-items: center; font-size: 1.1rem; transition: transform .2s; }
.accordion .ac-item.open .ac-icon { transform: rotate(45deg); background: var(--gold); color: #fff; border-color: var(--gold); }
.accordion .ac-panel { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.accordion .ac-panel-inner { padding: 0 1.4rem 1.35rem; }
.accordion .ac-head .ac-sub { font-family: var(--font-ui); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold-deep); }

.tabs { margin: 1.6rem 0; }
.tab-strip { display: flex; flex-wrap: wrap; gap: 0.3rem; border-bottom: 1px solid var(--rule); margin-bottom: 1.3rem; }
.tab-btn { font-family: var(--font-ui); font-weight: 600; font-size: 0.9rem; cursor: pointer; background: none; border: 0; padding: 0.7rem 1.1rem; color: var(--ink-faint); border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .15s, border-color .15s; }
.tab-btn:hover { color: var(--burgundy); } .tab-btn.active { color: var(--burgundy); border-bottom-color: var(--gold); }
.tab-panel { display: none; } .tab-panel.active { display: block; animation: fade .3s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ----------------------------------------------------------------------------
   21. TABLES
   -------------------------------------------------------------------------- */
.data-table { width: 100%; border-collapse: collapse; margin: 1.6rem 0; font-size: 1rem; color: var(--ink); background: var(--surface); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.data-table td { color: var(--ink); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.6rem 0; border-radius: var(--radius-lg); }
.table-scroll .data-table { margin: 0; }
.data-table caption { font-family: var(--font-head); font-style: italic; font-size: 1.1rem; color: var(--ink-faint); margin-bottom: 0.6rem; text-align: left; }
.data-table th { background: var(--navy); color: var(--gold-pale); font-family: var(--font-ui); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; text-align: left; padding: 0.75rem 0.95rem; }
.data-table td { padding: 0.72rem 0.95rem; border-bottom: 1px solid var(--rule-soft); vertical-align: top; }
.data-table tbody tr:nth-child(even) { background: rgba(212,197,164,0.22); }
.data-table tbody tr:hover { background: var(--gold-pale); }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table .num { font-family: var(--font-ui); font-variant-numeric: tabular-nums; color: var(--burgundy); font-weight: 600; }

/* ----------------------------------------------------------------------------
   22. GLOSSARY
   -------------------------------------------------------------------------- */
.gloss { border-bottom: 1.5px dotted var(--gold); cursor: help; color: var(--burgundy); font-weight: 600; position: relative; }
.gloss .gloss-pop { position: absolute; left: 50%; bottom: 130%; transform: translateX(-50%) translateY(6px); width: 260px; background: var(--navy-2); color: #e8ddc6; border: 1px solid var(--gold-line); border-radius: 8px; padding: 0.7rem 0.85rem; font-family: var(--font-body); font-weight: 400; font-size: 0.92rem; line-height: 1.45; opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; z-index: 50; box-shadow: var(--shadow); }
.gloss .gloss-pop strong { color: var(--gold-bright); }
.gloss .gloss-pop::after { content: ""; position: absolute; left: 50%; top: 100%; transform: translateX(-50%); border: 7px solid transparent; border-top-color: var(--navy-2); }
.gloss:hover .gloss-pop, .gloss:focus .gloss-pop, .gloss.open .gloss-pop { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }

/* ----------------------------------------------------------------------------
   23. FOOTER
   -------------------------------------------------------------------------- */
.site-foot { background: var(--navy-2); color: var(--gold-pale); padding-block: var(--s6) var(--s4); border-top: 2px solid var(--gold); }
.site-foot .foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.4rem; }
.site-foot h5 { color: var(--gold-bright); } .site-foot a { color: var(--gold-pale); text-decoration: none; } .site-foot a:hover { color: #fff; text-decoration: underline; }
.site-foot ul { list-style: none; margin: 0; padding: 0; } .site-foot ul li { margin-bottom: 0.4rem; font-size: 0.95rem; }
.site-foot .foot-brand { font-family: var(--font-display); font-size: 1.2rem; color: var(--gold-bright); }
.site-foot .copyright { margin-top: var(--s4); padding-top: var(--s3); border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.8rem; color: rgba(231,214,168,0.66); line-height: 1.7; }
.site-foot .copyright a { text-decoration: underline; }

/* ----------------------------------------------------------------------------
   24. UTILITIES
   -------------------------------------------------------------------------- */
.mt-0{margin-top:0} .mt-1{margin-top:var(--s3)} .mt-2{margin-top:var(--s4)} .mt-3{margin-top:var(--s5)}
.mb-0{margin-bottom:0} .mb-1{margin-bottom:var(--s3)} .mb-2{margin-bottom:var(--s4)}
.text-burgundy{color:var(--burgundy)} .text-gold{color:var(--gold-deep)} .text-muted{color:var(--ink-faint)}
.nowrap{white-space:nowrap} .hidden{display:none !important}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}
.pill-list{display:flex;flex-wrap:wrap;gap:0.4rem;list-style:none;margin:0.6rem 0;padding:0}
.pill-list li{font-family:var(--font-ui);font-size:0.78rem;background:var(--parchment-3);border:1px solid var(--rule);color:var(--ink-soft);padding:0.25rem 0.7rem;border-radius:999px}

/* ----------------------------------------------------------------------------
   25. REVEAL
   -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ----------------------------------------------------------------------------
   26. RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .grid.cols-2,.grid.cols-3,.grid.cols-4 { grid-template-columns: 1fr; }
  .split,.split.reverse { grid-template-columns: 1fr; }
  .map-layout { grid-template-columns: 1fr; }
  .cycle-wrap { grid-template-columns: 1fr; }
  .site-foot .foot-grid { grid-template-columns: 1fr; gap: 1.6rem; }
}
@media (max-width: 760px) {
  body { font-size: 1.08rem; }
  .nav-toggle { display: block; }
  .site-nav .bar { padding-block: 0.5rem; }
  .brand .seal { width: 33px; height: 33px; }
  .brand .brand-sub { display: none; }
  .brand .brand-title { font-size: 0.98rem; }
  .subnav { position: static; }
  .subnav .bar { padding-block: 0.5rem; }
  html { scroll-padding-top: 64px; }

  /* timeline goes vertical on mobile (no more sideways scrolling for 7 stops) */
  .timestrip { overflow-x: visible; padding: 0.5rem 0; }
  .timestrip .track { flex-direction: column; min-width: 0; padding: 0.3rem 0 0.3rem 1.9rem; align-items: stretch; }
  .timestrip .track::before { left: 6px; right: auto; top: 12px; bottom: 12px; width: 2px; height: auto; background: linear-gradient(180deg, transparent, var(--gold) 4%, var(--gold) 96%, transparent); }
  .timestrip .stop { text-align: left; min-width: 0; padding: 0.6rem 0; }
  .timestrip .stop .dot { position: absolute; left: calc(-1.9rem + 7px); top: 0.85rem; transform: translateX(-50%); margin: 0; }
  .timestrip .stop .yr { margin-top: 0; }
  .timestrip .stop .lbl { margin-top: 0.1rem; }
  /* off-canvas drawer: explicit full height so links never spill out of the box */
  .nav-links { position: fixed; top: 0; right: 0; bottom: 0; left: auto; height: 100vh; height: 100dvh; width: min(78vw, 300px); margin: 0; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0.25rem; background: var(--navy-2); padding: 4.6rem 1.1rem 1.6rem; overflow-y: auto; -webkit-overflow-scrolling: touch; opacity: 0; visibility: hidden; transform: translateX(16px); transition: opacity .2s ease, visibility .2s ease, transform .2s ease; box-shadow: -14px 0 46px rgba(0,0,0,0.45); border-left: 1px solid var(--navy-soft); z-index: 90; }
  .nav-open .nav-links { opacity: 1; visibility: visible; transform: none; }
  .nav-links a { padding: 0.9rem 0.95rem; font-size: 1.05rem; border-radius: 8px; color: #e6dcc4; }
  .nav-links a:hover, .nav-links a:focus-visible { background: rgba(255,255,255,0.06); color: #fff; }
  .nav-links a.active { background: rgba(185,147,58,0.16); color: var(--gold-bright); }
  .nav-links a.active::after { display: none; }
  /* dimming backdrop behind the drawer (created by app.js) */
  .nav-backdrop { position: fixed; inset: 0; background: rgba(8,10,20,0.55); opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s ease; z-index: 89; }
  .nav-open .nav-backdrop { opacity: 1; visibility: visible; }
  body.nav-open { overflow: hidden; }
  .grid.cols-auto { grid-template-columns: 1fr; }
  .scripture { font-size: 1.18rem; padding-left: 2.3rem; }
  .map-photo img { max-height: 72vh; }
  .keyfacts > div { grid-template-columns: 1fr; gap: 0.15rem; }

  /* wide tables scroll within their .table-scroll wrapper (defined globally) */

  /* genealogy: stack each couple vertically so it fits a phone */
  .gen-couple { flex-direction: column; gap: 0.4rem; }
  .gen-couple .plus { transform: none; }
  .gen-node { min-width: 0; width: 100%; max-width: 280px; }

  /* tighten section rhythm and headings on small screens */
  section.band { padding-block: clamp(2.4rem, 9vw, 3.4rem); }
  h1 { font-size: clamp(2rem, 9vw, 2.6rem); }
  h2 { font-size: clamp(1.6rem, 7vw, 2.1rem); }
  .pullquote p { font-size: clamp(1.3rem, 6vw, 1.6rem); }
  .questions { padding: 1.3rem 1.2rem; }
  .questions ol li { padding-left: 2.2rem; }
  .card { padding: 1.3rem 1.3rem; }
  .scripture { padding: 1.1rem 1.1rem 1rem 2.2rem; }
}
@media (max-width: 480px) {
  .figure-card .fc-stats { grid-template-columns: 1fr; }
  .crumbs, .page-head .ref { font-size: 0.72rem; }
}

/* small-image width caps (avoid upscaling low-res art) */
.figure.sm, .lesson .col > .figure.sm { max-width: 400px; }
.figure.med, .lesson .col > .figure.med { max-width: 560px; }
