/* RiverSong Church Christmas Edition
   Seasonal decoration layer. Applied when html has class rsc-christmas.
   Does not change layout: no new sections, no added padding, no grid changes.
   Remove this file and the christmas.js include after the season. */

html.rsc-christmas {
  --rsc-xmas-candle: #f0d78a;
  --rsc-xmas-ivory: #f7eed8;
  --rsc-xmas-amber: #e8c36a;
  --rsc-xmas-glow: rgba(240, 215, 138, 0.55);
  --rsc-xmas-wire: rgba(240, 215, 138, 0.38);
  --rsc-xmas-star: #fff8e8;
  --rsc-xmas-vignette: rgba(232, 195, 106, 0.14);
}

@media (prefers-color-scheme: dark) {
  html.rsc-christmas {
    --rsc-xmas-candle: #f3de98;
    --rsc-xmas-ivory: #fff6e4;
    --rsc-xmas-amber: #f0cc72;
    --rsc-xmas-glow: rgba(243, 222, 152, 0.6);
    --rsc-xmas-wire: rgba(243, 222, 152, 0.42);
    --rsc-xmas-star: #fffaf0;
    --rsc-xmas-vignette: rgba(240, 215, 138, 0.12);
  }
}

/* ---- Accents on existing elements (color and shadow only) ---- */

html.rsc-christmas .site-header .header-bg {
  box-shadow: 0 1px 0 rgba(240, 215, 138, 0.28);
}

html.rsc-christmas .site-header.is-scrolled .header-bg,
html.rsc-christmas .site-header.is-solid .header-bg {
  box-shadow: 0 1px 0 rgba(240, 215, 138, 0.36);
}

/* Small star of Bethlehem by the logo. Only while Effects are on. Absolute, so the header size does not change. */
html.rsc-christmas .site-header .logo {
  position: relative;
}

html.rsc-christmas.rsc-xmas-fx .site-header .logo::after {
  content: "";
  position: absolute;
  top: -6px;
  right: -10px;
  width: 14px;
  height: 14px;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 50%, var(--rsc-xmas-ivory) 0 1.4px, transparent 1.8px),
    linear-gradient(var(--rsc-xmas-candle), var(--rsc-xmas-candle)) center / 2px 100% no-repeat,
    linear-gradient(90deg, var(--rsc-xmas-candle), var(--rsc-xmas-candle)) center / 100% 2px no-repeat,
    linear-gradient(45deg, transparent 46%, var(--rsc-xmas-candle) 46% 54%, transparent 54%),
    linear-gradient(-45deg, transparent 46%, var(--rsc-xmas-candle) 46% 54%, transparent 54%);
  filter: drop-shadow(0 0 3px var(--rsc-xmas-glow));
  opacity: 0.92;
}

html.rsc-christmas .btn-primary {
  box-shadow: 0 10px 24px rgba(0, 166, 226, 0.28), 0 0 0 1px rgba(240, 215, 138, 0.4);
}

html.rsc-christmas .btn-give {
  box-shadow: 0 0 0 1px rgba(240, 215, 138, 0.35);
}

html.rsc-christmas .sunday-kicker {
  text-shadow: 0 0 12px rgba(240, 215, 138, 0.35);
}

/* Olive branch in the existing Sunday card. Hidden when the Christmas Eve note is present so the new copy stays clear. */
html.rsc-christmas .sunday-card {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 90 90' fill='none' stroke='%23f0d78a' stroke-width='1.25' stroke-linecap='round' stroke-linejoin='round'><path d='M14 78 C30 62 40 48 78 16' opacity='.7'/><path d='M28 66 c-4-5-5-11-1-15 c4 5 6 11 1 15z' fill='%23f0d78a' fill-opacity='.16' opacity='.8'/><path d='M38 56 c-4-5-5-11-1-15 c4 5 6 11 1 15z' fill='%23f0d78a' fill-opacity='.16' opacity='.8'/><path d='M48 45 c-4-5-4-11 0-15 c4 5 5 11 0 15z' fill='%23f0d78a' fill-opacity='.16' opacity='.8'/><path d='M58 34 c-3-5-4-10 0-14 c4 5 5 10 0 14z' fill='%23f0d78a' fill-opacity='.16' opacity='.8'/><path d='M68 24 c-3-4-3-9 1-12 c3 4 4 9-1 12z' fill='%23f0d78a' fill-opacity='.16' opacity='.8'/><path d='M32 62 c5-3 11-3 15 1 c-5 3-11 4-15-1z' fill='%23f0d78a' fill-opacity='.16' opacity='.7'/><path d='M44 50 c5-3 11-3 15 1 c-5 3-11 4-15-1z' fill='%23f0d78a' fill-opacity='.16' opacity='.7'/><path d='M54 39 c5-3 10-2 14 1 c-5 3-10 4-14-1z' fill='%23f0d78a' fill-opacity='.16' opacity='.7'/><path d='M64 28 c4-3 9-2 12 1 c-4 3-9 4-12-1z' fill='%23f0d78a' fill-opacity='.16' opacity='.7'/></svg>");
  background-repeat: no-repeat;
  background-position: right 8px top 8px;
  background-size: 78px 78px;
}

html.rsc-christmas .sunday-card:has(.rsc-xmas-eve) {
  background-image: none;
}

/* Christmas Eve note: sits with the existing This Sunday card.
   From 480px up it shares the upper rows so the card height stays the same.
   On very narrow screens it stacks compactly above the buttons. */
.rsc-xmas-eve {
  margin: 0 0 16px;
  padding: 12px 0 0;
  border-top: 1px solid rgba(240, 215, 138, 0.5);
}

.rsc-xmas-eve-title,
.rsc-xmas-eve-date,
.rsc-xmas-eve-times {
  margin: 0;
  font-style: normal;
}

.rsc-xmas-eve-title {
  font-family: var(--font-sans, Inter, "Helvetica Neue", Helvetica, Arial, sans-serif);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: #f3de98;
  margin-bottom: 0.15rem;
}

.rsc-xmas-eve-date {
  font-family: var(--font-display, Sora, "Helvetica Neue", Helvetica, Arial, sans-serif);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: #ffffff;
  margin-bottom: 0.1rem;
}

.rsc-xmas-eve-times {
  font-family: var(--font-sans, Inter, "Helvetica Neue", Helvetica, Arial, sans-serif);
  font-size: 0.9rem;
  font-weight: 500;
  color: #f7eed8;
  line-height: 1.3;
}

/* Two-column from 390px so "THIS SUNDAY" and the date stay on one line.
   Below 390px the note stacks compactly above the buttons. */
@media (min-width: 390px) {
  html.rsc-christmas .sunday-card:has(.rsc-xmas-eve) {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.15fr);
    column-gap: 0.8rem;
    align-items: start;
  }
  html.rsc-christmas .sunday-card:has(.rsc-xmas-eve) .sunday-kicker { grid-column: 1; grid-row: 1; }
  html.rsc-christmas .sunday-card:has(.rsc-xmas-eve) .sunday-time { grid-column: 1; grid-row: 2; }
  html.rsc-christmas .sunday-card:has(.rsc-xmas-eve) .sunday-address { grid-column: 1 / -1; grid-row: 3; }
  html.rsc-christmas .sunday-card:has(.rsc-xmas-eve) .sunday-actions { grid-column: 1 / -1; grid-row: 4; }
  html.rsc-christmas .sunday-card:has(.rsc-xmas-eve) .rsc-xmas-eve {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: center;
    margin: 0;
    padding: 0 0 0 0.8rem;
    border-top: 0;
    border-left: 1px solid rgba(240, 215, 138, 0.5);
    min-width: 0;
  }
  .rsc-xmas-eve-title,
  .rsc-xmas-eve-date {
    white-space: nowrap;
  }
  /* Grid does not collapse vertical margins the way the original block layout did.
     Keep the same 10px gaps as the unthemed card. */
  html.rsc-christmas .sunday-card:has(.rsc-xmas-eve) .sunday-time { margin: 10px 0 0; }
  html.rsc-christmas .sunday-card:has(.rsc-xmas-eve) .sunday-address { margin-top: 10px; }
}

@media (min-width: 390px) and (max-width: 699px) {
  html.rsc-christmas .sunday-card:has(.rsc-xmas-eve) {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.25fr);
  }
  .rsc-xmas-eve-title { font-size: 0.8rem; margin-bottom: 0.12rem; }
  .rsc-xmas-eve-date { font-size: 0.84rem; }
  .rsc-xmas-eve-times { font-size: 0.76rem; line-height: 1.25; }
}

/* At 1024-1199 the hero is two columns, so the Sunday card is narrow again. */
@media (min-width: 1024px) and (max-width: 1199px) {
  .rsc-xmas-eve-title { font-size: 0.8rem; margin-bottom: 0.12rem; }
  .rsc-xmas-eve-date { font-size: 0.84rem; }
  .rsc-xmas-eve-times { font-size: 0.76rem; line-height: 1.25; }
}

@media (min-width: 1200px) {
  html.rsc-christmas .sunday-card:has(.rsc-xmas-eve) {
    column-gap: 1.1rem;
  }
  html.rsc-christmas .sunday-card:has(.rsc-xmas-eve) .rsc-xmas-eve {
    padding-left: 1rem;
  }
}

html.rsc-christmas .life svg path {
  filter: drop-shadow(0 0 4px rgba(240, 215, 138, 0.45));
}

html.rsc-christmas .site-footer {
  position: relative;
  isolation: isolate;
}

html.rsc-christmas .site-footer > * {
  position: relative;
  z-index: 1;
}

html.rsc-christmas .site-footer > .rsc-xmas-section,
html.rsc-christmas .site-footer > .rsc-xmas-sky {
  position: absolute;
  inset: 0;
  z-index: -1;
}

/* ---- Decorative layers (out of flow, never intercept clicks) ---- */

.rsc-xmas-lights,
.rsc-xmas-sky {
  pointer-events: none;
}

.rsc-xmas-lights {
  position: fixed;
  top: var(--header-h, 80px);
  left: 0;
  right: 0;
  height: 28px;
  z-index: 999;
  overflow: visible;
  transform: translateY(-2px);
}

body.nav-open .rsc-xmas-lights {
  opacity: 0;
}

.rsc-xmas-wire {
  display: block;
  width: 100%;
  height: 22px;
  overflow: visible;
}

.rsc-xmas-wire path {
  fill: none;
  stroke: var(--rsc-xmas-wire);
  stroke-width: 1.1;
  vector-effect: non-scaling-stroke;
}

.rsc-xmas-candles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 28px;
}

.rsc-xmas-candles b {
  position: absolute;
  top: 10px;
  width: 6px;
  height: 8px;
  margin-left: -3px;
  border-radius: 50% 50% 50% 50% / 42% 42% 58% 58%;
  background: radial-gradient(circle at 50% 40%, #fffaf0 0 30%, var(--c) 55%, var(--c) 100%);
  box-shadow: 0 0 6px 1px var(--c);
  opacity: 0.8;
}

html.rsc-xmas-fx .rsc-xmas-candles b {
  animation: rsc-xmas-candle 2.2s ease-in-out infinite alternate;
}

@keyframes rsc-xmas-candle {
  from { opacity: 0.5; box-shadow: 0 0 3px 0 var(--c); }
  to { opacity: 1; box-shadow: 0 0 8px 2px var(--c); }
}

.rsc-xmas-sky {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.hero > .rsc-xmas-sky,
.page-hero > .rsc-xmas-sky,
.dv-hero > .rsc-xmas-sky {
  z-index: 1;
}

.rsc-xmas-sky--footer {
  z-index: 0;
}

.rsc-xmas-star {
  position: absolute;
  border-radius: 50%;
  background: var(--rsc-xmas-star);
  opacity: var(--o, 0.7);
  box-shadow: 0 0 4px 1px rgba(255, 248, 232, 0.45);
}

html.rsc-xmas-fx .rsc-xmas-star {
  animation: rsc-xmas-twinkle 3.4s ease-in-out infinite alternate;
}

@keyframes rsc-xmas-twinkle {
  from { opacity: calc(var(--o, 0.7) * 0.35); }
  to { opacity: var(--o, 0.7); }
}

.rsc-xmas-bethlehem {
  position: absolute;
  top: calc(var(--header-h, 80px) + 4%);
  right: 9%;
  width: min(160px, 28vw);
  height: auto;
  overflow: visible;
  opacity: 0.95;
  filter: drop-shadow(0 0 8px rgba(240, 215, 138, 0.35));
}

@media (max-width: 1023px) {
  .rsc-xmas-bethlehem {
    right: 6%;
    width: min(110px, 32vw);
    top: calc(var(--header-h, 68px) + 2%);
  }
}

html.rsc-xmas-fx .rsc-xmas-bethlehem {
  animation: rsc-xmas-guide 5s ease-in-out infinite alternate;
}

@keyframes rsc-xmas-guide {
  0%   { opacity: 0.75; filter: brightness(1) drop-shadow(0 0 6px rgba(240,215,138,.25)); }
  60%  { opacity: 1;    filter: brightness(1.35) drop-shadow(0 0 14px rgba(255,236,170,.7)) drop-shadow(0 0 32px rgba(240,215,138,.45)); }
  100% { opacity: 1;    filter: brightness(1.5) drop-shadow(0 0 18px rgba(255,240,190,.85)) drop-shadow(0 0 44px rgba(240,215,138,.55)); }
}

.rsc-xmas-manger {
  position: absolute;
  left: clamp(16px, 4vw, 56px);
  /* Default: just above the hero wave, sized to sit in the gap below existing copy. */
  bottom: clamp(62px, 8vw, 116px);
  width: min(124px, 22vw);
  height: auto;
  opacity: 0.85;
  overflow: visible;
  z-index: 2;
}

@media (max-width: 1023px) {
  .rsc-xmas-manger {
    width: min(110px, 42vw);
    bottom: 62px;
    left: 16px;
    opacity: 0.8;
  }
}

.rsc-xmas-verse {
  position: absolute;
  left: calc(clamp(16px, 4vw, 56px) + min(124px, 22vw) + 16px);
  bottom: clamp(66px, 8.2vw, 118px);
  max-width: min(42ch, 52%);
  margin: 0;
  z-index: 2;
  font-family: var(--font-sans, Inter, "Helvetica Neue", Helvetica, Arial, sans-serif);
  font-style: normal;
  font-weight: 400;
  font-size: 0.75rem;
  line-height: 1.35;
  color: #f7eed8;
  text-shadow: 0 1px 3px rgba(28, 21, 19, 0.9);
}

.rsc-xmas-verse cite {
  display: block;
  margin-top: 0.15rem;
  font-style: normal;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: #f3de98;
}

@media (max-width: 1023px) {
  /* Avoid sitting on the stacked Sunday card. The star and manger carry the theme. */
  .rsc-xmas-verse { display: none; }
}

/* Effects toggle, 1:55 look: dark gold-edged pill when on, light pill when off.
   The pill sits in the header at every width, between the logo and the menu
   (left of the hamburger below 1101px, left of the nav row from 1101px up).
   Below 360px the label shortens to "Effects" so the logo is not crowded;
   on/off is shown by the fill. */
.rsc-xmas-fx-btn {
  position: relative;
  left: auto;
  right: auto;
  top: auto;
  bottom: auto;
  z-index: 1002;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  width: auto;
  flex: 0 0 auto;
  margin: 0;
  margin-left: auto;
  margin-right: 0;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--rsc-xmas-candle);
  background: rgba(28, 21, 19, 0.9);
  color: #f7eed8;
  font-family: var(--font-sans, Inter, "Helvetica Neue", Helvetica, Arial, sans-serif);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(28, 21, 19, 0.28);
  opacity: 0.86;
  transition: opacity 0.2s, background 0.2s, color 0.2s, border-color 0.2s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.rsc-xmas-fx-label-short {
  display: none;
}

.rsc-xmas-fx-btn:hover,
.rsc-xmas-fx-btn:focus-visible {
  opacity: 1;
}

.rsc-xmas-fx-btn:focus-visible {
  outline: 2px solid var(--rsc-xmas-candle);
  outline-offset: 2px;
}

.rsc-xmas-fx-btn[aria-pressed="false"] {
  background: rgba(255, 255, 255, 0.94);
  color: #1c1513;
  border-color: #8a7340;
}

/* Desktop: keep the pill in the header between the logo and the nav row.
   site-nav already has margin-left: auto; give that job to the pill so
   the two are not pushed apart. */
@media (min-width: 1101px) {
  html.rsc-christmas .site-header .site-nav {
    margin-left: 0.75rem;
  }
}

/* Hamburger breakpoint: sit just left of the menu button. Header row
   gap is 1.5rem. Pull the pill next to the hamburger without changing
   header-inner or shrinking the logo. */
@media (max-width: 1100px) {
  .rsc-xmas-fx-btn {
    margin-right: -16px;
  }

  html.rsc-christmas .nav-toggle {
    margin-left: 0;
  }

  html.rsc-christmas .site-header .logo,
  html.rsc-christmas .site-header .logo img {
    flex-shrink: 0;
  }
}

/* 320px cannot fit "Effects: On" beside the logo. JS shortens the one
   label span to "Effects"; on/off is also shown by the fill. */
@media (max-width: 359px) {
  .rsc-xmas-fx-btn {
    padding: 0 8px;
  }
}

html.rsc-christmas:not(.rsc-xmas-fx) .rsc-xmas-lights,
html.rsc-christmas:not(.rsc-xmas-fx) .rsc-xmas-sky,
html.rsc-christmas:not(.rsc-xmas-fx) .rsc-xmas-section {
  display: none;
}


/* ---------- December schedule in the existing Plan your visit band ---------- */
/* Reuses .section-head, .section-kicker, .section-title, .expect-grid, and
   .expect-card from style.css, plus the site radius, gap, and padding tokens.
   The cards are not interactive. */
.rsc-xmas-schedule {
  margin: 0 0 2.8rem;
  padding: 0 0 2.4rem;
  border-bottom: 1px solid var(--line);
}

.rsc-xmas-schedule .section-head {
  margin-bottom: 1.5rem;
}

.rsc-xmas-schedule .section-title {
  margin-bottom: 0;
}

.rsc-xmas-schedule .expect-card,
.rsc-xmas-schedule-card {
  position: relative;
  isolation: isolate;
  overflow: visible;
  background-color: #faf3e8;
  background-image: radial-gradient(140% 100% at 50% 0%, #fffaf3 0%, #faf3e8 55%, #f8efde 100%);
  border: 1px solid rgba(122, 92, 32, 0.48);
  border-radius: 20px;
  box-shadow:
    inset 0 1px 0 rgba(255, 250, 240, 0.8),
    inset 0 0 0 1px rgba(232, 195, 106, 0.3),
    inset 0 0 32px rgba(240, 215, 138, 0.18),
    0 8px 22px rgba(28, 21, 19, 0.08),
    0 0 18px rgba(232, 195, 106, 0.34),
    0 0 42px rgba(240, 215, 138, 0.26);
  cursor: default;
  pointer-events: none;
  transition: none;
  transform: none;
}

.rsc-xmas-schedule .expect-card:hover,
.rsc-xmas-schedule .expect-card:focus,
.rsc-xmas-schedule .expect-card:focus-visible,
.rsc-xmas-schedule .expect-card:active,
.rsc-xmas-schedule-card:hover,
.rsc-xmas-schedule-card:focus,
.rsc-xmas-schedule-card:focus-visible,
.rsc-xmas-schedule-card:active {
  transform: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 250, 240, 0.8),
    inset 0 0 0 1px rgba(232, 195, 106, 0.3),
    inset 0 0 32px rgba(240, 215, 138, 0.18),
    0 8px 22px rgba(28, 21, 19, 0.08),
    0 0 18px rgba(232, 195, 106, 0.34),
    0 0 42px rgba(240, 215, 138, 0.26);
}

/* Gold date accent. #7a5c20 on #faf3e8 is above 5.6:1 (AA). */
.rsc-xmas-schedule .expect-card .section-kicker,
.rsc-xmas-schedule-date {
  margin-bottom: 0.55rem;
  letter-spacing: 0.1em;
  color: #7a5c20;
}

/* Heavier titles; brighter (higher contrast) time line than ink-soft. */
.rsc-xmas-schedule .expect-card h3 {
  font-weight: 700;
  color: var(--navy);
}

.rsc-xmas-schedule .expect-card .rsc-xmas-schedule-detail {
  color: var(--ink);
  flex: 1;
}

.rsc-xmas-schedule-note {
  margin: 1.25rem 0 0;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.55;
  max-width: 42rem;
}

/* Four events read more clearly as a 2 by 2 grid than as four narrow
   columns. The site's own expect-grid already goes to 2 columns below
   1100px and to 1 column below 621px; keep 2 columns on wide screens too. */
@media (min-width: 621px) {
  .rsc-xmas-schedule .expect-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.rsc-xmas-schedule .expect-grid > :only-child {
  max-width: 28rem;
}

@media (prefers-color-scheme: dark) {
  .rsc-xmas-schedule .expect-card,
  .rsc-xmas-schedule-card {
    background-color: #2a2118;
    background-image: radial-gradient(140% 100% at 50% 0%, #3a2c1e 0%, #2a2118 58%, #241c15 100%);
    border-color: rgba(243, 222, 152, 0.5);
    box-shadow:
      inset 0 1px 0 rgba(243, 222, 152, 0.28),
      inset 0 0 0 1px rgba(243, 222, 152, 0.22),
      inset 0 0 36px rgba(240, 215, 138, 0.12),
      0 10px 28px rgba(0, 0, 0, 0.4),
      0 0 22px rgba(240, 215, 138, 0.34),
      0 0 52px rgba(243, 222, 152, 0.22);
  }

  .rsc-xmas-schedule .expect-card:hover,
  .rsc-xmas-schedule .expect-card:focus,
  .rsc-xmas-schedule .expect-card:focus-visible,
  .rsc-xmas-schedule .expect-card:active,
  .rsc-xmas-schedule-card:hover,
  .rsc-xmas-schedule-card:focus,
  .rsc-xmas-schedule-card:focus-visible,
  .rsc-xmas-schedule-card:active {
    box-shadow:
      inset 0 1px 0 rgba(243, 222, 152, 0.28),
      inset 0 0 0 1px rgba(243, 222, 152, 0.22),
      inset 0 0 36px rgba(240, 215, 138, 0.12),
      0 10px 28px rgba(0, 0, 0, 0.4),
      0 0 22px rgba(240, 215, 138, 0.34),
      0 0 52px rgba(243, 222, 152, 0.22);
  }

  /* #f3de98 on #2a2118 is above 11:1 (AA). */
  .rsc-xmas-schedule .expect-card .section-kicker,
  .rsc-xmas-schedule-date {
    color: #f3de98;
  }

  .rsc-xmas-schedule .expect-card h3 {
    color: var(--heading, #f7f2ef);
  }

  .rsc-xmas-schedule .expect-card .rsc-xmas-schedule-detail {
    color: #f7eed8;
  }
}

/* Gentle candle glow pulse. Only when Effects are on; fully off if the
   visitor prefers reduced motion. Does not change layout. */
html.rsc-xmas-fx .rsc-xmas-schedule .expect-card::after,
html.rsc-xmas-fx .rsc-xmas-schedule-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: -1;
  box-shadow:
    0 0 20px rgba(232, 195, 106, 0.32),
    0 0 48px rgba(240, 215, 138, 0.26);
  animation: rsc-xmas-card-glow 6s ease-in-out infinite;
}

@media (prefers-color-scheme: dark) {
  html.rsc-xmas-fx .rsc-xmas-schedule .expect-card::after,
  html.rsc-xmas-fx .rsc-xmas-schedule-card::after {
    box-shadow:
      0 0 22px rgba(240, 215, 138, 0.38),
      0 0 56px rgba(243, 222, 152, 0.3);
  }
}

@keyframes rsc-xmas-card-glow {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html.rsc-xmas-fx .rsc-xmas-schedule .expect-card::after,
  html.rsc-xmas-fx .rsc-xmas-schedule-card::after {
    animation: none;
    opacity: 0;
    content: none;
    box-shadow: none;
  }
}

/* ---------- Homepage page-wide effects (hero already has a sky) ---------- */
/* Injected only on the homepage. Out of flow, no added height, behind copy. */

.rsc-xmas-host {
  position: relative;
  isolation: isolate;
  overflow: visible;
}

.rsc-xmas-section,
.rsc-xmas-host > .rsc-xmas-sky--section,
.site-footer.rsc-xmas-host > .rsc-xmas-sky--footer {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.rsc-xmas-section {
  overflow: visible;
}

html.rsc-xmas-fx .rsc-xmas-section,
html.rsc-xmas-fx .rsc-xmas-sky {
  opacity: 0;
}

html.rsc-xmas-fx .rsc-xmas-section.rsc-xmas-inview,
html.rsc-xmas-fx .rsc-xmas-sky.rsc-xmas-inview {
  opacity: 1;
  transition: opacity 1.15s ease;
}

.rsc-xmas-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.rsc-xmas-host[data-rsc-xmas-corner="tl"] .rsc-xmas-vignette {
  background: radial-gradient(ellipse 42% 36% at 0% 0%, var(--rsc-xmas-vignette) 0%, transparent 70%);
}

.rsc-xmas-host[data-rsc-xmas-corner="tr"] .rsc-xmas-vignette {
  background: radial-gradient(ellipse 42% 36% at 100% 0%, var(--rsc-xmas-vignette) 0%, transparent 70%);
}

.rsc-xmas-host[data-rsc-xmas-corner="bl"] .rsc-xmas-vignette {
  background: radial-gradient(ellipse 42% 36% at 0% 100%, var(--rsc-xmas-vignette) 0%, transparent 70%);
}

.rsc-xmas-host[data-rsc-xmas-corner="br"] .rsc-xmas-vignette {
  background: radial-gradient(ellipse 42% 36% at 100% 100%, var(--rsc-xmas-vignette) 0%, transparent 70%);
}

@media (max-width: 700px) {
  html.rsc-christmas {
    --rsc-xmas-vignette: rgba(232, 195, 106, 0.1);
  }

  @media (prefers-color-scheme: dark) {
    html.rsc-christmas {
      --rsc-xmas-vignette: rgba(240, 215, 138, 0.09);
    }
  }

  .rsc-xmas-host[data-rsc-xmas-corner="tl"] .rsc-xmas-vignette,
  .rsc-xmas-host[data-rsc-xmas-corner="tr"] .rsc-xmas-vignette,
  .rsc-xmas-host[data-rsc-xmas-corner="bl"] .rsc-xmas-vignette,
  .rsc-xmas-host[data-rsc-xmas-corner="br"] .rsc-xmas-vignette {
    background-size: auto;
  }

  /* Fewer twinkles on phones: only the first three section stars animate. */
  html.rsc-xmas-fx .rsc-xmas-sky--section .rsc-xmas-star:nth-child(n+4) {
    animation: none;
  }

  html.rsc-xmas-fx .rsc-xmas-seam-candle:nth-child(even) {
    animation: none;
  }
}

.rsc-xmas-accent-star {
  position: absolute;
  top: 1.35rem;
  right: clamp(16px, 4vw, 56px);
  width: 24px;
  height: 24px;
  opacity: 0.9;
  overflow: visible;
  filter: drop-shadow(0 0 6px rgba(240, 215, 138, 0.5));
}

.rsc-xmas-accent-star path:last-child {
  fill: #e8c36a;
}

@media (prefers-color-scheme: dark) {
  .rsc-xmas-accent-star {
    opacity: 0.85;
  }

  .rsc-xmas-accent-star path:last-child {
    fill: #fff8e4;
  }
}

.rsc-xmas-seam {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 22px;
  overflow: visible;
  pointer-events: none;
}

.rsc-xmas-seam-wire {
  display: block;
  width: 100%;
  height: 16px;
  overflow: visible;
}

.rsc-xmas-seam-wire path {
  fill: none;
  stroke: var(--rsc-xmas-wire);
  stroke-width: 0.9;
  vector-effect: non-scaling-stroke;
}

.rsc-xmas-seam-candles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 22px;
}

.rsc-xmas-seam-candle {
  position: absolute;
  top: 7px;
  width: 4px;
  height: 6px;
  margin-left: -2px;
  border-radius: 50% 50% 50% 50% / 42% 42% 58% 58%;
  background: radial-gradient(circle at 50% 40%, #fffaf0 0 30%, var(--c) 55%, var(--c) 100%);
  box-shadow: 0 0 5px 1px var(--c);
  opacity: 0.7;
}

html.rsc-xmas-fx .rsc-xmas-seam-candle {
  animation: rsc-xmas-candle 2.6s ease-in-out infinite alternate;
}

@media (prefers-reduced-motion: reduce) {
  html.rsc-xmas-fx .rsc-xmas-candles b,
  html.rsc-xmas-fx .rsc-xmas-star,
  html.rsc-xmas-fx .rsc-xmas-bethlehem,
  html.rsc-xmas-fx .rsc-xmas-seam-candle,
  html.rsc-xmas-fx .rsc-xmas-section,
  html.rsc-xmas-fx .rsc-xmas-sky {
    animation: none;
    transition: none;
  }

  html.rsc-xmas-fx .rsc-xmas-section,
  html.rsc-xmas-fx .rsc-xmas-sky,
  .rsc-xmas-section,
  .rsc-xmas-sky {
    opacity: 1;
  }
}
