
:root{
  --bg:#F5EFE3; --bg2:#FFF9EF; --ink:#1F1A14; --soft:#6F6254; --faint:#74695B;
  --line:#E4D7C3; --card:#FFFCF5; --accent:#8C6533; --accent2:#3d5a6c;
  --gold:#926F3B; --pa:#376E50; --tier-green:#2f6847; --djpa:#377171; --pesh:#8A7148;
  --shadow:0 1px 2px rgba(60,40,20,.05),0 8px 28px rgba(60,40,20,.07);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:linear-gradient(180deg,#EFE8D8,#F5EFE3 240px);color:var(--ink);
  font-family:'EB Garamond',Georgia,serif;font-size:18px;line-height:1.5;-webkit-font-smoothing:antialiased}
.syr{font-family:'Noto Sans Syriac','Estrangelo Edessa',serif;direction:rtl;unicode-bidi:isolate}
.heb{font-family:'Noto Serif Hebrew','Noto Sans Hebrew',serif;direction:rtl;unicode-bidi:isolate}
.grk{font-family:'Noto Serif','GFS Didot',Georgia,serif}
.wrap{max-width:1180px;margin:0 auto;padding:0 26px 120px}
header.top{padding:46px 0 24px;text-align:center}
header.top .kicker{font-size:13px;letter-spacing:.32em;text-transform:uppercase;color:var(--accent);font-family:'Inter',system-ui,sans-serif;font-weight:600}
header.top h1{font-family:'Cormorant Garamond',Georgia,serif;font-size:42px;margin:.18em 0 .1em;font-weight:600;letter-spacing:.01em}
header.top .sub{color:var(--soft);font-style:italic;font-size:19px}
/* Every sticky strip sits under the site's own frozen header, whose height the header sets as
   --qala-header-h (0 when a page has none). */
.bar{position:sticky;top:var(--qala-header-h,0px);z-index:20;background:rgba(245,239,227,.86);backdrop-filter:blur(9px);
  border-bottom:1px solid var(--line);padding:11px 0;margin-bottom:26px}
.bar .inner{max-width:1180px;margin:0 auto;padding:0 26px;display:flex;flex-wrap:wrap;gap:8px 14px;align-items:center}
.bar .lbl{font-family:'Inter',system-ui,sans-serif;font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--soft);margin-right:4px}
.bar .home{font-weight:700}
/* Pinned home strip (2026-07-08): every page() page except the interlinear
   (which already has its own sticky .bar above, and folds the home link into
   that instead — see render_interlinear()) gets this slim sticky bar so a
   reader who scrolls deep into a chapter/corpus glossary never loses the way
   back to qaladyeshua.org. One line, horizontal-scroll on overflow rather
   than wrapping to a second line — same convention as the site's other
   pill rows (.bar-gospels/.chapters-inner in build_web_editions.py). */
.pin{position:sticky;top:var(--qala-header-h,0px);z-index:50;background:rgba(245,239,227,.92);backdrop-filter:blur(9px);
  -webkit-backdrop-filter:blur(9px);border-bottom:1px solid var(--line)}
.pin .inner{max-width:1180px;margin:0 auto;padding:10px 26px;display:flex;align-items:center;gap:16px;
  white-space:nowrap;overflow-x:auto;scrollbar-width:none}
.pin .inner::-webkit-scrollbar{display:none}
.pin-home{font-family:'Inter',system-ui,sans-serif;font-size:13.5px;font-weight:700;letter-spacing:.03em;
  color:var(--ink);text-decoration:none;flex-shrink:0}
.pin-home:hover{color:var(--accent)}
.pin-nav{display:flex;gap:14px;font-family:'Inter',system-ui,sans-serif;font-size:12.5px;flex-shrink:0}
.pin-nav a{color:var(--soft);text-decoration:none;white-space:nowrap}
.pin-nav a:hover{color:var(--accent)}
@media (max-width:480px){
  .pin .inner{padding:9px 14px;gap:10px}
  .pin-home{font-size:12.5px}
  .pin-nav{gap:10px;font-size:11.5px}
}
.toggle{font-family:'Inter',system-ui,sans-serif;font-size:13px;display:inline-flex;align-items:center;gap:6px;
  padding:5px 11px;border:1px solid var(--line);border-radius:999px;background:var(--bg2);cursor:pointer;user-select:none;transition:.15s}
a.toggle:not(.preset),a.toggle:not(.preset):visited{color:var(--accent);text-decoration:none}
.toggle:hover{border-color:var(--gold)}
.toggle input{accent-color:var(--accent);margin:0}
.toggle.preset{background:var(--ink);color:#F5EFE3;border-color:var(--ink)}
.toggle.preset:hover{background:var(--accent)}
/* 9/4: the lit button says which preset the remembered row set came from. */
.toggle.preset.on{background:var(--accent);border-color:var(--accent);box-shadow:inset 0 0 0 2px var(--gold)}
.verse{background:var(--card);border:1px solid var(--line);border-radius:14px;padding:20px 22px 14px;
  margin:0 0 18px;box-shadow:var(--shadow)}
.vnum{font-family:'Inter',sans-serif;font-weight:700;font-size:12px;color:#fff;background:var(--accent2);
  border-radius:7px;padding:3px 9px;vertical-align:middle;margin-right:10px}
.rendering{font-size:21px;line-height:1.55;color:var(--ink);margin:0 0 14px}
/* THE WORD BUBBLE (2026-09-29). A verse's word boxes wrap like the words of a sentence, at
   every width, phone included. Each box is one self-contained bubble: its visible layers stack
   inside it, and the verse (.grid) is a wrapping flex line of bubbles. The layer sizes are
   custom properties on .grid, so a narrower screen (see the phone block in IL_CSS) changes
   them in one place, and every layer keeps a fixed line box, so the same layer lines up
   across the bubbles of a line even where one cell is a gap dot or a small carry mark. */
.grid{display:flex;flex-wrap:wrap;gap:7px;align-items:stretch;
  --fs-ara:15px;--fs-prec:13px;--fs-pa:18px;--fs-heb:20px;--fs-syr:21px;--fs-gtr:12.5px;--fs-grk:18px;--fs-gloss:12px}
/* Aramaic (Peshitta) word order is the DEFAULT reading order (2026-07-08
   restructure; review fix #1): the DOM itself is emitted in Aramaic order, and
   the toggle PHYSICALLY re-sorts each grid's children (data-ar-order /
   data-gk-order, see setWordOrder()) so copy/paste, find, and screen readers
   always follow the visible order. These flex `order` rules are a pre-paint
   visual FALLBACK only: a returning Greek-order reader gets the body class
   from the early body-start script, so the flip is visible before the footer
   script physically reorders the nodes — no order flash either way. */
.grid .word{order:var(--ar-order,0)}
body.word-order-greek .grid .word{order:var(--gk-order,0)}
.word{display:flex;flex-direction:column;align-items:center;gap:3px;padding:8px 9px;border-radius:9px;
  min-width:48px;background:var(--bg);border:1px solid transparent;transition:.15s;text-decoration:none;color:inherit}
a.word:hover{background:#FAF5EB;border-color:var(--line)}
a.word.content{cursor:pointer}
a.word.content:hover{border-color:var(--gold)}
div.word.content{cursor:default}
.r{font-size:14px;line-height:1.3;text-align:center;white-space:nowrap}
.r.grk{font-size:var(--fs-grk,18px);color:var(--accent2)}
.r.gtr{font-size:var(--fs-gtr,12.5px);font-style:italic;color:var(--accent2);opacity:.9;font-family:'EB Garamond',serif}
.r.hebrow{font-size:var(--fs-heb,20px);color:var(--ink)}
.r.syr{font-size:var(--fs-syr,21px);color:var(--ink)}
.r.pa{font-size:var(--fs-pa,18px);color:var(--pa)}
.r.pa.att{font-weight:600}
.r.pa.rec{color:var(--soft);opacity:.96}
/* Western/Galilean script surface (2026-07-08 restructure). `.att.heb` = a
   genuine Palestinian-Aramaic attestation (Fitzmyer-Harrington/DJPA corpus,
   Hebrew square script, source-native — never a mechanical Syriac->Hebrew
   conversion). `.rec.syr` = a Peshitta-derived reconstruction candidate,
   honestly left in Syriac (its real source script) — never disguised as
   Hebrew. A small `.scripttag` superscript ("Heb"/"Syr") + a hover title
   name the distinction explicitly, so the two are never mistaken for one
   another at a glance, on top of the existing script/color/weight signal. */
.r.pa.att.heb{background:rgba(63,125,90,.10);border-radius:5px;padding:0 4px;box-shadow:inset 0 0 0 1px rgba(63,125,90,.28)}
.r.pa .scripttag{font-family:'Inter',sans-serif;font-size:8px;font-weight:700;letter-spacing:.03em;line-height:0;
  vertical-align:super;margin-inline-start:2px}
.r.pa.att .scripttag{color:var(--pa)}
.r.pa.rec .scripttag{color:var(--soft)}
.r.prec{font-size:var(--fs-prec,13px);font-style:italic;color:var(--soft);font-family:'EB Garamond',serif}
.r.flu{font-size:13px;color:var(--accent);font-family:'Inter',sans-serif}
.r.ara{font-size:var(--fs-ara,15px);color:var(--accent);font-family:'Inter',sans-serif;font-weight:500}
body:not(.tb-off) .word.tier-1 .r.ara,body:not(.tb-off) .word.tier-2 .r.ara{font-weight:700}
body:not(.tb-off) .word.tier-3 .r.ara,body:not(.tb-off) .word.tier-4 .r.ara{font-weight:700;color:var(--tier-green)}
.r.ara.paw{text-decoration:underline;text-decoration-color:var(--pa);text-decoration-thickness:2px;text-underline-offset:3px}
.r.ara.pa-lead{text-decoration-style:double;font-style:normal}
/* owner ruling 95 (2026-08-18): reconstructed vowels are drawn apart from printed
   ones — double underline = DJPA prints the vowels, dotted = vowels reconstructed. */
.r.ara.pa-lead.pa-lead-recon{text-decoration-style:dotted}
.word.merged{border-bottom:2px dotted var(--border,#d8ccb8)}
.r.gloss.qg{color:var(--tier-green,#2f6847)}
.r.gloss{font-size:var(--fs-gloss,12px);color:var(--soft);font-family:'Inter',sans-serif;max-width:90px;white-space:normal}
.r.gap{color:var(--faint);opacity:1}
/* Round 18 follow-up: a "carried_by" footnote — honest that an empty Syriac
   cell is morphological absorption (a proclitic on a neighbor, or Aramaic
   having no separate article word), never a real alignment link. Deliberately
   quieter than .r.syr's 21px ink: small, faint, no underline, help cursor. */
.r.carry{font-size:13px;color:var(--faint);cursor:help;font-style:normal;letter-spacing:.01em}
/* the carry mark is small, but it keeps its script row's full line box, so the rows under it
   stay level with the neighbouring bubbles' rows */
.r.hebrow.carry{line-height:calc(var(--fs-heb,20px)*1.3)}
.r.syr.carry{line-height:calc(var(--fs-syr,21px)*1.3)}
/* the tier pill sits on the bubble's floor, so the pills of one line align even when a gloss
   above one of them wraps */
.word .tierpill{margin-top:auto}
.tierpill{font-family:'Inter',sans-serif;font-size:10px;font-weight:700;padding:1px 6px;border-radius:5px;color:#fff;cursor:help}
/* verse-level Greek floor confidence (flag layer; ROCK_SOLID/STABLE stay silent) */
.vconf{font-family:'Inter',sans-serif;font-size:9px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;
  padding:2px 7px;border-radius:5px;color:#fff;margin-left:8px;vertical-align:middle;cursor:help}
.vconf.watch{background:var(--gold)}
.vconf.contested{background:#a0522d}
/* OT quotation band — Hebrew text + translit + LXX divergence analysis */
.otq{background:#f2ecdd;border-left:3px solid var(--accent2);border-radius:0 8px 8px 0;padding:8px 13px;margin:0 0 13px;font-size:15px}
.otq .otk{font-family:'Inter',sans-serif;font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--accent2);font-weight:700;margin-right:8px}
.otflag{font-family:'Inter',sans-serif;font-size:10.5px;font-weight:600;letter-spacing:.01em;
  background:#a0522d;color:#fff;padding:2px 8px;border-radius:5px;cursor:help}
/* the Greek Old Testament (Septuagint) line under the Hebrew (2026-09-25) */
.otlxx{margin:5px 0 2px;font-size:15px;line-height:1.55}
.otlxx .grk{font-size:16px}
.otlxx .otlab{font-family:'Inter',sans-serif;font-size:11px;color:var(--accent2);margin-right:7px}
.otlxx .ottr,.otlxx .oten{display:block;font-size:13px}
.otlxx .oten{color:var(--soft)}
.otheb{font-size:19px;margin:6px 0 2px;line-height:1.7}
/* the per-word Hebrew row: script, transliteration and a BDB sense under each word, read
   right to left like the Hebrew itself; a word with no BDB row prints an em space */
.othebw{display:flex;flex-wrap:wrap-reverse;flex-direction:row-reverse;justify-content:flex-start;
  gap:4px 14px;margin:6px 0 2px;direction:rtl}
.othw{display:flex;flex-direction:column;align-items:center;text-align:center;min-width:44px}
.othw .heb{font-size:19px;line-height:1.6}
.othw .ottr{font-size:12px;font-style:italic;color:var(--soft)}
.othw .otgl{font-size:12px;color:var(--faint);direction:ltr}
.ottr{font-style:italic;color:var(--soft);font-size:13.5px}
.otnote{font-family:'Inter',sans-serif;font-size:12px;color:var(--soft);margin-top:5px;line-height:1.55}
.hide-otq .otq{display:none}
.cpawit{background:#eef2ec;border-left:3px solid var(--pa);border-radius:0 8px 8px 0;padding:7px 13px;margin:0 0 13px;font-size:15px}
.cpawit .otk{font-family:'Inter',sans-serif;font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--tier-green);font-weight:700;margin-right:8px}
.cpawit .syr{font-size:17px}
.cpawit .cpaline{margin-top:4px}
.cpawit .cpalab{font-family:'Inter',sans-serif;font-size:10.5px;letter-spacing:.04em;color:var(--soft);margin-right:8px}
.cpawit .approx{font-family:'Inter',sans-serif;font-size:9px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;background:#617C5B;color:#fff;padding:2px 7px;border-radius:5px;margin-right:8px;vertical-align:middle}
/* Old Syriac (Sinaiticus, Lewis 1910) verse band — display-only, verse-approximate; as quiet as the ≡ OT band */
.oswit{background:#f3efe6;border-left:3px solid #b8ab8f;border-radius:0 8px 8px 0;padding:7px 13px;margin:0 0 13px;font-size:15px;cursor:help}
.oswit .otk{font-family:'Inter',sans-serif;font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:#74674C;font-weight:700;margin-right:8px}
.oswit .approx{font-family:'Inter',sans-serif;font-size:9px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;background:#837358;color:#fff;padding:2px 7px;border-radius:5px;margin-right:8px;vertical-align:middle}
.oswit .syr{font-size:17px;line-height:1.7}
.oswit .ostr{font-style:italic;color:var(--soft);font-size:12.5px;margin-top:2px}
.hide-os .oswit{display:none}
.cpawit .approx{font-family:'Inter',sans-serif;font-size:9px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;background:#617C5B;color:#fff;padding:2px 7px;border-radius:5px;margin-right:8px;vertical-align:middle}
.hide-cpa .cpawit{display:none}
.t1{background:#3B7454}.t2{background:#627D43}.t3{background:#926F3B}.t4{background:#9E6846}.tNone{background:#837358}
/* row visibility toggles */
/* .syr is also the SCRIPT class of the grey Pal. Aramaic cells (r pa rec syr): the Syriac toggle hides the
   Syriac row only, never those cells (red-team 9/29) */
.hide-ara .r.ara,.hide-grk .r.grk,.hide-gtr .r.gtr,.hide-heb .r.hebrow,.hide-syr .r.syr:not(.pa),.hide-pa .r.pa,.hide-prec .r.prec,.hide-gloss .r.gloss,.hide-tier .tierpill{display:none}
/* 2026-09-26: the Palestinian Aramaic row is back, realigned: each cell now reads
   data/processed/interlinear/pa_row.jsonl (scripts/build_pa_row.py), built from the box's own
   Peshitta word. It ships off by default; its toggle and the Full preset bring it in. */
/* in-page glossary popover */
#gpop{position:fixed;z-index:60;max-width:400px;min-width:290px;background:var(--card);border:1px solid var(--line);
  border-radius:14px;box-shadow:0 6px 40px rgba(60,40,20,.22);padding:16px 18px 13px;display:none;max-height:70vh;overflow-y:auto}
#gpop .form{font-size:26px;line-height:1.15}
#gpop .translit{font-style:italic;color:var(--soft);font-size:14px;margin-bottom:6px}
#gpop .badge{float:right;margin-left:8px}
#gpop .k{font-family:'Inter',sans-serif;font-size:10px;letter-spacing:.1em;text-transform:uppercase;color:var(--faint)}
#gpop .feltbox{margin:8px 0;font-size:14.5px}
#gpop .sense{margin:5px 0;padding:5px 9px;background:var(--bg);border-radius:7px;font-size:13.5px}
#gpop .sense b{font-size:14px}
#gpop .grkline{font-size:13px;color:var(--accent2);font-family:'Inter',sans-serif;margin:3px 0}
#gpop .row2{font-size:13px;color:var(--soft);margin:3px 0}
#gpop .full{display:inline-block;margin-top:8px;font-family:'Inter',sans-serif;font-size:12.5px;color:var(--accent);text-decoration:none;font-weight:600}
#gpop .close{position:sticky;top:0;float:right;border:none;background:var(--bg);border-radius:6px;cursor:pointer;
  font-size:13px;color:var(--soft);padding:2px 8px;font-family:'Inter',sans-serif}
/* glossary */
.gtools{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-bottom:22px}
.gtools input[type=search]{font-family:'Inter',sans-serif;font-size:15px;padding:9px 14px;border:1px solid var(--line);
  border-radius:999px;background:var(--card);min-width:240px;flex:1}
.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(330px,1fr));gap:18px}
/* 2026-11-06 (WCAG 1.4.10 reflow, Astra R4): under 375 px the 330 px card column is wider than the .wrap
   content box (320 - 2 x 26 = 268 px), so the page scrolled sideways (356 px wide at 320). There the column
   shrinks to the box; the rule does not apply at 375 px and up, where the layout is unchanged */
@media (max-width:374px){.cards{grid-template-columns:repeat(auto-fill,minmax(min(330px,100%),1fr))}}
.card{background:var(--card);border:1px solid var(--line);border-radius:14px;padding:18px 20px;box-shadow:var(--shadow);scroll-margin-top:90px;position:relative}
.card .top{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;margin-bottom:8px}
.card .form{font-size:30px;line-height:1.1}
.card .translit{font-style:italic;color:var(--soft);font-size:16px}
.card .flu{font-family:'Inter',sans-serif;color:var(--accent);font-size:13px}
.badge{font-family:'Inter',sans-serif;font-size:10px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;
  padding:3px 8px;border-radius:999px;color:#fff;white-space:nowrap}
.b-pa{background:var(--pa)}.b-djpa{background:var(--djpa)}.b-pesh{background:var(--pesh)}
.b-phr{background:transparent;color:var(--soft);border:1px solid var(--line);cursor:help}
.card .root{font-family:'Inter',sans-serif;font-size:12px;color:var(--soft);margin:2px 0 10px}
.card .row{margin:7px 0;font-size:15px}
.card .row .k{font-family:'Inter',sans-serif;font-size:10px;letter-spacing:.1em;text-transform:uppercase;color:var(--faint);display:block;margin-bottom:1px}
.feltbox{background:#f6efe1;border-left:3px solid var(--gold);border-radius:0 8px 8px 0;padding:9px 12px;margin:9px 0;font-size:15.5px;line-height:1.5}
.feltbox.blocked{background:#f3eee6;border-color:#cbbfa8;color:var(--soft);font-style:italic}
.also{font-size:12.5px;color:var(--soft);margin-top:2px}.also .syr{font-size:15px}
.fstatus{font-family:'Inter',sans-serif;font-size:10px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;padding:1px 6px;border-radius:4px;margin-left:6px;color:#fff}
.s-approved{background:var(--pa)}.s-draft{background:#8a6a2a}.s-blocked{background:#7d7362}.s-human-edited{background:#3d5a6c}.s-draftable{background:#7a6f5e}
.rend{display:inline-block;background:#eee3cf;border-radius:6px;padding:2px 9px;margin:2px 4px 2px 0;font-size:15px}
.rend.pref{background:var(--accent);color:#fff}
.refs a{color:var(--accent2);text-decoration:none;font-family:'Inter',sans-serif;font-size:12px;margin-right:6px}
.refs a:hover{text-decoration:underline}
.src{font-family:'Inter',sans-serif;font-size:11px;color:var(--faint);margin-top:4px}
.card .tr{display:flex;flex-direction:column;align-items:flex-end;gap:4px}
/* 2026-11-06 (L6-08): on a phone the one-line witness badge ("Palestinian Aramaic attested") pushed 57
   card rows past the card and the page to 383 px at 375. Under 480 px the word side takes only the room
   the badge column leaves (flex-basis 0, never below its own words), and the badge may wrap, which it
   then does only on the rows that cannot fit it (61 of 1,380 at 375 px, 1 at 430 px) */
@media (max-width:480px){.card .top>:not(.tr){flex:1 1 0}.card .tr .badge{white-space:normal;text-align:right}}
.cmp{display:flex;gap:10px;margin:8px 0}
.cmpcol{flex:1;background:var(--bg);border-radius:8px;padding:6px 10px;min-width:0}
.cmpcol.std{border-left:3px solid #c9bfae}
.cmpcol.qala{border-left:3px solid var(--accent)}
.ed{outline:none;border-radius:4px;transition:.12s;cursor:text}
.ed:hover{background:rgba(181,138,74,.12);box-shadow:0 0 0 4px rgba(181,138,74,.12)}
.ed:focus{background:#FFFCF5;box-shadow:0 0 0 2px var(--gold)}
.qalaed{color:var(--accent);font-weight:500}
.card.edited{box-shadow:0 0 0 2px var(--gold),0 8px 28px rgba(60,40,20,.10)}
.card.edited::before{content:'edited';position:absolute;top:-9px;right:14px;font-family:'Inter',sans-serif;font-size:9px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#fff;background:var(--gold);padding:2px 7px;border-radius:5px}
.cmpcol .k{display:block;font-family:'Inter',sans-serif;font-size:10px;letter-spacing:.1em;text-transform:uppercase;color:var(--faint);margin-bottom:3px}
.cmpcol.std{font-size:15px;color:var(--soft)}
.wits{font-family:'Inter',sans-serif;font-size:12px;color:var(--soft);margin-top:6px;line-height:1.7}
.wits .syr{font-size:16px;font-family:'Noto Sans Syriac',serif}
/* CAL evidence band (2026-07-26 weave). The Comprehensive Aramaic Lexicon, used by
   written permission from its maintainer (S. Kaufman, 2026-07-25), scoped to this
   corpus's own lemmas and credited on every card that shows it.
   It EXTENDS the provenance language already on the page instead of competing with
   it: green (--pa) has always meant "Western/Palestinian attestation" here — the PA
   row, the green underline, the PA-attested badge — so a Western dialect chip is
   green and every other dialect stays neutral grey. The DJPA note inside .wits keeps
   its own job: that is Sokoloff's Galilean DICTIONARY entry for this word, while this
   band is CAL's DIALECT TAGGING of the lemma. Two sources, shown side by side. */
.calband{margin-top:8px;font-family:'Inter',sans-serif;font-size:12px;color:var(--soft);line-height:1.75}
.calband .k{font-family:'Inter',sans-serif;font-size:10px;letter-spacing:.1em;text-transform:uppercase;color:var(--faint);margin-right:7px;cursor:help}
.calband .voc{font-family:'EB Garamond',Georgia,serif;font-size:17px;font-style:italic;color:var(--ink)}
.calband .pos{font-size:11px;color:var(--faint);margin-left:7px}
.calband .rt{margin-left:9px;color:var(--djpa);cursor:help}
.calband .dianeutral{font-size:11px;color:var(--soft)}
.dia{display:inline-block;font-size:10px;font-weight:700;letter-spacing:.03em;padding:1px 6px;border-radius:4px;
  margin:0 4px 3px 0;background:#ece5d6;color:var(--soft);cursor:help}
.dia.west{background:var(--pa);color:#fff}
.dia.common{background:transparent;color:var(--soft);box-shadow:inset 0 0 0 1px rgba(120,110,95,.35)}
.calsense{margin:2px 0 0;padding-left:15px;text-indent:-15px;font-size:12.5px;color:var(--soft);cursor:help}
.calsense b{color:var(--ink);font-weight:600;margin-right:4px}
.calsense .wsense{color:var(--pa);font-weight:700;font-size:10px;letter-spacing:.04em}
.calband .prov{font-size:10.5px;color:var(--faint);margin-top:3px}
.calband .prov a{color:var(--accent);text-decoration:none}
.calband .prov a:hover{text-decoration:underline}
/* "Sources and scholars": the CPA-lexicon row and the scholar notes, on the card and in
   the popover. Collapsed by default — a reader clicking a word wants the sense first and
   the receipts on demand. One rule set, both surfaces. */
.srcband{margin-top:6px;border-top:1px solid var(--line);padding-top:5px}
.srcband>summary{font-family:'Inter',sans-serif;font-size:11px;letter-spacing:.04em;
  color:var(--soft);cursor:pointer;list-style:none;user-select:none}
.srcband>summary::marker,.srcband>summary::-webkit-details-marker{display:none}
.srcband>summary::before{content:'\25B8 ';color:var(--faint)}
.srcband[open]>summary::before{content:'\25BE '}
/* stacks directly below the .pin home strip (see page()) rather than
   overlapping it — .pin is sticky top:0 and roughly 40px tall */
.viewbar{position:sticky;top:calc(var(--qala-header-h,0px) + 40px);z-index:40;background:var(--bg);padding:10px 0 8px;display:flex;flex-wrap:wrap;gap:6px 8px;align-items:center;font-family:'Inter',sans-serif;font-size:12px;color:var(--muted)}
.viewbar .vb{border:1px solid var(--lines);background:var(--card);border-radius:999px;padding:5px 14px;cursor:pointer;color:var(--muted);font-size:12px}
.viewbar .vb.on{background:var(--accent);border-color:var(--accent);color:#fff}
body.v-forms .card>*:not(.top):not(.cmp){display:none}
body.v-forms .cmp .cmpcol.std{display:none}
body.v-forms .card{padding:10px 16px}
body.v-forms .cmp{margin-top:4px}
body.v-roots .card>*:not(.top){display:none}
body.v-roots .card{padding:7px 14px}
body.v-roots .cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:8px}
body.v-roots .rootband{margin:22px 0 8px}
.rootband{display:flex;align-items:baseline;gap:14px;margin:30px 0 12px;padding:8px 16px;
  background:linear-gradient(90deg,#efe6d4,#F5EFE3);border-radius:10px;border:1px solid var(--line);scroll-margin-top:80px}
.rootkey{font-size:26px;color:var(--accent);font-weight:500}
.rootkey-syr{font-size:20px;color:var(--soft)}
.translit .scriptsub{font-style:normal;font-size:20px;color:var(--ink)}
.gkline{font-style:italic}
.gkline .grk{font-style:normal;font-size:15px;color:var(--soft)}
.rootmeta{font-family:'Inter',sans-serif;font-size:12px;letter-spacing:.04em;text-transform:uppercase;color:var(--soft)}
footer{text-align:center;color:var(--faint);font-family:'Inter',sans-serif;font-size:12px;margin-top:40px;line-height:1.7}

/* ---------- interlinear title and toolbar ------------------------------ */
header.top{padding:32px 8px 16px}
.bar{margin-bottom:8px}
.bar .grp-nav{display:contents}
.bar .grp-nav .toggle{white-space:nowrap}
.bar .grp-presets{display:flex;gap:14px;margin-left:auto}
.bar .rowsbtn{-webkit-appearance:none;appearance:none;color:inherit;font:inherit;
  font-family:'Inter',system-ui,sans-serif;font-size:13px}
.bar .grp-rows{display:none}
body.rows-open .bar .grp-rows{display:flex;flex:1 0 100%;flex-wrap:wrap;gap:8px 14px;align-items:center;
  padding:5px 0 3px;border-top:1px solid var(--line);margin-top:2px}
/* Keep the expanded desktop bar within the old always-visible bar's landing space. */
@media(min-width:641px){body.rows-open .bar .grp-rows{row-gap:3px;padding:1px 0;margin-top:0}}
.bar .rowsbtn[aria-expanded="true"]{background:var(--ink);color:#F5EFE3;border-color:var(--ink)}
.bar .toggle:focus-visible,.bar .toggle:has(input:focus-visible){outline:2px solid var(--accent);outline-offset:-2px}
.bar .toggle.preset:focus-visible,.bar .rowsbtn[aria-expanded="true"]:focus-visible{outline-color:var(--bg)}
/* f4 (O5): the bar is sticky, so its controls are always on screen. On the site html{scroll-padding-top}
   covers the bar itself (it is what makes a #vN jump clear it), so Chrome took a Tab-focused control for
   hidden and centred it: every Tab mid-page jumped the page 420-465 px. A negative scroll-margin as tall
   as that padding takes the bar's controls back out of it; a control below the fold is still revealed. */
.bar a,.bar button,.bar input{scroll-margin-top:calc(-1 * (var(--qh-h,0px) + var(--qh-tools,92px) + 6px))}

/* ---------- the simple view (2026-10-01) -------------------------------
   Owner: in the read-only / Talk-along view "I don't want that to have the yellow, green, and bold
   alternatives … in the simplest view, I'd like it to collapse into just one color." body.il-simple is
   set whenever the rows on screen are only the Aramaic transliteration and/or the English (the Talk-along
   and Minimal presets, or the same rows picked by hand). The Full view keeps every distinction. */
body.il-simple .word .r.ara{font-weight:500!important;color:var(--accent)!important;text-decoration:none!important}
body.il-simple .word .r.gloss,body.il-simple .word .r.gloss.qg{color:var(--soft)!important;text-decoration:none!important}
body.il-simple .word.merged{border-bottom-color:transparent}
body.il-simple .bar label:has(#tbtoggle),body.il-simple .bar label:has(#gmtoggle){display:none}
/* the three presets are <button>s (red-team 9/29: as <label onclick> no keyboard could reach them);
   .toggle already sets their font, padding, border and colour, so only the UA chrome goes */
.bar button.toggle{-webkit-appearance:none;appearance:none;margin:0;line-height:inherit}

/* ---------- Aramaic only (2026-09-29) --------------------------------------
   With both Greek rows off (Greek and Greek translit; Talk-along and Minimal are two such
   views), the page reads the Aramaic alone. A box that holds only a Greek word (no Peshitta
   word of its own: an article Aramaic does not write, a word Aramaic folds into its
   neighbour as a proclitic or a suffix, a word the Peshitta leaves out) steps out, and its
   English goes with it: that English glossed only the Greek word. Every box with an Aramaic
   word keeps its own English. Pure CSS off the hide-* classes, which the pre-paint script
   sets, so nothing flashes. */
body.hide-grk.hide-gtr .word.gk-only{display:none}
/* 2026-09-29 (owner chose "fold the clear ones in"): the small words the Aramaic writes as a
   prefix or an ending (w- and, b- in, l- to, mn- from; my / your / his / her / our / their on a
   noun) lived in those Greek-only boxes. With the Greek off they fold into the Aramaic word's
   own English, read from the Peshitta's own grammar tags (never from the Greek). With the
   Greek on they stay hidden here, because the Greek boxes still show them. */
.r.gloss .cg{display:none}
body.hide-grk.hide-gtr .r.gloss .cg{display:inline}
body.hide-grk.hide-gtr .r.gloss .cg-the{display:none}

/* a verse reached by its #vN anchor, or a box scrolled to from its English word, lands under
   the sticky bars instead of behind them (--qala-bar-h is set by the shared script) */
.verse{scroll-margin-top:calc(var(--qala-header-h,0px) + var(--qala-bar-h,0px) + 10px)}
.word{scroll-margin-top:calc(var(--qala-header-h,0px) + var(--qala-bar-h,0px) + 10px);scroll-margin-bottom:10px}

/* ---------- gold-to-token highlight --------------------------------------
   Hovering a word box lights the English words it renders; hovering an English
   word lights the box. Both directions are pure CSS off classes the shared
   script sets, and nothing here moves a pixel until the reader points at
   something. `medium` links stay dark until the English-links toggle is on;
   low-confidence links are never emitted, so no toggle can reveal a guess. */
.rendering .gw{border-radius:3px;transition:background-color .12s}
.rendering .gw.lit{background:var(--gold-tint,#f6ecd2)}
.word.lit{background:#FAF5EB;border-color:var(--gold)}
/* a box with an English partner earns a quiet dotted underline under its English row,
   so a reader can see which boxes will answer before hovering anything */
.word[data-gold] .r.gloss{text-decoration:underline dotted var(--faint);text-underline-offset:2px}
body:not(.gold-medium) .word[data-goldc="medium"] .r.gloss{text-decoration:none}
@media (prefers-reduced-motion:reduce){.rendering .gw,.word{transition:none}html{scroll-behavior:auto}}

/* ---------- the phone surface -------------------------------------------
   Under 640px the verse stays a sentence of word bubbles (owner, 9/29: "not whole rows, it
   ain't an acrostic"). The bubbles wrap several to a line exactly as on a desktop, only
   tighter: smaller layer sizes (set once on .grid), less padding, and a bubble never wider
   than the verse, so nothing scrolls sideways. The presets govern which layers show inside
   each bubble here exactly as they do on a desktop. */
@media(max-width:640px){
  /* --- toolbar: two rows, 89px closed at 375px --- */
  .bar{padding:2px 0}
  .bar .inner{padding:0 10px;flex-wrap:wrap;gap:4px 6px;align-items:center}
  .bar .toggle{min-height:40px;font-size:12.5px;padding:0 10px;gap:5px}
  .bar .grp-presets{display:contents}
  .bar .toggle.preset{order:1}
  .bar .rowsbtn{order:2}
  .bar .grp-nav{display:flex;order:3;flex:1 0 100%;gap:6px;align-items:center;min-width:0;
    overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none;
    -webkit-mask-image:linear-gradient(to right,#000 calc(100% - 28px),transparent);
            mask-image:linear-gradient(to right,#000 calc(100% - 28px),transparent)}
  .bar .grp-nav:has(a:focus-visible){-webkit-mask-image:none;mask-image:none}
  .bar .grp-nav::-webkit-scrollbar{display:none}
  .bar .grp-nav>*{flex:0 0 auto}
  .bar .grp-nav .nav-prev{order:1}
  .bar .grp-nav .nav-next{order:2}
  .bar .grp-nav .home{order:3}
  .bar .grp-nav .nav-link{order:4}
  body.rows-open .bar .grp-rows{order:4;gap:5px 6px;max-height:44vh;overflow-y:auto;overflow-x:hidden}
  body.rows-open .bar .grp-rows .lbl{margin-left:0!important;flex:0 0 100%}

  /* --- page frame --- */
  .wrap{padding:0 12px 90px}
  header.top{padding:18px 8px 10px}
  header.top h1{font-size:30px}
  header.top .sub{font-size:16px}
  .verse{padding:13px 12px 10px;border-radius:12px;margin:0 0 14px;
    content-visibility:auto;contain-intrinsic-size:auto 600px}
  .rendering{font-size:19px;margin:0 0 12px}

  /* --- word bubbles: the verse wraps like a sentence --- */
  .grid{display:flex;flex-direction:row;flex-wrap:wrap;gap:6px 5px;align-items:stretch;
    --fs-ara:15px;--fs-prec:12px;--fs-pa:16px;--fs-heb:18px;--fs-syr:19px;--fs-gtr:11.5px;--fs-grk:16px;--fs-gloss:12.5px}
  .word{flex:0 1 auto;min-width:44px;min-height:44px;max-width:100%;padding:6px 7px 5px;gap:2px;border-radius:8px}
  .word .r{white-space:normal;overflow-wrap:anywhere;max-width:100%}
  .word .r.gloss{max-width:96px;line-height:1.25}
  .word .tierpill{padding:1px 5px}

  /* --- witness bands --- */
  .otq,.cpawit,.oswit{padding:7px 10px;font-size:14px}
  .otheb{font-size:17px}

  /* --- the popover docks to the bottom of the screen, always inside it --- */
  #gpop{left:8px!important;right:8px!important;top:auto!important;bottom:0!important;
    width:auto;max-width:none;min-width:0;max-height:62vh;border-radius:14px 14px 0 0;
    padding:14px 15px 12px;box-shadow:0 -6px 40px rgba(60,40,20,.26)}
  /* --- the Rows panel scrolls inside the bar (max-height:44vh): its checkboxes undo the bar's negative
     scroll-margin (above), which stopped a reverse Tab revealing a checkbox above the panel's fold. They keep
     Chrome's own reveal, with room for the whole pill: Chrome reveals the checkbox only, and left a pill's top
     7 px under the panel edge (S2 f4b; inside the single phone block, 0,2,1 beats .bar input's 0,1,1) --- */
  .bar .grp-rows input{scroll-margin-top:16px;scroll-margin-bottom:16px}
}

/* A phone-sized window on a desktop pointer still gets finger-sized targets on a
   touch screen; this is the only place the two rules differ. */
@media (pointer:coarse) and (max-width:900px){.toggle{min-height:44px}}

/* ---------- print ---------------------------------------------------------
   Paper gets the verses and the bubbles, never the toolbar or an open popover, and a bubble
   is never cut in half at a page break. */
@media print{
  .bar,#gpop{display:none!important}
  header.top{padding:46px 0 24px}
  @media(max-width:640px){header.top{padding:26px 0 14px}}
  body{background:#fff}
  .verse{box-shadow:none;content-visibility:visible;break-inside:auto}
  .word{break-inside:avoid}
  .rendering{break-after:avoid}
}
