/* ============================================================================
   CONTROVERSY  (#controversyRoot, body.controversy-mode). Loaded with the
   engine (core/app.js ENGINES row), so nothing here reaches another chart.
   A record of definitions: a time spine of years down the left, then
   claim → council → answer across each row. Two period hues of its own:
   porphyry for the claim side, Byzantine lapis for the answer side; gold
   (the theme accent) only for focus and the selected node. Every hue has a
   light and a dark value, and nothing is told by color alone (position,
   label text and rule side carry it too). No motion.
   ============================================================================ */

@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond-600.woff2") format("woff2");
             font-weight: 600; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond-500-italic.woff2") format("woff2");
             font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("../fonts/source-serif-4.woff2") format("woff2");
             font-weight: 200 900; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("../fonts/source-serif-4-italic.woff2") format("woff2");
             font-weight: 200 900; font-style: italic; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/ibm-plex-sans-400.woff2") format("woff2");
             font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/ibm-plex-sans-600.woff2") format("woff2");
             font-weight: 600; font-display: swap; }
/* Greek only: Noto Serif Greek, limited to the Greek blocks. */
@font-face { font-family: "CV Greek"; src: url("../fonts/noto-serif-greek.woff2") format("woff2");
             font-display: swap; unicode-range: U+0370-03FF, U+1F00-1FFF, U+0300-036F; }

body.controversy-mode #controversyRoot {
  /* Dark values (dark mode, every palette). */
  --cv-claim: #e3a39b;        /* porphyry, lifted for a dark ground */
  --cv-claim-rule: #b4675d;
  --cv-claim-wash: rgba(180, 103, 93, .10);
  --cv-answer: #a3c1f2;       /* lapis, lifted */
  --cv-answer-rule: #5f86c9;
  --cv-answer-wash: rgba(95, 134, 201, .12);
  --cv-gold: #e2b85c;         /* focus and selection only */
  --cv-rule: var(--line);
  --cv-display: "Cormorant Garamond", var(--font-display);
  --cv-read: "CV Greek", "Source Serif 4", Georgia, "Times New Roman", serif;
  --cv-ui: "IBM Plex Sans", var(--font);
  --cv-greek: "CV Greek", "Cormorant Garamond", var(--font-display);
  display: block; min-height: 100vh; background: var(--bg-1); color: var(--text);
  font-family: var(--cv-read); font-size: 17px; line-height: 1.6;
  padding: 0 16px 72px; overflow-x: clip;
}
:root[data-mode="light"] body.controversy-mode #controversyRoot {
  --cv-claim: #7c2c34;  --cv-claim-rule: #9b4a4f; --cv-claim-wash: rgba(124, 44, 52, .06);
  --cv-answer: #1d4785; --cv-answer-rule: #3d66a8; --cv-answer-wash: rgba(29, 71, 133, .06);
  --cv-gold: #9a6414;
}
/* Parchment's dim text is deepened, as in Berean and Hard, to clear 4.5:1. */
:root[data-mode="light"][data-theme="parchment"] body.controversy-mode #controversyRoot { --text-dim: #66584a; }

#cvMain { max-width: 1280px; margin: 0 auto; min-width: 0; }
/* The pill scrolls away with the header rather than sit over the time spine. */
#controversyRoot { position: relative; }
#cvBack { position: absolute; }
#controversyRoot a:not(.lib-link) { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
#controversyRoot :focus-visible { outline: 2px solid var(--cv-gold); outline-offset: 3px; }
#cvCredit { text-align: center; margin-top: 48px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---- Header -------------------------------------------------------------- */
.cv-head { padding: 84px 0 8px; max-width: 760px; }
.cv-title { font-family: var(--cv-display); font-weight: 600; color: var(--ink);
  font-size: clamp(40px, 6vw, 68px); line-height: 1; margin: 0 0 14px; letter-spacing: -.01em; }
.cv-subtitle { display: block; font-style: italic; font-weight: 500; font-size: .5em; color: var(--text-dim); margin-top: 8px; letter-spacing: 0; }
.cv-framing { margin: 0 0 10px; font-style: italic; color: var(--ink); padding-left: 14px; border-left: 2px solid var(--cv-rule); }
.cv-intro { margin: 0; color: var(--text-dim); }

/* ---- Bar: view tabs --------------------------------------------------------- */
.cv-bar { display: flex; align-items: end;
  margin: 28px 0 32px; padding-bottom: 10px; border-bottom: 1px solid var(--cv-rule); font-family: var(--cv-ui); }
.cv-viewtabs { display: flex; gap: 22px; }
.cv-viewtab { appearance: none; background: none; border: 0; padding: 6px 0; cursor: pointer;
  font: 600 15px/1.2 var(--cv-ui); color: var(--text-dim); border-bottom: 2px solid transparent; margin-bottom: -11px; }
.cv-viewtab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.cv-viewtab:hover { color: var(--ink); }

/* ---- Flow layout ---------------------------------------------------------- */
.cv-flowwrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); gap: 40px; align-items: start; }
.cv-flowwrap > * { min-width: 0; }
.cv-flow { list-style: none; margin: 0; padding: 0; position: relative; }
/* The spine: one hairline down the year column. */
.cv-flow::before { content: ""; position: absolute; left: 104px; top: 8px; bottom: 8px; width: 1px; background: var(--cv-rule); }
.cv-row { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 0 26px; padding: 0 0 38px; position: relative; }
.cv-row:last-child { padding-bottom: 6px; }
.cv-row > * { min-width: 0; }
.cv-spine { text-align: right; padding: 4px 18px 0 0; position: relative; }
.cv-spine::after { content: ""; position: absolute; right: -4px; top: 22px; width: 7px; height: 7px; border-radius: 50%;
  background: var(--bg-1); border: 1px solid var(--text-dim); }
.cv-row.is-current .cv-spine::after { background: var(--cv-gold); border-color: var(--cv-gold); }
.cv-year { display: block; font-family: var(--cv-display); font-weight: 600; font-size: 40px; line-height: 1;
  color: var(--ink); font-variant-numeric: oldstyle-nums; }
/* A year is one short string ("325", "680–681", "c. AD 30", "c. 140–180"). It
   keeps to one line; controversy.js shrinks any that is wider than the margin
   (fitYears), so no year runs into the spine. */
.cv-year { white-space: nowrap; }
.cv-place { display: block; margin-top: 6px; font-size: 13px; line-height: 1.35; font-style: italic; color: var(--text-dim); }

.cv-nodes { display: grid; grid-template-columns: minmax(0, 1fr) 30px minmax(0, .82fr) 30px minmax(0, 1.28fr); align-items: stretch; }
.cv-node { appearance: none; text-align: left; cursor: pointer; color: var(--text); background: transparent;
  font: inherit; border: 0; border-radius: 2px; padding: 8px 12px 10px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cv-node-label { font: italic 500 15px/1.2 var(--cv-display); color: var(--text-dim); }
.cv-node-title { font: 600 22px/1.15 var(--cv-display); color: var(--cv-claim); }
.cv-node-line { font-size: 14px; line-height: 1.4; color: var(--text-dim); }
.cv-node--claim { border-left: 3px solid var(--cv-claim-rule); }
.cv-node--answer { border-right: 3px solid var(--cv-answer-rule); text-align: right; align-items: flex-end; }
.cv-node--council { border-top: 1px solid var(--cv-rule); border-bottom: 1px solid var(--cv-rule); align-items: center; text-align: center; position: relative; }
/* A long name ("Constantinople III", "The apostles' answer") wraps, balanced,
   inside its column instead of running over the arrows. */
.cv-council-name { font: 600 22px/1.1 var(--cv-display); color: var(--ink); max-width: 100%;
  text-wrap: balance; }
/* A word too long for its column ("Pneumatomachi", "Constantinople,") first
   makes its column's names smaller (fitFlow in controversy.js); only past that
   floor is it hyphenated or broken, never pushed over the arrows or the spine.
   .cv-fitting turns the breaking off while fitFlow measures. */
.cv-council-name, .cv-node-title, .cv-place { overflow-wrap: break-word; hyphens: auto; }
.cv-fitting .cv-council-name, .cv-fitting .cv-node-title, .cv-fitting .cv-place { overflow-wrap: normal; hyphens: manual; }
.cv-node:hover .cv-node-title, .cv-node:hover .cv-council-name, .cv-node:hover .cv-greek { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.cv-node--claim:hover { background: var(--cv-claim-wash); }
.cv-node--answer:hover { background: var(--cv-answer-wash); }
.cv-node--council:hover { background: var(--soft-fill); }
.cv-node.is-selected { box-shadow: inset 0 0 0 2px var(--cv-gold); }
.cv-node.is-selected .cv-node-label { color: var(--cv-gold); }
.cv-noterm { font-style: italic; }

/* Arrows between nodes: structure, drawn as a hairline with a head. */
.cv-arrow { position: relative; align-self: center; height: 1px; background: var(--text-dim); margin: 0 4px 0 2px; }
.cv-arrow::after { content: ""; position: absolute; right: -1px; top: -4px; border: 4.5px solid transparent;
  border-left: 7px solid var(--text-dim); border-right: 0; }

/* ---- Greek key term ---------------------------------------------------------- */
.cv-term { display: flex; flex-direction: column; align-items: inherit; gap: 0; }
.cv-term--pair { flex-direction: row; flex-wrap: wrap; align-items: baseline; justify-content: flex-end; gap: 0 10px; }
.cv-term-one { display: flex; flex-direction: column; align-items: inherit; }
.cv-term--pair .cv-term-one { align-items: flex-end; }
.cv-greek { font-family: var(--cv-greek); font-size: 24px; text-wrap: balance; line-height: 1.2; color: var(--cv-answer); overflow-wrap: anywhere; }
.cv-translit { font: italic 500 16px/1.25 var(--cv-display); color: var(--text); }
.cv-gloss { font-size: 13.5px; line-height: 1.35; color: var(--text-dim); }
.cv-term-not { font: italic 500 16px var(--cv-display); color: var(--text-dim); align-self: center; }
.cv-term--big { align-items: flex-start; margin-bottom: 4px; }
.cv-term--big .cv-term-one { align-items: flex-start; }
.cv-term--big .cv-greek { font-size: clamp(32px, 4vw, 42px); }
.cv-term--big .cv-translit { font-size: 20px; }
.cv-term--big .cv-gloss { font-size: 15px; }
.cv-term--big.cv-term--pair { justify-content: flex-start; gap: 4px 18px; }

/* ---- Detail panel -------------------------------------------------------------- */
.cv-panel { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; overscroll-behavior: contain;
  background: var(--card-bg); border: 1px solid var(--card-border);
  padding: 18px 22px 22px; border-radius: 2px; }
.cv-panel:focus { outline: none; }
.cv-panel:focus-visible { outline: 2px solid var(--cv-gold); }
.cv-panel-empty { color: var(--text-dim); font-size: 15.5px; }
.cv-panel-hint { font: 600 22px/1.2 var(--cv-display); color: var(--ink); margin: 6px 0 10px; }
.cv-phead { margin-bottom: 10px; }
.cv-pyear { margin: 0; font: 600 20px/1 var(--cv-display); color: var(--text-dim); font-variant-numeric: oldstyle-nums; }
.cv-pname { margin: 2px 0 0; font: 600 29px/1.1 var(--cv-display); color: var(--ink); }
.cv-ptabs { display: flex; flex-wrap: wrap; gap: 2px 16px; border-bottom: 1px solid var(--cv-rule); margin-bottom: 16px; }
.cv-ptab { appearance: none; background: none; border: 0; cursor: pointer; padding: 7px 0; margin-bottom: -1px;
  font: 600 13.5px/1.2 var(--cv-ui); color: var(--text-dim); border-bottom: 2px solid transparent; }
.cv-ptab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.cv-ptab--claim[aria-selected="true"] { border-bottom-color: var(--cv-claim-rule); }
.cv-ptab--answer[aria-selected="true"] { border-bottom-color: var(--cv-answer-rule); }
.cv-pbody p { margin: 0 0 12px; }
.cv-lede { font-size: 17.5px; }
.cv-h3 { font: 600 24px/1.15 var(--cv-display); margin: 0 0 8px; color: var(--ink); }
.cv-h3--claim { color: var(--cv-claim); }
.cv-h3--answer { color: var(--cv-answer); }
.cv-h4 { font: italic 500 18px/1.2 var(--cv-display); color: var(--text-dim); margin: 18px 0 8px; }
.cv-empty { color: var(--text-dim); font-style: italic; }
.cv-disputed { padding: 10px 14px; border-left: 3px solid var(--cv-gold); background: var(--soft-fill); font-size: 15.5px; }

/* Quotations: hanging open-quote in the margin, then a cite line. */
.cv-quote { margin: 10px 0 16px; padding-left: 16px; border-left: 1px solid var(--cv-rule); }
.cv-quote blockquote { margin: 0; }
.cv-quote blockquote p { margin: 0; font-size: 17px; line-height: 1.55; color: var(--ink); hanging-punctuation: first; position: relative; }
.cv-quote blockquote p::before { content: "\201C"; position: absolute; left: -.55em; top: -.05em; font: 600 1.5em/1 var(--cv-display); color: var(--text-dim); }
.cv-quote blockquote p::after { content: "\201D"; }
.cv-quote figcaption { margin-top: 6px; font-size: 13.5px; line-height: 1.45; color: var(--text-dim); display: flex; flex-direction: column; }
.cv-quote-who { font-style: italic; }
.cv-quote--claim { border-left-color: var(--cv-claim-rule); }
.cv-quote--answer { border-left-color: var(--cv-answer-rule); }
.cv-sources { margin-top: 18px; padding-top: 10px; border-top: 1px solid var(--hairline); font-size: 13.5px; color: var(--text-dim); }
.cv-sources-label { margin: 0 0 4px !important; font: italic 500 15px var(--cv-display); }
.cv-sources ul { list-style: none; margin: 0; padding: 0; }
.cv-sources li { margin: 0 0 4px; }
.cv-src a { color: inherit !important; }
.cv-date { white-space: nowrap; }

/* Council tab */
.cv-facts { margin: 0 0 6px; display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; font-size: 15.5px; }
.cv-facts div { display: contents; }
.cv-facts dt { font: italic 500 16px var(--cv-display); color: var(--text-dim); }
.cv-facts dd { margin: 0; }
.cv-note { font-size: 15.5px; }
.cv-rel { white-space: nowrap; }

/* Answer tab */
.cv-termbox { padding: 4px 0 12px; margin-bottom: 14px; border-bottom: 1px solid var(--hairline); }
.cv-term-note { font-size: 14.5px; color: var(--text-dim); }
.cv-term-src { font-size: 13px; color: var(--text-dim); margin: 0 !important; }

/* Scripture on both sides */
.cv-sides { display: grid; grid-template-columns: 1fr; gap: 18px; }
.cv-side { padding-left: 12px; }
.cv-side--claim { border-left: 3px solid var(--cv-claim-rule); }
.cv-side--answer { border-left: 3px solid var(--cv-answer-rule); }
.cv-side .cv-h3 { font-size: 20px; }
.cv-verse { border-bottom: 1px solid var(--hairline); }
.cv-verse summary { cursor: pointer; padding: 7px 0; display: flex; flex-direction: column; gap: 1px; list-style: none; }
.cv-verse summary::-webkit-details-marker { display: none; }
.cv-ref { font: 600 18px/1.2 var(--cv-display); color: var(--ink); }
.cv-ref::after { content: " +"; font-family: var(--cv-ui); font-weight: 400; color: var(--text-dim); }
.cv-verse[open] .cv-ref::after { content: " \2212"; }
.cv-vnote { font-size: 14.5px; line-height: 1.45; color: var(--text-dim); }
.cv-verse-body { padding: 2px 0 12px; }
.cv-asv { margin: 4px 0 8px; font-size: 16px; color: var(--ink); }
.cv-asv p { margin: 0 0 2px !important; }
.cv-asv cite { font-size: 12.5px; font-style: normal; color: var(--text-dim); font-family: var(--cv-ui); }
.cv-reading { margin: 6px 0 8px; padding: 6px 10px; background: var(--soft-fill); }
.cv-reading figcaption { font: italic 500 15px var(--cv-display); color: var(--text-dim); }
.cv-reading blockquote { margin: 2px 0; font-size: 15.5px; }
.cv-reading blockquote p { margin: 0 !important; }
.cv-reading-src, .cv-verse-src { font-size: 13px; color: var(--text-dim); margin: 0 !important; }

/* ---- Quiz ---------------------------------------------------------------------------- */
.cv-viewtitle { font: 600 32px/1.1 var(--cv-display); color: var(--ink); margin: 0 0 6px; }
.cv-view--quiz { max-width: 820px; }
.cv-quiz-progress { font: 14px var(--cv-ui); color: var(--text-dim); display: flex; gap: 18px; margin: 0 0 10px; }
.cv-quiz-prompt { margin: 0 0 18px; padding: 4px 0 4px 18px; border-left: 3px solid var(--cv-claim-rule);
  font-size: 19px; line-height: 1.55; color: var(--ink); }
.cv-quiz-prompt p { margin: 0; }
.cv-quiz-choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.cv-choice { appearance: none; cursor: pointer; text-align: left; padding: 9px 12px; border-radius: 3px;
  background: var(--ctrl-bg); color: var(--text); border: 1px solid var(--card-border); display: flex; flex-direction: column; }
.cv-choice:hover:not(:disabled) { border-color: var(--ink); }
.cv-choice:disabled { cursor: default; opacity: .7; }
.cv-choice-name { font: 600 19px/1.15 var(--cv-display); color: var(--ink); }
.cv-choice-year { font: 13px var(--cv-ui); color: var(--text-dim); }
.cv-choice.is-right { opacity: 1; border: 2px solid var(--good); }
.cv-choice.is-right .cv-choice-year::after { content: " (the answer)"; }
.cv-choice.is-wrong { opacity: 1; border: 2px dashed var(--bad); }
.cv-choice.is-wrong .cv-choice-year::after { content: " (your pick)"; }
.cv-quiz-feedback { margin: 16px 0 12px; min-height: 1.6em; }
.cv-quiz-feedback.is-right strong { color: var(--good); }
.cv-quiz-feedback.is-wrong strong { color: var(--bad); }
.cv-btn { appearance: none; cursor: pointer; font: 600 15px var(--cv-ui); padding: 9px 16px; border-radius: 3px;
  background: var(--ink); color: var(--bg-1); border: 0; }
.cv-quiz-score { font: 600 30px/1.2 var(--cv-display); color: var(--ink); margin: 6px 0 16px; }

/* ---- Related ----------------------------------------------------------------------- */
.cv-related { margin-top: 56px; padding-top: 14px; border-top: 1px solid var(--cv-rule); max-width: 760px; }
.cv-related h2 { font: 600 24px var(--cv-display); color: var(--ink); margin: 0 0 8px; }
.cv-related ul { list-style: none; margin: 0; padding: 0; }
.cv-related li { margin: 0 0 6px; }
.cv-related li span { display: block; font-size: 14.5px; color: var(--text-dim); }

/* ---- Narrower: panel below the flow (from 1180px down, so the nodes keep room) ---------- */
@media (max-width: 1179px) {
  .cv-flowwrap { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .cv-panel { position: static; max-height: none; overflow: visible; }
}
/* A narrow flow (a tablet, a narrow window, or 1180–1300px with the panel
   beside it): the three columns share under 650px, so the response column takes
   an even share, the arrows give up some room and the names step down a size
   rather than break a word to a line. Measured on the flow itself, not the
   window, because the panel takes 440px of the window above 1180px. */
.cv-flow { container: cvflow / inline-size; }
@media (min-width: 640px) {
  @container cvflow (max-width: 780px) {
    .cv-node-title, .cv-council-name { font-size: 19px; }
    .cv-node { padding: 8px 9px 10px; }
    .cv-nodes { grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1fr) 22px minmax(0, 1.1fr); }
  }
}
/* ---- Phone: each council a stacked card --------------------------------------------------- */
@media (max-width: 639px) {
  body.controversy-mode #controversyRoot { font-size: 16px; }
  .cv-head { padding-top: 64px; }
  .cv-flow::before { display: none; }
  .cv-row { grid-template-columns: minmax(0, 1fr); padding: 0 0 26px; }
  .cv-spine { text-align: left; padding: 0 0 6px; display: flex; align-items: baseline; gap: 10px;
    border-bottom: 1px solid var(--cv-rule); margin-bottom: 6px; }
  .cv-spine::after { display: none; }
  .cv-year { font-size: 30px; }
  .cv-place { margin: 0; }
  .cv-nodes { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .cv-arrow { display: none; }
  .cv-node--council { align-items: flex-start; text-align: left; border: 0; border-left: 1px solid var(--cv-rule); }
  .cv-node--answer { border-right: 0; border-left: 3px solid var(--cv-answer-rule); text-align: left; align-items: flex-start; }
  .cv-term--pair, .cv-term--pair .cv-term-one { justify-content: flex-start; align-items: flex-start; }
  .cv-term { align-items: flex-start; }
  .cv-panel { padding: 14px 14px 18px; }
  .cv-viewtabs { gap: 18px; }
  .cv-bar { margin-bottom: 24px; }
}

/* The panel's close button: a phone-only control (the sheet below). */
.cv-pclose { display: none; }

/* ---- Phone: the detail panel is a bottom sheet over the rows -------------------------
   Below the flow it sat seven councils away from the node that opened it. Here it rises
   from the bottom (at most 70% of the screen, scrolling inside itself, its head and close
   button pinned), so the rows stay in view above it and one tap on × returns to them.
   Before a pick it is not shown: the intro already says to choose part of a row. */
@media (max-width: 639px) {
  .cv-panel { display: none; }
  .cv-panel.is-open {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 40;
    max-height: 70vh; max-height: 70dvh; overflow-y: auto; overscroll-behavior: contain;
    padding: 0 16px max(20px, env(safe-area-inset-bottom, 0px));
    border-radius: 14px 14px 0 0; border-bottom: 0;
    background: linear-gradient(var(--card-bg), var(--card-bg)), var(--bg-1);
    box-shadow: 0 -16px 48px rgba(0, 0, 0, .28);
  }
  .cv-panel.is-open .cv-phead {
    position: sticky; top: 0; z-index: 1; margin: 0 -16px 10px; padding: 14px 64px 10px 16px;
    background: linear-gradient(var(--card-bg), var(--card-bg)), var(--bg-1);
    border-bottom: 1px solid var(--hairline);
  }
  .cv-pname { font-size: 25px; }
  .cv-pclose {
    display: grid; place-items: center; position: absolute; top: 10px; right: 12px;
    width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
    font: 400 24px/1 var(--cv-ui); color: var(--ink);
    background: var(--ctrl-bg); border: 1px solid var(--card-border);
  }
  .cv-ptab { padding: 12px 0; font-size: 14px; }
  .cv-viewtab { padding: 12px 4px; }
  .cv-verse summary { padding: 10px 0; }
  .cv-choice { min-height: 48px; }
  .cv-node { scroll-margin-top: 12px; }
  .cv-btn { min-height: 44px; }
  /* Room to scroll the last row clear of an open sheet. */
  #cvMain:has(.cv-panel.is-open) { padding-bottom: 40vh; }
}
