/* Not One Stroke — the whole stylesheet.
   Plain CSS, no framework. Sections are numbered so any part can be found.

   The look in one sentence: night-ink and white, with the smallest Hebrew letter,
   yod, set enormous on the home page — the "stroke" of Matt. 5:18.

   Two colors carry meaning everywhere:
     tekhelet blue = the handbook's argument (the blue of the tassel thread, Num. 15:38)
     pomegranate   = the other side's best case
   A reader always knows whose voice they are reading. */

/* ---------- 1. Colors, type, sizes ---------- */
:root {
  --night: #141d33;          /* hero and title bands */
  --night-2: #1d2945;
  --ink: #1b2233;            /* body text */
  --ink-soft: #4d5568;       /* secondary text */
  --page: #fbf9f4;           /* warm paper, like a well-kept book */
  --card: #ffffff;           /* cards and boxes sit a shade lighter than the page */
  --mist: #f3eee4;           /* quiet bands (warm sand) */
  --rule: #ddd5c6;

  --tekhelet: #2a5aa6;       /* the argument */
  --tekhelet-light: #8fb2ea; /* the argument, on night */
  --tekhelet-bg: #eef3fb;
  --pomegranate: #9b2335;    /* the counter-reading */
  --pomegranate-bg: #fbf0f1;
  --olive: #45622f;          /* what we concede */
  --olive-bg: #f1f5ec;
  --draft: #7a5c00;
  --draft-bg: #fff4cc;

  --display: 'Frank Ruhl Libre', 'Noto Serif', Georgia, serif;
  --serif: 'Source Serif 4', 'Noto Serif', Georgia, serif;
  --sans: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --hebrew: 'Frank Ruhl Libre', 'Noto Serif Hebrew', serif;

  --measure: 36rem;          /* about 65 characters of body text */
  --wide: 68rem;
}

/* ---------- 2. Page basics ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--page); color: var(--ink);
  font-family: var(--serif); font-size: 1.1875rem; line-height: 1.62;   /* 19 px */
  font-optical-sizing: auto;
}
a { color: var(--tekhelet); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--tekhelet); outline-offset: 3px; }
.on-night :focus-visible { outline-color: var(--tekhelet-light); }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .5rem 1rem; z-index: 10; font-family: var(--sans); }
.skip-link:focus { left: 0; }

.wrap { max-width: var(--measure); margin: 0 auto; padding: 0 1.25rem; }
.wrap-wide { max-width: var(--wide); margin: 0 auto; padding: 0 1.25rem; }

:lang(he) { font-family: var(--hebrew); font-size: 1.12em; }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- 3. Header and footer ---------- */
.site-header { background: var(--night); color: #fff; font-family: var(--sans); }
.site-header .wrap-wide { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; padding-top: .9rem; padding-bottom: .9rem; }
.site-name { font-family: var(--display); font-weight: 700; font-size: 1.3rem; color: #fff; text-decoration: none; display: inline-flex; align-items: baseline; gap: .45rem; }
.site-name .mark { font-family: var(--hebrew); color: var(--tekhelet-light); font-size: 1.5rem; line-height: 1; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; font-size: 1rem; }
.site-nav a { color: #c9d3e6; text-decoration: none; padding: .3rem 0; display: inline-block; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: #fff; box-shadow: inset 0 -2px 0 var(--tekhelet-light); }

.site-footer { margin-top: 5rem; background: var(--mist); font-family: var(--sans); font-size: .95rem; color: var(--ink-soft); }
.site-footer .wrap-wide { padding-top: 2rem; padding-bottom: 2.5rem; }
.site-footer p { margin: .35rem 0; }

/* ---------- 4. Text ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.2; color: var(--ink); }
h2 { font-size: 1.6rem; margin: 2.6rem 0 .8rem; }
h3 { font-size: 1.25rem; margin: 2rem 0 .5rem; }
p { margin: 0 0 1.1rem; }
blockquote { margin: 1.4rem 0; padding-left: 1.2rem; border-left: 3px solid var(--tekhelet); font-style: italic; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 2.5rem 0; }
sup { line-height: 0; font-size: .7em; font-family: var(--sans); }
main { display: block; }

/* ---------- 5. Home ---------- */
.hero { background: var(--night); color: #fff; overflow: hidden; position: relative; }
.hero .wrap-wide { position: relative; padding-top: 2.5rem; padding-bottom: 3.5rem; min-height: 36rem; display: flex; flex-direction: column; justify-content: flex-end; }
.hero-yod {
  position: absolute; top: -.02em; right: .02em; margin: 0;
  font-family: var(--hebrew); font-weight: 900; line-height: .8;
  font-size: clamp(30rem, 120vw, 60rem); color: var(--tekhelet); opacity: .85;
  pointer-events: none; user-select: none;
}
.hero-verse { position: relative; font-family: var(--sans); font-size: .95rem; color: #c9d3e6; margin: 0 0 1.25rem; max-width: 22rem; }
.hero-verse a { color: #fff; }
.hero-thesis {
  position: relative; margin: 0; max-width: 40rem;
  font-family: var(--display); font-weight: 500; font-size: clamp(1.65rem, 5.2vw, 2.6rem); line-height: 1.22; color: #fff;
}
.hero-actions { position: relative; margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; align-items: center; font-family: var(--sans); }
.button { display: inline-block; font-family: var(--sans); font-weight: 600; font-size: 1.05rem; background: #fff; color: var(--night); text-decoration: none; padding: .8rem 1.4rem; border-radius: 999px; }
.button:hover { background: var(--tekhelet-light); }
.button-light { background: var(--night); color: #fff; }
.button-light:hover { background: var(--tekhelet, #2a4d8f); color: #fff; }
.hero-actions .quiet { color: #c9d3e6; }

/* Home opening (framing.json "opening"): not-arguing line first, then the question, then where we land. */
.hero-open .wrap-wide { justify-content: flex-start; min-height: 0; padding-top: 2rem; }
.hero-open .draft-banner { position: relative; }
.hero-not-arguing { position: relative; margin: 0 0 2.5rem; max-width: 34rem; font-family: var(--sans); font-size: 1.125rem; line-height: 1.45; color: #fff; background: rgba(20,29,51,.82); border-left: 4px solid var(--olive-bg); padding: .6rem .9rem; }
.hero-kicker { position: relative; margin: 0 0 .6rem; font-family: var(--sans); font-size: .95rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #c9d3e6; }
.hero-question { position: relative; margin: 0; max-width: 40rem; font-family: var(--display); font-weight: 500; font-size: clamp(1.8rem, 5.6vw, 2.9rem); line-height: 1.2; color: #fff; }
.hero-follow { position: relative; margin: 1.2rem 0 0; max-width: 36rem; font-size: 1.15rem; line-height: 1.5; color: #e4e9f3; }
.hero-land { position: relative; margin-top: 2rem; max-width: 38rem; border-top: 1px solid rgba(255,255,255,.35); padding-top: 1rem; background: rgba(20,29,51,.82); }
.hero-land h2 { margin: 0 0 .35rem; font-family: var(--sans); font-size: .95rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #c9d3e6; }
.hero-land h2 a { color: #fff; text-transform: none; letter-spacing: 0; font-weight: 400; margin-left: .4rem; }
.hero-land p { margin: 0; font-family: var(--display); font-size: 1.2rem; line-height: 1.4; color: #fff; }
/* Orientation (framing.json "wayfinding"): what this is, the way in and its time, then the verse behind the name. */
.hero-wayfind .hero-not-arguing { font-size: 1.125rem; margin-bottom: 1.25rem; }
.hero-what { position: relative; margin: 0 0 1.25rem; max-width: 36rem; font-size: 1.125rem; line-height: 1.5; color: #fff; background: rgba(20,29,51,.82); }
.hero-who { display: block; margin-top: .3rem; font-family: var(--sans); font-size: 1rem; color: #c9d3e6; }
.hero-who a { color: #fff; }
.hero-wayfind .hero-actions { margin-top: 1.25rem; }
.hero-secondary { position: relative; margin: .75rem 0 0; font-family: var(--sans); }
.hero-secondary .quiet { color: #c9d3e6; }
.hero-time { position: relative; margin: .6rem 0 0; font-family: var(--sans); font-size: 1rem; color: #c9d3e6; max-width: 34rem; }
.hero-name { position: relative; margin: 2rem 0 0; max-width: 38rem; background: rgba(20,29,51,.82); border-top: 1px solid rgba(255,255,255,.35); padding-top: 1rem; }
.hero-name figcaption { font-family: var(--sans); font-size: .95rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #c9d3e6; margin-bottom: .35rem; }
.hero-name blockquote { margin: 0; }
.hero-name blockquote p { margin: 0; font-style: italic; font-size: 1.2rem; line-height: 1.45; color: #fff; }
.hero-name-ref { margin: .5rem 0 0; font-family: var(--sans); font-size: 1rem; color: #c9d3e6; }
.hero-name-ref a { color: #fff; }
/* On a phone the big yod sits behind the text; keep it faint there so it never competes with the words. */
@media (max-width: 47.99rem) { .hero-wayfind .hero-yod { opacity: .35; } }
.orientation { background: var(--olive-bg); }
.orientation .wrap-wide { padding-top: 2rem; padding-bottom: 2rem; }
.orientation h2 { margin-top: 0; }
.orientation-steps { padding-left: 1.4rem; margin: 1rem 0 0; }
.orientation-steps li { margin-bottom: .7rem; }
.orientation-steps a { color: var(--ink); }
.orientation-steps a strong { font-family: var(--sans); }

.not-arguing { background: var(--olive-bg); }
.not-arguing .wrap { padding-top: 2rem; padding-bottom: 2rem; }
.not-arguing h2 { margin: 0 0 .4rem; font-size: 1.15rem; color: var(--olive); font-family: var(--sans); font-weight: 600; }
.not-arguing p { margin: 0; font-family: var(--display); font-size: 1.45rem; line-height: 1.3; }

.ways { padding-top: 1rem; }
.not-arguing .wrap-wide { padding-top: 2rem; padding-bottom: 2rem; }
.ways h2 { margin-top: 3rem; }
.ways ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.ways li { border-bottom: 1px solid var(--rule); }
.ways a { display: grid; grid-template-columns: 1fr auto; gap: .1rem 1rem; padding: 1.1rem 0; text-decoration: none; color: var(--ink); }
.ways a strong { font-family: var(--display); font-size: 1.35rem; font-weight: 700; }
.ways a span { grid-column: 1; font-family: var(--sans); font-size: 1rem; color: var(--ink-soft); }
.ways a::after { content: ""; grid-column: 2; grid-row: 1 / span 2; align-self: center; width: .6rem; height: .6rem; border-top: 2px solid var(--tekhelet); border-right: 2px solid var(--tekhelet); transform: rotate(45deg); }
.ways a:hover strong { color: var(--tekhelet); }

.chapters ol { list-style: none; counter-reset: ch; margin: 0; padding: 0; }
.chapters li { counter-increment: ch; display: grid; grid-template-columns: 2.4rem 1fr; padding: .7rem 0; border-bottom: 1px solid var(--rule); font-family: var(--display); font-size: 1.2rem; }
.chapters li::before { content: counter(ch); font-family: var(--display); font-weight: 900; color: var(--tekhelet); }

/* ---------- 6. Entry pages ---------- */
.entry-head { background: var(--night); color: #fff; }
.entry-head .wrap { padding-top: 2.2rem; padding-bottom: 2.4rem; }
.entry-chapter { font-family: var(--sans); font-size: 1rem; color: #c9d3e6; margin: 0 0 .6rem; }
.entry-head h1 { color: #fff; font-size: clamp(2rem, 7vw, 3rem); font-weight: 700; line-height: 1.12; margin: 0 0 1rem; }
.entry-anchor { font-family: var(--sans); font-weight: 600; color: var(--tekhelet-light); margin: 0; font-size: 1.05rem; }
.entry-anchor a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.15em; } /* Scripture links in the dark heading band keep its light colour */
.entry-body { padding-top: 1.6rem; }

/* The handbook's own voice */
.voice-argument > .sec > h2 { color: var(--ink); }
.voice-argument > .sec:first-child > h2 { margin-top: .6rem; }

/* The other side's best case: always pomegranate */
.sec-strongest-counter-reading, .sec-strongest-counter-readings, .sec-5-the-strongest-objections, .sec-the-best-case-against {
  margin: 2.6rem -1.25rem; padding: .6rem 1.25rem 1rem;
  background: var(--pomegranate-bg); border-top: 4px solid var(--pomegranate);
}
.sec-strongest-counter-reading > h2, .sec-strongest-counter-readings > h2, .sec-5-the-strongest-objections > h2, .sec-the-best-case-against > h2 { color: var(--pomegranate); margin-top: 1rem; }
@media (min-width: 40rem) { .sec-strongest-counter-reading, .sec-the-best-case-against { margin-left: 0; margin-right: 0; border-radius: 0 0 6px 6px; } }

/* What we concede: always olive, never hidden */
.sec-what-we-concede, .sec-what-we-have-to-admit {
  margin: 2.6rem -1.25rem; padding: .6rem 1.25rem 1rem;
  background: var(--olive-bg); border-top: 4px solid var(--olive);
}
.sec-what-we-concede > h2, .sec-what-we-have-to-admit > h2 { color: var(--olive); }

/* Limits the entry sets on itself: historical "What this does not prove",
   objection "What it does and does not establish". Olive, like concessions. */
.sec-what-this-does-not-prove, .sec-what-it-does-and-does-not-establish, .sec-what-the-evidence-establishes-and-leaves-unresolved, .sec-what-the-passage-establishes-and-what-it-leaves-open, .sec-the-limits-of-the-historical-evidence, .sec-what-the-history-does-not-settle, .sec-what-the-disagreement-does-not-show, .sec-what-the-witnesses-cannot-show {
  margin: 2.6rem -1.25rem; padding: .6rem 1.25rem 1rem;
  background: var(--olive-bg); border-top: 4px solid var(--olive);
}
.sec-what-this-does-not-prove > h2, .sec-what-it-does-and-does-not-establish > h2, .sec-what-the-evidence-establishes-and-leaves-unresolved > h2, .sec-what-the-passage-establishes-and-what-it-leaves-open > h2, .sec-the-limits-of-the-historical-evidence > h2, .sec-what-the-history-does-not-settle > h2, .sec-what-the-disagreement-does-not-show > h2, .sec-what-the-witnesses-cannot-show > h2 { color: var(--olive); }
/* The objection as it is usually pressed: in the other side's color */
.sec-what-it-is-taken-to-prove, .sec-the-opposing-reading, .sec-the-strongest-opposing-reading {
  margin: 2.6rem -1.25rem; padding: .6rem 1.25rem 1rem;
  background: var(--pomegranate-bg); border-top: 4px solid var(--pomegranate);
}
.sec-what-it-is-taken-to-prove > h2, .sec-the-opposing-reading > h2, .sec-the-strongest-opposing-reading > h2 { color: var(--pomegranate); }
@media (min-width: 40rem) {
  .sec-what-we-have-to-admit, .sec-what-this-does-not-prove, .sec-what-it-does-and-does-not-establish, .sec-what-it-is-taken-to-prove, .sec-what-the-evidence-establishes-and-leaves-unresolved, .sec-the-opposing-reading, .sec-what-we-concede, .sec-the-strongest-opposing-reading, .sec-what-the-passage-establishes-and-what-it-leaves-open, .sec-the-limits-of-the-historical-evidence, .sec-what-the-history-does-not-settle, .sec-what-the-disagreement-does-not-show, .sec-what-the-witnesses-cannot-show { margin-left: 0; margin-right: 0; }
}
.gap-notice { background: #fff; border: 2px dashed var(--pomegranate); color: var(--pomegranate); font-family: var(--sans); font-size: .95rem; padding: .7rem 1rem; }

/* Go deeper: the academic rendering, closed until opened */
details.deeper { margin: 3.5rem 0 1rem; border-top: 2px solid var(--night); }
details.deeper > summary {
  cursor: pointer; list-style: none; padding: 1.1rem 0;
  font-family: var(--display); font-size: 1.45rem; font-weight: 700; color: var(--night);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
details.deeper > summary::-webkit-details-marker { display: none; }
details.deeper > summary .hint { display: block; font-family: var(--sans); font-size: .95rem; font-weight: 400; color: var(--ink-soft); }
details.deeper > summary::after {
  content: "+"; flex: none; width: 2.4rem; height: 2.4rem; border-radius: 50%;
  border: 2px solid var(--night); display: grid; place-items: center; font-family: var(--sans); font-size: 1.4rem; line-height: 1;
}
details.deeper[open] > summary::after { content: "−"; background: var(--night); color: #fff; }
.deeper-body { font-size: 1.125rem; padding-bottom: 1.5rem; }   /* 18 px, the project minimum */
.full-only-note { font-family: var(--sans); font-size: .95rem; color: var(--ink-soft); margin: 0 0 1rem; }
.sec-notes { font-size: .92rem; font-family: var(--sans); }
/* Footnotes (markdown-it-footnote) */
.footnotes-sep { margin: 2.5rem 0 1rem; }
.footnotes { font-family: var(--sans); font-size: .92rem; color: var(--ink-soft); }
.footnotes ol { padding-left: 1.4rem; }
.footnote-ref a { text-decoration: none; }
.footnote-backref { text-decoration: underline; text-underline-offset: .15em; }  /* a non-color cue, so the link is found without seeing color (WCAG 1.4.1) */

.stub { border-left: 4px solid var(--rule); padding: .8rem 1.1rem; font-family: var(--sans); color: var(--ink-soft); background: var(--mist); }
.draft-banner { background: var(--draft-bg); border-left: 4px solid var(--draft); color: #4d3a00; font-family: var(--sans); font-size: .95rem; padding: .7rem 1rem; margin: 0 0 1.5rem; }

/* ---------- 6b. Entry extras ---------- */
.entry-summary { font-family: var(--display); font-size: 1.3rem; line-height: 1.4; color: var(--ink); margin: .4rem 0 1.6rem; }
.entry-spine { margin: .9rem 0 0; font-family: var(--sans); font-size: .95rem; }
.entry-spine a { color: #fff; }
.prev-next { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 3.5rem 0 1rem; border-top: 1px solid var(--rule); padding-top: 1.2rem; font-family: var(--display); font-size: 1.05rem; line-height: 1.3; }
.prev-next a { text-decoration: none; color: var(--ink); }
.prev-next a span { display: block; font-family: var(--sans); font-size: .9rem; color: var(--tekhelet); margin-bottom: .25rem; }
.prev-next .next { text-align: right; grid-column: 2; }
.prev-next a:hover { color: var(--tekhelet); }
.back-to-catalog { font-family: var(--sans); font-size: .95rem; }

/* ---------- 6c. Page heads, catalog, Start Here ---------- */
.page-head { background: var(--night); color: #fff; }
.page-head > div { padding-top: 2.2rem; padding-bottom: 2.4rem; }
.page-head h1 { color: #fff; font-size: clamp(2.2rem, 8vw, 3.4rem); margin: 0 0 .6rem; }
.page-lede { color: #c9d3e6; font-size: 1.15rem; margin: 0; max-width: 36rem; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.8rem 0 .5rem; }
/* On a phone the chips sit in one row you can swipe sideways, so the entries start sooner. */
@media (max-width: 43.99rem) {
  .chips { flex-wrap: nowrap; overflow-x: auto; margin-left: -1.25rem; margin-right: -1.25rem; padding: 0 1.25rem .4rem; scrollbar-width: none; }
  .chip { flex: none; }
}
.chip { font-family: var(--sans); font-size: .95rem; border: 1px solid var(--rule); background: #fff; color: var(--ink); border-radius: 999px; padding: .45rem .9rem; cursor: pointer; min-height: 2.5rem; }
.chip:hover { border-color: var(--tekhelet); }
.chip[aria-pressed="true"] { background: var(--night); border-color: var(--night); color: #fff; }
.filter-status { font-family: var(--sans); color: var(--ink-soft); min-height: 1.5em; margin: .3rem 0 0; }

.catalog-part { margin-top: 2.5rem; }
.catalog-part > h2 { font-size: 1.75rem; border-bottom: 2px solid var(--night); padding-bottom: .5rem; }
.part-note { font-family: var(--sans); color: var(--ink-soft); font-size: 1rem; max-width: 40rem; }
.catalog-chapter h3 { font-size: 1.3rem; display: flex; gap: .7rem; align-items: baseline; }
.ch-number { font-weight: 900; color: var(--tekhelet); }
.cards { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: .9rem; }
@media (min-width: 44rem) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 66rem) { .cards { grid-template-columns: 1fr 1fr 1fr; } }
.card a { display: flex; flex-direction: column; gap: .3rem; height: 100%; padding: 1rem 1.1rem 1.1rem; text-decoration: none; color: var(--ink); background: #fff; border: 1px solid var(--rule); border-top: 3px solid var(--tekhelet); border-radius: 0 0 6px 6px; }
#objection .card a { border-top-color: var(--pomegranate); }
#history .card a { border-top-color: var(--olive); }
.card a:hover { border-color: var(--night); border-top-color: inherit; box-shadow: 0 2px 0 var(--night); }
.card-title { font-family: var(--display); font-weight: 700; font-size: 1.2rem; line-height: 1.25; }
.card-anchor { font-family: var(--sans); font-weight: 600; font-size: .92rem; color: var(--tekhelet); }
.card-summary { font-size: 1rem; line-height: 1.5; color: var(--ink-soft); }
.card-badges { margin-top: auto; padding-top: .4rem; display: flex; gap: .4rem; flex-wrap: wrap; }
.badge { white-space: nowrap; font-family: var(--sans); font-size: .8rem; font-weight: 600; padding: .15rem .55rem; border-radius: 999px; }
.badge-spine { background: var(--tekhelet-bg); color: var(--tekhelet); }
.badge-progress { background: var(--mist); color: var(--ink-soft); }
.badge-full { background: var(--mist); color: var(--ink-soft); }

.path { list-style: none; counter-reset: step; margin: 2rem 0; padding: 0; }
.path li { counter-increment: step; position: relative; padding-left: 3.4rem; margin-bottom: 1.4rem; }
.path li::before { content: counter(step); position: absolute; left: 0; top: .1rem; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--night); color: #fff; display: grid; place-items: center; font-family: var(--display); font-weight: 700; }
.path a { display: flex; flex-direction: column; gap: .25rem; text-decoration: none; color: var(--ink); }
.path-title { font-family: var(--display); font-weight: 700; font-size: 1.35rem; line-height: 1.25; }
.path a:hover .path-title { color: var(--tekhelet); }
.path-question { font-size: 1.02rem; color: var(--ink-soft); }
.path .badge { align-self: flex-start; }
.path-after { font-family: var(--sans); }
.chapters a { color: var(--ink); text-decoration: none; }
.chapters a:hover { color: var(--tekhelet); }
.hero-actions .quiet { color: #c9d3e6; font-family: var(--sans); }

/* ---------- 6d. Scripture index, topics, objection finder, search ---------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.on-night-link { color: #c9d3e6; }
.book-jump { display: flex; flex-wrap: wrap; gap: .4rem .9rem; margin: 1.8rem 0; font-family: var(--sans); font-size: .98rem; }
.testament > h2 { font-size: 1.75rem; border-bottom: 2px solid var(--night); padding-bottom: .5rem; margin-top: 2.5rem; }
.book { scroll-margin-top: 1rem; }
.book h3 { font-size: 1.35rem; margin-top: 1.8rem; }
.refs { list-style: none; margin: 0; padding: 0; }
.refs > li { display: grid; grid-template-columns: minmax(8.5rem, 12rem) 1fr; gap: .2rem 1.2rem; padding: .7rem 0; border-bottom: 1px solid var(--rule); }
@media (max-width: 30rem) { .refs > li { grid-template-columns: 1fr; } }
.ref { font-family: var(--sans); font-weight: 600; }
.ref-links { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .9rem; }
.ref-logos { display: inline-block; padding: .2rem 0; min-height: 24px; font-family: var(--sans); font-size: .9rem; }
.ref-entries { list-style: none; margin: 0; padding: 0; }
.ref-entries a { color: var(--ink); font-family: var(--display); font-size: 1.1rem; text-decoration: none; }
.ref-entries a:hover { color: var(--tekhelet); text-decoration: underline; }

.topic-list { list-style: none; margin: 2rem 0; padding: 0; display: grid; gap: .9rem; }
@media (min-width: 44rem) { .topic-list { grid-template-columns: 1fr 1fr; } }
.topic-list a { display: flex; flex-direction: column; gap: .3rem; padding: 1rem 1.1rem; border: 1px solid var(--rule); border-left: 4px solid var(--tekhelet); text-decoration: none; color: var(--ink); height: 100%; }
.topic-list strong { font-family: var(--display); font-size: 1.3rem; }
.topic-list span { font-size: 1rem; color: var(--ink-soft); }
.topic-list .count { font-family: var(--sans); font-size: .9rem; color: var(--tekhelet); margin-top: auto; }
.topic-list a:hover { border-color: var(--night); }

.entry-topics { font-family: var(--sans); font-size: 1.125rem; color: var(--ink-soft); margin: 1.5rem 0 0; }
.entry-topics a { margin-right: .6rem; }
/* The verse link beside "Where I land" on Home: at least 24 px tall to tap (WCAG 2.5.8). */
.hero-land h2 a { display: inline-block; min-height: 24px; padding: .15rem 0; }

.finder-search { margin: 1.8rem 0 1rem; max-width: 36rem; }
.finder-search label { display: block; font-family: var(--sans); font-weight: 600; margin-bottom: .4rem; }
.finder-search input { width: 100%; font: inherit; font-family: var(--sans); padding: .75rem 1rem; border: 2px solid var(--night); border-radius: 8px; }
.finder-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); max-width: 44rem; }
.finder-item { border-bottom: 1px solid var(--rule); }
.finder-item a { display: flex; flex-direction: column; gap: .3rem; padding: 1rem 0; text-decoration: none; color: var(--ink); }
.finder-q { font-family: var(--display); font-weight: 700; font-size: 1.3rem; line-height: 1.25; border-left: 4px solid var(--pomegranate); padding-left: .8rem; }
.finder-item a:hover .finder-q { color: var(--pomegranate); }
.finder-meta { padding-left: 1.05rem; font-family: var(--sans); font-size: .95rem; color: var(--ink-soft); }
.finder-item .badge { align-self: flex-start; margin-left: 1.05rem; }
.finder-empty { font-family: var(--sans); }

/* Pagefind's search box, in the site's colors and type */
.search-page { padding-top: 2rem; --pagefind-ui-scale: 1; --pagefind-ui-primary: var(--tekhelet); --pagefind-ui-text: var(--ink); --pagefind-ui-border: var(--night); --pagefind-ui-border-width: 2px; --pagefind-ui-border-radius: 8px; --pagefind-ui-font: var(--sans); }
.search-page .pagefind-ui__result-title { font-family: var(--display); }

/* ---------- 6e. About, Sources, Glossary, 404, footer ---------- */
.about section { margin-top: 2.2rem; }
.about h2 { margin-top: 0; }
.about .big { font-family: var(--display); font-size: 1.4rem; line-height: 1.35; }
.not-arguing-inline { background: var(--olive-bg); border-left: 4px solid var(--olive); padding: 1rem 1.2rem; }
.not-arguing-inline h2 { color: var(--olive); font-family: var(--sans); font-size: 1.1rem; font-weight: 600; margin-bottom: .3rem; }
.not-arguing-inline .big { margin: 0; }
.front-list, .ways-plain { padding-left: 1.2rem; }
.front-list li, .ways-plain li { margin-bottom: .5rem; }
.glossary { margin: 2rem 0; }
.gloss-item { padding: 1rem 0; border-bottom: 1px solid var(--rule); scroll-margin-top: 1rem; }
.glossary dt { font-family: var(--display); font-weight: 700; font-size: 1.3rem; }
.gloss-original { font-weight: 500; color: var(--tekhelet); margin-left: .4rem; }
.glossary dd { margin: .3rem 0 0; }
.gloss-translit { color: var(--ink-soft); }
.footer-grid { display: grid; gap: 1rem 3rem; }
@media (min-width: 48rem) { .footer-grid { grid-template-columns: auto 1fr; } }
.footer-grid nav { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
.footer-grid nav a { color: var(--ink); }

/* ---------- 7. Wider screens ---------- */
@media (min-width: 48rem) {
  body { font-size: 1.25rem; }
  .hero .wrap-wide { min-height: 36rem; padding-bottom: 4.5rem; }
  .hero-yod { right: 6%; top: .02em; }
  .home-section > * { max-width: var(--measure); }
  .ways-and-chapters { display: grid; grid-template-columns: 1fr 1fr; gap: 0 4rem; }
  .ways-and-chapters > section > * { max-width: none; }
}

/* ---------- 7b. Finishing touches (design pass, Dec 2026) ----------
   Warm paper, the yod as a quiet signature, and a little more room.
   Colors keep their meanings: blue = the argument, pomegranate = the other side, olive = what we concede. */

/* Headings break into even lines; paragraphs avoid a lonely last word. */
h1, h2, h3 { text-wrap: balance; }
p, li, blockquote { text-wrap: pretty; }
::selection { background: #d6e2f7; color: var(--ink); }

/* Header: a hairline under the dark band, a larger yod, and on a phone the menu on one line. */
.site-header { border-bottom: 1px solid rgba(143,178,234,.28); }
.site-name .mark { font-size: 1.75rem; }
@media (max-width: 47.99rem) {
  .site-header .wrap-wide { padding-top: .75rem; padding-bottom: .5rem; }
  .site-nav { width: 100%; }
  .site-nav ul { justify-content: space-between; gap: .1rem .8rem; font-size: .98rem; }
}
/* Small phones (under 400 px): slightly smaller menu words so all five still fit on one line. */
@media (max-width: 24.99rem) { .site-nav ul { gap: .1rem .5rem; font-size: .93rem; } }

/* The yod, large and faint, in the corner of every title band. The empty text after "/"
   tells screen readers to skip it; browsers too old to read that simply leave it out. */
.entry-head, .page-head { position: relative; overflow: hidden; }
.entry-head::after, .page-head::after {
  content: "\5D9" / ""; position: absolute; right: .02em; top: -.12em; z-index: 0;
  font-family: var(--hebrew); font-weight: 900; font-size: 17rem; line-height: 1;
  color: var(--tekhelet); opacity: .3; pointer-events: none;
}
.entry-head > *, .page-head > * { position: relative; z-index: 1; }
@media (min-width: 48rem) { .entry-head::after, .page-head::after { right: 8%; font-size: 22rem; } }

/* The argument's own section headings carry a short blue rule: "this is the handbook speaking". */
.voice-argument > .sec > h2::before { content: ""; display: block; width: 2.5rem; height: 3px; background: var(--tekhelet); margin-bottom: .7rem; border-radius: 2px; }
/* Inside the colored boxes the rule takes the box's color, so it never mislabels whose voice it is. */
.voice-argument > .sec-strongest-counter-reading > h2::before,
.voice-argument > .sec-strongest-counter-readings > h2::before,
.voice-argument > .sec-5-the-strongest-objections > h2::before,
.voice-argument > .sec-what-it-is-taken-to-prove > h2::before,
.voice-argument > .sec-the-opposing-reading > h2::before,
.voice-argument > .sec-the-strongest-opposing-reading > h2::before { background: var(--pomegranate); }
.voice-argument > .sec-what-we-concede > h2::before,
.voice-argument > .sec-what-this-does-not-prove > h2::before,
.voice-argument > .sec-what-it-does-and-does-not-establish > h2::before,
.voice-argument > .sec-what-the-evidence-establishes-and-leaves-unresolved > h2::before,
.voice-argument > .sec-what-the-passage-establishes-and-what-it-leaves-open > h2::before,
.voice-argument > .sec-the-limits-of-the-historical-evidence > h2::before,
.voice-argument > .sec-what-the-history-does-not-settle > h2::before,
.voice-argument > .sec-what-the-disagreement-does-not-show > h2::before,
.voice-argument > .sec-what-the-witnesses-cannot-show > h2::before { background: var(--olive); }

/* Boxes for the other side, concessions and limits: soft corners, a lighter card. */
@media (min-width: 40rem) {
  .sec-strongest-counter-reading, .sec-strongest-counter-readings, .sec-5-the-strongest-objections,
  .sec-what-we-concede, .sec-what-this-does-not-prove, .sec-what-it-does-and-does-not-establish,
  .sec-what-it-is-taken-to-prove, .sec-the-opposing-reading, .sec-the-strongest-opposing-reading,
  .sec-what-the-evidence-establishes-and-leaves-unresolved, .sec-what-the-passage-establishes-and-what-it-leaves-open,
  .sec-the-limits-of-the-historical-evidence, .sec-what-the-history-does-not-settle,
  .sec-what-the-disagreement-does-not-show, .sec-what-the-witnesses-cannot-show { border-radius: 0 0 10px 10px; padding-left: 1.5rem; padding-right: 1.5rem; }
}

/* Scripture set apart: italic, a blue rule, a touch larger. */
.entry-body blockquote { padding: .2rem 0 .2rem 1.2rem; }

/* Go deeper: a panel you can see is a door, not just a line. */
details.deeper { border: 1px solid var(--rule); border-top: 3px solid var(--night); border-radius: 0 0 10px 10px; background: var(--card); padding: 0 1.1rem; }
details.deeper > summary::after { border-color: var(--tekhelet); color: var(--tekhelet); }
details.deeper[open] > summary::after { background: var(--tekhelet); border-color: var(--tekhelet); color: #fff; }
details.deeper > summary:hover::after { background: var(--tekhelet-bg); }
details.deeper[open] > summary:hover::after { background: var(--tekhelet); }

/* Cards: white on the warm page, with a soft shadow and rounder corners. */
.card a { background: var(--card); border-radius: 0 0 10px 10px; box-shadow: 0 1px 2px rgba(27,34,51,.06); transition: box-shadow .15s, border-color .15s; }
.card a:hover { box-shadow: 0 6px 18px rgba(27,34,51,.12); }
.topic-list a { background: var(--card); border-radius: 0 10px 10px 0; }
.chip { background: var(--card); }

/* Previous and next as two quiet cards. */
.prev-next a { display: block; padding: .8rem 1rem; background: var(--card); border: 1px solid var(--rule); border-radius: 10px; height: 100%; }
.prev-next a:hover { border-color: var(--tekhelet); }

/* A plain rule inside the text becomes a small yod between two lines. */
main hr:not(.footnotes-sep) {
  height: 1.6rem; border: 0; margin: 2.5rem auto; max-width: 14rem; text-align: center; overflow: visible;
  background: linear-gradient(var(--rule), var(--rule)) left center / 40% 1px no-repeat,
              linear-gradient(var(--rule), var(--rule)) right center / 40% 1px no-repeat;
}
main hr:not(.footnotes-sep)::after { content: "\5D9" / ""; font-family: var(--hebrew); font-weight: 900; font-size: 1.5rem; line-height: 1.6rem; color: var(--tekhelet); }

/* Footer: the yod sits on the line where the page ends. */
.site-footer { position: relative; border-top: 1px solid var(--rule); }
.site-footer::before {
  content: "\5D9" / ""; position: absolute; left: 50%; top: 0; transform: translate(-50%, -55%);
  width: 3rem; height: 3rem; display: grid; place-items: center; border-radius: 50%;
  background: var(--page); border: 1px solid var(--rule);
  font-family: var(--hebrew); font-weight: 900; font-size: 2.2rem; line-height: 1; color: var(--tekhelet);
}

/* ---------- 8. Print ---------- */
@media print {
  .site-header, .site-footer, .hero-yod, .skip-link { display: none; }
  .entry-head::after, .page-head::after, main hr::after { display: none; }
  .entry-head, .hero { background: none; color: #000; }
  .entry-head h1, .hero-thesis { color: #000; }
  /* A printed guide session works as a handout: no page-to-page links, and headings stay with their text. */
  .prev-next, .back-to-catalog { display: none; }
  h2, h3 { break-after: avoid; }
  li, blockquote, table { break-inside: avoid; }
  /* "Go deeper" prints open (a script opens it on print; this covers browsers that print without it). */
  details.deeper::details-content { content-visibility: visible; display: block; }
  details.deeper > summary::after { display: none; }
}

/* Guides: the list of sessions on /guides/ and the entries behind each session. */
.guide-sessions { padding-left: 1.6rem; }
.guide-sessions li { margin: .45rem 0; }
.guide-sessions .badge { margin-left: .4rem; }
.guide-entries { margin-top: 2rem; }
.guide-entries h2 { font-family: var(--sans); font-size: 1.05rem; }

/* Practice Guide text (folded in from the BSB site copy): the Scripture note and the claims box. */
.guide-scripture-note { font-family: var(--sans); font-size: .9rem; color: var(--ink-soft); margin-top: 2rem; }
.guide-extra { list-style: none; padding-left: 0; }
.sec-what-the-handbook-claims-here { border-left: 4px solid var(--olive); padding-left: 1rem; }

/* Tables inside entry and guide text (e.g. the calendar in Practice Guide Session 4):
   full width, light rules, and a smaller sans face so three columns fit a phone screen. */
.entry-body table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; font-family: var(--sans); font-size: .9rem; }
.entry-body th, .entry-body td { border-bottom: 1px solid var(--rule); padding: .45rem .5rem; text-align: left; vertical-align: top; }
.entry-body th { font-weight: 600; }

/* Corrections (_data/corrections.json): a dated note near the top of a corrected entry,
   and the list on the Corrections page. Night-blue rule: it is neither side's voice. */
.correction-note {
  margin: 1.5rem 0 2rem; padding: .4rem 1.25rem 1rem;
  background: var(--mist); border-left: 4px solid var(--night);
}
.correction-note h2 { font-family: var(--sans); font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; margin: .8rem 0 .2rem; }
.correction-item + .correction-item { border-top: 1px solid var(--rule); margin-top: 1rem; padding-top: .6rem; }
.correction-date { font-family: var(--sans); font-size: .95rem; color: var(--ink-soft); margin-bottom: .2rem; }
.correction-credit { font-style: italic; }
.correction-more { font-family: var(--sans); font-size: .95rem; }

/* Further reading (pages/reading.njk, _includes/partials/further-reading.njk) and its articles (reading/) */
.reading-toc { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; font-family: var(--sans); margin-top: 1.5rem; }
.reading-list { list-style: none; padding: 0; margin: 1rem 0 0; }
.reading-item { padding: .7rem 0; border-bottom: 1px solid var(--rule); }
.reading-item p { margin: 0; }
.reading-cite { padding-left: 1.5rem; text-indent: -1.5rem; } /* hanging indent, as in a printed bibliography */
.reading-note { margin-top: .35rem !important; color: var(--ink-soft); }
.reading h3 { margin-top: 2rem; }
/* the section link above an article title, readable on the dark header */
.entry-chapter a { color: inherit; }
/* Breadcrumbs above an entry title (Catalog › Part › Chapter), on the dark header */
.crumbs ol { list-style: none; padding: 0; margin: 0 0 .6rem; display: flex; flex-wrap: wrap; gap: .2rem 0; font-family: var(--sans); font-size: 1rem; color: #c9d3e6; }
.crumbs li + li::before { content: "›"; margin: 0 .45rem; color: #c9d3e6; }
.crumbs a { color: #fff; }
/* "Last updated" and "Cite this entry" at the foot of an entry */
.entry-cite { margin: 2.5rem 0 1.5rem; padding-top: 1.2rem; border-top: 1px solid var(--rule); }
.entry-updated { font-family: var(--sans); font-size: 1rem; color: var(--ink-soft); margin: 0 0 1rem; }
.entry-cite h2 { font-family: var(--sans); font-size: 1.05rem; margin: 0 0 .4rem; }
.cite-text { padding: .8rem 1rem; background: var(--card); border: 1px solid var(--rule); border-radius: 4px; user-select: all; overflow-wrap: anywhere; }
@media print { .crumbs { display: none; } }
/* Scholars cited (/sources/scholars/) */
.scholar-list { list-style: none; padding: 0; }
.scholar-list li { padding: .55rem 0; border-bottom: 1px solid var(--rule); }

/* Practice Guide session extras (_data/sessionextras.json): aims and look back above the text,
   the understanding check and the closing prayer below it. Night-blue rule: neither side's voice. */
.session-aims, .session-check, .session-pray { margin: 1.5rem 0 2rem; padding: .4rem 1.25rem 1rem; background: var(--mist); border-left: 4px solid var(--night); }
.session-aims h2, .session-check h2, .session-pray h2 { font-family: var(--sans); font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; margin: .8rem 0 .3rem; }
.session-aims dl { margin: 0; }
.session-aims dt { font-family: var(--sans); font-weight: 600; margin-top: .5rem; }
.session-aims dd { margin: 0 0 0 0; }
.session-check-how { font-family: var(--sans); font-size: .9rem; color: var(--ink-soft); }
.session-pray blockquote { margin: .8rem 0; font-style: italic; }
.session-pray footer { font-style: normal; font-family: var(--sans); font-size: .9rem; color: var(--ink-soft); }
@media print { .session-aims, .session-check, .session-pray { break-inside: avoid; } }
.session-pray-note { font-family: var(--sans); font-size: .9rem; color: var(--ink-soft); margin-top: -.3rem; }

/* Start Here path: position and next step, on the five Start Here entries (partials/entry-foot.njk). */
.path-next { margin: 2rem 0 2.5rem; padding: 1rem 1.1rem; border: 2px solid var(--tekhelet); border-radius: 6px; font-family: var(--sans); }
.path-step { margin: 0 0 .5rem; font-size: .95rem; }
.path-go { display: block; font-family: var(--display); font-size: 1.15rem; line-height: 1.3; color: var(--ink); text-decoration: none; }
.path-go span { display: block; font-family: var(--sans); font-size: .9rem; color: var(--tekhelet); margin-bottom: .25rem; }
.path-go:hover, .path-go:focus { color: var(--tekhelet); text-decoration: underline; }
@media print { .path-next { display: none; } }

/* Plain-words line under "what I'm not arguing" on Home (framing.json opening.plainWords). */
.hero-plain { font-family: var(--sans); font-size: 1rem; margin: -.4rem 0 1.4rem; opacity: .92; }
.draft-inline { display: inline-block; margin: .4rem 0 0; padding: .2rem .5rem; }

/* "Talk it over": one discussion question after the "In brief" (partials/talk-it-over.njk). */
.talk-it-over { margin: 2rem 0 0; padding: 1rem 1.1rem; background: var(--card); border: 1px solid var(--rule); border-left: 4px solid var(--tekhelet); border-radius: 0 6px 6px 0; }
.talk-it-over h2 { font-family: var(--sans); font-size: 1rem; letter-spacing: .02em; margin: 0 0 .4rem; color: var(--tekhelet); }
.talk-it-over p:last-child { margin: 0; }

/* "The best case against" and "What we have to admit", once the handbook labels them inside a
   scriptural "In brief", take the same colored boxes as the full argument (see the groups above). */
