/* Public semantic tokens. Approved image and PDF pixels are never filtered or recolored. */
:root{
 color-scheme:light;
 --appearance-bg:#fffdfa;--appearance-surface:#ffffff;--appearance-raised:#f0f5f4;
 --appearance-ink:#173341;--appearance-muted:#64737a;--appearance-line:#768b96;
 --appearance-accent:#17688b;--appearance-button:#17688b;--appearance-on-button:#ffffff;
 --appearance-focus:#a44e12;--appearance-success:#267657;--appearance-warm:#fff4df;
}
:root[data-theme=dark]{
 color-scheme:dark;
 --appearance-bg:#0e1922;--appearance-surface:#152631;--appearance-raised:#203744;
 --appearance-ink:#e8eef2;--appearance-muted:#afbec8;--appearance-line:#718795;
 --appearance-accent:#8dd1f2;--appearance-button:#17688b;--appearance-on-button:#ffffff;
 --appearance-focus:#ffbd7a;--appearance-success:#8bd5b4;--appearance-warm:#3a3124;
 --paper:var(--appearance-bg);--mist:var(--appearance-surface);--ink:var(--appearance-ink);
 --muted:var(--appearance-muted);--line:#405765;
 background:var(--appearance-bg);color:var(--appearance-ink);
}
.public-appearance-control{display:inline-flex;align-items:center;flex-wrap:wrap;gap:8px;max-width:100%;font-size:12px;line-height:1.4;color:var(--appearance-ink);font-weight:650;letter-spacing:0;margin:0}
.public-appearance-control select{font:inherit;min-height:44px;min-width:94px;max-width:100%;border:1px solid var(--appearance-line);border-radius:6px;padding:8px 26px 8px 10px;background:var(--appearance-surface);color:var(--appearance-ink);cursor:pointer}
.public-appearance-control [data-appearance-status]:not(:empty){display:block;flex-basis:100%;font-size:11px;max-width:220px}
.public-appearance-control select:focus-visible{outline:3px solid var(--appearance-focus);outline-offset:3px}
.header #primary-navigation:has(.public-appearance-control){gap:14px}
#watch .podcast-player{color:var(--ink)}
#watch .podcast-player #playing-link{color:var(--appearance-accent)}
html[data-theme=dark] body{background:var(--appearance-bg);color:var(--appearance-ink)}
html[data-theme=dark] .header{background:#0e1922f7;border-color:var(--line)}
html[data-theme=dark] .header #primary-navigation{background:var(--appearance-bg)}
html[data-theme=dark] .header #primary-navigation>a,html[data-theme=dark] .share-nav{color:var(--appearance-ink);border-color:var(--line)}
html[data-theme=dark] .brand,html[data-theme=dark] .brand em,html[data-theme=dark] .page-title,
html[data-theme=dark] .eyebrow,html[data-theme=dark] .kicker,
html[data-theme=dark] .path-link,html[data-theme=dark] .text-link,
html[data-theme=dark] .episode-open,html[data-theme=dark] .episode-fallback a{color:var(--appearance-accent)}
html[data-theme=dark] .soft,html[data-theme=dark] .questions-section{background:var(--appearance-surface)}
html[data-theme=dark] .path-card,html[data-theme=dark] .media-card,
html[data-theme=dark] .schedule-panel,html[data-theme=dark] .resource-list,
html[data-theme=dark] .episode-library,html[data-theme=dark] .platform-strip,
html[data-theme=dark] .registration-card,html[data-theme=dark] .notice,
html[data-theme=dark] .notification-options,html[data-theme=dark] .app-guide,
html[data-theme=dark] #watch .episode-card,html[data-theme=dark] #watch .podcast-player,
html[data-theme=dark] #watch .morsels-playlist{background:var(--appearance-surface);border-color:var(--line);color:var(--appearance-ink)}
html[data-theme=dark] .episode-card,html[data-theme=dark] .private-note,
html[data-theme=dark] .date-box,html[data-theme=dark] .icon-bubble,
html[data-theme=dark] .soon{background:var(--appearance-raised);color:var(--appearance-ink);border-color:var(--line)}
html[data-theme=dark] .pill{background:var(--appearance-raised);color:var(--appearance-accent)}
html[data-theme=dark] .secondary-button,html[data-theme=dark] .secondary-link{background:var(--appearance-raised);color:var(--appearance-ink);border-color:var(--appearance-line)}
html[data-theme=dark] .media-link:not(.secondary-link),html[data-theme=dark] .episode-more,
html[data-theme=dark] .platform-links a{background:var(--appearance-button);color:var(--appearance-on-button)}
html[data-theme=dark] #watch .featured-copy .media-link{background:#fff;color:#10384b;border-color:#fff}
html[data-theme=dark] #watch .featured-copy .secondary-link{background:transparent;color:#fff}
html[data-theme=dark] .featured-copy .eyebrow{color:#f6c48f}
html[data-theme=dark] .bottom-navigation{background:var(--appearance-bg);border-color:var(--line)}
html[data-theme=dark] .bottom-navigation a{color:var(--appearance-muted);border-color:transparent}
html[data-theme=dark] .bottom-navigation a[aria-current=page]{background:var(--appearance-raised);color:var(--appearance-accent)}
html[data-theme=dark] #question-form input,html[data-theme=dark] #question-form textarea,
html[data-theme=dark] #share-app-dialog input,html[data-theme=dark] .episode-tools input,
html[data-theme=dark] .episode-tools select,html[data-theme=dark] .registration-card input:not([type=checkbox]),
html[data-theme=dark] #resources input,html[data-theme=dark] #resources select{background:var(--appearance-bg);color:var(--appearance-ink);border-color:var(--appearance-line)}
html[data-theme=dark] input::placeholder,html[data-theme=dark] textarea::placeholder{color:var(--appearance-muted);opacity:1}
html[data-theme=dark] #question-dialog,html[data-theme=dark] #share-app-dialog{background:var(--appearance-surface);color:var(--appearance-ink)}
html[data-theme=dark] .question-close{color:var(--appearance-ink)}
html[data-theme=dark] dialog[aria-label="Devotional reader"]{background:var(--appearance-bg)!important}
html[data-theme=dark] dialog[aria-label="Devotional reader"]>div{background:var(--appearance-surface)!important}
html[data-theme=dark] dialog[aria-label="Devotional reader"]>div>button{background:var(--appearance-raised)!important;color:var(--appearance-ink)!important;border-color:var(--appearance-line)!important}
html[data-theme=dark] .skip{background:var(--appearance-surface);color:var(--appearance-ink)}
html[data-theme=dark] :is(a,button,input,select,textarea,summary,audio,video):focus-visible{outline-color:var(--appearance-focus)}
/* The resource library's local palette now follows the shared semantic tokens. */
html[data-theme] body.library-page,html[data-theme] .devotional-library{background:var(--appearance-bg);color:var(--appearance-ink)}
html[data-theme] .devotional-library{--navy:var(--appearance-bg);--panel:var(--appearance-surface);--panel2:var(--appearance-raised);--line:var(--appearance-line);--blue:var(--appearance-accent);--cream:var(--appearance-ink);--muted:var(--appearance-muted);--green:var(--appearance-success)}
html[data-theme] .devotional-library :is(a,.eyebrow,.breadcrumb button){color:var(--appearance-accent)}
html[data-theme] .devotional-library .card{background:var(--appearance-surface)}
html[data-theme] .devotional-library :is(.journey-banner,.day,.callout,.pill){background:var(--appearance-raised);color:var(--appearance-ink);border-color:var(--appearance-line)}
html[data-theme] .devotional-library .search{background:var(--appearance-surface);color:var(--appearance-ink);border-color:var(--appearance-line)}
html[data-theme] .devotional-library :is(.primary,.library-button.primary,.filter button.active,.nav button.active){background:var(--appearance-button);color:var(--appearance-on-button);border-color:var(--appearance-button)}
html[data-theme] .devotional-library :is(button,.library-button):hover{background:var(--appearance-raised);color:var(--appearance-ink);border-color:var(--appearance-accent)}
html[data-theme] .devotional-library :is(.banner,#study-storage-warning){background:var(--appearance-warm);color:var(--appearance-ink);border-color:var(--appearance-line)}
html[data-theme] .devotional-library :is(.paper,.pdf-text){background:var(--appearance-surface);color:var(--appearance-ink)}
html[data-theme] .devotional-library canvas{background:#fff}
/* Devotional document artwork and PDF pages remain on their original white paper. */
html[data-theme] body[data-public-reader]{background:var(--appearance-bg);color:var(--appearance-ink)}
html[data-theme] [data-public-reader] header,html[data-theme] [data-public-reader] details{background:var(--appearance-surface);border-color:var(--appearance-line)}
html[data-theme] [data-public-reader] :is(button.secondary,a.secondary){background:var(--appearance-surface);color:var(--appearance-accent);border-color:var(--appearance-line)}
html[data-theme] [data-public-reader] #paper{background:#fff}
html[data-theme] [data-public-reader] nav{gap:8px}
html[data-theme] [data-public-reader] .public-appearance-control{margin-left:auto}
@media(max-width:1024px){.header #primary-navigation .public-appearance-control{padding:12px 4px;justify-content:space-between}.header #primary-navigation .public-appearance-control select{min-width:130px}.header #primary-navigation:has(.public-appearance-control){gap:0}}
@media(max-width:600px){[data-public-reader] .public-appearance-control{flex-basis:100%;justify-content:space-between;margin-left:0}}
@media(prefers-reduced-motion:reduce){.public-appearance-control *{transition:none!important}}
html[data-theme=dark] .hero,html[data-theme=dark] .connect{background:#10384b}
/* Readable contact link on the retained blue light-mode section. */
.connect .muted-light a{color:#fff}
/* Small contrast correction on the existing cream/mist light surfaces. */
:root[data-theme=light]{--muted:#5d6c73;--appearance-muted:#5d6c73}
/* Keep the library's section navigation separate from the shared mobile dropdown. */
html[data-theme] .devotional-library .nav{display:flex;position:static;flex-direction:row;align-items:center;background:transparent;box-shadow:none;padding:0;max-height:none;overflow:visible;border:0;gap:9px}
/* The legacy study renderer uses an inline light-paper eyebrow color. */
html[data-theme] .devotional-library .paper .eyebrow{color:var(--appearance-accent)!important}
