/* ChristiAnalogies read-along proofs. Brand direction 07 "Saturday Morning" (brand/BRAND.md), kept quiet for reading. */
:root {
  --red: #d7262e; --yellow: #f7cd1d; --blue: #1c5fd1; --green: #1f9e4a; --orange: #f07c1b;
  --ink: #1b1530; --cream: #fff6dc; --burst: #ffe7a0; --white: #fff; --soft: #4d4566;
  --display: "Lilita One", "Arial Rounded MT Bold", Arial, sans-serif;
  --sans: "Nunito", system-ui, sans-serif;
  --player-h: 132px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 500 17px/1.6 var(--sans); }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; line-height: 1.12; margin: 0 0 .4em; letter-spacing: .005em; }
.loading, .empty { text-align: center; color: var(--soft); padding: 60px 20px; }

/* wordmark, as on the site */
.logo { display: inline-flex; align-items: center; font-family: var(--display); line-height: 1; white-space: nowrap; font-size: 21px; }
.logo .lw { color: var(--red); -webkit-text-stroke: .09em var(--ink); paint-order: stroke fill; text-shadow: 0 .09em 0 var(--ink); letter-spacing: .01em; }
.logo .lw.lb { color: var(--blue); }
.logo .lbub { position: relative; display: inline-block; margin: 0 .14em 0 .11em; padding: .04em .2em .13em; background: var(--yellow); border: .075em solid var(--ink); border-radius: .4em; box-shadow: 0 .09em 0 var(--ink); transform: rotate(-6deg); }
.logo .lbub .lw { color: var(--white); }

.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 16px 10px; background: var(--cream); border-bottom: 3px solid var(--ink); }
.top .brand { text-decoration: none; padding-bottom: 3px; }
.top nav { display: flex; gap: 16px; align-items: center; }
.top nav a { text-decoration: none; font-weight: 800; font-size: .93rem; white-space: nowrap; }
.top nav a.on { color: var(--blue); }
#notes-count:not(:empty) { display: inline-block; min-width: 1.5em; margin-left: 5px; padding: 0 5px; text-align: center; font-size: .78rem; background: var(--red); color: #fff; border: 2px solid var(--ink); border-radius: 99px; }

main { max-width: 1040px; margin: 0 auto; padding: 26px 18px 60px; outline: none; }
body.reading main { max-width: 700px; padding-bottom: calc(var(--player-h) + 80px); }
.eyebrow { display: inline-block; font: 900 .72rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: #fff; background: var(--blue); border: 3px solid var(--ink); border-radius: 99px; padding: 6px 12px; box-shadow: 3px 3px 0 var(--ink); margin-bottom: 14px; }
.small { font-size: .88rem; color: var(--soft); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 14px; font: 900 1rem/1.2 var(--sans); text-decoration: none; border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); background: var(--white); text-align: center; }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn-red { background: var(--red); color: #fff; }
.btn-yellow { background: var(--yellow); }
.btn.sm { padding: 8px 14px; font-size: .92rem; border-radius: 11px; box-shadow: 3px 3px 0 var(--ink); }
.link { background: none; border: 0; padding: 4px; font-weight: 800; text-decoration: underline; color: var(--soft); }

/* library */
.resume { display: flex; align-items: center; gap: 16px; background: var(--white); border: 3px solid var(--ink); border-radius: 18px; box-shadow: 5px 5px 0 var(--ink); padding: 14px 16px; margin: 0 0 30px; text-decoration: none; }
.resume img { width: 54px; border: 2px solid var(--ink); border-radius: 4px; flex: none; }
.resume b { display: block; font: 400 1.2rem/1.15 var(--display); }
.resume span { color: var(--soft); font-size: .93rem; }
.resume .go { margin-left: auto; flex: none; }
.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 26px 20px; }
.lib-card { text-decoration: none; display: flex; flex-direction: column; gap: 10px; }
.cover { border: 3px solid var(--ink); border-radius: 7px; overflow: hidden; box-shadow: 5px 5px 0 var(--ink); aspect-ratio: 2 / 3; background: var(--ink); }
.cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lib-card h3 { font-size: 1.08rem; margin: 2px 0 0; }
.meter { height: 10px; border: 2px solid var(--ink); border-radius: 99px; background: var(--white); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--green); }
.lib-card .small { line-height: 1.35; }
.pill { display: inline-block; font: 900 .68rem var(--sans); letter-spacing: .08em; text-transform: uppercase; background: var(--yellow); border: 2px solid var(--ink); border-radius: 99px; padding: 2px 8px; }
.pill.wait { background: var(--white); color: var(--soft); }

/* book page */
.book-head { display: grid; grid-template-columns: 150px 1fr; gap: 22px; align-items: start; margin-bottom: 26px; }
.book-head h1 { font-size: clamp(1.7rem, 5vw, 2.5rem); }
.book-head .btn { margin: 8px 0 10px; }
.chapters { list-style: none; margin: 0; padding: 0; background: var(--white); border: 3px solid var(--ink); border-radius: 16px; overflow: hidden; }
.chapters li.part { padding: 14px 16px 6px; font: 900 .74rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--blue); border-top: 2px solid var(--ink); background: var(--cream); }
.chapters li.part:first-child { border-top: 0; }
.chapters a { display: flex; align-items: center; gap: 12px; padding: 13px 16px; text-decoration: none; border-top: 1px solid #e6dcbc; font-weight: 700; }
.chapters a:active { background: var(--burst); }
.chapters .st { flex: none; width: 24px; height: 24px; border: 2px solid var(--ink); border-radius: 50%; display: grid; place-items: center; font-size: .78rem; font-weight: 900; }
.chapters .done .st { background: var(--green); color: #fff; }
.chapters .now .st { background: var(--yellow); }
.chapters .ct { flex: 1; min-width: 0; }
.chapters .dur { flex: none; color: var(--soft); font-size: .86rem; font-weight: 600; }
.chapters .chk { flex: none; font-size: .7rem; font-weight: 800; color: var(--soft); border: 1.5px solid #c9bd97; border-radius: 99px; padding: 0 6px; }
.chapters li.wait { padding: 13px 16px; color: var(--soft); border-top: 1px solid #e6dcbc; font-style: italic; }

/* the text */
.crumb { display: flex; justify-content: space-between; gap: 12px; font-size: .9rem; font-weight: 800; margin-bottom: 22px; }
.crumb a { text-decoration: none; color: var(--soft); }
.text { font-size: 1.16rem; line-height: 1.72; overflow-wrap: break-word; }
.text .u { position: relative; margin: 0 0 1.05em; border-radius: 6px; scroll-margin-top: 90px; }
.text .u.cur { background: rgba(247, 205, 29, .16); box-shadow: 0 0 0 7px rgba(247, 205, 29, .16); }
.text .w { border-radius: 4px; cursor: pointer; padding: .08em 0; }
.text .w.on { background: var(--yellow); box-shadow: 0 0 0 2px var(--yellow); }
.text .w.em { font-style: italic; }
.text .w.st { font-weight: 800; }
.text .k-h1 { font: 400 clamp(2.1rem, 8vw, 3rem)/1.08 var(--display); text-align: center; margin: 34px 0 .35em; }
.text .k-sub { text-align: center; font-weight: 700; color: var(--soft); font-size: 1.12rem; }
.text .k-series, .text .k-by { text-align: center; font-weight: 800; }
.text .k-by { font: 400 1.4rem var(--display); margin-top: 1.2em; }
.text .k-partnum, .text .k-num { font: 900 .78rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--blue); margin: 26px 0 10px; }
.text .k-part { font: 400 1.5rem/1.15 var(--display); color: var(--soft); margin-bottom: .2em; }
.text .k-parttag { color: var(--soft); font-style: italic; padding-bottom: 20px; border-bottom: 3px solid var(--ink); margin-bottom: 30px; }
.text .k-title { font: 400 clamp(1.9rem, 7vw, 2.6rem)/1.1 var(--display); margin-bottom: .5em; }
.text .k-epi { font-style: italic; color: var(--soft); border-left: 5px solid var(--yellow); padding-left: 16px; margin: 0 0 1.8em; }
.text .k-h2, .text .k-h3 { font: 400 1.42rem/1.2 var(--display); margin: 1.7em 0 .5em; }
.text .k-h4 { font: 900 1.08rem/1.3 var(--sans); margin: 1.4em 0 .4em; }
.text .k-pull { font: 800 1.22rem/1.5 var(--sans); color: var(--blue); text-align: center; padding: 6px 10px; }
.text .k-quote { font-style: italic; padding-left: 16px; border-left: 4px solid var(--ink); }
.text .k-sig { text-align: right; font-weight: 800; }
.text .k-li { padding-left: 2em; }
.text .k-li::before { content: attr(data-n); position: absolute; left: .2em; font-weight: 900; color: var(--blue); }
.text .k-label { font: 900 .76rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; margin-bottom: .7em; }
.text .k-fig { font-size: .88rem; color: var(--soft); text-align: center; border: 2px dashed #c9bd97; border-radius: 10px; padding: 8px; }
.text .ref { display: block; text-align: right; font: 800 .9rem var(--sans); font-style: normal; color: var(--soft); margin-top: .3em; }
.text .box { margin: 1.5em 0; padding: 16px 18px 4px; border-radius: 14px; border: 3px solid var(--ink); background: var(--white); }
.text .box-kjv { border-left-width: 10px; border-left-color: var(--blue); }
.text .box-note { box-shadow: 4px 4px 0 var(--ink); }
.text .box-note .k-label { color: var(--red); }
.text .box-cube { box-shadow: 4px 4px 0 var(--ink); background: #f4fbf6; }
.text .box-cube .k-label { color: var(--green); }
.text .box-study { background: var(--burst); }
.text .box-ded { border: 0; background: none; text-align: center; padding: 30px 0 0; margin-top: 30px; border-top: 3px solid var(--ink); border-radius: 0; }
.text .box-ded .k-quote { border: 0; padding: 0; }
.text .box-ded .k-sig { text-align: center; }
.text .u.flagged::after, .text .u.q::before { position: absolute; right: -4px; top: -11px; font: 900 .62rem/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; padding: 3px 6px; border-radius: 99px; border: 2px solid var(--ink); }
.text .u.flagged::after { content: "flagged"; background: var(--red); color: #fff; }
.text .u.q::before { content: "check"; right: auto; left: -4px; background: var(--white); color: var(--soft); border-color: #c9bd97; }
body.noq .text .u.q::before { display: none; }
.endnav { display: flex; justify-content: space-between; gap: 12px; margin-top: 40px; }

/* notes */
.note { background: var(--white); border: 3px solid var(--ink); border-radius: 14px; padding: 12px 16px; margin: 0 0 14px; }
.note .where { font-weight: 800; text-decoration: none; }
.note q { display: block; color: var(--soft); font-style: italic; margin: 4px 0; }
.note .row { display: flex; gap: 10px; align-items: center; margin-top: 6px; }
.note input { flex: 1; min-width: 0; }
input[type=text] { font: 600 1rem var(--sans); padding: 10px 12px; border: 3px solid var(--ink); border-radius: 11px; background: var(--white); color: var(--ink); }
.notes-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 22px; align-items: center; }

/* player */
.player { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--cream); border-top: 4px solid var(--ink); padding: 8px 14px calc(10px + env(safe-area-inset-bottom)); }
.player .bar { display: flex; align-items: center; gap: 10px; max-width: 760px; margin: 0 auto; }
.time { font: 800 .8rem var(--sans); color: var(--soft); min-width: 3.4em; text-align: center; font-variant-numeric: tabular-nums; }
#seek { flex: 1; min-width: 0; height: 28px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; }
#seek::-webkit-slider-runnable-track { height: 10px; border: 2px solid var(--ink); border-radius: 99px; background: linear-gradient(to right, var(--blue) var(--p, 0%), var(--white) var(--p, 0%)); }
#seek::-moz-range-track { height: 6px; border: 2px solid var(--ink); border-radius: 99px; background: var(--white); }
#seek::-moz-range-progress { height: 6px; background: var(--blue); border-radius: 99px; }
#seek::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8px; border-radius: 50%; background: var(--yellow); border: 3px solid var(--ink); }
#seek::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--yellow); border: 3px solid var(--ink); }
.controls { display: flex; align-items: center; justify-content: space-between; gap: 4px; max-width: 560px; margin: 4px auto 0; }
.ctl { position: relative; display: grid; place-items: center; width: 50px; height: 50px; padding: 0; border: 0; background: none; border-radius: 50%; flex: none; }
.ctl svg { width: 28px; height: 28px; fill: var(--ink); }
.ctl i { position: absolute; font: 900 .56rem var(--sans); font-style: normal; top: 21px; }
.ctl:active { background: var(--burst); }
.ctl:disabled { opacity: .3; }
.ctl.play { width: 66px; height: 66px; background: var(--yellow); border: 4px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.ctl.play:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.ctl.play svg { width: 32px; height: 32px; }
#i-play { margin-left: 4px; }
.ctl.txt { width: auto; min-width: 50px; height: 40px; padding: 0 10px; border-radius: 12px; border: 3px solid var(--ink); background: var(--white); font: 900 .86rem var(--sans); box-shadow: 3px 3px 0 var(--ink); }
.ctl.flag { display: flex; gap: 5px; background: var(--red); color: #fff; }
.ctl.flag svg { width: 16px; height: 16px; fill: #fff; }
.follow { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--player-h) + 16px + env(safe-area-inset-bottom)); z-index: 25; padding: 9px 16px; border-radius: 99px; border: 3px solid var(--ink); background: var(--blue); color: #fff; font: 900 .88rem var(--sans); box-shadow: 3px 3px 0 var(--ink); }
.sheet { position: fixed; left: 10px; right: 10px; bottom: calc(var(--player-h) + 12px + env(safe-area-inset-bottom)); z-index: 40; max-width: 560px; margin: 0 auto; background: var(--white); border: 3px solid var(--ink); border-radius: 16px; box-shadow: 5px 5px 0 var(--ink); padding: 10px 14px 12px; }
.sheet-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sheet-row + .sheet-row { margin-top: 6px; }
.sheet input { flex: 1; min-width: 0; }
[hidden] { display: none !important; }

@media (max-width: 560px) {
  .logo { font-size: 17px; }
  .top { padding: 8px 12px 9px; }
  .top nav { gap: 12px; }
  main { padding: 20px 16px 50px; }
  .book-head { grid-template-columns: 104px 1fr; gap: 16px; }
  .lib-grid { grid-template-columns: repeat(2, 1fr); gap: 22px 16px; }
  .text { font-size: 1.14rem; }
  .ctl.flag span { display: none; }
  .ctl.flag { min-width: 44px; }
  .ctl { width: 46px; height: 46px; }
  .resume .go { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ===== reading chrome (both views): a slim bar replaces the site header while a chapter is open ===== */
:root { --rbar-h: 48px; --fscale: 1; --paper: #fffdf6; --edge: #efe4c3; --serif: "Lora", "Iowan Old Style", "Palatino Linotype", Georgia, serif; }
button, .rb, .ctl, .seg button { touch-action: manipulation; }
body.reading .top { display: none; }
.rbar { position: fixed; top: 0; left: 0; right: 0; z-index: 30; height: var(--rbar-h); display: flex; align-items: center; gap: 4px; padding: 0 max(8px, env(safe-area-inset-right)) 0 max(8px, env(safe-area-inset-left)); background: var(--cream); border-bottom: 3px solid var(--ink); }
.rb { flex: none; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: none; border-radius: 10px; color: var(--ink); text-decoration: none; }
.rb:active { background: var(--burst); }
.rb svg { width: 24px; height: 24px; }
.rb.az { display: block; width: 40px; font: 900 .95rem/44px var(--sans); text-align: center; }
.rb.az.big { font-size: 1.25rem; }
.rb.az small { font-size: .7em; vertical-align: .35em; margin-left: 1px; }
.r-info { flex: 1; min-width: 0; text-align: center; font: 800 .82rem var(--sans); color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 4px; }
.seg { flex: none; display: inline-flex; border: 3px solid var(--ink); border-radius: 12px; overflow: hidden; background: var(--white); margin-left: 2px; }
.seg button { height: 34px; min-width: 50px; padding: 0 9px; border: 0; background: none; font: 900 .8rem var(--sans); }
.seg button.on { background: var(--yellow); }
.seg button + button { border-left: 3px solid var(--ink); }
body.reading main { padding-top: calc(var(--rbar-h) + 26px); }
body.reading:not(.bookmode) .text { font-size: calc(1.16rem * var(--fscale)); }
.scrim { position: fixed; inset: 0; z-index: 44; background: rgba(27, 21, 48, .35); }
.drawer { position: fixed; top: 0; bottom: 0; left: 0; z-index: 45; width: min(380px, 88vw); background: var(--cream); border-right: 4px solid var(--ink); overflow-y: auto; overscroll-behavior: contain; padding: 0 0 calc(20px + env(safe-area-inset-bottom)) env(safe-area-inset-left); }
.dr-head { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; background: var(--cream); border-bottom: 3px solid var(--ink); font: 400 1.1rem var(--display); }
.drawer .chapters { border: 0; border-radius: 0; background: none; }
.drawer .chapters a { min-height: 48px; }
.dr-links { display: flex; gap: 22px; padding: 16px; font-weight: 800; margin: 0; }

/* ===== the book view ===== */
html:has(body.bookmode), body.bookmode { height: 100%; overflow: hidden; overscroll-behavior: none; }
body.bookmode main#app { position: fixed; top: var(--rbar-h); left: 0; right: 0; bottom: var(--player-h); height: auto; max-width: none; margin: 0; padding: 0; }
@supports (height: 100svh) { body.bookmode main#app { bottom: auto; height: calc(100svh - var(--rbar-h) - var(--player-h)); } }
.stage { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; touch-action: manipulation; -webkit-user-select: none; user-select: none;
  background: radial-gradient(ellipse at 50% 40%, var(--burst), var(--cream) 70%); }
.book { position: relative; perspective: 2600px; }
.stage.two .book { border-radius: 5px; box-shadow: 0 0 0 3px var(--ink), 5px 5px 0 3px var(--edge), 5px 5px 0 5px var(--ink), 10px 10px 0 5px var(--edge), 10px 10px 0 7px var(--ink), 22px 26px 34px rgba(27, 21, 48, .22); margin: -6px 10px 0 0; }
.stage.one:not(.full) .book { border-radius: 5px; box-shadow: 0 0 0 3px var(--ink), 5px 5px 0 3px var(--edge), 5px 5px 0 5px var(--ink), 9px 9px 0 5px var(--ink); }
.stage.two .book::after { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 86px; margin-left: -43px; z-index: 5; pointer-events: none;
  background: linear-gradient(to right, transparent, rgba(27, 21, 48, .05) 30%, rgba(27, 21, 48, .2) 49.4%, rgba(27, 21, 48, .28) 50%, rgba(27, 21, 48, .2) 50.6%, rgba(27, 21, 48, .05) 70%, transparent); }
.stage.one .book::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 26px; z-index: 5; pointer-events: none; background: linear-gradient(to right, rgba(27, 21, 48, .13), rgba(27, 21, 48, .03) 55%, transparent); }
.pg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: var(--paper); overflow: hidden; }
.stage.two .pg.slot-l { width: 50%; border-radius: 4px 0 0 4px; }
.stage.two .pg.slot-r { width: 50%; left: 50%; border-radius: 0 4px 4px 0; }
.pg.moving { z-index: 4; box-shadow: 14px 0 26px rgba(27, 21, 48, .3); transform-origin: left center; }
.leaf { position: absolute; top: 0; width: 50%; height: 100%; z-index: 6; transform-style: preserve-3d; will-change: transform; }
.leaf.fwd { left: 50%; transform-origin: left center; }
.leaf.bwd { left: 0; transform-origin: right center; }
.face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; background: var(--paper); }
.face.back { transform: rotateY(180deg); }
.face .pg { width: 100%; left: 0; }
.face .shade { position: absolute; inset: 0; pointer-events: none; opacity: 0; }
.leaf.fwd .front .shade, .leaf.bwd .back .shade { background: linear-gradient(to right, rgba(27, 21, 48, .5), rgba(27, 21, 48, .08) 45%, rgba(27, 21, 48, .2)); }
.leaf.fwd .back .shade, .leaf.bwd .front .shade { background: linear-gradient(to left, rgba(27, 21, 48, .5), rgba(27, 21, 48, .08) 45%, rgba(27, 21, 48, .2)); }
.pg-head { position: absolute; top: 0; left: var(--padx); right: var(--padx); height: var(--head); display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; padding-bottom: calc(var(--head) * .26);
  font: 800 .62rem/1.1 var(--sans); letter-spacing: .15em; text-transform: uppercase; color: #8a8199; }
.pg-head span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.stage.two .pg.even .pg-head span:last-child, .stage.two .pg.odd .pg-head span:first-child { display: none; }
.stage.two .pg.odd .pg-head { justify-content: flex-end; }
.pg.opener .pg-head { visibility: hidden; }
.pg-body { position: absolute; top: var(--head); left: var(--padx); width: var(--tw); height: var(--th); }
.pg-foot { position: absolute; bottom: 0; left: 0; right: 0; height: var(--foot); display: grid; place-items: center; font: 800 .7rem var(--sans); letter-spacing: .08em; color: #8a8199; }
.stage.short .pg-head { font-size: .52rem; }
.meas { position: absolute; left: -200000px; top: 0; visibility: hidden; column-fill: auto; pointer-events: none; }

/* the type on a page. Every rule here depends only on the block itself, so a page drawn alone breaks its lines
   exactly where the measuring copy did. */
.text.bk { font: 400 var(--fs)/1.58 var(--serif); color: var(--ink); orphans: 2; widows: 2; }
.text.bk .u { margin: 0 0 .62em; border-radius: 4px; scroll-margin: 0; }
.text.bk .u.cur { background: rgba(247, 205, 29, .15); box-shadow: none; }
.text.bk .w { padding: .06em 0; white-space: nowrap; }   /* a word never splits over two pages */
.text.bk .w.on { background: var(--yellow); box-shadow: 0 0 0 2px var(--yellow); }
.text.bk .w.st { font-weight: 700; }
.stage.just .text.bk .k-p, .stage.just .text.bk .k-ryan, .stage.just .text.bk .k-li { text-align: justify; }
.stage.just .text.bk .frag-more { text-align-last: justify; }
.text.bk .brk { break-before: column; }
.text.bk .k-h1, .text.bk .k-title, .text.bk .k-part, .text.bk .k-h2, .text.bk .k-h3, .text.bk .k-h4, .text.bk .k-num, .text.bk .k-partnum, .text.bk .k-label, .text.bk .k-sub { break-inside: avoid; break-after: avoid; }
.text.bk .ref { break-inside: avoid; break-before: avoid; font-size: .8em; }
.text.bk .k-h1 { font: 400 2.5em/1.06 var(--display); text-align: center; margin: 0 0 .35em; padding-top: calc(var(--th) * .16); }
.text.bk .k-sub { text-align: center; font: italic 400 1.05em/1.45 var(--serif); color: var(--soft); }
.text.bk .k-series { text-align: center; font: 800 .72em var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--blue); margin-top: 1.6em; }
.text.bk .k-by { text-align: center; font: 400 1.3em var(--display); margin-top: .6em; }
.text.bk .k-partnum { font: 900 .68em/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--blue); text-align: center; margin: 0 0 1em; padding-top: calc(var(--th) * .26); }
.text.bk .k-part { font: 400 2em/1.1 var(--display); color: var(--ink); text-align: center; margin: 0 0 .5em; }
.text.bk .k-parttag { font-style: italic; color: var(--soft); text-align: center; border: 0; padding: 0; margin: 0; }
.text.bk .k-num { font: 900 .68em/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--blue); margin: 0 0 .9em; padding-top: calc(var(--th) * .1); }
.text.bk .k-title { font: 400 2.05em/1.08 var(--display); margin: 0 0 .7em; padding-bottom: .5em; background: linear-gradient(var(--red), var(--red)) left bottom / 54px 5px no-repeat; }
.text.bk .k-epi { font-style: italic; color: var(--soft); border-left: 4px solid var(--yellow); padding-left: .9em; margin: 0 0 1.4em; font-size: .95em; }
.text.bk .k-h2, .text.bk .k-h3 { font: 400 1.28em/1.2 var(--display); margin: 1.1em 0 .45em; }
.text.bk .k-h4 { font: 800 1em/1.3 var(--sans); margin: 1em 0 .35em; }
.text.bk .k-pull { font: italic 600 1.12em/1.45 var(--serif); color: var(--blue); text-align: center; padding: .2em .6em; }
.text.bk .k-quote { font-style: italic; padding-left: .9em; border-left: 3px solid var(--ink); }
.text.bk .k-sig { text-align: right; font: 800 .9em var(--sans); }
.text.bk .k-li { padding-left: 1.7em; }
.text.bk .k-li::before { left: .1em; font: 900 .9em/1.75 var(--sans); }
.text.bk .k-label { font: 900 .64em/1.2 var(--sans); letter-spacing: .15em; text-transform: uppercase; margin-bottom: .6em; }
.text.bk .k-fig { font: 600 .74em var(--sans); padding: .5em; border-width: 1.5px; }
.text.bk .box > :last-child { margin-bottom: 0; }
.text.bk .box { margin: .95em 0; padding: .75em .9em .6em; border: 2px solid var(--ink); border-radius: 10px; background: var(--white); box-shadow: none; }
.text.bk .box-kjv { border: 0; border-left: 5px solid var(--blue); border-radius: 0; background: none; padding: .1em 0 .1em .95em; font-style: italic; }
.text.bk .box-kjv .ref { font-style: normal; }
.text.bk .box-note { box-shadow: 3px 3px 0 var(--ink); }
.text.bk .box-cube { box-shadow: 3px 3px 0 var(--ink); background: #f4fbf6; }
.text.bk .box-study { background: #fff3c9; }
.text.bk .box-ded { border: 0; background: none; text-align: center; padding: calc(var(--th) * .24) 0 0; margin: 0; break-before: column; border-radius: 0; }
.text.bk .box.cont-top { border-top: 0; padding-top: 0; margin-top: 0; border-top-left-radius: 0; border-top-right-radius: 0; }
.text.bk .box.cont-bot { border-bottom: 0; padding-bottom: 0; margin-bottom: 0; border-bottom-left-radius: 0; border-bottom-right-radius: 0; box-shadow: none; }
.pg-body > :first-child, .pg-body > .box.cont-top > :first-child { margin-top: 0 !important; }
.pg-body > :last-child, .pg-body > .box.cont-bot > :last-child { margin-bottom: 0 !important; }
.text.bk .frag-cont { text-indent: 0; }
.text.bk .frag-cont.k-li::before { content: none; }
/* flags and listening-check marks sit in the page margin */
.text.bk .u.q::before, .text.bk .u.flagged::after { position: absolute; top: .3em; right: auto; left: calc(var(--padx) * -1 + 3px); width: auto; padding: 0; border: 0; background: none; writing-mode: vertical-rl;
  font: 900 8px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.text.bk .u.q::before { content: "check"; color: #a89c78; }
.text.bk .u.flagged::after { content: "flagged"; color: var(--red); left: auto; right: calc(var(--padx) * -1 + 3px); }
.text.bk .box .u.q::before { left: calc(var(--padx) * -1 - 10px); }
body.bookmode .follow { bottom: calc(var(--player-h) + 14px); }

/* short screens (a phone on its side): one compact player row, so the pages get the height */
@media (max-height: 520px) {
  :root { --rbar-h: 40px; }
  .rb { height: 38px; } .rb.az { line-height: 38px; } .seg button { height: 28px; }
  .player { display: flex; align-items: center; gap: 10px; padding: 4px max(12px, env(safe-area-inset-right)) calc(4px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); border-top-width: 3px; }
  .player .bar { flex: 1; min-width: 0; margin: 0; }
  .controls { margin: 0; gap: 2px; max-width: none; flex: none; }
  .ctl { width: 44px; height: 44px; }
  .ctl.play { width: 46px; height: 46px; border-width: 3px; box-shadow: 2px 2px 0 var(--ink); }
  .ctl.play svg { width: 24px; height: 24px; }
  .ctl.txt { height: 36px; min-width: 44px; }
  .ctl.flag span { display: none; }
}
@media (max-width: 420px) { .r-info { font-size: .74rem; } .rb.az { width: 36px; } .seg button { min-width: 46px; padding: 0 7px; } }

/* every control is at least 44 px to the thumb */
:root { --rbar-h: 52px; }
.rb.az { width: 44px; }
.seg { border: 0; overflow: visible; background: none; border-radius: 0; }
.seg button { height: 44px; min-width: 52px; border: 3px solid var(--ink); background: var(--white); border-radius: 12px 0 0 12px; }
.seg button + button { border-left: 3px solid var(--ink); margin-left: -3px; border-radius: 0 12px 12px 0; }
.ctl.txt { height: 44px; }
@media (max-height: 520px) { :root { --rbar-h: 46px; } .rb { height: 44px; } .rb.az { line-height: 44px; } .seg button { height: 44px; } .ctl.txt { height: 44px; } }
@media (max-width: 420px) { .rb.az { width: 44px; } .seg button { min-width: 50px; padding: 0 6px; } .rbar { gap: 0; } }
@media (max-width: 379px) { .r-info { visibility: hidden; } }

/* small phones (360-400 px): seven player controls must fit without clipping the Flag button */
@media (max-width: 400px) {
  .player { padding-left: 10px; padding-right: 10px; }
  .controls { gap: 2px; }
  .ctl { width: 40px; height: 44px; }
  .ctl svg { width: 24px; height: 24px; }
  .ctl.play { width: 58px; height: 58px; }
  .ctl.play svg { width: 28px; height: 28px; }
  .ctl.txt { min-width: 44px; padding: 0 6px; }
  .ctl.flag { min-width: 44px; width: 44px; }
}

/* public edition: the listening-check marks were for proofing only */
.chk, .text .u.q::before, .text.bk .u.q::before { display: none !important; }
