:root {
  --ink: #23201c; --muted: #6b645a; --paper: #f7f2e8; --card: #fffdf8; --line: #e3d9c6;
  --accent: #b02e32; --blue: #2f4858; --gold: #a0782a; --ring: rgba(255, 214, 102, .95);
  --bar-h: 56px; --bar-min: 56px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --ink: #ece6da; --muted: #b4ab9c; --paper: #1d1b18; --card: #262320; --line: #3d3832; --blue: #9cc0d4; --gold: #d4ae62; }
}
:root[data-theme="dark"] { --ink: #ece6da; --muted: #b4ab9c; --paper: #1d1b18; --card: #262320; --line: #3d3832; --blue: #9cc0d4; --gold: #d4ae62; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--paper); color: var(--ink); font: 16px/1.5 "Source Sans 3", system-ui, sans-serif; }
.bar { position: fixed; inset: 0 0 auto 0; min-height: var(--bar-min); display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 16px; background: var(--card); border-bottom: 1px solid var(--line); z-index: 10; flex-wrap: wrap; }
.brand { display: flex; align-items: baseline; gap: 10px; }
.brand-name { font: 700 18px "Gentium Book Plus", Georgia, serif; color: var(--blue); }
.book { font: italic 16px "Gentium Book Plus", Georgia, serif; color: var(--gold); }
.controls { display: flex; gap: 10px; flex-wrap: nowrap; align-items: center; }
.seg { display: flex; gap: 4px; }
.group { display: flex; gap: 6px; align-items: center; }
.label { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-right: 2px; }
.chip, .textbtn, select, .play, .nav button, .sing button {
  -webkit-tap-highlight-color: transparent;
  font: 600 14px "Source Sans 3", sans-serif; border: 1px solid var(--line); background: var(--paper); color: var(--ink);
  border-radius: 999px; padding: 5px 11px; cursor: pointer; min-height: 32px; }
.chip[aria-pressed="true"] { background: var(--blue); color: var(--card); border-color: var(--blue); }
select { border-radius: 8px; }
.langsel { display: none; }
.play { background: var(--accent); color: #fff; border-color: var(--accent); }
.play[data-playing="1"] { background: var(--ink); border-color: var(--ink); }
.play .pos { font-variant-numeric: tabular-nums; }
.play[data-playing="1"] .pos { margin-left: 6px; }
.follow { position: absolute; top: 12px; left: 12px; z-index: 6; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--card); box-shadow: 0 4px 14px rgba(0,0,0,.35); cursor: pointer; display: grid; place-items: center; padding: 0; }
.follow svg { width: 26px; height: 26px; fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; }
.follow .dot { fill: var(--blue); stroke: none; }
.follow .corners { display: none; }
.follow.free .dot { fill: none; stroke: var(--blue); stroke-width: 2; }
.follow.free svg { stroke: #777; } .follow.free .dot { stroke: #777; }
.follow.scene .corners { display: block; stroke: var(--gold); } .follow.scene .ring, .follow.scene .tick { display: none; }
.offmark { position: absolute; z-index: 6; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 4px; padding: 5px 10px 5px 8px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: 700 14px "Source Sans 3", sans-serif;
  box-shadow: 0 4px 14px rgba(0,0,0,.35); cursor: pointer; }
.offmark[hidden], .follow[hidden], .taptip[hidden] { display: none; }   /* 20 Nov 2026: display: flex above beat the hidden attribute, so the marker never went away */
.offmark .ar { display: inline-block; color: var(--accent); font-size: 16px; line-height: 1; }
.frame { position: absolute; top: 12px; left: 12px; z-index: 5; font: 600 14px "Source Sans 3", sans-serif; padding: 6px 12px; min-height: 34px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); box-shadow: 0 4px 14px rgba(0,0,0,.3); cursor: pointer; }
.stage { position: fixed; inset: var(--bar-h) 0 0 0; background: #1b1916; }
#map { width: 100%; height: 100%; }
.hot { border-radius: 4px; cursor: pointer; outline: 0 solid transparent; transition: outline-color .2s, box-shadow .2s; }
.hot:hover, .hot:focus-visible { box-shadow: 0 0 0 2px var(--ring); }
.hot.on { box-shadow: none; }
.ring { border-radius: 4px; pointer-events: none; box-shadow: 0 0 0 3px var(--ring), 0 0 18px 4px rgba(255, 214, 102, .55); }
.ring[hidden] { display: none; }
.panel { position: fixed; z-index: 11; background: var(--card); border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
  overflow-y: auto; padding: 14px 18px 18px; right: 16px; top: calc(var(--bar-h) + 16px); bottom: 16px; width: min(420px, calc(100% - 32px)); border-radius: 14px; }
.panel-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; position: sticky; top: -14px; background: var(--card); padding: 4px 0 8px; }
.ref { font: 700 20px "Gentium Book Plus", Georgia, serif; color: var(--accent); }
.ptitle { font: italic 15px "Gentium Book Plus", Georgia, serif; color: var(--blue); }
.nav { display: flex; gap: 6px; }
.nav button { width: 34px; padding: 0; font-size: 18px; }
.texts p { margin: 4px 0 8px; font: 17px/1.5 "Gentium Book Plus", Georgia, serif; }
.texts .lang { display: block; font: 600 11px "Source Sans 3", sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.texts [dir="rtl"] { font: 21px/1.8 "Noto Naskh Arabic", serif; text-align: right; }
.texts [lang="he"] { font: 20px/1.8 "Noto Serif Hebrew", serif; }
.ptitle[dir="rtl"] { text-align: right; }
.sing { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 12px; }
.sing button[data-playing="1"] { background: var(--accent); color: #fff; border-color: var(--accent); }
details { border-top: 1px solid var(--line); padding: 8px 0 2px; }
summary { cursor: pointer; font: 700 15px "Gentium Book Plus", Georgia, serif; color: var(--gold); }
details p { margin: 6px 0 8px; }
.iconum { display: flow-root; }
.iconum-pic { float: left; margin: 6px 14px 6px 0; padding: 6px; width: 124px; height: 124px; border: 1px solid var(--line);
  border-radius: 12px; background: #fffdf8; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.iconum-pic img { display: block; width: 100%; height: 100%; object-fit: contain; }
.iconum-pic:hover, .iconum-pic:focus-visible { box-shadow: 0 0 0 2px var(--ring); outline: none; }
.iconum p { margin-top: 6px; }
.foot { color: var(--muted); font-size: 12px; margin-top: 14px; }
/* 11 Nov 2026: panel texts in the reader's language; Learn mode (Palestinian Arabic, taught in English or French) */
details p[dir="rtl"] { font: 19px/1.75 "Noto Naskh Arabic", serif; text-align: right; }
details p[lang="he"] { font: 18px/1.75 "Noto Serif Hebrew", serif; }
details[dir="rtl"] summary { text-align: right; font-family: "Noto Naskh Arabic", "Noto Serif Hebrew", serif; }
details[dir="rtl"] .iconum-pic { float: right; margin: 6px 0 6px 14px; }
.learn-btn[aria-pressed="true"] { background: var(--blue); color: var(--card); border-color: var(--blue); }
.learn { border-top: 1px solid var(--line); padding: 8px 0 4px; }
.learn-bar { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-bottom: 4px; }
.chip.small, .small-play { font: 600 13px "Source Sans 3", sans-serif; min-height: 28px; padding: 3px 10px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; }
.small-play[data-playing="1"] { background: var(--accent); color: #fff; border-color: var(--accent); }
.l-ar { margin: 6px 0 2px; font: 24px/1.9 "Noto Naskh Arabic", serif; text-align: right; }
.l-tr { margin: 0 0 4px; font: 400 16px/1.6 "Noto Sans SemiCondensed", "Noto Sans", sans-serif; color: var(--blue); }   /* 15 Nov 2026: upright Noto Sans, so a and ɑ stay distinct and the same height */
.l-tl { margin: 0 0 6px; font-size: 14px; color: var(--muted); }
.l-hint { margin: 2px 0 6px; font-size: 12px; color: var(--muted); }
.w { cursor: pointer; border-radius: 4px; padding: 0 1px; -webkit-tap-highlight-color: transparent; }
.w:hover { background: rgba(255, 214, 102, .35); }
.w.none { cursor: default; }
.w.none:hover { background: none; }
.w.sel { background: var(--ring); color: #23201c; }
.word { border: 1px solid var(--gold); border-radius: 12px; padding: 8px 12px; margin: 6px 0 8px; background: var(--paper); position: relative; }
.word .x { position: absolute; top: 2px; right: 6px; border: 0; background: none; font-size: 20px; color: var(--muted); cursor: pointer; }
.part { padding: 6px 0; border-top: 1px solid var(--line); }
.part:first-child { border-top: 0; }
.pf { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; padding-right: 18px; }
.pf .a { font: 24px "Noto Naskh Arabic", serif; direction: rtl; }
.pf .t { font: 400 15px "Noto Sans SemiCondensed", "Noto Sans", sans-serif; color: var(--blue); }
.pf .g { font-weight: 600; }
.meta { font-size: 13px; color: var(--muted); margin-top: 2px; }
.meta .a { font: 17px "Noto Naskh Arabic", serif; color: var(--ink); }
.meta .he { font: 15px "Noto Serif Hebrew", serif; color: var(--ink); unicode-bidi: isolate; direction: rtl; }
.note { font-size: 14px; margin-top: 4px; }
.note.bk { border-left: 3px solid var(--gold); padding-left: 8px; }
.learn[dir="rtl"] .note.bk { border-left: 0; border-right: 3px solid var(--gold); padding-left: 0; padding-right: 8px; }
.badge { font-size: 11px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 0 7px; color: var(--blue); }
.lnk { color: var(--blue); cursor: pointer; text-decoration: underline; font-size: 13px; background: none; border: 0; padding: 0; }
.fam { margin-top: 4px; font-size: 13px; border-collapse: collapse; width: 100%; table-layout: fixed; }
.fam td { padding: 2px 8px 2px 0; vertical-align: top; overflow-wrap: anywhere; }
.fam td.a { font: 16px/1.5 "Noto Naskh Arabic", serif; direction: rtl; text-align: right; width: 34%; }
.fam tr.ff td { font-size: 11px; color: #8a8f98; padding-top: 6px; letter-spacing: .04em; }
.fam td.t { width: 30%; }
.l-gram { white-space: pre-line; font-size: 14px; }
/* 11 Nov 2026 (2): Learn mode for Modern Hebrew; taught in Arabic, the Learn section reads right to left */
.l-ar[lang="he"] { font: 25px/1.9 "Noto Serif Hebrew", serif; }
.pf .h { font: 25px "Noto Serif Hebrew", serif; direction: rtl; }
.he { font-family: "Noto Serif Hebrew", serif; unicode-bidi: isolate; }
.meta .he { font-size: 17px; }
.fam td.h { font: 17px/1.5 "Noto Serif Hebrew", serif; direction: rtl; text-align: right; width: 42%; }
.learn[dir="rtl"] .word .x { right: auto; left: 6px; }
.learn[dir="rtl"] .pf { padding-right: 0; padding-left: 18px; }
.learn[dir="rtl"] .l-tl, .learn[dir="rtl"] .l-gram, .learn[dir="rtl"] .l-hint, .learn[dir="rtl"] .note, .learn[dir="rtl"] .meta,
.learn[dir="rtl"] .pf .g, .learn[dir="rtl"] .fam td, .learn[dir="rtl"] summary { font-family: "Noto Naskh Arabic", "Noto Serif Hebrew", serif; }
.learn[dir="rtl"] .l-tl { font-size: 17px; line-height: 1.7; }
.learn[dir="rtl"] .l-gram, .learn[dir="rtl"] .note { font-size: 16px; line-height: 1.75; }
.learn[dir="rtl"] .fam td.h { text-align: right; }
.learn[dir="rtl"] .learn-bar { direction: rtl; }
.learn[dir="rtl"] .seg.tl { direction: ltr; }
.learn .seg.tl { display: flex; }
/* English Learn mode (preview): the English verse and words, left to right, inside a panel that may read right to left */
.l-ar[lang="en"] { font: 21px/1.65 "Gentium Book Plus", Georgia, serif; text-align: left; }
.pf .e, .meta .en, .fam td.e { font-family: "Gentium Book Plus", Georgia, serif; direction: ltr; unicode-bidi: isolate; }
.pf .e { font-size: 22px; } .meta .en { font-size: 16px; color: var(--ink); }
.fam td.e { text-align: left; width: 40%; }
.pf .t, .meta .t { direction: ltr; unicode-bidi: isolate; }
.learn[dir="rtl"] .fam td.t { direction: ltr; text-align: right; }
.lat { direction: ltr; unicode-bidi: isolate; font-family: "Gentium Book Plus", Georgia, serif; }
.learn[dir="rtl"] .fam td.e { text-align: left; }
/* the teaching language in use, in the colours of the Learn button */
.chip.small[aria-pressed="true"] { background: var(--blue); color: var(--card); border-color: var(--blue); }   /* phones hide the map language chips (.seg), not the teaching language ones */
/* 11 Nov 2026: loading indicator while a song arrives */
.loadtip { position: fixed; z-index: 20; left: 50%; top: calc(var(--bar-h) + 12px); transform: translateX(-50%); display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  max-width: calc(100% - 32px); padding: 8px 14px 10px; border-radius: 12px; background: var(--blue); color: #fff; font: 600 14px "Source Sans 3", "Noto Naskh Arabic", "Noto Serif Hebrew", sans-serif;
  box-shadow: 0 6px 20px rgba(0,0,0,.3); }
.loadtip[hidden] { display: none; }
.lt-pc { font-variant-numeric: tabular-nums; }
.lt-spin { width: 14px; height: 14px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: ltspin .8s linear infinite; }
.lt-bar { flex-basis: 100%; height: 4px; border-radius: 2px; background: rgba(255,255,255,.25); overflow: hidden; }
.lt-bar i { display: block; height: 100%; width: 0; background: #fff; transition: width .3s; }
.loadtip.indef .lt-bar i { width: 30%; animation: ltslide 1.2s ease-in-out infinite; }
@keyframes ltspin { to { transform: rotate(360deg); } }
@keyframes ltslide { 0% { margin-left: -30%; } 100% { margin-left: 100%; } }
body.loading-audio .play[data-playing="1"], body.loading-audio .sing button[data-playing="1"], body.loading-audio .small-play[data-playing="1"] { animation: ltpulse 1s ease-in-out infinite; }
@keyframes ltpulse { 50% { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .lt-spin, .loadtip.indef .lt-bar i, body.loading-audio .play, body.loading-audio .sing button, body.loading-audio .small-play { animation: none; } }
@media (max-width: 720px) {
  :root { --bar-h: 52px; --bar-min: 52px; }
  .bar { padding: 6px 10px; gap: 8px; flex-wrap: nowrap; }
  .brand-name { display: none; }
  .book { font-size: 15px; }
  .controls { gap: 6px; }
  .seg { display: none; }
  .langsel { display: block; }
  select { padding: 4px 6px; }
  .play { padding: 4px 12px; }
  .play .txt { display: none; }
  .play .pos { margin-left: 4px; }
  .panel { left: 0; right: 0; bottom: 0; top: auto; width: 100%; max-height: 50vh; max-height: 50dvh; border-radius: 16px 16px 0 0; padding: 10px 14px 14px; }
  .panel-head { top: -10px; }
  .ref { font-size: 18px; }
  .texts p { font-size: 16px; }
  .iconum-pic { width: 100px; height: 100px; padding: 5px; margin-right: 12px; }
}
@media (max-width: 360px) { .book { display: none; } }

/* 12 Nov 2026: commentary (closed by default) and trail clue boxes */
.trail { margin: 4px 0 10px; padding: 8px 10px 8px 34px; border-left: 3px solid var(--gold); background: rgba(180,140,60,.09); border-radius: 4px; position: relative; font-size: 15px; }
.trail::before { content: "🔎"; position: absolute; left: 9px; top: 7px; font-size: 15px; }
.trail p { margin: 0; }
.trail .steps { margin-top: 6px; font-size: 14px; }
.comm p { margin: 6px 0 10px; font-size: 15px; line-height: 1.6; }
.comm b { color: var(--gold); font-weight: 700; }
a.vref { color: inherit; text-decoration: underline dotted; text-underline-offset: 2px; cursor: pointer; }
a.vref:hover { color: var(--gold); }
.engr { font-size: 15px; font-style: italic; color: #5b5346; margin-top: -2px; }
.pf .gk, .meta .gk, .fam td.gk { font-family: "Gentium Book Plus", Georgia, serif; }
.pf .gk { font-size: 24px; } .meta .gk { font-size: 17px; color: var(--ink); }
.meta.parse { font-size: 13px; color: var(--muted, #6b6253); letter-spacing: .01em; }
.l-ar[lang="gr"] { font: 22px/1.6 "Gentium Book Plus", Georgia, serif; text-align: left; }

/* 14 Nov 2026: texts of the map pictures: book and chapter cards, guided tour, scene section */
button.book { border: 0; background: none; padding: 0; cursor: pointer; text-decoration: underline dotted; text-underline-offset: 3px; }
button.book::after { content: " ⓘ"; font-style: normal; font-size: 13px; color: var(--muted); }
.card .kicker { font: 600 12px "Source Sans 3", sans-serif; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.card .ref { font-size: 21px; line-height: 1.25; margin-top: 2px; }
.card-body p { margin: 8px 0 10px; font: 16px/1.6 "Gentium Book Plus", Georgia, serif; }
.card-body h4 { margin: 14px 0 4px; font: 700 15px "Gentium Book Plus", Georgia, serif; color: var(--gold); }
.scenes { list-style: none; margin: 0; padding: 0; }
.scenes li { border-top: 1px solid var(--line); }
.scene-btn { display: block; width: 100%; text-align: start; border: 0; background: none; color: var(--ink); padding: 7px 2px; font: 15px/1.35 "Gentium Book Plus", Georgia, serif; cursor: pointer; }
.scene-btn:hover, .scene-btn:focus-visible { background: rgba(255, 214, 102, .25); outline: none; }
.scene-btn .rng { font: 600 13px "Source Sans 3", sans-serif; color: var(--accent); margin-inline-end: 6px; direction: ltr; unicode-bidi: isolate; }
.card-foot { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; margin-top: 12px; position: sticky; bottom: -18px; background: var(--card); padding: 8px 0 4px; }
.card-foot button { font: 600 14px "Source Sans 3", sans-serif; border: 1px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 999px; padding: 6px 14px; min-height: 34px; cursor: pointer; }
.card-foot button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.card[dir="rtl"] .card-body p, .card[dir="rtl"] .scene-btn, .card[dir="rtl"] h4, .card[dir="rtl"] .card-foot button, .card[dir="rtl"] .kicker { font-family: "Noto Naskh Arabic", "Noto Serif Hebrew", serif; }
.card[lang="ar"] .card-body p { font-size: 18px; line-height: 1.8; }
.card[lang="he"] .card-body p { font-size: 17px; line-height: 1.75; }
.card[dir="rtl"] .ref, .card[dir="rtl"] .ptitle { font-family: "Noto Naskh Arabic", "Noto Serif Hebrew", serif; text-align: right; }
.scene-ch { margin: 0 0 8px; }
.scene-ch .lnk { font-size: 14px; text-align: start; }
@media (max-width: 720px) { .card-foot { bottom: -14px; } .card .ref { font-size: 18px; } }
@media (min-width: 721px) { .card { bottom: auto; max-height: calc(100% - var(--bar-h) - 32px); } }
button.book[dir="rtl"] { font-family: "Noto Naskh Arabic", "Noto Serif Hebrew", serif; font-style: normal; }
.title-hot[hidden] { display: none; }
/* 14 Nov 2026: where a title box and a verse spot overlap, the verse wins (verse spots above the titles) */
.hot { z-index: 2; }
.vhot { pointer-events: none !important; }   /* 19 Nov 2026: touch screens: taps read from the map (app.js canvas-click), pinches pass through.
   20 Nov 2026: !important, because OpenSeadragon writes pointer-events: auto on each overlay, so the iconums still caught taps and pinches */
@media (hover: hover) and (pointer: fine) { .vhot { pointer-events: auto !important; } }
.hot.title-hot { z-index: 1; }
.title-hot { pointer-events: none !important; }   /* 22 Nov 2026: touch screens: title taps read from the map (app.js canvas-click), pinches pass through */
@media (hover: hover) and (pointer: fine) { .title-hot { pointer-events: auto !important; } }
.title-hot:hover, .title-hot:focus-visible { box-shadow: 0 0 0 2px var(--ring), 0 0 14px 3px rgba(255, 214, 102, .45); }
/* 14 Nov 2026: read aloud */
summary .say { float: right; margin-left: 8px; }
details[dir="rtl"] summary .say { float: left; margin: 0 8px 0 0; }
.say { border: 1px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 999px; width: 30px; height: 26px; padding: 0; font-size: 13px; line-height: 1; cursor: pointer; }
.say[data-playing="1"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.say[hidden] { display: none; }
.card .nav .say { width: 34px; height: 34px; font-size: 15px; }
.comm p .say-p { float: right; margin: 2px 0 2px 8px; width: 28px; height: 24px; font-size: 12px; }

/* 14 Nov 2026: whole-Bible page (/app/) and book map pages (/app/<book>/) */
a.brand-name.home { text-decoration: none; display: inline-flex; align-items: baseline; gap: 4px; }
a.brand-name.home .back { font-size: 22px; line-height: 1; color: var(--gold); }
a.brand-name.home:hover, a.brand-name.home:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.hot.bk { background: transparent; border: 0; padding: 0; border-radius: 8px; }
.hot.bk.lit, .hot.bk:focus-visible { box-shadow: 0 0 0 2px var(--ring), 0 0 16px 3px rgba(255, 214, 102, .45); }
.hot.bk.soon.lit { box-shadow: 0 0 0 2px rgba(255, 255, 255, .55); }
.hint { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); margin: 0; z-index: 5; pointer-events: none;
  font: 600 14px "Source Sans 3", sans-serif; color: var(--ink); background: var(--card); border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 14px; box-shadow: 0 4px 14px rgba(0,0,0,.3); }
.hint[hidden] { display: none; }
@media (max-width: 720px) {
  a.brand-name.home { display: inline-flex; font-size: 0; padding: 0 4px 0 0; }
  a.brand-name.home .back { font-size: 28px; }
  a.brand-name.home .home-txt { display: none; }
  body.bible .brand-name { display: inline; font-size: 16px; }
  body.bible .book { display: none; }
}

/* 14 Nov 2026 (pilot ?vtext): vector text over the map pictures; Carlito (SIL Open Font License) is metric-compatible with Calibri */
@font-face { font-family: 'Noto Sans SemiCondensed'; src: url(vendor/fonts/NotoSans-SemiCondensedRegular.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Noto Sans SemiCondensed'; src: url(vendor/fonts/NotoSans-SemiCondensedBold.woff2) format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: Carlito; src: url(vendor/fonts/Carlito-Regular.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: Carlito; src: url(vendor/fonts/Carlito-Bold.woff2) format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Noto Naskh Arabic'; src: url(vendor/fonts/NotoNaskhArabic-Regular.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Noto Naskh Arabic'; src: url(vendor/fonts/NotoNaskhArabic-Bold.woff2) format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Noto Serif Hebrew'; src: url(vendor/fonts/NotoSerifHebrew-Regular.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Noto Serif Hebrew'; src: url(vendor/fonts/NotoSerifHebrew-Bold.woff2) format('woff2'); font-weight: 700; font-display: swap; }
.vtext { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.vtext svg { position: absolute; inset: 0; width: 100%; height: 100%; text-rendering: geometricPrecision; }

/* 14 Nov 2026: Text button (shows or hides the verse panel); dark when the panel is open */
.textbtn[aria-pressed="true"] { background: var(--blue); color: var(--card); border-color: var(--blue); }

/* 14 Nov 2026: sing-along band (chapter playing, verse panel closed).
   18 Nov 2026: a fixed window that scrolls like a song text: the text flows at a steady pace (app.js bandTick), the sung
   verse in ink, the verses around it grey, fading towards the top and bottom; the iconum of the sung verse in a fixed
   column beside the text; A− A+ in the corner. */
.band { position: absolute; left: 50%; transform: translateX(-50%); bottom: 14px; z-index: 6;
  width: min(960px, 94%); height: clamp(130px, 30vh, 300px); display: flex; align-items: center; gap: 14px;
  background: rgba(255, 252, 244, .96); border: 1px solid var(--line); border-radius: 14px; padding: 0 14px;
  box-shadow: 0 6px 22px rgba(0,0,0,.35); color: var(--ink); }
.band[hidden] { display: none; }
#bIcon { width: clamp(64px, 9vw, 120px); height: clamp(64px, 9vw, 120px); object-fit: contain; flex: none; }
.b-view { flex: 1; min-width: 0; height: 100%; overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent 0, #000 16%, #000 84%, transparent 100%); mask-image: linear-gradient(transparent 0, #000 16%, #000 84%, transparent 100%); }
.b-list { will-change: transform; }
.band { cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none; }
.bv { padding: 5px 0; color: #8f877b; transition: color .5s; }
.bv.now { color: #23201c; }
.band.paused::after { content: '▶'; position: absolute; inset-inline-start: 10px; top: 8px; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(35, 32, 28, .8); color: #fffdf8; font: 17px/38px "Source Sans 3", sans-serif; text-align: center; padding-left: 3px; box-sizing: border-box; pointer-events: none; }   /* 18 Nov 2026: paused (corner above the iconum) */
/* 19 Nov 2026: the song window follows A− A+ up to 2x (min(var(--fs), 2)); the verse panel goes further */
.band p { margin: 0; font: 400 calc(clamp(17px, 2.1vw, 27px) * min(var(--fs, 1), 2))/1.35 "Gentium Book Plus", serif; }   /* 19 Nov 2026: A− A+ through the font size (Safari did not resize with zoom here) */
.band b { color: #c08a87; font-family: "Source Sans 3", sans-serif; font-weight: 600; margin-inline-end: 4px; }
.bv.now b { color: #a3231f; }
.band .b-fs { top: 6px; right: auto; left: auto; inset-inline-end: 6px; flex-direction: column-reverse; width: max-content; align-items: center; }   /* A+ above A− */
.b-fs .fs { width: 32px; height: 28px; }
.b-view { padding-inline-end: 34px; }
@media (max-width: 720px) { .band { bottom: 8px; padding: 0 10px; gap: 8px; } #bIcon { width: 56px; height: 56px; } .band p { font-size: calc(17px * min(var(--fs, 1), 2)); } }
.band[lang="ar"] p { font-family: 'Noto Naskh Arabic', serif; } .band[lang="he"] p { font-family: 'Noto Serif Hebrew', serif; }

/* 15 Nov 2026: close-up window (wide screens, while playing with the verse panel closed) */
.closeup { position: absolute; right: 16px; bottom: 16px; z-index: 6; width: clamp(290px, 30vw, 560px); display: flex; flex-direction: column;
  background: #fffdf7; border-radius: 12px; box-shadow: 0 6px 24px rgba(0,0,0,.35); overflow: hidden; cursor: pointer; }
.closeup[hidden] { display: none; }
#cuMap { position: relative; width: 100%; aspect-ratio: 4 / 3; background: #2a2622; }
.cu-cap { margin: 0; padding: 10px 14px 12px; font: 400 clamp(16px, 1.35vw, 21px)/1.35 "Gentium Book Plus", serif; max-height: 9.5em; overflow: auto; }
.cu-cap b { color: #a3231f; font-family: "Source Sans 3", sans-serif; font-weight: 600; margin-inline-end: 4px; }
.cu-cap[lang="ar"] { font-family: 'Noto Naskh Arabic', serif; } .cu-cap[lang="he"] { font-family: 'Noto Serif Hebrew', serif; }
.offbtn { margin-inline-start: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid #c9bfa8; background: #fffdf7; color: #2f4858; font: 600 14px/1.2 "Source Sans 3", sans-serif; cursor: pointer; }
.offbtn[data-busy] { cursor: progress; }
.vtext.far g[id$="_verses"] { display: none; }   /* 15 Nov 2026: verse texts on the map only when readable (app.js VERSE_PX) */
.fam td.t i { font: normal 400 14px "Noto Sans SemiCondensed", "Noto Sans", sans-serif; }   /* transcriptions in the word family table, as in .l-tr */
/* 16 Nov 2026: guide "How to use the app": its own box (left on wide screens, top on phones), so the verse panel can stay open */
.guide { position: fixed; z-index: 12; left: 16px; bottom: 16px; width: min(380px, calc(100% - 32px)); max-height: calc(100% - var(--bar-h) - 32px); overflow-y: auto;
  background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--ring); border-radius: 14px; padding: 10px 16px 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.guide[hidden] { display: none; }
.g-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.guide .nav button { border: 0; background: none; font-size: 22px; line-height: 1; color: var(--muted); cursor: pointer; }
.guide .nav .say { font-size: 13px; border: 1px solid var(--line); background: var(--paper); width: 30px; height: 26px; }
.guide .ref { font-size: 19px; margin: 2px 0 2px; }
.guide .card-body p { font-size: 15.5px; line-height: 1.55; margin: 6px 0 8px; }
.g-list { margin: 2px 0 8px; padding-inline-start: 20px; font: 15px/1.5 "Gentium Book Plus", Georgia, serif; }
.guide .card-foot { bottom: -14px; margin-top: 6px; }
.guide[dir="rtl"] .card-body p, .guide[dir="rtl"] .g-list, .guide[dir="rtl"] .ref, .guide[dir="rtl"] .kicker, .guide[dir="rtl"] .card-foot button { font-family: "Noto Naskh Arabic", "Noto Serif Hebrew", serif; }
.g-spot { box-shadow: 0 0 0 3px var(--ring), 0 0 16px 4px rgba(255, 214, 102, .6) !important; border-radius: 8px; animation: gpulse 1.6s ease-in-out infinite; }
.g-ring { border-radius: 6px; pointer-events: none; box-shadow: 0 0 0 3px var(--ring), 0 0 22px 6px rgba(255, 214, 102, .6); animation: gpulse 1.6s ease-in-out infinite; }
.g-ring[hidden] { display: none; }
@keyframes gpulse { 50% { box-shadow: 0 0 0 5px var(--ring), 0 0 26px 8px rgba(255, 214, 102, .35); } }
@media (prefers-reduced-motion: reduce) { .g-spot, .g-ring { animation: none; } }
@media (max-width: 720px) { .guide { left: 8px; right: 8px; width: auto; top: calc(var(--bar-h) + 8px); bottom: auto; max-height: 42vh; max-height: 42dvh; padding: 8px 12px 12px; } .guide .card-body p { font-size: 15px; } }
.guide .kicker { font: 600 12px "Source Sans 3", sans-serif; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
/* 16 Nov 2026: Learn button = mortarboard + code of the language learned */
.learn-btn { display: inline-flex; align-items: center; gap: 5px; }
.learn-btn[hidden] { display: none; }   /* FR, AR: no Learn yet */
.learn-btn .cap { fill: currentColor; flex: none; }
#pLearnTxt { font-weight: 700; letter-spacing: .04em; }
/* 16 Nov 2026: the card's buttons (Follow the race, Next, Back...) stay in one place from step to step. Only the text
   scrolls. Wide screens (the card hangs from the top): the buttons sit under the one-line kicker, above the title, whose
   length varies. Phones (the card rises from the bottom): the buttons sit at the bottom. The guide box does the same the
   other way round: buttons at the bottom on wide screens (it rises from the bottom), at the top on phones. Buttons are
   aligned to the end of the line, so Next stays at the same spot whether Back or Open the verses are there or not. */
.card:not([hidden]) { display: flex; flex-direction: column; overflow: hidden; }
.card > *, .card-top > * { flex: none; }
.card #cBody { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.c-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 34px; }
.card .card-foot { position: static; justify-content: flex-end; margin: 4px 0 8px; padding: 0; background: none; }
.card .card-foot:empty { display: none; }
.card .ptitle:empty { display: none; }
@media (min-width: 721px) { .card-top { border-bottom: 1px solid var(--line); padding-bottom: 6px; margin-bottom: 2px; } }
@media (max-width: 720px) {
  .card-top { display: contents; }
  .card .c-row { order: 0; } .card #cTitle { order: 1; } .card #cSub { order: 2; } .card #cBody { order: 3; }
  .card .card-foot { order: 4; justify-content: flex-end; margin: 8px 0 0; padding-top: 8px; border-top: 1px solid var(--line); }
  .guide:not([hidden]) { display: flex; flex-direction: column; }
  .guide > * { flex: none; }
  .guide .g-head { order: 0; } .guide .card-foot { order: 1; position: sticky; top: -8px; bottom: auto; z-index: 1; justify-content: flex-end; margin: 0 0 4px; padding: 4px 0 8px; border-bottom: 1px solid var(--line); }
  .guide .ref { order: 2; } .guide #gBody { order: 3; }
}
/* 16 Nov 2026: text size (A− A+ in the verse panel and the close-up window): five steps, remembered on the device.
   CSS zoom on the reading blocks, so every rule inside (Arabic and Hebrew sizes, Learn, commentary) scales together. */
#pTexts, #pLearn, #panel details summary, #panel details p, #cBody, #gBody, .cu-cap { zoom: var(--fs, 1); }   /* the iconum picture keeps its size */
.nav .fs { font: 700 13px "Source Sans 3", sans-serif; letter-spacing: -.02em; }
.fs:disabled { opacity: .35; cursor: default; }
.closeup { position: absolute; }
.cu-fs { position: absolute; top: 8px; right: 8px; display: flex; gap: 4px; z-index: 2; }
.cu-fs .fs { width: 34px; height: 30px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 253, 248, .92); color: var(--ink); font: 700 13px "Source Sans 3", sans-serif; cursor: pointer; padding: 0; }
@media (max-width: 720px) { .nav { gap: 4px; } .nav button { width: 32px; } }
/* 16 Nov 2026: dark mode (a Mac set to Dark appearance). The close-up window, the band and the iconum tile keep their light
   paper, so their text and buttons get the light-mode ink explicitly (they inherited the dark-mode light ink: washed out);
   the playing button takes the paper colour for its text on the ink background. */
.closeup, .band, .cu-fs .fs { color: #23201c; }
.cu-fs .fs { border-color: #e3d9c6; }
.play[data-playing="1"] { color: var(--paper); }
/* 17 Nov 2026: games ("Run the race", game.js). The game box is a side panel on wide screens and a bottom sheet on phones;
   while a verse is heard and its iconum looked for, the box shrinks (compact) and the verse texts on the map are hidden. */
.game h3 { margin: 14px 0 6px; font: 700 15px "Source Sans 3", sans-serif; color: var(--blue); }
.g-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; position: sticky; top: -14px; background: var(--card); padding: 4px 0 6px; z-index: 1; }
.g-top .kicker { font: 600 13px "Source Sans 3", sans-serif; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
#gmClose { border: 0; background: none; font-size: 24px; line-height: 1; color: var(--muted); cursor: pointer; width: 34px; }
.gm-row { display: flex; flex-wrap: wrap; gap: 6px; }
.gm-chip { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font: 600 14px "Source Sans 3", "Noto Naskh Arabic", "Noto Serif Hebrew", sans-serif; cursor: pointer; }
.gm-chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.gm-chip:disabled { opacity: .35; cursor: default; }
.gm-paths { display: grid; gap: 8px; }
.gm-path { text-align: start; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; display: grid; gap: 2px; position: relative; }
.gm-path b { font: 700 17px "Gentium Book Plus", "Noto Naskh Arabic", "Noto Serif Hebrew", Georgia, serif; color: var(--accent); }
.gm-path span { font: 14px "Source Sans 3", "Noto Naskh Arabic", "Noto Serif Hebrew", sans-serif; color: var(--muted); }
.gm-path:disabled { opacity: .45; cursor: default; }
.gm-path:not(:disabled):hover { border-color: var(--gold); }
.gm-stars { position: absolute; inset-inline-end: 12px; top: 10px; font-style: normal; color: var(--gold); letter-spacing: 1px; }
.gm-foot { display: flex; justify-content: flex-end; gap: 8px; margin: 12px 0 4px; flex-wrap: wrap; }
.gm-foot button, .gm-stepbox button { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font: 600 15px "Source Sans 3", "Noto Naskh Arabic", "Noto Serif Hebrew", sans-serif; cursor: pointer; }
.gm-foot button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.gm-foot button:disabled { opacity: .4; }
.gm-q { font: 700 17px/1.45 "Gentium Book Plus", "Noto Naskh Arabic", "Noto Serif Hebrew", Georgia, serif; margin: 10px 0 8px; }
.gm-kind { font: 600 12px "Source Sans 3", sans-serif; text-transform: uppercase; letter-spacing: .06em; color: var(--gold); margin: 6px 0 0; }
.gm-sit { font: 17px/1.5 "Gentium Book Plus", "Noto Naskh Arabic", "Noto Serif Hebrew", Georgia, serif; margin: 6px 0; padding: 10px 12px; border-radius: 10px; background: rgba(180, 140, 60, .1); }
.gm-verse { font: 17px/1.55 "Gentium Book Plus", "Noto Naskh Arabic", "Noto Serif Hebrew", Georgia, serif; margin: 8px 0; }
.gm-verse b { color: var(--accent); font-family: "Source Sans 3", sans-serif; margin-inline-end: 4px; }
.gm-verse[lang="ar"], .gm-opt span[lang="ar"], .gm-tiles[lang="ar"] { font-family: "Noto Naskh Arabic", serif; font-size: 19px; }
.gm-verse[lang="he"], .gm-opt span[lang="he"], .gm-tiles[lang="he"] { font-family: "Noto Serif Hebrew", serif; }
.gm-verse mark { background: rgba(255, 214, 102, .7); color: inherit; border-radius: 3px; padding: 0 2px; }
.gm-hint { color: var(--muted); font-size: 15px; margin: 4px 0; }
.gm-note { color: var(--muted); font-size: 13px; margin: 10px 0 0; }
.gm-opts { display: grid; gap: 8px; margin: 8px 0; }
.gm-opt { text-align: start; padding: 10px 14px; border-radius: 12px; border: 2px solid var(--line); background: var(--paper); color: var(--ink); font: 16px/1.45 "Gentium Book Plus", "Noto Naskh Arabic", "Noto Serif Hebrew", Georgia, serif; cursor: pointer; }
.gm-opt:not(:disabled):hover { border-color: var(--gold); }
.gm-opt.ok { border-color: #2e8b57; background: rgba(46, 139, 87, .12); }
.gm-opt.bad { border-color: var(--accent); background: rgba(176, 46, 50, .08); opacity: .75; }
.gm-opt:disabled { cursor: default; }
.gm-ok { color: #2e7d4f; font-weight: 600; margin: 8px 0 4px; }
.gm-no { color: var(--accent); font-weight: 600; margin: 8px 0 4px; }
.gm-stepbox { margin: 10px 0; padding: 10px 12px; border: 1px dashed var(--gold); border-radius: 10px; }
.gm-stepbox p { margin: 4px 0 8px; font: italic 16px "Gentium Book Plus", "Noto Naskh Arabic", "Noto Serif Hebrew", Georgia, serif; }
.gm-steps { margin-top: 14px; } .gm-steps p { margin: 4px 0; font-size: 15px; } .gm-steps summary { cursor: pointer; font-weight: 600; color: var(--blue); }
.gm-done { text-align: center; } .gm-big { font-size: 40px; color: var(--gold); letter-spacing: 4px; }
.gm-track { position: relative; height: 28px; margin: 10px 8px 4px; border-bottom: 3px dashed var(--gold); }
.gm-track span { position: absolute; bottom: -2px; transform: translateX(-50%); font-size: 24px; }
[dir="rtl"] .gm-track span { transform: translateX(50%) scaleX(-1); }
.gm-tok { border: 0; background: none; padding: 0 1px; margin: 0; font: inherit; color: inherit; cursor: pointer; border-radius: 4px; border-bottom: 2px dotted var(--line); }
.gm-tok:hover { background: rgba(255, 214, 102, .35); } .gm-tok.ok { background: rgba(46, 139, 87, .25); } .gm-tok.bad { background: rgba(176, 46, 50, .2); }
.gm-built { min-height: 1.8em; padding: 6px 10px; border-radius: 10px; background: var(--paper); border: 1px solid var(--line); font: 18px/1.5 "Gentium Book Plus", "Noto Naskh Arabic", "Noto Serif Hebrew", Georgia, serif; }
.gm-tiles { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.gm-tile { padding: 6px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: 17px "Gentium Book Plus", "Noto Naskh Arabic", "Noto Serif Hebrew", Georgia, serif; cursor: pointer; box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.gm-tile:disabled { opacity: .25; } .gm-tile.bad { border-color: var(--accent); background: rgba(176, 46, 50, .12); }
.hot.gm-bad { box-shadow: 0 0 0 3px var(--accent), 0 0 18px 4px rgba(176, 46, 50, .5) !important; border-radius: 8px; }
body.gaming .vtext g[id$="_verses"] { display: none; }   /* while finding a verse by its iconum, the verse texts on the map are hidden */
.gamebtn .ico { font-size: 15px; }
@media (min-width: 721px) { .game.compact { bottom: auto; max-height: calc(100% - var(--bar-h) - 32px); } }
@media (max-width: 720px) {
  .gamebtn .txt { display: none; } .gamebtn { padding: 4px 9px; }
  .game { max-height: 62vh; max-height: 62dvh; }
  .game.compact { max-height: 34vh; max-height: 34dvh; }
}
/* 17 Nov 2026: a numbered verse in the games comes with its iconum and a ▶ button */
.gm-vbox { display: flex; gap: 10px; align-items: flex-start; margin: 8px 0; }
.gm-vbox .gm-verse { flex: 1; margin: 0; }
.gm-icon { width: 64px; height: 64px; flex: none; border-radius: 10px; background: #fffdf8; border: 1px solid var(--line); padding: 3px; object-fit: contain; }
.gm-playv { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); color: var(--accent); font-size: 14px; cursor: pointer; }
.gm-playv:hover { border-color: var(--accent); }
@media (max-width: 720px) { .gm-icon { width: 52px; height: 52px; } }
.gm-from { margin: 8px 0 0; color: var(--muted); } .gm-from b { color: var(--ink); }
/* 17 Nov 2026: Palestinian Arabic in the language games: Arabic script and transcription, both or one (P.arp) */
.gm-arp { display: flex; gap: 6px; justify-content: flex-end; margin: 4px 0 2px; } .gm-arp .gm-chip { padding: 3px 10px; font-size: 13px; }
.game.arp-ar .s-tr, .game.arp-tr .s-ar { display: none !important; }
.gm-vl { flex: 1; } .gm-vl .gm-verse { margin: 0 0 4px; }
.gm-verse.s-tr { font: italic 16px/1.5 "Noto Sans SemiCondensed", "Source Sans 3", sans-serif; color: var(--blue); }
.gm-opt .s-ar, .gm-opt .s-tr, .gm-tile .s-ar, .gm-tile .s-tr, .gm-bw .s-ar, .gm-bw .s-tr { display: block; }
.gm-opt .s-tr, .gm-tile .s-tr, .gm-bw .s-tr { font: italic 14px "Noto Sans SemiCondensed", "Source Sans 3", sans-serif; color: var(--blue); }
.gm-opt .s-ar, .gm-tile .s-ar { font-family: "Noto Naskh Arabic", serif; font-size: 19px; }
.gm-optline { display: block; }
.gm-built { display: flex; flex-wrap: wrap; gap: 8px; } .gm-bw { display: inline-block; text-align: center; }
.gm-tile { text-align: center; }
.game:not(.arp-tr) .ref-dup { display: none; }   /* the transcription line shows the reference only when it is alone */
/* 17 Nov 2026: My steps (steps kept in Live it) */
.gm-mysteps { margin-top: 12px; } .gm-mysteps b { color: var(--blue) !important; }
.gm-stepbox textarea { width: 100%; margin: 0 0 8px; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: 15px "Source Sans 3", "Noto Naskh Arabic", "Noto Serif Hebrew", sans-serif; resize: vertical; }
.gm-stepitem { border-bottom: 1px solid var(--line); padding: 4px 0 10px; margin-bottom: 8px; }
.gm-a { margin: 4px 0; font-size: 15px; } .gm-a span { color: var(--gold); font-weight: 600; }
.gm-sq { margin: 4px 0; font: italic 15px "Gentium Book Plus", "Noto Naskh Arabic", "Noto Serif Hebrew", Georgia, serif; color: var(--muted); }
.gm-note2 { margin: 4px 0; font-size: 15px; color: var(--blue); }
.gm-steprow { display: flex; justify-content: space-between; align-items: center; } .gm-steprow small { color: var(--muted); }
.gm-steprow button { border: 0; background: none; color: var(--accent); font: 600 13px "Source Sans 3", sans-serif; cursor: pointer; }
/* 19 Nov 2026: tablets and computers: the song window is a side column (landscape: the right third) or a bottom third
   (portrait), split between a very large iconum and the flowing text; it follows the light or dark theme. */
.band.side { left: auto; right: 0; bottom: 0; transform: none; width: 100%; height: 33.4%; border-radius: 0; border: 0;
  border-top: 1px solid var(--line); padding: 14px 18px; gap: 18px; background: var(--card); box-shadow: 0 -6px 22px rgba(0,0,0,.25); }
.band.side.land { top: 0; height: auto; width: 33.4%; flex-direction: column; border-top: 0; border-inline-start: 1px solid var(--line); box-shadow: -6px 0 22px rgba(0,0,0,.25); padding: 18px 16px 12px; }
.band.side #bIcon { width: 50%; height: 100%; flex: none; }
.band.side.land #bIcon { width: 100%; height: 50%; }
.band.side .b-view { height: 100%; }
.band.side.land .b-view { width: 100%; height: auto; flex: 1; min-height: 0; padding-inline-end: 0; }
.band.side p { font-size: calc(clamp(24px, 2.4vw, 36px) * min(var(--fs, 1), 2)); }   /* 19 Nov 2026: bigger base on tablets and computers (iPad Air: 18 to 28 px) */
.band.side .bv { color: color-mix(in srgb, var(--ink) 45%, var(--card)); }
.band.side .bv.now { color: var(--ink); }
.band.side b { color: color-mix(in srgb, #a3231f 50%, var(--card)); }
.band.side .bv.now b { color: #c0392b; }
.band.side .b-fs { top: 10px; }
.band.side.land .b-fs { top: 14px; }
.fs { direction: ltr; unicode-bidi: isolate; }
/* 19 Nov 2026: Palestinian Arabic in the verse pane: Arabic and transcription, one above the other, or one of them */
.b-fs .b-arp { width: 40px; height: auto; min-height: 30px; padding: 3px 0; border-radius: 12px; font: 700 11px/1.15 "Source Sans 3", "Noto Naskh Arabic", sans-serif; order: -1; }
.band[data-arp] .b-view { padding-inline-end: 44px; }
.band[data-arp=""] .b-view { padding-inline-end: 34px; }
.b-fs .b-arp[hidden] { display: none; }
.band[data-arp="ar"] .s-tr, .band[data-arp="tr"] .s-ar { display: none; }
/* 24 Nov 2026: Palestinian Arabic mode "tt": transcription with a translation under it (the s-t3 line exists only in ARP) */
.band .s-t3 { display: none; }
.band[data-arp="tt"] .s-ar { display: none; }
.band[data-arp="tt"] .s-t3 { display: block; }
.band[data-arp="tt"] .s-t3 b { display: none; }
.band[data-arp="tt"] .s-t3 span { font-size: .84em; }
.band[data-arp="both"] .s-tr b { display: none; }
.band .s-tr { font-family: "Gentium Book Plus", "Source Sans 3", serif; margin-top: 2px; }
.band[data-arp="both"] .s-tr span { font-size: .84em; }
/* 22 Nov 2026: second language under each verse (Hebrew with English...): the translation in grey, in its own font */
.band .s-t2 { font-family: inherit; color: #6b6558; }
.band .s-t2[lang="he"] { font-family: "Noto Serif Hebrew", serif; } .band .s-t2[lang="ar"] { font-family: "Noto Naskh Arabic", serif; }
.band .s-t2[lang="en"], .band .s-t2[lang="fr"] { font-family: "Gentium Book Plus", "Source Sans 3", serif; }
.b-fs #bTe { order: -3; font-size: 9px; min-height: 24px; font-family: "Noto Serif Hebrew", "Source Sans 3", serif; }   /* 28 Nov 2026: te'amim switch */
.b-fs #bTrL { order: -2; font-size: 10px; min-height: 24px; }   /* 24 Nov 2026: below the mode button (4th button) */   /* 18 Nov 2026: "A−" stays "A−" in Hebrew and Arabic */
/* 19 Nov 2026: tablets: the verse panel's reading text one fifth larger at every size (so A+ goes further), and on
   tablets and computers the panel widens as the text grows (up to about half the screen), so big text keeps whole lines. */
@media (min-width: 721px) {
  #pTexts, #pLearn, #panel details summary, #panel details p { zoom: calc(var(--fs, 1) * 1.25); }
}
@media (min-width: 721px) {
  .panel { width: min(max(420px, calc(260px * var(--fs, 1))), 55vw, calc(100% - 32px)); }
}

/* 20 Nov 2026: hint after one tap on an iconum in verse mode */
.taptip { position: absolute; z-index: 7; transform: translate(-50%, calc(-100% - 18px)); padding: 6px 12px; border-radius: 999px; pointer-events: none;
  background: rgba(30,28,25,.88); color: #fff; font: 600 14px "Source Sans 3", sans-serif; white-space: nowrap; box-shadow: 0 4px 14px rgba(0,0,0,.35); }
/* 20 Nov 2026: similar words */
.sim { margin-top: 6px; font-size: 13px; }
.simi { padding: 6px 0; border-top: 1px solid var(--line); }
.simi.me { background: color-mix(in srgb, var(--gold) 12%, transparent); }
.simi .d { margin: 2px 0; }
.simi .ex { opacity: .85; font-style: italic; }
.simi .h, .simi .a { font: 17px/1.5 "Noto Serif Hebrew", "Noto Naskh Arabic", serif; }
.simi .gk, .simi .e { font-family: "Gentium Book Plus", Georgia, serif; }
.learn[dir="rtl"] .sim { font-family: "Noto Naskh Arabic", "Noto Serif Hebrew", serif; }

/* 26 Nov 2026: ‹ › beside "Explanation": previous / next verse with an explanation */
summary .xnav { float: right; display: inline-flex; gap: 4px; margin-left: 8px; }
details[dir="rtl"] summary .xnav { float: left; margin: 0 8px 0 0; }
summary .xnav[hidden] { display: none; }
summary .xnav .xbtn { border: 1px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 999px; width: 30px; height: 26px; padding: 0; font-size: 16px; line-height: 1; cursor: pointer; }
summary .xnav .xbtn:disabled { opacity: .35; cursor: default; }
#pExpl.noex { color: var(--muted, #888); font-style: italic; }
/* 28 Nov 2026: "+EN" beside the language (English text on the map, English read first) */
.enopt { padding-left: 8px; padding-right: 8px; font-size: 13px; }
.enopt.on { background: var(--blue); color: var(--card); border-color: var(--blue); }
.enmenu { position: fixed; z-index: 60; background: var(--card, #fff); color: inherit; border-radius: 10px; box-shadow: 0 6px 24px rgba(0,0,0,.22); padding: 10px 14px; font-size: 15px; max-width: calc(100vw - 16px); }
.enmenu label { display: flex; align-items: center; gap: 8px; padding: 6px 0; cursor: pointer; white-space: nowrap; }
.enmenu input { width: 18px; height: 18px; }
/* 28 Nov 2026: cantillation marks button (Learn Hebrew, Genesis) */
.tebtn { margin-left: 6px; font-size: 13px; }
#pTexts .tebtn { display: block; margin: 2px 0 6px auto; }
.tebtn[aria-pressed="false"] { opacity: .65; }
/* 28 Nov 2026: the Learn bar (teaching language, ▶ language, Te'amim) stays lower than "Play this verse" on every screen */
.learn-bar .chip.small, .learn-bar .small-play { height: 22px; min-height: 0; padding: 0 8px; line-height: 1; font-size: 12px; display: inline-flex; align-items: center; gap: 4px; }
.learn-bar .chip.small[hidden], .learn-bar .small-play[hidden] { display: none; }
