.theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:.45em;flex:none;min-height:38px;border:1px solid #b79eac;border-radius:2em;background:transparent;color:inherit;padding:.4em .8em;font:600 .875rem/1.2 Arial,sans-serif;cursor:pointer}
.theme-toggle[hidden]{display:none}.theme-toggle::before{content:'☾';font-size:1.3em}.theme-toggle[aria-pressed=true]::before{content:'☀'}.theme-toggle:focus-visible{outline:3px solid #b66e95;outline-offset:3px}
@media(max-width:850px){header .bar{flex-wrap:wrap;gap:8px 12px}header .bar .theme-toggle{padding-inline:.65em}header .bar:has(>.brand):not(:has(nav)){padding-block:.5rem}}
@media print{.theme-toggle{display:none}}
@media screen {
html[data-theme=dark]{color-scheme:dark;--ink:#f5eee9;--paper:#201b22;--cream:#201b22;--line:#66505c;--gold:#ecc39c;--plum:#efa8c7;--night-panel:#342831;--night-accent:#f1b2ca;--night-muted:#d8c5cf}
html[data-theme=dark] body{background:#201b22;color:var(--ink)}
html[data-theme=dark] :is(header,header nav,footer,dialog,.close){background:#272129;color:var(--ink);border-color:var(--line)}
html[data-theme=dark] :is(.shelf-nav,.doors article,.doors #devotionals,.prayer,.tomorrow,.peace-band,.devotional-note,.voice,.purchase,.listen,.game aside,.jigsaw aside,.jigsaw article,#grid,#reflections){background:var(--night-panel);color:var(--ink);border-color:var(--line)}
html[data-theme=dark] :is(.themes button:not([aria-pressed=true]),select){background:#302731;color:var(--ink);border-color:#96788a}
html[data-theme=dark] select{appearance:auto}
html[data-theme=dark] :is(.label,.eyebrow,.topic,.seal,.reading blockquote,.share-row button,.board-head button,.jigsaw aside a,.peace-list span){color:var(--night-accent)}
html[data-theme=dark] :is(.lead,.sample small,.rights,.shelf-nav span,.board-card p,.verse small,.passage small,.peace-list small,details,footer small){color:var(--night-muted)}
html[data-theme=dark] :is(.themes [aria-pressed=true],.button,.dark,.peace-band a,.series-end .button,.peace-list .button){background:#f1b7cd;color:#361d2b}
html[data-theme=dark] :is(a:hover,.under:hover){color:#ffd5e5}
html[data-theme=dark] :is(.button,.dark,.peace-band a):hover{color:#361d2b}
html[data-theme=dark] .video span{color:#633649}
html[data-theme=dark] .puzzle-hero{background-image:linear-gradient(90deg,#271d2bef,#382c37cf),url('/assets/sunrise-banner.jpg')}
html[data-theme=dark] .hero:has(.hero-book):before{background:linear-gradient(90deg,#241b28fa,#362538cf 50%,#281a233a)}
html[data-theme=dark] .hero:has(.hero-book),html[data-theme=dark] .hero:has(.hero-book) :is(p,h1,.gold,.textlink){color:#fff0e9}
html[data-theme=dark] .hero:has(.hero-book) h1 em{color:#ffc6d7}
html[data-theme=dark] #grid button{color:#fff2f5}
html[data-theme=dark] #grid .found{background:#70435f}
html[data-theme=dark] #grid .selected{background:#fac991;color:#322227}
html[data-theme=dark] #grid .hinted{box-shadow:inset 0 0 0 2px #ffcc8f}
html[data-theme=dark] .theme-toggle[aria-pressed=true]{background:#493340;color:#ffdde9}
}
