/* BibleSlide central interface theme (Light / Dark / System). Loaded once per page; every section maps ITS tokens to these.
   Applies to the working interface only: slides (.bs-slide, --slide-*), projector, remote and user presentation themes never use --bst-*. */
:root {
  --bst-bg: #f8fafc; --bst-surface: #ffffff; --bst-surface-2: #f1f5f9; --bst-border: #e2e8f0; --bst-border-strong: #cbd5e1;
  --bst-hover: #eff6ff; --bst-text: #0b2454; --bst-muted: #475569; --bst-primary: #0649b8; --bst-primary-ink: #ffffff;
  --bst-link: #0649b8; --bst-danger: #b91c1c; --bst-success: #15803d; --bst-gold: #e5a51b; --bst-topbar: rgba(255, 255, 255, .94);
  --bst-overlay: rgba(11, 36, 84, .55); --bst-shadow: rgba(11, 36, 84, .18);
  color-scheme: light;
}
/* Dark palette: same navy / gold / blue identity as the projection screens, softened for long sessions in dim sanctuaries.
   Text 16:1, muted 8.7:1, links 8.7:1, white on primary button 4.9:1 (all >= WCAG AA). */
:root[data-bs-theme="dark"] {
  --bst-bg: #0a1530; --bst-surface: #10214a; --bst-surface-2: #162b5c; --bst-border: #2a4378; --bst-border-strong: #3d5a98;
  --bst-hover: #1b3470; --bst-text: #eef1fa; --bst-muted: #a9b4d0; --bst-primary: #2f6bdc; --bst-primary-ink: #ffffff;
  --bst-link: #8fb4ff; --bst-danger: #ff8a8a; --bst-success: #4ade80; --bst-gold: #e5a51b; --bst-topbar: rgba(10, 21, 48, .94);
  --bst-overlay: rgba(2, 6, 18, .72); --bst-shadow: rgba(0, 0, 0, .55);
  color-scheme: dark;
}

/* Theme switch (built by BibleSlideTheme.mount): three radio buttons, usable in any section. */
.bs-theme-switch { display: grid; gap: 4px; padding: 6px 8px 8px; min-width: 236px; }
.bs-theme-switch-label { font-size: 12px; font-weight: 600; opacity: .75; padding: 2px 2px 4px; }
.bs-theme-switch-row { display: inline-flex; gap: 4px; padding: 3px; border-radius: 10px; border: 1px solid var(--bst-border); background: var(--bst-surface-2); }
.bs-theme-switch button { flex: 1 1 0; min-width: 0; min-height: 34px; padding: 4px 6px; border: 0; border-radius: 8px; background: transparent; color: var(--bst-text); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 5px; white-space: nowrap; overflow-wrap: normal; }
.bs-theme-switch button:hover { background: var(--bst-hover); }
.bs-theme-switch button[aria-checked="true"] { background: var(--bst-primary); color: var(--bst-primary-ink); }
.bs-theme-switch button:focus-visible { outline: 2px solid var(--bst-gold); outline-offset: 1px; }
.bs-theme-half { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid currentColor; background: linear-gradient(90deg, currentColor 50%, transparent 50%); display: inline-block; }
/* Compact switch: three icon buttons in a corner (sign-in, register, verify screens). */
.bs-theme-corner { position: fixed; top: 14px; right: 14px; z-index: 50; }
.bs-theme-switch.is-compact { padding: 0; min-width: 0; }
.bs-theme-switch.is-compact .bs-theme-switch-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.bs-theme-switch.is-compact .bs-theme-switch-row { box-shadow: 0 6px 18px -10px var(--bst-shadow); background: var(--bst-surface); }
.bs-theme-switch.is-compact button { flex: 0 0 auto; width: 36px; min-width: 36px; padding: 0; font-size: 15px; }
