/* © 2026 MEK.txt. All rights reserved. */
/* Tidings · the Bible as a manuscript page: a chapter in pages of columns, an illuminated initial at its start, in two themes.
   The ornament stays at the edges and the initial; nothing sits behind the text. */

/* ---------- Parchment (the day) ----------
   The system's Light read as a manuscript (as CarDOSgraphy's Old map and Parched's good-night page restyle it):
   parchment ground, iron-gall ink in sepia, the accent rubric. Light's own gilt and rubric. Night is Byzantine as it is. */
:root[data-theme="light"] {
  --bg: color-mix(in srgb, var(--map-sand) 25%, var(--100));
  --surface: color-mix(in srgb, var(--map-earth) 8%, var(--bg));
  --text: color-mix(in srgb, var(--map-earth) 75%, var(--900));
  --text-strong: color-mix(in srgb, var(--map-earth) 40%, var(--1000));
  --text-muted: color-mix(in srgb, var(--map-earth) 60%, var(--700));
  --text-soft: color-mix(in srgb, var(--map-earth) 65%, var(--800));   /* links and controls: the bar's dropdowns, the theme */
  --line: color-mix(in srgb, var(--map-earth) 22%, var(--bg));
  --line-hover: color-mix(in srgb, var(--map-earth) 40%, var(--bg));
  --accent: var(--rubric);
  --gilt-ground: color-mix(in srgb, var(--gilt) 16%, var(--bg));
}

/* ---------- The page ---------- */
/* The bar: the name at the left, where the page is in the middle (the book and the chapter, each a dropdown), the tools
   at the right; on a phone the name and the tools over the book and the chapter. */
.bible-top { display: grid; grid-template-columns: 1fr auto 1fr; grid-template-areas: "name where tools"; align-items: center;
  gap: var(--space-4); padding-block: var(--space-6) 0; margin-bottom: var(--space-6);   /* as much under its box as over it (MEK's ask) */
  position: sticky; top: 0; z-index: var(--z-sticky); background: var(--bg); }   /* fixed at the top as the text scrolls
  under it (MEK's ask); app.js keeps --scroll-pad at its height, so a verse opened lands under it */
/* the room kept under the bar is the bar's too: a strip of the ground as tall as its margin, so what scrolls up past a
   chapter's heading (the last chapter's notes, its last lines) never shows between the bar and the heading */
.bible-top::after { content: ""; position: absolute; inset: 100% 0 auto; height: var(--space-6); background: var(--bg);
  pointer-events: none; }
/* and everything above it is the bar's too: on a phone the page runs up under the status bar and the browser's own bar,
   where the reading would show scrolling past (MEK's ask) */
.bible-top::before { content: ""; position: absolute; inset: auto 0 100%; height: 100vh; background: var(--bg); pointer-events: none; }
/* the bar, the strip under it and the room over it run the page's ground out to the window's sides, past the page's
   gutter (a border image's outset paints there without widening anything, so nothing scrolls sideways): what slides
   or scrolls under the bar never shows beside it (MEK's ask: the Greek switch's slide showed at the top left) */
.bible-top, .bible-top::before, .bible-top::after { border-image: conic-gradient(var(--bg) 0 0) fill 0 / 0 / 0 100vw; }
.bible-name { grid-area: name; justify-self: start; }
/* the version, in the welcome after its maker's name (MEK's ask): quiet */
.bible-version { color: var(--text-muted); }
.bible-where { grid-area: where; gap: var(--space-6); }
.bible-top > .top-tools { grid-area: tools; justify-self: end; gap: var(--space-4); }
/* the tools in one pixel box (MEK's ask), the system's frame round icon links. Each tool is a cell of the icons' own
   size (22.5px square, the Greek 26 wide), its drawing centred in it, every edge on a whole pixel of a 2x screen: the
   box 33px tall, the cells 5px from its top (a 1.5x icon's 9 drawn rows then sit 9.5px under its edge and 10 over its
   foot), 10px apart, 10px in from each side */
.bible-top > .top-tools.px-box { flex-wrap: nowrap; align-items: flex-start; gap: 10px; height: 33px;
  padding: 5px 10px 0; }
.top-tools > .bible-tool { display: grid; place-items: center; width: var(--icon-text); height: var(--icon-text);
  padding: 0; line-height: 0; }
.top-tools > .bible-tool > .icon { vertical-align: 0; margin: 0; }
/* a thin rule between finding and reading (search, bookmarks, the Greek) and the page's own (about, day or night):
   the toolbar's .toolbar-sep, 1px in --line, as tall as a drawing's 9 rows plus 1.5px over and under */
.bible-tools-sep { flex: none; align-self: flex-start; width: var(--stroke); height: 16.5px; margin-top: 3px; background: var(--line); }
@media (max-width: 640px) { .bible-top > .top-tools.px-box { gap: 8px; padding-inline: 8px; } }   /* one row by the name */
@media (max-width: 640px) {   /* --bp-phone */
  .bible-top { grid-template-columns: 1fr auto; grid-template-areas: "name tools" "where where";
    padding-block: calc(var(--space-4) + env(safe-area-inset-top, 0px)) 0;   /* (its ground under the status bar, solid) */
    margin-bottom: var(--space-4); }   /* the book and the chapter with as much room under them as over (MEK's ask) */
  .bible-top::after { height: var(--space-4); }
  .bible-where { justify-self: center; }
}
@media (max-width: 640px) {   /* a phone: the name's T alone at the left, level with the tools at the right (MEK's ask) */
  .bible-name-rest { display: none; }
  .bible-top .bible-name { align-self: center; font-size: 34px; -webkit-font-smoothing: none; -moz-osx-font-smoothing: unset; }   /* 2× its 17 grid, crisp, as tall as the tools' box */
}

/* TIDINGS: Parched at 25 as Parched's site sets its name (off its 17 grid, smoothed; MEK's ask), in the chapter
   initial's three layers and inks (MEK's ask): the tiles' insides, the frames in gilt, the letters in rubric */
.bible-name { display: grid; font-size: 25px; line-height: 1; text-decoration: none; white-space: pre; }
.bible-name > span { grid-area: 1 / 1; }

/* The book's and the chapter's lists open centred under the bar (MEK's ask), not from their button's start: the bar is
   their box (the picks static, the sticky bar the lists' containing block), each centred in it by auto margins */
.bible-where .pick { position: static; }
.bible-where .pick-menu, .bible-where .pick-menu.to-end { top: calc(100% - var(--space-4)); left: 0; right: 0; margin-inline: auto;
  width: max-content; max-width: 100%; min-width: 142px; }   /* (the part's floor; its "as wide as the button" would be the bar) */

/* Each list's arrow: a stepped pixel triangle, 9 wide and 5 tall, in the list's edge with its fill inside, its foot
   on the list's top line (the fill opens it), under the middle of the button that opened it (--arrow-x, app.js) */
.bible-menu-arrow { position: absolute; top: -4px; left: calc(var(--arrow-x, 50%) - 4px); width: 9px; height: 5px;
  background: var(--edge); pointer-events: none;
  clip-path: polygon(4px 0, 5px 0, 5px 1px, 6px 1px, 6px 2px, 7px 2px, 7px 3px, 8px 3px, 8px 4px, 9px 4px, 9px 5px, 0 5px,
    0 4px, 1px 4px, 1px 3px, 2px 3px, 2px 2px, 3px 2px, 3px 1px, 4px 1px); }
.bible-menu-arrow::before { content: ""; position: absolute; inset: 0; background: var(--fill);
  clip-path: polygon(4px 1px, 5px 1px, 5px 2px, 6px 2px, 6px 3px, 7px 3px, 7px 4px, 8px 4px, 8px 5px, 1px 5px, 1px 4px,
    2px 4px, 2px 3px, 3px 3px, 3px 2px, 4px 2px); }

/* The book and the chapter: Dosage Tall at 20, smoothed (off its 12 grid; MEK's ask), in the dropdown's own trigger */
.bible-where .pick-btn { font: 20px/1.25 var(--font-display); }
/* the books: a contents page, in three columns (one scrolling on a phone), each testament under its label */
.bible-books-cols { display: grid; grid-template-columns: repeat(3, auto);   /* (app.js sets as many as the window's height asks) */
  column-gap: var(--space-4); align-items: start;
  max-height: calc(100dvh - var(--bar-h, 73px) - var(--space-12)); overflow-y: auto; overscroll-behavior: contain; }
.bible-books-col { display: flex; flex-direction: column; gap: 2px; }
.bible-books-col:not(:has(.bible-books-head))::before { content: ""; height: calc(1lh + var(--space-3)); }   /* level with the first */
.bible-books-head { display: block; padding: var(--space-2) 0 var(--space-1); }   /* on its column's left edge, with the books */
@media (max-width: 640px) {   /* --bp-phone: one testament under the other, scrolling */
  .bible-books-cols { grid-template-columns: 1fr; max-height: 70vh; }
  .bible-books-col:not(:has(.bible-books-head))::before { content: none; }
}
/* the chapters: a grid of numbers, ten a row (151 psalms would be a very long list) */
/* the scrolling is the grid's, inside the list's box: a box that scrolls itself would carry its frame away with it */
.bible-chapters-grid { display: grid; grid-template-columns: repeat(10, auto); gap: 2px var(--space-1);
  max-height: min(calc(100dvh - var(--bar-h, 73px) - var(--space-12)), 70vh, 640px); overflow-y: auto; overscroll-behavior: contain; }
@media (max-width: 640px) { .bible-chapters-grid { grid-template-columns: repeat(6, auto); } }   /* a phone: six a row, so 151 psalms never run off its side */
.bible-chapters-grid > button { justify-content: center; text-align: center; }
/* the lists' rows in Dosage Tall at 20 (smoothed, as the triggers above them; MEK's ask), on 24px rows, the part's ">"
   on the same row */
.bible-where .pick-menu button { font: 20px/24px var(--font-display); padding: var(--space-1) 0 calc(var(--space-1) + 2px); }
.bible-where .pick-menu button::before { line-height: 24px; top: var(--space-1); }
.bible-chapters-grid > button { padding-inline: var(--space-2) var(--space-3); }   /* the grid's cells: room either side */
.bible-chapters-grid > button:last-of-type { border-bottom-color: var(--line); }   /* a grid's last cell keeps its rule: the part
   drops the last row's, which reads as a missing line in a grid */
/* A row's label slides right on hover to make room for its ">" (the part's way): the lists that scroll keep that
   inside them, never a sideways scrollbar */
.bible-books-cols, .bible-chapters-grid { overflow-x: hidden; }

/* The welcome, on a first visit: a manuscript page (MEK's ask), on the ground, in a double gilt rule (1px, 2px of
   ground, 1px), the name centred in Parched's three layers, the texts opening on a Parched initial,
   "Getting about" in rubric and how to get about as a two-column list, the keys in rubric Mono (shown only where
   there are keys and pages); its button in gilt and rubric, as the page's ornament */
.bible-welcome { width: min(560px, calc(100vw - 2 * var(--dialog-inset, 16px))); max-width: none; box-sizing: border-box;
  padding: var(--space-8); background: var(--bg); border: 1px solid var(--gilt);
  box-shadow: inset 0 0 0 2px var(--bg), inset 0 0 0 3px var(--gilt); }
.bible-welcome[open] { display: flex; flex-direction: column; gap: var(--space-8);
  max-height: calc(100dvh - 2 * var(--dialog-inset, 16px)); overflow-y: auto; overscroll-behavior: contain; }   /* a short phone: it scrolls */   /* 32px between its parts (MEK's ask) */
.bible-welcome-main { display: flex; flex-direction: column; gap: var(--space-8); }   /* its parts, as the page's own */
.bible-welcome-rubric + .bible-welcome-keys { margin-top: calc(var(--space-3) - var(--space-8)); }   /* a heading keeps to what it heads */
.bible-welcome:focus { outline: none; }   /* focused on opening, so no control wears the ring */
.bible-welcome p, .bible-welcome h2, .bible-welcome h3 { margin: 0; }
.bible-welcome-close { position: absolute; top: var(--space-3); right: var(--space-3); }
.bible-welcome-title { display: grid; justify-items: center; gap: var(--space-1); font: inherit; }
.bible-welcome-name { display: grid; font-size: 51px; line-height: 1; white-space: pre; font-synthesis: none;   /* 3× its 17 grid */
  -webkit-font-smoothing: none; -moz-osx-font-smoothing: unset; }
.bible-welcome-name > span { grid-area: 1 / 1; }
.bible-welcome-text { display: flow-root; }
.bible-welcome-rubric { font: 20px/24px var(--font-display); color: var(--rubric); }
.bible-welcome-keys { display: grid; grid-template-columns: auto 1fr; gap: var(--space-2) var(--space-4); margin: 0; }
.bible-welcome-keys dt { color: var(--text-strong); white-space: nowrap; }
.bible-welcome-keys dd { margin: 0; color: var(--text-muted); }
.bible-welcome kbd { font-family: var(--font-mono); color: var(--rubric); }   /* as the verse numbers */
@media (hover: none), (max-width: 900px) { .bible-welcome-key { display: none; } }   /* no keyboard, or no pages to turn: the heading and its list both gone */
.bible-welcome-foot { display: flex; justify-content: center; gap: var(--space-2); }   /* Credits (plain, a link to its own page) beside Start reading (primary) */
/* every primary button here as the welcome's Start reading: gilt edge and ground, a rubric label (the share card's Share,
   the note's Save), where the system's primary takes the theme's accent */
.btn.px-box.primary, .bible-welcome-go { --edge: var(--gilt); --edge-to: var(--gilt); --fill: var(--gilt-ground); --fill-to: var(--gilt-ground); color: var(--rubric); }
.btn.px-box.primary:is(:hover, :focus-visible), .bible-welcome-go:is(:hover, :focus-visible) { --edge: var(--rubric); --edge-to: var(--rubric); }
@media (max-width: 400px) { .bible-welcome-name { font-size: 34px; } }   /* a narrow phone: 2× its grid, so the seven tiles fit (3× takes 336px) */
@media (max-width: 480px) { .bible-welcome { padding-inline: var(--space-4); }
  .bible-welcome-keys { grid-template-columns: 1fr; gap: 0; } .bible-welcome-keys dd { margin-bottom: var(--space-2); } }

/* The search, under the bar: its field, a status line, the verses found (each its reference in rubric, then its words) */
.bible-search { width: min(1200px, calc(100vw - 2 * var(--dialog-inset, 16px))); max-width: none;
  height: min(880px, calc(100dvh - 2 * var(--dialog-inset, 16px))); max-height: none; }   /* one size, whatever it finds:
  the bookmarks' (MEK's ask) */
.bible-search[open] { display: flex; flex-direction: column; gap: var(--space-3); }
.bible-search-field { gap: var(--space-2); }
.bible-search-field > .icon { flex: none; color: var(--text-muted); }
.bible-search-field input::-webkit-search-cancel-button { appearance: none; -webkit-appearance: none; }   /* the dialog has its close */
/* the field and the pick on one row; the searches made under them; the verses found under their books' names (as the
   bookmarks' groups), each book's in as many columns as fit, each a reading line */
.bible-search-bar { display: flex; gap: var(--space-4); align-items: center; }
.bible-search-bar > .bible-search-field { flex: 1 1 auto; min-width: 0; }
.bible-search-scope { flex: none; }
.bible-search-scope .pick-menu { max-height: min(480px, 60vh); overflow-y: auto; }
.bible-search-scope .pick-label { display: flex; flex: 1 1 auto; }   /* its count at the right */
.bible-scope-n { margin-left: auto; padding-left: var(--space-4); }
.bible-search-recent { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-2) var(--space-4); }
.bible-search-recent[hidden] { display: none; }
.bible-search-past-list { display: contents; }
.bible-results-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
#search-status:empty { display: none; }   /* no line kept for it with nothing to say */
.bible-results-book { margin: var(--space-6) 0 var(--space-2); font: 20px/24px var(--font-display); color: var(--rubric); }
.bible-results-list > :first-child { margin-top: 0; }
.bible-results-book > .t-note { font: var(--text-sm)/1 var(--font-mono); color: var(--text-muted); }
.bible-results { list-style: none; margin: 0; padding: 0; display: grid; align-content: start; gap: var(--space-3) var(--space-6);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
/* the words found: a square-cornered block of gilt ground behind them (MEK's ask) */
.bible-hit { background: color-mix(in srgb, var(--gilt) 30%, transparent); color: inherit; border-radius: 0; }
@media (max-width: 640px) { .bible-search-bar { flex-wrap: wrap; gap: var(--space-2); } }
.bible-result { display: block; text-decoration: none; color: var(--text); }
.bible-result:hover, .bible-result:focus-visible { color: var(--text-strong); }
.bible-result-ref { font-family: var(--font-mono); }

/* The text: the system's body, Dosage 16 smoothed on a 24px line. One column on a phone and a tablet; from 901px up
   (over --bp-tablet) pages of two columns, as a manuscript's leaf, and three over 1200px (--bp-desktop), each page as tall as the window in whole lines
   (app.js and pages.js pour the text into them), so a column is read down, then the next, then the page below; a
   verse that doesn't fit the page's foot breaks at a word and goes on over the page. */
.bible-page { --bible-line: 24px; max-width: 640px; margin-inline: auto; padding-bottom: var(--rhythm); }
.bible-text { font-size: var(--bible-size, var(--text-md)); line-height: var(--bible-line); color: var(--text); }
/* The text's size, picked in the welcome (MEK's ask; app.js, kept as tidings-size): Small 14 on 20, Regular the
   body's 16 on 24, Large 20 on 28; the initial three lines of each, Parched on its 17 grid (3×, 4×, 5×) */
:root[data-size="small"] .bible-page { --bible-line: 20px; --bible-size: 14px; --initial-size: 51px; }
:root[data-size="large"] .bible-page { --bible-line: 28px; --bible-size: 20px; --initial-size: 85px; }
/* Settings (index.html #settings-body, in the page's popover): two by two (MEK's ask: tighter), each setting its name
   over its control: the theme and the text's size, then the Greek and Offline mode; the theme's sun and moon, the
   text's size an A at each size (Dosage Humanist 12, 16 and 20, on one baseline), the toggles */
.bible-settings { display: grid; grid-template-columns: repeat(2, auto); padding: var(--space-1); }   /* 4px more room inside the panel each side (MEK's ask) */
/* four quarters, a 1px rule between (MEK's ask): the left column 16px from the rule, the right 16px after it, the top
   row 12px over it, the bottom 12px under */
.bible-settings > * { padding: 0; }
.bible-settings > :nth-child(odd) { padding-right: var(--space-4); border-right: var(--stroke) solid var(--line); }
.bible-settings > :nth-child(even) { padding-left: var(--space-4); }
.bible-settings > :nth-child(-n + 2) { padding-bottom: var(--space-3); border-bottom: var(--stroke) solid var(--line); }
.bible-settings > :nth-child(n + 3) { padding-top: var(--space-3); }
:is(.bible-settings-panel, .bible-version-panel) .flyout-head { display: none; }   /* no head (MEK's ask), Settings' and a testament's versions': the panel keeps its name for a screen reader; shut by its button, Esc or a press outside */
.bible-settings-row { display: grid; gap: var(--space-2); align-content: start; justify-items: start; }
.bible-settings-label { font: var(--text-sm)/20px var(--font-ui); color: var(--text-muted); }
/* On or off (Greek bilingual; MEK's ask, a design of the idea's own: the system has no toggle): a track 40 x 22 with
   stepped corners and a 1px line, a 14px square knob 4px inside it; off, the knob at the left in the muted ink on the
   ground; on, at the right in rubric, the track on the gilt ground with a gilt line. The knob slides its 18px in
   whole pixels, 6 frames (steps), none under reduced motion. Hover dissolves the line to the strong ink, as a
   button's edge; focus the system's dashed ring. Promote as a toggle part when a second app wants one. */
.bible-toggle { --toggle-line: var(--text-muted); --toggle-ground: var(--bg); position: relative; flex: none;
  width: 40px; height: 22px; padding: 0; border: 0; cursor: pointer; background: var(--toggle-line);
  clip-path: polygon(1px 0, calc(100% - 1px) 0, calc(100% - 1px) 1px, 100% 1px, 100% calc(100% - 1px), calc(100% - 1px) calc(100% - 1px),
    calc(100% - 1px) 100%, 1px 100%, 1px calc(100% - 1px), 0 calc(100% - 1px), 0 1px, 1px 1px); }
.bible-toggle::before { content: ""; position: absolute; inset: 1px; background: var(--toggle-ground);
  clip-path: polygon(1px 0, calc(100% - 1px) 0, calc(100% - 1px) 1px, 100% 1px, 100% calc(100% - 1px), calc(100% - 1px) calc(100% - 1px),
    calc(100% - 1px) 100%, 1px 100%, 1px calc(100% - 1px), 0 calc(100% - 1px), 0 1px, 1px 1px); }
.bible-toggle-knob { position: absolute; top: 4px; left: 4px; width: 14px; height: 14px; background: var(--text-muted);
  clip-path: polygon(1px 0, 13px 0, 13px 1px, 14px 1px, 14px 13px, 13px 13px, 13px 14px, 1px 14px, 1px 13px, 0 13px, 0 1px, 1px 1px);
  transition: translate calc(6 * var(--px-frame)) steps(6, end), background-color 0s; }
.bible-toggle:is([aria-checked="true"], input:checked + *) { --toggle-line: var(--gilt); --toggle-ground: var(--gilt-ground); }
.bible-toggle:is([aria-checked="true"], input:checked + *) > .bible-toggle-knob { translate: 18px 0; background: var(--rubric); }
.bible-toggle:hover, label:hover > .bible-toggle { --toggle-line: var(--text-strong); }
input:focus-visible + .bible-toggle { clip-path: none; outline: var(--stroke) dashed var(--focus-ring); outline-offset: var(--focus-offset); }
.bible-toggle:focus { outline: none; }
.bible-toggle:focus-visible { clip-path: none; outline: var(--stroke) dashed var(--focus-ring); outline-offset: var(--focus-offset); }
@media (prefers-reduced-motion: reduce) { .bible-toggle-knob { transition: none; } }
.bible-size .btn { align-items: baseline; justify-content: center; width: var(--btn-icon-box, 36px); padding-inline: 0; }   /* one width, whatever the A's size (MEK's ask); the sun and moon stay the system's icon buttons as they are, centred by it */
.bible-size-a { font-family: var(--font-ui); line-height: 18px; }
.bible-size-a.s { font-size: 12px; } .bible-size-a.m { font-size: 16px; } .bible-size-a.l { font-size: 20px; }
.bible-chapter + .bible-chapter { margin-top: var(--bible-line); }
.bible-chapter > h2 { font: inherit; font-family: var(--font-display); color: var(--rubric); margin-bottom: var(--bible-line); }   /* a chapter's name in a whole book, in rubric as a scribe titled one (MEK's ask) */
.bible-text p { margin: 0; }
.bible-sheet-text p + p { text-indent: 2ch; }   /* a new paragraph: indented, no gap, as a book sets it (one carried on from
                                             the page before opens its page, so it isn't) */
/* A page: its text, then its notes at the foot (pages.js). On a phone there's one page, the chapter's notes at its end. */
.bible-sheet { display: flex; flex-direction: column; }
.bible-sheet-text { flex: 1 1 auto; min-height: 0; }
.bible-sheet-foot { margin-top: var(--bible-line); padding-top: var(--space-2); border-top: var(--stroke) solid var(--line);
  font-size: var(--text-xs); line-height: 18px; color: var(--text-muted); }
.bible-sheet-foot[hidden] { display: none; }
@media (min-width: 700px) and (min-height: 700px), (min-width: 901px) {   /* a portrait tablet and up (app.js PAGED; MEK's ask) */
  .bible-page { max-width: 800px; }
  .bible-sheet-text, .bible-sheet-foot { columns: 2; column-gap: var(--space-12); }
  .bible-sheet-text { column-fill: auto; }
  .bible-sheet-last > .bible-sheet-text { column-fill: balance; }   /* the chapter's last page: its columns even */
  .bible-sheet + .bible-sheet { margin-top: var(--space-16); }
  .bible-sheet-foot { flex: none; margin-top: var(--space-3); }
  /* The catchword: the next page's first word at this one's foot, under its last column at the right, just under
     its notes at their size, in the gap between pages (so it takes no room from the text; the gap 64, so it plainly
     belongs to the page above), as a scribe wrote it, in rubric (MEK's ask); a button that takes you to that page,
     leaning a pixel down on hover, never copied */
  .bible-sheet { position: relative; }
  .bible-catchword { position: absolute; top: 100%; right: 0; margin-top: var(--space-1); padding: 0; border: 0;
    background: none; font: var(--text-xs)/18px var(--font-ui); color: var(--rubric); cursor: pointer;
    user-select: none; -webkit-user-select: none; transition: translate calc(2 * var(--px-frame)) steps(2, end); }
  .bible-catchword:is(:hover, :focus-visible) { translate: 0 2px; }
  .bible-catchword::after { content: " >"; }   /* "streams >": on to it (MEK's ask); not read, the label says so */
}
@media (min-width: 1201px) {   /* over --bp-desktop: room for a third column of the same measure (376px) */
  .bible-page { max-width: 1224px; }
  .bible-sheet-text, .bible-sheet-foot { columns: 3; }
}
/* To the chapter before and after: MEK's arrow, drawn from its pixels (arrow.js, art/arrow.json, painted in
   tools/arrow.html; 15 × 17, Parched's tile size) at 3× (45 × 51; MEK's ask), each pixel one of the initial's inks.
   On a wide screen fixed at each side, centred top to bottom, in a gutter widened for them (96, so they never cover
   the text); on a phone or tablet, at the chapter's end, one at each side. */
.bible-turn { display: flex; justify-content: space-between; margin-top: var(--rhythm); }
.bible-turn-link { display: block; width: 45px; height: 51px; }
.bible-turn-link > svg { display: block; width: 100%; height: 100%; }
.bible-turn-next { margin-left: auto; }
.arrow-g { fill: var(--gilt); }
.arrow-r { fill: var(--rubric); }
.arrow-f { fill: var(--gilt-ground); }
.bible-turn-link:focus-visible .arrow-f { fill: var(--gilt); }   /* a keyboard's focus lights its ground; a hover only leans (below) */
@media (min-width: 901px) {   /* over --bp-tablet */
  /* the reading area scrolls by itself between the margins (45px each) and 16px clear of them, so its scrollbar sits
     16px inside the right one, by the text, not on the window's edge (MEK's ask); the window itself never scrolls */
  html:has(.bible-scroll) { overflow: hidden; scrollbar-gutter: auto; }   /* the reader only: its own box scrolls (the credits page scrolls as a page) */
  .bible-scroll { position: fixed; inset: 0 calc(45px + var(--space-4)); overflow-y: auto; scroll-padding-top: var(--scroll-pad);
    scrollbar-gutter: stable;   /* its scrollbar's room kept, scrolling or not: the bar never shifts (MEK's ask) */
    scroll-behavior: smooth; overscroll-behavior: contain; }
  .page { --page-gutter: 35px; --page-max: calc(1224px + 70px); }   /* the text 96px from the window's edges, as before */
  /* its scrollbar's track starts under the bar (--bar-h, app.js), so the bar never has the scrollbar over it (MEK's
     ask; where the browser draws its own thin bar, as Firefox does, it runs the whole height) */
  .bible-scroll::-webkit-scrollbar-track { margin-top: var(--bar-h, 0px); }
  .bible-turn-link { position: fixed; top: round(50% - 25px, 1px); z-index: var(--z-sticky); }
  .bible-turn-prev { left: var(--space-2); }   /* in the margins' strips, 8px in from the screen's edges (MEK's ask) */
  .bible-turn-next { right: var(--space-2); }
}

/* The margins (margins.js, app.js drawMargins; MEK's Figma frame): a strip of Parched's * tiles down each side of a
   wide screen, on the window's very edges (MEK's ask), the arrows in them; stars only. Parched at 51 (3× its 17 grid, crisp),
   a tile 45 × 51 laid every 48px, each overlapping the next by one of its pixels, no gap (MEK's ask). Quiet beside the initial, as the frame draws them: each tile's frame and star in a
   tan of gilt into the ground, its inside the ground. None on a phone or tablet. */
.bible-margin { display: none; }
@media (min-width: 901px) {   /* over --bp-tablet */
  .bible-margin { display: block; position: fixed; top: 0; bottom: 0; width: 45px; overflow: hidden; pointer-events: none;
    --margin-ink: color-mix(in srgb, var(--gilt) 45%, var(--bg)); }
  .bible-margin-left { left: 0; }
  .bible-margin-right { right: 0; }
  .margin-tile { position: absolute; left: 0; display: grid; font-size: 51px; line-height: 54px; white-space: pre;
    -webkit-font-smoothing: none; -moz-osx-font-smoothing: unset; }
  .margin-tile > span { grid-area: 1 / 1; }
  .margin-fill { font-family: "Parched Fill"; color: var(--bg); }
  .margin-frame { font-family: "Parched Frame"; color: var(--margin-ink); }
  .margin-letter { font-family: "Parched Letter"; color: var(--margin-ink); }
}

/* A note's mark in the text: a small rubric * before the word it's about (Brenton's place for it), raised as a verse's
   number is; ornament, out of the reading order, the note itself read at the foot */
.bible-mark { font: var(--text-xs)/0 var(--font-mono); position: relative; top: -.5em; margin-right: 1px; }
/* a mark opens its note (app.js, the page's popover): a hand over it, a hit area round it as a verse's number has */
.bible-mark { cursor: pointer; }
.bible-mark::after { content: ""; position: absolute; inset: -10px -6px -4px; }
.bible-mark:hover { color: var(--text-strong); }
.bible-note-panel { max-width: min(360px, calc(100vw - 16px)); }
.bible-note-panel .bible-footnote { font-size: var(--text-sm); line-height: 20px; color: var(--text); }
/* A note: its verse in rubric, its labels (Gr., Lit., Alex.) in the strong ink, its words muted; never split */
.bible-footnote { margin: 0; break-inside: avoid; }
.bible-footnote-ref { font-family: var(--font-mono); }
.bible-footnote-label { color: var(--text-strong); }
.bible-note { color: var(--text-muted); }   /* a chapter that's only a note (Brenton's Proverbs 30) */

/* A verse's number: small Mono in rubric (the Illumination part's .rubric, a book's red, as a scribe numbered them),
   raised without lifting its line. Not a link: ornament only. */
.bible-v { font: var(--text-xs)/0 var(--font-mono); position: relative; top: -.5em; margin-right: .25em; cursor: pointer; }
/* a tap on a verse's number copies a link to it (app.js): its line box is flat, so a hit area round it */
.bible-v::after { content: ""; position: absolute; inset: -10px -4px -2px; }
/* A reading (an address with verses): its verses in the full ink, the rest of the chapter quieter */
.bible-text.reading .bible-verse { color: var(--text-muted); }
.bible-text.reading .bible-verse.here { color: var(--text-strong); }

/* ---------- The initial ----------
   The chapter's first letter in Parched, three layers on one spot: the tile's inside (Fill) in the initial's field,
   its frame in gilt, its letter in rubric. 68px is four times Parched's 17px grid, on a 72px slot (its 18/17 line):
   three lines of the text. Out of the reading order (aria-hidden) and never copied: the word keeps
   its own letter (.drop-initial-letter, the Illumination part's, hidden from sight). */
.bible-initial { float: left; display: grid; height: calc(3 * var(--bible-line, 24px)); margin: 0 var(--space-1) 0 0;   /* close to its words (MEK's ask) */
  font-size: var(--initial-size, 68px); line-height: calc(3 * var(--bible-line, 24px)); font-synthesis: none; -webkit-font-smoothing: none; -moz-osx-font-smoothing: unset;
  user-select: none; -webkit-user-select: none; }
.bible-initial > span { grid-area: 1 / 1; }
.bible-initial-fill { font-family: "Parched Fill"; color: var(--gilt-ground); }
.bible-initial-frame { font-family: "Parched Frame"; color: var(--gilt); }
.bible-initial-letter { font-family: "Parched Letter"; color: var(--rubric); }


/* Greek in Brenton's notes: Dosage 1.2's Greek (a preview copy, MEK's ask), for those letters only (unicode-range), the
   rest Dosage as the system has it. A few polytonic letters it lacks (ᾳ ἔ ὀ …) fall back. Goes when the system ships 1.2. */
@font-face { font-family: "Dosage Greek"; src: url("fonts/Dosage-Greek.woff2") format("woff2"); font-display: swap;
  unicode-range: U+0300-036F, U+0370-03FF, U+1F00-1FFF; }
.bible-text { font-family: "Dosage Greek", var(--font-ui); }

@font-face { font-family: "Parched Fill"; src: url("fonts/Parched-Fill.woff2") format("woff2"); font-display: block; }
@font-face { font-family: "Parched Frame"; src: url("fonts/Parched-Frame.woff2") format("woff2"); font-display: block; }
@font-face { font-family: "Parched Letter"; src: url("fonts/Parched-Letter.woff2") format("woff2"); font-display: block; }

/* ---------- Motion (MEK's ask: smoother) ----------
   Slides by whole pixels, one a display frame (--px-frame, steps of one pixel), as the system's slides move, so they
   read smooth and never land between pixels; the system's reduced-motion rule (motion.css) stops them all.
   The book's and the chapter's lists settle 8px down as they fade in, in place of the parts' 2-frame pop; the search
   rises 12px into place and its backdrop fades; the chapter arrows lean 4px toward where they go on hover, and sink
   a pixel when pressed. A chapter turning slides its text in 16px from the side it's in the book (app.js `turn`;
   MEK's ask, past the system's no animated page change). */
@keyframes tidings-drop { from { opacity: 0; translate: 0 -8px; } to { opacity: 1; translate: 0 0; } }
@keyframes tidings-rise { from { opacity: 0; translate: 0 12px; } to { opacity: 1; translate: 0 0; } }
@keyframes tidings-fade { from { opacity: 0; } to { opacity: 1; } }
.bible-where .pick-menu:not([hidden]) { animation: tidings-drop calc(8 * var(--px-frame)) steps(8, end) both; }
.bible-welcome[open] { animation: tidings-rise calc(12 * var(--px-frame)) steps(12, end) both; }
.bible-welcome[open]::backdrop { animation: tidings-fade calc(12 * var(--px-frame)) var(--ease-fade) both; }
.bible-search[open] { animation: tidings-rise calc(12 * var(--px-frame)) steps(12, end) both; }
.bible-search[open]::backdrop { animation: tidings-fade calc(12 * var(--px-frame)) var(--ease-fade) both; }
/* the search's backdrop: the page's own ground at 85% (MEK's ask), not the system's grey overlay and its dither */
.bible-welcome::backdrop, .bible-search::backdrop { background: color-mix(in srgb, var(--bg) 85%, transparent); background-image: none; }
.bible-turn-link > svg { transition: translate calc(4 * var(--px-frame)) steps(4, end); }
.bible-turn-prev:is(:hover, :focus-visible) > svg { translate: -4px 0; }
.bible-turn-next:is(:hover, :focus-visible) > svg { translate: 4px 0; }
.bible-turn-prev:active > svg { translate: -4px 1px; }
.bible-turn-next:active > svg { translate: 4px 1px; }

/* ---------- The Greek beside it (MEK's ask) ----------
   The bar's ΑΩ switch: on, each verse is a row (app.js drawChapter), the English on the left, the Greek on the right
   in uncial capitals (Brenton's Greek, the 1904 Patriarchal text; Dosage 1.2's Greek letters), a thin line between
   them that runs unbroken down the page, the rows level verse by verse. A page holds one pair (no columns), its rows
   whole (a row never breaks over a page). On a phone the Greek stands under each English verse. */
.bilingual .bible-sheet-text { columns: 1 !important; }
.bilingual .bible-sheet-text p + p { text-indent: 0; }
.bible-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--space-6); }
.bible-row > span { display: block; padding-bottom: var(--space-2); }   /* a little air between verses, as rows */
.bible-gr { border-left: var(--stroke) solid var(--line); padding-left: var(--space-6); color: var(--text);
  letter-spacing: .04em; }
.bible-gr-first { font-size: 1.25em; line-height: 0; }
.reading .bible-row .bible-gr { color: var(--text-muted); }
.reading .bible-row.here .bible-gr { color: var(--text-strong); }
@media (max-width: 900px) {   /* --bp-tablet and under: the Greek under its English verse */
  .bible-row { grid-template-columns: minmax(0, 1fr); }
  .bible-gr { border-left: 0; padding-left: 0; padding-top: var(--space-1); color: var(--text-muted); }
}

/* The miniatures (miniature.js; the pilot, MEK's ask): a picture as a drop cap is, floated at the start of the paragraph
   after its verse, the text wrapping beside it, whole lines tall (its art 160 pixels wide, one CSS px each), never split over a
   column; its source named in the welcome's credits, not under it */
.bible-mini { float: left; clear: left; margin: 0 var(--space-3) 0 0; break-inside: avoid; user-select: none; -webkit-user-select: none; }
/* (clear: a picture near a chapter's start goes under its initial, never beside it, which left a hole; MEK's ask) */
.bible-mini canvas { display: block; image-rendering: pixelated; }
.bible-sheet-text p:has(> .bible-mini:first-child), .bible-flow p:has(> .bible-mini:first-child) { text-indent: 0; }
/* beside the Greek, rows keep level and their line between: the picture stands on its own over the next verse's row,
   on the English side, a line clear of it */
.bilingual .bible-mini { float: none; display: block; width: fit-content; margin: 0 0 var(--space-6); }

/* The credits (credits.html, credits.js; MEK's ask: a page of its own, as the pictures' list will grow): a manuscript
   page as the welcome is, its name in Parched linking back to the reader, the texts, the type, then each picture: where
   it stands (a link to it), whose it is, its museum and licence, and its source */
.bible-credits { max-width: 720px; margin: 0 auto; padding: var(--space-12) var(--space-6); display: flex; flex-direction: column;
  gap: var(--space-8); }
.bible-credits h1, .bible-credits h2, .bible-credits p { margin: 0; }
.bible-credits .bible-name { align-self: center; font-size: 51px; }   /* 3x its 17 grid, as the welcome's */
.bible-credits h1 { font: 20px/24px var(--font-display); color: var(--text-muted); text-align: center; margin-top: calc(var(--space-3) - var(--space-8)); }
.bible-credits h2 { font: 20px/24px var(--font-display); color: var(--rubric); }
.bible-credits section { display: flex; flex-direction: column; gap: var(--space-3); }
.bible-credits dl { display: grid; grid-template-columns: 10rem 1fr; gap: var(--space-3) var(--space-4); margin: 0; }
.bible-credits dt { color: var(--text-strong); }
.bible-credits dd { margin: 0; color: var(--text-muted); }
.bible-credits dd .link { --ink: var(--text); }
@media (max-width: 640px) { .bible-credits dl { grid-template-columns: 1fr; gap: 0; } .bible-credits dd { margin-bottom: var(--space-3); } }
/* a wide one heads a page, over its columns, centred, a line clear of the text under it; on a phone (no pages) it
   stands in the text as a block, as wide as the column at most */
.bible-mini.wide { float: none; display: block; width: fit-content; max-width: 100%; margin: 0 auto var(--space-6); }
.bible-mini.wide canvas { max-width: 100%; height: auto !important; }

/* Loading (app.js `loading`; MEK's ask): a Parched P at 51 (3x its 17 grid) in the middle of the window, muted, its
   inks (the initial's three) rising from its foot a pixel row at a time (17 rows of 3px), again and again; shown only
   if a book takes more than a moment */
.bible-loading { position: fixed; inset: 0; display: grid; place-items: center; z-index: var(--z-sticky); pointer-events: none; }
.bible-loading[hidden] { display: none; }
.bible-text.waiting { visibility: hidden; }   /* the book left behind, out of sight while the next one comes */
.bible-loading-p, .bible-loading-p > span { display: grid; font-size: 51px; line-height: 1; white-space: pre; font-synthesis: none;
  -webkit-font-smoothing: none; -moz-osx-font-smoothing: unset; }
.bible-loading-p > span, .bible-loading-p > span > span { grid-area: 1 / 1; }
.bible-loading-dim > span { color: color-mix(in srgb, var(--text-muted) 35%, var(--bg)) !important; }
.bible-loading-dim > .bible-initial-fill { color: transparent !important; }   /* muted: its outline and letter only */
.bible-loading-ink { animation: tidings-ink 1.2s steps(17, end) infinite; }
@keyframes tidings-ink { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }

/* Arriving (app.js `arrive`; MEK's ask): where a chapter, verse or link lands, a gilt glow behind it that fades */
.bible-arrive { animation: tidings-arrive 1.6s ease-out; }   /* square-cornered, as all the gilt (MEK's ask) */
@keyframes tidings-arrive {   /* a square block of gilt, its own box (no glow round it: the bar's strip of ground
  cut its top off, an irregular shape; MEK's ask) */
  from { background-color: color-mix(in srgb, var(--gilt) 30%, transparent); }
  to { background-color: transparent; } }

/* The bar's chapter, as the scroll moves it on: the new number rises (or falls) into place (MEK's ask) */
#chapter-now { display: inline-block; }

@media (prefers-reduced-motion: reduce) { .bible-loading-ink { animation: none; } .bible-arrive { animation: none; } }

/* The welcome's byline under its words, a link to MEK.txt's site */
.bible-welcome-by { color: var(--text-muted); margin-top: calc(var(--space-2) - var(--space-8)) !important; }

/* The books' list: a field over the contents that finds a book as you type (MEK's ask), the system's field with a
   search icon, as the search's; a testament's column with no book left is put away */
.bible-books-find { margin: var(--space-2) 0 var(--space-3); gap: var(--space-2); }
/* each testament's version under the field (MEK's ask): "Old Testament Septuagint ▾", a quiet dropdown opening a menu
   in the page's popover */
.bible-version { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-6); margin: 0 0 var(--space-3); }
.bible-version-btn { display: inline-flex; align-items: baseline; gap: var(--space-2); cursor: pointer; white-space: nowrap; }
.bible-version-btn:focus-visible { outline: 2px dashed var(--text-strong); outline-offset: 2px; }
.bible-version-of { font: var(--text-sm)/1 var(--font-ui); color: var(--text-muted); }
.bible-version-now { display: inline-flex; align-items: center; gap: 2px; font: var(--text-sm)/1 var(--font-ui); color: var(--text-strong); }   /* Dosage Humanist, its label's size (MEK's ask) */
.bible-version-btn:hover .bible-version-now { color: var(--rubric); }
.bible-version-menu { display: grid; min-width: 200px; }
.bible-version-menu > button { display: block; width: 100%; padding: var(--space-1) var(--space-2); border: 0; background: none;
  text-align: left; font: var(--text-base)/24px var(--font-ui); color: var(--text-strong); cursor: pointer; }
.bible-version-menu > button:hover, .bible-version-menu > button:focus-visible { background: var(--gilt-ground); outline: none; }
.bible-version-menu > button.on { color: var(--rubric); }
.bible-version-menu > button.on::after { content: " ✓"; }
.bible-books-find > .icon { flex: none; color: var(--text-muted); }
.bible-books-find input::-webkit-search-cancel-button { appearance: none; -webkit-appearance: none; }
.bible-books-col[hidden], .bible-books-col > button[hidden] { display: none; }

/* The pictures' gold: the Byzantine night's gilt in both themes (MEK's ask: warmer, and the same by day and by night);
   raw, the one gilt the day has no token for */
:root { --mini-gilt: #d9a066; }
/* a list open: the reading holds still (app.js), the scrollbar's room kept (scrollbar-gutter), so nothing shifts */
html.list-open { scroll-behavior: auto; }
@media (min-width: 901px) { html.list-open .bible-scroll { overflow-y: hidden; scroll-behavior: auto; } }   /* (a phone's scroll, the window's, is held by app.js: hidden, the reading's box would unstick the bar) */
/* the books' rows closed up when a short window would need more columns than fit (app.js layBooks) */
.bible-where .bible-books-cols.tight button { padding-block: 1px 2px; }
.bible-where .bible-books-cols.tight button::before { top: 1px; }
/* On a phone or tablet a whole book is one long page: the chapters out of view aren't drawn until they're near (each
   keeps its height once seen), so a fast flick never shows the page blank while Safari catches up (MEK's ask) */
@media (max-width: 900px) { .bible-chapter.poured { content-visibility: auto; contain-intrinsic-size: auto 2400px; } }   /* (poured: an empty one waiting is small, not 2400px) */

/* With the page under a phone's status bar and round its notch (viewport-fit=cover), the reading and the bar stand
   clear of the notch's sides (landscape) */
@media (max-width: 900px) {
  .bible-top, .bible-page { margin-inline: env(safe-area-inset-left, 0px) env(safe-area-inset-right, 0px); }
}

/* A verse's menu (app.js; the system's menu rows, fixed by the number tapped); a number that opens it is a button to
   the hand. A bookmarked verse's number sits on gilt, a noted one's is underlined in gilt; a chapter's initial carries
   its first verse's (MEK's ask) */
.bible-verse-menu { position: fixed; z-index: var(--z-menu); top: 0; left: 0; }
.bible-verse-menu .menu-label { display: inline-flex; align-items: center; gap: var(--space-2); }   /* each icon beside its word, sliding with it */
.bible-verse-menu .menu-label > .icon { flex: none; color: var(--text-muted); }
.bible-verse-menu > button { padding: 2px 0 4px; }   /* 2px more over and under each row than the menu part's 0 and 2 (MEK's ask) */
.bible-verse-menu > button::before { top: 2px; }   /* its > level with the word */
.bible-verse-menu.above > .bible-menu-arrow { top: auto; bottom: -4px; rotate: 180deg; }   /* the menu over the number: its arrow at its foot, pointing down */
.bible-verse-menu > button:not([hidden]):not(:has(~ button:not([hidden]))) { border-bottom: 0; padding-bottom: 0; margin-bottom: -1px; }   /* the last row shown (rows hidden after it): no rule under it, and the frame's room under it the same as over the first (MEK's ask) */
.bible-verse-menu > button:not([hidden]):not(button:not([hidden]) ~ button) { padding-top: 0; }   /* the first: the frame's own room over it, nothing added (MEK's ask: between the rows only) */
.bible-verse-menu > button:not([hidden]):not(button:not([hidden]) ~ button)::before { top: 0; }
.bible-initial { cursor: pointer; }
/* a bookmarked verse's number on a square of gilt (MEK's ask), centred on it, at least 16px and as wide as the number
   and 2px each side */
.bible-v.marked { isolation: isolate; }
.bible-v.marked::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 50%; translate: -50% -50%;
  width: max(16px, 100% + 4px); aspect-ratio: 1; background: color-mix(in srgb, var(--gilt) 30%, transparent); }
.bible-v.noted { text-decoration: underline 1px var(--gilt); text-underline-offset: 3px; }
.bible-initial.marked { outline: 2px solid var(--gilt); outline-offset: 2px; }
.bible-initial.noted { box-shadow: 0 4px 0 -2px var(--gilt); }
/* the note, the list, the picture: the system's dialogs */
.bible-note-edit { width: min(560px, calc(100vw - 2 * var(--dialog-inset, 16px))); max-width: none; }
.bible-note-edit[open], .bible-marks[open], .bible-card[open] { display: flex; flex-direction: column; gap: var(--space-4); }
.bible-note-verse { max-height: 6lh; overflow: auto; }
.bible-marks { width: min(1200px, calc(100vw - 2 * var(--dialog-inset, 16px))); max-width: none;   /* a place to work in */
  height: min(880px, calc(100dvh - 2 * var(--dialog-inset, 16px))); max-height: none; }
.bible-marks-bar { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.bible-marks-find { flex: 1 1 120px; min-width: 0; gap: var(--space-2); }   /* one row with its buttons and Sort, on a phone too */
.bible-marks-find > .icon { flex: none; color: var(--text-muted); }
.bible-marks-find input::-webkit-search-cancel-button { appearance: none; -webkit-appearance: none; }
/* the list: each day (or book) a rubric heading over its cards */
.bible-marks-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: var(--space-6);
  padding-right: var(--space-2); }
.bible-marks-group-head { margin: 0 0 var(--space-2); font: 20px/24px var(--font-display); color: var(--rubric); }
/* a bento of tiles (MEK's ask): as many columns as fit, the tiles of a row one height, their buttons on its foot */
.bible-marks-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3);
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.bible-marks-card { display: flex; flex-direction: column; min-width: 0; padding: var(--space-3) var(--space-4) var(--space-3);
  background: var(--gilt-ground); }
.bible-marks-card-head { display: flex; align-items: baseline; gap: var(--space-2); }
.bible-marks-go { display: inline-flex; align-items: center; gap: var(--space-2); min-width: 0; text-decoration: none; font: 20px/24px var(--font-display); }
.bible-marks-go:hover .rubric, .bible-marks-go:focus-visible .rubric { text-decoration: underline; }
.bible-marks-go > .icon { flex: none; color: var(--gilt); }
.bible-marks-when { margin-left: auto; flex: none; }
.bible-marks-text { margin: var(--space-1) 0 0; color: var(--text); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3;
  line-clamp: 3; overflow: hidden; }
.bible-marks-note { margin: var(--space-2) 0 0; color: var(--text-strong); white-space: pre-wrap; display: -webkit-box;
  -webkit-box-orient: vertical; -webkit-line-clamp: 6; line-clamp: 6; overflow: hidden; }
.bible-marks-note::before { content: "Note · "; color: var(--rubric); }
.bible-marks-foot { display: flex; align-items: center; gap: var(--space-3); margin-top: auto; padding-top: var(--space-3); }
.bible-marks-kind { flex: none; display: flex; gap: var(--space-2); color: var(--gilt); }
/* the buttons' size (1.5×), the first drawing's edge on the card's text edge: a bookmark starts 4 of its 15 pixels in,
   a pencil 3 */
.bible-marks-kind .icon { flex: none; max-width: none; width: var(--icon-text); height: var(--icon-text); }
.bible-marks-kind > [data-kind="bookmark"]:first-child { margin-left: -6px; }
.bible-marks-kind > [data-kind="note"]:first-child { margin-left: -4.5px; }
.bible-marks-tools { display: flex; gap: var(--space-2); margin-left: auto; }
.bible-marks-empty { margin: var(--space-6) 0; text-align: center; }
.bible-card { width: min(760px, calc(100vw - 2 * var(--dialog-inset, 16px))); max-width: none; }
.bible-card-frame canvas { display: block; width: 100%; height: auto; image-rendering: pixelated; }
.bible-note-edit::backdrop, .bible-marks::backdrop, .bible-card::backdrop { background: color-mix(in srgb, var(--bg) 85%, transparent); background-image: none; }
/* The bookmarks' dialogs (the list, a note, a picture) as the welcome is: a manuscript leaf on the ground in its double
   gilt rule, its title a rubric heading, its close in the corner; rising into place as it does, the page washed behind
   (MEK's ask: the same look and motion as the welcome) */
.bible-leaf { box-sizing: border-box; padding: var(--space-6); background: var(--bg); border: 1px solid var(--gilt);
  box-shadow: inset 0 0 0 2px var(--bg), inset 0 0 0 3px var(--gilt); }
.bible-leaf .dialog-head > h2 { font: 20px/24px var(--font-display); color: var(--rubric); }
.bible-leaf .dialog-foot { border-top-color: color-mix(in srgb, var(--gilt) 40%, var(--bg)); }
.bible-leaf:focus, .bible-verse-menu:focus { outline: none; }
.bible-leaf[open] { animation: tidings-rise calc(12 * var(--px-frame)) steps(12, end) both; }
.bible-leaf[open]::backdrop { animation: tidings-fade calc(12 * var(--px-frame)) var(--ease-fade) both; }
@media (max-width: 480px) { .bible-leaf { padding: var(--space-4); } }
@media (prefers-reduced-motion: reduce) { .bible-leaf[open], .bible-leaf[open]::backdrop { animation: none; } }

/* A list's picked row: its key in rubric, as its mark is (MEK's ask), where the part takes --500-accent (a blue here) */
.pick-menu button:is(.on, [aria-selected="true"]) kbd { color: var(--rubric); }

/* The window resized: the old pages cross-fade into the new (app.js, a view transition), the bar held as one piece so
   it doesn't fade through itself (MEK's ask: smooth) */
.bible-top { view-transition-name: tidings-bar; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 320ms; animation-timing-function: cubic-bezier(.2, .7, .2, 1); }
::view-transition-group(tidings-bar) { animation-duration: 320ms; animation-timing-function: cubic-bezier(.2, .7, .2, 1); }

/* The place maps (map.js; MEK's ask, the three agents' plan): a plate in the miniatures' book, floated as they are, a
   fixed 160 × 120 (the map's pixels at 2×) in a double gilt rule, the places' names under it in rubric (MEK's ask). An
   old map (MEK's pick, "C", a sepia wash): the land a wash of sand, the sea the ground stippled in a quiet ink (closer
   at the shore), the coast a gilt line, the rivers a quiet line, a rubric cross with the ground round it; by night a lit
   plate, as the miniatures are (the light ink its ground). Promote with the locator part (🟢 Design Master). */
.bible-map { width: 166px; }
/* the plate is a button that opens a small flyout (the system's look; map.js holds it under the plate, fixed, outside
   the text's columns): the wider world, the plate's window a rubric box */
.bible-map-open { display: block; width: 166px; height: 126px; padding: 0; border: 0; background: none; cursor: pointer; }   /* its size before its map comes (166 × 126: the map, its double rule) */
.bible-map-open:focus-visible { outline: 2px dashed var(--rubric); outline-offset: 4px; }
/* the page's popover (popover.js): the system's flyout panel, fixed on the page, any content */
.flyout-panel.tidings-popover { position: fixed; top: 0; left: 0; z-index: calc(var(--z-sticky) + 10); display: block; padding: var(--space-2); }   /* over the bar and its lists */
.tidings-popover:focus { outline: none; }
.tidings-popover.above .flyout-tip { top: auto; bottom: -4px; rotate: 180deg; }
.tidings-popover .flyout-head { margin: 0 0 var(--space-2); }
.bible-map-panel .bible-map-art { margin: 2px; }
.bible-map-window { fill: var(--rubric); }
.bible-map-art { display: block; margin: 2px; border: 1px solid var(--gilt); outline: 1px solid var(--gilt); outline-offset: 1px;
  --map-ground: var(--bg); --map-ink: var(--text-strong); background: var(--map-ground); }
[data-theme="byzantine"] .bible-map-art { --map-ground: var(--text-strong); --map-ink: var(--bg); }
.bible-map-sea, .bible-map-edge { fill: var(--map-ground); }
.bible-map-dot { fill: color-mix(in srgb, var(--map-ink) 30%, var(--map-ground)); }
.bible-map-land { fill: color-mix(in srgb, var(--map-sand) 45%, var(--map-ground)); }
.bible-map-river { fill: color-mix(in srgb, var(--map-ink) 50%, var(--map-ground)); }
.bible-map-coast { fill: var(--gilt); }
.bible-map-mark { fill: var(--rubric); }
.bible-map-name { display: block; margin-top: var(--space-1); font: var(--text-xs)/16px var(--font-ui); color: var(--rubric); }

/* The welcome's "Offline mode": the system's check, its meter while it saves, a line saying how far (offline.js) */
/* Offline mode, the last: its name, the toggle and a quiet line beside it; the meter and how far under it while it
   saves (offline.js) */
.bible-settings-offline { display: grid; gap: var(--space-2); align-content: start; }
.bible-settings-offline > .bible-settings-row { cursor: pointer; }
.bible-settings-control { display: flex; align-items: center; gap: var(--space-2); }
.bible-settings-note { white-space: nowrap; font: var(--text-xs)/14px var(--font-ui); color: var(--text-muted); }
.bible-settings-offline .meter { width: 100%; }
.bible-settings-offline .t-note:empty { display: none; }

/* A passage picked (app.js, "Select more"): its verses on a band of gilt, square-cornered as all the gilt; while the
   second number is awaited, the numbers wear a gilt underline, so it's plain what to tap */
.bible-picked { background: color-mix(in srgb, var(--gilt) 22%, transparent); }
html.picking .bible-v { text-decoration: underline 1px var(--gilt); text-underline-offset: 3px; cursor: cell; }

/* A way back (app.js): a pill at the foot of the screen after a jump, "Back to Genesis 3:5", over the text, rising in
   as the dialogs do; gone once the reader reads on (MEK's ask) */
.bible-back { position: fixed; z-index: var(--z-sticky); left: 0; right: 0; margin-inline: auto; width: fit-content;
  bottom: calc(var(--space-6) + env(safe-area-inset-bottom, 0px)); gap: var(--space-2); }
.bible-back:not([hidden]) { animation: tidings-rise calc(12 * var(--px-frame)) steps(12, end) both; }
@media (prefers-reduced-motion: reduce) { .bible-back:not([hidden]) { animation: none; } }

/* Today's readings (app.js drawToday; MEK's ask): at the top of the books' list, under its field, the day's Epistle and
   Gospel as links (a feast's or a saint's name before its own set) */
.bible-today { margin: 0 0 var(--space-3); }
.bible-today[hidden] { display: none; }
.bible-today-name { color: var(--text-muted); }
.bible-today-go { color: var(--rubric); }   /* the readings in rubric (MEK's ask), as the catchword: rubric as a control */
/* in the books' list, a card a set (MEK's ask: tidier): side by side as they fit, each on the initial's gilt ground,
   square as every gilt block; who it's for in the small muted face, then a row each for the Epistle and the Gospel,
   the kind quiet in a fixed slot so the readings line up, the reading in rubric */
.bible-today-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: var(--space-2); }
.bible-today-card { display: flex; flex-direction: column; gap: var(--space-1); padding: var(--space-3) var(--space-4);
  background: var(--gilt-ground); }
.bible-where .bible-today-card .bible-today-name { flex: 1 0 auto; font: var(--text-sm)/20px var(--font-ui); padding-bottom: var(--space-1); }   /* the readings at the foot, level across cards */
.bible-where .bible-today-card .bible-today-go { display: flex; align-items: baseline; gap: var(--space-3); font: 20px/24px var(--font-display);
  text-decoration: none; }
.bible-where .bible-today-kind { flex: none; width: 7ch; font: var(--text-sm)/20px var(--font-ui); color: var(--text-muted); }

/* the page's popover's close: the icon at its own 15px, smaller than a button's 1.5x (MEK's ask) */
.tidings-popover .flyout-close .icon { width: 15px; height: 15px; }
