/* Reading tools v2 — one floating Aa reader panel (ADHD Bible reader standard, 12/04).
   Satin / Light, Dyslexia, A- / A+, Focus, Read aloud.
   Everything is scoped by html[data-rt-*] attributes set by reading-tools.js
   (and by the tiny head snippet, so the saved look shows before first paint). */

/* ---------- the floating Aa reader panel (dark glass, independent of the site) ---------- */
.rt-ui,.rt-ui *{box-sizing:border-box;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;letter-spacing:0!important;word-spacing:0!important;font-style:normal!important;line-height:1.2!important;zoom:1!important;text-transform:none}
.rt-dock{position:fixed;left:14px;bottom:calc(16px + env(safe-area-inset-bottom));z-index:2147483000}
.rt-fab{width:52px;height:52px;border-radius:50%;border:1px solid #d9b56a;background:rgba(17,17,17,.94);color:#fff;cursor:grab;touch-action:none;box-shadow:0 6px 20px rgba(0,0,0,.3);display:grid;place-items:center;padding:0;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.rt-fab b{font-family:"Cormorant Garamond",Georgia,serif!important;font-size:22px;font-weight:500;color:#fff}
.rt-fab:hover{border-color:#f0cf8a}
.rt-fab.rt-busy{box-shadow:0 0 0 3px rgba(217,181,106,.45),0 6px 20px rgba(0,0,0,.3)}
.rt-fab[hidden]{display:none}
.rt-panel{width:236px;max-width:calc(100vw - 28px);padding:6px 10px 12px;border-radius:18px;border:1px solid rgba(255,255,255,.14);background:rgba(17,17,17,.96);color:#fff;box-shadow:0 10px 30px rgba(0,0,0,.4);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}
.rt-panel[hidden]{display:none}
.rt-head{display:flex;align-items:center;gap:8px;cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none}
.rt-grip{width:20px;height:10px;background:radial-gradient(circle,#9a9a9a 1.2px,transparent 1.7px) 0 0/5px 5px}
.rt-title{flex:1;font-size:10px;font-weight:500;letter-spacing:1.5px!important;text-transform:uppercase!important;color:#a8a8a8}
.rt-x{width:40px;height:40px;border:0;background:transparent;color:#ececec;font-size:24px;padding:0;cursor:pointer}
.rt-row{display:flex;gap:6px;align-items:center;flex-wrap:wrap;margin-top:8px}
.rt-row[hidden]{display:none}
.rt-btn{min-height:40px;padding:0 14px;border-radius:999px;border:1px solid rgba(255,255,255,.2);background:#141414;color:#fff;font-size:14px;font-weight:500;cursor:pointer;white-space:nowrap}
.rt-btn:hover{border-color:#d9b56a}
.rt-btn[aria-pressed="true"]{border-color:#d9b56a;background:#2a2316;color:#fff}
.rt-btn:disabled{opacity:.4;cursor:default}
.rt-size{justify-content:space-between}
.rt-round{min-width:48px;min-height:44px;padding:0;font-size:16px;font-weight:600}
.rt-pct{font-size:13px;color:#d6d6d6;min-width:3em;text-align:center}
.rt-play{width:50px;height:50px;border-radius:50%;border:0;background:#d9b56a;color:#111;display:grid;place-items:center;padding:0;cursor:pointer;flex:none}
.rt-play svg{width:22px;height:22px;display:block;fill:currentColor}
.rt-listen-label{flex:1;font-size:13px;color:#d6d6d6}
.rt-speed{min-width:52px;padding:0 10px}
.rt-hint{font-size:12px;color:#bdbdbd;margin:8px 0 0}
.rt-ui :focus-visible{outline:2px solid #f0cf8a;outline-offset:3px}
@media print{.rt-ui{display:none!important}}

/* ---------- Satin Black (dark reading view over any site) ---------- */
html[data-rt-theme="satin"],html[data-rt-theme="satin"] body{background:#0b0b0b!important;color:#fff!important}
html[data-rt-theme="satin"] body *:not(.rt-ui):not(.rt-ui *):not(img):not(video):not(canvas):not(iframe):not(svg):not(svg *){background-color:transparent!important;color:#f4f4f4!important;border-color:rgba(255,255,255,.14)!important;text-shadow:none!important;box-shadow:none!important}
html:root:root[data-rt-theme="satin"] body :is(header,nav,.nav,.navbar,.site-header):not(.rt-ui *):not(.rt-ui){background:rgba(11,11,11,.96)!important;background-color:rgba(11,11,11,.96)!important}
html[data-rt-theme="satin"] body a:not(.rt-ui *){color:#e2c27f!important}
html[data-rt-theme="satin"] body :is(h1,h2,h3,h4):not(.rt-ui *){color:#fff!important}
html[data-rt-theme="satin"] body :is(input,textarea,select):not(.rt-ui *){background-color:#161616!important}

/* ---------- Dyslexia ---------- */
html[data-rt-dys="on"] .rt-scope :is(p,li,h1,h2,h3,h4,h5,h6,blockquote,figcaption,dd,dt,td,th,label,a,span,em,strong,div):not(.rt-ui *){font-family:"Atkinson Hyperlegible",Verdana,sans-serif!important;font-style:normal!important}
html[data-rt-dys="on"] .rt-scope .rt-u{letter-spacing:.04em!important;word-spacing:.16em!important;line-height:1.95!important;text-align:left!important;hyphens:none!important;-webkit-hyphens:none!important}
html[data-rt-dys="on"] .rt-scope .rt-u:is(h1,h2,h3,h4){line-height:1.3!important;letter-spacing:.02em!important;word-spacing:.08em!important}
html[data-rt-dys="on"][data-rt-theme="satin"] .rt-scope .rt-u{color:#ece6d8!important}

/* ---------- text size (zoom only the readable blocks, so layout chrome stays put) ---------- */
html[data-rt-size] .rt-scope .rt-u{zoom:var(--rt-scale,1)}

/* ---------- Focus: dim everything but the block in the middle of the screen ---------- */
html[data-rt-focus="on"] .rt-scope .rt-u{opacity:.25;transition:opacity .2s}
html[data-rt-focus="on"] .rt-scope .rt-u.rt-on{opacity:1}

/* ---------- read-aloud highlight ---------- */
/* :root:root + doubled class out-ranks the Satin reset above, which clears every background/box-shadow */
:root:root .rt-scope .rt-u.rt-reading.rt-reading{opacity:1!important;box-shadow:-6px 0 0 #d9b56a!important;background-color:rgba(217,181,106,.14)!important;border-radius:4px}

@media (prefers-reduced-motion:reduce){html[data-rt-focus="on"] .rt-scope .rt-u{transition:none}}
