/* =====================================================================
   The Bible reader's tools and panes (js/bible.js, js/bible-tools.js), and the text as the reader marks it and lays
   it out (highlights, styles, bands, tables, numbers, a chiasm, links). The reader's own look, the bar, the text and
   the choice of book, is in css/manuscript.css; this file adds to it and is read after it.
   ===================================================================== */

/* The ten colours the reader marks with (js/bible-study.js, COLORS), each in three strengths: --hl- a wash under the
   words of a highlight; --bd- a paler wash, for a band the width of the column behind whole lines; --hs- the colour
   itself, for a rule, a label, an underline or the rim of a swatch. Stronger by day, when the paper is light: dark
   enough there that a label in it, or the paper's colour on it, reads at 4.5:1 or more, on the paper or on a band. */
:root {
  --hl-yellow: rgba(246, 206, 60, 0.44);
  --hl-green: rgba(96, 204, 116, 0.36);
  --hl-blue: rgba(92, 156, 248, 0.42);
  --hl-pink: rgba(240, 108, 170, 0.40);
  --hl-orange: rgba(246, 140, 56, 0.42);
  --hl-purple: rgba(170, 124, 242, 0.42);
  --hl-red: rgba(238, 82, 82, 0.40);
  --hl-teal: rgba(56, 198, 186, 0.38);
  --hl-brown: rgba(184, 128, 80, 0.46);
  --hl-gray: rgba(164, 164, 176, 0.36);
  --bd-yellow: rgba(246, 206, 60, 0.17);
  --bd-green: rgba(96, 204, 116, 0.15);
  --bd-blue: rgba(92, 156, 248, 0.18);
  --bd-pink: rgba(240, 108, 170, 0.17);
  --bd-orange: rgba(246, 140, 56, 0.17);
  --bd-purple: rgba(170, 124, 242, 0.19);
  --bd-red: rgba(238, 82, 82, 0.17);
  --bd-teal: rgba(56, 198, 186, 0.16);
  --bd-brown: rgba(184, 128, 80, 0.20);
  --bd-gray: rgba(164, 164, 176, 0.15);
  --hs-yellow: #f2c94c;
  --hs-green: #6fcf7f;
  --hs-blue: #6ea8ff;
  --hs-pink: #f07ab4;
  --hs-orange: #f5994a;
  --hs-purple: #b58cff;
  --hs-red: #f26b6b;
  --hs-teal: #4fd1c5;
  --hs-brown: #c9915e;
  --hs-gray: #a9a9b5;
}
:root[data-theme="light"] {
  --hl-yellow: rgba(250, 212, 64, 0.55);
  --hl-green: rgba(126, 204, 118, 0.45);
  --hl-blue: rgba(116, 172, 244, 0.42);
  --hl-pink: rgba(244, 136, 182, 0.42);
  --hl-orange: rgba(248, 160, 76, 0.48);
  --hl-purple: rgba(178, 140, 242, 0.40);
  --hl-red: rgba(242, 112, 102, 0.40);
  --hl-teal: rgba(84, 202, 190, 0.40);
  --hl-brown: rgba(198, 150, 102, 0.42);
  --hl-gray: rgba(150, 150, 162, 0.32);
  --bd-yellow: rgba(250, 212, 64, 0.24);
  --bd-green: rgba(126, 204, 118, 0.22);
  --bd-blue: rgba(116, 172, 244, 0.20);
  --bd-pink: rgba(244, 136, 182, 0.20);
  --bd-orange: rgba(248, 160, 76, 0.22);
  --bd-purple: rgba(178, 140, 242, 0.20);
  --bd-red: rgba(242, 112, 102, 0.19);
  --bd-teal: rgba(84, 202, 190, 0.20);
  --bd-brown: rgba(198, 150, 102, 0.22);
  --bd-gray: rgba(150, 150, 162, 0.18);
  --hs-yellow: #795b00;
  --hs-green: #216c2d;
  --hs-blue: #2659b4;
  --hs-pink: #a23467;
  --hs-orange: #98470f;
  --hs-purple: #6a43c0;
  --hs-red: #a93131;
  --hs-teal: #126a63;
  --hs-brown: #7a502a;
  --hs-gray: #5a5a64;
}

/* ---- the reader's bar ----
   One bar for the reader, sticky at the top of the screen (beneath the trail back to a study, when that shows):
   how the page looks on the left (Display, Panels), the place of the active pane in the middle, the study tools on the
   right. Its room (.bb-rbar) holds still; only what is drawn of it (.bb-rb-in) moves, so that when it folds to one line
   nothing beneath it moves: the room left above that line is clear, and the text shows through it. */
.bb-rbar { position: sticky; top: var(--bb-crumb-h, 0px); z-index: 5; pointer-events: none; }
.bb-rb-in { --bb-strip-h: 2.6rem; position: relative; top: 0; pointer-events: auto; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; min-height: 3.35rem; padding: 3px 0; background: var(--bg); border-top: 3px double var(--press); border-bottom: 1px solid var(--rule); transition: top 0.22s ease; }
.bb-rb-side { display: flex; align-items: center; gap: 2px; min-width: 0; }
.bb-rb-study { justify-content: flex-end; }
.bb-rb-place { display: flex; align-items: center; gap: 6px; }
/* a tool: its sign over its name, in small capitals */
.bb-tb { position: relative; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 3.7rem; min-height: 2.9rem; padding: 4px 6px 3px; border: 0; border-radius: 0; background: none; box-shadow: none; font: inherit; font-family: var(--caps); font-weight: var(--caps-wt); font-size: 0.8rem; letter-spacing: 0.01em; line-height: 1.05; color: var(--muted); white-space: nowrap; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.bb-tb[hidden], .bb-tb-go { display: none; }
.bb-tb .bb-tool-i { position: relative; display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; color: var(--ink); }
.bb-tb svg, .bb-ph svg, .bb-pn-list svg, .bb-act-row svg, .bb-x-beside svg, .bb-lh-i { fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linejoin: round; stroke-linecap: round; }
.bb-aa { font-family: var(--display); font-weight: 400; font-size: 1.14rem; line-height: 1; letter-spacing: 0.02em; }
.bb-tb:hover:not(:disabled), .bb-tb:hover:not(:disabled) .bb-tool-i { color: var(--rubric); }
.bb-tb[aria-expanded="true"], .bb-tb[aria-expanded="true"] .bb-tool-i { color: var(--rubric); }
.bb-tb[aria-expanded="true"]::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: -1px; height: 2px; background: var(--rubric); }
.bb-tb:disabled { opacity: 0.35; cursor: default; }
.bb-tb:focus-visible, .bb-strip button:focus-visible, .bb-ph-name:focus-visible, .bb-pn-go:focus-visible, .bb-pn-chip:focus-visible, .bb-pn-other:focus-visible, .bb-tip-x:focus-visible, .bb-sheet-reset:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
/* Panels: a + while there is one, then how many there are */
.bb-pcount { position: absolute; top: -6px; right: -9px; min-width: 0.95rem; font-family: var(--text); font-size: 0.95rem; font-weight: 600; font-variant-numeric: lining-nums; line-height: 1; color: var(--rubric); }
/* where you are: the name and the version, joined; ‹ › beside them */
.bb-pill { display: flex; align-items: stretch; min-height: 2.67rem; border: 1px solid var(--rule); background: color-mix(in srgb, var(--ink) 4%, transparent); }
.bb-pill:hover { border-color: color-mix(in srgb, var(--rubric) 55%, var(--rule)); }
.bb-pill .bb-ref:focus-visible { outline: 2px solid var(--focus); outline-offset: -3px; }
.bb-rbar .bb-step { width: 2.67rem; height: 2.67rem; }
.bb-pnum { flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 1.4em; height: 1.4em; padding: 0 0.2em; background: var(--rubric); color: var(--bg); font-size: 0.78em; font-weight: 600; font-variant-numeric: lining-nums; }
.bb-pnum:empty { display: none; }
.bb.multi .bb-ref { width: 13.4rem; }
.bb-narrow { display: none; }
.bb-ver-l { display: inline-flex; }
.bb-ver { height: 2.5rem; padding: 0 24px 0 9px; border: 1px solid var(--rule); border-radius: 0; background-color: var(--bg); background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: right 12px top 52%, right 7px top 52%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; font-family: var(--caps); font-weight: var(--caps-wt); font-size: 0.95rem; letter-spacing: 0.01em; color: var(--ink); -webkit-appearance: none; appearance: none; cursor: pointer; }
.bb-ver:hover { border-color: var(--rubric); color: var(--rubric); }
.bb-ver:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.bb-ver option { color: var(--ink); background: var(--bg); }
.bb-pill .bb-ver-l { display: flex; }
.bb-pill .bb-ver { height: auto; min-height: 100%; padding: 0 26px 0 11px; border: 0; border-left: 1px solid var(--rule); background-color: transparent; background-position: right 13px top 52%, right 8px top 52%; color: var(--muted); }
.bb-pill .bb-ver:hover { color: var(--rubric); }
.bb-pill .bb-ver:focus-visible { outline-offset: -3px; }
/* folded, while reading: one line that names the place, over the foot of the bar */
.bb-strip { position: absolute; left: 0; right: 0; bottom: 0; height: var(--bb-strip-h); display: flex; align-items: center; justify-content: center; gap: 2px; background: var(--bg); opacity: 0; visibility: hidden; transition: opacity 0.16s ease, visibility 0s linear 0.16s; }
.bb-strip button { border: 0; border-radius: 0; background: none; box-shadow: none; font: inherit; color: var(--ink); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.bb-strip-ref { min-width: 0; max-width: calc(100% - 3rem); height: 100%; padding: 0 10px; }
.bb-strip-t { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-family: var(--text); font-size: 1rem; font-weight: 500; font-variant-numeric: lining-nums tabular-nums; }
.bb-strip-t .bb-ref-c { font-weight: 600; }
.bb-strip-ver { font-family: var(--caps); font-size: 0.86em; font-weight: var(--caps-wt); letter-spacing: 0.01em; color: var(--muted); }
.bb-strip-open { flex: none; width: 2.6rem; height: 100%; font-size: 0.95rem; color: var(--rubric) !important; }
.bb-strip button:hover .bb-strip-t { color: var(--rubric); }
.bb.is-folded .bb-rb-in { top: calc(var(--bb-strip-h) + 1px - var(--bb-rbar-h, 3.6rem)); }
.bb.is-folded .bb-strip { opacity: 1; visibility: visible; transition: opacity 0.16s ease 0.06s, visibility 0s; }
/* a word on what a tap does, until it has been read */
.bb-tip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px; max-width: 42rem; margin: 12px auto 0; font-size: 0.95rem; font-style: normal; text-align: center; color: var(--muted); }
.bb-tip[hidden], .bb.multi .bb-tip { display: none; }
.bb-tip-x { min-height: 2.4rem; padding: 0 12px; border: 1px solid var(--rubric); border-radius: 0; background: none; box-shadow: none; font: inherit; font-family: var(--caps); font-weight: var(--caps-wt); font-style: normal; font-size: 0.95rem; letter-spacing: 0.01em; color: var(--rubric); cursor: pointer; }
.bb-tip-x:hover { background: color-mix(in srgb, var(--rubric) 10%, transparent); }

/* ---- a panel's running head, with several: its number, its place and version, its link and its × ---- */
.bb-ph { display: none; }
.bb.multi .bb-ph { position: relative; flex: none; display: flex; align-items: center; gap: 2px; padding: 3px 4px 3px 8px; border-bottom: 1px solid var(--rule); }
.bb.multi .bb-pane.is-active .bb-ph { background: color-mix(in srgb, var(--rubric) 7%, transparent); }
.bb.multi .bb-pane.is-active .bb-ph::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--rubric); }
.bb-ph-name { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 0.5em; min-height: 2.2rem; padding: 2px 2px; border: 0; border-radius: 0; background: none; box-shadow: none; font: inherit; font-size: 0.95rem; font-variant-numeric: lining-nums; text-align: left; white-space: nowrap; color: var(--ink); cursor: pointer; }
.bb-ph-t, .bb-pn-name { display: flex; align-items: baseline; gap: 0.26em; min-width: 0; overflow: hidden; white-space: nowrap; }
.bb-nm-b { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.bb-nm-c { flex: none; }
.bb-ph-v { flex: none; font-family: var(--caps); font-weight: var(--caps-wt); font-size: 0.86em; letter-spacing: 0.01em; color: var(--muted); }
.bb-ph-n { flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 1.45em; height: 1.45em; border: 1px solid var(--rule); font-size: 0.8em; font-variant-numeric: lining-nums; color: var(--muted); }
.bb-pane.is-active .bb-ph-n, .bb-pn-list li.is-active .bb-ph-n { border-color: var(--rubric); background: var(--rubric); color: var(--bg); font-weight: 600; }
.bb-ph .bb-step, .bb-pn-list .bb-step { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 2.3rem; height: 2.3rem; padding: 0; border-color: transparent; font-size: 1.45rem; }
.bb-ph .bb-step:hover, .bb-pn-list .bb-step:hover { border-color: var(--rule); }
.bb-link[aria-pressed="true"] { color: var(--rubric); }
.bb-ch-ver { display: none; }

/* the chapters lately read, at the top of the choice of book */
.bb-recent { margin: 0 0 4px; }
.bb-recent[hidden] { display: none; }
.bb-recent .bb-set-h { margin-top: 0; }
.bb-recent-row { display: flex; flex-wrap: wrap; gap: 6px; }
.bb-rc { padding: 6px 11px; border: 1px solid var(--rule); border-radius: 0; background: none; box-shadow: none; font: inherit; font-size: 1.02rem; color: var(--ink); cursor: pointer; }
.bb-rc:hover { border-color: var(--rubric); color: var(--rubric); }
.bb-rc:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* ---- the panes, side by side: they fill the screen beneath the bar, and each scrolls on its own ---- */
.bb-pane { container-type: inline-size; container-name: pane; min-width: 0; }
.bb.multi .bb-work { --n: 2; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); height: 100vh; height: 100svh; border-bottom: 1px solid var(--rule); }
.bb.multi[data-panes="3"] .bb-work { --n: 3; }
.bb.multi[data-panes="4"] .bb-work { --n: 4; }
.bb.multi .bb-pane { display: flex; flex-direction: column; min-height: 0; border-left: 1px solid var(--rule); }
.bb.multi .bb-pane:first-child { border-left: 0; }
/* (the reader keeps each pane at its verse itself, as rows are set again: the browser's own scroll anchoring, which would
   move it too, is turned off, or the two would carry a pane on past its verse and the linked panes after it) */
.bb.multi .bb-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; overflow-anchor: none; padding: 0 16px 28px; }
.bb.multi .bb-text { padding-top: 10px; }
.bb.multi .bb-ch-ver { display: inline-block; margin-left: 0.45em; font-family: var(--caps); font-weight: var(--caps-wt); font-size: 0.6em; letter-spacing: 0.01em; color: var(--muted); vertical-align: 0.15em; }
.bb.multi .bb-credit { margin-top: 14px; }
@container pane (max-width: 27rem) {
  .bb.multi .bb-scroll { padding: 0 10px 24px; }
}
@container pane (max-width: 14.5rem) {
  .bb.multi .bb-ph .bb-step { display: none; }       /* a narrow panel's head is its name: link and × are in Panels */
}
@container pane (max-width: 36rem) {
  .bb.multi .bb-text { font-size: calc(1.1rem * var(--bb-scale, 1)); }
}
@media (max-width: 780px) {
  .bb.multi .bb-work { grid-template-columns: minmax(0, 1fr); grid-template-rows: repeat(var(--n), minmax(0, 1fr)); }
  .bb.multi .bb-pane { border-left: 0; border-top: 2px solid var(--press); }
  .bb.multi .bb-pane:first-child { border-top: 0; }
  .bb.multi .bb-text { padding-top: 6px; }
  .bb.multi .bb-ch { margin-bottom: 10px; font-size: 1.25rem; }
  /* a phone's heads are labels: link and close are in Panels */
  .bb.multi .bb-ph { padding: 1px 8px; }
  .bb.multi .bb-ph .bb-step { display: none; }
  .bb-ph-name { min-height: 1.9rem; font-size: 0.95rem; }
}

/* the reader's rows of tools, a word under each icon, keep the size they were laid out at: in Inter, the clearer, and
   in its medium weight, not the labels' semibold */
.bb-tb, .bb-act-row button, .bb-act-ed { --caps-wt: 500; }

/* ---- how the text is set (Display) ---- */
/* the face: Book, the printed Bible's (EB Garamond), whose small letters ask for the larger size; or Plain, the site's own */
.bb-text { font-family: var(--book); font-size: calc(1.24rem * var(--bb-scale, 1)); }
.bb.lh-compact .bb-text { line-height: 1.5; }
.bb.lh-compact .bb-s { line-height: 1.42; }
.bb.lh-loose .bb-text { line-height: 2.05; }
.bb.lh-loose .bb-s { line-height: 1.9; }
.bb.bb-sans .bb-text { font-family: var(--text); font-size: calc(1.1rem * var(--bb-scale, 1)); }
.bb.bb-sans .bb-n { font-family: inherit; }
.bb.no-heads .bb-head { display: none; }
.bb-vl { margin: 0 0 0.45em; }
/* paragraphs set in rows beside a linked pane (js/bible.js, rowsHTML): a verse to a row, the version's layout inside it —
   its lines of poetry hung as the stanzas hang them, its prose run on, and space where a paragraph or a stanza begins */
.bb-vr { margin-bottom: 0.3em; }
.bb-vr.bb-vp, .bb-vr.bb-vs { margin-top: 0.85em; }
.bb-vr .bb-rp { display: block; }
.bb-vr .bb-rl { display: block; padding-left: 1.6em; text-indent: -1.6em; line-height: 1.62; }
.bb-vr .bb-rgap { margin-top: 0.55em; }
.bb.lh-compact .bb-vr .bb-rl { line-height: 1.42; }
.bb.lh-loose .bb-vr .bb-rl { line-height: 1.9; }
.bb-pil { color: var(--rubric); font-family: var(--display); font-weight: 400; }
.bb-it { font-style: italic; }                    /* the KJV's supplied words, ⟨ ⟩: italic, as printed */
@media (max-width: 780px) {
  .bb-text { font-size: calc(1.17rem * var(--bb-scale, 1)); }
  .bb.bb-sans .bb-text { font-size: calc(1.1rem * var(--bb-scale, 1)); }
  .bb-step { width: 2.3rem; height: 2.4rem; }
  .bb-ver { height: 2.4rem; padding: 0 17px 0 6px; font-size: 0.95rem; background-position: right 10px top 52%, right 5px top 52%; }
}

/* ---- the bar on a phone ----
   At the top, where you are, then Display and Panels. The study tools and the arrows stand in a row of their own just
   above the bar at the foot of the screen, within the thumb's reach; folded, it slides away beneath that bar. While
   verses are chosen, their bar takes its place. */
@media (max-width: 780px) {
  .bb-rb-in { grid-template-columns: auto minmax(0, 1fr); gap: 2px; min-height: 0; padding: 3px 0; }
  .bb-rb-place { min-width: 0; }
  .bb-rb-place .bb-go { display: none; }
  .bb-pill { flex: 1 1 auto; min-width: 0; min-height: 2.75rem; }
  .bb-ref, .bb.multi .bb-ref { flex: 1 1 auto; width: auto; justify-content: flex-start; gap: 0.32em; padding: 4px 6px 4px 8px; }
  .bb-pill .bb-ver { padding: 0 19px 0 8px; font-size: 0.95rem; background-position: right 9px top 52%, right 4px top 52%; }
  .bb-tb { min-width: 3.3rem; min-height: 2.75rem; padding: 3px 4px 2px; font-size: 0.74rem; }
  .bb-rb-study { position: fixed; z-index: 35; left: 0; right: 0; bottom: var(--tk-real, var(--tk-h)); display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0; height: 3.15rem; padding: 0 max(4px, env(safe-area-inset-right, 0px)) 0 max(4px, env(safe-area-inset-left, 0px)); background: var(--panel); border-top: 1px solid var(--rule); transition: transform 0.22s ease, visibility 0s; }
  .bb-rb-study .bb-tb { min-width: 0; height: 100%; }
  .bb-rb-study .bb-tb-go { display: inline-flex; color: var(--ink); }
  .bb-tb-go .bb-tool-i { font-family: var(--text); font-size: 1.6rem; line-height: 0.6; }
  .bb-wide { display: none; }
  .bb-narrow { display: inline; }
  .bb.is-folded .bb-rb-study { transform: translateY(calc(100% + 2px)); visibility: hidden; transition: transform 0.22s ease, visibility 0s linear 0.22s; }
  body.bb-acting .bb-rb-study { visibility: hidden; }
  .bb { padding-bottom: calc(3rem + var(--bb-row-h, 0px)); }
  .bb-tip { margin: 10px 4px 0; font-size: 0.95rem; }
}
/* a narrow desktop window or a tablet (up to 1180 wide, where the study tools, Edit among them, would otherwise run under
   the arrow to the next chapter): the tools close up, and "My notes" is "Notes" */
@media (min-width: 781px) and (max-width: 1180px) {
  .bb-tb { min-width: 3.1rem; padding: 4px 3px 3px; font-size: 0.74rem; }
  .bb-wide { display: none; }
  .bb-narrow { display: inline; }
  .bb-ref { width: 10.6rem; }
  .bb.multi .bb-ref { width: 12rem; }
  .bb-rb-in { grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px; }      /* the tools at each end, the place between */
  .bb-rb-place { justify-self: center; gap: 3px; }
}
@media (prefers-reduced-motion: reduce) {
  .bb-rb-in, .bb-strip, .bb.is-folded .bb-strip, .bb-rb-study, .bb.is-folded .bb-rb-study { transition: none; }
}

/* ---- a verse: chosen, highlighted, marked, read aloud ---- */
.bb-t { scroll-margin-top: 5rem; scroll-margin-bottom: 10rem; -webkit-tap-highlight-color: transparent; }
.bb-t[data-hl="yellow"] { background: var(--hl-yellow); }
.bb-t[data-hl="green"] { background: var(--hl-green); }
.bb-t[data-hl="blue"] { background: var(--hl-blue); }
.bb-t[data-hl="pink"] { background: var(--hl-pink); }
.bb-t[data-hl="orange"] { background: var(--hl-orange); }
.bb-t[data-hl="purple"] { background: var(--hl-purple); }
.bb-t[data-hl="red"] { background: var(--hl-red); }
.bb-t[data-hl="teal"] { background: var(--hl-teal); }
.bb-t[data-hl="brown"] { background: var(--hl-brown); }
.bb-t[data-hl="gray"] { background: var(--hl-gray); }
/* words highlighted, rather than the whole verse (selected in the text, then a colour chosen) */
.bb-text mark.bb-w { padding: 0.06em 0; background: var(--hl-yellow); color: inherit; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.bb-text mark.bb-w[data-hl="green"] { background: var(--hl-green); }
.bb-text mark.bb-w[data-hl="blue"] { background: var(--hl-blue); }
.bb-text mark.bb-w[data-hl="pink"] { background: var(--hl-pink); }
.bb-text mark.bb-w[data-hl="orange"] { background: var(--hl-orange); }
.bb-text mark.bb-w[data-hl="purple"] { background: var(--hl-purple); }
.bb-text mark.bb-w[data-hl="red"] { background: var(--hl-red); }
.bb-text mark.bb-w[data-hl="teal"] { background: var(--hl-teal); }
.bb-text mark.bb-w[data-hl="brown"] { background: var(--hl-brown); }
.bb-text mark.bb-w[data-hl="gray"] { background: var(--hl-gray); }
.bb.no-marks .bb-t[data-hl], .bb.no-marks .bb-text mark.bb-w { background: none; }
.bb.no-marks .bb-mark { display: none; }
.bb-t.is-sel { text-decoration: underline dotted var(--rubric); text-decoration-thickness: 2px; text-underline-offset: 0.24em; text-decoration-skip-ink: none; }
.bb-t.is-sel:not([data-hl]) { background: color-mix(in srgb, var(--rubric) 11%, transparent); }
.bb-t.is-reading { background: color-mix(in srgb, var(--rubric) 24%, transparent); }
.bb-t.is-cursor { outline: 2px solid var(--focus); outline-offset: 1px; }
.bb-text:focus { outline: none; }
.bb-text:focus-visible { outline: 1px dotted var(--rule); outline-offset: 6px; }
.bb-mark { display: inline-flex; vertical-align: baseline; color: var(--rubric); }
.bb-bm-mark { position: relative; top: 1px; margin-right: 0.18em; }
.bb-bm-mark svg { fill: currentColor; stroke: currentColor; stroke-width: 1; }
.bb-note-mark { position: relative; top: 2px; margin: -6px -4px -6px 2px; padding: 6px; border: 0; border-radius: 0; background: none; box-shadow: none; line-height: 1; cursor: pointer; }
.bb-note-mark svg { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
.bb-note-mark:hover { color: var(--ink); }
.bb-note-mark:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
/* marks another reader shared in a link (js/bible-share.js), until they are kept: a dashed line beneath them */
.bb-t[data-shared], .bb-text mark.bb-w.is-shared { text-decoration: underline dashed var(--rubric); text-decoration-thickness: 1.5px; text-underline-offset: 0.24em; text-decoration-skip-ink: none; }
.bb-note-mark.is-shared { color: var(--muted); }
.bb-note-mark.is-shared svg { stroke-dasharray: 2 1.4; }
/* the words as the reader set them (Edit): in a style, and the lines the reader began, each indented by its steps (set
   in, not moved over, so that a band behind the line still spans the column) */
.bb-text .bb-f[data-f="upper"] { text-transform: uppercase; }
.bb-text .bb-f[data-f="lower"] { text-transform: lowercase; }
.bb-text .bb-f[data-f="bold"] { font-weight: 700; }
.bb-text .bb-f[data-f="under"] { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.bb-text .bb-f[data-f="italic"] { font-style: italic; }   /* italic set by the reader, in Edit */
.bb-text .bb-f[data-f="strike"] { text-decoration: line-through; text-decoration-thickness: 1px; }
.bb-edl { display: block; padding-left: calc(var(--ind, 0) * 1.6em); }
.bb-text .bb-l.bb-edl, .bb-vr .bb-rl.bb-edl { padding-left: calc(1.6em + var(--ind, 0) * 1.6em); }

/* ---- the lines as the reader laid them out (js/bible.js, chapterHTML; js/bible-study.js, ed's l) ----
   A block of the text (a paragraph, a stanza, a verse, a heading, a table) lies wholly inside a range or outside it,
   and carries the range's marks; a block cut short where its paragraph goes on (.bb-cut) leaves no space after it.
   --gap is the space a block leaves after it, which a band or a chiasm's element fills with itself. */
/* lengths worked out in the type of the block or line they are given on, so that a chiasm's letter and a line's number,
   in smaller type, are set by the same lengths as its rule and its text */
@property --czx { syntax: "<length>"; inherits: true; initial-value: 0px; }
@property --nuw { syntax: "<length>"; inherits: true; initial-value: 0px; }
.bb-text > .bb-p, .bb-text > .bb-s { --gap: 1.05em; }
.bb-text > .bb-vl { --gap: 0.45em; }
.bb-text > .bb-vr { --gap: 0.3em; }
.bb-text > .bb-head { --gap: 0.5em; }
.bb-text > .bb-cut { --gap: 0px; margin-bottom: 0; }
.bb-text .bb-ln { display: block; }
.bb-text [data-gp="1"] { --gp: 1; }
.bb-text [data-gp="2"] { --gp: 2; }
.bb-text [data-gp="3"] { --gp: 3; }
.bb-text [data-sp="1"] { --sp: 1; }
.bb-text [data-sp="2"] { --sp: 2; }
.bb-text [data-sp="3"] { --sp: 3; }
.bb-text [data-sp="4"] { --sp: 4; }
.bb-text [data-sa="1"] { --sa: 1; }
.bb-text [data-sa="2"] { --sa: 2; }
.bb-text [data-sa="3"] { --sa: 3; }
.bb-text [data-sa="4"] { --sa: 4; }
/* aligned as a sheet's cells are: left, centred, right, or justified (and hyphenated, so that the spaces stay even);
   centred or to the right, a line of poetry is not hung */
.bb-text [data-al="l"] { text-align: left; }
.bb-text [data-al="c"] { text-align: center; }
.bb-text [data-al="r"] { text-align: right; }
.bb-text [data-al="j"] { text-align: justify; -webkit-hyphens: auto; hyphens: auto; }
.bb-text [data-al="c"] .bb-l, .bb-text [data-al="r"] .bb-l, .bb-vr [data-al="c"].bb-rl, .bb-vr [data-al="r"].bb-rl, .bb-vr[data-al="c"] .bb-rl, .bb-vr[data-al="r"] .bb-rl { padding-left: 0; text-indent: 0; }
/* A band (bg): the lines on a wash of a colour, the width of the column and a little past it on either side (drawn
   beside it, so that nothing in it moves). Banded blocks one after another are one band, the space between them
   washed too; a band has a little room above its first line and below its last. */
.bb-text { --bl: 12px; }
.bb-text [data-bg="yellow"] { --bd: var(--bd-yellow); }
.bb-text [data-bg="green"] { --bd: var(--bd-green); }
.bb-text [data-bg="blue"] { --bd: var(--bd-blue); }
.bb-text [data-bg="pink"] { --bd: var(--bd-pink); }
.bb-text [data-bg="orange"] { --bd: var(--bd-orange); }
.bb-text [data-bg="purple"] { --bd: var(--bd-purple); }
.bb-text [data-bg="red"] { --bd: var(--bd-red); }
.bb-text [data-bg="teal"] { --bd: var(--bd-teal); }
.bb-text [data-bg="brown"] { --bd: var(--bd-brown); }
.bb-text [data-bg="gray"] { --bd: var(--bd-gray); }
.bb-text > [data-bg] { --bli: var(--bl); margin-left: calc(-1 * var(--bl)); margin-right: calc(-1 * var(--bl)); padding: 0.32em var(--bl); background: linear-gradient(var(--bd), var(--bd)) 0 var(--rgo, 0px) / 100% 100% no-repeat; }
/* (the space a linked pane's rows put above a band's first block, --rg, is not washed) */
.bb-text > [data-bg]:not([data-bg] + [data-bg]) { --rgo: var(--rg, 0px); }
.bb-vr > * { --bli: 0px; }
.bb-vr > [data-bg] { background: var(--bd); box-shadow: calc(-1 * var(--bl)) 0 0 var(--bd), var(--bl) 0 0 var(--bd); }
/* set in rows, a band over the end of one verse and the beginning of the next: the space between them washed too */
.bb-text > .bb-vr:has(> [data-bg]:last-child):has(+ .bb-vr > [data-bg]:first-child, + .bb-vr[data-bg]) { margin-bottom: 0; }
.bb-text > .bb-vr:has(+ .bb-vr > [data-bg]:first-child, + .bb-vr[data-bg]) > [data-bg]:last-child { padding-bottom: 0.3em; }
.bb-text > .bb-vr[data-bg]:has(+ .bb-vr > [data-bg]:first-child) { margin-bottom: 0; padding-bottom: 0.3em; }
.bb-text > .bb-vr:has(> [data-bg]:last-child) + .bb-vr[data-bg] { padding-top: 0; --rgo: 0px; }
.bb-text > .bb-vr:has(> [data-bg]:last-child) + .bb-vr:not([data-bg]), .bb-text > .bb-vr[data-bg] + .bb-vr:not([data-bg]) { background: linear-gradient(var(--bdf, transparent), var(--bdf, transparent)) 0 0 / 100% var(--rg, 0px) no-repeat; }
.bb-text > [data-bg] + [data-bg] { margin-top: 0; padding-top: 0; }
.bb-text > [data-bg]:has(+ [data-bg]) { margin-bottom: 0; padding-bottom: var(--gap, 0px); }
.bb-text > [data-bg] + .bb-head[data-bg] { padding-top: 0.7em; }
.bb-text > [data-bg] + .bb-vr.bb-vp[data-bg], .bb-text > [data-bg] + .bb-vr.bb-vs[data-bg] { padding-top: 0.55em; }
/* Space (sp, sa): blank lines above a line, or below it; within a band, or within a chiasm's element, washed or ruled
   as the rest of it is. Spread (gp, gpl): each line given half a blank line more, as a sheet's line spacing gives it
   (a table's rows, a row at a time). */
.bb-text > [data-sp] { margin-top: calc(var(--sp) * 1lh); }
.bb-text > [data-sa] { margin-bottom: calc(var(--sa) * 1lh); }
.bb-text > [data-bg] + [data-bg][data-sp], .bb-text > [data-czl]:not([data-cz])[data-sp] { margin-top: 0; padding-top: calc(var(--sp) * 1lh); }
.bb-text > [data-bg][data-sa]:has(+ [data-bg]), .bb-text > [data-czl][data-sa]:has(+ [data-czl]:not([data-cz])) { margin-bottom: 0; padding-bottom: calc(var(--sa) * 1lh); }
.bb-text [data-gpl="1"] { --gpl: 1.5; }
.bb-text [data-gpl="2"] { --gpl: 2; }
.bb-text [data-gpl="3"] { --gpl: 2.5; }
.bb-text > [data-gpl]:not(.bb-s):not(.bb-tbl-w), .bb-text > .bb-s[data-gpl] > .bb-l, .bb-vr > [data-gpl]:not(.bb-rl) { line-height: calc(1lh * var(--gpl)); }
.bb-vr[data-gpl] > .bb-rl, .bb-vr > .bb-rl[data-gpl] { line-height: calc(1.62em * var(--gpl)); }
.bb-vr > [data-sp] { padding-top: calc(var(--sp) * 1lh); }
.bb-vr > [data-sa] { padding-bottom: calc(var(--sa) * 1lh); }
/* An element of a chiasm (cz): set in by its depth (A not at all, B a step, C two…; on a narrow column the steps are
   made smaller, so that the deepest of the chapter's, --czn, leaves the text about three fifths of a phone), a rule down
   its left the whole of its length in its letter's colour, and its letter in the margin by its first line, in that
   colour, A and A′ alike */
.bb-text [data-czl="A"], .bb-text [data-czl="K"] { --czc: var(--hs-blue); }
.bb-text [data-czl="B"], .bb-text [data-czl="L"] { --czc: var(--hs-green); }
.bb-text [data-czl="C"] { --czc: var(--hs-orange); }
.bb-text [data-czl="D"] { --czc: var(--hs-purple); }
.bb-text [data-czl="E"] { --czc: var(--hs-pink); }
.bb-text [data-czl="F"] { --czc: var(--hs-teal); }
.bb-text [data-czl="G"] { --czc: var(--hs-red); }
.bb-text [data-czl="H"] { --czc: var(--hs-yellow); }
.bb-text [data-czl="I"] { --czc: var(--hs-brown); }
.bb-text [data-czl="J"] { --czc: var(--hs-gray); }
.bb-text > [data-czl], .bb-vr > [data-czl] { --czx: calc(var(--czd, 0) * min(1.4em, 30cqw / max(var(--czn, 1), 1))); position: relative; padding-left: calc(var(--bli, 0px) + var(--czx) + 1.95em); }
.bb-vr > .bb-rl[data-czl] { padding-left: calc(var(--czx) + 3.55em); }
.bb-text > [data-czl]::after, .bb-vr > [data-czl]::after { content: ""; position: absolute; top: 0; bottom: 0; left: calc(var(--bli, 0px) + var(--czx) + 1.25em); width: 3px; background: var(--czc); }
.bb-text > [data-cz]::after { top: var(--rg, 0px); }
.bb-text > [data-cz]::before, .bb-vr > [data-cz]::before { content: attr(data-cz); position: absolute; left: calc(var(--bli, 0px) + var(--czx) - 0.15em); width: 1.45em; font-family: var(--text); font-size: 0.86em; font-style: normal; font-weight: 700; font-variant: small-caps; font-variant-numeric: lining-nums; letter-spacing: 0.02em; line-height: 1lh; text-align: right; text-indent: 0; color: var(--czc); }
.bb-text > [data-czl]:not([data-cz]) { margin-top: 0; }
.bb-text > [data-czl]:has(+ [data-czl]:not([data-cz])) { margin-bottom: 0; padding-bottom: var(--gap, 0px); }
.bb-text > [data-czl] + .bb-head[data-czl]:not([data-cz]) { padding-top: 0.7em; }
/* Lines numbered (nu): the number in a gutter at the left that the line is set in by, as wide as its range's largest
   number needs (--nud, its figures), right-aligned in rubric, by the line's first line; out of the line's own run, so
   that the numbers stand in one column whether the line is indented, centred or set to the right */
.bb-text .bb-ln[data-num], .bb-text .bb-l[data-num], .bb-vr > [data-num] { --nuw: calc(var(--nud, 1) * 0.55em + 1em); position: relative; padding-left: calc(var(--nuw) + var(--pl, 0px)); }
.bb-text .bb-l[data-num], .bb-vr > .bb-rl[data-num] { --pl: 1.6em; }
.bb-text .bb-edl[data-num] { --pl: calc(var(--ind, 0) * 1.6em); }
.bb-text .bb-l.bb-edl[data-num], .bb-vr > .bb-rl.bb-edl[data-num] { --pl: calc(1.6em + var(--ind, 0) * 1.6em); }
.bb-text .bb-ln[data-num]::before, .bb-text .bb-l[data-num]::before, .bb-vr > [data-num]::before { content: attr(data-num) "."; position: absolute; left: 0; box-sizing: border-box; width: var(--nuw); padding-right: 0.5em; font-size: 0.86em; font-style: normal; font-weight: 400; font-variant-numeric: lining-nums tabular-nums; line-height: 1lh; text-align: right; text-indent: 0; color: var(--rubric); }
.bb-text [data-al="c"] .bb-l[data-num], .bb-text [data-al="r"] .bb-l[data-num], .bb-vr [data-al="c"].bb-rl[data-num], .bb-vr [data-al="r"].bb-rl[data-num], .bb-vr[data-al="c"] .bb-rl[data-num], .bb-vr[data-al="r"] .bb-rl[data-num] { padding-left: var(--nuw); }
/* A table (tb): the width of the column, ruled, the names of its columns over it in small capitals; too wide, it
   scrolls sideways (.bb-tbl-s, inside what carries its marks), and fades out at a side where more of it is hidden. Its
   rows take the marks of ranges over some of them; a heading inside it is a row of its own. */
.bb-text > .bb-tbl-w { --gap: 1.05em; margin: 0.4em 0 var(--gap); }
/* A table on its spine is a block of its own (.bb-tbl-wsp): framed in a hairline of the gilt, a little in from the
   column's edges and no wider than a page of a book, with room above and below, so that one table and the next stand
   apart. A table's tab (data-tab, from the headers sheet): its name, in small capitals of the gilt, on a thumb tab
   that stands out at the block's left, read upward; the text of a chapter with tabs is set in by the tab's width, so
   that they stand clear of the column. */
.bb-text > .bb-tbl-wsp { --gap: 1.6em; position: relative; box-sizing: border-box; max-width: 62rem; margin: 1.1em auto var(--gap); padding: 0.55em 0.9em 0.7em; border: 1px solid color-mix(in srgb, var(--gilt) 55%, var(--rule)); background: color-mix(in srgb, var(--gilt) 3%, transparent); }
.bb-text > .bb-tbl-wsp + .bb-tbl-wsp { margin-top: 1.6em; }
.bb-text > .bb-tbl-w[data-tab] { position: relative; }
.bb-text > .bb-tbl-w[data-tab]::before { content: attr(data-tab); position: absolute; right: 100%; top: 0.6em; z-index: 1; box-sizing: border-box; max-height: 14em; overflow: hidden; margin-right: -1px; padding: 0.75em 0.32em 0.75em 0.36em; border: 1px solid color-mix(in srgb, var(--gilt) 55%, var(--rule)); border-left: 0; background: var(--bg); font-family: var(--caps); font-size: 0.74em; font-style: normal; font-weight: var(--caps-wt); letter-spacing: 0.01em; line-height: 1.2; white-space: nowrap; text-overflow: ellipsis; text-transform: none; color: var(--rubric); writing-mode: vertical-rl; transform: rotate(180deg); }
.bb-text > .bb-tbl-w[data-tab]:not(.bb-tbl-wsp)::before { margin-right: 0; }
.bb-text:has(> .bb-tbl-w[data-tab]) { padding-left: 2.1rem; }
.bb-text:has(> .bb-tbl-w[data-tab]) > .bb-tbl-wsp { margin-left: 0; margin-right: 0; }
@media (max-width: 600px) {
  .bb-text > .bb-tbl-wsp { padding: 0.4em 0.35em 0.5em; }
}
.bb-text .bb-tbl-s { overflow-x: auto; overscroll-behavior-x: contain; }
.bb-text .bb-tbl-s.is-more-r { -webkit-mask-image: linear-gradient(to left, transparent, #000 28px); mask-image: linear-gradient(to left, transparent, #000 28px); }
.bb-text .bb-tbl-s.is-more-l { -webkit-mask-image: linear-gradient(to right, transparent, #000 28px); mask-image: linear-gradient(to right, transparent, #000 28px); }
.bb-text .bb-tbl-s.is-more-l.is-more-r { -webkit-mask-image: linear-gradient(to right, transparent, #000 28px, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, transparent, #000 28px, #000 calc(100% - 28px), transparent); }
.bb-text .bb-tbl { display: table; width: 100%; min-width: 0; border-collapse: collapse; font-size: 0.92em; line-height: 1.5; }
.bb-text .bb-tbl thead { display: table-header-group; }
.bb-text .bb-tbl tbody { display: table-row-group; }
.bb-text .bb-tbl th, .bb-text .bb-tbl td { padding: 0.42em 0.7em 0.46em; border: 1px solid var(--rule); background: none; font-size: inherit; letter-spacing: normal; text-transform: none; text-align: inherit; vertical-align: top; color: inherit; }
.bb-text .bb-tbl thead th { padding: 0.34em 0.7em 0.26em; border-bottom-color: color-mix(in srgb, var(--rubric) 55%, var(--rule)); background: color-mix(in srgb, var(--rubric) 6%, transparent); font-family: var(--caps); font-size: 0.86em; font-weight: var(--caps-wt); letter-spacing: 0.01em; line-height: 1.3; color: var(--rubric); }
.bb-text .bb-tbl .bb-tn { width: 1%; padding-left: 0.5em; padding-right: 0.5em; white-space: nowrap; text-align: right; font-variant-numeric: lining-nums tabular-nums; color: var(--rubric); }
.bb-text .bb-tbl td.bb-tn[data-num]::before { content: attr(data-num) "."; font-size: 0.94em; }
.bb-text .bb-tbl .bb-tr-h td { padding: 0.1em 0.7em; }
.bb-tbl .bb-head { margin: 0.35em 0 0.2em; }
.bb.no-heads .bb-tr-h { display: none; }
.bb-text .bb-tbl tr[data-bg] > td { background: var(--bd); }
.bb-text .bb-tbl tr[data-gp] > td { padding-top: calc(0.42em + var(--gp) * 0.5lh); }
.bb-text .bb-tbl tr[data-sp] > td { padding-top: calc(0.42em + var(--sp) * 1lh); }
.bb-text .bb-tbl tr[data-sa] > td { padding-bottom: calc(0.46em + var(--sa) * 1lh); }
.bb-text .bb-tbl tr[data-czl] > td:first-child { box-shadow: inset 3px 0 var(--czc); }
/* Rows that meet at a centre line (js/bible.js, tableHTML): the table's columns as wide as each other (the column of
   numbers as wide as its largest; the table no narrower than a few words to a column, scrolling sideways rather than
   crushed), each cell's words set against the line, those left of it to the right and those right of it to the left,
   a cell across it centred (as the reader has not aligned it otherwise); and the line itself drawn in the rubric,
   along the edges of the cells that meet it, broken by a cell across it. */
.bb-text .bb-tbl.bb-tbl-even { table-layout: fixed; min-width: calc(var(--cols, 2) * 6.5em); }
.bb-text .bb-tbl-even col.bb-tn-c { width: calc(var(--nud, 1) * 0.55em + 1.6em); }
.bb-text .bb-tbl td[data-cside="l"] { text-align: right; }
.bb-text .bb-tbl td[data-cside="r"] { text-align: left; }
.bb-text .bb-tbl td[data-cside="m"] { text-align: center; }
.bb-text .bb-tbl td[data-cedge="r"] { border-right: 2px solid var(--cline, color-mix(in srgb, var(--rubric) 72%, var(--rule))); }
.bb-text .bb-tbl td[data-cedge="l"] { border-left: 2px solid var(--cline, color-mix(in srgb, var(--rubric) 72%, var(--rule))); }
/* A table whose centre line is its spine (cl "s"…, js/bible.js tableHTML: .bb-tbl-spine): no boxes, a hairline
   between its rows, the line in the gilt with a knot where each row meets it (the row's number, where the rows are
   numbered, boxed small on the line in the knot's place: the column of numbers is not drawn), each side washed in a
   colour of its own (--sbl, --sbr) that fades from the line outward, a cell's own shade fading the same way, a cell
   across the line a rule of the gilt either side of its words, and a cell boxed (data-cbx, in any table) its words in
   a rule of the gilt (its words in small capitals of the rubric, the rule meeting the box). A row with a highlight on
   either side of the line is tied: a dotted rule beneath its cells, and its knot filled. The names over the columns
   stand on a rule of the gilt. */
.bb-text .bb-tbl-spine { --spine: var(--gilt); }
.bb-text .bb-tbl-spine th, .bb-text .bb-tbl-spine td { border: 0; }
.bb-text .bb-tbl-spine thead th { border-bottom: 1px solid var(--spine); background: none; }
/* the hairline over a row (drawn by each cell, fading out toward the column's outer edge, and stopping short of the
   channel either side of the line); the cells that meet the line stand back from it by a channel, the line alone in it */
.bb-text .bb-tbl-spine tbody td[data-cside="l"], .bb-text .bb-tbl-spine tbody td[data-cside="r"] { position: relative; --ch: 0px; }
.bb-text .bb-tbl-spine tbody td[data-cside="l"]::before, .bb-text .bb-tbl-spine tbody td[data-cside="r"]::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; pointer-events: none; }
.bb-text .bb-tbl-spine tbody td[data-cside="l"]::before { right: var(--ch); background: linear-gradient(to right, transparent, var(--line) 45%); }
.bb-text .bb-tbl-spine tbody td[data-cside="r"]::before { left: var(--ch); background: linear-gradient(to left, transparent, var(--line) 45%); }
.bb-text .bb-tbl-spine tbody tr:first-child > td::before { content: none; }
.bb-text .bb-tbl-spine td[data-cedge="r"] { --ch: 1.6em; z-index: 1; padding-right: 2.1em; border-right: 2px solid var(--spine); }
.bb-text .bb-tbl-spine td[data-cedge="l"] { --ch: 1.6em; padding-left: 2.1em; border-left: 2px solid var(--spine); }
.bb-text .bb-tbl-spine td[data-cedge="r"]::after { content: ""; position: absolute; top: 50%; right: -1px; box-sizing: border-box; width: 0.5em; height: 0.5em; border: 1.5px solid var(--spine); background: var(--bg); transform: translate(50%, -50%) rotate(45deg); pointer-events: none; }
.bb-text .bb-tbl-spine td[data-cedge="r"][data-num]::after { content: attr(data-num); width: auto; height: auto; min-width: 1.5em; padding: 0 0.3em; font-size: 0.68em; font-style: normal; font-weight: 400; font-variant-numeric: lining-nums tabular-nums; line-height: 1.45; text-align: center; color: var(--spine); border-width: 1px; transform: translate(50%, -50%); }
/* a row with a cell across the line: a hairline above it too (fading out at both ends), the rule either side of its
   words (its number, boxed small before them) */
.bb-text .bb-tbl-spine td[data-cside="m"] { position: relative; padding-top: 0.7em; padding-bottom: 0.65em; }
.bb-text .bb-tbl-spine tbody td[data-cside="m"]::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(to right, transparent, var(--line) 22%, var(--line) 78%, transparent); pointer-events: none; }
.bb-text .bb-tbl-spine td[data-cside="m"] .bb-seam { display: flex; align-items: center; gap: 0.9em; }
.bb-text .bb-tbl-spine td[data-cside="m"] .bb-seam::before { content: ""; flex: 1 1 0; height: 1px; background: linear-gradient(to right, transparent, var(--spine) 40%); }
.bb-text .bb-tbl-spine td[data-cside="m"] .bb-seam::after { content: ""; flex: 1 1 0; height: 1px; background: linear-gradient(to left, transparent, var(--spine) 40%); }
.bb-text .bb-tbl-spine td[data-cside="m"][data-cbx] .bb-seam { gap: 0; }        /* (the rule meets the box) */
.bb-text .bb-tbl-spine td[data-cside="m"] .bb-seam-t[data-sn]::before { content: attr(data-sn); display: inline-block; min-width: 1.5em; margin-right: 0.6em; padding: 0 0.3em; box-sizing: border-box; border: 1px solid var(--spine); font-size: 0.68em; font-style: normal; font-weight: 400; font-variant-numeric: lining-nums tabular-nums; line-height: 1.45; text-align: center; vertical-align: 0.15em; color: var(--spine); }
.bb-text .bb-tbl td[data-cbx] .bb-seam-t { display: inline-block; padding: 0.2em 1.1em 0.25em; border: 1px solid var(--spine, var(--gilt)); box-shadow: 0 0 22px color-mix(in srgb, var(--spine, var(--gilt)) 22%, transparent); font-family: var(--caps); font-weight: var(--caps-wt); letter-spacing: 0.01em; color: var(--rubric); }
.bb-text .bb-tbl td[data-cbx] { padding-top: 0.75em; padding-bottom: 0.75em; }
/* the sides washed in their colours, fading from the line outward and ending in a crisp edge at the channel (the
   colour laid twice over itself in a line a pixel wide); a cell's own shade the same way (over its side's) */
.bb-text .bb-tbl-spine td[data-cside="l"] { background-image: linear-gradient(to right, transparent, var(--sbl, transparent) 70%, var(--sbl, transparent) calc(100% - var(--ch)), transparent calc(100% - var(--ch))); }
.bb-text .bb-tbl-spine td[data-cside="r"] { background-image: linear-gradient(to left, transparent, var(--sbr, transparent) 70%, var(--sbr, transparent) calc(100% - var(--ch)), transparent calc(100% - var(--ch))); }
.bb-text .bb-tbl-spine td[data-cedge="r"][data-cside="l"] { background-image: linear-gradient(var(--sbl, transparent), var(--sbl, transparent)), linear-gradient(var(--sbl, transparent), var(--sbl, transparent)), linear-gradient(to right, transparent, var(--sbl, transparent) 70%, var(--sbl, transparent) calc(100% - var(--ch)), transparent calc(100% - var(--ch))); background-size: 1px 100%, 1px 100%, 100% 100%; background-position: calc(100% - var(--ch)) 0, calc(100% - var(--ch)) 0, 0 0; background-repeat: no-repeat; }
.bb-text .bb-tbl-spine td[data-cedge="l"][data-cside="r"] { background-image: linear-gradient(var(--sbr, transparent), var(--sbr, transparent)), linear-gradient(var(--sbr, transparent), var(--sbr, transparent)), linear-gradient(to left, transparent, var(--sbr, transparent) 70%, var(--sbr, transparent) calc(100% - var(--ch)), transparent calc(100% - var(--ch))); background-size: 1px 100%, 1px 100%, 100% 100%; background-position: var(--ch) 0, var(--ch) 0, 0 0; background-repeat: no-repeat; }
.bb-text .bb-tbl-spine td[data-cside="l"][data-cbg], .bb-text .bb-tbl-spine td[data-cside="l"] .bb-sc[data-cbg] { background: linear-gradient(to right, transparent, var(--cbg) 70%, var(--cbg) calc(100% - var(--ch)), transparent calc(100% - var(--ch))); }
.bb-text .bb-tbl-spine td[data-cside="r"][data-cbg], .bb-text .bb-tbl-spine td[data-cside="r"] .bb-sc[data-cbg] { background: linear-gradient(to left, transparent, var(--cbg) 70%, var(--cbg) calc(100% - var(--ch)), transparent calc(100% - var(--ch))); }
/* a row tied across the line by a highlight on either side */
.bb-text .bb-tbl-spine tr:has(td[data-cside="l"] mark.bb-w):has(td[data-cside="r"] mark.bb-w) > td[data-cside] { border-bottom: 2px dotted var(--spine); }
.bb-text .bb-tbl-spine tr:has(td[data-cside="l"] mark.bb-w):has(td[data-cside="r"] mark.bb-w) + tr > td::before { content: none; }
.bb-text .bb-tbl-spine tr:has(td[data-cside="l"] mark.bb-w):has(td[data-cside="r"] mark.bb-w) > td[data-cedge="r"]:not([data-num])::after { width: 0.75em; height: 0.75em; background: var(--spine); box-shadow: 0 0 10px var(--spine); }
.bb-text .bb-tbl-spine tr:has(td[data-cside="l"] mark.bb-w):has(td[data-cside="r"] mark.bb-w) > td[data-cedge="r"][data-num]::after { box-shadow: 0 0 10px var(--spine); }
/* a cell as the reader set it, over whatever its row or table has (js/bible.js, cellHTML): aligned, set in the middle
   of its row, shaded (over a band on its row), its words set in by steps; cells merged span columns (colspan); a line
   of it wrapped where the reader wrapped it is a <br> (.bb-wr). Cells set one beneath another share a cell (.bb-stk),
   each a part of it (.bb-sc) with its own settings and a rule between them, the cell's height shared among them (a
   cell's own height, 1px, is the least it may be, which lets its parts take the whole of what it comes to). */
.bb-text .bb-tbl :is(td, .bb-sc)[data-cal="l"] { text-align: left; }
.bb-text .bb-tbl :is(td, .bb-sc)[data-cal="c"] { text-align: center; }
.bb-text .bb-tbl :is(td, .bb-sc)[data-cal="r"] { text-align: right; }
.bb-text .bb-tbl :is(td, .bb-sc)[data-cal="j"] { text-align: justify; -webkit-hyphens: auto; hyphens: auto; }
.bb-text .bb-tbl td[data-cva="m"] { vertical-align: middle; }
.bb-text .bb-tbl tr > td[data-cbg], .bb-text .bb-tbl .bb-sc[data-cbg] { background: var(--cbg); }
.bb-text .bb-tbl td[data-cin] { padding-left: calc(0.7em + var(--cin, 0) * 1.6em); }
.bb-text .bb-tbl td.bb-stk { height: 1px; padding: 0; }
.bb-text .bb-tbl .bb-stk-in { display: flex; flex-direction: column; height: 100%; }
.bb-text .bb-tbl .bb-sc { flex: 1 0 auto; display: flex; flex-direction: column; padding: 0.42em 0.7em 0.46em; }       /* (its words in .bb-sc-t) */
.bb-text .bb-tbl .bb-sc + .bb-sc { border-top: 1px solid var(--rule); }
.bb-text .bb-tbl .bb-sc[data-cva="m"] { justify-content: center; }
.bb-text .bb-tbl .bb-sc[data-cin] { padding-left: calc(0.7em + var(--cin, 0) * 1.6em); }
/* a table set in rows beside a linked pane: a row to a line, a thin rule between its cells */
.bb-tcd { display: inline-block; width: 1px; height: 1em; margin: 0 0.3em; vertical-align: -0.12em; background: var(--rule); }
/* Words linked together (lk): underlined in the colour of their group (a shared group's dashed), a second group's line
   beneath the first's; after a run, the group's number, small and round in its colour, with room around it to tap
   (while Edit is on, none over the word before it, which a tap is to choose), and on the line of the run's last word;
   a group only shared, ringed, and not to tap */
.bb-text .bb-lk-keep { white-space: nowrap; }
.bb-text mark.bb-lk { padding: 0; background: none; color: inherit; text-decoration: underline solid var(--lk); text-decoration-thickness: 2px; text-underline-offset: 0.22em; text-decoration-skip-ink: none; }
.bb-text mark.bb-lk mark.bb-lk { text-underline-offset: 0.42em; }
.bb-text mark.bb-lk.is-shared { text-decoration-style: dashed; }
.bb-text .bb-lk-tag { position: relative; isolation: isolate; top: -0.62em; box-sizing: content-box; display: inline-flex; align-items: center; justify-content: center; min-width: 1.56em; height: 1.56em; margin: -10px -7px -10px -5px; padding: 10px 7px 10px 5px; border: 0; border-radius: 0; background: none; box-shadow: none; font-family: var(--text); font-size: 0.56em; font-style: normal; font-weight: 700; font-variant-numeric: lining-nums tabular-nums; line-height: 1; letter-spacing: 0; text-decoration: none; text-indent: 0; color: var(--bg); vertical-align: baseline; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.bb-text .bb-lk-tag::before { content: ""; position: absolute; z-index: -1; top: 10px; right: 7px; bottom: 10px; left: 5px; border-radius: 999px; background: var(--lk); }
.bb-text .bb-lk-tag:hover { filter: brightness(1.12); }
.bb-text .bb-lk-tag:focus-visible { outline: 2px solid var(--focus); outline-offset: -8px; }
.bb.is-editing .bb-text .bb-lk-tag { margin-left: 0; padding-left: 0; }
.bb.is-editing .bb-text .bb-lk-tag::before { left: 0; }
.bb-text span.bb-lk-tag { cursor: inherit; }
.bb-text span.bb-lk-tag:hover { filter: none; }
.bb-text .bb-lk-tag.is-shared::before { outline: 1px dashed var(--lk); outline-offset: 1px; }
@container pane (max-width: 27rem) { .bb-text { --bl: 8px; } }
@media (max-width: 780px) { .bb-text { --bl: 8px; } }

/* ---- the bar of the chosen verses, at the foot of the screen ---- */
.bb-act { position: fixed; z-index: 40; left: 50%; bottom: max(10px, env(safe-area-inset-bottom)); transform: translateX(-50%); box-sizing: border-box; width: min(40rem, calc(100% - 16px)); padding: 6px 10px 8px; border: 1px solid var(--press); background: var(--bg); box-shadow: 0 16px 44px var(--shadow), 0 2px 8px var(--lift); }
.bb-act[hidden] { display: none; }
.bb-act-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.bb-act-ref { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--caps); font-weight: var(--caps-wt); font-size: 1.02rem; letter-spacing: 0.01em; color: var(--rubric); }
.bb-act-x { flex: none; width: 2.4rem; height: 2.4rem; padding: 0 0 3px; border: 0; border-radius: 0; background: none; box-shadow: none; font-size: 1.6rem; line-height: 1; color: var(--muted); cursor: pointer; }
.bb-act-x:hover { color: var(--ink); }
.bb-act-colors { display: flex; align-items: center; gap: 10px; margin: 2px 0 6px; }
.bb-sw { flex: none; width: 2.2rem; height: 2.2rem; padding: 0; border: 1px solid var(--rule); border-radius: 50%; background-color: var(--bg); box-shadow: none; cursor: pointer; }
.bb-sw[data-hl="yellow"] { background-image: linear-gradient(var(--hl-yellow), var(--hl-yellow)); }
.bb-sw[data-hl="green"] { background-image: linear-gradient(var(--hl-green), var(--hl-green)); }
.bb-sw[data-hl="blue"] { background-image: linear-gradient(var(--hl-blue), var(--hl-blue)); }
.bb-sw[data-hl="pink"] { background-image: linear-gradient(var(--hl-pink), var(--hl-pink)); }
.bb-sw[data-hl="orange"] { background-image: linear-gradient(var(--hl-orange), var(--hl-orange)); }
.bb-sw[aria-pressed="true"] { outline: 2px solid var(--ink); outline-offset: 2px; }
.bb-sw-none { display: inline-flex; align-items: center; justify-content: center; font-size: 1.15rem; color: var(--muted); }
.bb-sw:hover { border-color: var(--rubric); }
.bb-act-row { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.bb-act-row::-webkit-scrollbar { display: none; }
.bb-act-row button { flex: 1 0 auto; min-width: 3.9rem; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 5px 5px; border: 1px solid transparent; border-radius: 0; background: none; box-shadow: none; font: inherit; font-size: 0.86rem; line-height: 1.1; color: var(--ink); cursor: pointer; }
.bb-act-row button[hidden] { display: none; }
.bb-act.is-words .bb-act-row button:not([data-act="copy"]):not([data-act="share"]) { display: none; }       /* words selected: the colours, Copy and Share */
/* Edit, in the head: it turns Edit on (js/bible-editor.js) with the verses or words chosen */
.bb-act-ed { flex: none; margin-left: auto; display: inline-flex; align-items: center; gap: 6px; min-height: 2.2rem; padding: 0 10px; border: 1px solid var(--rule); border-radius: 0; background: none; box-shadow: none; font: inherit; font-size: 0.9rem; color: var(--ink); cursor: pointer; }
.bb-act-ed .bb-aa { font-family: var(--display); font-weight: 400; font-size: 1.1rem; line-height: 1; color: var(--rubric); }
.bb-act-ed:hover { border-color: var(--rubric); }
.bb-act-row button:hover { border-color: var(--rule); color: var(--rubric); }
.bb-act-row button[aria-pressed="true"] { color: var(--rubric); }
.bb-act-row button[aria-pressed="true"] svg { fill: currentColor; }
.bb-act button:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
body.bb-acting .page { padding-bottom: 9rem; }
body.bb-acting .bb.multi .bb-scroll { padding-bottom: 10rem; }

/* ---- the sheets: Display, a note, Compare, Cross references, the interlinear ---- */
.bb-sheet { box-sizing: border-box; width: calc(100% - 24px); max-width: 36rem; max-height: min(86vh, 46rem); padding: 0; border: 1px solid var(--press); border-radius: 6px; background: var(--bg); color: var(--ink); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45); }
.bb-sheet[open] { display: flex; flex-direction: column; overflow: hidden; }
.bb-sheet::backdrop { background: rgba(10, 6, 14, 0.62); }
.bb-sheet-head { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 6px 6px 16px; border-bottom: 1px solid var(--rule); }
.bb-sheet-head h3 { margin: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--display); font-weight: 400; font-size: 1.35rem; color: var(--rubric); }
.bb-sheet-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 12px 16px 18px; }
.bb-btn { padding: 8px 16px; border: 1px solid var(--rubric); border-radius: 0; background: none; box-shadow: none; font: inherit; font-size: 1.02rem; color: var(--rubric); cursor: pointer; }
.bb-btn:hover { background: color-mix(in srgb, var(--rubric) 10%, transparent); }
.bb-btn-quiet { border-color: var(--rule); color: var(--muted); }
.bb-btn-quiet:hover { border-color: var(--rubric); color: var(--rubric); background: none; }
.bb-btn:focus-visible, .bb-seg button:focus-visible, .bb-stepper button:focus-visible, .bb-x-go:focus-visible, .bb-x-beside:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.bb-btn[hidden] { display: none; }
/* Share (js/bible-share.js): what to share, what goes with it, and what the link will open */
.bb-share-what { margin: 0; padding: 0; border: 0; }
.bb-share-what legend { width: 100%; padding: 0 0 3px; }
.bb-share-opt { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-bottom: 1px dotted var(--rule); cursor: pointer; }
.bb-share-opt input { flex: none; width: 1.15rem; height: 1.15rem; margin: 0.2rem 0 0; accent-color: var(--rubric); }
.bb-share-opt b { display: block; font-weight: 600; }
.bb-share-sub { display: block; font-size: 0.95rem; color: var(--muted); }
.bb-share-opt:has(input:disabled), .bb-share .bb-switch:has(input:disabled) { opacity: 0.5; cursor: default; }
.bb-share-sum { margin: 12px 0 0; font-size: 0.95rem; line-height: 1.4; color: var(--muted); }
/* marks shared with the reader in a link: what they are, and Keep or Dismiss. At the foot of the screen, as the player
   is, so that it is seen wherever the link opens the chapter; it gives way to the bar of chosen verses, and stands
   above the player while the reading goes on */
.bb-shared { position: fixed; z-index: 38; left: 50%; bottom: max(10px, env(safe-area-inset-bottom)); transform: translateX(-50%); box-sizing: border-box; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; width: min(36rem, calc(100% - 16px)); padding: 8px 10px 8px 14px; border: 1px dashed var(--rubric); background: var(--bg); box-shadow: 0 14px 40px var(--shadow); }
.bb-shared[hidden], .bb-shared-btns [hidden], body.bb-acting .bb-shared { display: none; }
.bb-shared-t { flex: 1 1 14rem; margin: 0; font-size: 0.96rem; line-height: 1.35; }
.bb-shared-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.bb-shared-no { border-color: var(--rule); color: var(--muted); }
body.bb-listening .bb-shared { margin-bottom: 3.9rem; }
body.bb-sharing #panel-bible { padding-bottom: 7rem; }
body.bb-sharing .bb.multi .bb-scroll { padding-bottom: 8rem; }

/* ---- the bar's sheets, Display and Panels: they leave the text in view (no veil), and it changes as it is chosen ----
   On a wide screen each stands beneath its button (js/bible.js places it); Display's pushes a single pane's column
   aside where there is room. On a phone, at the foot of the screen above the bar there. */
.bb-float { position: fixed; z-index: 50; inset: auto; margin: 0; width: 22rem; max-width: calc(100vw - 16px); max-height: calc(100vh - 8rem - var(--tk-real, var(--tk-h))); max-height: calc(100svh - 8rem - var(--tk-real, var(--tk-h))); border-radius: 0; box-shadow: 0 18px 50px var(--shadow), 0 2px 8px var(--lift); }
.bb-panels { width: 21rem; }
.bb-float .bb-sheet-head { gap: 4px; }
.bb-float .bb-sheet-head h3 { flex: 1 1 auto; font-size: 1.3rem; }
.bb-sheet-sub { font-family: var(--caps); font-weight: var(--caps-wt); font-size: 0.62em; letter-spacing: 0.01em; color: var(--muted); }
.bb-sheet-reset { flex: none; min-height: 2.4rem; padding: 0 10px; border: 0; border-radius: 0; background: none; box-shadow: none; font: inherit; font-family: var(--caps); font-weight: var(--caps-wt); font-size: 0.95rem; letter-spacing: 0.01em; color: var(--rubric); cursor: pointer; }
.bb-sheet-reset:hover { text-decoration: underline; }
@media (min-width: 1100px) {
  .bb.disp-open:not(.multi) .bb-work, .bb.disp-open:not(.multi) .bb-tip { margin-left: max(calc(22rem + 28px), calc((100% - 42rem) / 2)); margin-right: auto; }
}
@media (max-width: 780px) {
  .bb-float { left: 0; right: 0; top: auto; bottom: var(--tk-real, var(--tk-h)); width: 100%; max-width: none; max-height: min(64vh, 34rem); max-height: min(64svh, 34rem); border: 0; border-top: 1px solid var(--press); box-shadow: 0 -14px 36px var(--shadow); }
}
.bb-set-h2 { margin: 14px 0 0; padding-bottom: 3px; font-weight: var(--caps-wt); line-height: 1.3; border-bottom: 1px solid var(--rule); font-family: var(--caps); font-size: 0.95rem; letter-spacing: 0.01em; color: var(--rubric); }
.bb-set-h2:first-child { margin-top: 2px; }
.bb-set-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; padding: 10px 0; border-bottom: 1px dotted var(--rule); }
.bb-float .bb-set-row { padding: 9px 0; }
.bb-seg-fill { flex: 1 1 13rem; }
.bb-seg-fill button { flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 2.75rem; padding: 6px 8px; }
.bb-face-aa { font-size: 1.22em; line-height: 1; }
.bb-lh-i { flex: none; stroke-width: 1.4; }
.bb-set-row .bb-set-note { flex-basis: 100%; margin: 0; font-size: 0.95rem; }
/* Show: switches, the words on the left */
.bb-switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 2.75rem; border-bottom: 1px dotted var(--rule); font-size: 1.02rem; line-height: 1.25; cursor: pointer; }
.bb-switch input { order: 2; flex: none; position: relative; width: 2.6rem; height: 1.45rem; margin: 0; border: 1px solid var(--rule); border-radius: 0; background: none; -webkit-appearance: none; appearance: none; cursor: pointer; }
.bb-switch input::before { content: ""; position: absolute; top: 3px; left: 3px; width: calc(1.45rem - 8px); height: calc(1.45rem - 8px); background: var(--muted); transition: transform 0.15s ease; }
.bb-switch input:checked { border-color: var(--rubric); background: color-mix(in srgb, var(--rubric) 18%, transparent); }
.bb-switch input:checked::before { transform: translateX(1.15rem); background: var(--rubric); }
.bb-switch input:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (forced-colors: active) { .bb-switch input { -webkit-appearance: auto; appearance: auto; width: auto; height: auto; } .bb-switch input::before { content: none; } }
@media (prefers-reduced-motion: reduce) { .bb-switch input::before { transition: none; } }
.bb-set-more { margin-top: 10px; font-size: 0.95rem; color: var(--muted); }
.bb-set-more > summary { min-height: 2.2rem; display: flex; align-items: center; font-style: normal; cursor: pointer; }
.bb-set-more > summary:hover { color: var(--rubric); }
.bb-set-more .bb-set-note { margin: 4px 0 0; }
/* Panels: add one, and those open */
.bb-pn-k { margin: 8px 0 6px; font-size: 1.02rem; line-height: 1.3; }
.bb-pn-sub { display: block; font-size: 0.95rem; font-style: normal; color: var(--muted); }
.bb-pn-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bb-pn-chip { min-width: 4.6rem; min-height: 2.75rem; padding: 4px 14px; border: 1px solid var(--rubric); border-radius: 0; background: none; box-shadow: none; font: inherit; font-family: var(--caps); font-weight: var(--caps-wt); font-size: 1rem; letter-spacing: 0.01em; color: var(--rubric); cursor: pointer; }
.bb-pn-chip:hover, .bb-pn-other:hover { background: color-mix(in srgb, var(--rubric) 10%, transparent); }
.bb-pn-other { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 8px; width: 100%; margin-top: 10px; padding: 8px 10px; border: 1px solid var(--rule); border-radius: 0; background: none; box-shadow: none; font: inherit; text-align: left; color: var(--ink); cursor: pointer; }
.bb-pn-other b { font-weight: 600; }
.bb-pn-other span { grid-column: 1; font-size: 0.95rem; font-style: normal; color: var(--muted); }
.bb-pn-other .bb-pn-arr { grid-column: 2; grid-row: 1 / span 2; font-size: 1.5rem; font-style: normal; color: var(--rubric); }
.bb-pn-list { margin: 2px 0 0; padding: 0; list-style: none; }
.bb-pn-list li { display: flex; align-items: center; gap: 2px; border-bottom: 1px dotted var(--rule); }
.bb-pn-go { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 0.5em; min-height: 2.9rem; padding: 4px 2px; border: 0; border-radius: 0; background: none; box-shadow: none; font: inherit; font-variant-numeric: lining-nums; text-align: left; white-space: nowrap; color: var(--ink); cursor: pointer; }
.bb-pn-go:hover .bb-pn-name { color: var(--rubric); }
.bb-pn-list .bb-step { width: 2.75rem; height: 2.75rem; }
.bb-panels .bb-set-note { margin: 8px 0 0; }
.bb-set-k { font-family: var(--caps); font-weight: var(--caps-wt); font-size: 1rem; letter-spacing: 0.01em; color: var(--muted); }
.bb-seg, .bb-stepper { display: inline-flex; align-items: stretch; border: 1px solid var(--rule); }
.bb-seg button, .bb-stepper button { min-height: 2.4rem; padding: 6px 12px; border: 0; border-left: 1px solid var(--rule); border-radius: 0; background: none; box-shadow: none; font: inherit; font-size: 1rem; color: var(--ink); cursor: pointer; }
.bb-seg button:first-child, .bb-stepper button:first-child { border-left: 0; }
.bb-seg button[aria-pressed="true"] { background: color-mix(in srgb, var(--rubric) 16%, transparent); color: var(--rubric); }
.bb-seg button:hover, .bb-stepper button:hover:not(:disabled) { color: var(--rubric); }
.bb-stepper button { min-width: 3rem; font-family: var(--display); font-weight: 400; font-size: 1.1rem; }
.bb-stepper button:last-child { border-left: 1px solid var(--rule); }
.bb-stepper button:disabled { opacity: 0.35; cursor: default; }
.bb-stepper output { display: inline-flex; align-items: center; justify-content: center; min-width: 4rem; border-left: 1px solid var(--rule); font-feature-settings: "lnum"; }
.bb-f-sans { font-family: var(--text) !important; font-size: 0.95rem !important; }
.bb-f-serif { font-family: var(--book) !important; }
.bb-check { display: flex; align-items: flex-start; gap: 0.6rem; padding: 10px 0 2px; font-size: 1.04rem; cursor: pointer; }
.bb-check input { flex: none; width: 1.1rem; height: 1.1rem; margin: 0.22em 0 0; accent-color: var(--rubric); cursor: pointer; }
.bb-check input:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.bb-set-note { margin: 14px 0 0; font-size: 0.95rem; font-style: normal; color: var(--muted); }

/* a note */
.bb-note-verse { margin: 0 0 10px; max-height: 7.5em; overflow-y: auto; font-style: normal; color: var(--muted); line-height: 1.45; }
.bb-note textarea { display: block; box-sizing: border-box; width: 100%; min-height: 9rem; padding: 10px 12px; border: 1px solid var(--rule); border-radius: 0; background: none; font: inherit; font-size: 1.08rem; line-height: 1.5; color: var(--ink); resize: vertical; }
.bb-note textarea:focus { outline: 2px solid var(--focus); outline-offset: 1px; }
.bb-note-at { min-height: 1.2em; margin: 6px 0 0; font-size: 0.95rem; font-style: normal; color: var(--muted); }
.bb-sheet-btns { display: flex; justify-content: flex-end; gap: 10px; margin-top: 12px; }

/* compare */
.bb-cmp { padding: 10px 0 14px; border-bottom: 1px solid var(--rule); }
.bb-cmp:last-child { border-bottom: 0; }
.bb-cmp h4 { margin: 0 0 4px; font-family: var(--text); font-weight: 400; font-style: normal; font-size: 1rem; color: var(--muted); }
.bb-cmp-v { margin-right: 0.4em; font-family: var(--caps); font-weight: var(--caps-wt); font-style: normal; letter-spacing: 0.01em; color: var(--rubric); }
.bb-cmp-t { margin: 0 0 10px; font-size: 1.14rem; line-height: 1.58; }
.bb-cmp-t .bb-n { margin-right: 0.2em; }
.bb-cmp .bb-btn { padding: 5px 12px; font-size: 0.95rem; }

/* cross references */
.bb-x-h { margin: 12px 0 2px; font-family: var(--caps); font-weight: var(--caps-wt); font-size: 0.95rem; letter-spacing: 0.01em; color: var(--muted); }
.bb-x-list { margin: 0; padding: 0; list-style: none; }
.bb-x-list li { display: flex; align-items: stretch; border-bottom: 1px dotted var(--rule); }
.bb-x-go { flex: 1; min-width: 0; display: block; padding: 8px 6px 9px; border: 0; border-radius: 0; background: none; box-shadow: none; font: inherit; text-align: left; color: var(--ink); cursor: pointer; }
.bb-x-go:hover { background: color-mix(in srgb, var(--rubric) 8%, transparent); }
.bb-x-r { display: block; font-family: var(--caps); font-weight: var(--caps-wt); font-size: 0.95rem; letter-spacing: 0.01em; color: var(--rubric); }
.bb-x-t { display: block; font-size: 1.04rem; line-height: 1.45; }
.bb-x-beside { flex: none; width: 2.8rem; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; color: var(--muted); cursor: pointer; }
.bb-x-beside:hover { color: var(--rubric); background: color-mix(in srgb, var(--rubric) 8%, transparent); }
.bb-x-credit, .bb-credit { font-size: 0.95rem; font-style: normal; color: var(--muted); }
.bb-x-credit { margin: 16px 0 0; }
.bb-credit { max-width: 42rem; margin: 22px auto 0; text-align: center; }
.bb-x-credit a, .bb-credit a { color: inherit; }

/* the interlinear: the verse word by word, each word a column (the Hebrew from the right); a tapped word's dictionary
   form and grammar held at the foot of the sheet, as the words scroll above it */
.bb-inter { max-width: 50rem; }
.bb-inter .bb-sheet-body { padding-bottom: 0; }
.bb-i-en { margin: 0 0 6px; font-size: 1.04rem; line-height: 1.5; }
.bb-i-lang { margin: 0 0 10px; font-size: 0.95rem; font-style: normal; color: var(--muted); }
.bb-i-words { display: flex; flex-wrap: wrap; gap: 4px 2px; margin: 0 0 4px; padding: 0; list-style: none; }
.bb-i-words[dir="rtl"] { direction: rtl; }
.bb-i-w button { direction: ltr; display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 4rem; max-width: 9.5rem; height: 100%; box-sizing: border-box; padding: 4px 7px 7px; border: 1px solid transparent; border-radius: 0; background: none; box-shadow: none; font: inherit; color: var(--ink); text-align: center; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.bb-i-w button:hover { border-color: var(--rule); }
.bb-i-w button[aria-pressed="true"] { border-color: var(--rubric); background: color-mix(in srgb, var(--rubric) 10%, transparent); }
.bb-i-w button:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.bb-i-o { font-family: var(--text); font-size: 1.45rem; line-height: 1.45; }
.bb-i-o:lang(he), .bb-i-o:lang(arc), .bb-inter [lang="he"], .bb-inter [lang="arc"] { font-family: "Noto Serif Hebrew", "SBL Hebrew", "Ezra SIL", "Times New Roman", serif; unicode-bidi: isolate; }
.bb-i-o:lang(he), .bb-i-o:lang(arc) { font-size: 1.6rem; line-height: 1.75; }
.bb-i-tr { font-size: 0.95rem; font-style: normal; line-height: 1.25; color: var(--muted); }
.bb-i-g { margin-top: 2px; font-size: 0.98rem; line-height: 1.25; }
.bb-i-n { margin-top: 3px; font-family: var(--caps); font-weight: var(--caps-wt); font-size: 0.95rem; letter-spacing: 0.01em; color: var(--rubric); }
.bb-i-mute { color: var(--muted); font-style: normal; }
/* a Greek word that the edition behind this version does not have, or has in another form */
.bb-i-w.is-out button { opacity: 0.5; border: 1px dashed var(--rule); }
.bb-i-w.is-out button[aria-pressed="true"] { opacity: 0.85; border-style: solid; border-color: var(--rubric); }
.bb-i-w.is-var .bb-i-o::after, .bb-i-k-var { content: "†"; margin-left: 1px; font-size: 0.7em; vertical-align: super; color: var(--rubric); }
.bb-i-key { margin: 6px 0 0; font-size: 0.95rem; font-style: normal; color: var(--muted); }
.bb-i-k-out { padding: 0 4px; border: 1px dashed var(--rule); font-style: normal; opacity: 0.7; }
.bb-i-k-var { margin: 0; font-style: normal; }
/* the word tapped */
.bb-i-detail { position: sticky; bottom: 0; z-index: 1; max-height: min(42vh, 20rem); overflow-y: auto; margin: 12px -16px 0; padding: 10px 16px 12px; border-top: 1px solid var(--press); background: var(--bg); box-shadow: 0 -10px 18px -14px var(--shadow); }
.bb-i-hint { margin: 0; font-size: 0.95rem; font-style: normal; color: var(--muted); }
.bb-i-d-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.bb-i-d-o { font-family: var(--text); font-size: 1.6rem; line-height: 1.5; }
.bb-i-d-o:lang(he), .bb-i-d-o:lang(arc) { font-size: 1.75rem; line-height: 1.7; }
.bb-i-d-tr { color: var(--muted); }
.bb-i-d-g { font-size: 1.04rem; }
.bb-i-parts { margin: 6px 0 0; padding: 0; list-style: none; }
.bb-i-part { padding: 5px 0 6px; border-top: 1px dotted var(--rule); line-height: 1.45; }
.bb-i-part:not(.is-root) { font-size: 0.95rem; color: var(--muted); }
.bb-i-p-o { font-size: 1.25rem; color: var(--ink); }
.bb-i-p-o:lang(he), .bb-i-p-o:lang(arc), .bb-i-p-lex [lang="he"], .bb-i-p-lex [lang="arc"] { font-size: 1.3rem; }
.bb-i-p-n { font-family: var(--caps); font-weight: var(--caps-wt); font-size: 0.95rem; letter-spacing: 0.01em; color: var(--rubric); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.bb-i-p-n:hover { text-decoration-thickness: 2px; }
.bb-i-p-n:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.bb-i-p-gram { display: block; font-size: 0.95rem; color: var(--muted); }
.bb-i-p-gram b { font-weight: 600; color: var(--ink); }
.bb-i-part:not(.is-root) .bb-i-p-gram b { color: inherit; font-weight: 400; }
.bb-i-note { margin: 6px 0 0; font-size: 0.95rem; font-style: normal; color: var(--muted); }
/* a word's full definition, folded until it is opened; while one is open the panel takes more of the sheet */
.bb-i-detail.is-def { max-height: min(72vh, 44rem); }
.bb-i-def { margin: 7px 0 2px; }
.bb-i-def > summary { display: inline-flex; align-items: center; gap: 8px; min-height: 2rem; padding: 2px 11px 2px 9px; border: 1px solid var(--rule); font-family: var(--caps); font-weight: var(--caps-wt); font-size: 0.95rem; letter-spacing: 0.01em; color: var(--rubric); cursor: pointer; list-style: none; -webkit-tap-highlight-color: transparent; }
.bb-i-def > summary::-webkit-details-marker { display: none; }
.bb-i-def > summary::before { content: ""; width: 0.4rem; height: 0.4rem; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); transition: transform 0.2s ease; }
.bb-i-def[open] > summary::before { transform: rotate(45deg); }
.bb-i-def > summary:hover { border-color: var(--rubric); }
.bb-i-def > summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.bb-i-def-b { margin: 8px 0 4px; padding: 2px 0 2px 12px; border-left: 2px solid var(--rule); font-family: var(--text); font-size: 0.98rem; font-style: normal; line-height: 1.5; color: var(--ink); }
.bb-i-def-b p { margin: 0 0 6px; }
.bb-i-def-b b { font-weight: 600; }
.bb-i-def-b [lang="he"] { font-size: 1.12em; white-space: nowrap; }   /* (a phrase broken over two lines reads out of order) */
/* the head: the word, its sound and how it is said */
.bb-i-def-b .d-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 10px; margin-bottom: 4px; }
.bb-i-def-b .d-head > [lang="he"] { font-size: 1.5em; line-height: 1.4; }
.bb-i-def-b .d-say { font-size: 0.9em; color: var(--muted); }
.bb-i-def-b .d-hw { margin-bottom: 4px; }
.bb-i-def-b .d-hw > b:first-of-type { font-size: 1.12em; }
/* Strong's Hebrew: each part under its label; the meanings one to a line; the KJV's renderings one by one */
.bb-i-def-b .d-k { margin: 12px 0 4px; font-family: var(--caps); font-weight: var(--caps-wt); font-size: 0.95rem; letter-spacing: 0.01em; color: var(--rubric); }
.bb-i-def-b ul.d-mean { margin: 0 0 4px; padding-left: 1.15em; }
.bb-i-def-b ul.d-mean li { margin: 0 0 3px; padding-left: 2px; }
.bb-i-def-b ul.d-mean li::marker { color: var(--rubric); }
.bb-i-def-b ul.d-kjv { display: flex; flex-wrap: wrap; gap: 5px; margin: 2px 0 6px; padding: 0; list-style: none; }
.bb-i-def-b ul.d-kjv li { padding: 0 7px 1px; border: 1px solid var(--rule); font-size: 0.95rem; line-height: 1.45; }
.bb-i-def-b ul.d-kjv li.d-p::before { content: "+"; margin-right: 3px; color: var(--rubric); }
.bb-i-def-b ul.d-kjv li.d-x::before { content: "×"; margin-right: 3px; color: var(--rubric); }
.bb-i-def-b .d-note { font-size: 0.95rem; font-style: normal; color: var(--muted); }
/* Abbott-Smith's Greek: a line to each sense, its number hanging, set in by its rank; the references lighter */
.bb-i-def-b .d-lxx { font-size: 0.95rem; color: var(--muted); }
.bb-i-def-b .d-s { margin: 9px 0 2px; }
.bb-i-def-b .d-c { margin: 3px 0 2px; }
.bb-i-def-b .d-l1 { padding-left: 1.7em; text-indent: -1.7em; }
.bb-i-def-b .d-l2 { padding-left: 2.6em; text-indent: -1.6em; }
.bb-i-def-b .d-l3 { padding-left: 3.6em; text-indent: -1.7em; }
.bb-i-def-b .d-l4 { padding-left: 4.6em; text-indent: -1.7em; }
.bb-i-def-b .d-c.d-l1, .bb-i-def-b .d-c.d-l2, .bb-i-def-b .d-c.d-l3, .bb-i-def-b .d-c.d-l4 { text-indent: 0; }
.bb-i-def-b .d-n { display: inline-block; min-width: 1.3em; font-weight: 600; text-indent: 0; color: var(--rubric); }
.bb-i-def-b .d-r { font-size: 0.86em; color: var(--muted); }
.bb-i-def-b .d-rl { white-space: nowrap; text-indent: 0; }             /* each reference a citation (.ref-text, css/manuscript.css) */
.bb-i-def-b .d-rw { white-space: nowrap; }
.bb-i-def-b .d-syn { margin-top: 10px; font-size: 0.95rem; color: var(--muted); }
/* a key to the marks the entry has, and the book it is from */
.bb-i-def-b .d-key { margin-top: 10px; font-size: 0.95rem; line-height: 1.45; color: var(--muted); }
.bb-i-def-b .d-km { color: var(--rubric); }
.bb-i-def-b .d-from { margin-top: 8px; font-size: 0.95rem; font-style: normal; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .bb-i-def > summary::before, .bb-i-attr > summary::before { transition: none; } }
/* the sources of the sheet, folded under one small line */
.bb-i-attr { margin: 14px 0 14px; font-size: 0.95rem; color: var(--muted); }
.bb-i-attr > summary { display: inline-flex; align-items: center; gap: 7px; min-height: 1.8rem; font-family: var(--caps); font-weight: var(--caps-wt); font-size: 0.95rem; letter-spacing: 0.01em; color: var(--muted); cursor: pointer; list-style: none; -webkit-tap-highlight-color: transparent; }
.bb-i-attr > summary::-webkit-details-marker { display: none; }
.bb-i-attr > summary::before { content: ""; width: 0.36rem; height: 0.36rem; border-right: 1.3px solid currentColor; border-bottom: 1.3px solid currentColor; transform: rotate(-45deg); transition: transform 0.2s ease; }
.bb-i-attr[open] > summary::before { transform: rotate(45deg); }
.bb-i-attr > summary:hover { color: var(--rubric); }
.bb-i-attr > summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.bb-i-attr p { margin: 6px 0 0; font-style: normal; line-height: 1.45; }
.bb-i-attr a { color: inherit; }

/* ---- reading aloud ---- */
.bb-audio { position: fixed; z-index: 39; left: 50%; bottom: max(10px, env(safe-area-inset-bottom)); transform: translateX(-50%); box-sizing: border-box; display: flex; align-items: center; gap: 8px; width: min(32rem, calc(100% - 16px)); padding: 6px 8px; border: 1px solid var(--press); background: var(--bg); box-shadow: 0 14px 40px var(--shadow); }
.bb-audio[hidden] { display: none; }
body.bb-acting .bb-audio { bottom: calc(max(10px, env(safe-area-inset-bottom)) + 9.4rem); }
.bb-au-btn { flex: none; width: 2.5rem; height: 2.5rem; padding: 0; border: 1px solid var(--rule); border-radius: 0; background: none; box-shadow: none; font-size: 0.95rem; color: var(--rubric); cursor: pointer; }
.bb-au-btn:hover { border-color: var(--rubric); }
.bb-au-now { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.98rem; color: var(--ink); }
.bb-au-rate select { height: 2.5rem; padding: 0 6px; border: 1px solid var(--rule); border-radius: 0; background: var(--bg); font: inherit; font-size: 0.95rem; color: var(--ink); }
.bb-au-btn:focus-visible, .bb-au-rate select:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (max-width: 780px) { body:not(.bb-acting) #panel-bible .bb-audio, #panel-bible .bb-shared { bottom: calc(var(--tk-real, var(--tk-h)) + var(--bb-row-h, 0px) + 8px); } }
body.bb-listening .page { padding-bottom: 4rem; }
body.bb-listening .bb.multi .bb-scroll { padding-bottom: 5rem; }
body.bb-acting.bb-listening .page { padding-bottom: 13.5rem; }
body.bb-acting.bb-listening .bb.multi .bb-scroll { padding-bottom: 14rem; }

/* ---- a word at the top of the screen ---- */
.bb-toast { position: fixed; z-index: 60; top: max(12px, env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); box-sizing: border-box; max-width: calc(100% - 32px); margin: 0; padding: 9px 16px; border: 1px solid var(--press); background: var(--ink); color: var(--bg); font-size: 1rem; line-height: 1.35; text-align: center; box-shadow: 0 10px 30px var(--shadow); pointer-events: none; }
.bb-toast[hidden] { display: none; }

@media (max-width: 780px) {
  .bb-sheet:not(.bb-float) { width: calc(100% - 12px); }
  .bb-i-w button { min-width: 3.6rem; padding: 4px 4px 6px; }
  .bb-i-o { font-size: 1.32rem; }
  .bb-i-o:lang(he), .bb-i-o:lang(arc) { font-size: 1.45rem; }
  .bb-i-g { font-size: 0.95rem; }
  .bb-act { width: calc(100% - 10px); padding: 4px 6px 6px; }
  .bb-act-colors { gap: 8px; }
  .bb-act-row button { min-width: 3.5rem; font-size: 0.8rem; }
  /* every choice in sight, without scrolling the row: two rows of four; the page keeps room for the taller bar */
  .bb-act-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; }
  .bb-act-row button { min-width: 0; padding: 5px 2px 4px; }
  body.bb-acting .page { padding-bottom: 12rem; }
  body.bb-acting .bb.multi .bb-scroll { padding-bottom: 12.6rem; }
  body.bb-acting .bb-audio { bottom: calc(max(10px, env(safe-area-inset-bottom)) + 12rem); }
  body.bb-acting.bb-listening .page { padding-bottom: 16.2rem; }
  body.bb-acting.bb-listening .bb.multi .bb-scroll { padding-bottom: 16.7rem; }
}
@media print {
  .bb-rbar, .bb-tip, .bb-shared, .bb-ph, .bb-act, .bb-audio, .bb-toast, .bb-sheet, .bb-after, .bb-credit { display: none !important; }
  .bb.multi .bb-work { display: block; height: auto; border: 0; }
  .bb.multi .bb-scroll { overflow: visible; }
  .bb-t[data-hl], .bb-text mark.bb-w { background: none; }
  .bb-text mark.bb-lk { text-decoration: none; }
  .bb-text .bb-lk-tag { display: none; }
}
