/* Explicit foreground/surface pairs for shared and page-specific controls. */
.faith-home-page .hero-actions a,.faith-home-page .hero-actions a *{text-shadow:none!important}
html[data-theme=light] body.faith-home-page #siteLanguage{background:#f0f1f4!important;color:#202634!important;border-color:#8994aa;color-scheme:light}
html[data-theme=light] body :is(select,input,textarea){color-scheme:light}
html[data-theme=light] body select option{background:#f0f1f4;color:#202634}
html[data-theme=light] body :is(input,textarea)::placeholder{color:#5c687a;opacity:1}
html[data-theme=light] body.faith-home-page .eyebrow{color:#65430a}
html[data-theme=light] body.faith-home-page .home-leaderboard :is(p,label,li){color:#354156}
html[data-theme=light] body.faith-home-page .home-leaderboard a{color:#56349b}
html[data-theme=light] body .quiz-main :is(.quiz-panel,.sermon-card,#sermonOutline,.disciple-study,.sermon-slide-notice,.room-invite,.room-result){background:#f0f1f4;color:#202634;border-color:#c6cddd;box-shadow:0 6px 24px #2634540a}
html[data-theme=light] body .quiz-main :is(h1,h2,h3,h4,.question-text,.room-player strong){color:#202634}
html[data-theme=light] body .quiz-main :is(.muted,.quiz-heading p:not(.quiz-kicker),.sermon-hero>p,.sermon-card p,.sermon-search,.sermon-disclaimer,.sermon-pacing,.disciple-study p,.quiz-panel label,.leader-row small,.quiz-history-item small,.room-player small,.notice-row small){color:#4b586e}
html[data-theme=light] body .quiz-main :is(a,.sermon-refs,.sermon-toc a,.room-clock),html[data-theme=light] body #sermonOutline .sermon-refs{color:#59339d}
html[data-theme=light] body .quiz-main :is(.quiz-kicker,.sermon-icon){color:#805611}
html[data-theme=light] body .quiz-main :is(.quiz-primary,a.quiz-primary){background:#6444b4!important;color:#f0f1f4!important;border-color:#56369f}
html[data-theme=light] body .quiz-main .answer-grid button{background:#f3f5fa;color:#202634;border-color:#98a5ba}
html[data-theme=light] body .quiz-main .answer-grid button.selected{background:#e9dfff;border-color:#6444b4;color:#36215f}
html[data-theme=light] body #answerFeedback{background:#e4f5ea;color:#174c31;border-color:#54886b}
html[data-theme=light] body #answerFeedback.wrong{background:#fff0f0;color:#7d252c;border-color:#bd646c}
html[data-theme=light] body .quiz-status{color:#855023}
html[data-theme=light] body .quiz-main :is(.sermon-toc,.sermon-section,.leader-row,.quiz-history-item,.room-player,.room-standings,.notice-row){border-color:#c6cddd}
html[data-theme=light] body #sermonOutline h3{color:#634516}
html[data-theme=light] body .leader-avatar{background:#e7dffa;color:#4b2d81}
html[data-theme=light] body #hymnsView .hymn-hero h2{color:#202634}
html[data-theme=light] body #hymnsView .hymn-hero .eyebrow{color:#59339d}
html[data-theme=light] body #hymnsView .hymn-list .hymn-item{background:#f5f6fb;color:#202634;border-color:#bac4d6}
html[data-theme=light] body #hymnsView .hymn-list .hymn-item[aria-pressed=true]{background:#eae1ff;color:#36215f;border-color:#7653b4}
html[data-theme=light] body #hymnsView .hymn-item small{color:#526076}
html[data-theme=light] body #hymnsView :is(.lyric-chord,.hymn-chord-sequence){color:#6340a5;opacity:1}
html[data-theme=light] body #hymnsView :is(.chord-source,.hymn-source-notice){color:#4b586e;opacity:1}
html[data-theme=light] body #readerView :is(.parallel-heads,.reader-source,.bible-disclaimer){color:#526076}
html[data-theme=light] body.portal-page :is(.post-head small,.post-time,.post-meta){color:#526076}
html[data-theme=light] body>footer{background:#f0f1f4!important;color:#4b586e;border-color:#ccd3e1}
html[data-theme=light] body>footer a{color:#56349b}
html[data-theme=light] body .site-menu-panel,html[data-theme=light] body .appearance-panel,html[data-theme=light] body dialog:not(.hymn-fullscreen-dialog){background:#f0f1f4;color:#202634;border-color:#bac4d6}
html[data-theme=light] body :is(.site-menu-panel,.appearance-panel,dialog) :is(label,p){color:#4b586e}
html[data-theme=light] body :is(.site-menu-panel,.appearance-panel) select{background:#f0f1f4!important;color:#202634!important}
/* Mobile app retains dark navigation: explicitly pair its labels with that surface. */
html[data-theme=light] body.aatmik-mobile-app>header.unified-header{color:#f4f3fc!important}
html[data-theme=light] body.aatmik-mobile-app>header .mobile-app-more a{color:#edf2ff!important}
html[data-theme=light] body.aatmik-mobile-app .hero-content>p:not(.eyebrow){color:#edf2ff!important}
html[data-theme=light] body.aatmik-mobile-app .hero-content h1{color:#f0f1f4}
html[data-theme=light] body.aatmik-mobile-app .hero-content h1 em{color:#d7b6ff}

html[data-theme=light] .quiz-panel,html[data-theme=light] .daily-panel,html[data-theme=light] .quiz-sound-panel{background:#edf0f4!important;color:#202a3a;border-color:#c0c8d4;box-shadow:0 8px 24px #23334a12}
html[data-theme=light] .quiz-panel .muted,html[data-theme=light] .quiz-panel .quiz-kicker{color:#4c596d}
.study-highlight{background:var(--study-color,#ffe694)!important;color:#182538!important;border-radius:2px}
.study-toolbar .study-color{background:var(--highlight-swatch)!important}
#studyHighlightStatus{font-size:14px;color:var(--muted,#aab5c8)}

html[data-theme=light] .quiz-sound-caption{color:#4c596d}

/* A subdued light palette on reading and Community surfaces, including app mode. */
html[data-theme=light]{--bg:#bec8d4;--panel:#d1d9e2;--ink:#202b3b;--text:#202b3b;--muted:#48566a;--line:#a5b1c2}
html[data-theme=light] body:not(.quiz-audience){background-color:#bec8d4!important;color:#202b3b}
html[data-theme=light] body.faith-background-page::before{background-image:linear-gradient(90deg,#b4c0d1ed,#b4c0d1cc),var(--home-faith-image)!important}
html[data-theme=light] body.faith-background-page :is(.portal-main,.quiz-main,.workspace>main){background:#bec8d4!important}
html[data-theme=light] body :is(.portal-card,.post-card,.reader-controls,.sermon-card,.quiz-panel,.daily-panel,.quiz-sound-panel,.community-composer,.community-welcome,.library,.right-panel,.study-panel,.appearance-panel){background:#d1d9e2!important;color:#202b3b;border-color:#a5b1c2!important;box-shadow:0 4px 16px #23334a10}
html[data-theme=light] body #readerText{background:#d1d9e2!important}
html[data-theme=light] body:not(.aatmik-mobile-app)>header{background:#c5cfdb!important;color:#202b3b}
html[data-theme=light] body:not(.aatmik-mobile-app) .site-navigation{background:transparent!important}
html[data-theme=light] body :is(.reader-controls,.bible-app-toolbar,.portal-card,.community-composer,.study-panel,.appearance-panel,.sermon-main,.quiz-main) :is(input,select,textarea){background:#dbe1e8!important;color:#202b3b;border-color:#a5b1c2!important}
html[data-theme=light] body #openComposer{background:#dbe1e8!important;color:#48566a!important}
html[data-theme=light] body #readerView .bible-tools-rail button{background:#d1d9e2!important;color:#202b3b}
html body.portal-page #readerView .reader-verse>sup{display:inline-block!important;visibility:visible!important;opacity:1!important;min-width:1.8em;margin-inline-end:.35em;font-size:.75em!important;font-weight:800;line-height:1.4;vertical-align:baseline;position:static;color:#c9b6ff}
html[data-theme=light] body.portal-page #readerView .reader-verse>sup{color:#4e3480!important}
html[data-theme=light] body.portal-page :is(.hymn-promo,.message-shortcut,.policy-footer){background:#d1d9e2!important;color:#342650!important;border-color:#a5b1c2!important}
html:not([data-theme=light]) body.portal-page :is(.hymn-promo,.message-shortcut){background:var(--panel,#162232)!important;color:var(--ink,#edf2ff)!important;border:1px solid var(--line,#46526a)}
html:not([data-theme=light]) body.portal-page .hymn-promo :is(strong,small){color:var(--ink,#edf2ff)!important}

/* Home and installed layouts share the same palette; no white flash or cards. */
html[data-theme=light] body.faith-home-page:not(.aatmik-mobile-app)::before{background-image:linear-gradient(90deg,#b4c0d1ed,#b4c0d1cc),var(--home-faith-image)!important}
html[data-theme=light] body.faith-home-page>header.unified-header{background:#c5cfdb!important;color:#202b3b!important}
html[data-theme=light] body.faith-home-page :is(.home-card,.home-panel,.home-leaderboard,.streak-card){background:#d1d9e2!important;color:#202b3b!important;border-color:#a5b1c2!important;backdrop-filter:none}
html[data-theme=light] body.faith-home-page .home-secondary,html[data-theme=light] body #hymnsView .hymn-list .hymn-item,html[data-theme=light] body>footer,html[data-theme=light] body .verse-context,html[data-theme=light] body dialog.bible-bottom-sheet{background:#d1d9e2!important;color:#202b3b!important}
html[data-theme=light] body .study-contextual{background:#d1d9e2!important;color:#202b3b}
html[data-theme=light] body:not(.aatmik-mobile-app)>header :is(button,summary,select),html[data-theme=light] body .study-toolbar button:not(.study-color){background:#dbe1e8!important;color:#202b3b!important;border-color:#a5b1c2}
/* Colored dark themes must reach the artwork, reading cards and navigation. */
html:is([data-theme=ocean],[data-theme=forest],[data-theme=plum]) body:is(.faith-home-page,.faith-background-page){background:var(--bg)!important;color:var(--ink)}
html:is([data-theme=ocean],[data-theme=forest],[data-theme=plum]) body::before{background-image:linear-gradient(90deg,color-mix(in srgb,var(--bg) 94%,transparent),color-mix(in srgb,var(--bg) 85%,transparent)),var(--home-faith-image)!important}
html:is([data-theme=ocean],[data-theme=forest],[data-theme=plum]) body :is(.portal-main,.quiz-main,.workspace>main){background:var(--bg)!important}
html:is([data-theme=ocean],[data-theme=forest],[data-theme=plum]) body :is(.portal-card,.post-card,.reader-controls,.quiz-panel,.sermon-card,.home-card,.home-panel,.home-leaderboard,.library,.right-panel),html:is([data-theme=ocean],[data-theme=forest],[data-theme=plum]) body>header.unified-header{background:var(--panel)!important;color:var(--ink)!important;border-color:var(--line)!important}
