/* nm-site.css: the ONE stylesheet for noblemind.study (redesign Phase 1, 2026-10-04).
   Built from the Phase 0 mockup Paul approved: Option A (Cardo headings, Figtree for UI and reading text),
   type enlarged (body 20/21px, chapter text 22/24px, nothing under 18px), chapter column 1080px,
   parchment pages with the badge's navy header, night reading on book pages, one accent per book.
   Change a color HERE. Per-book accents live in nm-books.css (generated by tools/gen_book_accents.py).
   Contrast is checked by tools/check_contrast.py, which reads the tokens below. Fonts are self-hosted
   (offline-first); licenses in /assets/fonts/OFL-*.txt. */

@font-face { font-family: "Cardo"; src: url("fonts/cardo-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Cardo"; src: url("fonts/cardo-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Cardo"; src: url("fonts/cardo-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("fonts/figtree-var.woff2") format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("fonts/figtree-var-italic.woff2") format("woff2"); font-weight: 300 900; font-style: italic; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/plexmono-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  color-scheme: light;
  /* NobleMind's own palette, carried onto light paper (brand brief: ink, parchment, lamplight, Berean) */
  --page: #f6f0e3;          /* parchment page */
  --card: #fffcf5;          /* a card or reading sheet */
  --sand: #ece2cc;          /* a quiet band */
  --line: #9c8660;          /* every visible border, 2px (3.3:1 on the page) */
  --line-soft: #d8c9a8;     /* dividers inside a card only */
  --night: #2a3344;         /* the header band: the logo's own navy, so the badge sits on it seamlessly */
  --night-2: #161c27;       /* the footer and the deepest band */
  --ink: #1f1b16;           /* body text */
  --muted: #5a5246;         /* secondary text, 6.8:1 on the page */
  --heading: #161c27;
  --lamp: #d4a24c;          /* lamplight gold: on dark bands, and the primary button fill */
  --lamp-soft: #ecc988;
  --lamp-text: #7e5a12;     /* gold used AS TEXT on light paper, 5.5:1 */
  --lamp-wash: #f7ecd2;     /* a soft gold fill behind text: answers, highlights */
  --berean: #4fb286;        /* Berean green on dark */
  --berean-text: #256b4b;   /* Berean green as text on light: section numerals and kickers only */
  --on-band: #f2ebdc;
  --band-text: #c9cfdb;
  --foot-muted: #9aa3b5;
  --focus: #1b5fa8;
  --r: 14px;
  --font-display: "Cardo", Georgia, "Times New Roman", serif;
  --font-ui: "Figtree", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body: var(--font-ui);      /* long prose: sans, per Paul's readability ruling */
  --font-scrip: "Cardo", Georgia, "Times New Roman", serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--ink); font-family: var(--font-ui); font-size: 20px; line-height: 1.6; overflow-x: hidden; }
@media (min-width: 900px) { body { font-size: 21px; } }
img { max-width: 100%; display: block; }
a { color: var(--lamp-text); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
p { margin: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.1; margin: 0; color: var(--heading); text-wrap: balance; }
h1 { font-size: clamp(45px, 7.2vw, 76px); }
h2 { font-size: clamp(34px, 4.7vw, 49px); }
h3 { font-size: 28px; }
.wrap { max-width: 1180px; margin: 0 auto; padding-inline: 20px; }
.stack { display: grid; gap: 16px; }
.kicker { font-family: var(--font-mono); font-weight: 600; font-size: 18px; letter-spacing: .2em; text-transform: uppercase; color: var(--berean-text); }
.lede { font-size: 24px; color: var(--muted); max-width: 44ch; }

/* buttons: 52px tall, ONE gold action per screen, everything else a ghost */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 999px; font: 700 18px/1.15 var(--font-ui); text-decoration: none; border: 2px solid transparent; cursor: pointer; text-align: center; }
.btn.btn-lamp { background: var(--lamp); color: var(--night-2); border-color: var(--lamp); }
.btn.btn-lamp:hover { background: var(--lamp-soft); }
.btn.btn-ghost { border-color: var(--heading); color: var(--heading); background: transparent; }
.btn.btn-ghost:hover { background: var(--heading); color: var(--card); }
.btn.btn-small { min-height: 46px; padding: 0 18px; font-size: 19px; }
.on-dark .btn.btn-ghost { border-color: var(--lamp-soft); color: var(--lamp-soft); }
.on-dark .btn.btn-ghost:hover { background: var(--lamp-soft); color: var(--night-2); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* header: navy band, the badge, the wordmark, nav */
.site-head { background: var(--night); color: var(--on-band); border-bottom: 3px solid var(--lamp); }
.site-head .wrap { display: flex; align-items: center; gap: 12px 24px; min-height: 80px; flex-wrap: wrap; padding-block: 10px; }
.mark { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--on-band); }
.mark img { width: 64px; height: auto; flex: none; }
.mark span { font-family: var(--font-display); font-weight: 700; font-size: 29px; line-height: 1; color: var(--lamp); }
.mark small { display: block; font-family: var(--font-ui); font-size: 18px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--band-text); margin-top: 4px; }
.site-nav { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-left: auto; align-items: center; }
.site-nav a { color: var(--band-text); text-decoration: none; font-weight: 600; font-size: 20px; padding-block: 6px; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--lamp-soft); }
.site-nav a[aria-current] { box-shadow: inset 0 -3px 0 var(--lamp); }
@media (max-width: 440px) { .mark small { letter-spacing: .04em; } .mark span { font-size: 27px; } }
/* phones: a compact header (Paul 10/04: it took a third of the screen). The tagline is the home page's own
   call, so it is dropped here; the badge shrinks; the nav sits in a tight two-row grid. */
@media (max-width: 640px) {
  .site-head .wrap { min-height: 0; padding-block: 8px; gap: 6px 12px; }
  .mark img { width: 44px; }
  .mark small { display: none; }
  .site-nav { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0 20px; }
}
@media (max-width: 640px) { .site-nav { margin-left: 0; width: 100%; gap: 4px 18px; } .site-nav a { font-size: 19px; } }

/* hero */
.hero { padding-block: 56px 64px; border-bottom: 2px solid var(--line-soft); }
.hero .wrap { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .hero .wrap { grid-template-columns: 1.05fr .95fr; } }
.hero .stack { gap: 22px; min-width: 0; }
.hero-quote { font-family: var(--font-scrip); font-style: italic; font-size: clamp(27px, 3.2vw, 34px); line-height: 1.5; color: var(--ink); border-left: 3px solid var(--lamp); padding-left: 18px; max-width: 34em; }
/* Paul 10/04: the verse leads; "Test it against the text." follows it as the response, not as a site title */
.hero-call { font-size: clamp(32px, 4.2vw, 44px); margin-top: 6px; padding-top: 18px; border-top: 2px solid var(--line-soft); }
.cite { font-family: var(--font-mono); font-weight: 600; font-size: 18px; letter-spacing: .2em; text-transform: uppercase; color: var(--lamp-text); }
.on-dark .cite { color: var(--lamp); }

/* the method card in the hero: the 01-04 spine */
.spine { background: var(--card); border: 2px solid var(--line); border-radius: var(--r); padding: 26px 26px 22px; display: grid; gap: 4px; min-width: 0; }
.spine h2 { font-size: 29px; margin-bottom: 8px; }
.spine ol { list-style: none; margin: 0; padding: 0; display: grid; }
.spine li { display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: baseline; padding: 12px 0; border-top: 2px solid var(--line-soft); font-size: 21px; font-weight: 600; }
.spine li:first-child { border-top: 0; }
.num { font-family: var(--font-mono); font-weight: 600; font-size: 20px; color: var(--berean-text); }
.spine em { font-style: italic; color: var(--lamp-text); }

/* sections */
.section { padding-block: 72px; }
.section > .wrap > header { display: grid; gap: 12px; margin-bottom: 32px; max-width: 760px; }
.band-sand { background: var(--sand); border-block: 2px solid var(--line-soft); }
.band-night { background: var(--night); color: var(--on-band); }
.band-night h2, .band-night h3 { color: var(--on-band); }
.band-night .kicker { color: var(--berean); }
.band-night .lede { color: var(--band-text); }

/* the worked example */
.example { background: var(--card); border: 2px solid var(--line); border-radius: var(--r); padding: clamp(22px, 4vw, 40px); display: grid; gap: 26px; max-width: 860px; }
.question { font-family: var(--font-display); font-weight: 700; font-size: clamp(29px, 3.8vw, 38px); line-height: 1.2; color: var(--heading); }
.question b { color: var(--lamp-text); }
.step { display: grid; gap: 12px; }
.step-head { display: flex; gap: 14px; align-items: baseline; }
.step-head h3 { font-size: 26px; }
.scrip { border-left: 3px solid var(--lamp); padding: 2px 0 2px 18px; display: grid; gap: 6px; }
.scrip p { font-family: var(--font-scrip); font-style: italic; font-size: 24px; line-height: 1.55; }
.not-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.not-list li { padding-left: 26px; position: relative; }
.not-list li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 12px; height: 3px; background: var(--lamp); }
.answer { background: #f7ecd2; border: 2px solid var(--lamp); border-radius: 10px; padding: 18px 22px; display: grid; gap: 8px; }
.answer .verdict { font-family: var(--font-display); font-weight: 700; font-size: 38px; color: var(--lamp-text); line-height: 1; }

/* the question list */
.q-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.q { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; background: var(--card); border: 2px solid var(--line); border-radius: var(--r); padding: 18px 20px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 21px; line-height: 1.4; }
.q::after { content: "\2192"; color: var(--lamp-text); font-weight: 800; }
.q:hover { border-color: var(--heading); }

/* books strip on the home page */
.shelf { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.shelf a { display: grid; gap: 10px; text-decoration: none; color: var(--on-band); font-weight: 600; font-size: 19px; line-height: 1.3; }
.shelf img { border-radius: 6px; border: 2px solid #ffffff2e; aspect-ratio: 2/3; object-fit: cover; width: 100%; }
@media (max-width: 520px) { .shelf { grid-template-columns: repeat(2, 1fr); } }

/* tool doors */
.door-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.door { background: var(--card); border: 2px solid var(--line); border-radius: var(--r); padding: 24px; display: grid; gap: 10px; align-content: start; text-decoration: none; color: var(--ink); }
.door:hover { border-color: var(--heading); }
.door p { color: var(--muted); }
.door .go { font-weight: 700; color: var(--lamp-text); }
.door.lead { background: var(--night); border-color: var(--night); color: var(--on-band); }
.door.lead h3 { color: var(--lamp); }
.door.lead p { color: var(--band-text); }
.door.lead .go { color: var(--lamp-soft); }

/* footer */
.site-foot { background: var(--night-2); color: var(--band-text); padding-block: 52px 36px; font-size: 19px; }
.site-foot .verse { font-family: var(--font-scrip); font-style: italic; font-size: 25px; color: var(--on-band); max-width: 36em; }
.foot-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin-top: 36px; }
.site-foot h4 { font-family: var(--font-mono); font-weight: 600; color: var(--lamp); font-size: 18px; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 10px; }
.site-foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-foot a { color: var(--band-text); text-decoration: none; }
.site-foot a:hover { color: var(--lamp-soft); text-decoration: underline; }
.foot-base { margin-top: 34px; padding-top: 18px; border-top: 2px solid #2c3546; font-size: 18px; color: var(--foot-muted); display: grid; gap: 8px; }
.foot-base a { color: var(--foot-muted); text-decoration: underline; }

/* ───────── BOOKS PAGE ───────── */
.page-head { padding-block: 48px 36px; }
.page-head .wrap { display: grid; gap: 16px; }
.start-here { background: var(--card); border: 2px solid var(--line); border-left: 6px solid var(--lamp); border-radius: var(--r); padding: 20px 24px; max-width: 860px; display: grid; gap: 6px; }
.start-here b { font-size: 22px; color: var(--heading); }
.filters { position: sticky; top: 0; z-index: 5; background: var(--page); border-block: 2px solid var(--line-soft); }
.filters .wrap { display: flex; gap: 8px; overflow-x: auto; padding-block: 12px; scrollbar-width: thin; }
.filters a { flex: none; font-weight: 600; font-size: 19px; text-decoration: none; color: var(--ink); border: 2px solid var(--line); border-radius: 999px; padding: 8px 16px; background: var(--card); }
.filters a[aria-current] { background: var(--night); color: var(--on-band); border-color: var(--night); }
.shelf-section { padding-block: 44px 8px; }
.shelf-section > .wrap > header { display: grid; gap: 4px; margin-bottom: 22px; padding-bottom: 12px; border-bottom: 3px solid var(--lamp); }
.shelf-section h2 { font-size: clamp(31px, 4.0vw, 43px); }
.shelf-section header p { color: var(--muted); }
.cards { display: grid; gap: 20px; }
.book { display: grid; grid-template-columns: 150px 1fr; gap: 26px; background: var(--card); border: 2px solid var(--line); border-radius: var(--r); padding: 22px; }
.book .cover img { width: 150px; border-radius: 4px; box-shadow: 0 10px 22px -12px #2a334499; border: 2px solid var(--line-soft); }
.book-info { display: grid; gap: 10px; align-content: start; min-width: 0; }
.book h3 { font-size: clamp(28px, 3.1vw, 34px); }
.book-subtitle { font-family: var(--font-display); font-weight: 400; font-stretch: 100%; font-style: italic; font-size: 22px; color: var(--muted); }
.book-desc { max-width: 62ch; }
.book-note { font-style: italic; color: var(--lamp-text); font-weight: 600; }
.book-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.book-actions .btn-soon { display: inline-flex; align-items: center; min-height: 46px; padding: 0 16px; border-radius: 999px; border: 2px dashed var(--line); color: var(--muted); font-size: 18px; font-weight: 600; }
.book-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 18px; color: var(--muted); padding-top: 10px; border-top: 2px solid var(--line-soft); margin-top: 6px; }
.book-meta .tag { border: 2px solid var(--line-soft); border-radius: 999px; padding: 0 10px; font-size: 18px; font-weight: 600; color: var(--ink); }
@media (max-width: 640px) {
  .book { grid-template-columns: 1fr; gap: 16px; padding: 18px; }
  .book .cover img { width: 132px; }
  .book-actions .btn { flex: 1 1 auto; }
}

/* ───────── CHAPTER PAGE ───────── */
.reader-bar { background: var(--card); border-bottom: 2px solid var(--line-soft); }
.reader-bar .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding-block: 12px; }
.crumb { font-weight: 700; color: var(--heading); text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.crumb::before { content: ""; width: 12px; height: 12px; border-radius: 3px; background: var(--book); }
.reader-bar .spacer { flex: 1; }
.reader-bar select { font: 600 19px/1.2 var(--font-ui); color: var(--ink); background: var(--card); border: 2px solid var(--line); border-radius: 10px; padding: 9px 12px; width: min(380px, 100%); min-height: 46px; }
.mode-btn { font: 700 19px/1 var(--font-ui); display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 16px; border-radius: 999px; border: 2px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; }
.mode-btn .dot { width: 16px; height: 16px; border-radius: 50%; background: var(--night); box-shadow: inset -5px -3px 0 var(--lamp); }
@media (max-width: 640px) { .reader-bar select { width: 100%; order: 3; } .reader-bar .spacer { display: none; } .mode-btn { margin-left: auto; } }

/* a book page sets class="reading book--<Dir>" on <main>; nm-books.css supplies that book's --book / --book-text.
   Without a book class the accent falls back to lamplight gold. */
.reading { --book: var(--lamp); --book-text: var(--lamp-text); background: var(--page); }
.chapter { max-width: 1080px; margin: 0 auto; padding: 48px 20px 64px; }
.chapter-head { display: grid; gap: 10px; margin-bottom: 32px; padding-bottom: 26px; border-bottom: 3px solid var(--book); }
.chapter-num { font-family: var(--font-mono); font-weight: 600; font-size: 18px; letter-spacing: .22em; text-transform: uppercase; color: var(--book-text); }
.chapter-head h1 { font-size: clamp(43px, 6.7vw, 65px); }
.epigraph { background: var(--card); border: 2px solid var(--line-soft); border-left: 4px solid var(--book); border-radius: 10px; padding: 20px 24px; display: grid; gap: 12px; margin-bottom: 34px; }
.epigraph p, .chapter blockquote p { font-family: var(--font-scrip); font-style: italic; font-size: 24px; line-height: 1.6; }
.epigraph em, .chapter blockquote em { font-style: inherit; }
.epigraph cite, .chapter blockquote cite { font-family: var(--font-mono); font-style: normal; font-weight: 600; font-size: 18px; letter-spacing: .16em; text-transform: uppercase; color: var(--book-text); }
.content { font-family: var(--font-body); font-size: 22px; line-height: 1.75; }
@media (min-width: 900px) { .content { font-size: 24px; } }
.content > p { margin: 0 0 1.05em; }
.content h3 { font-size: clamp(29px, 3.4vw, 35px); margin: 1.7em 0 .6em; }
.content blockquote { margin: 1.4em 0; border-left: 4px solid var(--book); padding: 4px 0 4px 20px; display: grid; gap: 8px; }
.content strong { color: var(--heading); }
.divider { text-align: center; color: var(--book-text); letter-spacing: .5em; margin: 2em 0; font-size: 25px; }
.reflection { background: var(--sand); border: 2px solid var(--line); border-radius: var(--r); padding: 22px 24px; display: grid; gap: 10px; font-family: var(--font-ui); }
.reflection h3 { margin: 0; font-family: var(--font-mono); font-weight: 600; font-size: 18px; letter-spacing: .24em; text-transform: uppercase; color: var(--berean-text); }
.mark-row { display: flex; justify-content: center; margin: 40px 0 28px; }
.footer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.footer-nav a { display: grid; gap: 2px; background: var(--card); border: 2px solid var(--line); border-radius: var(--r); padding: 14px 18px; text-decoration: none; color: var(--heading); font-weight: 700; line-height: 1.35; }
.footer-nav a small { font-family: var(--font-mono); font-weight: 600; font-size: 18px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.footer-nav a.next { text-align: right; }
@media (max-width: 560px) { .footer-nav { grid-template-columns: 1fr; } .footer-nav a.next { text-align: left; } }

/* DARK READING MODE: the lamp at night, chosen by the reader, remembered on this device */
html[data-reading="dark"] {
  color-scheme: dark;
  --page: #12161f; --card: #1a2030; --sand: #20283a; --line: #626c83; --line-soft: #2e3850;
  --ink: #e8e2d2; --muted: #b7b0a0; --heading: #f2ebdc;
  --lamp-text: #d4a24c; --berean-text: #5fc496; --lamp-wash: #2a2f3c;
}
html[data-reading="dark"] .reading { --book-text: var(--lamp); }
html[data-reading="dark"] .mode-btn .dot { background: var(--lamp); box-shadow: none; }

/* ───────── SHARED EXTRAS (beyond the mockup) ───────── */
.skip { position: absolute; left: -9999px; top: 0; background: var(--lamp); color: var(--night-2); padding: 12px 18px; font-weight: 700; z-index: 50; }
.skip:focus { left: 12px; top: 12px; }
.content ul, .content ol { margin: 0 0 1.05em; padding-left: 1.4em; display: grid; gap: .4em; }
.content h2 { font-size: clamp(34px, 4vw, 42px); margin: 1.6em 0 .6em; }
.content h4 { font-size: 26px; margin: 1.4em 0 .5em; }
.content hr { border: 0; border-top: 2px solid var(--line-soft); margin: 2em 0; }
.content table { border-collapse: collapse; width: 100%; margin: 0 0 1.2em; font-size: .9em; }
.content th, .content td { border: 2px solid var(--line-soft); padding: 10px 12px; text-align: left; vertical-align: top; }
.content th { background: var(--sand); }
.content a { color: var(--book-text, var(--lamp-text)); }
.reflection p, .reflection li { font-size: 22px; }
@media print {
  .site-head, .site-foot, .reader-bar, .mark-row, .footer-nav, .skip { display: none !important; }
  html[data-reading="dark"] { --page: #fff; --card: #fff; --ink: #000; --heading: #000; }
  body { background: #fff; }
}

/* ───────── BOOK PAGES: the books' own classes (reskin, 2026-10-04) ───────── */
/* tools/reskin_books.py keeps each book page's original inner markup inside <article class="chapter">.
   These rules give those classes the new look. Tokens only, so night reading follows automatically.
   Old pages still carry a few inline styles that name the retired variables; they are mapped here. */
html:has(main.reading) { font-size: 20px; }  /* inline "0.9rem" etc. in old markup never drops under 18px */
.reading { --accent: var(--book-text); --accent-secondary: var(--book-text); --text-primary: var(--ink); --text-secondary: var(--muted); --text-muted: var(--muted); }
.chapter .chapter { max-width: none; margin: 0; padding: 0; }  /* a nested <section class="chapter"> */
.content p { margin: 0 0 1.05em; }
.content li { line-height: 1.6; }
.chapter a { color: var(--book-text); }

/* the page's own <header> reads like the mockup's chapter head */
.chapter > header { display: grid; gap: 10px; margin-bottom: 32px; padding-bottom: 26px; border-bottom: 3px solid var(--book); }
.chapter > header h1 { font-size: clamp(43px, 6.7vw, 65px); }
.chapter-num, .part-label, .part-title, .kicker { font-family: var(--font-mono); font-weight: 600; font-size: 18px; letter-spacing: .2em; text-transform: uppercase; color: var(--book-text); }
.chapter > header .kicker { color: var(--book-text); }
.chapter .part-title { font-family: var(--font-ui); font-style: italic; font-weight: 600; font-size: 22px; letter-spacing: 0; text-transform: none; color: var(--muted); }
.chapter > header .subtitle, .chapter-subtitle, .sub-subtitle, .book-subtitle { font-family: var(--font-display); font-style: italic; font-size: 27px; line-height: 1.35; color: var(--muted); }
.sub-subtitle { font-size: 23px; }
.chapter > header .author { font-weight: 700; font-size: 22px; color: var(--heading); }
.chapter > header .stats { color: var(--muted); font-size: 19px; }
.chapter > header .stats span { font-weight: 800; color: var(--book-text); }
.return-link { font-weight: 700; text-decoration: none; justify-self: start; }
.return-link:hover { text-decoration: underline; }
.chapter > header [style*="font-size"] { font-size: 19px !important; }  /* old inline 0.85rem credits */
.download-btn, .imprint, .based-on { color: var(--muted); font-size: 19px; font-style: italic; }

/* Scripture: Cardo italic with the book's bar. Other quotations read in the body face. */
.chapter blockquote { margin: 1.4em 0; border-left: 4px solid var(--book); padding: 4px 0 4px 20px; font-family: var(--font-scrip); font-style: italic; font-size: 24px; line-height: 1.6; color: var(--ink); }
.chapter blockquote:not(.scripture) { font-family: var(--font-body); font-size: 22px; }
.content blockquote:not(.scripture) p { font-family: var(--font-body); font-size: 22px; }
.chapter blockquote p { margin: 0 0 .5em; }
.chapter blockquote p:last-of-type { margin-bottom: 0; }
.chapter blockquote cite, .epigraph cite, .key-verse cite { display: block; margin-top: 8px; font-family: var(--font-mono); font-style: normal; font-weight: 600; font-size: 18px; letter-spacing: .14em; text-transform: uppercase; color: var(--book-text); }
.epigraph blockquote, .key-verse blockquote { margin: 0; padding: 0; border: 0; font-family: var(--font-scrip); font-style: italic; font-size: 24px; }
.epigraph blockquote p { font-size: 24px; }
.chapter .epigraph blockquote, .chapter .key-verse blockquote, .chapter .epigraph blockquote p { font-family: var(--font-scrip); font-size: 24px; }  /* beats the plain-quote rule above */
.key-verse { background: var(--card); border: 2px solid var(--line-soft); border-left: 4px solid var(--book); border-radius: 10px; padding: 20px 24px; margin: 0 0 30px; }
.chapter-epigraph, .epigraph-quote { font-family: var(--font-scrip); font-style: italic; font-size: 24px; }

/* boxes inside the text */
.principle-box, .bridge-box, .exercise-box, .chapter-purpose, .machine-block, .dedication, .part-intro-body {
  background: var(--card); border: 2px solid var(--line-soft); border-left: 6px solid var(--book); border-radius: var(--r); padding: 20px 24px; margin: 1.4em 0; }
.principle-box { font-weight: 600; color: var(--heading); }
.exercise-box { background: var(--sand); border-left-color: var(--lamp); }
.chapter-purpose { font-style: italic; color: var(--muted); }
.machine-block { background: var(--sand); border-left-color: var(--line); }
.machine-intro { font-family: var(--font-mono); font-weight: 600; font-size: 18px; letter-spacing: .14em; text-transform: uppercase; color: var(--berean-text); margin-top: 1.4em; }
.dedication { text-align: center; font-style: italic; border-left-width: 2px; }
.part-intro-body { border-left-color: var(--lamp); font-size: 22px; }
.principle-box > :last-child, .bridge-box > :last-child, .exercise-box > :last-child, .machine-block > :last-child, .dedication > :last-child, .part-intro-body > :last-child { margin-bottom: 0; }
.closing-line { text-align: center; font-style: italic; font-weight: 700; color: var(--heading); margin: 1.4em 0; }
.divider { color: var(--line); letter-spacing: .2em; overflow: hidden; white-space: nowrap; }
.section-heading { font-size: clamp(34px, 4vw, 42px); }

/* reflection and study questions: the header opens and closes the questions (the page's own script) */
.reflection-section, .study-questions-section { margin-top: 44px; background: var(--sand); border: 2px solid var(--line); border-radius: var(--r); padding: 6px 22px 6px; }
.reflection-header, .study-questions-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; }
.reflection-section .reflection-header, .study-questions-header { cursor: pointer; }
.reflection-header h2, .study-questions-header h2 { margin: 0; font-size: clamp(28px, 3.4vw, 34px); color: var(--heading); }
.arrow { color: var(--book-text); font-size: 22px; transition: transform .2s; }
.expanded .arrow, .reflection-header.expanded .arrow, .study-questions-header.expanded .arrow { transform: rotate(180deg); }
.reflection-section .reflection-body:not(.expanded), .study-questions-body:not(.expanded) { display: none; }
.reflection-body, .study-questions-body { padding: 6px 0 18px; }
.reflection .reflection-header { padding: 0; }
.reflection-question, .study-question { margin: 0 0 22px; }
div.reflection-question, div.study-question { display: grid; grid-template-columns: auto 1fr; gap: 8px 12px; align-items: baseline; }
.q-num { font-weight: 800; color: var(--book-text); }
.q-text { color: var(--ink); }
.chapter textarea { grid-column: 1 / -1; width: 100%; min-height: 120px; font: 20px/1.5 var(--font-ui); color: var(--ink); background: var(--card); border: 2px solid var(--line); border-radius: 10px; padding: 12px 14px; resize: vertical; }
.chapter textarea::placeholder, .chapter input::placeholder { color: var(--muted); opacity: 1; }
.chapter input[type="text"] { font: 20px/1.3 var(--font-ui); color: var(--ink); background: var(--card); border: 2px solid var(--line); border-radius: 10px; padding: 10px 12px; min-height: 48px; }

/* Bridge Moments: the three names */
.three-names-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; background: var(--card); border: 2px solid var(--line); border-radius: var(--r); padding: 12px 18px; margin: 0 0 28px; cursor: pointer; }
.three-names-banner .label { font-weight: 800; color: var(--book-text); }
.name-tag { border: 2px solid var(--line-soft); border-radius: 999px; padding: 2px 12px; font-weight: 600; }
.name-tag.empty, .revisit-name.empty { color: var(--muted); font-style: italic; font-weight: 400; }
.three-names-edit { display: none; flex-wrap: wrap; gap: 8px; width: 100%; margin-top: 6px; }
.three-names-edit input { flex: 1 1 160px; }
.three-names-edit button { font: 700 19px/1 var(--font-ui); min-height: 48px; padding: 0 20px; border-radius: 999px; border: 2px solid var(--lamp); background: var(--lamp); color: var(--night-2); cursor: pointer; }
.three-names-revisit, .three-names-card { background: var(--card); border: 2px solid var(--line); border-top: 4px solid var(--book); border-radius: var(--r); padding: 24px; margin: 0 0 32px; text-align: center; display: grid; gap: 14px; }
.three-names-card { text-align: left; }
.revisit-prompt, .three-names-card .desc { color: var(--muted); font-style: italic; }
.revisit-names, .names-inputs { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.names-inputs { justify-content: flex-start; }
.names-inputs input { flex: 1 1 180px; }
.revisit-name { border: 2px solid var(--book); border-radius: 10px; padding: 10px 22px; font-weight: 700; font-size: 24px; color: var(--book-text); }
.x-contact-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.x-contact-link svg { width: 18px; height: 18px; flex: none; }
.x-contact-block { margin: 24px 0; }

/* Mark complete: the gold button; done shows a green check */
.mark-row { display: flex; justify-content: center; margin: 40px 0 28px; }
.mark-complete { display: flex; width: fit-content; align-items: center; gap: 12px; margin: 40px auto 28px; min-height: 52px; padding: 0 24px; border-radius: 999px; border: 2px solid var(--lamp); background: var(--lamp); color: var(--night-2); font: 700 19px/1.15 var(--font-ui); cursor: pointer; }
.mark-row .mark-complete { margin: 0; }
.mark-complete:hover { background: var(--lamp-soft); }
.mark-complete .check { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; flex: none; border-radius: 50%; border: 2px solid var(--night-2); font-size: 18px; font-weight: 800; line-height: 1; }
.mark-complete.done, .mark-complete.completed { background: var(--card); border-color: var(--berean-text); color: var(--berean-text); }
.mark-complete.done .check, .mark-complete.completed .check { background: var(--berean-text); border-color: var(--berean-text); color: var(--card); }
.mark-complete.done .check:empty::after { content: "\2713"; }

/* chapter-to-chapter links: two cards (some books put a spacer between, some use div.nav-controls) */
.footer-nav, .chapter div.nav-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 8px; }
.footer-nav .spacer { display: none; }
.footer-nav a, .chapter div.nav-controls a { display: block; background: var(--card); border: 2px solid var(--line); border-radius: var(--r); padding: 14px 18px; text-decoration: none; color: var(--heading); font-weight: 700; line-height: 1.35; }
.footer-nav a:hover, .chapter div.nav-controls a:hover { border-color: var(--heading); }
.footer-nav a:last-child:not(:first-child), .chapter div.nav-controls a:last-child:not(:first-child) { text-align: right; }
.footer-nav a:only-child { grid-column: 1 / -1; }
.footer-nav a.disabled, .footer-nav a:not([href]) { border-style: dashed; color: var(--muted); font-weight: 600; }
.chapter > footer, .chapter footer { margin-top: 28px; display: grid; gap: 18px; }
.copyright { color: var(--muted); font-size: 18px; text-align: center; }
@media (max-width: 560px) {
  .footer-nav, .chapter div.nav-controls { grid-template-columns: 1fr; }
  .footer-nav a:last-child:not(:first-child), .chapter div.nav-controls a:last-child:not(:first-child) { text-align: left; }
}

/* scripture indexes */
.scripture-list { list-style: none; padding: 0; }
.scripture-list li, .si-entry, .index-entry { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 16px; padding: 8px 0; margin: 0; border-bottom: 2px solid var(--line-soft); }
.content .si-entry { margin: 0; }
.ref, .si-ref, .index-ref { font-weight: 700; color: var(--heading); }
.chapters, .si-locations, .index-chapters { color: var(--muted); }
.si-book, .index-book { font-size: clamp(30px, 3.6vw, 38px); margin: 1.4em 0 .4em; color: var(--book-text); }
.si-intro { color: var(--muted); font-style: italic; }

/* tables and charts: never push the page sideways on a phone */
.chart-content { overflow-x: auto; }
.chart-intro { color: var(--muted); font-style: italic; }
.content table, .chart-content table { font-size: 20px; background: var(--card); }
.content td, .content th { overflow-wrap: break-word; hyphens: manual; }
.data-table th, .scripture-table th, .gospel-parallel th { background: var(--sand); color: var(--heading); }
.gospel-parallel { min-width: 640px; }
.gp-day td { background: var(--sand); font-weight: 800; color: var(--heading); }
.gp-subsection td { font-style: italic; font-weight: 700; color: var(--book-text); }
.gp-event-alt td { background: var(--page); }
.gp-ref { white-space: nowrap; }
.gp-event-name { font-weight: 600; }
@media (max-width: 700px) {
  .content table:not(.gospel-parallel) { display: block; overflow-x: auto; }
  .content table td, .content table th { min-width: 7em; }
}

/* audio editions */
.intro { font-size: 22px; color: var(--muted); margin-bottom: 28px; }
.chapter-list { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 14px; }
.chapter-row { background: var(--card); border: 2px solid var(--line); border-radius: var(--r); padding: 16px 20px; display: grid; gap: 12px; }
.chapter-row.pending { border-style: dashed; }
.chapter-row .chapter-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 0; padding: 0; border: 0; }
.chapter-row .chapter-num { letter-spacing: .1em; }
.chapter-title { font-weight: 700; color: var(--heading); font-size: 22px; flex: 1 1 12em; }
.chapter-duration, .chapter-pending-note { color: var(--muted); font-size: 19px; }
.chapter-pending-note { font-style: italic; margin: 0; }
.chapter audio { width: 100%; }

/* ───── book landing pages: a title page, then the chapters as cards ───── */
.landing .chapter > header { border-bottom: 0; padding-bottom: 0; margin-bottom: 20px; }
.hero-cover { margin: 0 0 30px; }
.hero-cover img { width: 100%; max-width: 300px; height: auto; border-radius: 6px; border: 2px solid var(--line-soft); box-shadow: 0 16px 30px -18px var(--night-2); }
@media (min-width: 860px) {
  .landing .chapter { display: grid; grid-template-columns: 300px minmax(0, 1fr); column-gap: 48px; align-content: start; }
  .landing .chapter > * { grid-column: 1 / -1; min-width: 0; }
  .landing .chapter > .hero-cover { grid-column: 1; grid-row: 1 / span 3; }
  .landing .chapter > header, .landing .chapter > .key-verse, .landing .chapter > .intro-blurb { grid-column: 2; }
}
@media (max-width: 859px) { .hero-cover img { max-width: 240px; } }
.intro-blurb { font-size: 22px; margin: 0 0 30px; }
.progress-bar { background: var(--card); border: 2px solid var(--line); border-radius: var(--r); padding: 16px 20px; margin: 6px 0 36px; display: grid; gap: 10px; }
.progress-bar .label { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 16px; font-weight: 700; color: var(--heading); }
.progress-track { height: 14px; background: var(--sand); border: 2px solid var(--line-soft); border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--berean-text); border-radius: 999px; transition: width .3s; }
.chapter-section, .part-section, .appendix-section, .front-matter, .editions-section { margin: 0 0 40px; }
.section-header, .part-header { display: grid; gap: 4px; margin-bottom: 18px; padding-bottom: 10px; border-bottom: 3px solid var(--book); }
.section-header h2, .part-header h2, .editions-section > h2 { font-size: clamp(30px, 3.6vw, 38px); }
.verse-label { font-family: var(--font-mono); font-weight: 600; font-size: 18px; letter-spacing: .14em; text-transform: uppercase; color: var(--book-text); }
.part-header .chapters { font-size: 19px; }
.lesson-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.lesson-card { position: relative; display: grid; gap: 6px; align-content: start; background: var(--card); border: 2px solid var(--line); border-radius: var(--r); padding: 16px 44px 16px 18px; text-decoration: none; color: var(--ink); }
.chapter a.lesson-card { color: var(--ink); }
.lesson-card:hover { border-color: var(--heading); }
.lesson-num { font-family: var(--font-mono); font-weight: 600; font-size: 18px; letter-spacing: .12em; text-transform: uppercase; color: var(--book-text); }
.lesson-title { font-weight: 700; font-size: 22px; line-height: 1.3; color: var(--heading); }
.lesson-subtitle, .lesson-ref { color: var(--muted); font-size: 19px; line-height: 1.4; }
.lesson-card-part { border-style: dashed; }
.progress-dot { position: absolute; top: 18px; right: 16px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line); }
.progress-dot.visited { border-color: var(--lamp-text); background: var(--lamp-soft); }
.progress-dot.complete { border-color: var(--berean-text); background: var(--berean-text); }
.fm-card { background: var(--card); border: 2px solid var(--line); border-radius: var(--r); padding: 14px 18px; margin-bottom: 10px; cursor: pointer; display: grid; gap: 4px; }
.fm-card:hover { border-color: var(--heading); }
.fm-card.open { border-bottom-left-radius: 0; border-bottom-right-radius: 0; margin-bottom: 0; }
.fm-card-title { font-weight: 700; font-size: 22px; color: var(--heading); }
.fm-card-preview { color: var(--muted); font-style: italic; }
.fm-content { display: none; background: var(--card); border: 2px solid var(--line); border-top: 0; border-radius: 0 0 var(--r) var(--r); padding: 6px 18px 18px; margin-bottom: 10px; }
.fm-content.open { display: block; }
.fm-content p { margin: 0 0 1em; }
.editions-section { display: grid; gap: 14px; }
.editions-desc, .editions-note { color: var(--muted); }
.editions-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.edition-btn { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; flex: 1 1 280px; background: var(--card); border: 2px solid var(--line); border-radius: var(--r); padding: 14px 18px; text-decoration: none; color: var(--heading); font-weight: 700; }
.chapter a.edition-btn { color: var(--heading); }
.edition-btn:hover { border-color: var(--heading); }
.btn-icon { font-size: 26px; }
.btn-label small, .btn-format { display: block; font-size: 18px; font-weight: 500; color: var(--muted); }
.badge { border: 2px solid var(--lamp); background: var(--lamp); color: var(--night-2); border-radius: 999px; padding: 2px 12px; font-size: 18px; font-weight: 700; }
.landing .chapter > footer { border-top: 2px solid var(--line-soft); padding-top: 20px; }

/* the study-tools buttons (assets/study-tools.js injects its own small styles; lift them to the 18px floor) */
html:has(main.reading) .nm-help-fab { font-size: 18px; font-family: var(--font-ui); }
html:has(main.reading) .nm-help-fab .nm-help-icon { font-size: 18px; width: 24px; height: 24px; line-height: 21px; }
html:has(main.reading) .nm-book-search-row { margin: 0 0 18px; }
html:has(main.reading) .nm-book-search-input { font: 20px/1.3 var(--font-ui); color: var(--ink); background: var(--card); border: 2px solid var(--line); border-radius: 10px; padding: 12px 16px; min-height: 52px; }
html:has(main.reading) .nm-book-search-input:focus { outline: 3px solid var(--focus); outline-offset: 2px; background: var(--card); }
html:has(main.reading) .nm-book-search-input::placeholder { color: var(--muted); font-style: italic; opacity: 1; }
html:has(main.reading) .nm-book-search-results { background: var(--card); border: 2px solid var(--line); }
html:has(main.reading) .nm-book-search-results .nm-bs-item { border-bottom: 2px solid var(--line-soft); }
html:has(main.reading) .nm-book-search-results .nm-bs-item:hover { background: var(--sand); }
html:has(main.reading) .nm-book-search-results .nm-bs-where { font: 600 18px/1.3 var(--font-mono); letter-spacing: .1em; color: var(--book-text); }
html:has(main.reading) .nm-book-search-results .nm-bs-snippet, html:has(main.reading) .nm-book-search-results .nm-bs-empty { font-size: 19px; color: var(--ink); }
html:has(main.reading) .nm-book-search-results mark.nm-match { background: var(--lamp-soft); color: var(--night-2); }
html:has(main.reading) .nm-continue-banner { background: var(--card); border: 2px solid var(--line); border-left: 6px solid var(--lamp); border-radius: var(--r); font-family: var(--font-ui); }
html:has(main.reading) .nm-continue-banner .nm-continue-label { font: 600 18px/1.3 var(--font-mono); letter-spacing: .12em; color: var(--berean-text); }
html:has(main.reading) .nm-continue-banner .nm-continue-where { font-size: 21px; font-weight: 700; color: var(--heading); }
html:has(main.reading) .nm-continue-banner .nm-continue-link { font: 700 18px/1.15 var(--font-ui); text-transform: none; letter-spacing: 0; background: var(--lamp); border: 2px solid var(--lamp); color: var(--night-2); border-radius: 999px; padding: 12px 20px; }
html:has(main.reading) .nm-continue-banner .nm-continue-dismiss { color: var(--muted); font-size: 26px; }
html:has(main.reading) .nm-strongs-ref { color: var(--book-text); border-bottom: 2px dotted var(--book); }
html:has(main.reading) .nm-para-anchor { color: var(--muted); }
html:has(main.reading) p:hover > .nm-para-anchor, html:has(main.reading) .nm-para-anchor:focus, html:has(main.reading) .nm-para-anchor:hover { color: var(--book-text); }

@media print {
  .reflection-section .reflection-body, .study-questions-body, .fm-content { display: block !important; }
  .chapter textarea, .mark-complete, .progress-bar { display: none !important; }
}

/* ───────── FRONT DOOR + LESSONS: their own classes (reskin, 2026-10-04) ───────── */
/* tools/reskin_front.py keeps the front-door pages' own markup inside <main class="front-page"><div class="wrap">;
   reskin_books.py keeps the lesson series' markup inside <main class="reading book--Acts-Enhanced|...">.
   Tokens only. The few old inline styles name retired nm-brand variables; they are mapped here. */
:is(.front-page, .books-page) { --parchment: var(--ink); --lamplight: var(--lamp-text); --vellum: var(--muted); --body: var(--ink);
  --rule-gold: var(--line); --rule-faint: var(--line-soft); padding-block: 40px 64px; }
:is(.front-page, .books-page) p { margin: 0 0 1em; }
:is(.front-page, .books-page) .article, :is(.front-page, .books-page) > .wrap > main { max-width: 860px; margin: 0 auto; }
:is(.front-page, .books-page) .article a, :is(.front-page, .books-page) > .wrap > main a { color: var(--lamp-text); }
:is(.front-page, .books-page) .article > section { margin-bottom: 44px; }
:is(.front-page, .books-page) h1 { font-size: clamp(40px, 6vw, 60px); margin-bottom: 14px; }
:is(.front-page, .books-page) h2 { font-size: clamp(30px, 4vw, 40px); margin: 1.4em 0 .5em; }
:is(.front-page, .books-page) h3 { font-size: 26px; margin: 1.2em 0 .4em; }
:is(.front-page, .books-page) h4 { font-family: var(--font-mono); font-weight: 600; font-size: 18px; letter-spacing: .18em; text-transform: uppercase; color: var(--berean-text); margin: 1.2em 0 .5em; }
:is(.front-page, .books-page) ul, :is(.front-page, .books-page) ol { margin: 0 0 1em; padding-left: 1.4em; display: grid; gap: .35em; }
:is(.front-page, .books-page) strong { color: var(--heading); }
:is(.front-page, .books-page) em { font-style: italic; }
:is(.front-page, .books-page) hr { border: 0; border-top: 2px solid var(--line-soft); margin: 2em 0; }
:is(.front-page, .books-page) .kicker { margin-bottom: 14px; }
:is(.front-page, .books-page) .dek { font-family: var(--font-display); font-style: italic; font-size: 25px; line-height: 1.4; color: var(--muted); margin: 0 0 18px; }
:is(.front-page, .books-page) .whence, :is(.front-page, .books-page) .title-meta, :is(.front-page, .books-page) .subtitle { color: var(--muted); font-size: 19px; }
:is(.front-page, .books-page) .title-meta a { color: var(--muted); }
:is(.front-page, .books-page) .hr-gold, :is(.front-page, .books-page) hr.rule { width: 72px; height: 0; border: 0; border-top: 3px solid var(--lamp); margin: 0 0 32px; }
:is(.front-page, .books-page) .hr-gold.tail { margin: 48px 0 24px; }
:is(.front-page, .books-page) hr.rule { width: auto; border-top-width: 2px; border-color: var(--line); margin: 32px 0; }
:is(.front-page, .books-page) .cd { font-family: var(--font-display); }
:is(.front-page, .books-page) .mn { font-family: var(--font-mono); letter-spacing: .16em; text-transform: uppercase; }
/* the 01-04 method rows and Scripture blocks of the studies */
.sec-row { display: flex; align-items: baseline; gap: 16px; margin: 0 0 18px; padding-bottom: 10px; border-bottom: 2px solid var(--line-soft); }
.sec-num { font-family: var(--font-mono); font-weight: 600; font-size: 20px; color: var(--berean-text); }
:is(.front-page, .books-page) .sec-label { margin: 0; font-size: clamp(28px, 3.4vw, 36px); }
:is(.front-page, .books-page) .scrip { border-left: 4px solid var(--lamp); background: var(--card); border-radius: 0 10px 10px 0; padding: 14px 20px; margin: 0 0 1.2em; display: grid; gap: 6px; }
:is(.front-page, .books-page) .scrip-text { font-family: var(--font-scrip); font-style: italic; font-size: 24px; line-height: 1.55; color: var(--ink); margin: 0; }
.scrip-cite, .verse-ref, :is(.front-page, .books-page) .scripture-ref { font-family: var(--font-mono); font-weight: 600; font-size: 18px; letter-spacing: .14em; text-transform: uppercase; color: var(--lamp-text); }
:is(.front-page, .books-page) .scripture { font-family: var(--font-scrip); font-style: italic; font-size: 24px; line-height: 1.55; border-left: 4px solid var(--lamp); padding: 4px 0 4px 20px; margin: 1.2em 0; }
:is(.front-page, .books-page) .scripture .scripture-ref { display: block; font-style: normal; margin-top: 6px; }
.three-questions { background: var(--sand); border: 2px solid var(--line-soft); border-radius: var(--r); padding: 18px 22px; }
.three-questions p { margin: 0 0 .7em; }
.three-questions p:last-child { margin: 0; }
.three-questions em { font-weight: 700; color: var(--heading); }
.list-plain { list-style: none; padding: 0 !important; }
.list-plain li, :is(.front-page, .books-page) .li { position: relative; padding-left: 28px; }
.list-plain li::before, :is(.front-page, .books-page) .li::before { content: ""; position: absolute; left: 2px; top: .75em; width: 14px; height: 3px; background: var(--lamp); }
.answer-block { background: var(--lamp-wash); border: 2px solid var(--lamp); border-radius: 10px; padding: 18px 22px; }
.answer-block p, .answer-block .cd { font-size: 22px !important; color: var(--ink) !important; font-family: var(--font-body) !important; }
.answer-verdict { color: var(--lamp-text); font-weight: 800; }
.tail-heading { font-size: 28px; margin: 1.6em 0 .5em; }
.xref-lead { font-weight: 700; color: var(--heading); }
.badge-new { display: inline-block; font-family: var(--font-mono); font-weight: 600; font-size: 18px; letter-spacing: .1em; text-transform: uppercase; color: var(--card); background: var(--berean-text); border-radius: 6px; padding: 0 8px; vertical-align: middle; }
/* user guide and principles */
.toc, .tip, .section-card { background: var(--card); border: 2px solid var(--line); border-left: 6px solid var(--lamp); border-radius: var(--r); padding: 20px 24px; margin: 0 0 24px; }
.tip { background: var(--sand); }
.toc h3, .section-card h3:first-child { margin-top: 0; }
.toc ol { list-style: none; padding: 0; counter-reset: toc; }
.toc ol li { counter-increment: toc; display: flex; gap: 12px; }
.toc ol li::before { content: counter(toc, decimal-leading-zero); font-family: var(--font-mono); font-weight: 600; color: var(--berean-text); }
.toc a { color: var(--ink) !important; }
.steps { list-style: none; padding: 0 !important; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-left: 52px; }
.steps li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 0; font-family: var(--font-mono); font-weight: 600; color: var(--berean-text); }
.kbd, kbd, .btn-label { display: inline-block; font-family: var(--font-mono); font-size: 18px; color: var(--ink); background: var(--sand); border: 2px solid var(--line-soft); border-radius: 6px; padding: 0 8px; }
.verse-section { text-align: center; border-block: 2px solid var(--line); padding: 24px 0; margin: 24px 0 32px; }
.verse-text { font-family: var(--font-scrip); font-style: italic; font-size: 25px; line-height: 1.5; max-width: 40em; margin: 0 auto 8px; }
.loading-note, .load-error { font-style: italic; color: var(--muted); text-align: center; padding: 32px 0; }
.download-btn svg { width: 18px; height: 18px; fill: currentColor; }
/* gospel meeting */
:is(.front-page, .books-page) .day { font-family: var(--font-mono); font-weight: 600; font-size: 19px; letter-spacing: .14em; text-transform: uppercase; color: var(--lamp-text); margin: 32px 0 12px; padding-bottom: 8px; border-bottom: 3px solid var(--lamp); }
ol.lessons { list-style: none; padding: 0 !important; display: grid; gap: 12px; }
.lesson { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; background: var(--card); border: 2px solid var(--line); border-radius: var(--r); padding: 14px 18px; }
.lesson .num { font-family: var(--font-mono); font-weight: 600; color: var(--berean-text); min-width: 2em; }
.lesson .name { font-family: var(--font-display); font-weight: 700; font-size: 26px; color: var(--heading); flex: 1 1 12em; line-height: 1.25; }
:is(.front-page, .books-page) .lesson .listen { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 999px; background: var(--lamp); color: var(--night-2); font-weight: 700; text-decoration: none; }
:is(.front-page, .books-page) .lesson .listen:hover { background: var(--lamp-soft); }
.lesson .meta { flex-basis: 100%; color: var(--muted); font-size: 19px; }
:is(.front-page, .books-page) .tail { margin-top: 36px; background: var(--sand); border: 2px solid var(--line); border-radius: var(--r); padding: 20px 24px; }
@media (max-width: 560px) { :is(.front-page, .books-page) .lesson .listen { width: 100%; justify-content: center; } }
/* books.html: its cards are PARSED by tools/book_catalog.py, so the markup stays and only the look changes */
.title-block { display: grid; gap: 6px; margin-bottom: 20px; }
.title-block h1 { margin: 0; }
:is(.front-page, .books-page) .imprint { order: -1; font-family: var(--font-mono); font-style: normal; font-weight: 600; font-size: 18px; letter-spacing: .2em; text-transform: uppercase; color: var(--berean-text); }
.welcome { max-width: 860px; background: var(--card); border: 2px solid var(--line); border-left: 6px solid var(--lamp); border-radius: var(--r); padding: 20px 24px; margin: 0 0 24px; }
.welcome p:last-child { margin: 0; }
.search-bar { position: relative; max-width: 860px; margin: 0 0 22px; }
.search-bar input[type="search"] { width: 100%; font: 20px/1.3 var(--font-ui); color: var(--ink); background: var(--card); border: 2px solid var(--line); border-radius: 999px; padding: 14px 22px; min-height: 56px; }
.search-bar input[type="search"]:focus { outline: 3px solid var(--focus); outline-offset: 2px; }
.search-results { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20; background: var(--card); border: 2px solid var(--line); border-radius: var(--r); box-shadow: 0 16px 40px -16px #2a334466; max-height: 70vh; overflow: auto; }
.search-results:empty { display: none; }
.search-hit { display: flex; gap: 14px; padding: 12px 16px; border-bottom: 2px solid var(--line-soft); text-decoration: none; color: var(--ink) !important; }
.search-hit:hover, .search-hit:focus, .search-hit[aria-selected="true"] { background: var(--sand); }
.hit-thumb { width: 44px; flex: none; border-radius: 4px; }
.hit-body { display: grid; gap: 2px; min-width: 0; }
.hit-book { font-weight: 700; color: var(--heading); }
.hit-chapter { color: var(--muted); }
.hit-snippet { color: var(--ink); }
.search-meta, .search-status { padding: 10px 16px; color: var(--muted); }
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; }
.filter-btn { font: 600 19px/1.2 var(--font-ui); color: var(--ink); background: var(--card); border: 2px solid var(--line); border-radius: 999px; padding: 10px 18px; min-height: 46px; cursor: pointer; }
.filter-btn:hover { border-color: var(--heading); }
.filter-btn.active { background: var(--night); color: var(--on-band); border-color: var(--night); }
.books-list { display: grid; gap: 20px; }
.book-section { display: grid; gap: 20px; }
:is(.front-page, .books-page) .section-header { margin: 28px 0 0; padding-bottom: 12px; border-bottom: 3px solid var(--lamp); scroll-margin-top: 20px; }
:is(.front-page, .books-page) .section-header h2 { margin: 0 0 4px; font-size: clamp(31px, 4vw, 43px); }
:is(.front-page, .books-page) .section-header p { margin: 0; color: var(--muted); }
.book-card { display: grid; grid-template-columns: 150px 1fr; gap: 26px; background: var(--card); border: 2px solid var(--line); border-radius: var(--r); padding: 22px; }
.book-cover img { width: 150px; border-radius: 4px; border: 2px solid var(--line-soft); box-shadow: 0 10px 22px -12px #2a334499; }
.book-info { display: grid; gap: 10px; align-content: start; min-width: 0; }
.book-card h2 { margin: 0; font-size: clamp(28px, 3.1vw, 34px); }
:is(.front-page, .books-page) .book-subtitle { margin: 0; font-size: 22px; }
.book-description { margin: 0; max-width: 62ch; }
.book-description.truncated { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.read-more-btn { justify-self: start; background: none; border: 0; padding: 4px 0; font: 700 19px/1.2 var(--font-ui); color: var(--lamp-text); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
:is(.front-page, .books-page) .book-note { margin: 0; }
.book-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.book-actions .btn { min-height: 48px; padding: 0 20px; font-size: 19px; text-decoration: none; }
:is(.front-page, .books-page) .btn.btn-primary { background: var(--lamp); color: var(--night-2) !important; border-color: var(--lamp); }
:is(.front-page, .books-page) .btn.btn-primary:hover { background: var(--lamp-soft); }
:is(.front-page, .books-page) .btn.btn-outline, :is(.front-page, .books-page) .btn.btn-lulu, :is(.front-page, .books-page) .btn.btn-amazon { background: transparent; color: var(--heading) !important; border-color: var(--heading); }
:is(.front-page, .books-page) .btn.btn-outline:hover, :is(.front-page, .books-page) .btn.btn-lulu:hover, :is(.front-page, .books-page) .btn.btn-amazon:hover { background: var(--heading); color: var(--card) !important; }
:is(.front-page, .books-page) .btn.btn-soon, :is(.front-page, .books-page) .btn[aria-disabled="true"] { background: transparent; color: var(--muted) !important; border: 2px dashed var(--line); cursor: default; pointer-events: none; }
.btn-edition-tag { display: block; font-size: 18px; font-weight: 600; line-height: 1.1; color: inherit; }
.book-actions .btn:has(.btn-edition-tag) { flex-direction: column; gap: 2px; padding-block: 6px; }
.btn-row-break { flex-basis: 100%; height: 0; margin: 0; }
.book-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; color: var(--muted); padding-top: 10px; border-top: 2px solid var(--line-soft); margin-top: 6px; }
.format-tag { border: 2px solid var(--line-soft); border-radius: 999px; padding: 0 10px; font-size: 18px; font-weight: 600; color: var(--ink); }
@media (max-width: 640px) {
  .book-card { grid-template-columns: 1fr; gap: 16px; padding: 18px; }
  .book-cover img { width: 132px; }
  .book-actions .btn { flex: 1 1 auto; justify-content: center; }
}

/* ── lesson series (Acts, The Strait Way, Gems of the Original Languages) ── */
.reading.book--Acts-Enhanced, .reading.book--StraitWay-Enhanced, .reading.book--WordStudies {
  --accent-gold: var(--book-text); --accent-blue: var(--berean-text); --accent-burgundy: var(--book-text);
  --accent-glow: transparent; --accent-soft: var(--sand); --original: var(--heading); --bg-dark: var(--card); --border-color: var(--line-soft); }
html[data-reading="dark"] .reading.book--Acts-Enhanced, html[data-reading="dark"] .reading.book--StraitWay-Enhanced,
html[data-reading="dark"] .reading.book--WordStudies { --accent-blue: var(--berean-text); }
.series-title { font-family: var(--font-mono); font-weight: 600; font-size: 18px; letter-spacing: .2em; text-transform: uppercase; color: var(--berean-text); }
.chapter > header .scripture-ref { font-family: var(--font-mono); font-weight: 600; font-size: 19px; letter-spacing: .1em; color: var(--book-text); }
.book--StraitWay-Enhanced .scripture-ref, .book--Acts-Enhanced .content .scripture-ref { color: var(--book-text); font-weight: 600; }
.questions-section, .thought-questions, .supplementary, .questions-intro { margin: 0 0 32px; }
.questions-section h2, .thought-questions h2, .supplementary > h2, .supplementary h2 { font-size: clamp(29px, 3.4vw, 35px); margin: 1.2em 0 .5em; padding-bottom: 8px; border-bottom: 3px solid var(--book); }
.thought-questions h2 { border-bottom-color: var(--berean-text); }
.questions-intro { font-style: italic; color: var(--muted); }
.reading .question { font-family: var(--font-body); font-weight: 400; font-size: inherit; line-height: 1.6; color: var(--ink); margin: 0 0 14px; padding: 12px 16px; background: var(--card); border: 2px solid var(--line-soft); border-left: 4px solid var(--book); border-radius: 0 10px 10px 0; }
.reading .question.thought { border-left-color: var(--berean-text); }
.question-num { font-family: var(--font-mono); font-weight: 600; color: var(--book-text); margin-right: 8px; }
.thought .question-num { color: var(--berean-text); }
.question-text { color: var(--ink); }
.supp-content, .supplementary p { color: var(--ink); line-height: 1.7; }
.supplementary h3 { font-size: 26px; margin: 1.1em 0 .4em; }
.supp-list { padding-left: 1.4em; display: grid; gap: .4em; }
.supp-table, .comparison-table, .chart-table, .strongs-table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; }
.supp-table th, .supp-table td, .comparison-table th, .comparison-table td, .chart-table th, .chart-table td, .strongs-table th, .strongs-table td { border: 2px solid var(--line-soft); padding: 10px 12px; text-align: left; vertical-align: top; }
.supp-table th, .comparison-table th, .chart-table th, .strongs-table th { background: var(--sand); color: var(--heading); font-family: var(--font-ui); font-weight: 700; }
/* The Strait Way */
.masthead { font-size: clamp(45px, 7vw, 68px) !important; color: var(--heading) !important; }
.tagline { font-family: var(--font-display); font-style: italic; font-size: 24px; color: var(--muted); }
.issue-selector { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 12px; }
.selector-group { display: flex; align-items: center; gap: 8px; }
.selector-group label { font-weight: 700; color: var(--heading); }
.selector-group select, .filter-select, .search-input { font: 600 19px/1.2 var(--font-ui); color: var(--ink); background: var(--card); border: 2px solid var(--line); border-radius: 10px; padding: 9px 12px; min-height: 48px; }
.btn-go { font: 700 19px/1 var(--font-ui); min-height: 48px; padding: 0 24px; border-radius: 999px; border: 2px solid var(--lamp); background: var(--lamp); color: var(--night-2); cursor: pointer; }
.btn-go:hover { background: var(--lamp-soft); }
.chapter > header .home-link { justify-self: start; font-weight: 700; color: var(--book-text); }
.chapter > header .home-link svg { width: 20px; height: 20px; fill: currentColor; vertical-align: -3px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 32px; padding: 14px; background: var(--sand); border: 2px solid var(--line-soft); border-radius: var(--r); }
.nav-links a { color: var(--ink) !important; text-decoration: none; padding: 6px 12px; border-radius: 8px; border: 2px solid transparent; }
.nav-links a:hover { border-color: var(--line); background: var(--card); }
.book--StraitWay-Enhanced .article { margin: 0 0 44px; padding-bottom: 40px; border-bottom: 2px solid var(--line-soft); }
.book--StraitWay-Enhanced .article:last-of-type { border-bottom: 0; }
.article-category { display: inline-block; font-family: var(--font-mono); font-weight: 600; font-size: 18px; letter-spacing: .12em; text-transform: uppercase; color: var(--book-text); border: 2px solid var(--line-soft); border-radius: 999px; padding: 0 12px; margin-bottom: 10px; }
.book--StraitWay-Enhanced .article h2 { font-size: clamp(30px, 3.8vw, 40px); margin: 0 0 16px; }
.book--StraitWay-Enhanced .article p, .book--StraitWay-Enhanced .article li { color: var(--ink); }
.author-signature, .article-author { font-style: italic; color: var(--muted); }
.author-signature { text-align: right; margin-top: 18px; }
.conclusion-box, .highlight-box, .debate-box, .callout, .editor-note, .outline-section, .list-section, .scripture-collection, .search-section { background: var(--card); border: 2px solid var(--line); border-radius: var(--r); padding: 16px 20px; margin: 20px 0; }
.conclusion-box { border-left: 6px solid var(--book); }
.highlight-box, .editor-note { background: var(--sand); }
.scripture-collection h3 { font-family: var(--font-mono); font-weight: 600; font-size: 18px; letter-spacing: .14em; text-transform: uppercase; color: var(--book-text); margin: 0 0 12px; text-align: center; }
.featured-scripture { text-align: center; border-left: 0 !important; border-block: 3px solid var(--book); padding: 16px 0 !important; }
.proverb-highlight { text-align: center; font-family: var(--font-scrip); font-style: italic; font-size: 26px; color: var(--heading); padding: 16px; }
.letter-header, .letter-salutation, .letter-closing { font-style: italic; color: var(--muted); }
.block-quote, .quote-block { border-left: 4px solid var(--line); padding: 4px 0 4px 20px; margin: 1.2em 0; }
.numbered-list, .bullet-list { padding-left: 1.4em; display: grid; gap: .4em; }
.search-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.search-input { flex: 1 1 260px; min-width: 0; }
.result-count { color: var(--muted); }
.result-count span { color: var(--book-text); font-weight: 700; }
.year-header h2 { color: var(--heading) !important; text-shadow: none !important; }
.year-header .toggle { color: var(--muted); }
.issue-card { background: var(--card) !important; border: 2px solid var(--line) !important; border-radius: var(--r) !important; }
.issue-card h3, .issue-card h3 a { color: var(--heading) !important; }
.article-list { font-size: 20px !important; }
.article-list li { color: var(--muted) !important; }
.article-list li a { color: var(--ink) !important; }
.article-list li::before { color: var(--book-text) !important; }
.article-highlight { background: var(--lamp-wash); color: var(--ink); }
.file-list { padding-left: 1.4em; }
/* Gems of the Original Languages */
.book--WordStudies div.nav-controls { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; }
.book--WordStudies div.nav-controls a { color: var(--ink) !important; text-decoration: none; font-weight: 600; padding: 8px 16px; border: 2px solid var(--line); border-radius: 999px; background: var(--card); }
.book--WordStudies div.nav-controls a.active { background: var(--night); border-color: var(--night); color: var(--on-band) !important; }
.book--WordStudies h1.title { text-align: center; font-size: clamp(40px, 6vw, 60px); display: grid; gap: 8px; }
.book--WordStudies .title .original { display: block; font-family: var(--font-scrip); font-weight: 400; font-size: clamp(28px, 3.6vw, 36px); color: var(--book-text); }
.book--WordStudies .dek { text-align: center; font-family: var(--font-display); font-style: italic; font-size: 25px; color: var(--muted); margin: 0 0 16px; }
.book--WordStudies p.lead { text-align: center; font-size: 22px; max-width: 46em; margin: 0 auto 32px; }
.book--WordStudies p.body { font-size: 21px; }
.section-heading { font-family: var(--font-mono); font-weight: 600; font-size: 19px; letter-spacing: .18em; text-transform: uppercase; color: var(--berean-text); text-align: center; margin: 40px 0 18px; padding-bottom: 10px; border-bottom: 3px solid var(--book); }
.theme-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); margin: 0 0 32px; }
.theme-card { display: grid; gap: 4px; text-decoration: none; background: var(--card) !important; border: 2px solid var(--line) !important; border-radius: var(--r); padding: 18px 20px !important; color: var(--ink); }
.theme-card:hover { border-color: var(--heading) !important; }
.theme-card .theme-num { font-family: var(--font-mono); font-weight: 600; font-size: 18px; color: var(--berean-text); }
.theme-card .theme-title { font-family: var(--font-display); font-weight: 700; font-size: 26px; color: var(--heading); }
.theme-card .theme-sub { font-size: 19px; font-style: italic; color: var(--muted); }
.theme-card .theme-count { font-size: 18px; color: var(--muted); }
.theme-words { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); margin: 24px 0; }
.theme-word { background: var(--card); border: 2px solid var(--line-soft); border-radius: var(--r); padding: 14px 16px; }
.theme-word:hover { border-color: var(--line); }
.theme-word a { color: var(--book-text); text-decoration: none; }
.tw-translit { font-family: var(--font-ui); font-weight: 700; font-size: 22px; }
.tw-original, .lex-original, .orig, .original { font-family: var(--font-scrip); color: var(--heading); }
.tw-original { font-size: 24px; margin-left: 8px; }
.tw-strongs, .lex-strongs { display: inline-block; font-family: var(--font-mono); font-weight: 600; font-size: 18px; color: var(--book-text); border: 2px solid var(--line-soft); border-radius: 6px; padding: 0 8px; margin-left: 6px; }
.tw-def { margin-top: 4px; font-size: 19px; font-style: italic; color: var(--muted); }
.lex-toc { text-align: center; margin: 16px 0 32px; font-size: 22px; }
.lex-toc a { display: inline-block; padding: 2px 10px; margin: 2px; color: var(--book-text); border-radius: 6px; text-decoration: none; }
.lex-toc a:hover { background: var(--sand); }
.lex-toc .disabled { color: var(--muted); }
.lex-entry { background: var(--card); border: 2px solid var(--line); border-radius: var(--r); padding: 22px 24px; margin: 24px 0 32px; }
.lex-entry h2 { font-size: clamp(30px, 3.6vw, 38px); margin: 0 0 6px; }
.lex-original { font-size: 32px; margin-right: 12px; }
.lex-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--muted); margin: 6px 0 12px; }
.lex-pron { font-style: italic; }
.lex-def { font-size: 22px; line-height: 1.6; padding-bottom: 12px; border-bottom: 2px solid var(--line-soft); margin-bottom: 12px; }
.lex-themes { color: var(--muted); margin-bottom: 14px; }
.lex-themes a, .also-in a, .lex-cite a, .book-footer a { color: var(--book-text); margin-right: 8px; }
.from-books h3 { font-family: var(--font-mono); font-weight: 600; font-size: 18px; letter-spacing: .16em; text-transform: uppercase; color: var(--berean-text); margin: 10px 0; }
.book--WordStudies .lex-entry blockquote { font-family: var(--font-body); font-style: normal; font-size: 21px; background: var(--page); border-left: 4px solid var(--book); border-radius: 0 10px 10px 0; padding: 12px 16px; margin: 10px 0 14px; }
.book--WordStudies .lex-entry blockquote em { font-style: italic; color: var(--heading); font-weight: 600; }
.lex-context-note { font-size: 18px; font-style: italic; color: var(--muted); margin: 0 0 10px; }
.lex-cite { display: block; margin-top: 6px; text-align: right; font-style: normal; font-size: 18px; color: var(--muted); }
.also-in, .no-excerpts { font-size: 19px; font-style: italic; color: var(--muted); margin-top: 6px; }
.strongs-table td:first-child { color: var(--book-text); font-weight: 700; white-space: nowrap; }
.strongs-table td a { color: var(--book-text); }
.book-footer { margin-top: 48px; padding-top: 20px; border-top: 2px solid var(--line-soft); color: var(--muted); font-size: 19px; }
.nm-strongs-ref { color: var(--book-text); cursor: pointer; border-bottom: 2px dotted var(--line); }
.table-scroll, .book--WordStudies .content:has(.strongs-table) { overflow-x: auto; }
@media (max-width: 640px) {
  .strongs-table, .supp-table, .comparison-table, .chart-table { display: block; overflow-x: auto; }
  .issue-selector { flex-direction: column; align-items: stretch; }
  .selector-group { justify-content: space-between; }
}
/* the book section's .kicker rule uses --book-text, which exists only on book pages; elsewhere keep Berean green
   (zero specificity via :where, so .band-night .kicker still wins on navy bands) */
:where(main:not(.reading)) .kicker { color: var(--berean-text); }
/* behavior the lesson pages' scripts rely on (lost with their inline styles) */
.reading .hidden { display: none !important; }
.year-issues.collapsed { display: none !important; }
.year-header { display: flex; align-items: center; gap: 14px; margin: 32px 0 16px; cursor: pointer; }
.year-header h2 { margin: 0; }
.year-header .toggle { transition: transform .2s; }
.year-header.collapsed .toggle { transform: rotate(-90deg); }
.year-issues { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); }
.issue-card { padding: 18px 22px !important; }
.issue-card h3 { font-size: 26px; margin: 0 0 10px; }
.issue-card h3 a { text-decoration: none; }
.issue-card h3 a:hover { text-decoration: underline; }
.article-list { list-style: none; padding: 0 !important; margin: 0; display: grid; gap: 6px; }
.article-list li { position: relative; padding-left: 18px; }
.article-list li::before { content: "\2022"; position: absolute; left: 0; }
.chapter > header .stats { color: var(--muted); }
/* Gems: excerpts from the books read in the body face; the lexicon filter's inline dark styles */
.book--WordStudies .lex-entry blockquote p { font-family: var(--font-body); font-style: normal; font-size: 21px; }
#lex-filter { background: var(--card) !important; border: 2px solid var(--line) !important; color: var(--ink) !important; font: 20px/1.3 var(--font-ui) !important; padding: 12px 16px !important; min-height: 52px; }
#lex-filter-count { color: var(--muted) !important; font-size: 18px !important; }
.search-clear { font: 700 19px/1.2 var(--font-ui); color: var(--lamp-text); background: none; border: 0; padding: 6px 10px; cursor: pointer; text-decoration: underline; }

/* DAY / NIGHT SWITCH in the site header (Paul 2026-10-06: "most other pages do not [have it], and I think they
   should"). Same saved choice as the book pages' Night reading button (localStorage nm-reading-mode). */
.theme-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 2px solid var(--band-text); background: transparent; color: var(--band-text); font: 600 18px/1 var(--font-ui); cursor: pointer; }
.theme-btn:hover, .theme-btn:focus-visible { border-color: var(--lamp); color: var(--lamp-soft); }
.theme-btn .ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-btn .sun { display: none; }
.theme-btn[aria-pressed="true"] .moon { display: none; }
.theme-btn[aria-pressed="true"] .sun { display: inline; }
@media (max-width: 640px) { .theme-btn { order: 1; margin-left: auto; } .site-nav { order: 2; } }
/* Book pages: the header's Day/Night switch replaces the reader bar's own button (10/06), one control per page */
.reader-bar .mode-btn { display: none; }
