/* Black pages, wave 1 (2026-11-19): every page the site draws for a Torah book, a theme book or a magazine is a black page with
   white text and gold accents, like the printed book and the Black Edition reader. The New Testament pages (main.ntp) keep their
   cream pages until wave 2: every rule below is scoped away from them.
   Screen palette of the printed black page: ground #121212, text #f1efe9, quiet text #a8a59d, gold #dfa23a. */

/* ---------- Torah: the "Inside the book" reader (HTML pages) ---------- */
main.tb:not(.ntp) .tb-pages .page{--paper:#121212;--ink:#f1efe9;--gray:#a8a59d;--book:#dfa23a;--supc:#dfa23a;--wj:#dfa23a}
main.tb:not(.ntp) .tb-pages .page.empty{background:transparent}
main.tb:not(.ntp) .tb-pages .verso{background-image:linear-gradient(90deg,transparent 88%,rgba(255,255,255,.05))}
main.tb:not(.ntp) .tb-pages .recto{background-image:linear-gradient(90deg,rgba(255,255,255,.06),transparent 12%)}
main.tb:not(.ntp) .tb-pages .bleed{background:#121212}
main.tb:not(.ntp) .tb-pages .cp,
main.tb:not(.ntp) .tb-pages .col,
main.tb:not(.ntp) .tb-pages .lg-row span,
main.tb:not(.ntp) .tb-pages .lg-note{color:#d9d6cf}
main.tb:not(.ntp) .tb-pages .lg-title,
main.tb:not(.ntp) .tb-pages .lg-note{border-top-color:rgba(255,255,255,.2)}
main.tb:not(.ntp) .tb-pages .ov-bar{background:rgba(255,255,255,.14)}
main.tb:not(.ntp) .tb-pages .wj{color:#dfa23a}
main.tb:not(.ntp) .tb-reader .tb-loading{background:#121212;color:#a8a59d}
main.tb:not(.ntp) .tb-reader{box-shadow:0 2px 3px rgba(0,0,0,.35),0 18px 40px rgba(0,0,0,.45)}

/* ---------- theme books: the "From inside" sample card and the Look-inside reader ---------- */
.tbk .tp-from{background:#121212;color:#f1efe9;padding:22px clamp(18px,3vw,30px) 20px;border-radius:3px}
.tbk .tp-from h3,.tbk .tp-from cite,.tbk .tp-from .tp-mini{color:#a8a59d}
.tbk .tp-from li{border-left-color:#dfa23a;color:#f1efe9}
.tbk .tp-from .wj,.tbk .wj,.tk .wj,.tk-dialog .wj{color:#dfa23a}
.tbk,.tk,.tk-dialog{--wj:#dfa23a}
.tk-pg,.tk-rd-pages{background-color:#121212}
.tk-rd-pages{box-shadow:0 2px 3px rgba(0,0,0,.35),0 18px 40px rgba(0,0,0,.45)}
