/* IMBF Bible sections: shared appearance, scoped to the saved theme. */
html{color-scheme:light}
.theme-switch{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:10px;padding:24px 16px;color:#555;font:14px/1.4 Helvetica,Arial,sans-serif}
.theme-switch-label{flex-basis:100%;text-align:center}
.theme-switch button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:112px;min-height:44px;margin:0;padding:10px 16px;border:1px solid #9aa3af;border-radius:999px;background:#f1f3f4;color:#202124;font:inherit;cursor:pointer}
.theme-switch button[aria-pressed="true"]{background:#34434e;color:#fff;border-color:#34434e;font-weight:700}
.theme-switch button:focus-visible{outline:3px solid #ff994f;outline-offset:3px}
@media screen{
html[data-theme="dark"]{color-scheme:dark;background:#17191c;--ab-surface:#1c1f23;--ab-panel:#23272d;--ab-border:#444b55;--ab-border-strong:#59616d;--ab-text:#e5e9ef;--ab-muted:#adb5bf;--ab-button:#465159;--ab-hover:#245fa8}
html[data-theme="dark"] body{background:#17191c;color:#d9dde3}
html[data-theme="dark"] :is(.bs,.tp,.qh,.rv){--bs-ink:#e5e9ef;--bs-muted:#adb5bf;--bs-line:#444b55;--bs-accent:#82b7ff;--bs-accent-ink:#17191c;--bs-bg-soft:#23272d;--tp-ink:#e5e9ef;--tp-muted:#adb5bf;--tp-line:#444b55;--tp-accent:#82b7ff;--tp-soft:#23272d;--qh-ink:#e5e9ef;--qh-muted:#adb5bf;--qh-accent:#82b7ff;--qh-line:#444b55;--rv-ink:#e5e9ef;--rv-muted:#adb5bf;--rv-soft:#23272d;--rv-accent:#245fa8}
html[data-theme="dark"] a{color:#82b7ff}
html[data-theme="dark"] a:hover{color:#ffb076}
html[data-theme="dark"] :is(h1,h2,h3,h4,h5,h6,.title-page,.content,.ru,.rus,.rus i,.lead,.ab-landing .lead){color:#e5e9ef}
html[data-theme="dark"] :is(.version,.select,.rub,.about,#likes-wrapper,.about .time,.copyright,.copyright a,.bs-crumbs,.qp-note,.picker label,.speed,.eyebrow,.ab-current-label){color:#adb5bf}
html[data-theme="dark"] :is(header,.navigator){background:#23272d;border-color:#444b55}
html[data-theme="dark"] .nav-text a,html[data-theme="dark"] #header a{color:#d9dde3;background:#23272d}
html[data-theme="dark"] .nav-text a:hover,html[data-theme="dark"] #header a:hover{color:#fff;background:#343d48}
html[data-theme="dark"] .nav-text.active a{background:#465159;color:#fff}
html[data-theme="dark"] :is(.navicon,.navicon::before,.navicon::after){background:#c3c9d1}
html[data-theme="dark"] .menu-btn:checked+.menu-icon .navicon{background:transparent}
html[data-theme="dark"] :is(input[type=text],input[type=search],textarea,select,option){color:#e5e9ef;background:#23272d;border-color:#59616d}
html[data-theme="dark"] :is(input,textarea)::placeholder{color:#adb5bf;opacity:1}
html[data-theme="dark"] :is(.go-button,.menu-button,.bi-poisk,#open.bi-poisk){background:#465159;color:#fff;border-color:#59616d}
html[data-theme="dark"] :is(.go-button,.menu-button,.bi-poisk,#open.bi-poisk):hover{background:#596773;color:#fff}
html[data-theme="dark"] :is(.bi-search,.bs-button,.rv-button,.ab-cta){background:#245fa8;color:#fff;border-color:#245fa8}
html[data-theme="dark"] :is(.bi-search,.bs-button,.rv-button,.ab-cta):hover{background:#1c4e8c;color:#fff;border-color:#82b7ff}
html[data-theme="dark"] :is(.rv-box,.rv-nojs,.tp-card,.tp-link,.tp-chip,.qp-chip,.rv-link,.bs-link,.bs-more,.bs-chip,.qh .qh-card,.bs-answer,.bs-topic,.bs-hints,.dict-box,pre){color:#d9dde3;background:#23272d;border-color:#444b55}
html[data-theme="dark"] :is(.tp-card,.tp-link,.tp-chip,.qp-chip,.rv-link,.bs-link,.bs-more,.bs-chip,.qh .qh-card):hover{color:#fff;background:#303a47;border-color:#82b7ff}
html[data-theme="dark"] :is(.bs-expand,.qp-label,.bs-qlabel){color:#82b7ff}
html[data-theme="dark"] :is(.qp-points,.bs-qpoints) li:last-child:not(:first-child){background:#232e3d;border-color:#596b85;border-left-color:#82b7ff}
html[data-theme="dark"] :is(.qp-sensitive,.bs-sensitive,.bs-preview,.ab-notice){background:#3b321f;color:#f1d395;border-color:#695836}
html[data-theme="dark"] :is(.qp-safety,.bs-safety){background:#3c2526;color:#f1d5d5;border-color:#a96969}
html[data-theme="dark"] :is(.qp-safety h2,.bs-safety-title){color:#ffb4ab}
html[data-theme="dark"] :is(.qp-label-principles,.bs-qlabel-principles){color:#f1d395}
html[data-theme="dark"] :is(mark,.mark,.bs-hl){background:#514421;color:#ffe8a6}
html[data-theme="dark"] :is(code,kbd){background:#30343b;color:#ffadbf}
html[data-theme="dark"] :is(blockquote,footer,td,th,hr){border-color:#444b55}
html[data-theme="dark"] .word:hover{background:#343126}
html[data-theme="dark"] :is(.hebrew,.greek){color:#edc280}
html[data-theme="dark"] :is(.he,.gr){color:#aecdf7}
html[data-theme="dark"] :is(.translit,.transcription){color:#a3cea8}
html[data-theme="dark"] :is(.strongs,.strongsnt){color:#a9bfdc}
html[data-theme="dark"] :is(.verse,.vn,.content .vn,.content .vn a,#in.content p[id^="v"]>a[href^="#v"]:first-child){color:#ffb4ab}
html[data-theme="dark"] :is(.Untranslated,.gray){color:#adb5bf}
html[data-theme="dark"] :is(.v:target,p:target,tr:target){background:#35352a;color:#e5e9ef}
html[data-theme="dark"] .content .ru{color:#e5e9ef}
html[data-theme="dark"] :is(.dict-close,.ab-share-current button,.audio-bible-page .seo-book,.book-links a,.ab-card-list a){background:#2b3037;color:#e5e9ef;border-color:#59616d}
html[data-theme="dark"] :is(.dict-close,.ab-share-current button,.audio-bible-page .seo-book,.book-links a,.ab-card-list a):hover{background:#3b4552;color:#fff;border-color:#82b7ff}
html[data-theme="dark"] :is(.picker,.player-card,.audio-sidebar,.listen-panel,.track){background:#23272d;color:#e5e9ef;border-color:#444b55}
html[data-theme="dark"] .track:hover{background:#343d48;color:#fff}
html[data-theme="dark"] .track.active{background:#465159;color:#fff;border-color:#a3b5c4}
html[data-theme="dark"] #player .resume{background:#3b321f!important;color:#f1d395;border-color:#695836}
html[data-theme="dark"] #player :is(.resume strong,#resumeText){color:#f1d395}
html[data-theme="dark"] .controls button:disabled{background:#30343b;color:#adb5bf;border-color:#444b55}
html[data-theme="dark"] #share{background:#17191c}
html[data-theme="dark"] .like{color:#d9dde3}
html[data-theme="dark"] #share .social a{background:#2b3037;color:#d9dde3;border-color:#444b55}
html[data-theme="dark"] #share .social a:hover{background:#245fa8;color:#fff}
html[data-theme="dark"] .theme-switch{color:#adb5bf}
html[data-theme="dark"] .theme-switch button{background:#23272d;color:#d9dde3;border-color:#626973}
html[data-theme="dark"] .theme-switch button[aria-pressed="true"]{background:#d9dde3;color:#17191c;border-color:#d9dde3}
html[data-theme="dark"] .theme-switch button:hover{border-color:#ff994f}
html[data-theme="dark"] footer .social a:hover,
html[data-theme="dark"] .nav-footer .nf-link a:hover{background:#ff6a00;color:#17191c}
html[data-theme="dark"] footer .social a:hover .fa{color:#17191c}
}
@media print{.theme-switch{display:none!important}html[data-theme="dark"],html[data-theme="dark"] body{background:#fff!important;color:#000!important}}

/* Audit fixes: legacy inline text, filled buttons, QR donation and standalone tools. */
.theme-switch-footer{clear:both;margin-top:24px;padding-top:12px;border-top:1px solid #59616d}
@media screen{
html[data-theme="dark"] body{background:#17191c;color:#d9dde3}
html[data-theme="dark"] :is(h1,h2,h3,h4,h5,h6,.give-page .give-qr-lead){color:#e5e9ef}
html[data-theme="dark"] :is(a.button.success,button.button.success,input.button.success){background:#27683e;color:#fff;border-color:#27683e}
html[data-theme="dark"] :is(a.button.success,button.button.success,input.button.success):hover{background:#307b4b;color:#fff}
html[data-theme="dark"] :is(a.button.secondary,button.button.secondary,input.button.secondary){background:#465159;color:#fff;border-color:#59616d}
html[data-theme="dark"] :is(a.button.secondary,button.button.secondary,input.button.secondary):hover{background:#596773;color:#fff}
html[data-theme="dark"] :is(a.button.alert,button.button.alert,input.button.alert){background:#a73d3d;color:#fff;border-color:#a73d3d}
html[data-theme="dark"] :is(a.button.alert,button.button.alert,input.button.alert):hover{background:#bd4646;color:#fff}
html[data-theme="dark"] :is(a.button.warning,button.button.warning,input.button.warning){background:#e0a548;color:#17191c;border-color:#e0a548}
html[data-theme="dark"] :is(a.button.warning,button.button.warning,input.button.warning):hover{background:#f0b558;color:#17191c}
html[data-theme="dark"] :is(input[type=submit].button,input[type=button].button){background:#245fa8;color:#fff;border-color:#245fa8}
html[data-theme="dark"] .give-page .give-qr-pay{background:#245fa8;color:#fff}
html[data-theme="dark"] .give-page .give-qr-pay:hover{background:#1c4e8c;color:#fff}
html[data-theme="dark"] .give-page .give-qr-provider{color:#adb5bf}
html[data-theme="dark"] font[color="#5f0000" i]{color:#ffb4ab}
html[data-theme="dark"] a.more{background:#b74b00;color:#fff}
html[data-theme="dark"] a.more:hover{background:#9f4000;color:#fff}
/* The QR image retains its white background for reliable scanning. */
html[data-theme="dark"] .give-page .give-qr-image img{background:#fff}
html[data-theme="dark"] :is([style*="color:#666" i],[style*="color: #666" i],font[color="#666" i],font[color="#666666" i]){color:#adb5bf!important}
html[data-theme="dark"] :is([style*="color:#000" i],[style*="color: #000" i],[style*="color:black" i],[style*="color: black" i],font[color="black" i],font[color="#000000" i]){color:#e5e9ef!important}
html[data-theme="dark"] :is([style*="color:green" i],[style*="color: green" i],font[color="green" i]){color:#a3cea8!important}
html[data-theme="dark"] :is([style*="color:blue" i],[style*="color: blue" i],font[color="blue" i],a.fancy:link,a.fancy:visited){color:#82b7ff!important}
html[data-theme="dark"] :is([style*="color:red" i],[style*="color: red" i],[style*="color:#ff0000" i],[style*="color: #ff0000" i],font[color="red" i]){color:#ffb4ab!important}
html[data-theme="dark"] :is([bgcolor="#ffffff" i],[bgcolor="white" i],[bgcolor="FFFFFF" i],[bgcolor="FFFFFC" i],[bgcolor="EEEEEE" i]){background:#23272d}
html[data-theme="dark"] .theme-switch-footer{background:#17191c;color:#d9dde3}
html[data-theme="dark"] :is(.local-search-input,.search-more-button){background:#23272d;color:#e5e9ef;border-color:#59616d}
html[data-theme="dark"] .local-search-button{background:#245fa8;color:#fff;border-color:#245fa8}
html[data-theme="dark"] :is(.local-search-status,.search-result-list p){color:#adb5bf}
html[data-theme="dark"]{--bg:#17191c;--card:#23272d;--text:#e5e9ef;--muted:#adb5bf;--line:#444b55;--accent:#82b7ff;--ok:#a3cea8;--no:#ffb4ab;--mark:#514421}
html[data-theme="light"]{--bg:#f7f7f5;--card:#fff;--text:#1d1d1b;--muted:#6b6b66;--line:#e3e3de;--accent:#1e6fd9;--ok:#1f8a4c;--no:#b3261e;--mark:#fff3b0}
}
@media print{.theme-switch-footer{display:none!important}}
/* Audit: stronger selectors for the standalone audio Bible and old article players. */
@media screen{
html[data-theme="dark"] .audio-bible-page #player{background:#1c1f23;border-color:#444b55}
html[data-theme="dark"] #player .picker label{color:#c3c9d1}
html[data-theme="dark"] #player .picker select{background:#23272d;color:#e5e9ef;border-color:#59616d}
html[data-theme="dark"] #player .speed option{background:#23272d;color:#e5e9ef}
html[data-theme="dark"] #player #listHeading{color:#e5e9ef}
html[data-theme="dark"] #player .track{background:#23272d;color:#e5e9ef;border-color:#59616d}
html[data-theme="dark"] #player .track small{color:#adb5bf}
html[data-theme="dark"] #player .track:hover{background:#343d48;color:#fff;border-color:#82b7ff}
html[data-theme="dark"] #player .track.active{background:#465159;color:#fff;border-color:#a3b5c4}
html[data-theme="dark"] #player .track.active:hover{background:#52616b;color:#fff}
html[data-theme="dark"] #player .track.active small{color:#e0e5eb}
html[data-theme="dark"] #player .ab-chapters{border-color:#444b55}
html[data-theme="dark"] #player .player-card audio{background:#23272d;color-scheme:dark}
html[data-theme="dark"] .audio-sidebar .book-links .seo-book[type="button"],
html[data-theme="dark"] .read-links a{background:#2b3037;color:#e5e9ef;border-color:#59616d}
html[data-theme="dark"] .audio-sidebar .book-links .seo-book[type="button"]:hover,
html[data-theme="dark"] .read-links a:hover{background:#3b4552;color:#fff;border-color:#82b7ff}
html[data-theme="dark"] .audio-sidebar p{color:#adb5bf}
html[data-theme="dark"] .ab-panel-heading{color:#ffc17f}
html[data-theme="dark"] .bs-clear{color:#c3c9d1}
html[data-theme="dark"] .bs-clear:hover{background:#343d48;color:#fff}
html[data-theme="dark"] .jp-interface{background:#23272d;color:#d9dde3;border-color:#59616d}
html[data-theme="dark"] .jp-interface :is(a.jp-play,a.jp-pause,a.jp-mute,a.jp-unmute,a.jp-loop-on,a.jp-loop-off,a.jp-list-on,a.jp-list-off,a.jp-shuffle-on,a.jp-shuffle-off,a.jp-info){background-color:#d9dde3;border-radius:4px}
}

/* Follow-up: FAQ, testimony forms, article audio playlists and bottom navigation. */
@media screen{
html[data-theme="dark"] .faq .hide+label{color:#c3c9d1}
html[data-theme="dark"] .faq .hide:checked+label{color:#fff}
html[data-theme="dark"] .faq .hide:checked+label+div{background:#23272d;color:#d9dde3;border-left:3px solid #59616d}
html[data-theme="dark"] .tf-form{background:#23272d;color:#d9dde3;border-color:#444b55}
html[data-theme="dark"] .tf-form textarea,
html[data-theme="dark"] .tf-form .tf-cap input{background:#1c1f23;color:#eef0f3;border-color:#59616d}
html[data-theme="dark"] .tf-form textarea::placeholder{color:#adb5bf;opacity:1}
html[data-theme="dark"] .tf-form textarea:focus,
html[data-theme="dark"] .tf-form .tf-cap input:focus{background:#1c1f23;color:#eef0f3;border-color:#ff994f;box-shadow:0 0 0 3px rgba(255,153,79,.18)}
html[data-theme="dark"] .tf-form .tf-cap{color:#d9dde3}
html[data-theme="dark"] .tf-form .tf-send{background:#b74b00;color:#fff}
html[data-theme="dark"] .tf-form .tf-send:hover{background:#9f4000;color:#fff}
html[data-theme="dark"] .tf-form .tf-msg{color:#ffb4ab}
html[data-theme="dark"] .tf-form .tf-ok{color:#a3cea8}
html[data-theme="dark"] .tf-form .tf-ok button{background:#2b3037;color:#82b7ff;border-color:#59616d}
html[data-theme="dark"] .player-button{background:#465159;color:#fff;border-radius:10px;padding:10px 12px;box-sizing:border-box}
html[data-theme="dark"] .player-button button{background:#59646d;color:#fff;border-color:#69747d;min-height:40px}
html[data-theme="dark"] .player-button button:hover,
html[data-theme="dark"] .player-button button:active{background:#6b7781;color:#fff;border-color:#87929a}
html[data-theme="dark"] .player-button .button-play{background:#d9e1e7;color:#17191c;border-color:#d9e1e7}
html[data-theme="dark"] .player-button .button-play:hover{background:#edf1f4;color:#17191c;border-color:#edf1f4}
html[data-theme="dark"] .current-video-title{color:#e5e9ef}
html[data-theme="dark"] .headline-title{color:#adb5bf}
html[data-theme="dark"] .tabcontent{background:#1c1f23;border-color:#444b55;color:#d9dde3;scrollbar-color:#59616d #1c1f23}
html[data-theme="dark"] .tabcontent .video-playlist__item-text{color:#d9dde3}
html[data-theme="dark"] .tabcontent .video-playlist__header,
html[data-theme="dark"] .tabcontent .video-playlist__header-text{color:#eef0f3}
html[data-theme="dark"] .tabcontent .video-playlist__item:hover{background:#303740}
html[data-theme="dark"] .tabcontent .video-playlist__item-selected{background:#465159;border-radius:6px;box-shadow:inset 3px 0 #cbdfe9;color:#fff}
html[data-theme="dark"] .tabcontent .video-playlist__item-selected:hover{background:#52616b}
html[data-theme="dark"] .tabcontent .video-playlist__item-selected .video-playlist__item-text{color:#fff}
html[data-theme="dark"] audio#video-block{color-scheme:dark;background:#23272d}
html[data-theme] .nav-footer .nf-link a:hover,
html[data-theme] .nav-footer .nf-link a:focus-visible{color:#fff;background:#b74b00;border-color:#b74b00}
}

/* Tanakh interlinear: Russian glosses use the legacy class eng. */
@media screen{
html[data-theme="dark"] .content .eng,
html[data-theme="dark"] .content .eng i{color:#e5e9ef}
}

/* Bible/category navigation: distinct active pill and readable hover states. */
@media screen{
html[data-theme="dark"] .navigator .nav-links .nav-text>a{color:#d9dde3;background:transparent;border:0;border-radius:999px;text-decoration:none}
html[data-theme="dark"] .navigator .nav-links .nav-text>a:hover,
html[data-theme="dark"] .navigator .nav-links .nav-text>a:focus-visible{color:#fff;background:#343d48;border:0;text-decoration:none}
html[data-theme="dark"] .navigator .nav-links .nav-text.active>a{color:#fff;background:#465f73;border:0;box-shadow:inset 0 0 0 1px #879bae}
html[data-theme="dark"] .navigator .nav-links .nav-text.active>a:hover,
html[data-theme="dark"] .navigator .nav-links .nav-text.active>a:focus-visible{color:#fff;background:#526f86;border:0}
html[data-theme="dark"] .navigator .nav-links .nav-text>a:focus-visible{outline:3px solid #ff994f;outline-offset:2px}
}
