/* Public site dark mode, phase 3a: home page + the shared header/footer on it.
   Driven by the central system of BibleSlide Core: <html data-bs-theme="dark">. Palette = the app's dark palette (navy / gold / blue).
   Light mode is untouched (nothing here applies without data-bs-theme="dark"). Logo, photos, screenshots and slide previews are never recoloured. */
html[data-bs-theme="dark"] { color-scheme: dark; }
html[data-bs-theme="dark"] .bsh {
  --bsh-bg: #0a1530;
  --bsh-ivory: #0e1d40;
  --bsh-ink: #eef1fa;
  --bsh-text: #cfd6ea;
  --bsh-muted: #a9b4d0;
  --bsh-line: #2a4378;
  --bsh-blue: #8fb4ff;
  --bsh-blue-2: #3f7aee;
  --bsh-blue-soft: rgba(143, 180, 255, .12);
  --bsh-gold-soft: #e7c26a;
  --bsh-shadow: 0 18px 50px -24px rgba(0, 0, 0, .75);
}
/* Buttons: blue fill with white text keeps contrast (4.9:1); the "blue" token is a light link colour in dark mode. */
html[data-bs-theme="dark"] .bsh-btn-primary, html[data-bs-theme="dark"] .bsh-addons .btn { background: #2f6bdc; box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .7); }
html[data-bs-theme="dark"] .bsh-btn-primary:hover, html[data-bs-theme="dark"] .bsh-addons .btn:hover { background: #3f7aee; }
html[data-bs-theme="dark"] .bsh-btn-outline { background: transparent; color: #8fb4ff !important; border-color: #8fb4ff; }
html[data-bs-theme="dark"] .bsh-btn-outline:hover { background: rgba(143, 180, 255, .14); }
html[data-bs-theme="dark"] .bsh-play circle { fill: #2f6bdc; }
html[data-bs-theme="dark"] .bsh .brand-mark { background: #2f6bdc; }
html[data-bs-theme="dark"] .bsh-skip { background: #2f6bdc; }
/* Header, menus, mobile panel */
html[data-bs-theme="dark"] .bsh-header { background: rgba(10, 21, 48, .92); }
html[data-bs-theme="dark"] .bsh-header.is-scrolled { box-shadow: 0 6px 24px -18px rgba(0, 0, 0, .9); }
html[data-bs-theme="dark"] .bsh-sub-menu, html[data-bs-theme="dark"] .bsh-lang-menu, html[data-bs-theme="dark"] .bsh-menu-btn { background: #10214a; border-color: var(--bsh-line); }
html[data-bs-theme="dark"] .bsh-menu-btn .bsh-bars, html[data-bs-theme="dark"] .bsh-menu-btn .bsh-bars::before, html[data-bs-theme="dark"] .bsh-menu-btn .bsh-bars::after { background-color: #eef1fa; }
@media (max-width: 980px) { html[data-bs-theme="dark"] .bsh-nav { background: #0a1530; box-shadow: 0 20px 30px -24px rgba(0, 0, 0, .9); } }
/* Sections with a white gradient or white surface */
html[data-bs-theme="dark"] .bsh-gallery { background: linear-gradient(180deg, var(--bsh-bg), var(--bsh-ivory) 30%, var(--bsh-ivory) 70%, var(--bsh-bg)); }
html[data-bs-theme="dark"] .bsh-hero { background: radial-gradient(60% 70% at 85% 30%, rgba(47, 107, 220, .18), transparent 70%), radial-gradient(40% 50% at 70% 80%, rgba(229, 165, 27, .08), transparent 70%); }
html[data-bs-theme="dark"] .bsh-remote { background: radial-gradient(50% 80% at 80% 50%, rgba(47, 107, 220, .14), transparent 70%); }
html[data-bs-theme="dark"] .bsh-price, html[data-bs-theme="dark"] .bsh-price.is-featured { background: #10214a; }
html[data-bs-theme="dark"] .bsh-faq-item, html[data-bs-theme="dark"] .bsh-faq-item:last-child { border-color: var(--bsh-line); }
html[data-bs-theme="dark"] .bsh-addons .eyebrow { color: #f2be45; }
html[data-bs-theme="dark"] .bsh-card:hover .bsh-card-img { box-shadow: 0 26px 50px -24px rgba(0, 0, 0, .8); }
html[data-bs-theme="dark"] .bsh-thumb { box-shadow: 0 4px 12px -8px rgba(0, 0, 0, .8); }
html[data-bs-theme="dark"] .bsh-thumb[aria-pressed="true"] { border-color: #8fb4ff; box-shadow: 0 0 0 3px rgba(143, 180, 255, .25); }
html[data-bs-theme="dark"] .bsh-lightbox-close { background: #eef1fa; color: #0b2454; }
/* Footer */
html[data-bs-theme="dark"] .bsh-footer-col a:hover, html[data-bs-theme="dark"] .bsh-legal a:hover { color: #8fb4ff; }
/* The logo is an official image on its own white tile: kept exactly as is. */
html[data-bs-theme="dark"] .bsh .brand-logo { background: #fff; }

/* Header: one-tap Light/Dark button (no room for three). Footer: the full Light / Dark / System switch. */
.bsh-theme { display: inline-flex; align-items: center; }
.bsh-theme-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--bsh-line); background: transparent; color: var(--bsh-ink); font-size: 18px; line-height: 1; cursor: pointer; }
.bsh-theme-btn:hover { background: var(--bsh-blue-soft); }
.bsh-theme-btn:focus-visible { outline: 2px solid var(--bsh-gold); outline-offset: 2px; }
.bsh-theme-foot .bs-theme-switch { padding: 0; min-width: 0; --bst-text: var(--bsh-ink); --bst-surface-2: transparent; --bst-border: var(--bsh-line); --bst-hover: var(--bsh-blue-soft); }
html:not([data-bs-theme="dark"]) .bsh-theme-foot .bs-theme-switch { --bst-primary: #0649b8; --bst-primary-ink: #fff; }
html[data-bs-theme="dark"] .bsh-theme-foot .bs-theme-switch { --bst-primary: #2f6bdc; --bst-primary-ink: #fff; }
.bsh-theme-foot .bs-theme-switch-label { font-size: 12px; }
@media (max-width: 980px) { .bsh-theme { margin: 4px 0; } }
/* Keep the header on one row with the extra button (the home header was already tight between 981 and 1280px). */
@media (min-width: 981px) and (max-width: 1280px) {
  .bsh-header-in:has(.bsh-theme) { gap: 10px; }
  .bsh-header:has(.bsh-theme) .bsh-links > li > a, .bsh-header:has(.bsh-theme) .bsh-sub-btn { padding: 0 7px; }
  .bsh-header:has(.bsh-theme) .bsh-actions { gap: 6px; }
}
