/* Scripture panels and the reading Bible (release A, 22 Nov 2026). The approved design: docs/Scripture panels - design
   (22 Nov 2026): Option A "Paper" (sp-a.css) as chosen (sp-a-final.css: the phone card rises from the foot, larger framed
   covers), the colour ruling (col-none.css: no coloured rule in the panels, teal only on the reference, Open chapter, the
   highlighted verse and the edge of its notes; the chapter pane and pages keep the site's teal heading rule; the library
   marker is a muted ring), and the reading Bible, Option 2 in the reader (bible/bible.css), with red letters. */
:root {
  --sp-serif: "Caladea", Georgia, "Times New Roman", serif;
  --sp-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sp-teal: #2f8f8c; --sp-deep: #1f6e6b; --sp-tint: rgba(31, 110, 107, .10);
  --sp-ink: #23272a; --sp-text: #2b2b2b; --sp-muted: #6d6a63; --sp-line: rgba(35, 39, 42, .12);
  --sp-paper: #fffdf9; --sp-top: 76px; --sp-pane: 460px;
  --sp-red: #9b2c1f;           /* the words of Jesus (Gerhard, 22 Nov 2026): 7.5:1 on the cream reader, 6.4:1 on the teal highlight */
}
body.viewer { --sp-top: var(--top-h, 56px); }
@media (max-width: 640px) { body:not(.viewer) { --sp-top: 64px; } }
@media (max-width: 1100px) { :root { --sp-pane: min(420px, 52vw); } }

/* ---------- the reference: the text's own colour, a dotted teal underline that turns solid on hover ---------- */
.sp-ref { color: inherit; cursor: pointer; border-radius: 2px; text-decoration: underline dotted var(--sp-teal);
  text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.sp-ref:hover { color: var(--sp-deep); text-decoration-style: solid; }
.sp-ref:focus-visible { outline: 3px solid var(--sp-teal); outline-offset: 2px; }
.sp-ref-quiet { white-space: nowrap; }
.sp-j { color: var(--sp-red); }
.sp-j .sp-ref, .sp-ref .sp-j { color: inherit; }

/* ---------- the card ---------- */
.sp-card { position: fixed; z-index: 80; width: min(360px, calc(100vw - 24px)); opacity: 0; transform: translateY(4px);
  transition: opacity .14s ease, transform .14s ease; background: var(--sp-paper); color: var(--sp-text); padding: 16px 20px 12px;
  border-radius: 3px; box-shadow: 0 0 0 1px rgba(59, 47, 37, .10), 0 2px 6px rgba(59, 47, 37, .08), 0 18px 44px rgba(59, 47, 37, .18);
  text-align: left; font-family: var(--sp-serif); }
.sp-card.is-above { transform: translateY(-4px); }
.sp-card.is-in { opacity: 1; transform: none; }
.sp-card.is-peek { pointer-events: none; }        /* a preview has no buttons: it never stands between the pointer and the rows under it */
.sp-card[hidden] { display: none; }
.sp-card:focus { outline: none; }
.sp-card p { margin: 0; white-space: normal; }
.sp-card::before { content: ''; position: absolute; top: -6px; left: calc(var(--arrow, 24px) - 6px); width: 12px; height: 12px;
  background: var(--sp-paper); transform: rotate(45deg); box-shadow: -1px -1px 0 rgba(59, 47, 37, .10); }
.sp-card.is-above::before { top: auto; bottom: -6px; box-shadow: 1px 1px 0 rgba(59, 47, 37, .10); }
.sp-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.sp-card-ref { font: 700 19px/1.25 var(--sp-serif); color: #111; margin-bottom: 8px !important; }
.sp-card-verse { margin: 0; font: 400 17px/1.6 var(--sp-serif); color: #222; }
.sp-card .sp-vn { color: var(--sp-deep); }
.sp-card-lib { font: 400 13px/1.45 var(--sp-sans); color: var(--sp-muted); margin-top: 10px !important; }
.sp-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; padding-top: 9px; border-top: 1px solid var(--sp-line); }
.sp-tr { font: 500 11px/1.4 var(--sp-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--sp-muted); }
.sp-hint { font: italic 400 13px/1.4 var(--sp-serif); color: var(--sp-muted); }
.sp-line { display: block; }
.sp-l0 { display: inline; }
.sp-l1 { padding-left: 1.1em; text-indent: -1.1em; margin-left: 1.1em; }
.sp-l2 { padding-left: 1.1em; text-indent: -1.1em; margin-left: 2.3em; }
.sp-l3 { text-align: right; font-style: italic; }
.sp-l4 { font-style: italic; color: var(--sp-muted); margin-bottom: .3em; }
.sp-l5 { text-align: center; font-variant: small-caps; letter-spacing: .04em; margin: .3em 0; }
.sp-card .sp-l1 { margin-left: .9em; } .sp-card .sp-l2 { margin-left: 1.9em; }
.sp-cv { display: inline; }
.sp-missing, .sp-wait { font-style: italic; opacity: .75; }
.sp-x, .sp-ib { appearance: none; border: 0; background: transparent; cursor: pointer; width: 44px; height: 44px; margin: -10px -10px -10px 0;
  display: inline-flex; align-items: center; justify-content: center; color: inherit; border-radius: 8px; flex: none; text-decoration: none; }
.sp-x { color: var(--sp-muted); }
.sp-x svg, .sp-ib svg, .sp-open svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sp-x:focus-visible, .sp-ib:focus-visible, .sp-open:focus-visible, .sp-more:focus-visible { outline: 3px solid var(--sp-teal); outline-offset: 2px; }
.sp-open { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; text-decoration: none; font: 700 15px/1.2 var(--sp-serif);
  color: var(--sp-deep); padding: 0 14px 0 16px; box-shadow: inset 0 0 0 2px var(--sp-deep); margin: 2px 0; }
.sp-open svg { width: 16px; height: 16px; }
.sp-open:hover { background: var(--sp-deep); color: #fff; }
.sp-book { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; vertical-align: -2px; margin-right: 6px; }
.sp-card.is-touch { padding-top: 14px; }
/* phones: the tap card rises from the foot of the screen (Gerhard: the touch taken from Option C) */
@media (max-width: 640px) {
  .sp-card.is-touch { left: 0 !important; right: 0; top: auto !important; bottom: 0; width: 100%; border-radius: 14px 14px 0 0;
    padding: 26px 22px calc(18px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -10px 40px rgba(59, 47, 37, .22); transform: translateY(20px);
    max-height: 80vh; overflow: auto; }
  .sp-card.is-touch.is-in { transform: none; }
  .sp-card.is-touch::before { left: 50%; top: 9px; width: 36px; height: 4px; margin-left: -18px; border-radius: 2px; transform: none; background: #d9d4cb; box-shadow: none; }
  .sp-card.is-touch .sp-card-verse { font-size: 19px; }
  .sp-card.is-touch .sp-card-foot { flex-wrap: wrap; }
  .sp-card.is-touch .sp-open { flex: 1 1 100%; justify-content: center; min-height: 48px; }
}

/* ---------- the pane: docked on the right, the reading column moves left ---------- */
.sp-pane { position: fixed; z-index: 70; top: var(--sp-top); bottom: 0; right: 0; display: flex; flex-direction: column; width: var(--sp-pane);
  background: var(--sp-paper); color: var(--sp-text); border-left: 1px solid var(--sp-line); box-shadow: -14px 0 34px rgba(59, 47, 37, .07);
  transform: translateX(16px); opacity: 0; transition: transform .22s ease, opacity .22s ease; }
.sp-pane.is-open { transform: none; opacity: 1; }
.sp-pane[hidden] { display: none; }
body.sp-pane-open .textview { padding-right: var(--sp-pane); }
body.sp-pane-open:not(.viewer) > main { margin-right: var(--sp-pane); }
body.sp-pane-open .stage { margin-right: var(--sp-pane); }
body.sp-pane-open .vbottom { padding-right: calc(var(--sp-pane) + 12px); }
.sp-pane-head { flex: none; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 22px 22px 14px 34px; border-bottom: 1px solid var(--sp-line); }
.sp-kicker { font: 500 11px/1.4 var(--sp-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--sp-muted); margin: 0 0 4px; }
.sp-pane-head h2 { margin: 0; font: 400 30px/1.15 var(--sp-serif); color: #111; }
.sp-pane-head h2::after { content: ''; display: block; width: 40px; height: 3px; background: var(--sp-deep); margin-top: 10px; }   /* the house rule, teal */
.sp-pane-head h2:focus { outline: none; }
.sp-tools { display: flex; gap: 2px; margin-top: 2px; }
.sp-tools .sp-ib { margin: 0; width: 40px; height: 40px; color: #3c4043; }
.sp-tools .sp-ib:hover { background: var(--sp-tint); color: var(--sp-deep); }
.sp-tools .sp-ib[disabled] { opacity: .35; cursor: default; background: none; }
.sp-pane-body { flex: 1 1 auto; overflow: auto; overscroll-behavior: contain; padding: 22px 34px 80px; }
.sp-credit { font: italic 400 14px/1.5 var(--sp-serif); color: var(--sp-muted); margin: 30px 0 0; padding-top: 14px; border-top: 1px solid var(--sp-line); }
.sp-credit a { color: var(--sp-deep); }

/* ---------- the chapter text (pane and chapter page) ---------- */
.sp-chapter { font-family: var(--sp-serif); font-size: 18px; line-height: 1.72; color: #2b2b2b; }
.sp-chapter p, .sp-notes p { white-space: normal; }
.textview .sp-chapter p + p { margin-top: 0; }
.sp-para { margin: 0 0 .9em !important; }
.sp-v { scroll-margin-top: 120px; }
.sp-vn { font-family: var(--sp-sans); font-size: .58em; font-weight: 600; vertical-align: .55em; line-height: 0; margin: 0 .3em 0 .1em; color: var(--sp-muted); }
.sp-vn a { color: inherit; text-decoration: none; padding: 6px 3px; margin: -6px -3px; border-radius: 3px; }
.sp-vn a:hover { color: var(--sp-deep); background: var(--sp-tint); }
.sp-vn a:focus-visible { outline: 3px solid var(--sp-teal); outline-offset: 1px; }
.sp-sec, .textview .sp-sec { font: 600 12px/1.4 var(--sp-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--sp-muted); margin: 26px 0 10px; }
.sp-sec2, .textview .sp-sec2 { font-size: 11px; }
.sp-ms, .textview .sp-ms { font-size: 13px; letter-spacing: .18em; text-align: center; }
.sp-par { font: italic 400 15px/1.4 var(--sp-serif); color: var(--sp-muted); margin: -4px 0 12px !important; }
.sp-desc { font-style: italic; color: var(--sp-muted); margin: 0 0 .6em !important; }
.sp-fn { font: 600 .6em/0 var(--sp-sans); vertical-align: .6em; margin-left: 1px; color: var(--sp-deep); text-decoration: none; padding: 0 2px; }
.sp-fn:focus-visible { outline: 3px solid var(--sp-teal); }
.sp-mark { display: inline-block; width: 6px; height: 6px; border-radius: 50%; vertical-align: .5em; margin-right: 2px;
  background: var(--sp-deep); }      /* a teal dot (Gerhard, 25 Nov 2026, replacing the 22 Nov grey ring that disappeared in the text):
                                        it says this verse number opens the library list */
.sp-legend { font: 400 12.5px/1.4 var(--sp-sans); color: var(--sp-muted); margin: 0 0 18px !important; }
.sp-v.is-here, .sp-v:target { background: rgba(31, 110, 107, .11); box-shadow: -6px 0 0 rgba(31, 110, 107, .11), 6px 0 0 rgba(31, 110, 107, .11);
  -webkit-box-decoration-break: clone; box-decoration-break: clone; border-radius: 2px; }
.sp-v.is-here .sp-l1, .sp-v.is-here .sp-l2, .sp-v:target .sp-l1, .sp-v:target .sp-l2 { background: rgba(31, 110, 107, .11); margin-right: -6px; padding-right: 6px; }
.sp-v.is-here .sp-vn, .sp-v:target .sp-vn { color: var(--sp-deep); font-weight: 700; }
/* from the page view (Gerhard, review 65 item 7, 25 Nov 2026): the verse at the top of the printed page is marked with the same
   highlight, then fades. As the Ask mark's fade (site.css .ask-wait-mark; Gerhard 21 and 23 Nov 2026) it is a fade in place with
   no movement, so it runs under Reduce Motion too */
.sp-v.is-flash { --sp-flash: rgba(31, 110, 107, .11); }
.sp-v.is-flash, .sp-v.is-flash .sp-l1, .sp-v.is-flash .sp-l2 { animation: sp-flash 2.6s ease-in-out forwards; }
@keyframes sp-flash { 0%, 40% { background-color: var(--sp-flash); } 100% { background-color: transparent; box-shadow: none; } }
.sp-foot { margin-top: 34px; padding-top: 14px; border-top: 1px solid var(--sp-line); font: 400 14px/1.5 var(--sp-sans); color: var(--sp-muted); }
.sp-foot .sp-h, .textview .sp-h { font: 700 15px/1.3 var(--sp-serif); color: #111; margin: 0 0 8px; letter-spacing: 0; text-transform: none; }
.sp-foot ol { list-style: none; margin: 0; padding: 0; } .sp-foot li { margin: 0 0 4px; }
.sp-fn-k { font-weight: 600; color: var(--sp-deep); text-decoration: none; margin-right: 2px; }
.sp-fn-at { font-weight: 600; color: var(--sp-text); }
.sp-foot li:target { background: rgba(31, 110, 107, .11); }

/* the notes under the chosen verse: In the library, then Related passages */
.sp-notes { margin: 4px 0 24px; padding: 14px 18px 12px 18px; background: #fff; border-left: 3px solid var(--sp-deep);
  box-shadow: 0 1px 2px rgba(59, 47, 37, .06), 0 6px 18px rgba(59, 47, 37, .06); font-size: 16px; line-height: 1.55; }
.sp-notes:focus { outline: none; }
.sp-notes-for { font: 600 11px/1.4 var(--sp-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--sp-deep); margin: 0 0 8px !important; }
/* the notes' X (Gerhard, 23 Nov 2026, option A): the tap card's close, on the right of the "VERSE n" row */
.sp-notes-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 8px; }
.sp-notes-top .sp-notes-for { margin: 0 !important; }
.sp-notes-x { margin: -14px -10px -14px 0; }          /* 44 px target in the corner, the row stays its height */
.sp-notes-x:hover { background: var(--sp-tint); color: var(--sp-deep); }
.sp-h, .textview .sp-h { font: 700 15px/1.3 var(--sp-serif); color: #111; margin: 0 0 8px; letter-spacing: 0; text-transform: none; }
.sp-notes ul { list-style: none; margin: 0; padding: 0; }
.sp-lib li { display: flex; gap: 16px; align-items: center; padding: 10px 0; }
.sp-lib li + li { border-top: 1px solid var(--sp-line); }
.sp-cover { flex: none; display: block; width: 64px; padding: 4px; background: #fff; box-shadow: 0 6px 14px rgba(0, 0, 0, .18), 0 0 0 1px rgba(0, 0, 0, .04); }
.sp-cover img { display: block; width: 100%; height: auto; }
.sp-lib-t { display: flex; flex-direction: column; min-width: 0; }
.sp-kind { font: 500 10.5px/1.4 var(--sp-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--sp-muted); }
.sp-lib-title { color: #111; text-decoration: none; }
.sp-lib-title strong { font: 700 16px/1.3 var(--sp-serif); }
.sp-lib-title:hover strong { color: var(--sp-deep); text-decoration: underline; }
.sp-lib a:focus-visible { outline: 3px solid var(--sp-teal); outline-offset: 2px; }
.sp-pages { font: 400 13.5px/1.6 var(--sp-sans); color: var(--sp-muted); }
/* style pass (22 Nov 2026): each printed page number is a link, so it shows as one and is easy to tap */
.sp-pages a { color: inherit; text-decoration: underline; text-decoration-color: rgba(109, 106, 99, .45); text-underline-offset: 3px; padding: 6px 4px; margin: 0 -4px; }
.sp-pages a:hover { color: var(--sp-deep); text-decoration-color: currentColor; }
.sp-rel { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--sp-line); }
.sp-lib + .sp-rel { margin-top: 4px; }
.sp-notes .sp-h + .sp-rel-row { margin-top: 0; }
.sp-rel-row { font-size: 15px; line-height: 1.6; margin: 0 0 6px !important; }
.sp-rel-key { font-style: italic; color: var(--sp-muted); margin-right: 8px; }
.sp-more { appearance: none; border: 0; background: none; padding: 6px 0; min-height: 36px; cursor: pointer; font: 600 14px/1.2 var(--sp-sans); color: var(--sp-deep); }
.sp-more:hover { text-decoration: underline; }
.sp-src { font: 400 12px/1.4 var(--sp-sans); color: var(--sp-muted); margin: 8px 0 0 !important; }

@media (max-width: 640px) {
  .sp-notes { margin-left: -8px; margin-right: -8px; }
}
@media (prefers-reduced-motion: reduce) { .sp-card, .sp-pane { transition: none !important; } }

/* ---------- the page view: hotspots over the printed references ---------- */
.sp-hot { position: absolute; z-index: 4; display: block; border-radius: 2px; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.sp-hot:focus-visible { outline: 3px solid var(--sp-teal); outline-offset: 1px; }
.sp-hot::after { content: ''; position: absolute; left: 4%; right: 4%; bottom: 8%; border-bottom: 1.5px dotted var(--sp-teal); opacity: 0; transition: opacity .2s; }
#book-host.sp-pointing .sp-hot::after { opacity: .55; }        /* the faint cue while the pointer is on the page */
.sp-hot:hover, .sp-hot:focus-visible { background: rgba(47, 143, 140, .14); }
.sp-hot:hover::after { opacity: 1; border-bottom-style: solid; }
@media (pointer: coarse) { .sp-hot::before { content: ''; position: absolute; left: -4px; right: -4px; top: 50%; height: 44px; min-height: 100%; transform: translateY(-50%); } }
/* the Bible's printed pages (release B, 24 Nov 2026): a verse number is a hotspot about every second line, so its touch area is
   held to 28px (the WCAG 2.2 minimum of 24px and more); a 44px area would reach over the lines above and below it. The same for
   the references in a commentary volume's notes (sp-tx; up to 132 a page) */
@media (pointer: coarse) { .sp-hot.sp-vn::before, .sp-hot.sp-tx::before, .sp-hot.sp-fn::before { left: -6px; right: -6px; height: 28px; } }
/* a one-digit verse number is 8 to 12 px wide on a phone: its tap area at least 24 px wide, centred on the number (Gerhard, Review 66
   item 7, 25 Nov 2026; style review L8). A few then reach over the verse's first letter, which is not a link */
@media (pointer: coarse) { .sp-hot.sp-vn::before { left: 50%; right: auto; width: calc(100% + 12px); min-width: 24px; transform: translate(-50%, -50%); } }
/* the Bible's printed pages (Gerhard, review 65 item 4, 25 Nov 2026): the faint dotted cue while the pointer is on the book sits
   under the parallel-passage lines only; verse numbers and footnote references (item 5) stay tappable without it */
#book-host.sp-pointing .sp-hot.sp-vn::after, #book-host.sp-pointing .sp-hot.sp-fn::after { opacity: 0; }

/* the Bible's page view in the reader (release B): Go to in the bar on a wide screen; phones and tablets go by the contents */
.listen-pill.view-switch { text-decoration: none; }
/* style review L4: "Pages" (and the Commentary pill beside it) take the 3 px focus ring of their neighbours in the Bible's bar */
.listen-pill.view-switch:focus-visible, .listen-pill.sbs-toggle:focus-visible { outline-width: 3px; }
/* the commentaries as books (release B): their volumes as the site's teal outline buttons */
.cm-books h2 { margin-top: 0; }
.cm-books-name { margin: 22px 0 8px; }
.cm-vols { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.cm-vol-n { font-weight: 400; color: var(--muted); }   /* the page count in the muted ink, AA (style review M5, 25 Nov 2026) */      /* "Pages" in the text view: the Listen pill's look, as a link */
.ref-flip .vtop .bt-go { margin-left: 6px; }
@media (max-width: 1100px) { .ref-flip .vtop .bt-go { display: none; } }

/* ---------- the reading Bible in the reader (Option 2) ---------- */
.bible-reader .skip { position: absolute; left: 8px; top: -60px; z-index: 100; padding: 10px 14px; background: #fff; color: var(--sp-deep); font: 600 15px/1 var(--sp-sans); }
.bible-reader .skip:focus { top: 8px; }
.bp-go { display: none; margin: 0 0 30px; }
.bp-go input { flex: 1; width: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bible-reader .textview .inner { max-width: 700px; }
.bt-head { margin: 10px 0 18px; }
.bt-tr { font: 500 11px/1.4 var(--sp-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--sp-muted); margin: 0 0 4px !important; }
.textview .bt-h1, .bt-h1 { font: 400 clamp(32px, 4vw, 44px)/1.1 var(--sp-serif); color: #111; margin: 0 0 4px; }
#bible-text { outline: none; }
#bible-text .sp-chapter { font-size: 19px; line-height: 1.75; }
.bt-next { display: flex; justify-content: space-between; gap: 16px; margin: 34px 0 0; padding-top: 18px; border-top: 1px solid var(--sp-line); font: 700 16px/1.3 var(--sp-serif); }
.bt-next a { color: var(--sp-deep); text-decoration: none; padding: 10px 0; }
.bt-next a[rel="next"] { margin-left: auto; }
.bt-next a:hover { text-decoration: underline; }
.bible-credit { font: italic 400 14px/1.5 var(--sp-serif); color: #6b5d50; margin: 30px 0 0 !important; padding-top: 14px; border-top: 1px solid var(--sp-line); white-space: normal !important; }
.bible-credit a { color: var(--sp-deep); }
.bible-reader .vtools { gap: 4px; }
.bible-reader .vtools .ib svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* style review H1 (25 Nov 2026): at 320 the row (Pages, Books and chapters, previous, next, Commentary) was 72 px too wide and
   scrolled inside the bar. It fits by spacing and size alone: up to 400 px without the gaps between the controls (the
   Commentary pill, M1, is a little wider than the square button was); below 360 px the two pills also a little smaller (type,
   icon, padding). The icon buttons keep their 44 px tap (reader review R5). Nothing is hidden or renamed */
@media (max-width: 400px) {
  .bible-reader .vtools { gap: 0; padding: 0 2px; }
  .bible-reader .vtools .listen-pill.view-switch { margin-right: 0; }
  .bible-reader .vtools .listen-pill.sbs-toggle { margin-right: 0; }
}
@media (max-width: 360px) {
  .bible-reader .vtools .listen-pill { padding: 0 7px 0 5px; gap: 4px; font-size: 12px; }
  .bible-reader .vtools .listen-pill svg { width: 16px; height: 16px; }
}

/* go to a reference */
.bt-go { position: relative; display: flex; align-items: stretch; min-width: 0; margin: 0; }
.bt-go input { min-width: 0; width: 220px; font: 400 15px/1.2 var(--sp-sans); padding: 9px 12px; border: 1px solid #cfcfcf; border-right: 0; background: #fff; color: #222; border-radius: 0; -webkit-appearance: none; }
.bt-go input::placeholder { color: #767676; }
.bt-go button { flex: none; width: 44px; border: 0; background: var(--sp-deep); color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.bt-go button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bt-go input:focus-visible, .bt-go button:focus-visible { outline: 3px solid var(--sp-teal); outline-offset: 0; }
.bt-go.is-err input { border-color: #a23a2a; box-shadow: inset 0 0 0 1px #a23a2a; }
.bt-err { position: absolute; left: 0; top: 100%; margin-top: 4px; font: 400 13px/1.3 var(--sp-sans); color: #a23a2a; white-space: nowrap; }
.bt-err:empty { display: none; }
.vtop .bt-go input { width: 210px; padding: 7px 10px; font-size: 14px; border-radius: 8px 0 0 8px; }
.vtop .bt-go button { border-radius: 0 8px 8px 0; width: 40px; }
.vtop .bt-err { background: #fff; padding: 4px 8px; box-shadow: 0 4px 12px rgba(0, 0, 0, .12); z-index: 5; }

/* books and chapters */
.bp-body { display: grid; grid-template-columns: 3fr 2fr; gap: 10px 48px; }
.bp-t { font: 700 13px/1.3 var(--sp-sans); letter-spacing: .14em; text-transform: uppercase; color: #111; margin: 0 0 10px; padding-bottom: 8px; border-bottom: 1px solid var(--sp-line); }
.bp-books { list-style: none; margin: 0; padding: 0; columns: 3 150px; column-gap: 28px; }
.bp-col + .bp-col .bp-books { columns: 2 150px; }
.bp-books li { break-inside: avoid; }
.bp-books a { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 7px 8px; margin: 0 -8px; min-height: 40px; text-decoration: none; color: #222; font: 400 17px/1.3 var(--sp-serif); border-left: 3px solid transparent; }
.bp-books a:hover { background: var(--sp-tint); }
.bp-books a[aria-current] { border-left-color: var(--sp-deep); background: var(--sp-tint); }
.bp-books a:focus-visible, .bp-ch a:focus-visible, .bp-back:focus-visible { outline: 3px solid var(--sp-teal); outline-offset: 1px; }
.bp-c { font: 400 12px/1 var(--sp-sans); color: var(--sp-muted); }
.bp-top { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; }
.bp-back { appearance: none; border: 0; background: none; cursor: pointer; padding: 8px 0; font: 600 14px/1.3 var(--sp-sans); color: var(--sp-deep); text-decoration: none; }
.bp-back::before { content: '\2039\00a0'; }
.bp-book { font: 400 30px/1.2 var(--sp-serif); color: #111; margin: 0; }
.bp-book:focus { outline: none; }
.bp-ch { grid-column: 1 / -1; list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 10px; }
.bp-ch a { display: flex; align-items: center; justify-content: center; height: 48px; font: 700 17px/1 var(--sp-serif); color: var(--sp-deep); text-decoration: none;
  box-shadow: inset 0 0 0 2px var(--sp-deep); background: #fff; }   /* every outline button is a teal outline */
.bp-ch a:hover { background: var(--sp-tint); }
.bp-ch a[aria-current] { background: var(--sp-deep); color: #fff; }
/* a commentary's contents page: a chapter with no notes, plain and not pressable (the greyed look of an empty level tab) */
.bp-ch .bp-none { display: flex; align-items: center; justify-content: center; height: 48px; font: 700 17px/1 var(--sp-serif); color: var(--sp-muted);
  box-shadow: inset 0 0 0 1.5px var(--sp-line); }
.cm-contents .page-hero .kicker { margin: 18px 0 4px; }
.bp-drawer { position: fixed; z-index: 40; top: var(--top-h, 56px); left: 0; bottom: 0; width: min(440px, 100vw); overflow: auto; background: var(--sp-paper);
  border-right: 1px solid var(--sp-line); box-shadow: 14px 0 34px rgba(59, 47, 37, .10); padding: 22px 24px 40px; }
.bp-drawer[hidden] { display: none; }
.bp-drawer .bp-body { grid-template-columns: 1fr; gap: 24px; }
.bp-drawer .bp-books, .bp-drawer .bp-col + .bp-col .bp-books { columns: 2; column-gap: 20px; }
.bp-drawer .bp-books a { font-size: 16px; }
.bible-reader.bp-open .textview { padding-left: 440px; }
@media (max-width: 1100px) { .bible-reader.bp-open .textview { padding-left: 0; } }
@media (max-width: 640px) {
  .bible-reader .vtop .bt-go { display: none; }
  .bible-reader .bp-drawer .bp-go { display: flex; margin: 0 0 18px; }
  .bp-drawer { width: 100vw; border-right: 0; }
  #bible-text .sp-chapter { font-size: 18.5px; }
}

/* the landing page /bible/ (a site page, light) */
.bible-read { padding: 40px 0 50px; }
.bible-landing .bt-go { margin: 0 0 40px; max-width: 460px; }
.bible-landing .bt-go input { flex: 1; width: auto; font-size: 17px; padding: 13px 14px; }
.bible-landing .bp-body.is-book { display: block; }
.bible-landing .bp-body.is-book .bp-ch { max-width: 760px; }
.bible-about { font-size: 16px; }
.bible-about h2 { margin: 0 0 14px; }
.bible-about p { margin: 0 0 12px; max-width: 68ch; }
.bible-notice { border-left: 3px solid var(--sp-deep); padding-left: 14px; font-style: italic; }
.bible-apart { font-style: italic; color: var(--muted, #666); }
@media (max-width: 640px) {
  .bp-body { grid-template-columns: 1fr; gap: 26px; }
  .bp-books, .bp-col + .bp-col .bp-books { columns: 2; column-gap: 18px; }
  .bp-books a { font-size: 16px; }
  .bible-read { padding-top: 26px; }
}
@media (min-width: 641px) and (max-width: 1100px) { .bible-landing .bp-body { grid-template-columns: 1fr; gap: 26px; } .bible-landing .bp-books { columns: 3; } .bible-landing .bp-col + .bp-col .bp-books { columns: 3; } }

/* the Library band, above the shelves (Option 2; cover A, saddle tan, blind tooled); since 23 Nov 2026 (option 4) the Bible stands
   on a glass shelf of its own in the panel, in the house shelf look */
.bible-band { background: var(--band, #f9f9f9); padding: 44px 0; border-bottom: 1px solid var(--line, #e4e4e4); }
.bb-card { display: grid; grid-template-columns: 190px 1fr; gap: 40px; align-items: center; background: #fff; box-shadow: var(--shadow); padding: 34px 44px; }
.bb-text h2 { margin: 0; } .bb-text .rule { margin: 14px 0 16px; }
.bb-text p { margin: 0; }
.bb-acts { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0 12px !important; }
.bb-note { font-size: 15px; color: var(--muted, #666); font-style: italic; }
@media (max-width: 640px) {
  .bb-card { grid-template-columns: 96px 1fr; gap: 18px; padding: 22px 18px; }
  .bb-acts .button { padding: 12px 18px; font-size: 16px; }
}
.bible-band .bb-card { grid-template-columns: 250px 1fr; gap: 44px; }
.bb4-shelf .shelf-row { min-width: 0; --gap: 0px; }
.bb4-shelf .shelf-items { grid-template-columns: minmax(130px, 170px); padding: 0 24px; }
@media (max-width: 640px) {
  .bible-band .bb-card { grid-template-columns: 1fr; gap: 22px; }
  .bb4-shelf { width: 220px; margin: 0 auto; }
  /* centred on its glass (Gerhard, 24 Nov 2026): the shelves' phone rule (site.css) lines books up from the left so a long row
     scrolls; the Bible's one-book shelf keeps them centred, as on the computer */
  .bb4-shelf .shelf-items { grid-template-columns: 130px; justify-content: center; padding: 0; }
}

/* ---------- dark: the reader's text view and the Bible pages follow the device (site pages stay light) ---------- */
@media (prefers-color-scheme: dark) {
  body.text-mode { --sp-red: #e8907d; --sp-muted: #a9a398; --sp-line: rgba(255, 255, 255, .12); --sp-tint: rgba(63, 184, 180, .14); }
  body.text-mode .sp-ref { text-decoration-color: #6cc4c0; }
  body.text-mode .sp-mark { background: #6cc4c0; }
  body.text-mode .sp-ref:hover { color: #9fdcd8; }
  body.text-mode .sp-card { --sp-paper: #2a2926; color: #e7e2d9; box-shadow: 0 0 0 1px rgba(255, 255, 255, .10), 0 18px 44px rgba(0, 0, 0, .5); }
  body.text-mode .sp-card::before { box-shadow: -1px -1px 0 rgba(255, 255, 255, .10); }
  body.text-mode .sp-card-ref { color: #f3eee5; }
  body.text-mode .sp-card-verse { color: #e7e2d9; }
  body.text-mode .sp-card .sp-vn { color: #9fdcd8; }
  body.text-mode .sp-tr, body.text-mode .sp-hint, body.text-mode .sp-card-lib { color: #a9a398; }
  body.text-mode .sp-card-foot { border-top-color: rgba(255, 255, 255, .12); }
  body.text-mode .sp-card.is-touch::before { background: #4a4844; }
  body.text-mode .sp-open { color: #9fdcd8; box-shadow: inset 0 0 0 2px #3ea7a3; }
  body.text-mode .sp-open:hover { background: #1f6e6b; color: #fff; }
  body.text-mode .sp-pane { --sp-paper: #22211f; color: #e7e2d9; }
  body.text-mode .sp-pane-head h2, body.text-mode .sp-h, body.text-mode .sp-lib-title, body.text-mode .bt-h1, body.text-mode .bp-book, body.text-mode .bp-t { color: #f3eee5; }
  body.text-mode .sp-pane-head h2::after { background: #3ea7a3; }
  body.text-mode .sp-chapter, body.text-mode .bp-books a { color: #e7e2d9; }
  body.text-mode .sp-tools .sp-ib { color: #d8d2c7; }
  body.text-mode .sp-v.is-here, body.text-mode .sp-v:target, body.text-mode .sp-v.is-here .sp-l1, body.text-mode .sp-v.is-here .sp-l2,
  body.text-mode .sp-v:target .sp-l1, body.text-mode .sp-v:target .sp-l2 { background: rgba(63, 184, 180, .16); box-shadow: none; }
  body.text-mode .sp-v.is-flash { --sp-flash: rgba(63, 184, 180, .16); }
  body.text-mode .sp-vn a:hover { color: #9fdcd8; }   /* style review M9: the chosen state's night teal, readable on the chip */
  body.text-mode .sp-v.is-here .sp-vn, body.text-mode .sp-v:target .sp-vn, body.text-mode .sp-notes-for, body.text-mode .sp-fn, body.text-mode .sp-fn-k { color: #9fdcd8; }
  body.text-mode .sp-notes { background: #2a2926; border-left-color: #3ea7a3; box-shadow: none; }
  body.text-mode .sp-notes-x:hover { color: #9fdcd8; }
  body.text-mode .sp-cover { background: #f3eee5; }
  body.text-mode .sp-more, body.text-mode .bt-next a, body.text-mode .bible-credit a, body.text-mode .sp-credit a, body.text-mode .bp-back { color: #9fdcd8; }
  body.text-mode .sp-fn-at, body.text-mode .sp-foot .sp-h { color: #e7e2d9; }
  body.text-mode .bible-credit { color: #a9a398; }
  body.text-mode .bp-drawer { background: #22211f; }
  body.text-mode .bp-ch a { background: transparent; color: #9fdcd8; box-shadow: inset 0 0 0 2px #3ea7a3; }
  body.text-mode .bp-ch a[aria-current] { background: #1f6e6b; color: #fff; box-shadow: none; }
  body.text-mode .bt-go input { background: #2a2926; color: #e7e2d9; border-color: rgba(255, 255, 255, .2); }
  body.text-mode .bt-go button { background: #1f6e6b; }
  body.text-mode .vtop .bt-err { background: #2a2926; color: #f0a27e; }
}

/* the Library band's heading carries the Bible's mark, as the shelf headings below carry theirs (Gerhard, 23 Nov 2026) */
.bb-text h2 .shelf-mk { width: 22px; height: 22px; margin-right: 10px; vertical-align: -3px; color: var(--muted); }

/* the site search: one line to the Bible when the search is a reference */
.sr-bible { margin: 14px 0 6px; font: 700 16px/1.4 var(--sp-serif); }
.sr-bible a { color: var(--sp-deep); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.sr-bible a::after { content: '\203A'; margin-left: 6px; }
.sr-bible a:hover { text-decoration: underline; }
.sr-bible a:focus-visible { outline: 3px solid var(--sp-teal); outline-offset: 2px; }

/* ---------- the commentaries (Gerhard, reviews 53 and 54, 24 Nov 2026; docs/Bible commentary - design, "Final") ----------
   In the verse notes, under In the library: the mark and "Commentary", three small teal outline tabs (the chosen one filled, as
   the chapter buttons), on one row down to 320 px; the note held to six lines; the credit line. A level with no note on the
   verse: its tab greyed (still pressable). On the end-times chapters the library's standing note (the Ask library note's look). */
.cm-sec { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--sp-line); }
.sp-notes-top + .cm-sec { margin-top: 0; padding-top: 0; border-top: 0; }
.cm-sec + .sp-rel { margin-top: 14px; }
.cm-h { display: flex; align-items: center; }
.cm-mk { width: 18px; height: 18px; flex: none; margin-right: 8px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; color: var(--sp-muted); }
.cm-lvs { display: flex; gap: 6px; margin: 2px 0 12px; }
.cm-lv { appearance: none; border: 0; border-radius: 0; cursor: pointer; min-height: 34px; padding: 0 11px; font: 700 14px/1 var(--sp-serif);
  color: var(--sp-deep); background: transparent; box-shadow: inset 0 0 0 1.5px var(--sp-deep); white-space: nowrap; flex: 0 1 auto; }
.cm-lv:hover { background: var(--sp-tint); }
.cm-lv[aria-selected="true"] { background: var(--sp-deep); color: #fff; }
.cm-lv:focus-visible { outline: 3px solid var(--sp-teal); outline-offset: 2px; }
.cm-lv.is-empty { color: var(--sp-muted); box-shadow: inset 0 0 0 1.5px var(--sp-line); }
.cm-lv.is-empty[aria-selected="true"] { background: rgba(0, 0, 0, .05); color: var(--sp-muted); }
@media (pointer: coarse) { .cm-lv { min-height: 40px; } }
@media (max-width: 380px) { .cm-lvs { gap: 4px; } .cm-lv { padding: 0 8px; font-size: 13px; } }
.cm-who { font: 400 13.5px/1.45 var(--sp-sans); color: var(--sp-muted); margin: 0 0 8px !important; }
.cm-who b { font-weight: 600; color: var(--sp-text); }
.cm-none { font: italic 400 15px/1.5 var(--sp-serif); color: var(--sp-muted); margin: 0 0 4px !important; }
.cm-range { font: 500 11px/1.4 var(--sp-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--sp-muted); margin: 0 0 6px !important; }
.cm-body { font: 400 16px/1.6 var(--sp-serif); color: var(--sp-text); position: relative; }
.cm-body p { margin: 0 0 .6em !important; }
.cm-body p:last-child { margin-bottom: 0 !important; }
.cm-body.is-clamped { max-height: 9.6em; overflow: hidden; }
.cm-body.is-clamped::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3.2em; background: linear-gradient(rgba(255, 255, 255, 0), #fff); pointer-events: none; }
.cm-n { font: 600 12.5px/1 var(--sp-sans); color: var(--sp-muted); margin-right: .15em; }
.cm-x, .cm-b { font-weight: 700; }
.cm-lemma { font-style: italic; font-weight: 700; color: #3a332c; }
.cm-i { font-style: italic; }
.cm-sc { font-variant: small-caps; }
.cm-credit a { color: inherit; }
/* "Read the whole note": the look of "More" (.sp-more) */
.cm-more { appearance: none; border: 0; background: none; padding: 6px 0; min-height: 36px; cursor: pointer; font: 600 14px/1.2 var(--sp-sans); color: var(--sp-deep); }
.cm-more:hover { text-decoration: underline; }
.cm-more:focus-visible { outline: 3px solid var(--sp-teal); outline-offset: 2px; }
.cm-differs { display: flex; gap: 8px; align-items: baseline; font: 400 13.5px/1.45 var(--sp-sans); color: var(--sp-muted); margin: 0 0 10px !important; }
.cm-differs::before { content: ''; flex: none; width: 7px; height: 7px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--sp-muted); transform: translateY(-1px); }
.cm-own { margin: 2px 0 18px; padding: 9px 12px 10px; border-left: 3px solid var(--sp-deep); background: rgba(0, 0, 0, .025);
  font: 400 15px/1.5 var(--sp-serif); color: var(--sp-text); }
.cm-own .cm-own-k { font: 500 10.5px/1.4 var(--sp-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--sp-muted); margin: 0 0 3px !important; }
.cm-own p { margin: 0 !important; white-space: normal; }
.cm-own .sp-pages { display: block; margin-top: 4px; }
.bt-head + .cm-standing { margin-top: -4px; }

/* the reading pages (from the Library's Commentaries shelf): the BSB verses small above each note */
.cm-page-note { font: italic 400 15px/1.5 var(--sp-serif); color: var(--sp-muted); margin: 4px 0 22px !important; }
.cm-page-ent { padding: 22px 0; border-top: 1px solid var(--sp-line); scroll-margin-top: 120px; }
.cm-page-ent:first-of-type { border-top: 0; padding-top: 6px; }
.cm-verse { font: 400 16px/1.6 var(--sp-serif); color: var(--sp-muted); margin: 0 0 10px !important; padding-left: 14px; border-left: 2px solid var(--sp-line); white-space: normal; }
.cm-verse .sp-vn { color: var(--sp-muted); }
.cm-page-ent .cm-body { font-size: 18px; line-height: 1.7; }
.cm-page-ent .cm-body p { white-space: normal; }
.cm-bible { font: 700 16px/1.3 var(--sp-serif); margin: 26px 0 0 !important; }
.cm-bible a { color: var(--sp-deep); }
.cm-empty { font: italic 400 17px/1.6 var(--sp-serif); color: var(--sp-muted); }

/* the Library: the Commentaries shelf (after Sermons), the house glass shelf; the heading carries the commentary mark */
.cm-shelf-band .library-head h2 .shelf-mk, .cm-shelf-band .library-head h3 .shelf-mk { color: var(--muted); }
.cm-shelf-band .caption .kicker { display: block; margin: 0 0 2px; }
@media (min-width: 641px) { .cm-shelf-band .shelf-items { justify-content: center; } }

@media (prefers-color-scheme: dark) {
  body.text-mode .cm-body, body.text-mode .cm-own { color: #e7e2d9; }
  body.text-mode .cm-lemma { color: #f3eee5; }
  body.text-mode .cm-body.is-clamped::after { background: linear-gradient(rgba(42, 41, 38, 0), #2a2926); }
  body.text-mode .cm-own { background: rgba(255, 255, 255, .04); border-left-color: #3ea7a3; }
  body.text-mode .cm-own .sp-pages a, body.text-mode .cm-bible a { color: #9fdcd8; }
  body.text-mode .cm-lv { color: #9fdcd8; box-shadow: inset 0 0 0 1.5px #3ea7a3; }
  body.text-mode .cm-lv[aria-selected="true"] { background: #1f6e6b; color: #fff; box-shadow: none; }
  body.text-mode .cm-lv.is-empty { color: #a9a398; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .14); }
  body.text-mode .cm-lv.is-empty[aria-selected="true"] { background: rgba(255, 255, 255, .06); }
  body.text-mode .cm-who b { color: #e7e2d9; }
  body.text-mode .cm-mk, body.text-mode .cm-n { color: #a9a398; }
  body.text-mode .cm-more { color: #9fdcd8; }
  body.text-mode .cm-page-ent .cm-body { color: #e7e2d9; }
}

/* ---------- the commentary beside the Bible (Gerhard, review 57, 24 Nov 2026; design: side-by-side/www/cm/sbs.css) ----------
   assets/commentary-beside.js. The button is the bar's pill, as "Pages" (filled while on; M1, 25 Nov 2026); the notes reuse
   the verse notes' type, level tabs, "More" and the teal edge; the phone band reuses the tap card's rise from the foot. The line
   counts come from the script's TUNE (--sbs-lines, --sbs-band-lines, --sbs-overview-lines). */
:root { --sbs-w: clamp(290px, 31vw, 410px); --sbs-gap: 44px; --sbs-lines: 3; --sbs-band-lines: 2; --sbs-overview-lines: 2; }
/* the button is the reader bar's pill (.listen-pill in viewer.css: shape, type, the pressed fill, night colours), as "Pages"
   (Gerhard, style review M1, 25 Nov 2026); only its place in the bar and its icon's size are its own */
.sbs-toggle { margin: 0 6px; }
.sbs-toggle .sbs-mk { width: 18px; height: 18px; margin: 0; }
.sbs-toggle .sbs-mk, body.text-mode .sbs-toggle .sbs-mk { color: currentColor; }
@media (max-width: 900px) { .listen-pill.sbs-toggle { order: 0; margin: 5px 4px 5px auto; } }

@media (min-width: 768px) {
  body.sbs-on .textview { position: relative; }
  body.sbs-on .textview .inner { margin-left: max(20px, calc((100% - 700px - var(--sbs-gap) - var(--sbs-w)) / 2));
    margin-right: calc(max(20px, calc((100% - 700px - var(--sbs-gap) - var(--sbs-w)) / 2)) + var(--sbs-w) + var(--sbs-gap)); }
}
body.sbs-on .sp-notes .cm-sec { display: none; }            /* notes opened before the switch: the column shows the commentary */
.sbs-col { position: absolute; top: 0; width: var(--sbs-w); right: max(20px, calc((100% - 700px - var(--sbs-gap) - var(--sbs-w)) / 2));
  border-left: 1px solid var(--sp-line); padding-left: 22px; font-family: var(--sp-serif); box-sizing: border-box; }
.sbs-head { position: sticky; top: 0; z-index: 2; background: var(--sp-paper); padding: 16px 0 8px; margin-left: -22px; padding-left: 22px;
  box-shadow: 0 8px 10px -8px rgba(59, 47, 37, .10); }
.sbs-k { display: flex; align-items: center; gap: 7px; font: 600 11px/1.4 var(--sp-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--sp-muted); margin: 0 0 10px !important; }
.sbs-k .cm-mk { width: 16px; height: 16px; margin: 0; }
.sbs-head .cm-lvs { margin: 0 0 8px; }
.sbs-head .cm-who { margin: 0 !important; }
.sbs-head .cm-differs { margin: 8px 0 0 !important; font-size: 12.5px; }
.sbs-lane { position: absolute; top: 0; left: 22px; right: 0; }
.sbs-none { margin-top: 220px !important; }
.sbs-note { position: absolute; top: 0; left: 0; right: 0; padding: 2px 0 0 12px; border-left: 2px solid transparent; transition: transform .25s ease, border-color .2s; }
.sbs-note.is-here { border-left-color: var(--sp-deep); }
.sbs-note .cm-range { margin: 0 0 3px !important; }
.sbs-note.is-here .cm-range { color: var(--sp-deep); }
.sbs-body { font: 400 15.5px/1.55 var(--sp-serif); color: var(--sp-text); position: relative; }
.sbs-body p { margin: 0 0 .5em !important; white-space: normal; }
.sbs-body p:last-child { margin-bottom: 0 !important; }
.sbs-body.is-clamped { max-height: calc(var(--sbs-lines) * 1.55em); overflow: hidden; }
.sbs-body.is-clamped.is-overview { max-height: calc(var(--sbs-overview-lines) * 1.55em); }
.sbs-body.is-clamped::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1.55em; background: linear-gradient(rgba(255, 253, 249, 0), var(--sp-paper)); }
.sbs-body.is-clamped.is-fit::after { display: none; }          /* the note fits: nothing faded, nothing hidden */
.sbs-more { padding: 2px 0; min-height: 30px; font-size: 13.5px; }
.sbs-more[hidden] { display: none; }
.sbs-col .sbs-credit { position: absolute; top: 0; left: 22px; right: 0; font: 400 12px/1.45 var(--sp-sans); color: var(--sp-muted); margin: 0 !important; padding-top: 10px; border-top: 1px solid var(--sp-line); }

.sbs-band { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; background: var(--sp-paper); border-radius: 14px 14px 0 0;
  box-shadow: 0 -8px 30px rgba(59, 47, 37, .16); padding: 14px 18px calc(12px + env(safe-area-inset-bottom, 0px)); max-height: 128px; overflow: hidden;
  transition: max-height .25s ease; box-sizing: border-box; }
/* Review 66 item 13: with Tyndale's note the condensed band carries its short credit line too (one line more) */
.sbs-band.has-licence { max-height: 152px; }
.sbs-band.is-open { max-height: 66vh; overflow: auto; overscroll-behavior: contain; }
/* Review 66 item 12: stepped down while a verse's notes are open (they hold its commentary); back when they close */
.sbs-band { transform: translateY(0); visibility: visible; transition: max-height .25s ease, transform .25s ease, visibility 0s linear 0s; }
.sbs-band.is-down { transform: translateY(calc(100% + 12px)); visibility: hidden; transition: max-height .25s ease, transform .25s ease, visibility 0s linear .25s; }
.sbs-grip { position: absolute; left: 50%; top: 6px; width: 36px; height: 4px; margin-left: -18px; border-radius: 2px; background: #d9d4cb; }
.sbs-band-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sbs-band .sbs-k { margin: 0 !important; }
.sbs-band .sbs-more { min-height: 34px; padding: 0 2px; }
.sbs-sheet { display: none; margin: 8px 0 6px; }
.sbs-band.is-open .sbs-sheet { display: block; }
.sbs-sheet .cm-lvs { margin: 0 0 8px; }
.sbs-band .sbs-body.is-clamped { max-height: calc(var(--sbs-band-lines) * 1.55em); }
.sbs-band .sbs-credit { display: none; margin-top: 12px !important; }
.sbs-band.is-open .sbs-credit { display: block; }
.sbs-band.has-licence:not(.is-open) .sbs-credit:not([hidden]) { display: block; margin-top: 6px !important; }
@media (max-width: 767px) { body.sbs-on .textview .inner { padding-bottom: 170px; } }
@media (prefers-reduced-motion: reduce) { .sbs-note, .sbs-band { transition: none !important; } }
/* The Books drawer with the commentary on (Gerhard, 27 Nov 2026: the Bible ran over the commentary once the drawer opened).
   The drawer moves the text 440 px right (.bible-reader.bp-open above), but the column beside the text is placed on the text
   view's whole width, so the two parted company and the text ran under the column (and, in Full commentary, under its half).
   With the commentary on, the drawer moves the text only where the text keeps its full measure and the column stays where it
   is: Follow the Bible from 1634 px (440 + 700 + 44 + 410 + 40), the column then placed on the width right of the drawer.
   Below that, and always in Full commentary, the drawer lies over the text, as it does without the commentary below 1100 px. */
body.sbs-on.bp-open .textview { padding-left: 0; }
@media (min-width: 1634px) {
  body.sbs-on:not(.sbs-full).bp-open .textview { padding-left: 440px; }
  body.sbs-on:not(.sbs-full).bp-open .sbs-col { right: max(20px, calc((100% - 440px - 700px - var(--sbs-gap) - var(--sbs-w)) / 2)); }
}

@media (prefers-color-scheme: dark) {
  body.text-mode .sbs-col { border-left-color: rgba(255, 255, 255, .12); }
  body.text-mode .sbs-head { background: var(--night, #1e1d1b); box-shadow: 0 8px 10px -8px rgba(0, 0, 0, .5); }
  body.text-mode .sbs-band { background: #2a2926; box-shadow: 0 -8px 30px rgba(0, 0, 0, .5); }
  body.text-mode .sbs-body { color: #e7e2d9; }
  body.text-mode .sbs-body.is-clamped::after { background: linear-gradient(rgba(30, 29, 27, 0), #1e1d1b); }
  body.text-mode .sbs-band .sbs-body.is-clamped::after { background: linear-gradient(rgba(42, 41, 38, 0), #2a2926); }
  body.text-mode .sbs-note.is-here { border-left-color: #3ea7a3; }
  body.text-mode .sbs-note.is-here .cm-range { color: #9fdcd8; }
  body.text-mode .sbs-grip { background: #4a4844; }
}
/* the level buttons beside the text are pressed buttons (a group, not tabs): the chosen one filled, as in the verse notes */
.cm-lv[aria-pressed="true"] { background: var(--sp-deep); color: #fff; }
.cm-lv.is-empty[aria-pressed="true"] { background: rgba(0, 0, 0, .05); color: var(--sp-muted); }
@media (prefers-color-scheme: dark) {
  body.text-mode .cm-lv[aria-pressed="true"] { background: #1f6e6b; color: #fff; box-shadow: none; }
  body.text-mode .cm-lv.is-empty[aria-pressed="true"] { background: rgba(255, 255, 255, .06); color: #a9a398; }
}
/* "Go to the commentary" (second pen test L8): shown only while it has keyboard focus, right after the Commentary button */
.sbs-skip { appearance: none; border: 0; cursor: pointer; position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sbs-skip:focus { position: static; width: auto; height: auto; clip: auto; overflow: visible; display: inline-flex; align-items: center; min-height: 34px;
  padding: 0 10px; margin: 0 4px; font: 600 13.5px/1 var(--sp-sans); color: var(--sp-deep); background: var(--sp-paper); outline: 3px solid var(--sp-teal); outline-offset: 1px; }
.sbs-skip[hidden] { display: none; }

/* the commentary on a referenced passage (Gerhard's iPad, 24 Nov 2026; design "Commentary in the chapter pane", option a): the
   verse notes' card at the top of the chapter pane, and under a chapter page's heading when the link carries a range; three
   lines and More, as beside the text; a note that fits is shown whole (the script takes the clamp off: no fade without More) */
.sp-pane-body > .cmp, #bible-text > .cmp { margin: 0 0 22px; }
.cmp .cm-body.is-clamped { max-height: 4.8em; }
.cmp .cm-h .cm-mk { width: 18px; height: 18px; margin-right: 8px; }
.cmp .sp-notes-for { margin: 0 !important; }
/* the credits (review 60): the short line's links sit quietly in the muted line; Reflect and Study deeper have no line */
.cm-credit a { color: inherit; text-decoration: underline; text-decoration-color: rgba(109, 106, 99, .45); text-underline-offset: 2px; }
.sbs-credit[hidden] { display: none !important; }
/* style review L2 (25 Nov 2026): one style for the Tyndale line wherever it shows. The pages (chapter, contents, shelf) take the
   upright muted sans of the verse notes and the column beside the text (.sp-src, .sbs-credit), instead of italic serif, where
   the space after the middle dot all but disappeared; each place keeps its own spacing and rule */
.bible-credit.cm-credit, .bible-notice.cm-credit { font: 400 13px/1.5 var(--sp-sans); font-style: normal; color: var(--sp-muted); }

/* ---------- The phone's levels as one ruled bar (Gerhard, 27 Nov 2026: "on the phone", in the theme of the computer's column)
   The levels in the phone band, and in the verse notes and the passage card below 768 px, take the column's ruled bar (Review 68,
   option C): one full-width teal outline, the three levels as cells divided by a rule, the chosen one filled. The computer's
   verse notes keep their three separate buttons. */
.sbs-sheet .cm-lvs { display: flex; gap: 0 !important; width: 100%; box-sizing: border-box; box-shadow: inset 0 0 0 1.5px var(--sp-deep); }
.sbs-sheet .cm-lv { flex: 1 1 auto; min-width: 0; padding: 0 6px; box-shadow: none; text-align: center; }
.sbs-sheet .cm-lv + .cm-lv { box-shadow: inset 1.5px 0 0 var(--sp-deep); }
@media (max-width: 767px) {
  .sp-notes .cm-lvs { display: flex; gap: 0 !important; width: 100%; box-sizing: border-box; box-shadow: inset 0 0 0 1.5px var(--sp-deep); }
  .sp-notes .cm-lv { flex: 1 1 auto; min-width: 0; padding: 0 6px; box-shadow: none; text-align: center; }
  .sp-notes .cm-lv + .cm-lv { box-shadow: inset 1.5px 0 0 var(--sp-deep); }
}
@media (prefers-color-scheme: dark) {
  body.text-mode .sbs-sheet .cm-lvs { box-shadow: inset 0 0 0 1.5px #3ea7a3; }
  body.text-mode .sbs-sheet .cm-lv { box-shadow: none; }
  body.text-mode .sbs-sheet .cm-lv + .cm-lv { box-shadow: inset 1.5px 0 0 #3ea7a3; }
}
@media (prefers-color-scheme: dark) and (max-width: 767px) {
  body.text-mode .sp-notes .cm-lvs { box-shadow: inset 0 0 0 1.5px #3ea7a3; }
  body.text-mode .sp-notes .cm-lv { box-shadow: none; }
  body.text-mode .sp-notes .cm-lv + .cm-lv { box-shadow: inset 1.5px 0 0 #3ea7a3; }
}

/* the chosen level runs into the next cell's rule (Gerhard, 27 Nov 2026): the cells end on fractional pixels, so a hairline of
   paper showed between the filled cell and the next cell's rule; the filled cell now paints 1.5 px over that rule */
.sbs-head .cm-lvs .cm-lv[aria-pressed="true"]:not(:last-child), .fc-head .cm-lvs .cm-lv[aria-pressed="true"]:not(:last-child),
.sbs-sheet .cm-lvs .cm-lv[aria-pressed="true"]:not(:last-child) { position: relative; z-index: 1; box-shadow: 1.5px 0 0 0 var(--sp-deep); }
@media (max-width: 767px) {
  .sp-notes .cm-lvs .cm-lv[aria-selected="true"]:not(:last-child) { position: relative; z-index: 1; box-shadow: 1.5px 0 0 0 var(--sp-deep); }
}
@media (prefers-color-scheme: dark) {
  body.text-mode .sbs-head .cm-lvs .cm-lv[aria-pressed="true"]:not(:last-child), body.text-mode .fc-head .cm-lvs .cm-lv[aria-pressed="true"]:not(:last-child),
  body.text-mode .sbs-sheet .cm-lvs .cm-lv[aria-pressed="true"]:not(:last-child) { box-shadow: 1.5px 0 0 0 #1f6e6b; }
}
@media (prefers-color-scheme: dark) and (max-width: 767px) {
  body.text-mode .sp-notes .cm-lvs .cm-lv[aria-selected="true"]:not(:last-child) { box-shadow: 1.5px 0 0 0 #1f6e6b; }
}

/* ---------- Full commentary (Gerhard, 26 Nov 2026, review of the mock-ups; assets/commentary-beside.js) ----------
   The head (Review 68, option C, "One ruled bar"): COMMENTARY with the mode action at its right ("Full commentary" / "Follow
   the Bible", named for what a tap does, Review 67 item 1); the levels as one full-width bar; the name, with "Show verse N" at
   its right in Full. Both actions quiet teal links on the bar's right edge. Full: the Bible in the left half, the commentary in the right half, each scrolling on its own
   (item 3), computer and iPad only (item 6: from 768 px, the column's own cut-off). The notes as the commentary's reading page
   (.cm-page-ent, item 2); its head (switch, levels, name, "Show verse") stays in view. */
.fc-krow { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 2px 12px; margin: 0 0 8px; }
.fc-krow .sbs-k { margin: 0 !important; }
/* the three levels joined into one full-width ruled bar: it sets the head's two edges (the column and the panel only; the phone
   band keeps its own buttons) */
.sbs-head .cm-lvs, .fc-head .cm-lvs { display: flex; gap: 0 !important; width: 100%; box-sizing: border-box; box-shadow: inset 0 0 0 1.5px var(--sp-deep); margin: 0 0 8px !important; }
.sbs-head .cm-lv, .fc-head .cm-lv { flex: 1 1 auto; min-width: 0; padding: 0 6px; box-shadow: none; text-align: center; }
@media (max-width: 900px) { .sbs-col .sbs-head .cm-lv { padding: 0 4px; font-size: 13.5px; } }   /* the narrow column (iPad upright): "Study deeper" keeps its room */
.sbs-head .cm-lv + .cm-lv, .fc-head .cm-lv + .cm-lv { box-shadow: inset 1.5px 0 0 var(--sp-deep); }
/* the name line: the name at the left, "Show verse N" at its right (Full), on the bar's right edge */
.fc-who { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 16px; min-height: 22px; }
.fc-who .cm-who { margin: 0 !important; }
/* the panel's one action style (the mode, "Show verse"): a quiet teal link with a small mark */
.fc-act { appearance: none; border: 0; background: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 0; margin: 0; min-height: 28px;
  font: 600 13.5px/1.2 var(--sp-sans); color: var(--sp-deep); white-space: nowrap; }
.fc-act svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) { .fc-act:hover .fc-act-t { text-decoration: underline; text-underline-offset: 3px; } }   /* no underline left behind after a tap on the iPad */
.fc-act:focus-visible { outline: 3px solid var(--sp-teal); outline-offset: 2px; }
@media (pointer: coarse) { .fc-act { min-height: 36px; } }
@media (min-width: 768px) {
  body.sbs-full .textview .inner { margin-left: max(20px, calc((50% - 700px) / 2)); margin-right: calc(50% + max(20px, calc((50% - 700px) / 2))); }
}
.fc-box { position: fixed; z-index: 30; top: var(--sp-top); right: 0; bottom: 0; width: 50%; overflow-y: auto; overscroll-behavior: contain;
  background: var(--sp-paper); border-left: 1px solid var(--sp-line); box-sizing: border-box; font-family: var(--sp-serif);
  --fc-pad: max(28px, calc((50vw - 640px) / 2)); padding: 0 var(--fc-pad) 60px; }
.fc-box:focus { outline: none; }
.fc-box:focus-visible { outline: 3px solid var(--sp-teal); outline-offset: -3px; }
.fc-head { position: sticky; top: 0; z-index: 2; background: var(--sp-paper); margin: 0 calc(-1 * var(--fc-pad)); padding: 16px var(--fc-pad) 10px;
  box-shadow: 0 8px 10px -8px rgba(59, 47, 37, .10); }
.fc-head .cm-lvs { margin: 0 0 8px; }
.fc-where { color: var(--sp-muted); }
.fc-head .cm-differs { margin: 8px 0 0 !important; font-size: 12.5px; }
.fc-head .fc-load { margin: 8px 0 0 !important; font-size: 14px; }
.fc-flow { padding-top: 6px; }
.fc-flow > .cm-none { margin-top: 18px !important; }
.fc-ent { scroll-margin-top: 160px; }
.fc-ent .cm-body { font-size: 17px; line-height: 1.65; }
.fc-next { margin-top: 18px; }
.fc-credit { font: 400 12.5px/1.45 var(--sp-sans); color: var(--sp-muted); margin: 18px 0 0 !important; padding-top: 10px; border-top: 1px solid var(--sp-line); }
.fc-credit[hidden] { display: none !important; }
@media (prefers-color-scheme: dark) {
  body.text-mode .fc-box { background: var(--night, #1e1d1b); border-left-color: rgba(255, 255, 255, .12); }
  body.text-mode .fc-head { background: var(--night, #1e1d1b); box-shadow: 0 8px 10px -8px rgba(0, 0, 0, .5); }
  body.text-mode .fc-next a { color: #9fdcd8; }
  body.text-mode .fc-act { color: #9fdcd8; }
  body.text-mode .sbs-head .cm-lvs, body.text-mode .fc-head .cm-lvs { box-shadow: inset 0 0 0 1.5px #3ea7a3; }
  body.text-mode .sbs-head .cm-lv, body.text-mode .fc-head .cm-lv { box-shadow: none; }
  body.text-mode .sbs-head .cm-lv + .cm-lv, body.text-mode .fc-head .cm-lv + .cm-lv { box-shadow: inset 1.5px 0 0 #3ea7a3; }
}

