/* Bogidua · night theme. Only active under <html data-theme="bogidua"> (set by bible-bogidua.js). Everything sits in @layer bogidua, which index.html, daily.html and api/render.js declare before any other layer, and every rule is !important: the site keeps its own colours in cascade layers with !important, and only an earlier layer's !important outranks them.
   Obsidian page, deep-slate cards, warm parchment text and gold accents. The day look is untouched. */
@layer bogidua{
html[data-theme=bogidua]{color-scheme:dark!important;background:#0D0F12!important;--bl-on:#E5C158!important;--bl-on-ink:#14110A!important;--bl-off-ink:#D8D1C4!important}
html[data-theme=bogidua] :is(body.bible-prototype,body.bible-static-shell,body){--bx-paper:#0D0F12!important;--bx-card:#16191E!important;--bx-ink:#ECE6DA!important;--bx-muted:#A8A29E!important;--bx-line:#2A2F37!important;--bx-accent:#E5C158!important;--bx-soft:#1A2422!important;--bx-sand:#1B1E24!important;--bx-blue:#7CC0EA!important;--bx-coral:#F08A5D!important;--ink:#ECE6DA!important;--ink-soft:#B9B2A6!important;--accent:#E5C158!important;--glass:rgba(22,25,30,.94)!important;--glass-strong:rgba(22,25,30,.97)!important;--bible-light:0 0 0 1px rgba(229,193,88,.14),0 10px 30px rgba(0,0,0,.35)!important;background:#0D0F12!important;color:#ECE6DA!important}

/* P = html[data-theme=bogidua]:root:not(#bg1):not(#bg2) body — outranks the site's ":root:not(#dk) body.bible-prototype" rules */
html[data-theme=bogidua]:root:not(#bg1):not(#bg2) body :is(.bx-primary,.landing-button:not(.secondary),.gs-primary,.sd-primary,#btnSearch,#resumeChapter,#chapnav button[aria-current]){color:#14110A!important}
html[data-theme=bogidua]:root:not(#bg1):not(#bg2) body main.wrap:has(#resumeReading:not([hidden])) .bx-welcome .bx-primary{color:#14110A!important}
html[data-theme=bogidua]:root:not(#bg1):not(#bg2) body main.wrap .bx-welcome .bx-primary{background:#E5C158!important;border-color:#E5C158!important;color:#14110A!important}
html[data-theme=bogidua] body.bible-static-shell .bx-primary{color:#14110A!important}
/* sidebar */
html[data-theme=bogidua]:root:not(#bg1):not(#bg2) body .bx-sidebar{background:#111317!important;border-right-color:#23272e!important}
/* language pill */
html[data-theme=bogidua]:root:not(#bg1):not(#bg2) body #blToggle{background:#16191E!important;border-color:rgba(229,193,88,.35)!important;box-shadow:none!important}

/* form fields */
html[data-theme=bogidua]:root:not(#bg1):not(#bg2) body :is(input:not([type=checkbox]):not([type=radio]):not([type=range]),select,textarea){background-color:#101317!important;color:#ECE6DA!important;border-color:#343a43!important}
html[data-theme=bogidua]:root:not(#bg1):not(#bg2) body :is(input,textarea)::placeholder{color:#7d776f!important}
/* home hero: the soft shape behind the Bible becomes a dim gold glow */
html[data-theme=bogidua]:root:not(#bg1):not(#bg2) body .bx-welcome-mark::before{background:radial-gradient(circle at 50% 45%,#2a2519 0%,#1a1813 60%,#14130f 100%)!important;box-shadow:0 0 60px rgba(229,193,88,.10)!important}
html[data-theme=bogidua]:root:not(#bg1):not(#bg2) body .bx-dimau-group span{color:#A8A29E!important}
/* reader */
html[data-theme=bogidua]:root:not(#bg1):not(#bg2) body .br-explanation{background:#15181c!important;border-color:#2c3038!important}
html[data-theme=bogidua]:root:not(#bg1):not(#bg2) body #brExplanationToggle>span{background:#1d2a28!important;border-color:#2f4440!important;color:#BFE0DA!important}
html[data-theme=bogidua]:root:not(#bg1):not(#bg2) body .lib-bar{background:rgba(22,25,30,.85)!important;border-color:rgba(229,193,88,.22)!important}
html[data-theme=bogidua]:root:not(#bg1):not(#bg2) body .br-toggle input:not(:checked){background:#3a3f47!important}
/* listen, study */
html[data-theme=bogidua]:root:not(#bg1):not(#bg2) body #bxListenView{background:#16191E!important;border-color:#2A2F37!important;color:#ECE6DA!important}
html[data-theme=bogidua]:root:not(#bg1):not(#bg2) body #bxListenView :is(h2,h3,#audioTitle){color:#F3EDE1!important}
html[data-theme=bogidua]:root:not(#bg1):not(#bg2) body :is(.bx-eyebrow,.gs-kicker,.dk-kicker,.coltitle){color:#E5C158!important}
html[data-theme=bogidua]:root:not(#bg1):not(#bg2) body .bf-notice{background:#1f1c14!important;border-color:#3d3523!important;color:#E8D9AE!important}
html[data-theme=bogidua]:root:not(#bg1):not(#bg2) body input[type=checkbox],html[data-theme=bogidua]:root:not(#bg1):not(#bg2) body input[type=radio]{accent-color:#E5C158!important}
html[data-theme=bogidua] :is(:root,body){--dk-alice:#16191E!important;--dk-ink:#ECE6DA!important;--dk-ink-2:#B9B2A6!important;--dk-title:#F3EDE1!important;--dk-navy:#E5C158!important;--dk-midnight:#ECE6DA!important;--dk-tile:rgba(28,32,38,.92)!important;--dk-tile-soft:rgba(28,32,38,.5)!important;--dk-tile-hover:rgba(40,44,52,.95)!important;--dk-tile-on:rgba(229,193,88,.28)!important;--dk-ring:0 0 0 1px rgba(229,193,88,.18),0 8px 24px rgba(0,0,0,.35)!important;--dk-glow:0 0 0 2px rgba(229,193,88,.6),0 0 18px 4px rgba(229,193,88,.25)!important;--dk-text-glow:none!important;--dk-panel:#16191E!important;--dk-panel-ink:#ECE6DA!important;--dk-bar:linear-gradient(100deg,#15181c,#1b1e24)!important;--dk-bar-line:rgba(229,193,88,.18)!important;--dk-scrim:rgba(0,0,0,.7)!important}
/* study library, note sheet */
html[data-theme=bogidua]:root:not(#bg1):not(#bg2) body .lib-panel{background:rgba(22,25,30,.9)!important;border-color:rgba(229,193,88,.2)!important}
html[data-theme=bogidua]:root:not(#bg1):not(#bg2) body .lib-hymn{background:#1a1e24!important;border-color:#2c323b!important}
html[data-theme=bogidua]:root:not(#bg1):not(#bg2) body .lib-hymn-name span{color:#A8A29E!important}
html[data-theme=bogidua]:root:not(#bg1):not(#bg2) body :is(#noteReference,.sheet h2,.sheet h3){color:#F3EDE1!important}
html[data-theme=bogidua]:root:not(#bg1):not(#bg2) body .sheet{background:#16191E!important;color:#ECE6DA!important;border-color:#2A2F37!important}
/* public book and chapter pages, popular verses, daily (body.bible-editorial-static) */
html[data-theme=bogidua] body.bible-editorial-static{--sky:#0D0F12!important;--sky-deep:#E5C158!important;--ink:#ECE6DA!important;--ink-soft:#A8A29E!important;--line:#2A2F37!important;--btn:#E5C158!important;--panel:#16191E!important;--accent:#E5C158!important;--dimau-glass:#16191E!important;--dimau-edge:#2A2F37!important}
html[data-theme=bogidua]:root:not(#bg1):not(#bg2) body.bible-editorial-static :is(.card,.chip,.chips a,.dk-nav a,.dk-tools button,.dk-account,.dk-brand,.dk-logo){background:#16191E!important;border-color:#2A2F37!important;color:#ECE6DA!important}
html[data-theme=bogidua]:root:not(#bg1):not(#bg2) body.bible-editorial-static :is(h1,h2,h2.dk-h2,h3,.dk-title,.v,.pl){color:#ECE6DA!important}
html[data-theme=bogidua]:root:not(#bg1):not(#bg2) body.bible-editorial-static :is(button.go,a.btn:not(.ghost),.vs-btn,.btn){background:#E5C158!important;color:#14110A!important;border-color:#E5C158!important}
html[data-theme=bogidua]:root:not(#bg1):not(#bg2) body.bible-editorial-static .dk-header{background:#0D0F12!important;border-color:#23272e!important}
html[data-theme=bogidua]:root:not(#bg1):not(#bg2) body.bible-editorial-static main :is(a:not(.btn):not(.bx-primary):not(.dk-account),.muted a){color:#E5C158!important}
html[data-theme=bogidua]:root:not(#bg1):not(#bg2) body.bible-editorial-static :is(.muted,p.muted,.vs-note,.vs-label){color:#A8A29E!important}
html[data-theme=bogidua]:root:not(#bg1):not(#bg2) body :is(.dk-kicker,.coltitle){background:transparent!important}
html[data-theme=bogidua]:root:not(#bg1):not(#bg2) body .dsm-launcher-button{background:#16191E!important;border-color:rgba(229,193,88,.4)!important}
html[data-theme=bogidua]:root:not(#bg1):not(#bg2) body .vs-msg[data-state=err]{color:#F2A08F!important}
html[data-theme=bogidua]:root:not(#bg1):not(#bg2) body .vs-msg[data-state=ok]{color:#9ED9A8!important}
html[data-theme=bogidua]:root:not(#bg1):not(#bg2) body :is(.dk-header-bar,.dk-header){background:#0D0F12!important;border-color:#23272e!important;box-shadow:none!important}
html[data-theme=bogidua]:root:not(#bg1):not(#bg2) body .bx-dimau-group span{color:#A8A29E!important}
/* phones: the night switch needs room in the top bar, so the logo stands alone there (it already reads "Fijian Bible") */
@media (max-width:420px){html:root:not(#bg1):not(#bg2) body:has(#bgToggle) .bx-mobile-brand :is(strong,b,.bx-mobile-brand-name,span:not([data-dimau-logo-frame])){display:none!important}}
/* verse sheet panels and the 1864 panel */
html[data-theme=bogidua]:root:not(#bg1):not(#bg2) body :is(.vt-panel,.historic-panel){background:rgba(22,25,30,.92)!important;border-color:#2A2F37!important}
html[data-theme=bogidua]:root:not(#bg1):not(#bg2) body .vt-post{background:#101317!important;color:#ECE6DA!important;border-color:#343a43!important}
html[data-theme=bogidua]:root:not(#bg1):not(#bg2) body .historic-text .hv.hl-yellow{background:rgba(229,193,88,.26)!important}
html[data-theme=bogidua]:root:not(#bg1):not(#bg2) body .historic-text .hv.hl-pink{background:rgba(240,138,160,.24)!important}
html[data-theme=bogidua]:root:not(#bg1):not(#bg2) body .historic-text .hv.verse-target:not(.hl-yellow):not(.hl-blue):not(.hl-green):not(.hl-pink){background:rgba(124,192,234,.18)!important}
}