/* ============================================================================
   THE GOSPEL OF JOHN — a slow walk through the Fourth Gospel
   Design system: "Emerald & Gilt"
   Deep evergreen dark, gold illumination, sage & tan warmth.
   Light shining in the darkness — built for long, unhurried reading.
   Independent of the Conquest-to-Kingdom and Prophets studies.
   ----------------------------------------------------------------------------
   1 Tokens · 2 Reset/base · 3 Type · 4 Layout · 5 Ornament · 6 Nav
   7 Hero/headers · 8 Buttons · 9 Panels/cards · 10 Scripture · 11 Pullquote
   12 Callouts · 13 Questions · 14 Figures/maps · 15 Lightbox · 16 Diagram
   17 Contents (TOC) · 18 Accordion · 19 Tables · 20 Lesson page · 21 Footer
   22 Reveal · 23 Utilities · 24 Responsive
   ========================================================================== */

/* -------------------------------------------------- 1. TOKENS ------------ */
:root {
  /* grounds — deep evergreen, night side of the palette */
  --ink:      #06110c;   /* deepest — near-black emerald */
  --abyss:    #08160f;   /* page base */
  --forest:   #0c2016;   /* deep emerald band */
  --forest-2: #0f2a1d;   /* alternating band */
  --pine:     #123324;   /* cards / reading surfaces */
  --pine-2:   #16402c;   /* raised surface / hover */
  --moss:     #1c4d35;   /* lighter accent ground */

  /* text — warm, never stark white */
  --linen:     #ece6d6;  /* primary reading text */
  --linen-dim: #cec8b5;  /* secondary */
  --tan:       #d9c49b;  /* warm tan accent text */
  --tan-dim:   #b8a67f;
  --sage:      #a4c0a4;  /* soft sage — terms, Greek/Hebrew, quiet highlight */
  --sage-dim:  #7f9a80;
  --faint:     #6f8377;  /* muted green-grey — captions, meta */

  /* gold — the illumination, used with restraint */
  --gold:        #c6a24e;
  --gold-bright: #e6c877;
  --gold-deep:   #997a30;
  --gold-pale:   #efe1b9;

  /* jade — the "follow the thread" cross-reference accent */
  --jade:      #5fb2a2;
  --jade-dim:  #47867a;

  /* rare warm-warning / burgundy for tension sections */
  --clay:      #c07a4e;
  --wine:      #a8455a;

  /* lines / glow */
  --line:      rgba(198,162,78,0.16);
  --line-soft: rgba(236,230,214,0.08);
  --line-warm: rgba(198,162,78,0.32);
  --line-sage: rgba(164,192,164,0.18);

  /* shadow / glow */
  --shadow:    0 20px 55px rgba(0,0,0,0.55);
  --shadow-sm: 0 4px 16px rgba(0,0,0,0.42);
  --glow-gold: 0 0 0 1px rgba(198,162,78,0.32), 0 14px 42px rgba(10,45,32,0.5);
  --ring:      0 0 0 3px rgba(198,162,78,0.42);

  /* type — clean serifs for an illuminated, scholarly feel; sans for UI only */
  --f-display: 'Cinzel', Georgia, 'Times New Roman', serif;      /* carved gold */
  --f-head:    'Cormorant Garamond', Georgia, serif;             /* headings */
  --f-read:    'Spectral', Georgia, 'Times New Roman', serif;    /* body / scripture */
  --f-ui:      'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --maxw: 1180px;
  --measure: 42rem;      /* reading column */
  --radius: 8px;
  --radius-lg: 14px;
  --nav-h: 64px;
}

/* -------------------------------------------------- 2. RESET / BASE ------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }

body {
  margin: 0;
  font-family: var(--f-read);
  font-size: 1.12rem;
  line-height: 1.78;
  font-feature-settings: "onum" 1, "liga" 1, "kern" 1;
  color: var(--linen-dim);
  background-color: var(--abyss);
  background-image:
    radial-gradient(130% 80% at 50% -10%, rgba(30,90,62,0.32), transparent 55%),
    radial-gradient(120% 90% at 100% 4%, rgba(198,162,78,0.06), transparent 50%),
    radial-gradient(130% 100% at 0% 100%, rgba(12,40,28,0.55), transparent 55%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  background-attachment: fixed, fixed, fixed, scroll;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
svg { display: block; }
::selection { background: rgba(198,162,78,0.30); color: var(--linen); }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 3px; }
hr { border: 0; height: 1px; background: var(--line); }

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

h1 { font-size: clamp(2.2rem, 4.6vw, 3.2rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.35rem); }
h3 { font-size: clamp(1.4rem, 2.3vw, 1.8rem); font-weight: 600; color: var(--gold-bright); }
h4 { font-size: 1.28rem; font-weight: 600; color: var(--linen); }
h5 { font-size: 0.82rem; font-family: var(--f-ui); letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); font-weight: 700; }

p { margin: 0 0 1.2em; }
p.lead { font-size: clamp(1.18rem, 1.9vw, 1.45rem); line-height: 1.6; color: var(--linen); font-family: var(--f-head); font-weight: 500; }

a { color: var(--gold-bright); text-decoration-thickness: 1px; text-decoration-color: var(--line-warm); text-underline-offset: 3px; transition: color .15s; }
a:hover { color: var(--gold); }
strong, b { font-weight: 700; color: var(--linen); }
em, i { font-style: italic; }
/* Greek / Hebrew transliteration inline */
.gk, .heb { font-style: italic; color: var(--sage); font-weight: 500; }
.smallcaps { font-variant: small-caps; letter-spacing: 0.04em; }
ul, ol { padding-left: 1.3rem; }
li { margin-bottom: 0.4em; }

/* eyebrow / kicker label */
.eyebrow { font-family: var(--f-ui); font-size: 0.73rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin: 0 0 0.9rem; display: flex; align-items: center; gap: 0.65rem; }
.eyebrow::before { content: ""; width: 24px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); display: inline-block; }
.eyebrow.center { justify-content: center; }
.eyebrow.center::after { content: ""; width: 24px; height: 1px; background: linear-gradient(90deg, var(--gold), transparent); display: inline-block; }

/* -------------------------------------------------- 4. LAYOUT ----------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.2rem, 5vw, 3rem); }
.measure { max-width: var(--measure); margin-inline: auto; }
.center { text-align: center; }

section.band { padding-block: clamp(3.4rem, 7vw, 6rem); position: relative; }
section.band.tight { padding-block: clamp(2.6rem, 5vw, 4rem); }
.band.alt { background: var(--forest); border-block: 1px solid var(--line-soft); }
.band.deep { background:
  radial-gradient(120% 90% at 50% 0%, rgba(30,90,62,0.30), transparent 55%),
  linear-gradient(180deg, var(--forest) 0%, var(--abyss) 100%); }
.band.gild { background:
  radial-gradient(90% 120% at 50% 120%, rgba(198,162,78,0.14), transparent 60%),
  radial-gradient(90% 90% at 50% -10%, rgba(30,90,62,0.24), transparent 55%),
  var(--forest); }

.grid { display: grid; gap: 1.5rem; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-auto { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

.section-head { text-align: center; margin-bottom: clamp(1.8rem, 4vw, 3rem); }
.section-head h2 { margin: 0; }
.section-head .kicker { display: block; font-family: var(--f-head); font-style: italic; font-size: 1.25rem; color: var(--sage); margin-top: 0.5rem; }

/* -------------------------------------------------- 5. ORNAMENT --------- */
.ornament { display: flex; align-items: center; justify-content: center; gap: 0.9rem; color: var(--gold); margin: 1.9rem auto; max-width: 360px; }
.ornament::before, .ornament::after { content: ""; height: 1px; flex: 1; background: linear-gradient(90deg, transparent, var(--line-warm)); }
.ornament::after { background: linear-gradient(90deg, var(--line-warm), transparent); }
.ornament .glyph { font-size: 1rem; letter-spacing: 0.3em; filter: drop-shadow(0 0 8px rgba(198,162,78,0.4)); }
.rule-gold { border: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold) 50%, transparent); margin: 2.6rem auto; max-width: 300px; }

.badge { display: inline-flex; align-items: center; gap: 0.4rem; font-family: var(--f-ui); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; padding: 0.3rem 0.7rem; border-radius: 999px; background: rgba(198,162,78,0.1); color: var(--gold-bright); border: 1px solid var(--line-warm); }
.badge.sage { background: rgba(164,192,164,0.1); color: var(--sage); border-color: var(--line-sage); }

/* -------------------------------------------------- 6. NAV -------------- */
.site-nav { position: sticky; top: 0; z-index: 100; background: rgba(6,17,12,0.82); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.site-nav .bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: var(--nav-h); padding-inline: clamp(1.2rem, 5vw, 3rem); max-width: 1320px; margin-inline: auto; }
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--linen); }
.brand .seal { width: 38px; height: 38px; flex: none; filter: drop-shadow(0 0 8px rgba(198,162,78,0.4)); }
.brand .brand-title { font-family: var(--f-display); font-weight: 700; font-size: 1.02rem; letter-spacing: 0.05em; color: var(--gold-bright); line-height: 1; white-space: nowrap; }
.brand .brand-sub { font-family: var(--f-ui); font-size: 0.6rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--sage-dim); white-space: nowrap; margin-top: 0.2rem; }
.nav-links { display: flex; align-items: center; gap: 0.15rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; font-family: var(--f-ui); font-size: 0.85rem; font-weight: 500; color: var(--linen-dim); text-decoration: none; padding: 0.5rem 0.8rem; border-radius: 6px; position: relative; transition: color .15s, background .15s; }
.nav-links a:hover { color: #fff; background: rgba(198,162,78,0.08); }
.nav-links a.active { color: var(--gold-bright); }
.nav-links a.active::after { content: ""; position: absolute; left: 0.8rem; right: 0.8rem; bottom: 0.28rem; height: 2px; background: linear-gradient(90deg, var(--gold), var(--gold-deep)); border-radius: 2px; }
.nav-simple { font-family: var(--f-ui); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.02em; color: var(--gold-bright); text-decoration: none; display: inline-flex; align-items: center; gap: 0.4rem; }
.nav-simple:hover { color: var(--gold); }
.nav-simple .arrow { transition: transform .15s; }
.nav-simple:hover .arrow { transform: translateX(-3px); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-warm); border-radius: 7px; width: 44px; height: 40px; cursor: pointer; color: var(--gold); }
.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; }

/* -------------------------------------------------- 7. HERO / HEADERS --- */
.hero { position: relative; overflow: hidden; background:
  radial-gradient(75% 100% at 50% 120%, rgba(30,90,62,0.45), transparent 60%),
  radial-gradient(55% 65% at 82% -10%, rgba(198,162,78,0.18), transparent 60%),
  linear-gradient(180deg, #06110c 0%, #0b1f16 55%, #06110c 100%); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--line-warm), transparent); }
.hero .wrap { position: relative; z-index: 1; padding-block: clamp(4.5rem, 11vw, 8rem); }
.hero h1 { color: var(--linen); }
.hero .display { background: linear-gradient(172deg, #f6eccf 6%, var(--gold-bright) 48%, var(--gold-deep) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; text-shadow: 0 0 60px rgba(198,162,78,0.2); }
.hero p.lead { color: var(--linen-dim); max-width: 42rem; }
.hero .kicker { color: var(--gold); }

/* interior page header (installment pages) */
.page-head { position: relative; overflow: hidden; border-bottom: 1px solid var(--line-warm); background:
  radial-gradient(60% 120% at 85% -10%, rgba(30,90,62,0.36), transparent 55%),
  radial-gradient(50% 80% at 12% 120%, rgba(198,162,78,0.10), transparent 55%),
  linear-gradient(180deg, var(--forest) 0%, var(--abyss) 100%); }
.page-head .wrap { padding-block: clamp(2.8rem, 6vw, 4.8rem); position: relative; z-index: 1; }
.page-head .ref { font-family: var(--f-ui); letter-spacing: 0.18em; text-transform: uppercase; font-size: 0.76rem; color: var(--gold); font-weight: 600; }
.page-head h1 { margin: 0.28em 0 0.2em; }
.page-head h1 .display { color: var(--gold-bright); }
.page-head p.lead { color: var(--linen); max-width: 44rem; }
.page-head .reading { font-family: var(--f-ui); font-size: 0.9rem; color: var(--sage); margin-top: 0.7rem; }
.crumbs { font-family: var(--f-ui); font-size: 0.78rem; margin-bottom: 1rem; color: var(--faint); }
.crumbs a { color: var(--sage); text-decoration: none; } .crumbs a:hover { color: var(--gold-bright); }
.crumbs span { opacity: 0.5; margin-inline: 0.4rem; }

/* -------------------------------------------------- 8. BUTTONS ---------- */
.btn { display: inline-flex; align-items: center; gap: 0.55rem; font-family: var(--f-ui); font-weight: 600; font-size: 0.92rem; padding: 0.85rem 1.6rem; border-radius: var(--radius); border: 1px solid transparent; text-decoration: none; cursor: pointer; transition: transform .14s, box-shadow .18s, background .15s, border-color .15s; }
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: linear-gradient(180deg, var(--gold-bright), var(--gold-deep)); color: #10130a; box-shadow: 0 6px 20px rgba(120,95,30,0.35); }
.btn-gold:hover { color: #10130a; box-shadow: 0 12px 34px rgba(150,120,40,0.5); }
.btn-ghost { background: transparent; border-color: var(--line-warm); color: var(--gold-bright); }
.btn-ghost:hover { background: rgba(198,162,78,0.1); color: var(--gold-bright); border-color: var(--gold); }
.btn .arrow { transition: transform .15s; } .btn:hover .arrow { transform: translateX(3px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 1.9rem; }
.text-link { font-family: var(--f-ui); font-weight: 600; font-size: 0.9rem; text-decoration: none; color: var(--gold-bright); 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(--line-warm); background: var(--pine); color: var(--gold); cursor: pointer; display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s, box-shadow .2s; box-shadow: var(--shadow-sm); }
.to-top.show { opacity: 1; pointer-events: auto; } .to-top:hover { transform: translateY(-3px); box-shadow: var(--glow-gold); }

/* -------------------------------------------------- 9. PANELS / CARDS --- */
.panel { background: var(--pine); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); padding: 1.6rem 1.7rem; box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .2s, border-color .2s; }
.panel.hover:hover { transform: translateY(-4px); border-color: var(--line-warm); box-shadow: var(--glow-gold); }
.panel h3, .panel h4 { color: var(--linen); }
.panel p { color: var(--linen-dim); }

.feature { display: flex; gap: 1rem; align-items: flex-start; }
.feature .f-icon { flex: none; width: 46px; height: 46px; border-radius: 10px; background: rgba(198,162,78,0.1); color: var(--gold); display: grid; place-items: center; border: 1px solid var(--line-warm); }
.feature h4 { margin: 0 0 0.3rem; } .feature p { margin: 0; color: var(--linen-dim); font-size: 1rem; }

/* key facts strip */
.keyfacts { display: grid; gap: 0; margin: 1.8rem 0; border: 1px solid var(--line-soft); border-radius: var(--radius-lg); overflow: hidden; background: var(--pine); }
.keyfacts > div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 1rem; padding: 0.85rem 1.2rem; border-bottom: 1px solid var(--line-soft); }
.keyfacts > div:last-child { border-bottom: 0; }
.keyfacts dt, .keyfacts .k { font-family: var(--f-ui); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); padding-top: 0.2rem; }
.keyfacts dd, .keyfacts .v { margin: 0; color: var(--linen); }

/* -------------------------------------------------- 10. SCRIPTURE ------- */
/* the primary reading block: left gold rule, warm surface, verse numbers */
.scripture { position: relative; background: linear-gradient(180deg, rgba(22,64,44,0.5), rgba(18,51,36,0.4)); border: 1px solid var(--line-soft); border-left: 3px solid var(--gold); border-radius: var(--radius); padding: 1.25rem 1.5rem 1.1rem 1.7rem; margin: 1.9rem 0; font-family: var(--f-read); font-size: 1.24rem; line-height: 1.62; color: var(--linen); }
.scripture .verse-num { font-family: var(--f-ui); font-size: 0.58rem; font-weight: 700; color: var(--gold); vertical-align: super; margin-right: 0.15rem; }
.scripture cite { display: block; margin-top: 0.7rem; font-style: normal; font-family: var(--f-ui); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.scripture cite::before { content: "— "; color: var(--gold-deep); }
.scripture.q { padding-top: 1.6rem; }
.scripture.q::before { content: "\201C"; position: absolute; left: 0.6rem; top: 0.35rem; font-family: var(--f-display); font-size: 2.2rem; color: rgba(198,162,78,0.4); line-height: 1; }
.ref-pill { font-family: var(--f-ui); font-size: 0.72rem; font-weight: 600; color: var(--gold-bright); background: rgba(198,162,78,0.1); border: 1px solid var(--line-warm); padding: 0.08rem 0.5rem; border-radius: 5px; white-space: nowrap; }

/* -------------------------------------------------- 11. PULLQUOTE ------- */
.pullquote { margin: 2.8rem auto; max-width: 40rem; text-align: center; }
.pullquote p { font-family: var(--f-head); font-style: italic; font-weight: 500; font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.3; color: var(--gold-bright); margin: 0; }
.pullquote .mark { font-family: var(--f-display); font-weight: 700; color: var(--gold); font-size: 2.6rem; line-height: 0.4; display: block; margin-bottom: 0.5rem; filter: drop-shadow(0 0 14px rgba(198,162,78,0.4)); }
.pullquote cite { display: block; margin-top: 1rem; font-style: normal; font-family: var(--f-ui); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sage); }

/* -------------------------------------------------- 12. CALLOUTS -------- */
.callout { border-radius: var(--radius-lg); padding: 1.3rem 1.5rem; margin: 1.9rem 0; background: var(--pine); border: 1px solid var(--line-soft); border-left: 3px solid var(--gold); }
.callout .co-label { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--f-ui); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 0.5rem; color: var(--gold); }
.callout p:last-child { margin-bottom: 0; }
.callout p { color: var(--linen-dim); }

/* word study — Greek / Hebrew */
.callout.term { border-left-color: var(--gold); background: linear-gradient(180deg, rgba(198,162,78,0.08), rgba(18,51,36,0.3)); }
.callout.term .co-label { color: var(--gold-bright); }
.callout.term .word { font-family: var(--f-head); font-size: 1.7rem; font-weight: 700; font-style: italic; color: var(--gold-bright); line-height: 1.2; }
.callout.term .translit { font-family: var(--f-ui); font-size: 0.8rem; letter-spacing: 0.05em; color: var(--sage); display: block; margin-top: 0.15rem; }

/* going deeper — theology / observation */
.callout.deeper { border-left-color: var(--sage); }
.callout.deeper .co-label { color: var(--sage); }

/* follow the thread — the cross-reference "rabbit holes" */
.callout.thread { border-left-color: var(--jade); background: linear-gradient(180deg, rgba(95,178,162,0.08), rgba(18,51,36,0.3)); }
.callout.thread .co-label { color: var(--jade); }
.callout.thread .refs { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.8rem; }

/* historical / textual note */
.callout.note { border-left-color: var(--tan-dim); }
.callout.note .co-label { color: var(--tan); }

/* tension / the hard question */
.callout.tension { border-left-color: var(--clay); background: linear-gradient(180deg, rgba(192,122,78,0.08), rgba(18,51,36,0.3)); }
.callout.tension .co-label { color: var(--clay); }

/* -------------------------------------------------- 13. QUESTIONS ------- */
.questions { background: linear-gradient(160deg, var(--pine-2), var(--pine)); color: var(--linen-dim); border-radius: var(--radius-lg); padding: 1.9rem 2rem; margin: 2.2rem 0; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.questions h4 { color: var(--gold-bright); display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1rem; font-size: 1.35rem; }
.questions ol { margin: 0; padding-left: 0; list-style: none; counter-reset: q; }
.questions ol li { counter-increment: q; position: relative; padding: 0.7rem 0 0.7rem 2.7rem; border-bottom: 1px solid var(--line-soft); line-height: 1.6; }
.questions ol li:last-child { border-bottom: 0; }
.questions ol li::before { content: counter(q); position: absolute; left: 0; top: 0.62rem; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: rgba(198,162,78,0.12); border: 1px solid var(--line-warm); color: var(--gold-bright); font-family: var(--f-ui); font-size: 0.82rem; font-weight: 700; display: grid; place-items: center; }
.questions .q-tag { font-family: var(--f-ui); font-size: 0.58rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.12rem 0.45rem; border-radius: 4px; margin-left: 0.4rem; vertical-align: middle; white-space: nowrap; }
.questions .q-tag.discuss { background: rgba(198,162,78,0.18); color: var(--gold-bright); }
.questions .q-tag.reflect { background: rgba(95,178,162,0.2); color: #b6e2d8; }

/* -------------------------------------------------- 14. FIGURES / MAPS -- */
figure { margin: 2rem 0; }
.figure { margin: 2.2rem auto; }
.figure img { width: 100%; height: auto; display: block; border-radius: var(--radius); border: 1px solid var(--line-soft); box-shadow: var(--shadow); }
.figure.zoom img { cursor: zoom-in; }
.figure figcaption { font-family: var(--f-ui); font-size: 0.84rem; color: var(--faint); line-height: 1.5; margin-top: 0.7rem; }
.figure figcaption b, .figure figcaption strong { color: var(--sage); font-weight: 600; }
.figure .credit { display: block; font-size: 0.72rem; color: var(--faint); margin-top: 0.25rem; }
.figure .credit a { color: var(--sage-dim); }

/* framed treatment for artwork / manuscript pages */
.figure.plate { background: var(--pine); border: 1px solid var(--line-warm); border-radius: var(--radius-lg); padding: 0.7rem; box-shadow: var(--glow-gold); }
.figure.plate img { border-radius: 5px; border-color: rgba(0,0,0,0.3); }
.figure.plate figcaption { padding: 0 0.4rem 0.2rem; }

/* two figures side by side */
.fig-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; margin: 2.2rem 0; }
.fig-duo .figure { margin: 0; }

/* wide / full-bleed within the reading column parent */
.figure.wide { max-width: none; }

/* map figure caption tint */
.figure.map figcaption { color: var(--sage-dim); }

/* -------------------------------------------------- 15. LIGHTBOX -------- */
.lightbox { position: fixed; inset: 0; z-index: 500; display: none; align-items: center; justify-content: center; padding: 3vmin; background: rgba(4,10,7,0.94); cursor: zoom-out; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 95vw; max-height: 92vh; width: auto; height: auto; border: 5px solid var(--pine); border-radius: 4px; box-shadow: 0 30px 90px rgba(0,0,0,0.7); 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.06); border: 1px solid var(--line-warm); color: var(--gold-bright); font-size: 1.5rem; cursor: pointer; display: grid; place-items: center; }
.lightbox .lb-cap { position: absolute; bottom: 1.1rem; left: 0; right: 0; text-align: center; font-family: var(--f-ui); font-size: 0.78rem; letter-spacing: 0.04em; color: var(--sage); padding-inline: 1rem; }

/* -------------------------------------------------- 16. DIAGRAM --------- */
.diagram { background: linear-gradient(180deg, rgba(18,51,36,0.6), rgba(8,22,15,0.6)); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem 1.5rem; margin: 2rem 0; }
.diagram .dg-title { font-family: var(--f-ui); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); text-align: center; margin-bottom: 1.2rem; }
/* stacked "claims / beats" list used for structured close-readings */
.beats { display: grid; gap: 0.7rem; margin: 1.9rem 0; }
.beats .beat { display: grid; grid-template-columns: auto 1fr; gap: 0.9rem 1.1rem; align-items: start; background: var(--pine); border: 1px solid var(--line-soft); border-left: 3px solid var(--gold); border-radius: var(--radius); padding: 1rem 1.2rem; }
.beats .beat .b-ref { font-family: var(--f-ui); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); background: rgba(198,162,78,0.1); border: 1px solid var(--line-warm); border-radius: 5px; padding: 0.25rem 0.5rem; text-align: center; white-space: nowrap; grid-row: span 2; align-self: center; }
.beats .beat h4 { margin: 0; grid-column: 2; font-size: 1.16rem; }
.beats .beat p { margin: 0; grid-column: 2; color: var(--linen-dim); font-size: 1rem; }

/* -------------------------------------------------- 17. CONTENTS (TOC) -- */
.toc { margin: 2rem 0; }
.movement { background: var(--pine); border: 1px solid var(--line-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.8rem 1.3rem; padding: 1.25rem 1.6rem; border-left: 4px solid var(--gold); background: linear-gradient(180deg, var(--pine-2), var(--pine)); }
.movement.m-prologue .mv-head { border-left-color: var(--gold-bright); }
.movement.m-signs    .mv-head { border-left-color: var(--jade); }
.movement.m-glory    .mv-head { border-left-color: var(--gold); }
.movement.m-epilogue .mv-head { border-left-color: var(--sage); }
.mv-num { font-family: var(--f-display); font-weight: 700; font-size: 1.9rem; color: var(--gold); opacity: 0.85; line-height: 1; grid-row: span 2; min-width: 1.6rem; text-align: center; }
.mv-titles .mv-era { font-family: var(--f-ui); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.mv-titles h3 { color: var(--linen); margin: 0.15rem 0 0; font-size: 1.4rem; }
.mv-meta { text-align: right; font-family: var(--f-ui); }
.mv-meta .mv-ref { color: var(--linen-dim); font-size: 0.82rem; font-weight: 600; }
.mv-meta .mv-note { font-size: 0.64rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sage-dim); margin-top: 0.15rem; }
.mv-parts { list-style: none; margin: 0; padding: 0.3rem 0; }
.pt { display: grid; grid-template-columns: 3.4rem 1fr auto; align-items: baseline; gap: 0.9rem; padding: 0.7rem 1.6rem; border-bottom: 1px solid var(--line-soft); text-decoration: none; transition: background .13s; }
.pt:last-child { border-bottom: 0; }
a.pt:hover { background: rgba(198,162,78,0.06); }
.pt-num { font-family: var(--f-ui); font-size: 0.64rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--gold); background: rgba(198,162,78,0.1); border: 1px solid var(--line-warm); border-radius: 5px; padding: 0.2rem 0.35rem; text-align: center; white-space: nowrap; }
.pt-body .pt-title { display: block; font-family: var(--f-head); font-size: 1.22rem; font-weight: 600; color: var(--linen); }
a.pt:hover .pt-title { color: var(--gold-bright); }
.pt-body .pt-ref { display: block; font-family: var(--f-ui); font-size: 0.8rem; color: var(--sage-dim); margin-top: 0.1rem; }
.pt-status { font-family: var(--f-ui); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sage-dim); align-self: center; white-space: nowrap; }
.pt-status.ready { color: var(--gold-bright); }
span.pt { color: inherit; opacity: 0.62; }
span.pt .pt-title { color: var(--linen-dim); }

/* -------------------------------------------------- 18. ACCORDION ------- */
.accordion { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--pine); margin: 1.9rem 0; }
.accordion .ac-item { border-bottom: 1px solid var(--line-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(--f-head); font-size: 1.26rem; font-weight: 600; color: var(--linen); transition: background .15s, color .15s; }
.accordion .ac-head:hover { background: var(--pine-2); color: var(--gold-bright); }
.accordion .ac-head .ac-icon { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-warm); color: var(--gold); display: grid; place-items: center; font-size: 1.1rem; transition: transform .2s, background .2s; }
.accordion .ac-item.open .ac-icon { transform: rotate(45deg); background: var(--gold); color: #10130a; 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; color: var(--linen-dim); }

/* -------------------------------------------------- 19. TABLES ---------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.8rem 0; border-radius: var(--radius-lg); }
.data-table { width: 100%; border-collapse: collapse; font-size: 1rem; color: var(--linen-dim); background: var(--pine); border-radius: var(--radius-lg); overflow: hidden; }
.data-table caption { font-family: var(--f-head); font-style: italic; font-size: 1.15rem; color: var(--sage); margin-bottom: 0.6rem; text-align: left; }
.data-table th { background: var(--pine-2); color: var(--gold); font-family: var(--f-ui); font-size: 0.72rem; font-weight: 700; 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(--line-soft); vertical-align: top; }
.data-table tbody tr:hover { background: rgba(198,162,78,0.05); }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table .num { font-variant-numeric: tabular-nums; color: var(--gold); font-weight: 600; }
.data-table .rowlead { color: var(--linen); font-weight: 600; }

/* -------------------------------------------------- 20. LESSON PAGE ----- */
.lesson { padding-block: clamp(2.6rem, 5vw, 4rem); }
.lesson .col { max-width: var(--measure); margin-inline: auto; }
/* feature blocks break the reading measure and run wide */
.lesson .col > .scripture, .lesson .col > .callout, .lesson .col > .questions,
.lesson .col > .figure, .lesson .col > .fig-duo, .lesson .col > .accordion,
.lesson .col > .keyfacts, .lesson .col > .table-scroll, .lesson .col > .diagram,
.lesson .col > .beats, .lesson .col > .pullquote { max-width: none; }
.lesson .col > .figure.narrow, .lesson .col > .pullquote { max-width: var(--measure); margin-inline: auto; }
.lesson h2 { margin-top: 2.6rem; scroll-margin-top: calc(var(--nav-h) + 24px); }
.lesson h2 .h2-num { font-family: var(--f-display); color: var(--gold); font-weight: 700; font-size: 0.7em; margin-right: 0.5rem; opacity: 0.9; }
.lesson h3 { margin-top: 2rem; }
.lesson .col > p:first-of-type { margin-top: 0; }
/* illuminated drop cap */
.drop::first-letter {
  font-family: var(--f-display); font-weight: 700; font-size: 3.7rem; line-height: 0.72;
  float: left; margin: 0.04em 0.14em 0 0; padding: 0.08em 0.16em 0.02em;
  color: var(--gold-bright);
  background: linear-gradient(160deg, rgba(198,162,78,0.22), rgba(18,51,36,0.4));
  border: 1px solid var(--line-warm); border-radius: 4px;
  text-shadow: 0 0 18px rgba(198,162,78,0.35);
}
.section-rule { border: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--line-warm), transparent); margin: 3rem auto; max-width: var(--measure); }

/* prev / next pager */
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2.8rem; }
.pager a { display: flex; flex-direction: column; gap: 0.25rem; padding: 1.1rem 1.3rem; background: var(--pine); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); text-decoration: none; transition: border-color .18s, background .18s, transform .14s; }
.pager a:hover { border-color: var(--line-warm); background: var(--pine-2); transform: translateY(-2px); }
.pager .pg-dir { font-family: var(--f-ui); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sage-dim); }
.pager .pg-title { font-family: var(--f-head); font-weight: 600; color: var(--gold-bright); font-size: 1.12rem; }
.pager a.next { text-align: right; align-items: flex-end; }
.pager a.disabled { opacity: 0.4; pointer-events: none; }

/* -------------------------------------------------- 21. FOOTER ---------- */
.site-foot { background: #050d09; color: var(--faint); padding-block: 3.4rem 2rem; border-top: 1px solid var(--line-warm); }
.site-foot .foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.4rem; }
.site-foot h5 { color: var(--gold); } .site-foot a { color: var(--linen-dim); text-decoration: none; } .site-foot a:hover { color: var(--gold-bright); }
.site-foot ul { list-style: none; margin: 0; padding: 0; } .site-foot ul li { margin-bottom: 0.45rem; font-size: 0.92rem; }
.site-foot .foot-brand { font-family: var(--f-display); font-weight: 700; font-size: 1.25rem; color: var(--gold-bright); letter-spacing: 0.04em; }
.site-foot p { color: var(--faint); }
.site-foot .copyright { margin-top: 2.4rem; padding-top: 1.4rem; border-top: 1px solid var(--line-soft); font-size: 0.78rem; color: var(--faint); line-height: 1.7; }
.site-foot .copyright a { text-decoration: underline; color: var(--sage-dim); }

/* -------------------------------------------------- 22. REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(22px); 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; } }

/* -------------------------------------------------- 23. UTILITIES ------- */
.mt-0{margin-top:0}.mt-1{margin-top:1rem}.mt-2{margin-top:1.6rem}.mt-3{margin-top:2.4rem}
.mb-0{margin-bottom:0}.mb-2{margin-bottom:1.6rem}
.text-gold{color:var(--gold-bright)}.text-sage{color:var(--sage)}.text-tan{color:var(--tan)}.text-muted{color:var(--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}

/* -------------------------------------------------- 24. RESPONSIVE ------ */
@media (max-width: 900px) {
  .grid.cols-2, .grid.cols-3 { grid-template-columns: 1fr; }
  .fig-duo { grid-template-columns: 1fr; }
  .site-foot .foot-grid { grid-template-columns: 1fr; gap: 1.6rem; }
}
@media (max-width: 760px) {
  body { font-size: 1.05rem; }
  .nav-toggle { display: block; }
  .brand .brand-sub { display: none; }
  html { scroll-padding-top: calc(var(--nav-h) + 8px); }
  .nav-links { position: fixed; inset: 0 0 0 auto; width: min(82vw, 320px); flex-direction: column; align-items: stretch; gap: 0.2rem; background: #081611; padding: 5rem 1.2rem 2rem; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .22s, visibility .22s; box-shadow: var(--shadow); border-left: 1px solid var(--line); z-index: 95; }
  .nav-open .nav-links { opacity: 1; visibility: visible; pointer-events: auto; }
  .nav-links a { padding: 0.8rem 1rem; font-size: 1rem; }
  .nav-links a.active::after { left: 1rem; right: auto; width: 22px; }
  section.band { padding-block: clamp(2.6rem, 9vw, 3.6rem); }
  .movement .mv-head { grid-template-columns: auto 1fr; }
  .mv-meta { grid-column: 1 / -1; text-align: left; }
  .mv-num { grid-row: span 1; }
  .pt { grid-template-columns: 2.9rem 1fr; }
  .pt-status { grid-column: 2; justify-self: start; margin-top: 0.1rem; }
  .questions { padding: 1.4rem 1.3rem; }
  .questions ol li { padding-left: 2.4rem; }
  .pager { grid-template-columns: 1fr; }
  .beats .beat { grid-template-columns: 1fr; }
  .beats .beat .b-ref { grid-row: auto; justify-self: start; }
  .beats .beat h4, .beats .beat p { grid-column: 1; }
}
