/* rfrmd v2: warm paper, refined. One set of tokens, one button style. */
@font-face { font-family: 'Source Serif 4'; src: url('/fonts/ss4-latin.woff2') format('woff2'); font-weight: 200 900; font-display: swap; }
@font-face { font-family: 'Source Serif 4'; src: url('/fonts/ss4-latin-ext.woff2') format('woff2'); font-weight: 200 900; font-display: swap; unicode-range: U+0100-024F, U+1E00-1EFF; }
@font-face { font-family: 'Source Serif 4'; font-style: italic; src: url('/fonts/ss4-italic-latin.woff2') format('woff2'); font-weight: 200 900; font-display: swap; }
@font-face { font-family: 'Literata'; src: url('/fonts/lit-latin.woff2') format('woff2'); font-weight: 200 900; font-display: swap; }
@font-face { font-family: 'Literata'; src: url('/fonts/lit-latin-ext.woff2') format('woff2'); font-weight: 200 900; font-display: swap; unicode-range: U+0100-024F, U+1E00-1EFF; }
@font-face { font-family: 'Literata'; src: url('/fonts/lit-greek.woff2') format('woff2'); font-weight: 200 900; font-display: swap; unicode-range: U+0370-03FF, U+1F00-1FFF; }
@font-face { font-family: 'Literata'; font-style: italic; src: url('/fonts/lit-italic-latin.woff2') format('woff2'); font-weight: 200 900; font-display: swap; }
@font-face { font-family: 'Literata'; font-style: italic; src: url('/fonts/lit-italic-latin-ext.woff2') format('woff2'); font-weight: 200 900; font-display: swap; unicode-range: U+0100-024F, U+1E00-1EFF; }
@font-face { font-family: 'Literata'; font-style: italic; src: url('/fonts/lit-italic-greek.woff2') format('woff2'); font-weight: 200 900; font-display: swap; unicode-range: U+0370-03FF, U+1F00-1FFF; }
@font-face { font-family: 'Inter'; src: url('/fonts/inter-latin.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/fonts/inter-latin-ext.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0100-024F, U+1E00-1EFF; }

/* 0.48.0: the reading faces are six, the same as the app's (John, 2026-11-26), each under the SIL Open Font License
   (shared/fonts/OFL-reading-faces.txt). Inter stays the face of the controls and is no longer a reading choice. */
@font-face { font-family: 'EB Garamond'; src: url('/fonts/ebg-latin.woff2') format('woff2'); font-weight: 400 800; font-display: swap; }
@font-face { font-family: 'EB Garamond'; font-style: italic; src: url('/fonts/ebg-italic-latin.woff2') format('woff2'); font-weight: 400 800; font-display: swap; }
@font-face { font-family: 'Gentium Book Plus'; src: url('/fonts/gen-latin.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Gentium Book Plus'; src: url('/fonts/gen-bold-latin.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Gentium Book Plus'; font-style: italic; src: url('/fonts/gen-italic-latin.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Gentium Book Plus'; font-style: italic; src: url('/fonts/gen-bolditalic-latin.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Atkinson Hyperlegible Next'; src: url('/fonts/ahn-latin.woff2') format('woff2'); font-weight: 200 800; font-display: swap; }
@font-face { font-family: 'Atkinson Hyperlegible Next'; font-style: italic; src: url('/fonts/ahn-italic-latin.woff2') format('woff2'); font-weight: 200 800; font-display: swap; }
@font-face { font-family: 'OpenDyslexic'; src: url('/fonts/od-latin.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'OpenDyslexic'; src: url('/fonts/od-bold-latin.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'OpenDyslexic'; font-style: italic; src: url('/fonts/od-italic-latin.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'OpenDyslexic'; font-style: italic; src: url('/fonts/od-bolditalic-latin.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root[data-font="literata"] { --read: 'Literata', Georgia, 'Times New Roman', serif; }
:root[data-font="garamond"] { --read: 'EB Garamond', Georgia, 'Times New Roman', serif; }
:root[data-font="gentium"] { --read: 'Gentium Book Plus', Georgia, 'Times New Roman', serif; }
:root[data-font="hyperlegible"] { --read: 'Atkinson Hyperlegible Next', -apple-system, 'Segoe UI', sans-serif; }
:root[data-font="dyslexic"] { --read: 'OpenDyslexic', -apple-system, 'Segoe UI', sans-serif; }
:root {
 --paper: #faf8f4;
 --paper-2: #f4efe6;
 --card: #ffffff;
 --ink: #262626;
 --ink-2: #5c5348;
 --ink-3: #8a7e6e;
 --rule: #ece5d9;
 --rule-2: #ddd4c5;
 --accent: var(--fav-l, #b85a0a);
 --accent-wash: var(--fav-wl, #fbe9d6);
 --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
 --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
 --read: var(--serif);   /* the Scripture text's face: More › Settings › Font */
 --text-size: 19px;
 --measure: 36em;
 --radius: 10px;
 --bar-h: 56px;
 color-scheme: light;
}
@media (prefers-color-scheme: dark) {
 :root:not([data-theme="light"]) {
  --paper: #14110d; --paper-2: #1c1813; --card: #211c16;
  --ink: #ece4d8; --ink-2: #c3b7a6; --ink-3: #95887a;
  --rule: #2e2820; --rule-2: #3a3228;
  --accent: var(--fav-d, #f0a25a); --accent-wash: var(--fav-wd, #3a2614);
  color-scheme: dark;
 }
}
:root[data-theme="dark"] {
 --paper: #14110d; --paper-2: #1c1813; --card: #211c16;
 --ink: #ece4d8; --ink-2: #c3b7a6; --ink-3: #95887a;
 --rule: #2e2820; --rule-2: #3a3228;
 --accent: var(--fav-d, #f0a25a); --accent-wash: var(--fav-wd, #3a2614);
 color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
 background: var(--paper); color: var(--ink);
 font-family: var(--sans); font-size: 16px; line-height: 1.5;
 -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
button, select { font: inherit; color: inherit; }
a { color: var(--accent); }

/* ---------- Frame: tab bar on a phone, sidebar on a wide screen ---------- */
.app { min-height: 100%; display: flex; }
.main { flex: 1; min-width: 0; padding-bottom: calc(var(--bar-h) + 24px + env(safe-area-inset-bottom)); }
.sidebar { display: none; }
.tabbar {
 position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
 display: flex; flex-wrap: wrap; background: var(--paper); border-top: 1px solid var(--rule);
 padding-bottom: env(safe-area-inset-bottom);
 transition: transform .25s ease;
}
.tab {
 flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
 padding: 6px 0 0; border: 0; background: none; color: var(--ink-3); font-size: 10.5px; cursor: pointer;
}
.tab svg { width: 22px; height: 22px; }
.tab[aria-current="page"] { color: var(--accent); }
.tabbar .stamp { flex-basis: 100%; }
.stamp { display: block; text-align: center; font-size: 11px; color: var(--ink-3); padding: 0 0 6px; font-variant-numeric: tabular-nums; }
.stamp.foot-stamp { text-align: center; font-size: 10px; padding: 0 12px 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.foot-stamp a { color: inherit; text-decoration: none; }
.foot-stamp a:hover { text-decoration: underline; }
.side-foot .foot-stamp { white-space: normal; line-height: 1.5; padding: 0 10px; text-align: center; }
.side-foot .foot-stamp .fs-dot { display: none; }
.side-foot .foot-stamp a { display: block; }

body.reading .tabbar { display: none; }

@media (min-width: 900px) {
 .tabbar { display: none; }
 .main { padding-bottom: 40px; }
 .sidebar {
  display: flex; flex-direction: column; width: 220px; flex: none;
  position: sticky; top: 0; height: 100vh; height: 100dvh; padding: 22px 14px calc(14px + env(safe-area-inset-bottom));
  background: var(--paper-2); border-right: 1px solid var(--rule);
  transition: margin-left .25s ease;
 }
 .brand { font-family: var(--serif); font-size: 24px; letter-spacing: .12em; padding: 0 10px 18px; }
 .brand { display: flex; align-items: center; gap: 10px; }
 .brand-icon { width: 30px; height: 30px; border-radius: 7px; flex: none; }
 .side-tabs { display: flex; flex-direction: column; gap: 2px; }
 .side-tab {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 0; border-radius: 8px;
  background: none; color: var(--ink); font-size: 15px; text-align: left; cursor: pointer;
 }
 .side-tab svg { width: 20px; height: 20px; color: var(--ink-3); }
 .side-tab:hover { background: var(--accent-wash); }
 .side-tab[aria-current="page"] { background: var(--accent-wash); color: var(--accent); }
 .side-tab[aria-current="page"] svg { color: var(--accent); }
 .side-foot { margin-top: auto; }
 .side-foot .stamp { text-align: center; padding-left: 0; }
 /* While reading, the sidebar is a solid panel laid over the page, not part of the flow. */
 body.reading .sidebar {
  position: fixed; left: 0; top: 0; bottom: 0; height: auto; z-index: 40; margin-left: 0;
  transform: translateX(-100%); transition: transform .25s ease; background: var(--paper-2);
  padding-bottom: calc(14px + env(safe-area-inset-bottom));
 }
 body.reading.side-open .sidebar { transform: none; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .12); }
}

/* ---------- Pages ---------- */
.page { max-width: 760px; margin: 0 auto; padding: calc(22px + env(safe-area-inset-top)) 20px 20px; }
.page-title { font-family: var(--serif); font-weight: 600; font-size: 28px; line-height: 1.2; margin: 0; }
.page-sub { color: var(--ink-3); font-size: 14px; margin: 2px 0 0; }
.label {
 font-size: 12px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3);
 margin: 26px 0 4px;
}
.list { list-style: none; margin: 0; padding: 0; }
.list-row {
 display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%;
 padding: 14px 0; border: 0; border-bottom: 1px solid var(--rule); background: none;
 font-family: var(--serif); font-size: 18px; text-align: left; cursor: pointer; color: var(--ink);
}
.list-row .mark { color: var(--rule-2); font-family: var(--sans); font-size: 18px; }
.list-row.done .mark { color: var(--accent); }
.card {
 display: block; width: 100%; text-align: left; cursor: pointer; margin-top: 28px;
 padding: 0; border: 0; background: none; color: var(--ink);
}
.card small { display: block; color: var(--ink-3); font-size: 13px; }
.card strong { font-family: var(--serif); font-weight: 500; font-size: 19px; color: var(--accent); }
.note { color: var(--ink-3); font-size: 14px; margin-top: 20px; }
.groups { display: grid; gap: 0 36px; }
@media (min-width: 700px) { .groups { grid-template-columns: 1fr 1fr; } }

/* One button style */
.btn {
 display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; min-height: 36px;
 border: 1px solid var(--rule-2); border-radius: var(--radius); background: var(--card);
 color: var(--ink); font-size: 14px; cursor: pointer; text-decoration: none;
}
.btn.accent { color: var(--accent); }
.btn:disabled { opacity: .5; cursor: default; }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.head-row.top { align-items: flex-start; }
.head-row.top .page-title { padding-top: 2px; }
.row.nowrap { flex-wrap: nowrap; flex-shrink: 0; }
.btn.icon-only { width: 40px; justify-content: center; padding: 7px 0; }
.btn.icon-only svg { width: 20px; height: 20px; }
.bible-head { margin-bottom: 16px; }

/* ---------- Bible: book grid (kept as v1 has it) and chapters ---------- */
.testament { margin: 18px 0 6px; }
.book-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
@media (min-width: 700px) { .book-grid { grid-template-columns: repeat(6, 1fr); } }

.book {
 padding: 7px 4px; border-radius: 5px; cursor: pointer; font-size: 12px; font-weight: 600; text-align: center;
 border: 1px solid color-mix(in srgb, var(--cat) 30%, var(--rule));
 border-left: 4px solid var(--cat);
 background: color-mix(in srgb, var(--cat) 12%, var(--card));
 color: var(--ink);
}
.book:hover { background: color-mix(in srgb, var(--cat) 22%, var(--card)); }
/* Phone: tighter, so all 66 books fit above the tab bar on an iPhone (John, 2026-11-18) */
@media (max-width: 699px) {
 .bible-page { padding-top: calc(12px + env(safe-area-inset-top)); }
 .bible-head { margin-bottom: 10px; }
 .book-grid { gap: 4px; }
 .book { padding-top: 5px; padding-bottom: 5px; }
}
.chap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 6px; margin-top: 16px; }
.chap {
 padding: 11px 0; border-radius: 8px; border: 1px solid var(--rule); background: var(--card);
 font-size: 15px; cursor: pointer; text-align: center; color: var(--ink);
}
.chap.here { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); font-weight: 600; }

/* ---------- Reading: the chapter is the page ---------- */
/* At rest nothing but the text and the small version line. A tap brings the controls up
   on the page colour, with no bars or outlines, and they fade away on their own. */
.read-top, .read-bottom {
 position: fixed; left: 0; right: 0; z-index: 15; background: var(--paper);
 opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease;
}
.read-top {
 top: 0; padding: calc(6px + env(safe-area-inset-top)) 10px 6px;
 display: flex; align-items: center; gap: 4px; flex-wrap: wrap; transform: translateY(-8px);
}
.read-bottom { bottom: 0; padding-bottom: calc(22px + env(safe-area-inset-bottom)); transform: translateY(8px); }
body.controls .read-top, body.controls .read-bottom { opacity: 1; pointer-events: auto; transform: none; }
.read-bottom .bar, .text-end {
 display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px;
 max-width: var(--measure); margin: 0 auto; padding: 8px 16px 0;
}
.read-bottom .bar > :first-child, .text-end > :first-child { justify-self: start; text-align: left; }
.read-bottom .bar > :last-child, .text-end > :last-child { justify-self: end; text-align: right; }
.read-stamp {
 position: fixed; left: 0; right: 0; bottom: 0; z-index: 16; pointer-events: none;
 padding: 3px 0 calc(4px + env(safe-area-inset-bottom)); background: var(--paper);
}
@media (min-width: 900px) {

}
.grow { flex: 1; }
.plain {
 border: 0; background: none; color: var(--accent); cursor: pointer; font-size: 15px;
 padding: 8px 6px; min-height: 40px; font-family: var(--sans);
}
.plain.strong { font-weight: 600; }
.plain-select {
 -webkit-appearance: none; appearance: none; border: 0; background: none; color: var(--accent);
 font-size: 15px; padding: 8px 6px; cursor: pointer; font-family: var(--sans);
}
.size-row { flex-basis: 100%; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; padding: 0 6px 6px; }
.opt-line { display: flex; align-items: center; gap: 4px; }
.opt-label { font-size: 13px; color: var(--ink-3); margin-right: 6px; min-width: 56px; text-align: right; }
.range-end { font-size: 11px; color: var(--ink-3); }
.margin-range { width: 140px; accent-color: var(--accent); margin: 0 6px; }
.size-row[hidden] { display: none; }
.plain.size { color: var(--ink); min-width: 34px; }
.plain.size.on { color: var(--accent); font-weight: 700; box-shadow: inset 0 -2px 0 var(--accent); }
.icon-btn {
 display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px;
 border: 0; background: none; color: var(--accent); cursor: pointer; border-radius: 8px; padding: 0 6px;
}
.icon-btn svg { width: 24px; height: 24px; }
.text {
 max-width: var(--measure); margin: 0 auto; padding: calc(60px + env(safe-area-inset-top)) 22px 64px;
 font-family: var(--read); font-size: var(--text-size); line-height: var(--line-height, 1.7);
}
.text-head { margin: 0 0 1.4em; }
.text-head h1 { font-family: var(--read); font-weight: 600; font-size: 1.5em; line-height: 1.2; margin: 0; }
.text-meta { font-family: var(--sans); font-size: 13px; color: var(--ink-3); margin-top: 4px; }
.text h2 { font-family: var(--read); font-size: 1.15em; font-weight: 600; margin: 1.4em 0 .2em; }
.text h3 {
 font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase;
 color: var(--ink-3); margin: 1.6em 0 .4em;
}
.text p { margin: 0 0 .9em; }
.text sup { font-family: var(--sans); font-size: .55em; color: var(--accent); margin-right: .15em; font-weight: 600; }
.text .chapnum { float: left; font-size: 2.6em; line-height: .9; margin: .08em .12em 0 0; color: var(--accent); font-weight: 600; }
.text .muted { color: var(--ink-3); font-family: var(--sans); font-size: 15px; }
.text-end {
 margin-top: 2.4em; padding: 1em 0 0; border-top: 1px solid var(--rule);
 display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
}
.text-end .mark-line { flex-basis: 100%; text-align: center; }
.text-end .plain { max-width: 48%; }

/* Pages: the text box is fixed between a top gap and the version strip; the flow inside
   is laid out in columns one page wide and moved a page at a time. */
body.paged { overflow: hidden; overscroll-behavior: none; }
body.paged .text {
 /* 0.43.1: below the running head's round buttons (safe area + 2 + 40), not under them: John's iPhone, Genesis 3. */
 position: fixed; top: calc(env(safe-area-inset-top) + 46px); bottom: calc(env(safe-area-inset-bottom) + 36px);
 left: 50%; transform: translateX(-50%); width: min(100vw, calc(var(--measure) + 68px)); /* JS sets the exact width */
 max-width: none; margin: 0; padding: 0; overflow: hidden; touch-action: pinch-zoom;
}
body.paged .flow { height: 100%; column-fill: auto; will-change: transform; }
body.paged .flow h2, body.paged .flow h3, body.paged .text-head { break-after: avoid; }
body.paged .flow p { orphans: 2; widows: 2; }
body.paged .text-end, body.paged .qa .q { break-inside: avoid; }
body.paged .text-end { margin-top: 1.6em; }
.page-no {
 position: fixed; right: 16px; bottom: calc(4px + env(safe-area-inset-bottom)); z-index: 17;
 font-size: 11px; color: var(--ink-3); font-variant-numeric: tabular-nums; pointer-events: none;
}
.layout-switch { display: inline-flex; }
.layout-switch.sep { margin-left: 8px; padding-left: 8px; border-left: 1px solid var(--rule); }
.layout-switch .plain { color: var(--ink-3); }
.layout-switch .plain.on { color: var(--accent); font-weight: 600; }

/* Justified prose, hyphenated as a printed page is; headings, poetry and the ends stay ragged. */
body.justify .text p, body.justify .esv p { text-align: justify; -webkit-hyphens: auto; hyphens: auto; hyphenate-limit-chars: 6 3 3; }
body.justify .text .text-end, body.justify .esv .block-indent, body.justify .esv p:last-child { text-align: left; -webkit-hyphens: manual; hyphens: manual; }
/* Poetry: each line its own, turned lines indented, the verse number hanging in the margin. */
.poem { margin: 0 0 .9em; }
.poem .vl { margin: 0; }
.poem .vl.stanza { margin-top: .7em; }
.poem .ln { display: block; padding-left: 1.6em; text-indent: -1.6em; text-align: left; }
.poem .ln.ind { padding-left: 3.1em; }
.poem sup { display: inline-block; min-width: 1.6em; text-indent: 0; margin-right: 0; vertical-align: super; }
.poem .chapnum { float: none; display: inline-block; font-size: 1.5em; line-height: 1; min-width: 1.1em; margin: 0 .15em 0 0; text-indent: 0; }
/* A verse may break between its lines, as in a printed Bible; one line never splits from itself. */
body.paged .poem .ln { break-inside: avoid; }

.book-run { margin-top: 2em; }
.book-title { font-family: var(--read); font-weight: 600; font-size: 1.5em; line-height: 1.2; margin: 0 0 1em; text-align: center; break-after: avoid; }

/* The book's introduction, from the Reformed Biblical Compendium. */
.intro { font-family: var(--sans); font-size: .82em; line-height: 1.55; margin: 0 0 1.8em; padding-bottom: 1.2em; border-bottom: 1px solid var(--rule); }
.intro-kicker { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.intro-title { font-family: var(--read); font-style: italic; font-size: 1.35em; color: var(--accent); margin: .15em 0 .4em; }
.intro-meta { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; margin: 0 0 .8em; color: var(--ink-2); }
.intro-meta dt { color: var(--ink-3); }
.intro-meta dd { margin: 0; }
.intro p { margin: 0 0 .8em; text-align: left !important; hyphens: manual !important; }
.intro-outline { list-style: none; margin: 0; padding: 0; }
.intro-outline li { display: grid; grid-template-columns: 4.2em 1fr; gap: 8px; padding: 2px 0; break-inside: avoid; }
.intro-outline .oc { color: var(--accent); font-variant-numeric: tabular-nums; }
.intro-outline button { all: unset; display: contents; cursor: pointer; }
/* Put into the text on a tap: set apart as a quiet card, and a tap on it takes it out. */
/* In pages it begins at the top of the page it was opened on. */
body.paged .intro.inline { break-before: column; }
.intro.inline { background: var(--paper-2); border: 1px solid var(--rule); border-radius: 10px; padding: 12px 14px; margin: .4em 0 1.2em; cursor: pointer; }
.intro.inline .intro-outline button { cursor: pointer; }

/* Study: verse numbers become taps; a verse's notes sit under it as a card. */
/* In Study, the verses the Confession cites keep the orange; the rest take the text colour. Every number opens its notes. */
body.study .text sup[data-ref], body.study .text .esv .verse-num { cursor: pointer; padding: 0 2px; position: relative; color: var(--ink-2); }
body.study .text sup[data-ref].cited { color: var(--accent); }
/* A fingertip-sized target round each small verse number, without moving a line. */
body.study .text sup[data-ref]::after, body.study .text .esv .verse-num::after { content: ''; position: absolute; left: -10px; right: -10px; top: -14px; bottom: -10px; }
.study-btn { color: var(--ink-3); }
/* A verse moved to the top of a column so its card shows beneath it. */
body.paged .study-top { break-before: column; }
.back-chip {
 position: fixed; left: 12px; bottom: calc(26px + env(safe-area-inset-bottom)); z-index: 18;
 border: 1px solid var(--rule-2); background: var(--card); color: var(--accent); border-radius: 16px;
 padding: 6px 12px; font-size: 14px; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}
.study-btn.on { color: var(--accent); font-weight: 600; }
.hint {
 position: fixed; left: 50%; bottom: calc(40px + env(safe-area-inset-bottom)); transform: translate(-50%, 8px); z-index: 70;
 background: var(--ink); color: var(--paper); font-size: 14px; padding: 8px 14px; border-radius: 18px;
 opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; max-width: calc(100vw - 32px);
}
.hint.show { opacity: .92; transform: translate(-50%, 0); }
body.study .text .chapnum[data-ref], body.study .text .esv .chapter-num { cursor: pointer; }
.study-on { background: var(--accent-wash); border-radius: 3px; }
.study-card {
 font-family: var(--sans); font-size: .78em; line-height: 1.5; text-align: left; hyphens: manual;
 background: var(--paper-2); border: 1px solid var(--rule); border-radius: 10px; padding: 10px 14px 12px; margin: .3em 0 1em;
}
.study-card .sc-head { display: flex; align-items: center; justify-content: space-between; font-family: var(--serif); font-size: 1.15em; color: var(--accent); }
.study-card .sc-close { color: var(--ink-3); min-height: 28px; padding: 2px; }
.study-card .sc-close svg { width: 18px; height: 18px; }
.study-card .sc-sec { margin-top: 8px; }
.study-card .sc-label { font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 3px; }
/* Study's sections fold (0.42.0): a chevron at the left, turned down when open; a dot when there is nothing. */
.sc-fold { display: flex; align-items: center; gap: 6px; background: none; border: 0; padding: 4px 0; margin: 0 0 3px; font: inherit; font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); cursor: pointer; text-align: left; }
.sc-chev { width: 10px; height: 10px; flex: none; display: inline-block; position: relative; }
.sc-chev::before { content: ''; position: absolute; left: 1px; top: 1px; width: 5px; height: 5px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .18s ease-out; }
.sc-sec.shut .sc-chev::before { transform: rotate(-45deg); left: 0; top: 2.5px; }
.sc-sec.empty .sc-chev::before { border: 0; width: 5px; height: 5px; border-radius: 50%; background: currentColor; transform: none; left: 2px; top: 3px; }
.sc-sec.shut .sc-body, .sc-sec.empty .sc-body { display: none; }
.sc-sec.empty .sc-fold { cursor: default; }
.study-card .sc-refs { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.study-card .sc-ref { border: 1px solid var(--rule-2); background: var(--card); color: var(--accent); border-radius: 6px; padding: 3px 7px; font-size: 13px; cursor: pointer; }
.study-card .sc-sub { font-weight: 600; color: var(--ink-2); }
.study-card .sc-text { margin: 2px 0 6px !important; text-align: left !important; hyphens: manual !important; color: var(--ink); }
.study-card .sc-more { font-size: inherit; min-height: 0; padding: 0; }
.study-card .sc-note, .study-card .muted-s { color: var(--ink-3); font-size: 12px; }

/* Highlights and notes */
.vt[data-hl] { border-radius: 2px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.vt[data-hl="yellow"], .sw[data-c="yellow"], .hl-dot[data-c="yellow"] { background: rgba(250, 214, 80, .45); }
.vt[data-hl="green"], .sw[data-c="green"], .hl-dot[data-c="green"] { background: rgba(120, 200, 120, .38); }
.vt[data-hl="blue"], .sw[data-c="blue"], .hl-dot[data-c="blue"] { background: rgba(110, 170, 240, .36); }
.vt[data-hl="pink"], .sw[data-c="pink"], .hl-dot[data-c="pink"] { background: rgba(240, 130, 170, .36); }
.vt[data-hl="orange"], .sw[data-c="orange"], .hl-dot[data-c="orange"] { background: rgba(240, 150, 60, .40); }
.note-mark { color: var(--accent); cursor: pointer; font-family: var(--sans); font-size: .62em; margin-left: .15em; padding: 0 3px; position: relative; }
.note-mark::after { content: ''; position: absolute; inset: -12px -10px -8px; }
.sc-annot { margin: 6px 0 4px; padding-bottom: 8px; border-bottom: 1px solid var(--rule); }
.sc-swatches { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sw { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--rule-2); cursor: pointer; padding: 0; }
.sw[aria-pressed="true"] { outline: 2px solid var(--accent); outline-offset: 2px; }
.sw-off { font-size: 12px; min-height: 26px; padding: 0 4px; color: var(--ink-3); }
.sc-noteitem { margin-top: 8px; }
.sc-notetext { cursor: text; padding: 4px 6px; border-radius: 6px; background: var(--card); border: 1px solid var(--rule); color: var(--ink); white-space: normal; }
.sc-addnote { font-size: 13px; min-height: 30px; padding: 4px 0; margin-top: 4px; }
.sc-file { font-size: 11px; color: var(--ink-3); }
.sc-editor textarea { width: 100%; font: inherit; font-size: 15px; padding: 8px; border: 1px solid var(--rule-2); border-radius: 8px; background: var(--card); color: var(--ink); margin: 6px 0; resize: vertical; }
.sc-editor .btn { min-height: 32px; padding: 4px 12px; font-size: 13px; }
.nb-row { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; padding: 12px 0; border-bottom: 1px solid var(--rule); align-items: center; }
.nb-active input { width: 18px; height: 18px; accent-color: var(--accent); }
.nb-name { font-family: var(--serif); font-size: 18px; }
.nb-meta { font-size: 13px; color: var(--ink-3); }
.nb-show, .nb-acts { grid-column: 2; justify-self: start; }
.nb-acts .plain { font-size: 14px; padding: 4px 8px 4px 0; min-height: 30px; }
.nb-acts .plain[data-delete] { color: var(--ink-3); }
.hl-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; vertical-align: middle; }
.list-row small { font-family: var(--sans); font-size: 13px; color: var(--ink-3); margin-left: 6px; }

/* A phone: the reading controls stay on one line. */
@media (max-width: 480px) {
 .read-top { gap: 0; padding-left: 4px; padding-right: 4px; flex-wrap: nowrap; }
 .read-top .size-row { position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); padding: 6px 10px 10px; border-bottom: 1px solid var(--rule); box-shadow: 0 8px 16px rgba(0, 0, 0, .06); }
}

/* ESV, as the site's server returns it */
.esv h2 { display: none; }
.esv h3 { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); margin: 1.6em 0 .4em; }
.esv .chapter-num { font-family: var(--sans); font-size: .7em; color: var(--accent); font-weight: 600; margin-right: .2em; }
.esv .verse-num { font-family: var(--sans); font-size: .55em; color: var(--accent); vertical-align: super; font-weight: 600; margin-right: .1em; }
.esv h4.psalm-title { font-weight: 400; font-style: italic; font-size: 1em; margin: 0 0 .6em; }
/* Poetry: each line on its own line, turned lines indented, no doubled spacing. */
.esv br { display: none; }
.esv .line { display: block; padding-left: 1.6em; text-indent: -1.6em; }
.esv .indent.line { padding-left: 3em; }
.esv .begin-line-group { display: block; height: .5em; }
.esv .block-indent { margin: 0 0 .6em; }
.esv .copyright, .esv p:last-child a { color: var(--ink-3); font-family: var(--sans); font-size: 13px; text-decoration: none; }
.text .hit { background: var(--accent-wash); border-radius: 3px; }

/* Search */
.search-form { margin-top: 14px; }
.search-form input {
 width: 100%; font: inherit; font-size: 17px; padding: 11px 14px; border: 1px solid var(--rule-2);
 border-radius: var(--radius); background: var(--card); color: var(--ink);
}
.result {
 display: block; width: 100%; text-align: left; padding: 12px 0; border: 0; border-bottom: 1px solid var(--rule);
 background: none; color: var(--ink); cursor: pointer; font-family: var(--serif); font-size: 16px; line-height: 1.5;
}
.result strong { display: block; font-family: var(--sans); font-size: 13px; font-weight: 600; color: var(--accent); margin-bottom: 2px; }
mark { background: var(--accent-wash); color: inherit; border-radius: 2px; padding: 0 1px; }

/* The Standards */
.list-row.small { font-size: 16px; padding: 11px 0; }
.list-row.small span:first-child { padding-right: 8px; }
.secnum { font-family: var(--sans); font-size: .7em; font-weight: 600; color: var(--accent); margin-right: .2em; }
.qa { margin: 0 0 1.4em; }
.qa .q { font-weight: 600; margin-bottom: .3em; }
.qa .a { margin: 0; }
.qa.hit { background: var(--accent-wash); border-radius: 6px; box-shadow: 0 0 0 8px var(--accent-wash); }
/* The Book of Church Order, as its own page writes it */
.doc-text .bco-sec { margin: 0 0 .9em; }
.doc-text .bco-sn, .doc-text .bco-pn, .doc-text .bco-rn { font-family: var(--sans); font-size: .7em; font-weight: 600; color: var(--accent); margin-right: .25em; }
.doc-text .bco-sub-hd { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); margin: 1.6em 0 .4em; }
.doc-text .bco-sub-item, .doc-text .bco-paren-item, .doc-text .bco-roman-item, .doc-text .bco-sub-num { padding-left: 1.4em; }
.doc-text .bco-si-letter, .doc-text .bco-sub-num-n { font-family: var(--sans); font-size: .8em; color: var(--accent); margin-right: .3em; }
.doc-text .bq, .doc-text .bco-bq { padding-left: 1.4em; }
.doc-text .bco-cont-sec, .doc-text .bco-cont-sub, .doc-text .bco-cont-paren { margin-top: -.4em; }
.doc-text a { color: var(--accent); }

/* ---------- Go to ---------- */
.picker { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, .28); display: flex; align-items: flex-start; justify-content: center; padding: calc(12px + env(safe-area-inset-top)) 12px 12px; }
.picker[hidden] { display: none; }
.picker-sheet {
 width: min(980px, 100%); max-height: calc(100% - 8px); display: flex; flex-direction: column;
 background: var(--paper); border-radius: 16px; box-shadow: 0 12px 40px rgba(0, 0, 0, .25); overflow: hidden;
}
.picker-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--rule); }
.picker-head .icon-btn { color: var(--ink-3); }
.picker-form { flex: 1; display: flex; gap: 8px; }
.picker-form input {
 flex: 1; min-width: 0; font: inherit; font-size: 17px; padding: 9px 12px; border: 1px solid var(--rule-2);
 border-radius: var(--radius); background: var(--card); color: var(--ink);
}
.picker-form input.bad { border-color: #c0392b; }
.picker-crumb { padding: 8px 16px 0; font-size: 14px; color: var(--ink-3); }
.picker-crumb .plain { padding: 4px 2px; min-height: 0; font-size: 14px; }
.picker-body { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 14px; padding: 10px 14px 16px; overflow: auto; }
.pgrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.pgrid.books { grid-template-columns: repeat(5, 1fr); }
.pnum {
 padding: 10px 0; border: 1px solid var(--rule); border-radius: 6px; background: var(--card); color: var(--ink);
 font-size: 14px; cursor: pointer; font-variant-numeric: tabular-nums;
}
.pnum.sel, .pgrid .book.sel { outline: 2px solid var(--accent); outline-offset: -2px; }
.pnum:hover { border-color: var(--accent); }
/* On a phone: one step at a time, books, then chapters, then verses. */
.picker.narrow .picker-body { grid-template-columns: 1fr; }
.picker.narrow[data-step="books"] #pChaps, .picker.narrow[data-step="books"] #pVerses,
.picker.narrow[data-step="chaps"] #pBooks, .picker.narrow[data-step="chaps"] #pVerses,
.picker.narrow[data-step="verses"] #pBooks, .picker.narrow[data-step="verses"] #pChaps { display: none; }
.picker.narrow .pgrid { grid-template-columns: repeat(5, 1fr); }
.picker.narrow .pgrid.books { grid-template-columns: repeat(4, 1fr); }
.goto { color: var(--ink); font-family: var(--serif); font-size: 17px; }
.title-btn { border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer; text-align: left; }
.goto-side { margin-top: 10px; border-top: 1px solid var(--rule); border-radius: 0; padding-top: 14px; }

.history-sheet .picker-sheet { width: min(560px, 100%); }
.hist-title { font-family: var(--serif); font-size: 20px; }
.hist-clear { color: var(--ink-3); font-size: 14px; }
.hist-tabs { padding: 10px 14px 0; }
.hist-body { padding: 4px 16px 16px; overflow: auto; }
.hist-row small { font-family: var(--sans); font-size: 12px; color: var(--ink-3); margin-left: 4px; }
.hist-when { font-family: var(--sans); font-size: 13px; color: var(--ink-3); white-space: nowrap; }
.btn svg { width: 18px; height: 18px; }

/* ---------- More ---------- */
.seg { display: inline-flex; border: 1px solid var(--rule-2); border-radius: var(--radius); overflow: hidden; }
.seg button { border: 0; background: var(--card); padding: 7px 12px; font-size: 14px; cursor: pointer; }
.seg button + button { border-left: 1px solid var(--rule-2); }
.seg button[aria-pressed="true"] { background: var(--accent-wash); color: var(--accent); }
.setting { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); flex-wrap: wrap; }
.link-row { display: flex; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid var(--rule); color: var(--ink); text-decoration: none; font-size: 16px; }
.link-row span:last-child { color: var(--ink-3); }

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

/* ---------- The reading bar: one kind of control (2026-11-17) ----------
   Every control the same tap size, every icon the same size and weight, all in one quiet colour;
   Study alone takes the orange while it is on. */
.read-top { gap: 2px; }
.read-top .icon-btn { color: var(--ink-2); min-width: 44px; height: 44px; padding: 0 8px; }
.read-top .icon-btn svg { width: 22px; height: 22px; }
.read-top .icon-btn.on { color: var(--accent); }
.read-top .icon-btn.menu-open { background: var(--rule); }
.read-top .aa { font-family: var(--sans); font-size: 18px; font-weight: 500; line-height: 1; letter-spacing: -.01em; }
.where { display: flex; align-items: center; min-width: 0; }
.read-top .goto {
 display: inline-flex; align-items: center; gap: 4px; min-width: 0; height: 44px; padding: 0 2px 0 6px;
 border: 0; background: none; cursor: pointer; color: var(--ink); font-family: var(--serif); font-size: 19px;
}
.goto-ref { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.read-top .goto .chev { width: 16px; height: 16px; flex: none; color: var(--ink-2); }
/* The translation: a small tag after the reference, well under the size of its numbers. */
.trans-tag {
 height: 44px; padding: 0 8px 0 6px; border: 0; background: none; cursor: pointer; flex: none;
 font-family: var(--sans); font-size: 10.5px; font-weight: 600; letter-spacing: .08em; color: var(--ink-3);
}
.trans-tag.menu-open { color: var(--accent); }
.pop-menu {
 position: absolute; top: calc(100% - 4px); z-index: 30; min-width: 230px; max-width: calc(100vw - 16px);
 display: flex; flex-direction: column; padding: 6px;
 background: var(--card); border: 1px solid var(--rule-2); border-radius: 12px; box-shadow: 0 10px 28px rgba(0, 0, 0, .12);
}
.pop-item {
 display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 5px 12px; border: 0; border-radius: 8px;
 background: none; cursor: pointer; text-align: left; font-family: var(--sans); font-size: 16px; color: var(--ink);
}
.pop-item:hover, .pop-item:focus-visible { background: var(--rule); outline: none; }
.pop-item svg { width: 20px; height: 20px; flex: none; color: var(--ink-2); }
.pi-label { flex: 1; display: flex; flex-direction: column; }
.pi-label small { font-size: 12.5px; color: var(--ink-3); }
.pi-check { color: var(--accent); font-weight: 600; min-width: 12px; }
.read-top [data-more] svg { stroke-width: 3; }
@media (max-width: 480px) {
 .read-top { gap: 0; }
 .read-top .icon-btn { min-width: 38px; padding: 0 3px; }
 .read-top .goto { font-size: 17px; padding-left: 0; gap: 2px; }
 .read-top .goto .chev { width: 14px; height: 14px; }
 .trans-tag { padding: 0 4px 0 3px; }
}
/* The translation: a small rounded pill with the Bible emblem, so it reads as a button (John, 2026-11-17).
   The button keeps the full bar height for the finger; the pill inside is what shows. */
.trans-tag { display: inline-flex; align-items: center; }
.trans-tag .pill {
 display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 7px 0 7px;
 border: 1px solid var(--rule-2); border-radius: 13px; background: var(--card); color: var(--ink-2);
}
.trans-tag .pill svg:first-child { width: 14px; height: 14px; stroke-width: 2; color: var(--ink-2); flex: none; }
.trans-tag .chev { width: 12px; height: 12px; color: var(--ink-2); flex: none; }
.trans-tag:active .pill, .trans-tag.menu-open .pill { border-color: var(--accent); color: var(--accent); }
.trans-tag.menu-open .pill svg { color: var(--accent); }
/* A switch in a menu: grey icon with OFF beneath, or orange icon with ON beneath. The icon column is
   one width for every row, so all the labels line up. */
.pi-ic { width: 24px; flex: none; display: flex; flex-direction: column; align-items: center; gap: 1px; }
.pi-state { font-size: 8px; line-height: 1; font-weight: 700; letter-spacing: .06em; color: var(--ink-3); }
.pi-switch.is-on svg, .pi-switch.is-on .pi-state { color: var(--accent); }

/* ---------- Study: the verse sheet (0.15.0) ----------
   A verse's notes rise from the bottom with the verse at the top; the page behind does not move.
   A phone lets the sheet reach the top; a wider screen stops at two thirds; beyond that it scrolls. */
.vs-wrap { position: fixed; inset: 0; z-index: 45; }
.vs-wrap.over-bar { z-index: 55; }  /* the voice choice opens from the player bar (z 50) */
.vs-wrap[hidden] { display: none; }
.vs-scrim { position: absolute; inset: 0; background: rgba(20, 17, 13, .16); opacity: 0; transition: opacity .22s ease; }
.vs-wrap.open .vs-scrim { opacity: 1; }
.verse-sheet {
 position: absolute; left: 0; right: 0; bottom: 0; margin: 0 auto; max-width: 720px;
 max-height: calc(100% - env(safe-area-inset-top) - 10px); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
 background: var(--paper); border-radius: 16px 16px 0 0; box-shadow: 0 -10px 30px rgba(0, 0, 0, .16);
 padding: 4px 20px calc(22px + env(safe-area-inset-bottom));
 font-family: var(--sans); font-size: 15px; line-height: 1.5; color: var(--ink);
 transform: translateY(100%); transition: transform .24s ease;
}
.vs-wrap.open .verse-sheet { transform: none; }
@media (min-width: 700px) { .verse-sheet { max-height: 66.6%; } }
.vs-grab { width: 40px; height: 5px; border-radius: 3px; background: var(--rule-2); margin: 6px auto 10px; }
.verse-sheet .study-card { font-size: 15px; background: none; border: 0; border-radius: 0; padding: 0; margin: 0; }
.verse-sheet .sc-head { font-size: 19px; }
.verse-sheet .sc-head small { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .08em; color: var(--ink-3); margin-left: 4px; }
.verse-sheet .sc-sec { margin-top: 14px; }
.vs-verse {
 font-family: var(--serif); font-size: 19px; line-height: 1.55; color: var(--ink); text-align: left;
 margin: 6px 0 12px; padding: 0 0 12px; border-bottom: 1px solid var(--rule);
}
/* The verse stays lit on the page behind the sheet. */
.text .vt.verse-lit { background: var(--accent-wash); border-radius: 3px; box-shadow: 0 0 0 2px var(--accent-wash); }
/* Where a Matthew Henry comment begins: the verse number is underlined (Study). */
body.study .text sup[data-ref].mh-start, body.study .text .esv .verse-num.mh-start {
 text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 2px;
}
body.study .text .esv .verse-num.cited { color: var(--accent); }

/* ---------- The running head (0.15.1) ----------
   At rest the page shows only its running head: the reference, centred and small, and ⋯ at the right.
   The reference opens Go to; ⋯ brings up the whole bar with its menu. It gives way when the bar is up. */
.run-head {
 position: fixed; top: 0; left: 0; right: 0; z-index: 14; pointer-events: none;
 display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
 padding: calc(2px + env(safe-area-inset-top)) 6px 0; transition: opacity .2s ease;
}
body:not(.paged) .run-head { background: var(--paper); }
.run-head button { pointer-events: auto; border: 0; background: none; cursor: pointer; min-height: 40px; }
.run-ref {
 /* In capitals in the chapter numbers' colour, as the app's running head (build 153; 0.59.3). */
 font-family: var(--serif); font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); padding: 0 12px;
 max-width: 60vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.run-more { justify-self: end; display: inline-flex; align-items: center; justify-content: center; width: 44px; color: var(--ink-3); }
.run-more svg { width: 22px; height: 22px; stroke-width: 3; }
body.controls .run-head { opacity: 0; }
body.controls .run-head button { pointer-events: none; }

/* ---------- Aa as a sheet (0.15.1) ---------- */
.opt-sheet .sc-head { display: flex; align-items: center; justify-content: space-between; font-family: var(--serif); font-size: 19px; color: var(--accent); }
.opt-sheet .sc-close { color: var(--ink-3); min-height: 28px; padding: 2px; }
.opt-sheet .sc-close svg { width: 18px; height: 18px; }
.opt-body { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 10px 0 4px; }
.opt-body .opt-line { flex-wrap: wrap; row-gap: 6px; }
.opt-body .opt-label { text-align: left; min-width: 70px; }
.opt-body .margin-range { width: 160px; }
.opt-body .layout-switch.sep { border-left: 0; margin-left: 0; padding-left: 0; }
.opt-body .layout-switch { flex-basis: 100%; }
.opt-body .opt-line:has(.layout-switch) { width: 100%; }
/* 0.35.1: every row of the sheet carries a label beside its choices */
.opt-body .opt-label + .layout-switch { flex-basis: auto; }
.opt-body .opt-label + .layout-switch + .layout-switch { flex-basis: auto; margin-left: 12px; }
/* Settings: the quiet foot under Help and about */
.set-foot { margin: 22px 0 8px; padding-top: 12px; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--ink-3); }
.set-foot p { flex-basis: 100%; margin: 0 0 4px; }
.set-foot a { color: var(--ink-3); }
.opt-body .opt-all { width: 100%; border-top: 1px solid var(--rule); padding-top: 8px; }
.opt-body .opt-all a { color: var(--accent); text-decoration: none; font-size: 15px; }

/* The running head sits left, where the bar's reference appears, so a tap grows it into the bar without a
   jump (John, 2026-11-17). The first column stands in for the back button. */
.run-head { grid-template-columns: 46px auto 1fr auto; padding-left: 10px; padding-right: 10px; }
.run-head > span { grid-column: 1; }
.run-ref { grid-column: 2; justify-self: start; padding: 0 6px; }
.run-more { grid-column: 4; }
@media (max-width: 480px) {
 .run-head { grid-template-columns: 38px auto 1fr auto; padding-left: 4px; padding-right: 4px; }
 .run-ref { padding: 0 2px 0 0; }
}

/* Slimmer top (John, 2026-11-17: "less padded ... so you could use more page"). The running head is all
   that shows at rest and ends where the page's text begins; the bar, shown only after a tap, is 40 tall with
   a smaller translation pill, so it covers as little of the first line as it can. */
.read-top { padding-top: calc(2px + env(safe-area-inset-top)); padding-bottom: 2px; }
.read-top .icon-btn, .read-top .goto, .trans-tag { height: 40px; }
.trans-tag .pill { height: 22px; padding: 0 5px; gap: 3px; border-radius: 11px; }
.trans-tag .pill svg:first-child { width: 13px; height: 13px; }
.trans-tag .chev { width: 11px; height: 11px; }
.run-head { padding-top: env(safe-area-inset-top); }
.run-head button { min-height: 28px; }
.run-ref { font-size: 13px; }
.run-more svg { width: 20px; height: 20px; }
/* Back hangs in the left margin, beside the reference, always there (John, 2026-11-17). It fills the margin
   to the screen's edge and reaches a little under the reference, so even a narrow margin is easy to hit. */
.run-back {
 grid-column: 1; justify-self: stretch; position: relative; display: flex; align-items: center; justify-content: flex-end;
 padding: 0 4px 0 0; color: var(--ink-3);
}
.run-back svg { width: 16px; height: 16px; stroke-width: 2.2; }
.run-back::after { content: ''; position: absolute; top: -4px; bottom: -6px; left: 0; right: -14px; }
.run-ref { position: relative; z-index: 1; }

/* The running head is a quiet copy of the bar with everything in the bar's places: back, the reference and ⋯
   never move when the bar comes and goes; a tap only adds the translation and enlarges the reference
   (John, 2026-11-17). Columns and padding match .read-top and its 44 (phone 38) wide buttons. */
.run-head { grid-template-columns: 44px auto 1fr 44px; column-gap: 2px; padding-left: 10px; padding-right: 10px; }
.run-back { justify-content: center; padding: 0; }
.run-back::after { right: 0; }
.run-ref { padding: 0 0 0 6px; }
.run-more { width: 44px; justify-content: center; }
@media (max-width: 480px) {
 .run-head { grid-template-columns: 38px auto 1fr 38px; column-gap: 0; padding-left: 4px; padding-right: 4px; }
 .run-ref { padding-left: 0; }
 .run-more { width: 38px; }
}
/* Same height and centre line as the bar, so nothing shifts up or down either. */
.run-head { padding-top: calc(2px + env(safe-area-inset-top)); }
.run-head button { min-height: 40px; }

/* With the keyboard up, a sheet fills what is left of the screen above it. */
.vs-wrap.kb .verse-sheet { max-height: calc(100% - 6px); padding-bottom: 12px; }

/* About and Support: reading pages in the app's own type. */
.about-page p { font-family: var(--serif); font-size: 17px; line-height: 1.6; color: var(--ink); margin: 8px 0 12px; }
.about-page p.sig { color: var(--ink-2); }
.about-page a:not(.link-row):not(.btn) { color: var(--accent); }

/* Account */
.acct-form { display: flex; flex-direction: column; gap: 10px; max-width: 420px; margin: 8px 0 14px; }
.acct-form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--ink-2); }
.acct-form input { font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid var(--rule-2); border-radius: 10px; background: var(--card); color: var(--ink); }
.acct-form .btn { align-self: flex-start; }
.acct-msg { min-height: 1.2em; font-size: 14px; color: var(--accent); margin: 0; }
.btn.danger { color: #b3261e; border-color: #e3b5b1; }

/* ---------- The Library (0.18.0) ---------- */
.coll { border: 1px solid var(--rule); border-radius: 12px; background: var(--card); margin: 10px 0 14px; overflow: hidden; }
.coll-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; }
.coll-title { font-family: var(--serif); font-size: 18px; color: var(--ink); }
.coll-sub { font-size: 13px; color: var(--ink-3); }
.coll .list { margin: 0; border-top: 1px solid var(--rule); }
.coll .list-row { padding-left: 14px; padding-right: 14px; }
details.coll > summary { list-style: none; cursor: pointer; }
details.coll > summary::-webkit-details-marker { display: none; }
.coll-count { display: block; padding: 0 14px 10px; font-size: 12px; color: var(--ink-3); margin-top: -6px; }
details.coll[open] .coll-count { display: none; }
.btn.small { min-height: 32px; padding: 4px 12px; font-size: 13px; white-space: nowrap; flex: none; }
.btn.kept { color: var(--ink-2); border-color: var(--rule); }
.art-row > span:first-child { display: flex; flex-direction: column; gap: 2px; text-align: left; }
.art-row small { font-size: 13px; color: var(--ink-3); line-height: 1.35; }
.art-t { font-size: 16px; }
.link-row.quiet { margin-top: 18px; font-size: 14px; color: var(--ink-2); }
/* An article */
.article-page { max-width: 720px; }
.art-head h1 { font-family: var(--serif); font-size: 30px; line-height: 1.2; font-weight: 500; margin: 6px 0 6px; color: var(--ink); }
.art-sub { font-family: var(--serif); font-size: 18px; color: var(--ink-2); margin: 0 0 8px; }
.art-tag { font-family: var(--serif); font-style: italic; color: var(--ink-3); margin: 0 0 18px; }
.art-body { font-family: var(--serif); font-size: var(--text-size, 19px); line-height: var(--art-line-height, 1.65); color: var(--ink); }
.art-body p { margin: 0 0 1em; }
.art-body h2 { font-family: var(--serif); font-size: 1.3em; font-weight: 500; margin: 1.6em 0 .5em; }
.art-body h3 { font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); margin: 1.6em 0 .4em; }
.art-body blockquote, .art-body .callout { margin: 1em 0; padding: 10px 14px; border-left: 3px solid var(--accent); background: var(--paper-2, var(--card)); border-radius: 0 8px 8px 0; }
.art-body .callout-label { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.art-body ul, .art-body ol { padding-left: 1.3em; margin: 0 0 1em; }
.art-body table { width: 100%; border-collapse: collapse; font-size: .85em; display: block; overflow-x: auto; }
.art-body td, .art-body th { border-bottom: 1px solid var(--rule); padding: 6px 8px; text-align: left; vertical-align: top; }
.art-body hr { border: 0; border-top: 1px solid var(--rule); margin: 1.6em 0; }
.art-body a { color: var(--accent); }
.art-body a.sref { text-decoration: none; border-bottom: 1px dotted currentColor; }
.art-foot { margin-top: 24px; border-top: 1px solid var(--rule); padding-top: 8px; }

/* Prayer on Today */
.label-row { display: flex; align-items: center; justify-content: space-between; }
.icon-btn.small-ic { min-width: 32px; height: 28px; color: var(--ink-3); }
.icon-btn.small-ic svg { width: 18px; height: 18px; }
.pray-group { margin-top: 6px; }
.opt-sheet-head { display: flex; align-items: center; justify-content: space-between; font-family: var(--serif); font-size: 19px; color: var(--accent); }

/* ---------- Meditation (0.19.0) ---------- */
.med-day { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 6px 0 10px; }
.med-verse { font-family: var(--serif); font-size: 24px; line-height: 1.5; color: var(--ink); margin: 0 0 8px; padding: 0; border: 0; }
.med-verse .mw { font: inherit; color: inherit; }
.med-verse button.mw { border: 0; background: none; padding: 0; cursor: pointer; color: var(--ink-3); letter-spacing: .05em; }
/* Memorising: a soft blank the width of the word, its first letter showing (0.23.0) */
.med-verse button.mw.hid { letter-spacing: 0; color: var(--ink-3); background: color-mix(in srgb, var(--ink) 9%, transparent); border-radius: 4px; padding: 0 2px; margin: 0 -2px; line-height: 1.25; }
.med-verse button.mw.hid .mw-gap { visibility: hidden; }

/* The day page (0.23.0): the seven days as marks, the verse at the centre */
.med-steps { list-style: none; display: grid; grid-template-columns: repeat(7, 1fr); margin: 14px 0 18px; padding: 0; position: relative; }
.med-steps::before { content: ''; position: absolute; left: 7%; right: 7%; top: 6px; height: 2px; background: var(--rule-2); }
.med-steps li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.ms-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--paper); border: 2px solid var(--rule-2); box-sizing: border-box; }
.ms-name { font-size: 10.5px; color: var(--ink-3); letter-spacing: .01em; white-space: nowrap; }
.med-steps li.done .ms-dot { background: var(--accent); border-color: var(--accent); }
.med-steps li.now .ms-dot { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); }
.med-steps li.now .ms-name, .med-steps li.done .ms-name { color: var(--accent); }
.med-steps li.now .ms-name { font-weight: 600; }
.med-panel { margin: 0 0 6px; padding: 22px 20px 16px; background: var(--card); border: 1px solid var(--rule); border-radius: 14px; }
.med-panel .med-verse { font-size: 25px; line-height: 1.55; margin: 0 0 12px; }
.med-panel .med-ref { margin: 0; }
.med-memo { margin: 6px 2px 0; font-size: 13px; }
.med-step { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 22px 0 4px; }
.med-page .med-prompt { margin-top: 0; }
.med-sit { margin: 0 0 6px; }
.med-timer { height: 3px; border-radius: 2px; background: var(--rule); margin-top: 10px; overflow: hidden; }
.med-timer span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .5s linear; }
.med-saved { font-size: 12px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink-3); }
.med-thought { width: 100%; box-sizing: border-box; font-family: var(--serif); font-size: 17px; line-height: 1.5; padding: 10px 12px; border: 1px solid var(--rule-2); border-radius: 10px; background: var(--card); color: var(--ink); resize: vertical; }
.med-close, .med-done { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 22px 0 8px; }
.med-done p { margin: 0; flex-basis: 100%; font-family: var(--serif); font-size: 17px; color: var(--ink-2); }
.med-skip { font-size: 14px; color: var(--ink-3); padding-left: 0; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; padding: 9px 18px; }
:root[data-theme="dark"] .btn.primary, .dark .btn.primary { color: #14110d; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn.primary { color: #14110d; } }
.med-opt-note { display: block; font-size: 12.5px; margin-top: 2px; }
.med-ref { font-size: 13px; color: var(--ink-3); margin-bottom: 12px; }
.med-prompt { font-family: var(--serif); font-size: 18px; font-style: italic; color: var(--ink-2); line-height: 1.5; margin: 12px 0 16px; }
.med-acts { margin-bottom: 8px; }
.med-earlier { margin: 10px 0; font-size: 15px; color: var(--ink-2); }
.med-earlier summary { cursor: pointer; color: var(--accent); }
.med-words { display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 6px 0 14px; }
.med-word { font-family: var(--serif); font-size: 18px; border: 1px solid var(--rule-2); background: var(--card); color: var(--ink); border-radius: 18px; padding: 6px 14px; cursor: pointer; }
.med-pick > span { display: flex; flex-direction: column; gap: 3px; text-align: left; }
.med-pick small { font-family: var(--serif); font-size: 15px; color: var(--ink-2); line-height: 1.4; }
.med-planted { padding: 12px 0; border-bottom: 1px solid var(--rule); list-style: none; }
.med-planted.due strong { color: var(--accent); }
.mp-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.mp-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; align-items: center; }
.mp-review { margin-top: 10px; }
.sc-med { font-size: 14px; padding: 0 0 8px; min-height: 0; }
.med-card { margin-top: 14px; }
.med-card small + strong + small { display: block; margin-top: 2px; }

/* ---------- Help and the walkthrough (0.20.0) ---------- */
.help-search { width: 100%; font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid var(--rule-2); border-radius: 10px; background: var(--card); color: var(--ink); margin: 4px 0 12px; }
.help-toc { display: flex; flex-wrap: wrap; gap: 6px 8px; margin-bottom: 8px; }
.help-toc a { font-size: 13px; color: var(--accent); border: 1px solid var(--rule); border-radius: 14px; padding: 4px 10px; text-decoration: none; background: var(--card); }
.help-sec { border-top: 1px solid var(--rule); padding-top: 6px; margin-top: 14px; scroll-margin-top: 16px; }
.help-sec h2 { font-family: var(--serif); font-weight: 500; font-size: 21px; margin: 8px 0 6px; color: var(--ink); }
.help-sec p { font-family: var(--serif); font-size: 16.5px; line-height: 1.55; color: var(--ink); margin: 0 0 10px; }
.help-sec b { font-family: var(--sans); font-weight: 600; font-size: .92em; color: var(--ink-2); }
.tour { position: fixed; inset: 0; z-index: 80; background: rgba(20, 17, 13, .45); display: flex; align-items: flex-end; justify-content: center; padding: 16px 16px calc(28px + env(safe-area-inset-bottom)); }
@media (min-width: 700px) { .tour { align-items: center; } }
.tour-card { width: 100%; max-width: 440px; background: var(--paper); border-radius: 18px; padding: 20px 20px 16px; box-shadow: 0 18px 50px rgba(0, 0, 0, .25); }
.tour-step { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.tour-card h2 { font-family: var(--serif); font-weight: 500; font-size: 26px; margin: 6px 0 8px; color: var(--ink); }
.tour-card p { font-family: var(--serif); font-size: 17px; line-height: 1.55; color: var(--ink); margin: 0 0 14px; }
.tour-dots { display: flex; gap: 6px; margin-bottom: 14px; }
.tour-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--rule-2); }
.tour-dots i.on { background: var(--accent); }
.tour-card .row { justify-content: space-between; }

/* Proof texts */
sup.pf { color: var(--accent); font-family: var(--sans); font-size: .62em; font-weight: 600; cursor: pointer; padding: 0 1px 0 2px; position: relative; }
sup.pf::after { content: ''; position: absolute; left: -8px; right: -8px; top: -12px; bottom: -8px; }
.pf-item { padding: 10px 0; border-bottom: 1px solid var(--rule); }
.pf-ref { border: 0; background: none; padding: 0; font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--accent); cursor: pointer; }
.pf-text { font-family: var(--serif); font-size: 17px; line-height: 1.5; margin: 4px 0 0; color: var(--ink); }
.pf-text sup { font-size: .6em; color: var(--ink-3); margin-right: 2px; }
.about-sheet .intro { margin: 0; border: 0; padding: 0; background: none; box-shadow: none; }
.esv-ch { font-family: var(--read); font-weight: 500; font-size: 1.25em; margin: 1.4em 0 .4em; color: var(--ink); break-after: avoid; }
.esv-run.book-start > .book-title { margin-top: 2em; }
.esv-run.book-start > .intro + .esv-ch { margin-top: 1.6em; }

/* Printing an article: the article alone, black on white. */
@media print {
 .tabbar, .sidebar, .read-top, .read-bottom, .run-head, .read-stamp, .page-no, .head-row, .art-foot, .hint, .vs-wrap, .tour { display: none !important; }
 body, .app, .main, .page { background: #fff !important; color: #000 !important; }
 .page { max-width: none; padding: 0; margin: 0; }
 .art-head h1, .art-body, .art-body p, .art-sub, .art-tag { color: #000 !important; }
 .art-body a, .art-body a.sref { color: #000 !important; border: 0; text-decoration: none; }
 .art-body .callout, .art-body blockquote { background: none !important; border-left: 2px solid #999; }
 .art-body h2, .art-body h3 { break-after: avoid; }
 .art-body p { orphans: 3; widows: 3; }
}

/* Listen */
.listen-bar { position: fixed; left: 8px; right: 8px; bottom: calc(52px + env(safe-area-inset-bottom)); z-index: 50; max-width: 560px; margin: 0 auto;
 display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: var(--card); border: 1px solid var(--rule-2); border-radius: 14px; box-shadow: 0 8px 24px rgba(0, 0, 0, .14); }
.listen-bar[hidden] { display: none; }
body.reading .listen-bar { bottom: calc(26px + env(safe-area-inset-bottom)); }
.lb-play { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; font-size: 15px; cursor: pointer; flex: none; }
.lb-mid { flex: 1; min-width: 0; }
.lb-title { font-family: var(--serif); font-size: 15px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-status { font-size: 12px; color: var(--ink-3); }
.lb-speed { border: 1px solid var(--rule-2); background: none; color: var(--ink-2); border-radius: 10px; padding: 4px 8px; font-size: 13px; cursor: pointer; flex: none; }
.lb-close { border: 0; background: none; color: var(--ink-3); cursor: pointer; padding: 4px; flex: none; }
.lb-close svg { width: 18px; height: 18px; }
@media print { .listen-bar { display: none !important; } }

/* ---------- 0.24.0: day navigation, counts, Edit days, the Prayer page ---------- */
.day-nav { display: flex; align-items: center; gap: 6px; margin: 10px 0 2px; flex-wrap: wrap; }
.day-nav .icon-btn { color: var(--ink-2); }
.icon-btn.flip svg { transform: scaleX(-1); }
.day-date, .day-pick select { font: inherit; font-size: 15px; color: var(--ink); background: var(--card); border: 1px solid var(--rule-2); border-radius: var(--radius); padding: 6px 10px; min-height: 36px; }
.day-pick { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; color: var(--ink-2); }
.btn.small { min-height: 32px; padding: 4px 12px; font-size: 13px; }
.dr-other { margin: 6px 0 0; }
.counts { font-size: 12px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink-3); white-space: nowrap; }
.counts b { font-weight: 600; color: var(--accent); }
.counts.pending { color: var(--accent); font-style: italic; }
.dr-edit { font-size: 13px; color: var(--ink-3); padding: 6px 0; min-height: 32px; }
.edit-days { padding: 4px 2px 8px; font-size: 15px; color: var(--ink-2); }
.edit-days form { display: flex; flex-direction: column; gap: 12px; }
.edit-days label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--ink-3); }
.edit-days input, .edit-days textarea { font: inherit; font-size: 16px; color: var(--ink); background: var(--card); border: 1px solid var(--rule-2); border-radius: 10px; padding: 8px 10px; }
.ed-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.prayer-page .list { margin-top: 6px; }
.prayer-howto p { font-size: 16px; }

/* ---------- 0.25.0: What's New and the Home Screen tip ---------- */
.wn-entry { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.wn-head { display: flex; justify-content: space-between; align-items: baseline; color: var(--ink-3); font-size: 13px; }
.wn-head b { color: var(--accent); font-size: 15px; }
.wn-entry ul { margin: 6px 0 0; padding-left: 18px; }
.wn-entry li { font-family: var(--serif); font-size: 17px; line-height: 1.5; color: var(--ink); margin: 2px 0; }
.wn-sheet { padding: 0 2px 8px; }
.wn-sheet .row { margin-top: 14px; }
.home-hint { position: fixed; left: 12px; right: 12px; bottom: calc(var(--bar-h) + 14px + env(safe-area-inset-bottom)); z-index: 30; display: flex; align-items: center; gap: 10px; padding: 12px 8px 12px 14px; background: var(--card); color: var(--ink); border: 1px solid var(--rule-2); border-radius: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .15); font-size: 14px; line-height: 1.4; max-width: 560px; margin: 0 auto; }
.home-hint span { flex: 1; }
@media (min-width: 700px) { .home-hint { bottom: 20px; } }
body.reading .home-hint { display: none; }
/* 0.43.4: the close ✕ on the home screen tip and the update bar had no size of its own (only inside a study card
   or a sheet), so it drew at nothing and the bar could not be dismissed (John, 2026-11-23). A 44-point target. */
.home-hint .sc-close, .update-bar .sc-close { flex: none; display: inline-flex; align-items: center; justify-content: center;
 width: 44px; height: 44px; min-height: 44px; padding: 0; margin: -8px -4px -8px 0; color: var(--ink-2); }
.home-hint .sc-close svg, .update-bar .sc-close svg { width: 20px; height: 20px; }

/* ---------- 0.25.1: opening, and the update bar ---------- */
.boot { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; text-align: center; }
.boot-msg { font-family: var(--serif); font-size: 18px; color: var(--ink-3); max-width: 30ch; line-height: 1.5; margin: 0; }
.update-bar { position: fixed; left: 12px; right: 12px; top: calc(10px + env(safe-area-inset-top)); z-index: 90; display: flex; align-items: center; gap: 10px; padding: 10px 8px 10px 14px; background: var(--card); color: var(--ink); border: 1px solid var(--rule-2); border-radius: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .15); font-size: 14px; max-width: 560px; margin: 0 auto; }
.update-bar span { flex: 1; }

/* ---------- 0.26.0: Diagnostics ---------- */
.diag-slow { color: #b3261e; font-weight: 600; font-size: 13px; }
:root[data-theme="dark"] .diag-slow { color: #f2b8b5; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .diag-slow { color: #f2b8b5; } }
.diag-files { list-style: none; margin: 0; padding: 0; }
.diag-files li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--rule); font-size: 13px; color: var(--ink-2); }
.diag-files li span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 0.26.2: the verse arrived at lights up, pulses twice, and fades ---------- */
@keyframes verse-arrive {
 0% { background-color: transparent; }
 8% { background-color: var(--arrive); }
 22% { background-color: color-mix(in srgb, var(--arrive) 45%, transparent); }
 36% { background-color: var(--arrive); }
 70% { background-color: var(--arrive); }
 100% { background-color: transparent; }
}
:root { --arrive: color-mix(in srgb, var(--accent) 34%, transparent); }
/* Highlight pseudo-elements do not see the theme's variables in every browser, so the colours are written out. */
::highlight(arrive) { background-color: rgba(184, 90, 10, .30); }
:root[data-theme="dark"] ::highlight(arrive) { background-color: rgba(240, 162, 90, .30); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) ::highlight(arrive) { background-color: rgba(240, 162, 90, .30); } }
.text .arrive { animation: verse-arrive 5.4s ease-out both; border-radius: 3px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
@media (prefers-reduced-motion: reduce) { .text .arrive { animation: none; background-color: var(--arrive); } }

/* ---------- 0.27.0: verse actions, Bibles for offline ---------- */
.sc-acts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 2px 0 10px; }
.sc-thru { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-3); }
.sc-thru select { font: inherit; font-size: 14px; color: var(--ink); background: var(--card); border: 1px solid var(--rule-2); border-radius: var(--radius); padding: 4px 8px; min-height: 32px; }
.sc-acts .sc-med { margin-left: auto; }
.off-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.off-row strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 17px; }
.off-row small { color: var(--ink-3); font-size: 13px; }

/* ---------- 0.27.2: the panel button left of Back, in the bar and the running head ----------
   Columns: panel, back, the reference, space, ⋯. The bar's buttons are 44 (phone 38) wide with 2 between,
   as here, so nothing moves when the bar comes and goes. */
.run-head { grid-template-columns: 44px 44px auto 1fr 44px; }
.run-side { grid-column: 1; display: flex; align-items: center; justify-content: center; color: var(--ink-3); }
.run-side svg { width: 18px; height: 18px; }
.run-back { grid-column: 2; }
.run-ref { grid-column: 3; }
.run-more { grid-column: 5; }
@media (max-width: 480px) { .run-head { grid-template-columns: 38px 38px auto 1fr 38px; } }
/* On a phone the panel slides in over the page while reading, as it does on a wide screen. */
@media (max-width: 899px) {
 body.reading .sidebar {
  display: flex; flex-direction: column; position: fixed; left: 0; top: 0; bottom: 0; width: min(280px, 82vw); z-index: 40;
  padding: calc(18px + env(safe-area-inset-top)) 14px calc(14px + env(safe-area-inset-bottom));
  background: var(--paper-2); border-right: 1px solid var(--rule);
  transform: translateX(-100%); transition: transform .25s ease;
 }
 body.reading.side-open .sidebar { transform: none; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .18); }
 body.reading .brand { font-family: var(--serif); font-size: 22px; letter-spacing: .12em; padding: 0 10px 16px; display: flex; align-items: center; gap: 10px; }
 body.reading .brand-icon { width: 28px; height: 28px; border-radius: 7px; flex: none; }
 body.reading .side-tabs { display: flex; flex-direction: column; gap: 2px; }
 body.reading .side-tab { display: flex; align-items: center; gap: 12px; padding: 11px 10px; border: 0; border-radius: 8px; background: none; color: var(--ink); font-size: 16px; text-align: left; cursor: pointer; }
 body.reading .side-tab svg { width: 20px; height: 20px; color: var(--ink-3); }
 body.reading .side-tab[aria-current="page"] { background: var(--accent-wash); color: var(--accent); }
 body.reading .side-tab[aria-current="page"] svg { color: var(--accent); }
 body.reading .side-foot { margin-top: auto; }
 body.reading .side-foot .stamp { text-align: center; padding-left: 0; }
}

/* ---------- 0.27.4: the date at the top of Today chooses a day ---------- */
.date-btn { font: inherit; color: inherit; background: none; border: 0; padding: 0; text-align: left; cursor: pointer; }
.date-hint { margin: 2px 0 0; font-size: 12.5px; color: var(--accent); }

/* ---------- 0.28.0: share codes ---------- */
.share-code { font-family: var(--serif); font-size: 30px; letter-spacing: .04em; color: var(--accent); text-align: center; margin: 14px 0 6px; }
.nb-acts { flex-wrap: wrap; }

/* ---------- 0.29.0: the lock-screen image ---------- */
.lock-wrap { display: flex; justify-content: center; padding: 6px 0; }
.lock-prev { width: 46%; max-width: 220px; aspect-ratio: 9 / 19.5; object-fit: cover; border-radius: 18px; border: 1px solid var(--rule-2); box-shadow: 0 8px 24px rgba(0, 0, 0, .12); background: var(--card); }

/* ---------- 0.31.0: listening to the day ---------- */
.grp-name { display: inline-flex; align-items: center; gap: 6px; }
.listen-btn { border: 0; background: none; padding: 2px; margin: -2px 0; color: var(--accent); cursor: pointer; display: inline-flex; }
.listen-btn svg { width: 17px; height: 17px; }
.listen-day { margin: 18px 0 4px; gap: 8px; }
.listen-day svg { width: 18px; height: 18px; color: var(--accent); }
.lb-step { border: 0; background: none; color: var(--ink-2); cursor: pointer; padding: 4px; flex: none; display: inline-flex; }
.lb-step svg { width: 18px; height: 18px; }
.lb-step.flip svg { transform: scaleX(-1); }
.lb-step:disabled { opacity: .3; cursor: default; }

/* ---------- 0.31.1: overlays stand apart from the page (John, 2026-11-18: dark mode "needs adjustment to any
   overlays to differentiate"). Sheets, pickers, menus and bars get their own raised surface and a firmer shade
   behind them. Light mode keeps its look; dark mode lifts the surface and darkens the shade. ---------- */
:root {
 --sheet: var(--paper); --sheet-edge: transparent; --scrim: rgba(20, 17, 13, .16); --scrim-strong: rgba(20, 17, 13, .40);
 --raised: var(--card); --raised-edge: var(--rule-2); --side-shade: rgba(0, 0, 0, .14);
}
@media (prefers-color-scheme: dark) {
 :root:not([data-theme="light"]) {
  --sheet: #2a231b; --sheet-edge: rgba(255, 236, 210, .14); --scrim: rgba(0, 0, 0, .58); --scrim-strong: rgba(0, 0, 0, .66);
  --raised: #2c251d; --raised-edge: #4a3f33; --side-shade: rgba(0, 0, 0, .58);
 }
}
:root[data-theme="dark"] {
 --sheet: #2a231b; --sheet-edge: rgba(255, 236, 210, .14); --scrim: rgba(0, 0, 0, .58); --scrim-strong: rgba(0, 0, 0, .66);
 --raised: #2c251d; --raised-edge: #4a3f33; --side-shade: rgba(0, 0, 0, .58);
}
.vs-scrim { background: var(--scrim); }
.verse-sheet { background: var(--sheet); border-top: 1px solid var(--sheet-edge); }
.picker { background: var(--scrim-strong); }
.picker-sheet { background: var(--sheet); border: 1px solid var(--sheet-edge); }
.tour { background: var(--scrim-strong); }
.tour-card { background: var(--sheet); border: 1px solid var(--sheet-edge); }
.pop-menu, .listen-bar, .update-bar, .home-hint { background: var(--raised); border-color: var(--raised-edge); }
body.reading.side-open .sidebar { box-shadow: 0 0 0 100vmax var(--side-shade); border-right-color: var(--sheet-edge); }
/* Inside a raised sheet, fields and small cards sit a step darker than the sheet, so they read as wells. */
.verse-sheet input, .verse-sheet textarea, .verse-sheet select, .picker-sheet input { background: var(--paper); }

/* ---------- 0.32.0: following along while listening ---------- */
.text .vt.now-reading { background: color-mix(in srgb, var(--accent) 16%, transparent); border-radius: 3px; box-decoration-break: clone; -webkit-box-decoration-break: clone; transition: background .4s ease; }
.lb-speed[data-lfollow][aria-pressed="true"] { background: var(--accent-wash); color: var(--accent); border-color: var(--accent); }
/* On a phone the player has two rows: what is playing (with ×) on top, the controls under it. */
@media (max-width: 520px) {
 .listen-bar { flex-wrap: wrap; row-gap: 6px; padding: 10px 10px 8px 14px; }
 .listen-bar .lb-mid { order: -2; flex: 1 1 calc(100% - 44px); }
 .listen-bar .lb-close { order: -1; }
 .listen-bar [data-lfollow] { margin-left: auto; }
 .lb-title, .lb-status { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

/* ---------- 0.33.0: the word being spoken by the device's voice ---------- */
::highlight(spoken) { background-color: rgba(184, 90, 10, .32); }
:root[data-theme="dark"] ::highlight(spoken) { background-color: rgba(240, 162, 90, .36); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) ::highlight(spoken) { background-color: rgba(240, 162, 90, .36); } }

/* SchriftOhr's voice downloading (0.34.2) */
.lb-prog { height: 4px; margin-top: 5px; border-radius: 2px; background: var(--rule-2); overflow: hidden; }
.lb-prog i { display: block; height: 100%; width: 0; background: var(--accent, #c25a1c); transition: width .3s; }

/* What SchriftOhr's reader is on (0.34.4): its own look, from schriftohr-app ui/styles.ts (.s.on and [data-w]).
   The highlight colours are literal: ::highlight takes no variables. */
::highlight(reading) { background-color: rgba(255, 210, 50, .58); }
:root[data-theme="dark"] ::highlight(reading) { background-color: rgba(214, 170, 44, .50); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) ::highlight(reading) { background-color: rgba(214, 170, 44, .50); } }
#passage [data-w] { text-decoration-line: underline; text-decoration-thickness: 2px; text-underline-offset: 0.2em; text-decoration-color: currentColor; }

/* Settings › Voices (0.36.0) */
.voice-list { display: flex; flex-direction: column; }
.voice-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--rule); cursor: pointer; }
.voice-row input { accent-color: var(--accent); width: 18px; height: 18px; margin: 0; flex: none; }
.voice-row .vr-name { flex: 1; min-width: 0; }
.voice-row input:disabled + .vr-name { color: var(--ink-3); }
.howto { border-bottom: 1px solid var(--rule); padding: 8px 0; }
.howto summary { cursor: pointer; font-weight: 600; padding: 4px 0; }
.howto p { margin: 6px 0 4px; line-height: 1.55; }

/* ---------- 0.39.0: the reader's head at rest and its panel (from the GDSWRD app) ----------
   One round button at the left opens the panel; the book and chapter beside it open Go to; ⋯ (or Aa) sits at
   the right in the same round backing: a faint paper-2 circle with a hairline. */
.run-head { grid-template-columns: 44px auto 1fr 44px; column-gap: 2px; padding-left: 8px; padding-right: 8px; }
.run-side { grid-column: 1; display: flex; align-items: center; justify-content: center; color: var(--ink-2); padding: 0; width: 44px; }
.run-ref { grid-column: 2; padding: 0 0 0 4px; }
.run-more { grid-column: 4; width: 44px; padding: 0; color: var(--ink-2); }
.rh-dot {
 display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%;
 background: var(--paper-2); box-shadow: inset 0 0 0 .5px var(--rule-2);
}
.rh-dot svg { width: 17px; height: 17px; }
.run-more .rh-dot svg { width: 19px; height: 19px; stroke-width: 2.6; }
@media (max-width: 480px) {
 .run-head { grid-template-columns: 44px auto 1fr 44px; padding-left: 4px; padding-right: 4px; }
 .run-more { width: 44px; }
}
.read-top .side-btn svg { width: 20px; height: 20px; }

/* The panel slides in over the page from the left; the page moves aside and stays in view. Quick: 0.18 s. */
:root { --rp-w: min(320px, 82vw); }
.rp-scrim {
 position: fixed; inset: 0; z-index: 59; background: rgba(0, 0, 0, .22); opacity: 0; transition: opacity .18s ease-out;
}
body.rp-open .rp-scrim { opacity: 1; }
.rpanel {
 position: fixed; left: 0; top: 0; bottom: 0; width: var(--rp-w); z-index: 60; overflow-y: auto; overscroll-behavior: contain;
 display: flex; flex-direction: column;
 padding: calc(18px + env(safe-area-inset-top)) 16px calc(10px + env(safe-area-inset-bottom));
 background: var(--raised); border-right: .5px solid var(--raised-edge);
 transform: translateX(-100%); transition: transform .18s ease-out;
}
body.rp-open .rpanel { transform: none; }
body.reading #text, body.reading .read-stamp, body.reading .page-no, body.reading .back-chip { transition: translate .18s ease-out; }
body.reading .run-head { transition: opacity .2s ease, translate .18s ease-out; }
body.rp-open #text, body.rp-open .run-head, body.rp-open .read-stamp, body.rp-open .page-no, body.rp-open .back-chip {
 translate: calc(var(--rp-w) * .86) 0;
}
.rp-brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 20px; letter-spacing: .12em; color: var(--ink); padding: 0 2px 6px; }
.rp-brand img { width: 26px; height: 26px; border-radius: 6px; flex: none; }
.rp-place { font-size: 13px; color: var(--ink-3); padding: 0 2px 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-row {
 display: flex; align-items: center; gap: 14px; width: 100%; padding: 11px 2px; border: 0; background: none;
 color: var(--ink); font-size: 16px; text-align: left; cursor: pointer; border-radius: 8px;
}
.rp-row svg { width: 20px; height: 20px; flex: none; color: var(--ink-2); }
.rp-row[aria-current="page"] { font-weight: 600; }
.rp-row[aria-current="page"] svg { color: var(--accent); }
.rp-row:hover { background: var(--accent-wash); }
.rp-row[data-rp="back"] { margin-bottom: 6px; }
.rp-rule { border: 0; border-top: .5px solid var(--rule-2); margin: 0; }
.rp-rule + .rp-row { margin-top: 4px; }
.rp-row + .rp-rule { margin-top: 4px; margin-bottom: 2px; }
.rp-foot { margin-top: auto; padding-top: 16px; }
.rp-foot .foot-stamp { white-space: normal; }
@media (prefers-reduced-motion: reduce) {
 .rpanel, .rp-scrim, body.reading #text, body.reading .run-head, body.reading .read-stamp, body.reading .page-no, body.reading .back-chip { transition: none; }
}

/* ---------- 0.39.0: Meditation's day marks open their day; How to use Meditation ---------- */
.ms-btn { display: flex; flex-direction: column; align-items: center; gap: 5px; border: 0; background: none; padding: 0 0 4px; margin: 0; cursor: pointer; color: inherit; font: inherit; width: 100%; }
.ms-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.med-day-when { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: 6px 0 0; }
#medDay .med-prompt { margin: 8px 0 14px; }
.med-day-thought { font-family: var(--serif); font-size: 17px; line-height: 1.5; color: var(--ink); margin: 4px 0 12px; white-space: pre-wrap; }
.med-help-lead { font-family: var(--serif); font-size: 18px; line-height: 1.55; color: var(--ink); margin: 6px 0 18px; }
.med-help-steps { list-style: none; counter-reset: mh; margin: 0 0 18px; padding: 0; }
.med-help-steps li { counter-increment: mh; position: relative; padding: 0 0 16px 32px; }
.med-help-steps li::before { content: counter(mh); position: absolute; left: 0; top: 1px; width: 20px; text-align: right; font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; }
.med-help-steps strong { display: block; font-size: 16px; margin-bottom: 3px; }
.med-help-steps span { display: block; color: var(--ink-2); font-size: 15px; line-height: 1.5; }

/* ---------- 0.39.0: Prayer's Calvin quotation upright, set off by a thin accent rule ---------- */
.pr-quote { margin: 18px 0 8px; padding: 2px 0 2px 14px; border-left: 2px solid var(--accent); font-style: normal; }
.about-page .pr-quote p { font-style: normal; margin: 0; color: var(--ink); }
.about-page .pr-quote p.pr-quote-by { margin-top: 6px; font-family: var(--sans); font-size: 13px; color: var(--ink-3); }

/* 0.39.3: every voice the browser reports, as it reports it */
.vraw { list-style: none; margin: 4px 0 8px; padding: 0; font-size: 14px; }
.vraw li { padding: 6px 0; border-bottom: 1px solid var(--rule); overflow-wrap: anywhere; }
.vraw small { display: block; color: var(--ink-3); font-size: 11.5px; }

/* 0.40.0: the recorded voices */
.vr-has { display: block; font-size: 12.5px; color: var(--ink-3); margin-top: 1px; }
.vrec-note { margin: 4px 0 6px; }

/* ---------- A Library document whole, and the passage pane (0.42.0) ---------- */
.doc-whole { max-width: 1100px; }
.dw-tools { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 6px; padding: 8px 0; background: var(--paper); border-bottom: 1px solid var(--rule); margin: 8px 0 4px; }
.dw-q { flex: 1; min-width: 0; font: inherit; font-size: 15px; padding: 7px 10px; border: 1px solid var(--rule-2); border-radius: 8px; background: var(--card); color: var(--ink); }
.dw-count { min-width: 3.5em; text-align: right; font-size: 13px; }
.dw-step { width: 32px; height: 32px; font-size: 20px; color: var(--ink-2); }
.dw-wrap { display: block; }
.dw-contents { display: none; }
.doc-whole.contents-open .dw-contents { display: block; position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; max-height: 70vh; overflow-y: auto; background: var(--card); border-top: 1px solid var(--rule-2); border-radius: 14px 14px 0 0; padding: 12px 16px calc(16px + env(safe-area-inset-bottom)); box-shadow: 0 -8px 30px rgba(0,0,0,.18); }
.dw-contents a { display: block; padding: 7px 4px; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--rule); font-size: 15px; }
.dw-contents .label { margin-top: 10px; }
.dw-group summary { cursor: pointer; padding: 8px 4px; font-weight: 600; color: var(--ink-2); }
.dw-group a { padding-left: 14px; }
@media (min-width: 900px) {
 .dw-wrap { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; }
 .dw-contents, .doc-whole.contents-open .dw-contents { display: block; position: sticky; top: 60px; max-height: calc(100vh - 80px); overflow-y: auto; box-shadow: none; border: 0; padding: 0; background: none; border-radius: 0; }
 .doc-whole:not(.contents-open) .dw-wrap.hide-contents { grid-template-columns: 1fr; }
}
.dw-text { font-family: var(--read); font-size: 17px; line-height: 1.6; color: var(--ink); max-width: var(--measure); }
.dw-sec { padding-top: 6px; }
.dw-sec h2 { font-family: var(--serif); font-size: 21px; font-weight: 600; color: var(--accent); margin: 26px 0 10px; line-height: 1.3; }
.dw-label { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; margin-bottom: 2px; }
.dw-text .secnum, .bn-n { font-weight: 600; color: var(--ink-2); }
.bn { margin: 0 0 .7em; }
.bn-sec { padding-left: 1.6em; text-indent: -1.6em; }
.bn-sub, .bn-cont-sub { padding-left: 2.8em; }
.bn-sub { text-indent: -1.2em; }
.bn-paren, .bn-cont-paren, .bn-subnum { padding-left: 4em; }
.bn-paren, .bn-subnum { text-indent: -1.4em; }
.bn-roman { padding-left: 5em; text-indent: -1.4em; }
.bn-cont-sec { padding-left: 1.6em; }
.bn-subhd { font-weight: 600; margin-top: 1.1em; }
.bn-subhd.minor { font-weight: 500; font-style: italic; padding-left: 1.6em; }
.bn-bq { margin: .4em 0 .9em 2.2em; padding-left: 12px; border-left: 2px solid var(--rule-2); color: var(--ink-2); }
.bco-hero h2 { font-size: 26px; margin-top: 8px; }
.bco-kicker { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: 0; }
.bco-sub { font-style: italic; color: var(--ink-2); }
.cite { border: 0; background: none; padding: 0 2px; font-family: var(--sans); font-size: 11px; color: var(--ink-3); cursor: pointer; text-indent: 0; white-space: nowrap; }
.dw-sec h2 .cite { font-size: 12px; vertical-align: middle; }
.bco-x { color: var(--accent); text-decoration: none; border-bottom: 1px dotted currentColor; }
.dw-text sup.pf { cursor: pointer; color: var(--accent); font-family: var(--sans); font-size: .62em; font-weight: 600; padding: 0 1px; }
.dw-proofs { font-family: var(--sans); font-size: 13px; line-height: 1.5; color: var(--ink-2); margin: -.2em 0 1.2em; padding: 6px 0 6px 12px; border-left: 2px solid var(--rule); }
.dw-pf { display: flex; gap: 8px; padding: 2px 4px; border-radius: 6px; }
.dw-pfl { border: 0; background: none; padding: 0; min-width: 1.2em; font: inherit; font-weight: 700; color: var(--accent); cursor: pointer; }
.lit { background: var(--accent-wash); transition: background 1.2s ease; }
mark.dw-hit { background: rgba(255, 214, 102, .45); color: inherit; border-radius: 2px; }
mark.dw-hit.now { background: rgba(255, 170, 0, .75); }

body.has-pane .lib-pane-host { padding-bottom: calc(var(--lp-h) + var(--lp-bottom, 0px) / 2 + 24px); }
body.has-pane.pane-top .lib-pane-host { padding-bottom: 24px; padding-top: calc(var(--lp-h) + 8px); }
.lib-pane { position: fixed; z-index: 30; left: 0; right: 0; bottom: var(--lp-bottom, 0px); height: calc(var(--lp-h) - var(--lp-bottom, 0px) / 2); display: flex; flex-direction: column; background: var(--paper-2); border-top: 1px solid var(--rule-2); box-shadow: 0 -6px 24px rgba(0,0,0,.10); transition: height .2s ease; }
body.pane-top .lib-pane { top: 0; bottom: auto; border-top: 0; border-bottom: 1px solid var(--rule-2); box-shadow: 0 6px 24px rgba(0,0,0,.10); flex-direction: column-reverse; padding-top: env(safe-area-inset-top); }
@media (min-width: 900px) { body:not(.reading) .lib-pane { left: 220px; } }
.dw-text a.sref, .lp-text a.sref { color: var(--accent); text-decoration: none; border-bottom: 1px dotted currentColor; }
.lp-bar { flex: none; padding: 6px 10px 6px; background: var(--card); border-bottom: 1px solid var(--rule); touch-action: none; cursor: row-resize; user-select: none; -webkit-user-select: none; }
body.pane-top .lp-bar { border-bottom: 0; border-top: 1px solid var(--rule); }
.lp-names { display: flex; align-items: center; gap: 6px; }
.lp-name { border: 0; background: none; padding: 4px 6px; font: inherit; font-size: 13px; color: var(--ink-3); cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 45%; }
.lp-name.strong { color: var(--accent); font-weight: 600; }
.lp-x { margin-left: auto; width: 32px; height: 32px; color: var(--ink-3); }
.lp-x svg { width: 18px; height: 18px; }
.lp-tools { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding-top: 4px; }
.lp-trans { font: inherit; font-size: 13px; padding: 4px 6px; border-radius: 6px; border: 1px solid var(--rule-2); background: var(--card); color: var(--ink); }
.lp-text { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 12px 18px 24px; font-family: var(--read); line-height: 1.6; color: var(--ink); }
.lp-text .flow { max-width: var(--measure); margin: 0 auto; }

/* ---------- 0.42.1: the translation where the page names it; the player small while it plays ---------- */
.run-trans { grid-column: 3; justify-self: start; display: inline-flex; align-items: center; gap: 2px; padding: 0 6px; font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .03em; color: var(--accent); }
.run-trans svg, .meta-trans svg { width: 11px; height: 11px; }
.meta-trans { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--rule-2); background: none; border-radius: 10px; padding: 1px 6px 1px 7px; font: inherit; color: var(--accent); cursor: pointer; vertical-align: baseline; }
.lb-min { border: 0; background: none; color: var(--ink-3); cursor: pointer; padding: 4px; flex: none; display: inline-flex; }
.lb-min svg { width: 18px; height: 18px; }
@media (max-width: 520px) { .listen-bar .lb-min { order: -1; } }
/* Small: pause, the chapter and the speed, in the bottom left corner. */
.listen-bar.mini { left: 8px; right: auto; margin: 0; width: auto; max-width: min(72vw, 320px); flex-wrap: nowrap; gap: 8px; padding: 2px 12px 2px 2px; border-radius: 22px; cursor: pointer; }
.listen-bar.mini > * { display: none; }
.listen-bar.mini > .lb-play, .listen-bar.mini > .lb-mid, .listen-bar.mini > [data-lspeed] { display: inline-flex; }
.listen-bar.mini > .lb-play { width: 28px; height: 28px; font-size: 12px; align-items: center; justify-content: center; }
.listen-bar.mini > .lb-mid { order: 0; flex: 0 1 auto; min-width: 0; display: block; }
.listen-bar.mini .lb-status, .listen-bar.mini .lb-prog { display: none; }
.listen-bar.mini .lb-title { font-size: 13px; }
.listen-bar.mini > [data-lspeed] { order: 1; padding: 2px 6px; font-size: 12px; pointer-events: none; }
body.reading .listen-bar.mini { bottom: calc(1px + env(safe-area-inset-bottom)); }
body.reading.lb-mini .read-stamp { color: transparent; }
/* The text keeps clear of the full player. */
body.paged.lb-full .text { bottom: calc(var(--lb-room, 36px) + 4px); }
body.reading:not(.paged).lb-full #text { padding-bottom: var(--lb-room, 0px); }
body:not(.reading).lb-full #view { padding-bottom: var(--lb-room, 0px); }
body:not(.reading).lb-mini #view { padding-bottom: 48px; }
body:not(.reading) .listen-bar { bottom: calc(var(--tb-h, 52px) + 6px); }
/* 0.42.2: the skips, in the full player and the small one. */
.lb-step svg { width: 18px; height: 18px; }
.listen-bar.mini > [data-lverse], .listen-bar.mini > [data-lchap] { display: inline-flex; padding: 3px 2px; }
.listen-bar.mini > [data-lchap="-1"] { margin-left: 2px; }
.listen-bar.mini > .lb-mid { margin-left: 2px; }
.listen-bar.mini .lb-step svg { width: 16px; height: 16px; }
/* 0.45.3: the small player's own close, at its end. */
.listen-bar.mini > .lb-close { display: inline-flex; order: 2; align-items: center; justify-content: center; min-width: 28px; min-height: 28px; padding: 0; }
.listen-bar.mini > .lb-close svg { width: 14px; height: 14px; }
/* Room for the reading's name beside the ✕: the speed (shown only, never tapped there) leaves the small player. */
.listen-bar.mini > [data-lspeed] { display: none; }
.listen-bar.mini > .lb-mid { min-width: 56px; }
@media (max-width: 520px) { .listen-bar { column-gap: 4px; } .listen-bar .lb-step { padding: 4px 3px; } }
.listen-bar:not(.mini) .lb-step { min-width: 34px; min-height: 34px; justify-content: center; align-items: center; }

/* ---------- 0.43.0: the end of a Today reading (as the app's build 55) ---------- */
.text-end.reading-end { display: flex; flex-direction: column; align-items: center; gap: 12px; border-top: 0; margin-top: 1.8em; padding-top: 0; }
.reading-end .end-of { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); text-align: center; }
.reading-end .end-mark { font: inherit; font-family: var(--sans); font-size: 16px; font-weight: 600; min-height: 44px; padding: 0 22px; border-radius: 22px; border: 1px solid var(--rule-2); background: var(--paper-2); color: var(--accent); cursor: pointer; }
.reading-end .end-next { max-width: none; font-family: var(--sans); font-size: 14px; color: var(--ink-3); text-align: center; }
body.justify .text .reading-end { text-align: center; }
/* 0.43.0: the reader's place starts a column after a relayout or an arrival (the column before may end short). */
.text .pb-a { margin-bottom: 0; }
.text .pb-b { text-indent: 0; }
body.paged .flow .pb-b, body.paged .flow .pb-top { break-before: column; -webkit-column-break-before: always; }
/* 0.43.0: Meditation's translation switch, beside the reference. */
.med-panel .med-ref { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.med-trans { flex: none; }
.med-trans button { min-height: 32px; padding: 4px 12px; font-size: 13px; }
.med-fetch { margin: 6px 0 0; }
/* 0.43.0: Go to on all the books, yours outlined; your last places on top; a larger line saying where you are. */
.picker-recent { display: flex; gap: 8px; overflow-x: auto; padding: 10px 14px 0; scrollbar-width: none; }
.picker-recent::-webkit-scrollbar { display: none; }
.picker-recent[hidden] { display: none; }
.pr-place, .pc-chip {
 flex: none; min-height: 40px; padding: 0 14px; border-radius: 20px; border: 1px solid var(--rule-2); background: var(--paper-2);
 font: inherit; font-size: 15px; font-weight: 600; color: var(--ink); cursor: pointer; white-space: nowrap;
}
.pc-chip.on { background: var(--accent-wash); color: var(--accent); border-color: var(--accent); }
.picker-crumb { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 14px 0; }
.pc-label { font-size: 14px; color: var(--ink-3); min-height: 40px; display: inline-flex; align-items: center; }
.pcol-name { font-size: 12px; font-weight: 600; color: var(--ink-3); margin: 0 0 6px; }
.pgrid .book.here, .pnum.here { outline: 3px solid var(--ink); outline-offset: -3px; }
.pnum { min-height: 44px; }
.picker:not(.narrow) .picker-body { grid-template-columns: 1.6fr 1fr 1fr; }
/* 0.43.0: the running head's book button and its label; headings kept with their text; Crossway's notice once. */
.run-head { grid-template-columns: 44px 44px auto auto 1fr 44px; }
.run-book { grid-column: 2; display: flex; align-items: center; justify-content: center; color: var(--ink-2); padding: 0; width: 44px; }
.run-book .rh-dot svg { width: 16px; height: 16px; }
.run-head .run-ref { grid-column: 3; pointer-events: auto; cursor: default; padding: 0 0 0 4px; }
.run-head .run-trans { grid-column: 4; }
.run-head .run-more { grid-column: 6; }
@media (max-width: 480px) { .run-head { grid-template-columns: 40px 40px auto auto 1fr 40px; } .run-book, .run-side { width: 40px; } .run-ref { max-width: 46vw; } }
body.paged .flow .kw-top { break-before: column; -webkit-column-break-before: always; }
.text h3, .esv h3 { margin-top: 1.1em; }
.esv-notice { font-size: 12px; line-height: 1.5; color: var(--ink-3); margin: 18px 0 6px; }
.about-page p.esv-notice { font-family: var(--sans); font-size: 13px; color: var(--ink-2); }
/* 0.43.0: Today's readings taken together; the next day's button; the four choices may wrap. */
.plan-seg { margin-top: 2.2em; }
.seg-head h1 { font-family: var(--read); font-weight: 600; font-size: 1.5em; line-height: 1.2; margin: 0; }
.reading-end .end-day { font-family: var(--sans); font-size: 15px; min-height: 44px; }
.setting-wrap { flex-wrap: wrap; row-gap: 8px; }
.setting-wrap .seg { flex-wrap: wrap; }
/* 0.43.0: Listen at rest in the running head; the page's room kept while the player is tucked. */
.run-head { grid-template-columns: 44px 44px auto auto 1fr 54px 44px; }
.run-head .run-listen { grid-column: 6; display: flex; align-items: center; justify-content: center; color: var(--ink-2); padding: 0; }
.run-head .run-more { grid-column: 7; }
.rh-pill { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 30px; border-radius: 15px; background: var(--paper-2); box-shadow: inset 0 0 0 .5px var(--rule-2); }
.rh-pill svg { width: 13px; height: 13px; }
/* Playing: the pill's coloured end names who reads (C Crossway, W an RFRMD recording, D the device's voice), pause in the hollow end (0.45.0). */
.rh-pill.src { width: 48px; overflow: hidden; justify-content: flex-start; }
.rh-pill.src .rh-letter { display: flex; align-items: center; justify-content: center; width: 22px; height: 100%; background: var(--accent); color: var(--paper); font: 700 13px/1 ui-rounded, system-ui, sans-serif; }
.rh-pill.src .rh-pause { display: flex; align-items: center; justify-content: center; flex: 1; height: 100%; }
.icon-btn.src-pill { width: auto; padding: 0 2px; }
.icon-btn.src-pill .rh-pill { color: var(--ink-2); }
/* The player's letter, before the reading's name (0.45.2). */
.lb-src { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; margin-right: 6px; border-radius: 9px; background: var(--accent); color: var(--paper); font: 700 11px/1 ui-rounded, system-ui, sans-serif; vertical-align: 2px; }
.lb-src[hidden] { display: none; }
@media (max-width: 480px) { .run-head { grid-template-columns: 40px 40px auto auto 1fr 52px 40px; } }
body.paged.lb-mini .text { bottom: calc(var(--lb-room, 36px) + 4px); }
body.reading:not(.paged).lb-mini #text { padding-bottom: var(--lb-room, 0px); }

/* 0.43.0: the favourite colour (as the app's build 34), light and dark shades of each, the text on them readable. */
:root[data-accent="blue"] { --fav-l: #1f5fc4; --fav-wl: #e4ecf9; --fav-d: #7ab4ff; --fav-wd: #142338; }
:root[data-accent="green"] { --fav-l: #2e7d32; --fav-wl: #e3f1e3; --fav-d: #6cc070; --fav-wd: #16281a; }
:root[data-accent="red"] { --fav-l: #c0392b; --fav-wl: #f9e3e0; --fav-d: #ff8a7a; --fav-wd: #3a1a16; }
:root[data-accent="orange"] { --fav-l: #c25400; --fav-wl: #fde6d2; --fav-d: #ffad4d; --fav-wd: #3d2410; }
:root[data-accent="magenta"] { --fav-l: #b3157a; --fav-wl: #f8e1ee; --fav-d: #ff7ac8; --fav-wd: #3a1630; }
:root[data-accent="black"] { --fav-l: #262626; --fav-wl: #ebe7e0; --fav-d: #ece4d8; --fav-wd: #2a2620; }
.fav-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; box-shadow: 0 0 0 1px var(--rule-2); }
/* 0.43.0: the sidebar hides and shows; the passage folds to its bar; the contents' Lord's Days and heads open. */
.side-hide, .side-show { display: none; border: 0; background: none; color: var(--ink-3); cursor: pointer; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 8px; padding: 0; }
.side-hide svg, .side-show svg { width: 20px; height: 20px; }
@media (min-width: 900px) {
 body:not(.reading) .side-hide { display: inline-flex; margin-left: auto; }
 body.side-hidden:not(.reading) .sidebar { margin-left: -220px; }
 body.side-hidden:not(.reading) .side-show { display: inline-flex; position: fixed; z-index: 35; top: calc(12px + env(safe-area-inset-top)); left: 12px; background: var(--paper-2); box-shadow: inset 0 0 0 .5px var(--rule-2); }
 body.side-hidden:not(.reading) .lib-pane { left: 0; }
 body.side-hidden:not(.reading) .main { padding-left: 56px; }
}
.lp-fold { width: 32px; height: 32px; color: var(--ink-3); margin-left: auto; }
.lp-fold svg { width: 18px; height: 18px; transition: transform .2s ease; }
.lp-fold + .lp-x { margin-left: 0; }
.lib-pane.folded .lp-text { display: none; }
.lib-pane.folded .lp-fold svg { transform: rotate(180deg); }
body.pane-top .lp-fold svg { transform: rotate(180deg); }
body.pane-top .lib-pane.folded .lp-fold svg { transform: none; }
.dw-subs summary { border-bottom: 1px solid var(--rule); }
.dw-subs summary a { display: inline; color: var(--ink); text-decoration: none; padding: 0 0 0 4px; border-bottom: 0; }
.dw-subs > a { font-size: 13px; }

/* 0.44.0: the ? beside a page's title that opens Help at that page. */
.help-q { color: var(--ink-3); }
.help-q svg { width: 22px; height: 22px; }

/* 0.44.4: the site's icon beside a tab page's title on a phone (the side carries it on a wider screen). */
.page-title .title-icon { width: .8em; height: .8em; border-radius: .18em; vertical-align: -.06em; margin-right: .3em; flex: none; }
.head-row .page-title:has(.title-icon) { display: flex; align-items: center; }
@media (min-width: 900px) { .page-title .title-icon { display: none; } }
/* 0.44.5: the Bible tab's head on one line on a phone: the translation picker as narrow as its four letters. */
.bible-head > .row { flex-wrap: nowrap; align-items: center; }
.bible-head select.trans { width: auto; min-width: 0; padding: 6px 4px 6px 8px; }
/* 0.44.6: on the smallest phones (375 wide) the same line, a little tighter. */
@media (max-width: 420px) {
 .bible-head { gap: 6px; }
 .bible-head .page-title { font-size: 26px !important; }
 .bible-head > .row { gap: 4px; }
 .bible-head > .row .btn { padding-left: 9px; padding-right: 9px; font-size: 14px; white-space: nowrap; }
 .bible-head > .row .help-q { width: 30px; min-width: 30px; padding: 0; }
 .bible-head select.trans { font-size: 14px; padding-left: 6px; }
}

/* ---------- 0.46.0: the reader's foot and ⋯'s corner panel (as the app's build 71; John 2026-11-24) ----------
   A foot of one line, as a printed book's: the page number in the middle, the version under it, and at the right
   Listen, the translation and ⋯. The page ends above it and never changes size for the player. */
.read-foot {
 position: fixed; right: 0; bottom: env(safe-area-inset-bottom); z-index: 17; height: 44px;
 display: flex; align-items: center; gap: 2px; padding-right: 6px;
}
.read-foot button { border: 0; background: none; cursor: pointer; min-height: 44px; padding: 0; color: var(--ink-2); }
.read-foot .run-listen { display: flex; align-items: center; justify-content: center; min-width: 44px; }
.read-foot .run-trans { display: flex; align-items: center; justify-content: center; min-width: 44px; }
.rf-trans {
 display: inline-flex; align-items: center; height: 30px; padding: 0 9px; border-radius: 15px; background: var(--paper-2);
 box-shadow: inset 0 0 0 .5px var(--rule-2); font: 600 13px/1 var(--sans); color: var(--ink-2); letter-spacing: .02em;
}
.read-foot .run-more { display: flex; align-items: center; justify-content: center; width: 44px; }
.read-foot .run-more.open .rh-dot { background: var(--rule); }
body:not(.paged) .read-foot { left: 0; background: var(--paper); justify-content: flex-end; }
/* The page ends above the foot; the page number and the version share its middle. */
body.paged:has(.read-foot) .text { bottom: calc(env(safe-area-inset-bottom) + 46px); }
body.reading:not(.paged):has(.read-foot) #text { padding-bottom: 56px; }
body:has(.read-foot) .page-no { left: 50%; right: auto; transform: translateX(-50%); bottom: calc(env(safe-area-inset-bottom) + 22px); }
body:has(.read-foot) .read-stamp { left: 50%; right: auto; transform: translateX(-50%); bottom: env(safe-area-inset-bottom); padding: 0 0 6px; background: none; }
body:has(.read-foot) .back-chip { bottom: calc(env(safe-area-inset-bottom) + 6px); }
/* The player is in ⋯'s panel while reading, not over the page. */
body:has(.read-foot) .listen-bar:not(.in-corner) { display: none; }
.corner-wrap { position: fixed; inset: 0; z-index: 60; }
.corner-scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .12); }
.corner {
 position: absolute; right: 8px; bottom: calc(env(safe-area-inset-bottom) + 46px); width: min(340px, calc(100vw - 16px));
 max-height: calc(80vh - 46px); overflow-y: auto; overscroll-behavior: contain;
 background: var(--raised); border: 1px solid var(--raised-edge); border-radius: 16px; box-shadow: 0 10px 28px rgba(0, 0, 0, .18);
 padding: 6px 0; font-family: var(--sans);
}
.corner .listen-bar.in-corner {
 position: static; left: auto; right: auto; bottom: auto; max-width: none; margin: 0; flex-wrap: wrap; row-gap: 6px;
 border: 0; border-radius: 0; box-shadow: none; background: none; padding: 6px 12px 10px; border-bottom: 1px solid var(--rule);
}
.corner .listen-bar.in-corner .lb-min { display: none; }
/* 0.46.2: what is being read on a line of its own, Close beside it; the controls under it, Follow and the speed at the
   right (as the narrow player; John's tablet, 11-24, where the title had no room left beside five buttons). */
.corner .listen-bar.in-corner { padding: 8px 8px 10px 16px; }
.corner .listen-bar.in-corner .lb-mid { order: -2; flex: 1 1 calc(100% - 56px); }
.corner .listen-bar.in-corner .lb-close { order: -1; min-width: 36px; min-height: 36px; }
.corner .listen-bar.in-corner [data-lfollow] { margin-left: auto; }
.corner .listen-bar.in-corner .lb-title, .corner .listen-bar.in-corner .lb-status { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pop-menu.pop-free { position: fixed; z-index: 70; overflow-y: auto; }
.c-nav { display: grid; grid-template-columns: 1fr 1fr; column-gap: 8px; padding: 0 16px; }
.c-nav:empty { display: none; }
.c-way { border: 0; background: none; cursor: pointer; min-height: 44px; color: var(--accent); font: 15px var(--sans); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-way.prev { grid-column: 1; text-align: left; }
.c-way.next { grid-column: 2; text-align: right; }
.c-nav .c-mark { grid-column: 1 / -1; padding: 0; }
.c-nav:not(:empty) { border-bottom: 1px solid var(--rule); margin-bottom: 4px; }
.c-row {
 display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 0 16px; border: 0; background: none;
 cursor: pointer; color: var(--ink); font: 16px var(--sans); text-align: left;
}
.c-row svg { width: 20px; height: 20px; color: var(--ink-2); flex: none; }
.c-row.on span { color: var(--accent); font-weight: 600; }
.c-row:hover, .c-way:hover { background: var(--paper-2); }
@media print { .read-foot, .corner-wrap { display: none !important; } }
/* On a phone the right-hand buttons take about 150px: the page number and version centre in what is left. */
@media (max-width: 520px) {
 body:has(.read-foot) .page-no, body:has(.read-foot) .read-stamp { left: calc(50% - 64px); }
}

/* ---------- 0.48.0: the even page (V2-EVEN-PAGE-PLAN.md; the app's builds 80 to 90) ----------
   One row for everything. --row is the text size times the line spacing in whole pixels (app.js applyRow). Every line
   of the reading text is one row tall, a heading is one row, a blank space is one row, a book's name two, and a page
   is a whole number of rows (layoutPages), so every full page holds the same lines. */
.text, .text .intro, .text .intro * { line-height: var(--row, 1.7); }
.text sup, .text .note-sq, .esv .verse-num, .esv .chapter-num { line-height: 0; }
/* Prose: no space between paragraphs; a paragraph after a paragraph is indented, as a printed Bible's. */
.text p, .esv .block-indent { margin: 0; }
.text p + p { text-indent: 1.5em; }
.text p:has(> .chapnum), .text p.pb-b, .text .text-end p, .text p.muted { text-indent: 0; }
/* Lines break across pages freely, as a printed Bible's do (no widow or orphan is kept, in prose or in a turned-over
   line of poetry): held back, they left a page a row or two short. */
body.paged .flow, body.paged .flow p, body.paged .flow .ln { orphans: 1; widows: 1; }
/* A section heading: small grey capitals on a row of its own, nothing blank above it. It sits low in its row, so the
   row itself is the space over it. */
.text h3, .esv h3 { margin: 0; line-height: var(--row, 1.7); position: relative; top: .22em; }
.text h2, .esv-ch { font-size: 1em; font-weight: 600; margin: var(--row, 1.7em) 0 0; line-height: var(--row, 1.7); }
.text h2:first-child { margin-top: 0; }
.esv h4.psalm-title { margin: 0; line-height: var(--row, 1.7); }
/* A chapter: its numeral two rows deep, the first two lines set in beside it; one blank row before a chapter that has
   no heading over it (the browser drops that row at the top of a column). */
.text .chapnum, .poem .chapnum {
 float: left; display: block; min-width: 0; height: calc(var(--row, 32px) * 2); line-height: calc(var(--row, 32px) * 2);
 font-size: calc((var(--row, 32px) + var(--text-size) * .66) / .7); margin: 0 .1em 0 0; text-indent: 0; font-weight: 600; color: var(--accent);
}
.text p:has(> .chapnum):not(:first-child), .text .poem:has(.chapnum):not(:first-child) { margin-top: var(--row, 1.7em); }
.text :is(h1, h2, h3, h4, header, .lead-space) + p:has(> .chapnum):not(:first-child), .text :is(h1, h2, h3, h4, header, .lead-space) + .poem:has(.chapnum):not(:first-child) { margin-top: 0; }
/* The blank block that makes the page before the reader's place full (app.js placeSpace). */
.lead-space { display: block; height: 0; margin: 0; padding: 0; }
/* The numeral's two rows stay on one page with the lines beside them. The browser would leave the chapter's first
   line at a page's foot and carry the numeral over to the next page (orphans is not kept beside a float), or in
   poetry let the numeral hang off the page: so the chapter opens with an empty block two rows deep that cannot be
   divided, and the text is drawn up over it. Where it does not fit, the chapter starts the next page. */
body.paged .flow p:has(> .chapnum)::before, body.paged .poem .vl:has(.chapnum)::before {
 content: ''; display: block; height: calc(var(--row, 32px) * 2); margin-bottom: calc(var(--row, 32px) * -2); break-inside: avoid;
}
/* A heading of several lines (a psalm's long title) is not divided between pages. */
body.paged .flow h2, body.paged .flow h3, body.paged .flow h4 { break-inside: avoid; }
/* A turned-over line of poetry may run on to the next page, as a paragraph's lines do (it was kept whole, and a page
   ended a row or two short before every long line). */
body.paged .poem .ln { break-inside: auto; }
/* Poetry: the prose row; a turned-over line two steps deeper than any line's start, so it never reads as a new line;
   one blank row between stanzas, and between prose and poetry. */
.poem { margin: 0; }
.text p + .poem, .text .poem + p { margin-top: var(--row, 1.7em); }
.poem .vl.stanza { margin-top: var(--row, 1.7em); }
.poem > .vl.stanza:first-child { margin-top: 0; }
.poem .ln { padding-left: 3.6em; text-indent: -3.6em; }
.poem .ln.ind { padding-left: 4.6em; text-indent: -2em; }
/* A chapter's numeral in poetry stands at the margin, in the room the verse numbers hang in; its verse's first line
   begins at the lines' own edge, or past the numeral where that is wider (a psalm past the 99th). The line beside
   the numeral's lower half, marked by the script (besideNumerals), begins clear of it too: without this the hanging
   start of that line was printed over the numeral. Where the script has not looked (a scrolled page), the next verse
   waits for the numeral to end; and a numeral never hangs below its poem. */
.poem .ln > .chapnum { margin-left: calc(var(--text-size, 19px) * -3.6); }   /* the text's em, not the numeral's own */
.poem .ln:has(> .chapnum), .poem .ln.beside-num { text-indent: 0; }
.poem .ln.beside-num > sup { min-width: 0; margin-right: .3em; }
body:not(.paged) .poem .vl:has(.chapnum) { min-height: calc(var(--row, 32px) * 2); }
.poem:has(.chapnum)::after { content: ''; display: block; clear: both; }
.esv .line { padding-left: 3.6em; text-indent: -3.6em; }
.esv .indent.line { padding-left: 4.6em; text-indent: -2em; }
.esv .begin-line-group { height: var(--row, .5em); }
.esv .block-indent { margin: 0; }
/* A book: its name centred in capitals on two rows, one blank row under it, at the top of a page. */
.text .book-title {
 font-size: 1.5em; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; text-align: center;
 height: calc(var(--row, 32px) * 2); line-height: calc(var(--row, 32px) * 2); margin: 0 0 var(--row, 1.7em); overflow: hidden; white-space: nowrap;
}
.text .book-title .title-btn { font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; line-height: inherit; }
.text-head { margin: 0; }
.text-head:empty { display: none; }
.book-run { margin-top: calc(var(--row, 32px) * 2); }
body.paged .book-run { margin-top: 0; break-before: column; -webkit-column-break-before: always; }
.esv-run.book-start > .book-title { margin-top: 0; }
body.paged .esv-run.book-start { break-before: column; -webkit-column-break-before: always; }
.esv-run.book-start > .intro + .esv-ch { margin-top: 0; }
/* A Today reading or a psalm: named once, on a row of small grey capitals, a blank row under it. */
.read-label {
 font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3);
 line-height: var(--row, 1.7); margin: 0 0 var(--row, 1.7em);
}
.plan-seg { margin-top: var(--row, 1.7em); }
/* The book's introduction, on the rows too. */
.text .intro { margin: 0 0 var(--row, 1.7em); padding-bottom: 0; border-bottom: 0; }
.text .intro > * { margin-top: 0; margin-bottom: 0; }
/* The end of a reading, on whole rows. */
.text-end, body.paged .text-end { margin-top: var(--row, 1.7em); padding-top: 0; border-top: 0; }
/* The font choices are six now: they wrap to a second line where one will not hold them. */
.opt-line .layout-switch:has([data-fontpick]) { flex-wrap: wrap; row-gap: 2px; }
.seg[data-seg="font"] { flex-wrap: wrap; }

/* ---------- 0.48.0: the verse sheet in the order it is used, note squares, notebook colours ---------- */
.study-card .sc-head { position: relative; }
.sc-head-acts { display: inline-flex; align-items: center; gap: 2px; }
.study-card .sc-more-btn { color: var(--ink-2); min-height: 32px; min-width: 36px; padding: 2px 6px; }
.study-card .sc-more-btn svg { width: 22px; height: 22px; }
.sc-menu {
 position: absolute; right: 0; top: 100%; z-index: 5; display: flex; flex-direction: column; min-width: 200px; padding: 4px;
 background: var(--card); border: 1px solid var(--rule-2); border-radius: 10px; box-shadow: 0 8px 28px rgba(0, 0, 0, .2);
}
.sc-menu[hidden] { display: none; }
.sc-menu button {
 font-family: var(--sans); font-size: 15px; text-align: left; color: var(--ink); background: none; border: 0; border-radius: 6px;
 padding: 10px 12px; min-height: 42px; cursor: pointer;
}
.sc-menu button:hover, .sc-menu button:focus-visible { background: var(--accent-wash); }
/* The verse: one line until it is tapped. */
button.vs-verse { display: block; width: 100%; background: none; border-width: 0 0 1px; cursor: pointer; }
.vs-verse.one { padding-bottom: 8px; margin-bottom: 10px; }
.vs-verse.one span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* The colours, with Through at their right. */
.sc-colors { display: flex; align-items: center; justify-content: space-between; gap: 8px 14px; flex-wrap: wrap; }
.sc-colors .sc-swatches { gap: 10px; }
.sc-colors .sw { width: 30px; height: 30px; }
.sc-colors .sc-thru { margin-left: auto; }
.sw-off { display: inline-flex; align-items: center; justify-content: center; width: 30px; min-height: 30px; padding: 0; }
.sw-off svg { width: 16px; height: 16px; }
.sc-annot { margin-top: 10px; }
.sc-annot:has(.sc-noteitem) { margin-top: 4px; }
/* Three pills: the one pressed shows its matter beneath. */
.sc-pills { display: flex; gap: 8px; margin-top: 12px; }
.sc-pill, .vs-tr {
 font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .08em; color: var(--ink-2); background: var(--card);
 border: 1px solid var(--rule-2); border-radius: 999px; padding: 0 16px; min-height: 34px; cursor: pointer;
}
.sc-pill[aria-pressed="true"], .vs-tr[aria-pressed="true"] { background: var(--accent-wash); color: var(--accent); border-color: var(--accent); }
.sc-pill.empty { opacity: .45; }
.verse-sheet .sc-sec { margin-top: 10px; }
.sc-sec[hidden] { display: none; }
/* A verse with a note: a small square after its number, in its notebook's colour. */
.note-sq { display: inline-flex; gap: 1px; margin: 0 .24em 0 .06em; vertical-align: .12em; cursor: pointer; position: relative; text-indent: 0; }
.note-sq::after { content: ''; position: absolute; inset: -12px -8px -10px; }
.note-sq i, .nb-sq { display: inline-block; width: .48em; height: .48em; border-radius: 1px; }
.nb-sq { width: 10px; height: 10px; border-radius: 2px; margin-right: 7px; }
.note-sq i[data-c="yellow"], .mg-e i[data-c="yellow"], .nb-sq[data-c="yellow"], .nb-sw[data-c="yellow"] { background: rgb(237, 184, 36); }
.note-sq i[data-c="green"], .mg-e i[data-c="green"], .nb-sq[data-c="green"], .nb-sw[data-c="green"] { background: rgb(77, 176, 79); }
.note-sq i[data-c="blue"], .mg-e i[data-c="blue"], .nb-sq[data-c="blue"], .nb-sw[data-c="blue"] { background: rgb(64, 140, 237); }
.note-sq i[data-c="pink"], .mg-e i[data-c="pink"], .nb-sq[data-c="pink"], .nb-sw[data-c="pink"] { background: rgb(232, 94, 148); }
.note-sq i[data-c="orange"], .mg-e i[data-c="orange"], .nb-sq[data-c="orange"], .nb-sw[data-c="orange"] { background: rgb(242, 128, 33); }
/* Word underlines (0.50.0, as the app's build 122): a coloured line under words within a verse. It takes no room,
   so a page's breaks never move. */
u.wm { text-decoration: underline; text-decoration-thickness: .1em; text-underline-offset: .17em; text-decoration-skip-ink: none; }
u.wm[data-c="yellow"] { text-decoration-color: rgb(237, 184, 36); }
.vw[data-u="yellow"] { box-shadow: inset 0 -2px 0 rgb(237, 184, 36); }
.ub i[data-c="yellow"] { background: rgb(237, 184, 36); }
u.wm[data-c="green"] { text-decoration-color: rgb(77, 176, 79); }
.vw[data-u="green"] { box-shadow: inset 0 -2px 0 rgb(77, 176, 79); }
.ub i[data-c="green"] { background: rgb(77, 176, 79); }
u.wm[data-c="blue"] { text-decoration-color: rgb(64, 140, 237); }
.vw[data-u="blue"] { box-shadow: inset 0 -2px 0 rgb(64, 140, 237); }
.ub i[data-c="blue"] { background: rgb(64, 140, 237); }
u.wm[data-c="pink"] { text-decoration-color: rgb(232, 94, 148); }
.vw[data-u="pink"] { box-shadow: inset 0 -2px 0 rgb(232, 94, 148); }
.ub i[data-c="pink"] { background: rgb(232, 94, 148); }
u.wm[data-c="orange"] { text-decoration-color: rgb(242, 128, 33); }
.vw[data-u="orange"] { box-shadow: inset 0 -2px 0 rgb(242, 128, 33); }
.ub i[data-c="orange"] { background: rgb(242, 128, 33); }
/* By a verse's number: it has underlines made in another translation. A thick orange plus (John, 2026-11-29). */
.wm-plus {
 display: inline-block; width: .54em; height: .54em; margin: 0 .24em 0 .06em; vertical-align: .08em; cursor: pointer; position: relative; text-indent: 0;
 background: linear-gradient(rgb(242, 128, 33), rgb(242, 128, 33)) center / 100% 38% no-repeat, linear-gradient(rgb(242, 128, 33), rgb(242, 128, 33)) center / 38% 100% no-repeat;
}
.text .wm-plus { line-height: 0; }
.text .wm-plus::after { content: ''; position: absolute; inset: -12px -8px -10px; }
/* Book pages: a verse's marks in the margin beside it (0.50.1): its number, a square for each note, the plus. On a
   layer of their own that turns with the pages, so they take no room in the text. */
.mg-layer { position: absolute; left: 0; top: 0; width: 0; height: 0; pointer-events: none; will-change: transform; }
.mg-e {
 position: absolute; display: inline-flex; align-items: center; gap: 1px; height: 12px; line-height: 1; white-space: nowrap;
 font-family: var(--sans); pointer-events: auto; cursor: pointer; -webkit-tap-highlight-color: transparent;
 transform-origin: 100% 50%; transform: translate(-100%, -50%) scale(var(--s, 1));
}
.mg-e.r { transform-origin: 0 50%; transform: translate(0, -50%) scale(var(--s, 1)); }
.mg-e b { font-size: 10px; font-weight: 600; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.mg-e i { display: block; width: 7px; height: 7px; border-radius: 1px; }
.mg-e .wm-plus { display: block; width: 9px; height: 9px; margin: 0; }
/* A narrow margin (0.50.2): one cyan diamond, a colour no notebook has, in place of the number and its marks. */
.mg-e .mg-d { display: none; width: var(--d, 7.8px); height: var(--d, 7.8px); background: rgb(0, 173, 204); transform: rotate(45deg); margin: 0 calc(var(--d, 7.8px) * .207); }
.mg-e.dia b, .mg-e.dia i, .mg-e.dia .wm-plus { display: none; }
.mg-e.dia .mg-d { display: block; }
.mg-e::after { content: ''; position: absolute; inset: -10px -8px; }
.text .mg-e .wm-plus::after { content: none; }
/* The verse sheet: the verse whole, word by word, to underline. */
.vs-other { margin: -4px 0 10px; }
.vs-otr { display: inline-flex; align-items: center; gap: 7px; font-family: var(--sans); font-size: 13px; color: var(--ink-2); min-height: 32px; padding: 0 2px; cursor: pointer; }
.vs-otr .wm-plus { width: 10px; height: 10px; margin: 0; vertical-align: 0; }
.vs-whole { margin: 6px 0 12px; padding-bottom: 12px; border-bottom: 1px solid var(--rule); }
.vs-trs { display: flex; gap: 8px; margin-bottom: 8px; }
.vs-wrow { display: flex; align-items: flex-start; gap: 8px; }
.vs-wlist { flex: 1; min-width: 0; margin: 0; }
.vs-wv { display: flex; flex-wrap: wrap; align-items: baseline; }
.vs-wv + .vs-wv { margin-top: 8px; }
.vs-wv small { font-family: var(--sans); font-size: 11px; font-weight: 600; color: var(--ink-3); margin-right: 4px; }
.vw { font-family: var(--serif); font-size: 19px; line-height: 1.3; color: var(--ink); background: none; border: 0; border-radius: 3px; padding: 3px 2.5px; margin: 0; cursor: pointer; }
.vw[aria-pressed="true"] { background: var(--accent-wash); }
.vw[data-u] { border-radius: 3px 3px 0 0; }
.vs-verse[hidden], .vs-other[hidden], .vs-whole[hidden] { display: none; }
.vs-less { flex: none; width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; color: var(--ink-3); padding: 0; }
.vs-less svg { width: 16px; height: 16px; transform: rotate(180deg); }
.vs-urow { display: flex; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.vs-ulabel { font-family: var(--sans); font-size: 12px; font-weight: 600; color: var(--ink-3); }
.ub { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; padding: 0; cursor: pointer; }
.ub i { display: block; width: 26px; height: 5px; border-radius: 2px; }
.vs-uhint { font-family: var(--sans); font-size: 12px; color: var(--ink-3); margin: 10px 0 0; }
/* The Notebooks page: each notebook's colour. */
.nb-color { grid-column: 2; display: flex; align-items: center; gap: 10px; padding: 2px 0; }
.nb-sw { width: 24px; height: 24px; border-radius: 5px; border: 1px solid var(--rule-2); padding: 0; cursor: pointer; }
.nb-sw[aria-pressed="true"] { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- 0.48.1: what the reader waits for after asking to listen, where the verses on the page are named ---------- */
.prep-pill {
 position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(env(safe-area-inset-bottom) + 18px); z-index: 18;
 font-family: var(--sans); font-size: 12px; font-weight: 600; line-height: 1; white-space: nowrap; pointer-events: none;
 color: var(--paper); background: var(--accent); border-radius: 999px; padding: 7px 12px;
}
.prep-pill .pp-few { display: none; }
.prep-pill + .page-no { visibility: hidden; }
body.rp-open .prep-pill { display: none; }
@media (max-width: 520px) {
 .prep-pill { left: calc(50% - 64px); }
 .prep-pill .pp-full { display: none; }
 .prep-pill .pp-few { display: inline; }
}
@media print { .prep-pill { display: none !important; } }

/* ---------- 0.48.3: the book and chapter at the far right of the running head (as the app's build 96; John,
   2026-11-26: "it would balance the top frame of the page"), the two buttons at the left. The name is a label; the
   track it stands in may shrink, so a long name is cut to its short form (setRunRef) and never pushes the buttons. ---------- */
.run-head { grid-template-columns: 44px 44px minmax(0, 1fr); padding-right: 16px; }
.run-head .run-ref { grid-column: 3; justify-self: end; text-align: right; padding: 0; max-width: 100%; min-width: 0; }
@media (max-width: 480px) {
 .run-head { grid-template-columns: 40px 40px minmax(0, 1fr); padding-right: 12px; }
 .run-head .run-ref { max-width: 100%; }
}

/* Today's first-visit panel on the plan, and the day's two other things (0.56.0) */
.plan-intro { position: relative; display: block; text-align: left; margin: 0 0 18px; padding-right: 44px; }
.plan-intro strong { display: block; color: var(--ink); }
.plan-intro p { margin: 6px 0 8px; font-size: 15px; color: var(--ink-2, var(--ink-3)); line-height: 1.45; }
.plan-intro a { color: var(--accent); font-weight: 600; text-decoration: none; }
.plan-intro-x { position: absolute; top: 6px; right: 6px; width: 36px; height: 36px; display: grid; place-items: center; color: var(--ink-3); }
.plan-intro-x svg { width: 18px; height: 18px; }
.daily-links { margin-top: 22px; }
.daily-links .list-row small { display: block; margin-left: 0; color: var(--ink-3); font-size: 13px; }

/* Notes in parts: Notebooks | All notes, with search, tags and a note edited where it is listed (0.57.0) */
.notes-parts { margin: 2px 0 14px; }
.notes-parts button { padding: 8px 16px; font-size: 15px; }
.notes-search { display: block; width: 100%; box-sizing: border-box; padding: 10px 12px; font-size: 16px; border: 1px solid var(--rule-2); border-radius: var(--radius); background: var(--card); color: var(--ink); margin-bottom: 10px; }
.notes-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.tag-chip { border: 0; border-radius: 999px; padding: 7px 12px; font-size: 14px; background: var(--accent-wash); color: var(--accent); cursor: pointer; }
.tag-chip[aria-pressed="true"] { background: var(--accent); color: #fff; }
.tag-chip small { opacity: .75; }
.note-row { align-items: flex-start; text-align: left; }
.note-body { display: block; width: 100%; }
.note-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.note-head small { color: var(--ink-3); font-size: 13px; margin: 0; }
.note-text { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-wrap; font-size: 15px; line-height: 1.45; margin-top: 4px; font-family: var(--sans, inherit); }
.note-tags { display: block; margin-top: 6px; }
.note-tags i { font-style: normal; font-size: 13px; color: var(--accent); background: var(--accent-wash); border-radius: 999px; padding: 2px 8px; }
.note-edit { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.note-edit textarea { display: block; width: 100%; box-sizing: border-box; margin: 8px 0; padding: 10px; font: inherit; font-size: 16px; line-height: 1.45; border: 1px solid var(--rule-2); border-radius: var(--radius); background: var(--card); color: var(--ink); resize: vertical; }
.note-edit-row { align-items: center; gap: 8px; flex-wrap: wrap; }
.note-edit-row .grow { flex: 1; }
.note-nb { font-size: 14px; color: var(--ink-3); }
.note-nb select { font-size: 15px; margin-left: 4px; max-width: 60vw; }
.plain.danger { color: #b3261e; }

/* Notebooks with their controls named, a notebook's own page, and the way back from the text (0.58.0) */
.nb-row2 { grid-template-columns: 1fr; gap: 8px; }
.nb-row2 > * { grid-column: 1; }
.nb-open { display: flex; justify-content: space-between; align-items: center; width: 100%; border: 0; background: none; padding: 4px 0; text-align: left; color: var(--ink); cursor: pointer; }
.nb-open .nb-main { display: block; }
.nb-open .nb-name, .nb-open .nb-meta { display: block; }
.nb-open .mark { color: var(--ink-3); }
.nb-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.nb-lab { font-size: 14px; color: var(--ink-3); }
.nb-showin { font-size: 14px; padding: 6px 8px; border: 1px solid var(--rule-2); border-radius: var(--radius); background: var(--card); color: var(--ink); }
.nb-write { font-size: 15px; padding: 4px 0; color: var(--ink-3); }
.nb-write[aria-pressed="true"] { color: var(--accent); font-weight: 600; }
.notes-back { position: fixed; left: 50%; transform: translateX(-50%); top: calc(env(safe-area-inset-top, 0px) + 8px); z-index: 60; border: 1px solid var(--rule-2); border-radius: 999px; padding: 8px 14px; font-size: 15px; font-weight: 600; background: var(--card); color: var(--accent); box-shadow: 0 2px 10px rgba(0,0,0,.18); cursor: pointer; transition: opacity .4s; }
.notes-back.gone { opacity: 0; }

.notes-list li:has(.hl-remove) { display: flex; align-items: center; }
.notes-list li:has(.hl-remove) .note-row { flex: 1; }
.hl-remove { font-size: 14px; padding: 8px 4px 8px 12px; }

.coll-note { margin: 8px 0 0; font-size: 13px; }
.coll-note a { color: var(--accent); }
.doc-permission { margin: 28px 0 8px; padding-top: 14px; border-top: 1px solid var(--rule); font-size: 14px; }
.doc-permission a { color: var(--accent); }
.med-puritan { font-weight: 400; color: var(--ink-3); margin-left: 6px; }
/* 0.59.2: the foot's lower left, the translation holder's link (esv.org, netbible.org) or the site's name. A chip
   that comes up there for a while (the way back from a cross-reference) takes its place. */
.foot-mark { position: fixed; left: 12px; bottom: env(safe-area-inset-bottom); z-index: 17; height: 44px; display: flex;
 align-items: center; font: 400 11px/1 var(--sans); color: var(--ink-2); opacity: .75; text-decoration: none; }
a.foot-mark:hover { text-decoration: underline; }
body:not(:has(.read-foot)) .foot-mark, body:has(.back-chip) .foot-mark { display: none; }
@media print { .foot-mark { display: none !important; } }
