/* Redland Baptist | Winter-only blue & silver identity.
   Fully scoped to the resolved live season. When the season changes, every
   selector below stops matching automatically—no reset job or saved cookie. */
html[data-seasonal-theme="winter"] {
  --winter-navy: #182f4c;
  --winter-blue: #254b72;
  --winter-blue-light: #dbe7f2;
  --winter-silver: #c6d2df;
  --winter-ink: #1f3448;
  --primary-garnet: #24476c; /* Legacy variable used by site content. */
  --primary-garnet-dark: #182f4c;
  --accent-color: #b0c5d8;
  --accent-soft: rgba(175,198,219,.18);
  --site-cream: #f3f7fb;
  --site-ink: #243746;
  --site-muted: #516474;
  --site-border: #d4dfe9;
  --site-shadow: 0 14px 36px rgba(26,56,85,.085);
  background: #f3f7fb !important;
}
html[data-seasonal-theme="winter"] body.site-refreshed {
  background: #f3f7fb !important;
  color: #233749;
}
/* The navigation and hero are deep winter blue, with silver typography. */
html[data-seasonal-theme="winter"] body.site-refreshed .site-header {
  background: #152d49 !important;
  border-bottom-color: rgba(216,230,241,.25) !important;
  box-shadow: 0 4px 18px rgba(17,37,59,.19);
}
html[data-seasonal-theme="winter"] body.site-refreshed .main-nav .nav-links a[aria-current="page"] {color:#dcecf8;}
html[data-seasonal-theme="winter"] body.site-refreshed .main-nav .nav-links a.giving-btn {
  background: #e3eaf1 !important; color: #173753 !important;
}
html[data-seasonal-theme="winter"] body.site-refreshed .page-hero,
html[data-seasonal-theme="winter"] body.devotionals-page .devo-hero {
  background: linear-gradient(116deg, #142b46 0%, #285274 62%, #526f89 100%) !important;
  color: #fff;
  box-shadow: inset 0 -5px #b9cddd;
}
html[data-seasonal-theme="winter"] body.home-page .hero-reel-section {
  background: linear-gradient(120deg,#152d49,#335a7a) !important;
  box-shadow: inset 0 -5px #b9cddd;
}
html[data-seasonal-theme="winter"] body.home-page .hero-scrim-overlay {
  background: linear-gradient(92deg,rgba(13,33,56,.94),rgba(23,54,81,.88) 63%,rgba(32,72,107,.79)) !important;
}
html[data-seasonal-theme="winter"] .page-hero:before,
html[data-seasonal-theme="winter"] .devo-hero:before {
  background: radial-gradient(circle at 83% 22%,rgba(216,231,245,.18),transparent 32%),
              radial-gradient(circle at 0 100%,rgba(255,255,255,.12),transparent 34%) !important;
}
html[data-seasonal-theme="winter"] .page-hero-kicker,
html[data-seasonal-theme="winter"] .devo-hero-kicker {color: #e3edf6 !important;}
html[data-seasonal-theme="winter"] .page-hero-kicker:before,
html[data-seasonal-theme="winter"] .devo-hero-kicker:before,
html[data-seasonal-theme="winter"] .page-hero-divider {background: #b8cfdf !important;}
html[data-seasonal-theme="winter"] .page-hero-verse em,
html[data-seasonal-theme="winter"] .page-hero-spark,
html[data-seasonal-theme="winter"] .devo-hero h1 em,
html[data-seasonal-theme="winter"] body.home-page .hero-foreground-content h1 em,
html[data-seasonal-theme="winter"] .home-hero-book {color: #dce9f4 !important;}
html[data-seasonal-theme="winter"] .page-hero-copy > p,
html[data-seasonal-theme="winter"] .devo-hero-description,
html[data-seasonal-theme="winter"] body.home-page .hero-foreground-content p,
html[data-seasonal-theme="winter"] .devo-verse figcaption {color: #e2ebf4 !important;}
html[data-seasonal-theme="winter"] .page-hero-verse small,
html[data-seasonal-theme="winter"] .home-hero-verse figcaption {color: #d4e5f1 !important;}
html[data-seasonal-theme="winter"] .devo-verse svg {stroke: #c9dce9 !important;}
html[data-seasonal-theme="winter"] .page-hero-link,
html[data-seasonal-theme="winter"] .devo-hero-link,
html[data-seasonal-theme="winter"] body.home-page .action-pill.primary-pill {
  background: #e9f0f6 !important; color: #1b3c5a !important;
  border-color: #e9f0f6 !important;
}
html[data-seasonal-theme="winter"] .page-hero-link:hover,
html[data-seasonal-theme="winter"] .devo-hero-link:hover,
html[data-seasonal-theme="winter"] body.home-page .action-pill:hover {
  background: #fff !important; color: #1b3c5a !important;
}
html[data-seasonal-theme="winter"] body.home-page .action-pill:not(.primary-pill) {
  color: #fff !important; border-color: #c6d8e5 !important;
}
html[data-seasonal-theme="winter"] body.home-page .action-pill:not(.primary-pill):hover {color:#1b3c5a !important;}
/* Light silver borders and deep-blue readable content. */
html[data-seasonal-theme="winter"] body.site-refreshed .modern-card,
html[data-seasonal-theme="winter"] body.site-refreshed .staff-card,
html[data-seasonal-theme="winter"] body.site-refreshed .ministry-card,
html[data-seasonal-theme="winter"] body.site-refreshed .belief-card,
html[data-seasonal-theme="winter"] body.site-refreshed .giving-way-card,
html[data-seasonal-theme="winter"] body.site-refreshed .sermon-card,
html[data-seasonal-theme="winter"] body.site-refreshed .event-card {
  background: #fefeff !important; border-color: #d5e0eb !important;
}
html[data-seasonal-theme="winter"] body.site-refreshed .section-heading-modern,
html[data-seasonal-theme="winter"] body.site-refreshed .staff-name,
html[data-seasonal-theme="winter"] body.giving-page .giving-intro h2,
html[data-seasonal-theme="winter"] body.giving-page .giving-way-card h3,
html[data-seasonal-theme="winter"] body.beliefs-page .belief-article-name,
html[data-seasonal-theme="winter"] body.beliefs-page .beliefs-intro h2 {
  color: #214466 !important;
}
html[data-seasonal-theme="winter"] body.home-page .newsletter-section {background:#e7eff6 !important;}
html[data-seasonal-theme="winter"] body.home-page .newsletter-section button,
html[data-seasonal-theme="winter"] body.giving-page .giving-online-link,
html[data-seasonal-theme="winter"] body.beliefs-page #beliefsExpand,
html[data-seasonal-theme="winter"] body.devotionals-page .devo-retry,
html[data-seasonal-theme="winter"] body.devotionals-page .devo-reader-footer button {
  background: #244b70 !important; color: #fff !important;
}
html[data-seasonal-theme="winter"] body.giving-page .giving-eyebrow,
html[data-seasonal-theme="winter"] body.giving-page .giving-card-number,
html[data-seasonal-theme="winter"] body.giving-page .giving-phone-number,
html[data-seasonal-theme="winter"] body.giving-page .giving-way-card p strong,
html[data-seasonal-theme="winter"] body.giving-page .giving-card-footer,
html[data-seasonal-theme="winter"] body.beliefs-page .beliefs-eyebrow,
html[data-seasonal-theme="winter"] body.beliefs-page .belief-article-num,
html[data-seasonal-theme="winter"] body.beliefs-page .belief-refs strong {color: #315d81 !important;}
html[data-seasonal-theme="winter"] body.giving-page .giving-card-icon {background:#e7eff6 !important;color:#285478 !important;}
html[data-seasonal-theme="winter"] body.giving-page .giving-card-rule {background:#a7c3d8 !important;}
html[data-seasonal-theme="winter"] body.beliefs-page .belief-article[open] {border-color:#a4bdd2 !important;}
html[data-seasonal-theme="winter"] body.beliefs-page .belief-article-copy .belief-refs {background:#edf4f9 !important;border-left-color:#90adc5 !important;}
/* Reader retains comfortable white pages but picks up winter accents. */
html[data-seasonal-theme="winter"] body.devotionals-page {
  --devo-wine: #285176; --devo-wine-dark: #172f4c; --devo-gold: #b4c9d9;
  --devo-sand: #f3f7fb;
}
html[data-seasonal-theme="winter"] body.devotionals-page .devo-featured-title,
html[data-seasonal-theme="winter"] body.devotionals-page .devo-archive-card .devo-card-title,
html[data-seasonal-theme="winter"] body.devotionals-page .devo-modal h2 {color:#204566 !important;}
html[data-seasonal-theme="winter"] body.devotionals-page .devo-featured-art {background:linear-gradient(145deg,#f2f7fc,#dae6ef) !important;color:#6f90ac !important;}
html[data-seasonal-theme="winter"] body.devotionals-page .devo-featured-art span,
html[data-seasonal-theme="winter"] body.devotionals-page .devo-meta b,
html[data-seasonal-theme="winter"] body.devotionals-page .devo-eyebrow,
html[data-seasonal-theme="winter"] body.devotionals-page .devo-section-label,
html[data-seasonal-theme="winter"] body.devotionals-page .devo-featured-tag,
html[data-seasonal-theme="winter"] body.devotionals-page .devo-read-more {color:#335e80 !important;}
html[data-seasonal-theme="winter"] body.devotionals-page .devo-featured-tag:before,
html[data-seasonal-theme="winter"] body.devotionals-page .devo-modal-underline {background:#9db6cb !important;}
html[data-seasonal-theme="winter"] body.devotionals-page .devo-read-more .devo-arrow,
html[data-seasonal-theme="winter"] body.devotionals-page .devo-count {background:#e5eef6 !important;color:#315775 !important;}
html[data-seasonal-theme="winter"] body.devotionals-page .devo-reader-progress span {background:#4779a0 !important;}
html[data-seasonal-theme="winter"] body.devotionals-page .devo-scripture {background:#edf4f9 !important;border-left-color:#8cacc5 !important;}
html[data-seasonal-theme="winter"] body.devotionals-page .devo-scripture strong {color:#245476 !important;}
/* Navigation and footer follow the seasonal palette on phones and desktops. */
html[data-seasonal-theme="winter"] body.site-refreshed .site-footer {
  background: #e9eff5 !important; border-top-color: #c6d4e1 !important;
  color:#354f63 !important;
}
html[data-seasonal-theme="winter"] body.site-refreshed .site-footer .footer-org,
html[data-seasonal-theme="winter"] body.site-refreshed .site-footer a,
html[data-seasonal-theme="winter"] body.site-refreshed .site-footer p a {color:#245477 !important;}
html[data-seasonal-theme="winter"] body.site-refreshed .theme-toggle-btn {
  background:#f7fbff !important;border-color:#b4c8d8 !important;color:#254c6e !important;
}
html[data-seasonal-theme="winter"] body.site-refreshed .mobile-bottom-bar {background:#f2f7fb !important;border-top-color:#c9d8e6 !important;}
html[data-seasonal-theme="winter"] body.site-refreshed .mobile-tab.active,
html[data-seasonal-theme="winter"] body.site-refreshed .mobile-tab:hover {color:#25577e !important;}
@media(max-width:900px){
  html[data-seasonal-theme="winter"] body.site-refreshed .main-nav .nav-links.active {background:#1b3958 !important;}
  html[data-seasonal-theme="winter"] body.site-refreshed .menu-toggle span {background:#e9f2fa !important;}
}
@media(prefers-reduced-motion:reduce){
  html[data-seasonal-theme="winter"] .seasonal-overlay {animation:none !important;}
}

/* CHRISTMAS-SEASON NATIVITY — Nov 27 through Jan 6, Eastern time.
   The rest of winter keeps blue/silver and snowflakes but no Nativity.
   Purely decorative art is always beneath text and cannot intercept taps. */
html[data-seasonal-theme="winter"][data-winter-nativity="on"] body.site-refreshed .page-hero::after,
html[data-seasonal-theme="winter"][data-winter-nativity="on"] body.devotionals-page .devo-hero::after {
  content: "" !important;
  position: absolute !important;
  background: url("images/winter-nativity-refined.png") center bottom / contain no-repeat !important;
  width: min(570px, 54vw) !important;
  height: 90% !important;
  min-height: 230px !important;
  right: -15px !important;
  bottom: -4px !important;
  top: auto !important;
  left: auto !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  opacity: .78 !important;
  z-index: 0 !important;
  pointer-events: none !important;
}
/* Keep actual copy, buttons and Scripture legible over the background. */
html[data-winter-nativity="on"] .page-hero-inner,
html[data-winter-nativity="on"] .devo-hero-inner {
  position: relative;
  z-index: 1;
}
html[data-seasonal-theme="winter"][data-winter-nativity="on"] body.home-page .hero-reel-section::after {
  content: "";
  position: absolute;
  width: min(600px, 55vw);
  height: 100%;
  right: -18px;
  bottom: -5px;
  z-index: 2; /* Between the dark photo scrim and the actual hero content. */
  background: url("images/winter-nativity-refined.png") center bottom / contain no-repeat;
  opacity: .78;
  pointer-events: none;
}
@media (max-width: 900px) {
  html[data-seasonal-theme="winter"][data-winter-nativity="on"] body.site-refreshed .page-hero::after,
  html[data-seasonal-theme="winter"][data-winter-nativity="on"] body.devotionals-page .devo-hero::after {
    width: min(410px, 80vw) !important;
    height: 65% !important;
    right: -55px !important;
    opacity: .23 !important;
  }
  html[data-seasonal-theme="winter"][data-winter-nativity="on"] body.home-page .hero-reel-section::after {
    width: min(420px, 80vw);
    height: 73%;
    right: -58px;
    opacity: .24;
  }
}

/* Refined translucent silver Nativity art cropped from the approved image.
   The source banner's caption is deliberately omitted from hero overlays to
   avoid duplicate text; the complete banner lives in images/ for reuse. */
html[data-seasonal-theme="winter"][data-winter-nativity="on"] body.site-refreshed .page-hero,
html[data-seasonal-theme="winter"][data-winter-nativity="on"] body.devotionals-page .devo-hero { isolation: isolate; overflow: hidden; }
@media (max-width: 620px) {
  html[data-seasonal-theme="winter"][data-winter-nativity="on"] body.site-refreshed .page-hero::after,
  html[data-seasonal-theme="winter"][data-winter-nativity="on"] body.devotionals-page .devo-hero::after {
    width: 88vw !important;
    right: -36vw !important;
    bottom: -8px !important;
    opacity: .17 !important;
  }
  html[data-seasonal-theme="winter"][data-winter-nativity="on"] body.home-page .hero-reel-section::after {
    width: 83vw; right: -30vw; opacity: .17;
  }
}
