/* Verse-aligned parallel reading and verse-tap tools. Light panels, dark words only (brand rule). */
#readerBody .parallel.parallel-aligned{display:block}
#readerBody .parallel-head,#readerBody .prow{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0 18px}
#readerBody .prow{align-items:start;padding:0}
#readerBody .prow .v{margin:0}
#readerBody .prow .v[lang="en"]{color:var(--ink-soft,#3b5564);font-size:.92em}
#readerBody .v.v-gap{color:var(--ink-soft,#3b5564);opacity:.5;cursor:default}
@media(max-width:640px){
  #readerBody .parallel-head,#readerBody .prow{grid-template-columns:1fr;gap:0}
  #readerBody .prow{padding:0 0 6px}
  #readerBody .prow .v[lang="en"]{padding-top:0;margin-top:-2px}
  #readerBody .prow .v[lang="en"] sup{visibility:hidden}
}
.vt-actions{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 12px}
.vt-btn,.vt-ref{display:inline-flex;flex-direction:column;align-items:flex-start;line-height:1.25;text-align:left}
.vt-fj{font-weight:700}
.vt-en{font-size:.78em;opacity:.72;font-weight:400}
.vt-panel{background:rgba(255,255,255,.72);border:1px solid rgba(18,48,61,.1);border-radius:14px;padding:12px 14px;margin:0 0 14px}
.vt-panel p{margin:4px 0;line-height:1.6}
.vt-compare{display:grid;grid-template-columns:1fr;gap:10px}
@media(min-width:560px){.vt-compare{grid-template-columns:1fr 1fr}}
.vt-list{display:flex;flex-direction:column;gap:6px}
.vt-ref{border:0;cursor:pointer;border-radius:12px;padding:8px 12px;background:rgba(135,206,235,.22);color:var(--ink,#12303d);font:inherit;min-height:44px;width:100%}
.vt-ref:hover,.vt-ref:focus-visible{background:rgba(135,206,235,.4)}
.vt-words{margin:0;display:grid;grid-template-columns:auto 1fr;gap:4px 12px}
.vt-words dt{font-weight:700}
.vt-words dd{margin:0}
.vt-credit{font-size:.74rem;margin-top:10px!important}
.vt-card{display:block;width:100%;max-width:360px;height:auto;margin:0 auto 12px;border-radius:12px;border:1px solid rgba(18,48,61,.14)}
.vt-card-actions{margin:0;justify-content:center}
a.vt-btn,a.vt-ref{text-decoration:none;box-sizing:border-box}
.vt-post{display:block;width:100%;box-sizing:border-box;font:inherit;font-size:16px;line-height:1.5;color:var(--ink,#12303d);background:#fff;border:1px solid rgba(18,48,61,.25);border-radius:10px;padding:10px 12px;margin:0 0 8px;resize:vertical}
.vt-post:focus-visible{outline:3px solid #075b94;outline-offset:2px}
/* Ai Vola Tabu (1864) panel under the reader. */
.historic-panel{background:rgba(255,255,255,.72);border:1px solid rgba(18,48,61,.1);border-radius:14px;padding:14px 16px;margin:14px 0}
.historic-panel .coltitle{margin-bottom:8px}
.historic-text{font-size:var(--bible-reader-size,20px);line-height:var(--bible-reader-line-height,1.95);color:var(--ink,#12303d);overflow-wrap:anywhere}
.historic-text sup{color:#075b94;font-family:Manrope,system-ui,sans-serif;font-weight:700;font-size:.75rem;margin-right:6px}
.historic-credit{font-size:.78rem;margin-top:10px}
/* 1864 verses are tappable like the main reader's: plain text blocks, no button chrome from the shared kit.
   The reader's own overrides live in the dimau-kit-light layer (important rules in a layer beat unlayered
   ones), so these must sit there too, with enough strength to win inside it. */
@layer dimau-kit-light{
:root:not(#dk):not(#hv) body .historic-text .hv{display:block;min-height:44px;padding:5px 2px;margin:0 0 4px;cursor:pointer;border:0!important;border-radius:2px!important;box-shadow:none!important;background:transparent!important;color:var(--ink,#12303d)!important;text-decoration:none!important;font:inherit;line-height:inherit}
:root:not(#dk):not(#hv) body .historic-text .hv:focus-visible{outline:3px solid #075b94!important;outline-offset:2px}
:root:not(#dk):not(#hv) body .historic-text .hv.hl-yellow{background:rgba(255,224,130,.6)!important}
:root:not(#dk):not(#hv) body .historic-text .hv.hl-blue{background:rgba(145,210,240,.55)!important}
:root:not(#dk):not(#hv) body .historic-text .hv.hl-green{background:rgba(160,224,190,.55)!important}
:root:not(#dk):not(#hv) body .historic-text .hv.hl-pink{background:rgba(255,186,200,.5)!important}
:root:not(#dk):not(#hv) body .historic-text .hv.verse-target:not(.hl-yellow):not(.hl-blue):not(.hl-green):not(.hl-pink){background:#e4f2ff!important}
:root:not(#dk):not(#hv) body .historic-text .hv.has-note sup::after{content:" ✎"}
@media(forced-colors:active){:root:not(#dk):not(#hv) body .historic-text .hv:focus-visible{outline-color:Highlight!important}}
}
/* 1864 text side by side with another edition: two columns on wide screens, 1864 over the other text on phones. */
.historic-side-choice{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin:0 0 10px;font-size:.88rem;color:var(--ink,#12303d)}
.historic-side-choice select{font:inherit;font-size:16px;min-height:44px;max-width:100%;padding:6px 10px;border-radius:8px}
.historic-side .historic-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0 18px;align-items:start}
.historic-side .historic-head{margin-bottom:6px}
.historic-side .ho{padding:5px 2px;color:var(--ink-soft,#3b5564);font-size:.92em}
.historic-side .ho sup{color:#075b94;font-family:Manrope,system-ui,sans-serif;font-weight:700;font-size:.75rem;margin-right:6px}
.historic-side .historic-gap{padding:5px 2px;color:var(--ink-soft,#3b5564);opacity:.5}
@media(max-width:640px){
  .historic-side .historic-row{grid-template-columns:1fr;gap:0;padding:0 0 8px}
  .historic-side .historic-head>:last-child{display:none}
  .historic-side .ho{padding-top:0}
  .historic-side .ho sup{visibility:hidden}
}
/* 1864 whole-Bible download card on the Downloads tab. */
#historicDownload{margin-top:16px}
.historic-download-actions{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}
#historicDownloadProgress{display:block;width:100%;margin:8px 0}
