/* The Water Carrier — flipbook / card viewer (Publuu-style layout, light ground).
   Hand-maintained source file (not generated). */

:root {
  --ground-1: #ece6dd;     /* warm greige ground (2026-10-31, style review, approved by Gerhard; was #fbf8f2) */
  --ground-mid: #ddd5c9;
  --ground-2: #c9beae;     /* was #ece4d6 */
  --bar: rgba(255, 253, 249, 0.92);
  --ink: #23272a;
  --muted: #6d6a63;
  --line: rgba(35, 39, 42, 0.12);
  --accent: #2f8f8c;
  --accent-deep: #1f6e6b;   /* the same teal, deep enough for white text (6.0:1) */
  --gold: #b8893a;
  --paper: #ffffff;
  --top-h: 56px;
  --bottom-h: 52px;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
/* iPhone Safari pans the page by the book's edge shadow (2px) unless the root is clipped too */
html:has(> body.viewer) { overflow: hidden; }
body.viewer {
  height: 100vh; height: 100dvh; overflow: hidden;
  display: flex; flex-direction: column;
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* a near-invisible paper grain over the warm greige (2026-10-31, approved by Gerhard); keep '#' encoded as %23 */
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.23 0 0 0 0 0.18 0 0 0 0 0.12 1.6 0 0 0 -0.55'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.12'/%3E%3C/svg%3E"),
    radial-gradient(ellipse 85% 75% at 50% 45%, var(--ground-1) 0%, var(--ground-mid) 55%, var(--ground-2) 100%);
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; }
a { color: inherit; }

/* ---------- top bar ---------- */
.vtop {
  height: var(--top-h); flex: 0 0 var(--top-h); position: relative; z-index: 30;
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center;
  gap: 12px; padding: 0 12px;
  background: var(--bar); border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.2) blur(8px); -webkit-backdrop-filter: saturate(1.2) blur(8px);
}
.vleft { display: flex; align-items: center; gap: 12px; min-width: 0; }
.mono img { display: block; height: 28px; width: auto; }
.vcrumbs { display: flex; align-items: baseline; gap: 6px; min-width: 0; font-size: 14px; white-space: nowrap; }
.vcrumbs a { color: var(--muted); text-decoration: none; }
.vcrumbs a:hover { color: var(--ink); text-decoration: underline; }
.vcrumbs .sep { color: #b5b0a6; }
.vcrumbs .cur { font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.vtools { display: flex; align-items: center; gap: 2px; }
.vright { display: flex; justify-content: flex-end; align-items: center; gap: 2px; }   /* Order print centred beside Close (Gerhard, 5 Nov 2026) */

.ib {
  appearance: none; border: 0; background: transparent; cursor: pointer; flex: 0 0 auto;
  width: 40px; height: 40px; border-radius: 8px; color: #3c4043;
  display: inline-flex; align-items: center; justify-content: center; text-decoration: none;
}
.ib:hover { background: rgba(35, 39, 42, 0.07); color: var(--ink); }
.ib[aria-pressed="true"] { background: rgba(47, 143, 140, 0.13); color: #1f6e6b; }
/* teal means read-aloud only. The page-turn sound toggle shows its state by its icon alone (speaker with waves /
   speaker struck through) and aria-pressed, never by a grey pressed square that looked stuck (reader review R12) */
#btn-sound[aria-pressed="true"] { background: transparent; color: #3c4043; }
#btn-sound[aria-pressed="true"]:hover { background: rgba(35, 39, 42, 0.07); color: var(--ink); }
#btn-sound.muted { color: var(--muted); }
.ib:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.ib[hidden] { display: none; }
.ib svg { width: 21px; height: 21px; stroke: currentColor; fill: none; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round; }
#btn-sound .mute { display: none; }
#btn-sound.muted .wave { display: none; }
#btn-sound.muted .mute { display: inline; }
.buy-pill { margin-left: 6px; padding: 7px 14px; border-radius: 999px; background: var(--ink); color: #fff;
  text-decoration: none; font-size: 13px; font-weight: 600; white-space: nowrap; }

/* ---------- stage ---------- */
.stage { position: relative; flex: 1 1 auto; min-height: 0; padding: 22px 72px 10px; }
.book-host { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 52px; height: 88px; border: 0; background: transparent; cursor: pointer; color: #55534d;
  display: flex; align-items: center; justify-content: center; border-radius: 10px;
}
.arrow:hover { color: var(--ink); background: rgba(35, 39, 42, 0.05); }
.arrow:disabled { opacity: 0.2; cursor: default; background: transparent; }
.arrow svg { width: 34px; height: 34px; stroke: currentColor; fill: none; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.arrow.prev { left: 10px; } .arrow.next { right: 10px; }

/* book (StPageFlip): autoSize is off, so the book fills the stage and the library fits the pages inside */
#book { position: relative; z-index: 1; width: 100%; height: 100%; }
#book .stf__wrapper { position: relative; width: 100%; height: 100%; }
.page { background: var(--paper); overflow: hidden; }
.page img { width: 100%; height: 100%; display: block; object-fit: contain; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.hot { position: absolute; display: block; border-radius: 2px; z-index: 3; }
.hot:hover { background: rgba(47, 143, 140, 0.14); }

/* spine shading and outer-edge light */
.page::after { content: ''; position: absolute; top: 0; bottom: 0; width: 9%; pointer-events: none; z-index: 2; }
.page.--left::after { right: 0; background: linear-gradient(to left, rgba(0,0,0,.16), rgba(0,0,0,.05) 35%, rgba(0,0,0,0)); }
.page.--right::after { left: 0; background: linear-gradient(to right, rgba(0,0,0,.16), rgba(0,0,0,.05) 35%, rgba(0,0,0,0)); }
.page.--left::before, .page.--right::before { content: ''; position: absolute; top: 0; bottom: 0; width: 2%; pointer-events: none; z-index: 2; }
.page.--left::before { left: 0; background: linear-gradient(to right, rgba(0,0,0,.05), rgba(0,0,0,0)); }
.page.--right::before { right: 0; background: linear-gradient(to left, rgba(0,0,0,.05), rgba(0,0,0,0)); }

/* depth: drop shadow and page-edge stacks (positioned by viewer.js) */
.depth { position: absolute; display: none; pointer-events: none; }
.depth.shadow { z-index: 0; border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(60, 45, 25, 0.06), 0 24px 50px -10px rgba(60, 45, 25, 0.34), 0 6px 14px rgba(60, 45, 25, 0.16); }
.depth.edgeL, .depth.edgeR { z-index: 2; transition: opacity .15s;
  background: repeating-linear-gradient(to right, #fdfcf9 0 1px, #dcd5c9 1px 2px); }
.depth.edgeL { border-radius: 2px 0 0 2px; box-shadow: inset -2px 0 3px rgba(0,0,0,.12); }
.depth.edgeR { border-radius: 0 2px 2px 0; box-shadow: inset 2px 0 3px rgba(0,0,0,.12); }
.book-host.flipping .depth.edgeL, .book-host.flipping .depth.edgeR { opacity: 0; }
/* a closed book is a hardcover, as on the shelf (8 Nov 2026): the shelf's hinge crease on the cover's spine side, and a
   faint board edge; viewer.js insets the page block 3px top and bottom so the boards overhang it */
.depth.board { z-index: 3; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.depth.board.front { border-radius: 1px 3px 3px 1px;
  background: linear-gradient(to right, rgba(0,0,0,.30), rgba(255,255,255,.22) 2.8%, rgba(0,0,0,.10) 5.25%, rgba(0,0,0,0) 7%); }
.depth.board.back { border-radius: 3px 1px 1px 3px;
  background: linear-gradient(to left, rgba(0,0,0,.30), rgba(255,255,255,.22) 2.8%, rgba(0,0,0,.10) 5.25%, rgba(0,0,0,0) 7%); }
.book-host.flipping .depth.board { opacity: 0; }

/* reader review R13: a cover shown alone sits in the middle (viewer.js sets --alone and slides it as the book opens) */
#book, .book-host > .depth { transform: translateX(var(--alone, 0px)); }
.book-host.slide #book, .book-host.slide > .depth { transition: transform .45s ease; }
@media (prefers-reduced-motion: reduce) { .book-host.slide #book, .book-host.slide > .depth { transition: none; } }
/* tablets: First / Last page, Share and Download wait behind "More tools", as on phones */
@media (min-width: 641px) and (min-height: 501px) and (pointer: coarse) {
  .vtop #btn-more { display: inline-flex; }
  .vtools #btn-first, .vtools #btn-last, .vtools .vsep, .vtools #btn-share, .vtools #btn-dl { display: none; }
  .vtools.more-open #btn-first, .vtools.more-open #btn-last, .vtools.more-open #btn-share,
  .vtools.more-open #btn-dl:not([hidden]) { display: inline-flex; }
}

/* cards (Swiper "cards" effect) */
.deck { overflow: visible; }
.deck .card { border-radius: 14px; overflow: hidden; background: var(--paper);
  box-shadow: 0 0 0 1px rgba(60, 45, 25, 0.06), 0 18px 40px -12px rgba(60, 45, 25, 0.36), 0 3px 10px rgba(60, 45, 25, 0.14); }
.deck .card img { width: 100%; height: 100%; display: block; object-fit: cover; user-select: none; pointer-events: none; }

/* end-of-title panel */
.end-panel {
  position: absolute; right: 24px; bottom: 18px; z-index: 6; width: min(320px, calc(100% - 48px));
  background: rgba(255, 255, 255, 0.94); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 16px; box-shadow: 0 12px 30px rgba(60, 45, 25, 0.18);
}
.end-panel[hidden] { display: none; }
.end-panel .kicker { margin: 0 0 10px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.end-next { display: flex; gap: 12px; align-items: center; text-decoration: none; }
.end-next img { width: 56px; border-radius: 2px; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.end-next strong { display: block; font-family: "Caladea", Georgia, serif; font-size: 19px; font-weight: 500; line-height: 1.2; }
.end-next span span { display: block; font-size: 13px; color: var(--accent); margin-top: 4px; }
.end-back { display: block; margin-top: 10px; font-size: 13px; color: var(--muted); }

/* ---------- bottom bar ---------- */
.vbottom {
  height: var(--bottom-h); flex: 0 0 var(--bottom-h);
  display: grid; grid-template-columns: 120px minmax(0, 1fr) 120px; align-items: center; gap: 16px; padding: 0 18px;
}
.vbottom .num { font-size: 14px; font-variant-numeric: tabular-nums; color: #4a4843; white-space: nowrap; }
.vbottom .vb-right { display: flex; justify-content: flex-end; }
#range {
  width: min(560px, 100%); justify-self: center; height: 18px; background: transparent;
  -webkit-appearance: none; appearance: none;
}
#range::-webkit-slider-runnable-track { height: 2px; background: #9c9284; border-radius: 2px; }
#range::-moz-range-track { height: 2px; background: #9c9284; border-radius: 2px; }
#range::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -6px; border-radius: 50%;
  background: #fff; border: 2px solid #5c5a54; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
#range::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid #5c5a54; }

/* ---------- drawers ---------- */
.drawer {
  position: fixed; top: var(--top-h); bottom: 0; left: 0; z-index: 25;
  width: min(360px, 90vw); background: #fffdf9; border-right: 1px solid var(--line);
  box-shadow: 8px 0 30px rgba(60, 45, 25, 0.16); transform: translateX(-105%);
  transition: transform .22s ease, visibility 0s linear .22s; display: flex; flex-direction: column;
  visibility: hidden;     /* a closed drawer is out of the Tab order and hidden from screen readers */
}
.drawer.open { transform: none; visibility: visible; transition: transform .22s ease; }
@media (prefers-reduced-motion: reduce) { .drawer, .drawer.open { transition: none; } }
.drawer header { display: flex; align-items: center; justify-content: space-between; padding: 10px 10px 10px 18px;
  border-bottom: 1px solid var(--line); font-weight: 600; font-size: 15px; }
.drawer .body { overflow: auto; padding: 8px 0 24px; }
.toc a { display: flex; justify-content: space-between; gap: 12px; padding: 8px 18px; text-decoration: none;
  font-family: "Caladea", Georgia, serif; font-size: 17px; line-height: 1.3; }
.toc a.l2 { padding-left: 34px; font-size: 16px; color: #45433e; }
.toc a span:last-child { color: var(--muted); font-family: "Inter", sans-serif; font-size: 12px; padding-top: 3px; }
.toc a:hover, .toc a.here { background: #f1ebe0; }
.thumbs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; padding: 14px 18px !important; }
.thumbs a { text-decoration: none; color: var(--muted); font-size: 12px; text-align: center; }
.thumbs img { width: 100%; display: block; background: #fff; aspect-ratio: var(--ratio); object-fit: cover;
  box-shadow: 0 1px 4px rgba(0,0,0,.18); margin-bottom: 4px; }
body.mode-cards .thumbs img { border-radius: 8px; }
.thumbs a.here img { outline: 3px solid var(--accent); outline-offset: 1px; }
.titles { padding: 0 0 24px !important; }
.title-steps { display: flex; justify-content: space-between; gap: 10px; padding: 12px 18px; border-bottom: 1px solid var(--line); font-size: 13px; }
.title-steps a { color: var(--accent); text-decoration: none; max-width: 48%; }
.title-row { display: flex; gap: 12px; align-items: center; padding: 10px 18px; text-decoration: none; }
.title-row:hover, .title-row.here { background: #f1ebe0; }
.title-row img { width: 44px; flex: 0 0 44px; aspect-ratio: var(--ratio); object-fit: cover; box-shadow: 0 1px 4px rgba(0,0,0,.2); border-radius: 2px; }
.title-row strong { display: block; font-family: "Caladea", Georgia, serif; font-weight: 500; font-size: 17px; line-height: 1.2; }
.title-row span span { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; line-height: 1.35; }
.titles h3, .titles .h3 { margin: 18px 18px 6px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.shelf-link { display: flex; justify-content: space-between; padding: 8px 18px; text-decoration: none; font-size: 14px; }
.shelf-link:hover { background: #f1ebe0; }
.shelf-link span { color: var(--muted); }

/* ---------- zoom ---------- */
.zoom { position: fixed; inset: 0; z-index: 50; background: rgba(250, 247, 241, 0.97); display: none; flex-direction: column; }
.zoom.open { display: flex; }
.zoom .zbar { display: flex; justify-content: flex-end; gap: 4px; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.zoom .zscroll { flex: 1 1 auto; overflow: auto; -webkit-overflow-scrolling: touch; }
.zoom .zpages { display: flex; justify-content: center; margin: 0 auto; padding: 16px; width: max-content; }
.zoom img { display: block; background: #fff; box-shadow: 0 6px 24px rgba(0,0,0,.15); }

/* ---------- text view ---------- */
.textview { flex: 1 1 auto; overflow: auto; background: #fffdf9; display: none; }
body.text-mode .textview { display: block; }
body.text-mode .stage, body.text-mode .vbottom { display: none; }
.textview .inner { max-width: 680px; margin: 0 auto; padding: 32px 24px 80px;
  font-family: "Caladea", Georgia, serif; font-size: 18px; line-height: 1.65; }
.textview h1 { font-family: "Caladea", Georgia, serif; font-weight: 500; font-size: 38px; margin: 0 0 12px; }
.textview article { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 22px; }
.textview .pg { font-family: "Inter", sans-serif; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; font-weight: 500; }
.textview p { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }   /* functional test 12 Nov 2026: PDF text joined by non-breaking spaces ran 650 px wide on an iPhone */

/* reader review R7: in the text view the Listen bar is opaque, and the text stops above it instead of scrolling
   underneath (the scrolling area ends at the bar; viewer.js keeps --lbar-h at the bar's height) */
body.text-mode { background: #fffdf9; }
body.text-mode .lbar { background: #fffdf9; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
body.text-mode.listening .textview { margin-bottom: calc(var(--lbar-h, 0px) + 20px + env(safe-area-inset-bottom, 0px)); }
body.text-mode .reading-tag { display: none; }     /* the page marker belongs to the book view */

.audio-bar { display: none; padding: 6px 12px; background: var(--bar); border-bottom: 1px solid var(--line); }
.audio-bar.open { display: block; }
.audio-bar audio { width: 100%; }

.toast { position: fixed; left: 50%; bottom: calc(var(--bottom-h) + 16px); transform: translateX(-50%);
  background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; font-size: 14px;
  opacity: 0; transition: opacity .2s; pointer-events: none; z-index: 60; }
.toast.show { opacity: 1; }
/* while listening the note sits above the Listen bar, and above its "Tap to play" label (R5, 4 Nov 2026) */
body.listening .toast { bottom: calc(var(--bottom-h) + var(--lbar-h, 0px) + 22px); }
body.text-mode.listening .toast { bottom: calc(var(--lbar-h, 0px) + 24px + env(safe-area-inset-bottom, 0px)); }
body.listening:has(.lbar.await-tap) .toast { bottom: calc(var(--bottom-h) + var(--lbar-h, 0px) + 64px); }
body.text-mode.listening:has(.lbar.await-tap) .toast { bottom: calc(var(--lbar-h, 0px) + 66px + env(safe-area-inset-bottom, 0px)); }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .vtop { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: var(--top-h) 44px; height: auto; flex-basis: auto; padding: 0 6px 0 12px; }
  .vtools { grid-row: 2; grid-column: 1 / -1; overflow-x: auto; justify-content: flex-start; border-top: 1px solid var(--line); margin: 0 -6px 0 -12px; padding: 0 6px; scrollbar-width: none; }
  .vtools::-webkit-scrollbar { display: none; }
  .vcrumbs a, .vcrumbs .sep { display: none; }
  .drawer { top: calc(var(--top-h) + 44px); }
  .stage { padding: 10px 6px 6px; }
  .arrow { display: none; }
  .end-panel { right: 12px; bottom: 10px; }
  .vbottom { grid-template-columns: 80px minmax(0, 1fr) 88px; gap: 8px; padding: 0 8px 0 12px; }
}

/* the page template wraps the reader in <main>: let it fill the space between the bars */
body.viewer > main { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; position: relative; }

/* first / last page buttons */
.vsep { width: 1px; height: 22px; background: var(--line); margin: 0 6px; flex: 0 0 auto; }
.ib:disabled { opacity: .3; cursor: default; background: transparent; }

/* links on the page: a faint tint so they can be found on touch screens too */
.hot { background: rgba(47, 143, 140, 0.07); cursor: pointer; }
.hot:hover, .hot:focus-visible { background: rgba(47, 143, 140, 0.18); outline: none; }
.hot.ext .ul { position: absolute; left: 0; right: 0; border-bottom: 1px solid rgba(47, 143, 140, 0.6); pointer-events: none; }

.end-order { display: block; margin-top: 12px; padding: 9px 12px; background: #f46530; color: #4a1603; text-decoration: none; font-weight: 600; font-size: 14px; border-radius: 6px; }
.end-order:hover { filter: brightness(1.05); }
.buy-pill:hover { background: #3a3f42; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* reader review R8 (second version): "Read as text" in the space after the title, where the title shows.
   There it takes the place of the text button in the toolbar. From 901 to 1280 px the toolbar shares one row with the
   title and leaves it no room, so the toolbar keeps its text button there, as phones keep their "Aa". */
.read-text { display: none; flex: 0 0 auto; align-items: center; gap: 7px; min-height: 44px; padding: 0 12px; margin-left: 2px;
  border: 0; border-radius: 22px; background: transparent; color: var(--muted); cursor: pointer;
  font: 500 14px system-ui, -apple-system, sans-serif; white-space: nowrap; }
.read-text svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.read-text:hover { background: rgba(35, 39, 42, .06); color: var(--ink); }
.read-text:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.textview [tabindex="-1"]:focus { outline: none; }      /* where the button lands: a reading place, not a control */
@media (min-width: 1281px), (min-width: 641px) and (max-width: 900px) and (min-height: 501px),
       (min-width: 641px) and (max-width: 900px) and (orientation: portrait) {
  .read-text { display: inline-flex; }
  .vtools #btn-text { display: none; }
}

/* ---------- refinements from the 26 Oct 2026 site review ---------- */
.vcrumbs .cur { font-family: "Caladea", Georgia, serif; font-size: 16px; font-weight: 700; }
.vtop .m-only { display: none; }
body.mode-cards .stage { overflow: hidden; }          /* the stacked deck must not push the page sideways */
/* phones (and phones on their side): the main tools in one row, the rest behind "More tools" */
@media (max-width: 640px), (max-height: 500px) and (orientation: landscape) {
  .vtop .m-only { display: inline-flex; }
  .vtools .m-extra, .vtools .buy-pill { display: none; }
  .vtools.more-open { flex-wrap: wrap; overflow: visible; }
  .vtools.more-open .m-extra:not([hidden]) { display: inline-flex; }   /* a hidden button stays hidden (R2, 4 Nov 2026) */
  .vtools.more-open .vsep { display: none; }
  .vtop { grid-template-rows: var(--top-h) auto; }
  .vtools { justify-content: center; }
  .vright .buy-pill { display: inline-flex; align-items: center; height: 34px; padding: 0 12px; font-size: 13px; line-height: 1; white-space: nowrap; }
}
/* phones on their side: one slim bar on top so the page gets the height */
@media (max-height: 500px) and (orientation: landscape) {
  :root { --top-h: 44px; --bottom-h: 40px; }
  .vtop { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: 44px; }
  .vcrumbs { display: none; }
  .vtools { grid-row: 1; grid-column: 2; border-top: 0; margin: 0; }
  .vtools.more-open { position: absolute; top: 44px; left: 0; right: 0; background: #fffdf9; border-bottom: 1px solid var(--line); }
  body.tools-more .stage { padding-top: 50px; }          /* the open row pushes the page down instead of lying over it (R7) */
  .drawer { top: 44px; }
  .stage { padding: 4px 6px 2px; }
}

/* ---------- read aloud (Listen): button, start panel, player bar, "Reading" marker — approved mock-ups 2026-10-27 ---------- */
.listen-pill { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px 0 11px; margin-left: 6px; border-radius: 999px;
  border: 1.5px solid var(--accent); color: #1f6e6b; background: #fff; font: 600 14px/1 var(--sans, system-ui, sans-serif); cursor: pointer; white-space: nowrap; flex: 0 0 auto; }
.listen-pill svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.listen-pill:hover { background: rgba(47, 143, 140, 0.08); }
.listen-pill[aria-pressed="true"], .listen-pill[aria-expanded="true"] { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; }
.listen-pill:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* reader review R4: the Listen button answers a 44px tap (the pill keeps its size; the extra is invisible) */
/* reader review T3: checked 3 Nov 2026 in WebKit; the pill's box is 89 x 32 on a phone, but this hit area answers 95 x 44 there and on desktop */
.listen-pill { position: relative; }
.listen-pill::before { content: ""; position: absolute; left: -3px; right: -3px; top: 50%; height: 44px; transform: translateY(-50%); }
.lpop { position: fixed; z-index: 70; width: 300px; background: #fffdf9; border: 1px solid rgba(35, 39, 42, .14); border-radius: 14px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .18); padding: 16px 16px 14px; font: 14px/1.45 system-ui, -apple-system, sans-serif; color: var(--ink); }
.lpop h2 { margin: 0 0 2px; font: 700 16px/1.25 "Caladea", Georgia, serif; }
.lpop .sub { color: #6b6f72; font-size: 13px; margin: 0 0 6px; }
.lpop button { display: block; width: 100%; text-align: left; margin-top: 8px; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(35, 39, 42, .14);
  background: #fff; font: 600 14px system-ui, sans-serif; color: var(--ink); cursor: pointer; }
.lpop button:hover { border-color: var(--accent); }
.lpop button.pri { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; }
.lpop button span { display: block; font-weight: 400; font-size: 12.5px; opacity: .85; }
.lpop button[hidden] { display: none; }
.lpop .fine { margin: 12px 0 0; font-size: 12px; color: #6b6f72; }
.lbar { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--bottom-h) + 10px); z-index: 55; width: min(760px, calc(100vw - 32px));
  background: rgba(255, 253, 249, .97); border: 1px solid rgba(35, 39, 42, .14); border-radius: 16px; box-shadow: 0 10px 32px rgba(0, 0, 0, .16);
  padding: 10px 14px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; font: 13px system-ui, -apple-system, sans-serif; color: var(--ink); }
.lbar[hidden] { display: none; }
/* full screen while listening: the page sits above the listening bar, as on phones (viewer.js sets .fs and --lbar-h) */
body.fs.listening .stage { padding-bottom: calc(var(--lbar-h, 0px) + 22px); }
.lbar .ctl { display: flex; align-items: center; gap: 4px; }
.lbar .cb { width: 38px; height: 38px; border-radius: 50%; border: 0; background: transparent; display: grid; place-items: center; color: var(--ink); position: relative; cursor: pointer; padding: 0; }
.lbar .cb:hover { background: rgba(35, 39, 42, .07); }
.lbar .cb svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.7; }
.lbar .cb small { position: absolute; font: 700 8px system-ui; top: 15px; left: 0; right: 0; text-align: center; pointer-events: none; }
.lbar .play { width: 46px; height: 46px; background: var(--accent-deep); color: #fff; }
.lbar .play:hover { background: #185a57; }
.lbar .play svg { fill: #fff; stroke: none; width: 20px; height: 20px; }
.lbar .play .i-play { display: none; } .lbar.paused .play .i-play { display: block; } .lbar.paused .play .i-pause { display: none; }
.lbar .cb:focus-visible, .lbar .spd:focus-visible, .lbar .x:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lbar .mid { min-width: 0; }
.lbar .mid .t { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.lbar .mid .t b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lbar .mid .t span { color: #6b6f72; white-space: nowrap; font-variant-numeric: tabular-nums; }
.lbar .trk { position: relative; height: 16px; }
.lbar .trk #lb-ticks { position: absolute; left: 0; right: 0; top: 5px; height: 6px; border-radius: 3px; background: rgba(35, 39, 42, .12); overflow: hidden; }
.lbar .trk #lb-ticks i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--accent); border-radius: 3px; }
.lbar .trk #lb-ticks u { position: absolute; top: 0; width: 2px; height: 6px; background: rgba(35, 39, 42, .28); }
.lbar .trk input { position: absolute; inset: 0; width: 100%; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
.lbar .trk input::-webkit-slider-runnable-track { height: 16px; background: transparent; }
.lbar .trk input::-moz-range-track { height: 16px; background: transparent; }
.lbar .trk input::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: 1px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); }
.lbar .trk input::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); }
.lbar .trk input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.lbar .rt { display: flex; align-items: center; gap: 8px; }
.lbar .vol { display: none; align-items: center; gap: 4px; }
@media (hover: hover) and (pointer: fine) and (min-width: 901px) { .lbar .vol:not([hidden]) { display: flex; } }
.lbar .vb { width: 30px; height: 30px; border: 0; border-radius: 50%; background: none; color: #4b4f52; cursor: pointer; display: grid; place-items: center; padding: 0; }
.lbar .vb:hover { background: rgba(35, 39, 42, .06); color: var(--ink); }
.lbar .vb svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lbar .vb .spk { fill: currentColor; stroke-width: 1.2; }
.lbar .vb .off, .lbar .vol.muted .wav { display: none; }
.lbar .vol.muted .off { display: inline; }
.lbar .vol input { width: 80px; accent-color: var(--accent); cursor: pointer; margin: 0; }
.lbar .vb:focus-visible, .lbar .vol input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lbar .spd { border: 1px solid rgba(35, 39, 42, .18); border-radius: 8px; background: #fff; padding: 6px 9px; font: 600 13px system-ui; color: var(--ink); cursor: pointer; min-width: 46px; }
.lbar .tog { display: flex; align-items: center; gap: 6px; color: #4b4f52; font-size: 12.5px; white-space: nowrap; cursor: pointer; }
.lbar .tog input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.lbar .tog i { width: 30px; height: 18px; border-radius: 9px; background: rgba(35, 39, 42, .25); position: relative; transition: background .15s; }
.lbar .tog i:after { content: ""; position: absolute; left: 2px; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: left .15s; }
.lbar .tog input:checked + i { background: var(--accent); }
.lbar .tog input:checked + i:after { left: 14px; }
.lbar .tog input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 2px; }
.lbar .x { display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 11px 0 9px; border-radius: 999px; border: 1.5px solid rgba(35, 39, 42, .28);
  background: #fff; color: var(--ink); font: 600 13px system-ui, sans-serif; cursor: pointer; white-space: nowrap; }
.lbar .x:hover { border-color: var(--ink); background: rgba(35, 39, 42, .05); }
.lbar .x svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2.2; }

/* reader review R6: speed and sleep timer panel, opened from the speed button in the Listen bar */
.spop { position: fixed; z-index: 72; width: min(344px, calc(100vw - 24px)); background: #fffdf9; border: 1px solid rgba(35, 39, 42, .14); border-radius: 14px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .18); padding: 10px 14px 12px; font: 13px/1.4 system-ui, -apple-system, sans-serif; color: var(--ink); }
.spop[hidden] { display: none; }
.spop .h { margin: 4px 0 6px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.spop .row { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 8px; }
.spop button { min-height: 36px; padding: 0 9px; border-radius: 999px; border: 1px solid rgba(35, 39, 42, .16); background: #fff;
  font: 600 13px system-ui, sans-serif; color: var(--ink); cursor: pointer; font-variant-numeric: tabular-nums; }
.spop button:hover { border-color: var(--accent); }
.spop button[aria-pressed="true"] { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; }
.spop button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.spop .fine { margin: 0; color: #6b6f72; font-size: 12px; }
.spop .sp-speeds { display: grid; grid-template-columns: repeat(6, 1fr); }
.spop .sp-sleep { display: grid; grid-template-columns: repeat(4, 1fr); }
.spop .sp-speeds button, .spop .sp-sleep button { padding: 0 2px; } .spop .sp-sleep button:last-child { grid-column: 1 / -1; }
.spop .fine:empty { display: none; }
@media (pointer: coarse) { .spop button { min-height: 44px; } }
.lbar .spd.sleeping::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 5px; border-radius: 50%;
  background: var(--accent); vertical-align: middle; }
.reading-tag { position: fixed; z-index: 30; background: var(--accent-deep); color: #fff; font: 600 11.5px system-ui, sans-serif; padding: 3px 9px 3px 8px; border-radius: 999px;
  display: flex; align-items: center; gap: 5px; box-shadow: 0 2px 8px rgba(0, 0, 0, .15); pointer-events: none; }
.reading-tag[hidden] { display: none; }
.reading-tag:before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; }
.reading-tag:after { content: ""; position: absolute; left: -8px; top: calc(100% + 2px); width: var(--edge, 0px); height: 3px; border-radius: 2px; background: var(--accent-deep); }
body.listening .end-panel { display: none; }
@media (max-width: 900px) {
  .listen-pill { order: -1; margin: 0 6px 0 0; height: 32px; padding: 0 12px 0 9px; font-size: 13.5px; }
}
@media (max-width: 640px) {
  .lbar { grid-template-columns: auto 1fr auto; grid-template-areas: "mid mid mid" "spd ctl tog"; gap: 6px 8px; bottom: calc(var(--bottom-h) + 6px); padding: 10px 12px 8px; }
  .lbar .mid { padding-right: 38px; }
  .lbar .mid { grid-area: mid; }
  .lbar .ctl { grid-area: ctl; justify-content: center; gap: 10px; }
  .lbar .rt { display: contents; }
  .lbar .spd { grid-area: spd; }
  .lbar .tog { grid-area: tog; font-size: 12px; }
  .lbar .x { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; padding: 0; justify-content: center; font-size: 0; gap: 0; }
  .lbar .x svg { width: 16px; height: 16px; }
  .lpop { left: 16px !important; right: 16px; width: auto; }
  /* the page sits above the listening bar instead of under it (viewer.js fitBar sets --lbar-h) */
  body.listening .stage { padding-bottom: calc(var(--lbar-h, 0px) + 26px); }
}

/* reader review R11: phones while listening. The Listen bar has its own seek and shows the page, so the page-number row
   beneath it (a second slider) gives way, the bar moves to the foot of the screen and the page gains that height */
@media (max-width: 640px) {
  body.listening .vbottom { display: none; }
  body.listening .lbar { bottom: calc(8px + env(safe-area-inset-bottom, 0px)); }
  body.listening .stage { padding-bottom: calc(var(--lbar-h, 0px) + 20px + env(safe-area-inset-bottom, 0px)); }
}
/* phones: the Reading tag sits on the page's top edge at the right (no room above the page); its line runs along that edge */
.reading-tag.inside { font-size: 10px; padding: 1px 7px 1px 6px; gap: 4px; }
.reading-tag.inside:before { width: 6px; height: 6px; }
.reading-tag.inside:after { left: auto; right: -6px; top: calc(50% - 1.5px); z-index: -1; }
@media (prefers-reduced-motion: reduce) { .lbar .tog i, .lbar .tog i:after { transition: none; } }
/* reader review T1: a link ending in #listen opens the bar paused (no autoplay); "Tap to play" above Play until pressed */
.lbar .lb-hint { position: absolute; bottom: calc(100% + 10px); transform: translateX(-50%); background: var(--ink); color: #fff; padding: 6px 12px;
  border-radius: 999px; font: 600 13px/1.2 system-ui, -apple-system, sans-serif; white-space: nowrap; pointer-events: none; box-shadow: 0 6px 18px rgba(0, 0, 0, .18); }
.lbar .lb-hint::after { content: ""; position: absolute; left: 50%; top: 100%; margin-left: -6px; border: 6px solid transparent; border-top-color: var(--ink); }
/* the glow round Play was removed 4 Nov 2026 (Gerhard): Play looks the same however the bar was opened */
@media (prefers-color-scheme: dark) {
  body.text-mode .lbar .lb-hint { background: #e7e2d9; color: #1e1d1b; } body.text-mode .lbar .lb-hint::after { border-top-color: #e7e2d9; }
}

/* ---------- style review of 31 Oct 2026 (docs/reviews/2026-10-31 Site style review.md) ---------- */
:root { color-scheme: light; }    /* 3.5 */

/* 3.4 "Order print copy" in the site's colour for ordering: navy, not near-black */
.buy-pill { background: #1b262c; }
.buy-pill:hover { background: #24323a; }

/* 5.1 the page sits above the Listen bar at every width (viewer.js sets --lbar-h); phones keep their own rule above */
@media (min-width: 641px) {
  body.listening .stage { padding-bottom: calc(var(--lbar-h, 0px) + 22px); }
  .lbar { width: min(860px, calc(100vw - 32px)); }
}

/* reader review R9 (second version): a phone on its side (844 x 390) keeps the double page; the Reading tag sits on
   the page's top edge as on phones, and while listening the page-number row gives way to a slimmer Listen bar at the foot of the screen */
@media (max-height: 500px) and (orientation: landscape) {
  body.listening .vbottom { display: none; }
  body.listening .stage { padding-top: 12px; padding-bottom: calc(var(--lbar-h, 0px) + 16px + env(safe-area-inset-bottom, 0px)); }
  .lbar { bottom: calc(6px + env(safe-area-inset-bottom, 0px)); padding: 5px 12px; gap: 12px; }
  .lbar .mid .t { margin-bottom: 2px; }
  .lbar .play { width: 42px; height: 42px; }
}
/* the chapter title gets the line; the time drops below it when both do not fit, instead of "Ch. 1 · …" */
.lbar .mid .t { flex-wrap: wrap; row-gap: 2px; }
.lbar .mid .t b { flex: 1 1 auto; min-width: 0; white-space: normal; line-height: 1.3;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }   /* two lines before it is cut */
.lbar .mid .t span { flex: none; margin-left: auto; }

/* 5.4 card decks: a light shadow on every card, the full one on the card in front only (no dark slab) */
.deck .card { box-shadow: 0 0 0 1px rgba(60, 45, 25, .07), 0 2px 6px rgba(60, 45, 25, .10); }
.deck .card.swiper-slide-active { box-shadow: 0 0 0 1px rgba(60, 45, 25, .06), 0 18px 40px -12px rgba(60, 45, 25, .36), 0 3px 10px rgba(60, 45, 25, .14); }

/* 5.5 the house teal focus ring in the drawers and the end panel (WebKit's blue was the only off-palette colour) */
.toc a:focus-visible, .thumbs a:focus-visible, .title-row:focus-visible, .shelf-link:focus-visible,
.title-steps a:focus-visible, .end-next:focus-visible, .end-back:focus-visible, .end-order:focus-visible,
.drawer .close:focus-visible, .lpop button:focus-visible, .vcrumbs a:focus-visible, .mono:focus-visible {
  outline: 2px solid var(--accent); outline-offset: -2px; }
.end-next:focus-visible, .end-order:focus-visible, .mono:focus-visible { outline-offset: 2px; }

/* 5.6 on-page links: no tint for a mouse until hovered; a lighter tint on touch screens */
@media (hover: hover) { .hot { background: transparent; } }
@media (hover: none) { .hot { background: rgba(47, 143, 140, .045); } }
.hot:hover, .hot:focus-visible { background: rgba(47, 143, 140, .18); }

/* 5.8 desktop: the drawer pushes the book across instead of covering the left page (viewer.js sets drawer-open) */
@media (min-width: 1200px) {
  body.drawer-open .stage { padding-left: 380px; }
  body.drawer-open .arrow.prev { left: 370px; }
}

/* 5.9 first / last page buttons on touch screens only: a mouse has the slider and the Home / End keys */
/* (5.9 reverted at Gerhard's request, 31 Oct: First / Last page stay on every screen) */

/* 8.1 contrast: page slider track 3:1 or better, "Start reading →" 4.5:1 or better, ended arrows still visible */
#range::-webkit-slider-runnable-track { background: #665c50; }   /* 3.3:1 on the greige ground (#7d7365 was 2.4:1 there) */
#range::-moz-range-track { background: #665c50; }
.end-next span span { color: var(--accent-deep); }
.arrow:disabled { opacity: .35; }

/* 8.2 tap targets on phones: Listen bar close and speed buttons 40px */
.lbar .spd { min-height: 40px; }
@media (max-width: 640px) {
  .lbar .x { width: 40px; height: 40px; top: 4px; right: 4px; }
  .lbar .mid { padding-right: 44px; }
}

/* reader review R5: every control in the reader answers a 44px tap on touch screens. The visible marks keep their size:
   the icons, the 2px slider tracks and the switch are drawn as before, only the area that takes the tap grows. */
@media (pointer: coarse) {
  .ib { width: 44px; height: 44px; }
  .mono { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
  .vcrumbs a { padding: 13px 0; margin: -13px 0; }
  #range { height: 44px; }
  .lbar .cb:not(.play) { width: 44px; height: 44px; }
  .lbar .cb small { top: 18px; }
  .lbar .spd { min-height: 44px; }
  .lbar .tog { min-height: 44px; }
  /* the seek slider takes taps 14px above and below its 16px track; the buttons below it still win where they meet */
  .lbar .trk input { top: -14px; bottom: -14px; height: auto; }
  .lbar .trk input::-webkit-slider-runnable-track { height: 44px; }
  .lbar .trk input::-webkit-slider-thumb { margin-top: 15px; }
  .lbar .cb, .lbar .spd, .lbar .tog { position: relative; z-index: 2; }
  .lbar .x { z-index: 2; }
}
@media (pointer: coarse) and (max-width: 640px) {
  .lbar .x { width: 44px; height: 44px; top: 2px; right: 2px; }
}

/* 5.3 text view: "Aa" in the phone's main row (book mode), headings from the contents, a one-time tip */
.ib .aa { display: none; font: 600 16px/1 "Caladea", Georgia, serif; letter-spacing: .01em; }
@media (max-width: 640px), (max-height: 500px) and (orientation: landscape) {
  #btn-text svg { display: none; }
  #btn-text .aa { display: inline; }
}
.textview h3 { font-family: "Caladea", Georgia, serif; font-weight: 700; font-size: 22px; line-height: 1.25; margin: 14px 0 10px; color: var(--ink); }
.textview p + p { margin-top: .8em; }
/* reader review D1: a card's Scripture in the text view, set apart as on the card */
.textview p.q { font-style: italic; border-left: 2px solid rgba(150, 140, 125, .45); padding-left: 14px; margin: .8em 0; }
.textview p.q .ref { display: block; font: 500 12px/1.6 "Inter", sans-serif; letter-spacing: .06em; text-transform: uppercase; opacity: .7; margin-top: 4px; }
.tv-tip { position: fixed; z-index: 65; max-width: 250px; background: var(--ink); color: #fff; border-radius: 10px; padding: 10px 12px 10px 14px;
  font: 14px/1.4 system-ui, -apple-system, sans-serif; box-shadow: 0 8px 24px rgba(0, 0, 0, .2); display: flex; gap: 10px; align-items: flex-start; }
.tv-tip[hidden] { display: none; }
.tv-tip::before { content: ''; position: absolute; top: -6px; left: var(--arrow, 24px); width: 12px; height: 12px; background: var(--ink); transform: rotate(45deg); }
.tv-tip button { flex: none; border: 0; background: rgba(255, 255, 255, .16); color: #fff; border-radius: 8px; padding: 6px 10px; min-height: 32px; font: 600 13px system-ui, sans-serif; cursor: pointer; }

/* text view: the listening bar offers "Auto-scroll" in place of "Turn pages" (Gerhard, 31 Oct 2026) */
body:not(.text-mode) .lbar .tog-scroll { display: none; }
body.text-mode .lbar .tog-turn { display: none; }

/* reader review R14 (optional): the text view ("Aa") follows the device's dark mode, with its toolbar and Listen bar.
   The page-flip view keeps its cream pages and greige ground whatever the device's setting. */
@media (prefers-color-scheme: dark) {
  body.text-mode { --night: #1e1d1b; --night-ink: #e7e2d9; --night-muted: #a9a398; --night-line: rgba(255, 255, 255, .12);
    background: var(--night); color-scheme: dark; }
  body.text-mode .textview { background: var(--night); color: var(--night-ink); }
  body.text-mode .textview h1, body.text-mode .textview h3 { color: #f3eee5; }
  body.text-mode .textview .pg { color: var(--night-muted); }
  body.text-mode .textview article { border-top-color: var(--night-line); }
  body.text-mode .vtop { background: rgba(38, 37, 34, .96); border-bottom-color: var(--night-line); color: var(--night-ink); }
  body.text-mode .vtools { border-top-color: var(--night-line); }
  body.text-mode .mono img { filter: invert(.92); }
  body.text-mode .vcrumbs a, body.text-mode .read-text { color: var(--night-muted); }
  /* the crumbs at night answer the pointer as by day, a step brighter with the underline; the day rule's dark ink made them vanish
     against the dark header (Gerhard, 26 Nov 2026, "Library / Bible" on 2 Chronicles 5) */
  body.text-mode .vcrumbs a:hover, body.text-mode .vcrumbs .trail a:hover { color: var(--night-ink); }
  body.text-mode .read-text:hover { background: rgba(255, 255, 255, .08); color: #fff; }
  body.text-mode .ib, body.text-mode #btn-sound[aria-pressed="true"] { color: #d8d2c7; }
  body.text-mode #btn-sound.muted { color: var(--night-muted); }
  body.text-mode .ib:hover { background: rgba(255, 255, 255, .08); color: #fff; }
  body.text-mode .ib[aria-pressed="true"]:not(#btn-sound) { background: rgba(47, 143, 140, .28); color: #9fdcd8; }
  body.text-mode .listen-pill { background: transparent; border-color: #3ea7a3; color: #9fdcd8; }
  body.text-mode .listen-pill[aria-pressed="true"], body.text-mode .listen-pill[aria-expanded="true"] { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; }
  body.text-mode .lbar { background: #2a2926; border-color: var(--night-line); color: var(--night-ink); box-shadow: 0 10px 32px rgba(0, 0, 0, .5); }
  body.text-mode .lbar .cb, body.text-mode .lbar .vb { color: var(--night-ink); }
  body.text-mode .lbar .cb:not(.play):hover { background: rgba(255, 255, 255, .08); }
  body.text-mode .lbar .mid .t span { color: var(--night-muted); }
  body.text-mode .lbar .trk #lb-ticks { background: rgba(255, 255, 255, .16); }
  body.text-mode .lbar .trk #lb-ticks u { background: rgba(255, 255, 255, .3); }
  body.text-mode .lbar .spd, body.text-mode .lbar .x { background: transparent; border-color: rgba(255, 255, 255, .28); color: var(--night-ink); }
  body.text-mode .lbar .tog { color: #cfc9be; }
  body.text-mode .lbar .tog i { background: rgba(255, 255, 255, .25); }
  body.text-mode .lbar .tog input:checked + i { background: var(--accent); }
  body.text-mode .buy-pill { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }
  /* reader review T2: the speed/sleep panel and the Listen menu take the same night colours as the Listen bar */
  body.text-mode .spop, body.text-mode .lpop { background: #2a2926; border-color: var(--night-line); color: var(--night-ink); box-shadow: 0 14px 40px rgba(0, 0, 0, .5); }
  body.text-mode .spop .h, body.text-mode .spop .fine, body.text-mode .lpop .sub, body.text-mode .lpop .fine { color: var(--night-muted); }
  body.text-mode .spop button, body.text-mode .lpop button { background: transparent; border-color: rgba(255, 255, 255, .28); color: var(--night-ink); }
  body.text-mode .spop button:hover, body.text-mode .lpop button:hover { border-color: #3ea7a3; }
  body.text-mode .spop button[aria-pressed="true"], body.text-mode .lpop button.pri { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; }
}
/* reader review D2: the one-time hint for a phone on its side; centred if the Aa button is tucked away */
.tv-tip.side { max-width: 300px; }
.tv-tip.free { left: 50%; top: 64px; transform: translateX(-50%); }
.tv-tip.free::before { display: none; }

/* Gerhard, 5 Nov 2026: on every touch screen (iPads too) the text view is "Aa" in the option bar, as on the iPhone;
   the "Read as text" words beside the title stay for computers with a mouse */
@media (pointer: coarse) {
  .read-text { display: none; }
  .vtools #btn-text { display: inline-flex; }
  #btn-text svg { display: none; }
  #btn-text .aa { display: inline; }
}

/* ===== Website next steps (6 Nov 2026, staging) ===== */
/* D1: the Read next title shows its kind and length; a second pick is one quiet line */
.end-next span.end-meta { color: var(--muted); }
.end-also { display: block; margin-top: 10px; font-size: 13px; color: var(--ink); }
/* D4: on phones and small tablets the shelf stays visible, small, above the title, so a shared link shows the library behind it */
@media (max-width: 900px) {
  .vcrumbs { flex-direction: column; align-items: flex-start; gap: 0; line-height: 1.15; }
  .vcrumbs a { display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 0; margin: 0; }
  .vcrumbs .sep { display: none; }
  .vcrumbs .cur { max-width: 100%; }
}
@media (max-height: 500px) and (orientation: landscape) { .vcrumbs { display: none; } }

/* functional test 6 Nov 2026: at 320 px the tools are wider than the bar; auto margins centre them when they fit and
   let the row start at the left edge when they do not, so every button can be scrolled to */
@media (max-width: 640px), (max-height: 500px) and (orientation: landscape) {
  .vtools { justify-content: flex-start; }
  .vtools > :first-child { margin-left: auto; }
  .vtools > :last-child { margin-right: auto; }
}
/* the shelf link above the title gets a taller tap area (WCAG 2.5.8: 24 px) */
@media (max-width: 900px) { .vcrumbs a { padding: 6px 0 4px; margin: -6px 0 -4px; } }

/* Library in the breadcrumb (Gerhard, 9 Nov 2026; design review): "Library / Shelf" in small capitals above the title at
   every width, the pattern phones already had (D4). The title gets its own line, so long titles are no longer cut on
   desktop and iPad landscape. Below 360px only the shelf shows. The H still goes Home, the X still to the shelf. */
.vcrumbs { flex-direction: column; align-items: flex-start; gap: 1px; line-height: 1.15; }
.vcrumbs .trail { display: flex; gap: 6px; align-items: baseline; max-width: 100%; font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; white-space: nowrap; }
.vcrumbs .trail a { display: inline; font-size: inherit; color: var(--muted); padding: 0; margin: 0; text-decoration: none; }
.vcrumbs .trail a:hover { color: var(--ink); text-decoration: underline; }
.vcrumbs .tsep { color: #b5b0a6; letter-spacing: 0; }
.vcrumbs .cur { max-width: 100%; }
/* a tap area of at least 24 px at every width, the bar's layout unchanged (WCAG 2.5.8; functional test 6 and 12 Nov 2026) */
.vcrumbs .trail a { display: inline-block; padding: 7px 0 6px; margin: -7px 0 -6px; }
@media (max-width: 359px) { .vcrumbs .trail .lib, .vcrumbs .tsep { display: none; } }

/* Logo hover (10 Nov 2026, Gerhard): the H changes colour like the site's links, its own dark brown to their
   terracotta (#8a3412); in dark text mode, the toolbar icon tone #d8d2c7 to white. Drawn as a mask so it can recolour. */
.mono .mark { display: block; height: 28px; aspect-ratio: 256 / 188; background-color: #3b2208; transition: background-color .2s ease;
  -webkit-mask: url(/assets/img/monogram-black.png) center / contain no-repeat; mask: url(/assets/img/monogram-black.png) center / contain no-repeat; }
.mono:hover .mark, .mono:focus-visible .mark { background-color: #8a3412; }
@media (prefers-color-scheme: dark) {
  body.text-mode .mono .mark { background-color: #d8d2c7; }   /* the dark toolbar icons colour (style review) */
  body.text-mode .mono:hover .mark, body.text-mode .mono:focus-visible .mark { background-color: #fff; }
}
@media (prefers-reduced-motion: reduce) { .mono .mark { transition: none; } }

/* reading editions (style design 15 Nov 2026): the credit line at the top of the "Aa" view, read before the summary */
.textview .text-credit { font-size: 15px; color: #6b5d50; font-style: italic; margin: -4px 0 14px; line-height: 1.5; }
/* Ask the Library (17 Nov 2026): one line at the end of each reader; the Worker removes it while Ask is off */
.end-ask { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.end-ask a { color: var(--teal-ink, #2f8f8c); font-weight: 700; }

/* ===== Ask P3-3 (22 Nov 2026): the "About this book" button and drawer =====
   The button: a teal outline pill beside the title (every outline button teal), always shown; on phones the icon and "About".
   The drawer: the Contents drawer's side drawer on computers and iPads, a little wider for reading; a full-width sheet from the
   foot of the screen on phones. Inside: the summary, the suggested questions and the chapters, each a framed white pane that
   opens in place. Teal only for links, the open question and focus; no orange, no coloured rules. The page-flip view stays
   light whatever the device's setting; in the dark "Aa" text view the drawer follows the text view's night colours (R14).
   Values from the Ask page (site.css .ask-answer, .fn-list, .fn-libw), restated here because site.css is not loaded here. */
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.read-about { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 6px; position: relative;
  height: 34px; padding: 0 14px 0 10px; margin: 0 6px 0 0; border-radius: 999px;
  border: 1.5px solid var(--accent); background: rgba(255, 255, 255, .7); color: var(--accent-deep); cursor: pointer;
  font: 600 14px/1 system-ui, -apple-system, sans-serif; white-space: nowrap; }
.read-about svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.read-about::before { content: ""; position: absolute; left: -3px; right: -3px; top: 50%; height: 44px; transform: translateY(-50%); }  /* a 44px tap, the pill drawn at 34 */
.read-about:hover { background: rgba(47, 143, 140, .08); }
.read-about[aria-pressed="true"] { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; }
.read-about:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* the label is "About" everywhere the title shares its row with the tools (computers, phones); "About this book" where the
   title row is the full width (iPads and small tablets, 641 to 900 px). The full name stays for screen readers and as the tooltip */
.read-about .ra-more { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (min-width: 641px) and (max-width: 900px) { .read-about .ra-more { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: pre; } }
/* ...unless that cuts the title: then "About" for that title (viewer.js fitAbout, review 50 item 6) */
@media (min-width: 641px) and (max-width: 900px) { .read-about.ra-short .ra-more { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }
.vleft .vcrumbs .trail { overflow-x: clip; }
/* style review M3 (25 Nov 2026): a crumb too long for the bar ends in an ellipsis, as the title under it does, instead of being cut */
.vleft .vcrumbs .trail > a:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; }

/* the drawer: the Contents drawer, wider for reading answers */
.drawer.about { width: min(440px, 92vw); background: #fffdf9; }
@media (min-width: 1200px) {
  body.drawer-open:has(#drawer-about.open) .stage { padding-left: 460px; }
  body.drawer-open:has(#drawer-about.open) .arrow.prev { left: 450px; }
}
.drawer.about header { flex: none; }
.drawer .about-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch; padding: 16px 18px 32px; color: var(--ink); }
.about-body > :first-child { margin-top: 0; }
.about-summary { margin: 0 0 6px; font: 17px/1.55 "Caladea", Georgia, serif; color: #2f2c28; overflow-wrap: anywhere; }
.about-h { margin: 26px 0 10px; font: 600 11.5px/1.3 system-ui, -apple-system, sans-serif; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted); }
.pq-sec, .ch-sec { margin: 0; }

/* draft marks (test site only): neutral, never a warning colour */
.pq-draft-note { margin: 0 0 16px; padding: 10px 12px; border: 1px dashed #b5ab9c; border-radius: 8px; background: #f6f1e8;
  font: 13.5px/1.45 system-ui, -apple-system, sans-serif; color: #4a4843; }
.draft-tag { flex: none; align-self: flex-start; margin-top: 2px; padding: 2px 7px; border: 1px solid #b5ab9c; border-radius: 999px; background: #f6f1e8;
  font: 600 10.5px/1.3 system-ui, -apple-system, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #6b5d50; }

/* one framed pane per question and per chapter; the summary line is the button */
.pq, .chs { margin: 0 0 10px; background: #fff; border: 1px solid rgba(35, 39, 42, .12); border-radius: 10px;
  box-shadow: 0 1px 3px rgba(60, 45, 25, .06); }
.pq > summary, .chs > summary { display: flex; align-items: flex-start; gap: 10px; min-height: 48px; padding: 12px 12px 12px 14px;
  list-style: none; cursor: pointer; border-radius: 10px; }
.pq > summary::-webkit-details-marker, .chs > summary::-webkit-details-marker { display: none; }
.pq > summary::marker, .chs > summary::marker { content: ""; }
@media (hover: hover) { .pq > summary:hover, .chs > summary:hover { background: #f8f4ed; } }
.pq > summary:focus-visible, .chs > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.pq[open] > summary, .chs[open] > summary { border-radius: 10px 10px 0 0; }
.pq-q, .chs-t { flex: 1 1 auto; min-width: 0; font: 700 17px/1.35 "Caladea", Georgia, serif; color: var(--ink); overflow-wrap: anywhere; }
.pq[open] .pq-q, .chs[open] .chs-t { color: var(--accent-deep); }
.chs-t { font-weight: 400; }
/* the "p." is in the markup since the pen test (M4): read as "page" by screen readers, shown as before */
.chs-p { flex: none; padding-top: 4px; white-space: nowrap; font: 12.5px/1.3 system-ui, -apple-system, sans-serif; color: var(--muted); font-variant-numeric: tabular-nums; }
.pq-chev { flex: none; width: 20px; height: 20px; margin-top: 1px; fill: none; stroke: #7a766e; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round; }
details[open] > summary .pq-chev { transform: rotate(180deg); stroke: var(--accent-deep); }

/* the prepared answer */
.pq-a, .chs-a { padding: 4px 16px 16px; border-top: 1px solid rgba(35, 39, 42, .08); overflow-wrap: anywhere; }
.pq-lead { margin: 12px 0 8px; font: 14px/1.45 system-ui, -apple-system, sans-serif; color: #55524b; }
.pq-p, .chs-a p { margin: 0 0 12px; font: 16.5px/1.6 "Caladea", Georgia, serif; color: #2b2925; }
.pq-libnote { margin: 12px 0 14px; padding: 10px 14px; border-left: 3px solid #c9beae; background: #f6f1e8; border-radius: 0 6px 6px 0; }
.pq-libnote .kicker { margin: 0 0 4px; font: 600 11px/1.3 system-ui, -apple-system, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pq-libnote p:last-child { margin: 0; font: 15.5px/1.5 "Caladea", Georgia, serif; }
.pq-a .fn-ref { font-size: .72em; line-height: 0; vertical-align: super; position: relative; top: -.1em; }
.pq-a .fn-ref a { display: inline-block; min-width: 24px; min-height: 24px; padding: 6px 8px; margin: -6px -8px; text-align: center;
  font: 700 1em/1 system-ui, -apple-system, sans-serif; color: var(--accent-deep); text-decoration: none; border-radius: 3px; }
.pq-a .fn-ref a:hover { background: rgba(47, 143, 140, .12); text-decoration: underline; text-underline-offset: 2px; }
.pq-a .fn-ref a:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; background: rgba(47, 143, 140, .12); }
.pq-src-h { margin: 16px 0 2px; padding-top: 12px; border-top: 1px solid rgba(35, 39, 42, .10);
  font: 600 11px/1.3 system-ui, -apple-system, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pq-src { list-style: none; margin: 0; padding: 0; }
.pq-src li { border-bottom: 1px solid #f0ece6; }
.pq-src a { display: flex; align-items: baseline; gap: 8px; min-height: 44px; padding: 10px 0; text-decoration: none; color: var(--ink);
  font: 15.5px/1.4 "Caladea", Georgia, serif; }
.pq-src .fn-n { flex: none; min-width: 1.5em; font: 700 14px/1.4 system-ui, -apple-system, sans-serif; color: var(--accent-deep); }
.pq-src .fn-libw { display: inline-flex; flex: none; color: var(--muted); position: relative; top: 3px; }
.pq-src .fn-lib { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pq-src .fn-t { min-width: 0; text-decoration: underline; text-decoration-color: rgba(31, 110, 107, .35); text-underline-offset: 3px; }
.pq-src a:hover .fn-t { text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.pq-src a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
.pq-foot, .ch-foot { margin: 12px 0 0; font: 12.5px/1.5 system-ui, -apple-system, sans-serif; color: var(--muted); }
.ch-foot { margin-top: 4px; }

/* links that act: "Ask your own question" a teal outline pill; "Read this chapter" a teal link */
.pq-own { margin: 6px 0 0; }
.pq-own a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1.5px solid var(--accent); border-radius: 999px;
  background: #fff; color: var(--accent-deep); text-decoration: none; font: 600 14.5px/1 system-ui, -apple-system, sans-serif; }
.pq-own a::after { content: "\2192"; margin-left: 8px; }
.pq-own a:hover { background: rgba(47, 143, 140, .08); }
.pq-own a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.chs-a p.chs-go { margin: 0; }
.chs-go a { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent-deep); font: 600 14.5px/1 system-ui, -apple-system, sans-serif;
  text-decoration: none; }
.chs-go a::after { content: "\2192"; margin-left: 6px; }
.chs-go a:hover { text-decoration: underline; text-underline-offset: 4px; }
.chs-go a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }

/* phones: the icon and "About" beside the title (the rest stays for screen readers), and the drawer a full-width sheet
   from the foot of the screen, over the tools row, the title row left in view */
@media (max-width: 640px) {
  .read-about { height: 32px; padding: 0 11px 0 8px; gap: 5px; font-size: 13.5px; margin-left: 0; }
  .read-about .ra-more { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .vleft { gap: 8px; }
  .drawer.about { top: calc(var(--top-h) + 6px); left: 0; right: 0; width: auto; z-index: 35;
    border-right: 0; border-top: 1px solid var(--line); border-radius: 16px 16px 0 0;
    box-shadow: 0 -10px 34px rgba(60, 45, 25, .22); transform: translateY(105%); }
  .drawer.about.open { transform: none; }
  .drawer.about header { padding: 8px 8px 8px 18px; font-size: 16px; }
  .drawer .about-body { padding: 16px 16px calc(32px + env(safe-area-inset-bottom, 0px)); }
  body.listening .drawer .about-body { padding-bottom: calc(var(--lbar-h, 0px) + 32px + env(safe-area-inset-bottom, 0px)); }
  .pq-p, .chs-a p { font-size: 17px; }
  .pq-q, .chs-t { font-size: 17.5px; }
  .pq-src a { font-size: 16px; }
  .pq-a .fn-ref { font-size: .78em; }
  .pq-a .fn-ref a { min-width: 26px; min-height: 26px; padding: 7px 9px; margin: -7px -9px; }
  .pq-a, .chs-a { padding: 4px 14px 14px; }
}
@media (max-width: 359px) { .read-about { padding: 0 9px; } .read-about > span:not(.ra-more) { font-size: 13px; } }
/* a phone on its side: the side drawer, under the slim bar */
@media (max-height: 500px) and (orientation: landscape) { .drawer.about { width: min(440px, 70vw); } }

/* the dark "Aa" text view (R14): the drawer and its button take the night colours */
@media (prefers-color-scheme: dark) {
  body.text-mode .read-about { background: transparent; border-color: #3ea7a3; color: #9fdcd8; }
  body.text-mode .read-about:hover { background: rgba(62, 167, 163, .12); }
  body.text-mode .read-about[aria-pressed="true"] { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; }
  body.text-mode .drawer.about { background: #262522; border-color: var(--night-line); color: var(--night-ink); box-shadow: 8px 0 30px rgba(0, 0, 0, .5); }
  body.text-mode .drawer.about header { border-bottom-color: var(--night-line); }
  body.text-mode .drawer.about .close { color: #d8d2c7; }
  body.text-mode .drawer.about .close:hover { background: rgba(255, 255, 255, .08); color: #fff; }
  body.text-mode .about-body { color: var(--night-ink); }
  body.text-mode .about-summary { color: #e7e2d9; }
  body.text-mode .about-h, body.text-mode .pq-src-h, body.text-mode .pq-foot, body.text-mode .ch-foot,
  body.text-mode .chs-p, body.text-mode .pq-libnote .kicker, body.text-mode .pq-src .fn-libw { color: var(--night-muted); }
  body.text-mode .pq, body.text-mode .chs { background: #2f2e2a; border-color: var(--night-line); box-shadow: none; }
  @media (hover: hover) { body.text-mode .pq > summary:hover, body.text-mode .chs > summary:hover { background: #363430; } }
  body.text-mode .pq-q, body.text-mode .chs-t { color: #f3eee5; }
  body.text-mode .pq[open] .pq-q, body.text-mode .chs[open] .chs-t { color: #9fdcd8; }
  body.text-mode .pq-chev { stroke: #a9a398; }
  body.text-mode details[open] > summary .pq-chev { stroke: #9fdcd8; }
  body.text-mode .pq-a, body.text-mode .chs-a { border-top-color: var(--night-line); }
  body.text-mode .pq-lead { color: #bdb7ab; }
  body.text-mode .pq-p, body.text-mode .chs-a p, body.text-mode .pq-src a { color: #e7e2d9; }
  body.text-mode .pq-libnote { background: rgba(255, 255, 255, .05); border-left-color: #6d665b; }
  body.text-mode .pq-src li { border-bottom-color: var(--night-line); }
  body.text-mode .pq-src-h { border-top-color: var(--night-line); }
  body.text-mode .pq-a .fn-ref a, body.text-mode .pq-src .fn-n, body.text-mode .chs-go a { color: #9fdcd8; }
  body.text-mode .pq-src .fn-t { text-decoration-color: rgba(159, 220, 216, .4); }
  body.text-mode .pq-own a { background: transparent; border-color: #3ea7a3; color: #9fdcd8; }
  body.text-mode .pq-draft-note, body.text-mode .draft-tag { background: rgba(255, 255, 255, .05); border-color: #6d665b; color: #cfc9be; }

  /* review 48, item 5 (Gerhard, 22 Nov 2026): "make the other drawers dark too, to match". Contents, All pages and More titles
     take the About drawer's night treatment; a row's ground is the About panes' #2f2e2a, and teal (#9fdcd8, the About
     drawer's open/link colour) marks only the current item and the links */
  body.text-mode .drawer { background: #262522; border-color: var(--night-line); color: var(--night-ink); box-shadow: 8px 0 30px rgba(0, 0, 0, .5); }
  body.text-mode .drawer header { border-bottom-color: var(--night-line); }
  body.text-mode .drawer .close { color: #d8d2c7; }
  body.text-mode .drawer .close:hover { background: rgba(255, 255, 255, .08); color: #fff; }
  body.text-mode .toc a, body.text-mode .toc a.l2, body.text-mode .title-row, body.text-mode .shelf-link { color: var(--night-ink); }
  body.text-mode .toc a span:last-child, body.text-mode .thumbs a, body.text-mode .title-row span span,
  body.text-mode .titles h3, body.text-mode .titles .h3, body.text-mode .shelf-link span { color: var(--night-muted); }
  body.text-mode .title-row strong { color: #f3eee5; }
  body.text-mode .toc a:hover, body.text-mode .title-row:hover, body.text-mode .shelf-link:hover { background: #2f2e2a; }
  body.text-mode .toc a.here, body.text-mode .title-row.here { background: #2f2e2a; color: #9fdcd8; }
  body.text-mode .title-row.here strong, body.text-mode .thumbs a.here { color: #9fdcd8; }
  body.text-mode .thumbs a.here img { outline-color: #3ea7a3; }
  body.text-mode .thumbs img, body.text-mode .title-row img { box-shadow: 0 1px 4px rgba(0, 0, 0, .5); }
  body.text-mode .title-steps { border-bottom-color: var(--night-line); }
  body.text-mode .title-steps a { color: #9fdcd8; }
}
@media (prefers-color-scheme: dark) and (max-width: 640px) {
  body.text-mode .drawer.about { box-shadow: 0 -10px 34px rgba(0, 0, 0, .55); }
}
/* phones: the About pill is a round "i" on every title (review 49 item 11, Option 2; its name is still "About this book" for
   screen readers and as its tooltip). One circle only (Gerhard's note): the button's teal outline is the circle, so the icon's own
   circle is left out and the "i" is drawn a little stronger */
@media (max-width: 640px) {
  /* 32 px across, the height of the phone Listen button (Gerhard, 23 Nov 2026: the circle no larger than Listen); the tap
     stays 44 px through ::before */
  .read-about { width: 32px; height: 32px; padding: 0; justify-content: center; gap: 0; }
  .read-about > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .read-about svg { width: 18px; height: 18px; stroke-width: 2.2; }
  .read-about svg circle { display: none; }
}
/* 375 px phones with Order print (coordinator's check of the after-renders, 23 Nov 2026): the crumb "LIBRARY / BOOKS" lost its
   last letter by 11 px. A little less space around the round "i" gives it back; nothing moves or changes look */
@media (max-width: 400px) {
  .vtop { column-gap: 6px; }
  .read-about { margin-right: 2px; }
}
/* functionality test L6 (25 Nov 2026): at 390 "The Day of the Lord" was cut by 5 px; the same rule a step further (the space
   between the crumb and the "i", and between the H and the crumb) gives it back. Longer titles still end in the ellipsis */
@media (max-width: 400px) {
  .vtop { column-gap: 2px; }
  .vleft { gap: 6px; }
}
#about-h:focus { outline: none; }     /* the phone dialog moves focus to its heading (pen test M4); the heading is not a control */

/* ---------- Ask in the About drawer (Gerhard's Option A, 22 Nov 2026; built 23 Nov 2026) ----------
   The approved styles of docs/Ask in the About drawer - design (22 Nov 2026)/mock/aq.css, Option A only (its Option B and C rules
   and the Scripture reference look, already in scripture.css, are left out). Nothing existing is restyled. */
/* ---------- shared: the scope line, the box, the note ---------- */
.aq-scope { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; font: 13.5px/1.35 system-ui, -apple-system, sans-serif; color: var(--muted); }
.aq-scope b { font-weight: 600; color: #3d3a35; }
.aq-mk { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; color: var(--muted); }
.aq-form { margin: 10px 0 0; }
.aq-row { display: flex; gap: 8px; align-items: stretch; }
.aq-row input { flex: 1 1 auto; min-width: 0; height: 48px; padding: 0 14px; border: 1px solid rgba(35, 39, 42, .28); border-radius: 10px;
  background: #fff; color: var(--ink); font: 17px/1.3 "Caladea", Georgia, serif; }      /* 17px: iOS does not zoom a box of 16px and up */
.aq-row input::placeholder { color: #7a766e; font-style: italic; }
.aq-row input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.aq-go { flex: none; min-width: 84px; height: 48px; padding: 0 18px; border: 1.5px solid var(--accent-deep); border-radius: 999px;
  background: var(--accent-deep); color: #fff; font: 600 15px/1 system-ui, -apple-system, sans-serif; cursor: pointer; }
.aq-go:hover { background: #185a57; }
.aq-go:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* "Clear" after an answer, as the Ask page's one button: a teal outline */
.aq-go.is-clear { background: transparent; color: var(--accent-deep); border-color: var(--accent); }
.aq-go.is-busy { background: transparent; color: var(--muted); border-color: #cfc8bd; cursor: default; }
.aq-note { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0 0; font: 12.5px/1.5 system-ui, -apple-system, sans-serif; color: var(--muted); }
.aq-note svg { flex: none; width: 16px; height: 16px; margin-top: 1px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

/* "Ask the whole library": a small teal link with an arrow (it leaves the reader, so it says where it goes) */
.aq-whole { margin: 10px 0 0; }
.aq-whole a { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent-deep); text-decoration: none;
  font: 600 14px/1 system-ui, -apple-system, sans-serif; }
.aq-whole a::after { content: "\2192"; margin-left: 6px; }
.aq-whole a:hover { text-decoration: underline; text-underline-offset: 4px; }
.aq-whole a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }

/* ---------- the answer (reuses the prepared answers' classes: pq-lead, pq-p, fn-ref, pq-src, pq-foot) ---------- */
.aq-ans { margin: 14px 0 0; padding: 14px 0 0; border-top: 1px solid rgba(35, 39, 42, .10); }
.aq-ans.pq-a { padding-left: 0; padding-right: 0; padding-bottom: 0; }
.aq-ans .aq-k, .aq-k { margin: 0 0 2px; font: 600 11px/1.3 system-ui, -apple-system, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.aq-ans .aq-qh, .aq-qh { margin: 0 0 4px; font: 700 18px/1.35 "Caladea", Georgia, serif; color: var(--ink); outline: none; }
.aq-ans .aq-qh.small, .aq-qh.small { font-size: 16.5px; font-weight: 400; color: #3d3a35; }
.aq-ans .pq-lead { margin-top: 6px; }
/* a source in another title opens it: a small "opens" mark after the row (in-title rows turn the page, as now) */
.aq-away-k { flex: none; margin-left: auto; color: var(--muted); }
.aq-away-k svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; position: relative; top: 2px; }

/* the follow-up, at the foot of the answer (as on the Ask page, Option A of P3-1) */
.aq-fu { margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid rgba(35, 39, 42, .10); }
.aq-fu-label { display: block; margin: 0 0 8px; font: 700 16px/1.3 "Caladea", Georgia, serif; color: var(--ink); }
.aq-fu-note { margin: 8px 0 0; font: 12.5px/1.45 system-ui, -apple-system, sans-serif; color: var(--muted); }
.aq-fu-note .sc-in { color: #3d3a35; }

/* loading: the Ask page's ripple mark and words */
.aq-wait { display: flex; align-items: center; gap: 10px; margin: 14px 0 4px; font: 15px/1.4 system-ui, -apple-system, sans-serif; color: var(--muted); }
/* the same fade as the Ask page (Gerhard 18 Nov: opacity 1 to 0.45, 1.8 s, ease-in-out) and, as there, it runs under Reduce Motion
   too (Gerhard 21 Nov, and again 23 Nov in the About drawer: his phone showed a still mark); a fade in place, no movement */
.aq-wait img { width: 54px; height: 27px; animation: aq-breathe 1.8s ease-in-out infinite; }
@keyframes aq-breathe { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
/* the progress steps in the About drawer (Ask speed, Review 70: option B, words only; assets/ask-drawer.js progressCard): as the Ask
   page, in the drawer's own type; shown after 0.4 s; fades in place only */
.apg { opacity: 0; transition: opacity .2s ease; }
.apg.is-shown { opacity: 1; }
@keyframes apg-in { from { opacity: .15; } to { opacity: 1; } }
.apg-line.apg-in { animation: apg-in .35s ease; }
.apg-b .aq-wait { margin-bottom: 8px; }
.apg-segs { display: flex; gap: 5px; margin: 0 0 6px 64px; }
.apg-segs span { width: 18px; height: 3px; border-radius: 2px; background: #e4dfd7; }
.apg-segs span.is-done { background: #a9cbc8; }
.apg-segs span.is-now { background: var(--accent-deep); animation: aq-breathe 1.8s ease-in-out infinite; }

/* replies that are not an answer: nothing in this title, the limits, the decline (same words as the Ask page) */
.aq-mh { margin: 8px 0 6px; font: 700 17px/1.35 "Caladea", Georgia, serif; color: var(--ink); outline: none; }
.aq-none p, .aq-msg p, .aq-help p { margin: 0 0 10px; font: 16px/1.55 "Caladea", Georgia, serif; color: #2b2925; }
.aq-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.aq-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border: 1.5px solid var(--accent); border-radius: 999px;
  color: var(--accent-deep); text-decoration: none; font: 600 14px/1 system-ui, -apple-system, sans-serif; background: transparent; }
.aq-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.aq-btn:hover { background: rgba(47, 143, 140, .08); }
.aq-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.aq-none .aq-mnote, .aq-msg .aq-mnote { font: 12.5px/1.45 system-ui, -apple-system, sans-serif; color: var(--muted); margin-top: 4px; }
/* the sensitive-question message: the approved card, on the library note's quiet greige (no colour of warning) */
.aq-help { padding: 12px 14px; background: #f6f1e8; border-radius: 8px; border-top: 0; margin-top: 14px; }
.aq-help .aq-mh { margin-top: 0; }
.aq-help p:last-child { margin-bottom: 0; }

/* the closed pill becomes a button (it no longer leaves the page) */
.pq-own .aq-open { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1.5px solid var(--accent); border-radius: 999px;
  background: transparent; color: var(--accent-deep); font: 600 14.5px/1 system-ui, -apple-system, sans-serif; cursor: pointer; }
.pq-own .aq-open::after { content: ""; width: 8px; height: 8px; margin-left: 10px; border: solid currentColor; border-width: 0 1.8px 1.8px 0; transform: rotate(45deg) translate(-2px, -2px); }
.pq-own .aq-open:hover { background: rgba(47, 143, 140, .08); }
.pq-own .aq-open:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Option A: in place, a framed pane at the foot of the questions ---------- */
.aq-opt-a { margin: 12px 0 0; }
.aq-pane { background: #fff; border: 1px solid rgba(35, 39, 42, .12); border-radius: 10px; box-shadow: 0 1px 3px rgba(60, 45, 25, .06); padding: 14px 16px 16px; }
.aq-top { display: block; }
.aq-top .aq-scope { margin-top: 2px; }
.aq-title { margin: 0; font: 700 17px/1.35 "Caladea", Georgia, serif; color: var(--accent-deep); }

/* ---------- phones (the About sheet) ---------- */
@media (max-width: 640px) {
  .aq-pane { padding: 12px 14px 14px; }
  .aq-go { min-width: 72px; padding: 0 14px; }
  .aq-qh { font-size: 18.5px; }
  .aq-ans .pq-p { font-size: 17px; }
}

/* ---------- the dark "Aa" text view (R14): the night colours of the About drawer ---------- */
@media (prefers-color-scheme: dark) {
  body.text-mode .aq-scope { color: var(--night-muted); }
  body.text-mode .aq-scope b, body.text-mode .aq-fu-note .sc-in, body.text-mode .aq-ans .aq-qh.small { color: #e7e2d9; }
  body.text-mode .aq-mk, body.text-mode .aq-away-k { color: var(--night-muted); }
  body.text-mode .aq-row input { background: #1e1d1b; border-color: rgba(255, 255, 255, .24); color: #f3eee5; }
  body.text-mode .aq-row input::placeholder { color: #8f897e; }
  body.text-mode .aq-row input:focus-visible { outline-color: #3ea7a3; border-color: #3ea7a3; }
  body.text-mode .aq-go { background: var(--accent-deep); border-color: #3ea7a3; color: #fff; }
  body.text-mode .aq-go.is-clear, body.text-mode .aq-btn, body.text-mode .pq-own .aq-open { background: transparent; border-color: #3ea7a3; color: #9fdcd8; }
  body.text-mode .aq-go.is-busy { background: transparent; border-color: var(--night-line); color: var(--night-muted); }
  body.text-mode .aq-note, body.text-mode .aq-k, body.text-mode .aq-fu-note, body.text-mode .aq-wait, body.text-mode .aq-mnote { color: var(--night-muted); }
  body.text-mode .apg-segs span { background: #45433e; }
  body.text-mode .apg-segs span.is-done { background: #2f6866; }
  body.text-mode .apg-segs span.is-now { background: #3ea7a3; }
  body.text-mode .aq-whole a, body.text-mode .aq-title { color: #9fdcd8; }
  body.text-mode .aq-pane { background: #2f2e2a; border-color: var(--night-line); box-shadow: none; }
  body.text-mode .aq-ans, body.text-mode .aq-fu { border-top-color: var(--night-line); }
  body.text-mode .aq-qh, body.text-mode .aq-mh, body.text-mode .aq-fu-label { color: #f3eee5; }
  body.text-mode .aq-none p, body.text-mode .aq-msg p, body.text-mode .aq-help p { color: #e7e2d9; }
  body.text-mode .aq-help { background: rgba(255, 255, 255, .05); }
  /* the prepared answers' teal footnote numbers and Sources numbers take the night teal (viewer.css already does this for .pq-a) */
}

/* Ask in the About drawer: the states the mocks did not cover, decided by the style agent (23 Nov 2026; recorded for Gerhard's review):
   the whole library's answer "for information", nothing there either, a page list, resting, the follow-up's end states, errors and
   the passing reply */
.aq [hidden], .aq-err[hidden] { display: none !important; }
/* Ask in the About drawer, Option A: the states the mocks do not draw (style pass, 23 Nov 2026).
   Loaded after the mocked aq-* rules. Only the classes named in the brief plus existing ones. */

/* 1. the whole-library answer under "Nothing in <title> speaks to this question": a quiet greige band with the
      library note's left rule, so it reads as a note set apart from the title's own reply and is never taken for it */
.aq-wider { margin: 12px 0 14px; padding: 12px 14px 14px; background: #f6f1e8; border-left: 3px solid #c9beae; border-radius: 0 8px 8px 0; }
.aq-none .aq-wider .aq-wider-k { margin: 0 0 4px; font: 600 11px/1.3 system-ui, -apple-system, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: #55524b; }
.aq-none .aq-wider .aq-wider-note { margin: 0 0 4px; font: 13.5px/1.45 system-ui, -apple-system, sans-serif; color: var(--muted); }
.aq-none .aq-wider .pq-lead { margin: 10px 0 8px; font: 14px/1.45 system-ui, -apple-system, sans-serif; color: #55524b; }
.aq-none .aq-wider .pq-p { margin: 0 0 12px; font: 16.5px/1.6 "Caladea", Georgia, serif; color: #2b2925; }
.aq-wider .pq-src-h { border-top-color: rgba(35, 39, 42, .14); }
.aq-wider .pq-src li { border-bottom-color: rgba(35, 39, 42, .10); }
.aq-none .aq-wider .pq-foot { margin: 10px 0 0; font: 12.5px/1.5 system-ui, -apple-system, sans-serif; color: var(--muted); }
/* the answer's footnote numbers are teal superscripts here too (viewer.css scopes .fn-ref to .pq-a) */
.aq-wider .fn-ref { font-size: .72em; line-height: 0; vertical-align: super; position: relative; top: -.1em; }
.aq-wider .fn-ref a { display: inline-block; min-width: 24px; min-height: 24px; padding: 6px 8px; margin: -6px -8px; text-align: center;
  color: var(--accent-deep); font: 700 1em/1 system-ui, -apple-system, sans-serif; text-decoration: none; border-radius: 4px; }
.aq-wider .fn-ref a:hover { background: rgba(47, 143, 140, .12); text-decoration: underline; text-underline-offset: 2px; }
.aq-wider .fn-ref a:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; }

/* 2. the whole library has nothing either: one plain line under the heading, same voice as the reply */
.aq-none .aq-wider-none { margin: 0 0 12px; }

/* 3. pages instead of a written answer: no covers (the drawer is about one title; the row names it); the link row as Sources,
      the excerpt in the Ask page's "own words" look (pale teal rule, marked words) */
.aq-pages { list-style: none; margin: 4px 0 0; padding: 0; }
.aq-pages li { padding: 0 0 12px; border-bottom: 1px solid #f0ece6; }
.aq-pages li + li { padding-top: 2px; }
.aq-pg { display: flex; align-items: baseline; gap: 8px; min-height: 44px; padding: 10px 0 4px; color: var(--ink); text-decoration: none;
  font: 600 15px/1.35 system-ui, -apple-system, sans-serif; }
.aq-pg .aq-pg-t { min-width: 0; text-decoration: underline; text-decoration-color: rgba(31, 110, 107, .35); text-underline-offset: 3px; }
.aq-pg:hover .aq-pg-t { text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.aq-pg:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
.aq-ex { margin: 2px 0 0; padding: 0 0 0 12px; border-left: 3px solid #d8e7e6; font: 16px/1.6 "Caladea", Georgia, serif; color: #2b2925; overflow-wrap: anywhere; }
.aq-ex mark { background: #e6f2f1; color: inherit; padding: 0 1px; }
.aq-pages li:not(:has(.aq-ex)) { padding-bottom: 0; }       /* end-times rows carry no excerpt: the link alone */

/* 4. Ask resting or off as the pane opens: no box, one plain line, then the search link */
.aq-rest-line { margin: 8px 0 0; font: 16px/1.55 "Caladea", Georgia, serif; color: #3d3a35; }
.aq-pane .aq-rest-line + .aq-whole { margin-top: 4px; }

/* 5. follow-up end states and the message above the follow-up box: the reply's own voice, no colour */
.aq-fu-end p { margin: 0 0 10px; font: 16px/1.55 "Caladea", Georgia, serif; color: #2b2925; }
.aq-fu-end p:last-child { margin: 0; }
.aq-fu-msg { margin: 0 0 10px; }
.aq-fu-msg b { display: block; margin: 0 0 2px; font: 700 16px/1.35 "Caladea", Georgia, serif; color: var(--ink); }
.aq-fu-msg span { display: block; font: 15.5px/1.5 "Caladea", Georgia, serif; color: #3d3a35; }

/* 6. errors: the card is the mocked limit card (.aq-msg); the inline error under a box is ink, not red, with an
      info mark drawn in CSS, and the box takes a darker (not coloured) edge */
.aq-msg .aq-acts { margin-top: 2px; }
.aq-err { display: flex; gap: 7px; align-items: baseline; margin: 8px 0 0; font: 600 14px/1.45 system-ui, -apple-system, sans-serif; color: var(--ink); }
.aq-err::before { content: "i"; flex: none; display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px;
  border: 1.6px solid currentColor; border-radius: 50%; font: 700 11px/1 Georgia, serif; position: relative; top: 2px; box-sizing: border-box; }
.aq-err[hidden], .aq-err:empty { display: none; }
.aq-row input[aria-invalid="true"] { border-color: rgba(35, 39, 42, .62); }

/* 7. the passing reply: the pages' own lines, so the same pale teal "own words" rule as an excerpt (article gets .aq-passing) */
.aq-passing .pq-p { padding-left: 12px; border-left: 3px solid #d8e7e6; }

/* ---------- phones (the About sheet) ---------- */
@media (max-width: 640px) {
  .aq-wider { margin-left: -4px; margin-right: -4px; padding: 10px 12px 12px; }
  .aq-none .aq-wider .pq-p { font-size: 17px; }
  .aq-wider .fn-ref { font-size: .78em; }
  .aq-wider .fn-ref a { min-width: 26px; min-height: 26px; padding: 7px 9px; margin: -7px -9px; }
  .aq-ex { font-size: 16.5px; }
  .aq-pg { font-size: 15.5px; }
  .aq-acts .aq-btn { max-width: 100%; }
}

/* ---------- the dark "Aa" text view (R14): the About drawer's night colours ---------- */
@media (prefers-color-scheme: dark) {
  body.text-mode .aq-wider { background: rgba(255, 255, 255, .05); border-left-color: #6d665b; }
  body.text-mode .aq-none .aq-wider .aq-wider-k { color: #cfc9be; }
  body.text-mode .aq-none .aq-wider .aq-wider-note, body.text-mode .aq-none .aq-wider .pq-foot { color: var(--night-muted); }
  body.text-mode .aq-none .aq-wider .pq-p { color: #e7e2d9; }
  body.text-mode .aq-none .aq-wider .pq-lead { color: #bdb7ab; }
  body.text-mode .aq-wider .pq-src-h { border-top-color: var(--night-line); color: var(--night-muted); }
  body.text-mode .aq-wider .pq-src li { border-bottom-color: var(--night-line); }
  body.text-mode .aq-wider .pq-src a { color: #e7e2d9; }
  body.text-mode .aq-wider .pq-src .fn-n, body.text-mode .aq-wider .fn-ref a { color: #9fdcd8; }
  body.text-mode .aq-wider .pq-src .fn-t { text-decoration-color: rgba(159, 220, 216, .4); }
  body.text-mode .aq-pages li { border-bottom-color: var(--night-line); }
  body.text-mode .aq-pg { color: #e7e2d9; }
  body.text-mode .aq-pg .aq-pg-t { text-decoration-color: rgba(159, 220, 216, .4); }
  body.text-mode .aq-ex, body.text-mode .aq-passing .pq-p { border-left-color: #3b5a58; }
  body.text-mode .aq-ex { color: #e7e2d9; }
  body.text-mode .aq-ex mark { background: rgba(62, 167, 163, .22); color: inherit; }
  body.text-mode .aq-rest-line, body.text-mode .aq-fu-msg span { color: #e7e2d9; }
  body.text-mode .aq-fu-end p { color: #e7e2d9; }
  body.text-mode .aq-fu-msg b { color: #f3eee5; }
  body.text-mode .aq-err { color: #f3eee5; }
  body.text-mode .aq-row input[aria-invalid="true"] { border-color: rgba(255, 255, 255, .55); }
}

/* the title named in the drawer's answer lead (review 51 item 9): italic, the lead's own colour */
.pq-lead cite { font-style: italic; color: inherit; font-variant: normal; letter-spacing: normal; text-transform: none; }
