/* Christmas-only artwork: original proportions and scoped component behavior. */
.season-christmas {
  --christmas-hero-overlap: 12px;
}
/* The sticky header stays above a shallow seasonal overlap and becomes solid on scroll. */
.season-christmas.home .christmas-home-hero,
.season-christmas .relative:has(> .christmas-decoration--interior) {
  overflow: visible;
  clip-path: inset(calc(-1 * var(--christmas-hero-overlap)) 0 0);
}
.season-christmas.home [data-site-header]:not(.shadow-sm),
.season-christmas:has(.christmas-decoration--interior) [data-site-header]:not(.shadow-sm) {
  background: linear-gradient(to bottom, #fff calc(100% - var(--christmas-hero-overlap)), transparent calc(100% - var(--christmas-hero-overlap)));
  background-origin: border-box;
  background-repeat: no-repeat;
  border-bottom-color: transparent;
}

.season-christmas .christmas-decoration {
  position: absolute;
  pointer-events: none;
  user-select: none;
  z-index: 1;
  width: var(--christmas-width, 120px);
}
.season-christmas .christmas-decoration img {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
}
.season-christmas .christmas-home-hero,
.season-christmas .christmas-home-intro {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.season-christmas .christmas-gospel,
.season-christmas .christmas-footer {
  isolation: isolate;
}
.season-christmas .christmas-decoration--hero,
.season-christmas .christmas-decoration--interior {
  --christmas-width: 195px;
  top: calc(-1 * var(--christmas-hero-overlap));
  left: -8px;
}
/* Keep arrows/pagination above stationary artwork without touching slide layers. */
.season-christmas [data-home-hero] [data-hero-previous],
.season-christmas [data-home-hero] [data-hero-next],
.season-christmas [data-home-hero] [aria-label="Hero carousel controls"] {
  z-index: 2;
}
.season-christmas .christmas-decoration--intro,
.season-christmas .christmas-decoration--gospel {
  display: none;
}
.season-christmas .christmas-decoration--footer-left {
  left: 0;
}
.season-christmas .christmas-decoration--footer-right {
  right: 0;
}
.season-christmas .christmas-gospel > .site-container-wide,
.season-christmas .christmas-footer > .relative {
  z-index: 2;
}
/* Keep the footer border beneath artwork and its content above it at every size. */
.season-christmas .christmas-footer > .relative:has(> .site-container-wide > .grid) {
  z-index: auto;
}
.season-christmas .christmas-footer > .relative:has(> .site-container-wide > .grid) > .site-container-wide {
  position: relative;
  z-index: 2;
}
/* Lights use percentages of the original corner image, so they scale with it. */
.season-christmas .christmas-light {
  position: absolute;
  left: var(--light-x);
  top: var(--light-y);
  width: clamp(3.78px, calc(var(--christmas-width) * 0.0252), 7.56px);
  height: clamp(3.78px, calc(var(--christmas-width) * 0.0252), 7.56px);
  border-radius: 50%;
  background: #fff0cc;
  /* Static incandescent halos; only overall opacity changes with the animation. */
  box-shadow:
    0 0 4px 1px rgb(255 222 151 / var(--light-glow, 1)),
    0 0 10px 3px rgb(255 193 96 / calc(var(--light-glow, 1) * 0.7)),
    0 0 18px 2px rgb(233 163 75 / calc(var(--light-glow, 1) * 0.3));
  opacity: var(--light-steady, 0.85);
  animation: christmas-light-warmth var(--light-duration, 1.672s) ease-in-out infinite;
  animation-delay: calc(var(--light-delay) + var(--light-phase, 0s));
}
.season-christmas .christmas-light:nth-of-type(1) { --light-x: 7%; --light-y: 22%; --light-delay: -0.31s; --light-duration: 1.649s; }
.season-christmas .christmas-light:nth-of-type(2) { --light-x: 22%; --light-y: 20%; --light-delay: -1.43s; --light-duration: 2.06s; }
.season-christmas .christmas-light:nth-of-type(3) { --light-x: 46%; --light-y: 20%; --light-delay: -0.77s; --light-duration: 1.421s; }
.season-christmas .christmas-light:nth-of-type(4) { --light-x: 71%; --light-y: 18%; --light-delay: -1.91s; --light-duration: 1.771s; }
.season-christmas .christmas-light:nth-of-type(5) { --light-x: 88%; --light-y: 18%; --light-delay: -0.59s; --light-duration: 2.151s; }
.season-christmas .christmas-light:nth-of-type(6) { --light-x: 79%; --light-y: 29%; --light-delay: -1.27s; --light-duration: 1.497s; }
.season-christmas .christmas-light:nth-of-type(7) { --light-x: 47%; --light-y: 34%; --light-delay: -0.97s; --light-duration: 1.832s; }
.season-christmas .christmas-light:nth-of-type(8) { --light-x: 7%; --light-y: 51%; --light-delay: -2.13s; --light-duration: 1.999s; }
.season-christmas .christmas-light:nth-of-type(9) { --light-x: 7%; --light-y: 64%; --light-delay: -0.13s; --light-duration: 1.452s; }
.season-christmas .christmas-light:nth-of-type(10) { --light-x: 11%; --light-y: 85%; --light-delay: -1.61s; --light-duration: 1.74s; }
/* Footer glow stays quieter; the right-facing asset has its own branch layout. */
.season-christmas .christmas-decoration--footer-left,
.season-christmas .christmas-decoration--footer-right {
  --light-low: 0.6;
  --light-high: 0.85;
  --light-steady: 0.75;
  --light-glow: 0.75;
}
.season-christmas .christmas-decoration--footer-right {
  --light-phase: -2.3s;
}
.season-christmas .christmas-decoration--footer-right .christmas-light:nth-of-type(1) { --light-x: 12%; --light-y: 18%; }
.season-christmas .christmas-decoration--footer-right .christmas-light:nth-of-type(2) { --light-x: 28%; --light-y: 18%; }
.season-christmas .christmas-decoration--footer-right .christmas-light:nth-of-type(3) { --light-x: 50%; --light-y: 20%; }
.season-christmas .christmas-decoration--footer-right .christmas-light:nth-of-type(4) { --light-x: 76%; --light-y: 20%; }
.season-christmas .christmas-decoration--footer-right .christmas-light:nth-of-type(5) { --light-x: 96%; --light-y: 26%; }
.season-christmas .christmas-decoration--footer-right .christmas-light:nth-of-type(6) { --light-x: 54%; --light-y: 34%; }
.season-christmas .christmas-decoration--footer-right .christmas-light:nth-of-type(7) { --light-x: 94%; --light-y: 54%; }
.season-christmas .christmas-decoration--footer-right .christmas-light:nth-of-type(8) { --light-x: 96%; --light-y: 64%; }
.season-christmas .christmas-decoration--footer-right .christmas-light:nth-of-type(9) { --light-x: 91%; --light-y: 86%; }
.season-christmas .christmas-decoration--footer-right .christmas-light:nth-of-type(10) { --light-x: 84%; --light-y: 57%; }
@media (min-width: 768px) and (max-width: 1279px) {
  .season-christmas .christmas-decoration--footer-left .christmas-light,
  .season-christmas .christmas-decoration--footer-right .christmas-light {
    display: none;
    animation: none;
  }
}
@keyframes christmas-light-warmth {
  0%, 100% { opacity: var(--light-low, 0.72); }
  50% { opacity: var(--light-high, 1); }
}
@media (min-width: 768px) {
  .season-christmas .christmas-decoration--hero,
  .season-christmas .christmas-decoration--interior {
    --christmas-width: 310px;
    left: -12px;
  }
}
@media (min-width: 1024px) {
  .season-christmas { --christmas-hero-overlap: 24px; }
  .season-christmas .christmas-decoration--hero,
  .season-christmas .christmas-decoration--interior {
    --christmas-width: 400px;
  }
}
@media (min-width: 1280px) {
  /* Let the corner tips cross into the preceding section without side overflow. */
  .season-christmas .christmas-footer {
    overflow: visible;
    clip-path: inset(-24px 0 0);
  }
  .season-christmas .christmas-decoration--footer-left,
  .season-christmas .christmas-decoration--footer-right {
    display: block;
    --christmas-width: 240px;
    top: -24px;
  }
  /* Reserve clearance for the artwork while preserving the footer columns. */
  .season-christmas .christmas-footer > .relative:has(> .site-container-wide > .grid) {
    padding-top: 24px;
  }
  /* Compensate for the flameless image's wide transparent canvas. */
  .season-christmas .christmas-decoration--intro {
    display: block;
    --christmas-width: 420px;
    right: max(32px, calc((100% - 1240px) / 2 + 40px));
    top: 50%;
    transform: translate(22%, -50%);
  }
  /* Closing copy is capped at 768px, leaving room beside the invitation. */
  .season-christmas .christmas-decoration--gospel {
    display: block;
    --christmas-width: 200px;
    right: max(32px, calc((100% - 1240px) / 2 + 40px));
    bottom: 36px;
  }
}
/* Keep the full corner artwork visible, with content below its dense branches. */
@media (min-width: 1440px) {
  .season-christmas .christmas-decoration--footer-left,
  .season-christmas .christmas-decoration--footer-right {
    --christmas-width: 360px;
  }
  .season-christmas .christmas-footer > .relative:has(> .site-container-wide > .grid) {
    padding-top: 48px;
  }
}
/* Wider containers allow larger candles without changing the copy width. */
@media (min-width: 1536px) {
  .season-christmas .christmas-decoration--intro {
    --christmas-width: 470px;
    right: max(40px, calc((100% - 1440px) / 2 + 40px));
  }
  .season-christmas .christmas-decoration--gospel {
    right: max(40px, calc((100% - 1440px) / 2 + 40px));
  }
}
@media (min-width: 1920px) {
  .season-christmas .christmas-decoration--intro,
  .season-christmas .christmas-decoration--gospel {
    right: max(40px, calc((100% - 1720px) / 2 + 40px));
  }
}
@media (prefers-reduced-motion: reduce) {
  .season-christmas .christmas-light { animation: none; opacity: var(--light-steady, 0.85); }
}

/* Hero ornaments: natural flow centered beneath eligible CTA groups. */
.season-christmas .christmas-decoration--hero-buttons,
.season-christmas .christmas-decoration--interior-buttons {
  position: static;
  --christmas-width: 180px;
  max-width: 100%;
  margin: 10px auto 0;
}
/* Narrow desktop panels need their full height for copy, schedules, and buttons. */
@media (min-width: 1024px) and (max-width: 1279px) {
  .season-christmas .christmas-decoration--hero-buttons,
  .season-christmas .christmas-decoration--interior-buttons { display: none; }
}
@media (min-width: 1920px) {
  .season-christmas .christmas-decoration--hero-buttons,
  .season-christmas .christmas-decoration--interior-buttons { --christmas-width: 200px; }
}

/* Center the ornament beneath the mobile footer menu and social links. */
.season-christmas .christmas-decoration--footer-contact {
  position: static;
  --christmas-width: 200px;
  max-width: 100%;
  margin: 32px auto 0;
}

/* Keep the ornament beneath mobile navigation; place it beside legal links on desktop. */
.season-christmas .christmas-footer-bottom > .christmas-decoration--footer-contact {
  display: none;
}
@media (min-width: 1024px) {
  .season-christmas .christmas-decoration--footer-contact {
    display: none;
  }
  .season-christmas .christmas-footer-bottom > .christmas-decoration--footer-contact {
    display: block;
    --christmas-width: 140px;
    flex: 0 0 auto;
    margin: 0 24px;
  }
}

/* Complete CSS flames anchored to the wicks in the flameless Advent artwork. */
.season-christmas .christmas-decoration--intro .christmas-candle-glow {
  position: absolute;
  pointer-events: none;
  left: var(--candle-x);
  top: var(--candle-y);
  width: 5.5%;
  height: 22%;
  transform: translate(-50%, -100%);
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 65%, rgb(255 199 106 / 0.3), rgb(233 163 75 / 0.12) 40%, transparent 75%);
}
.season-christmas .christmas-decoration--intro .christmas-candle-glow::before {
  content: "";
  position: absolute;
  left: 34%;
  bottom: 0;
  width: 32%;
  height: 68%;
  border-radius: 75% 25% 50% 50%;
  background: radial-gradient(ellipse at 50% 75%, #ffe8b2 0%, #ffe09a 30%, #ffc461 60%, #f2aa4c 85%);
  box-shadow: 0 0 3px 1px rgb(255 199 106 / 0.4);
  transform-origin: 50% 100%;
  opacity: 0.95;
  animation: christmas-candle-flicker var(--candle-duration) ease-in-out infinite;
  animation-delay: var(--candle-delay);
}
.season-christmas .christmas-candle-glow:nth-of-type(1) {
  --candle-x: 44.05%;
  --candle-y: 18%;
  --candle-duration: 1.07s;
  --candle-delay: -0.31s;
}
.season-christmas .christmas-candle-glow:nth-of-type(2) {
  --candle-x: 50%;
  --candle-y: 6.5%;
  --candle-duration: 1.31s;
  --candle-delay: -0.87s;
}
.season-christmas .christmas-candle-glow:nth-of-type(3) {
  --candle-x: 55.95%;
  --candle-y: 18%;
  --candle-duration: 0.89s;
  --candle-delay: -0.53s;
}
@keyframes christmas-candle-flicker {
  0%, 100% { transform: translateX(0) scaleY(1) rotate(0deg); opacity: 0.95; }
  19% { transform: translateX(-0.35px) scaleY(0.94) rotate(-2deg); opacity: 0.85; }
  43% { transform: translateX(0.4px) scaleY(1.06) rotate(2deg); opacity: 1; }
  67% { transform: translateX(-0.2px) scaleY(0.97) rotate(-1deg); opacity: 0.9; }
  84% { transform: translateX(0.25px) scaleY(1.03) rotate(1deg); opacity: 0.95; }
}
@media (prefers-reduced-motion: reduce) {
  .season-christmas .christmas-decoration--intro .christmas-candle-glow::before {
    animation: none;
  }
}

/* Define the Advent artwork against white without shadowing its CSS flames. */
.season-christmas .christmas-decoration--intro > img {
  filter: drop-shadow(0 2px 2px rgb(31 42 42 / 0.34))
    drop-shadow(0 5px 7px rgb(31 42 42 / 0.24));
}

/* Stationary ornaments share the same panel layout; carousel text fades separately. */
.season-christmas .christmas-hero-info:has(> .christmas-decoration--hero-buttons),
.season-christmas .christmas-interior-hero-info:has(> .christmas-decoration--interior-buttons) {
  position: relative;
  flex-direction: column;
  justify-content: center;
}
@media (min-width: 1280px) {
  .season-christmas .christmas-hero-info:has(> .christmas-decoration--hero-buttons) {
    --hero-panel-spacing: 104px;
  }
  .season-christmas .christmas-hero-info:has(> .christmas-decoration--hero-buttons),
  .season-christmas .christmas-interior-hero-info:has(> .christmas-decoration--interior-buttons) {
    padding-top: 12px;
    padding-bottom: 92px;
  }
  .season-christmas .christmas-hero-info > .christmas-decoration--hero-buttons,
  .season-christmas .christmas-interior-hero-info > .christmas-decoration--interior-buttons {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
  }
}

/* Selected first editorial blocks share the homepage's Advent artwork and flames. */
@media (min-width: 1280px) {
  .season-christmas .christmas-interior-intro:has(> .christmas-decoration--intro) {
    position: relative;
    min-height: 160px;
  }
  .season-christmas .christmas-interior-intro:has(> .christmas-decoration--intro) > .christmas-interior-intro-copy {
    max-width: calc(100% - 280px);
  }
  .season-christmas .christmas-interior-intro > .christmas-decoration--intro {
    right: 0;
  }
}
/* Bethlehem star: soft, feathered warmth and a visible shimmer; the nativity stays still. */
.season-christmas .christmas-decoration--gospel::before,
.season-christmas .christmas-decoration--gospel::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 1;
  left: 51%;
  top: 26%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
}
.season-christmas .christmas-decoration--gospel::before {
  width: 52%;
  height: 44.45%;
  background: radial-gradient(circle, rgb(255 199 106 / 0.4) 0%, rgb(233 163 75 / 0.16) 35%, rgb(233 163 75 / 0.035) 60%, transparent 72%);
}
.season-christmas .christmas-decoration--gospel::after {
  width: 15%;
  height: 12.85%;
  background: radial-gradient(circle, #fff8e8 0%, #fff0cc 20%, rgb(255 227 163 / 0.9) 35%, rgb(255 199 106 / 0.3) 50%, transparent 72%);
  opacity: 0.65;
  animation: christmas-star-shimmer 1.8s ease-in-out infinite;
}
@keyframes christmas-star-shimmer {
  0%, 100% { opacity: 0.45; }
  22% { opacity: 1; }
  48% { opacity: 0.65; }
  78% { opacity: 0.45; }
}
@media (prefers-reduced-motion: reduce) {
  .season-christmas .christmas-decoration--gospel::after {
    animation: none;
    opacity: 0.65;
  }
}

/* Let smaller screens share the seasonal framing without covering Gospel copy. */
@media (max-width: 1279px) {
  .season-christmas .christmas-decoration--gospel {
    display: block;
    position: relative;
    --christmas-width: 150px;
    margin: 24px auto 0;
  }
}
/* Mobile footer: paired branches nearly meet, with a shallow overlap above. */
@media (max-width: 767px) {
  .season-christmas .christmas-footer {
    /* clip-path alone hides paint but leaves the 6px overhang scrollable. */
    overflow-x: clip;
    overflow-y: visible;
    clip-path: inset(-20px 0 0);
  }
  .season-christmas .christmas-decoration--footer-left,
  .season-christmas .christmas-decoration--footer-right {
    display: block;
    --christmas-width: calc(49vw + 6px);
    top: -20px;
  }
  .season-christmas .christmas-decoration--footer-left { left: -6px; }
  .season-christmas .christmas-decoration--footer-right { right: -6px; }
  .season-christmas .christmas-footer > .relative:has(> .site-container-wide > .grid) {
    padding-top: clamp(12px, 8vw, 48px);
  }
}

/* The enlarged mobile footer branches now have room for their lights. */
@media (max-width: 767px) {
  .season-christmas .christmas-decoration--footer-left .christmas-light,
  .season-christmas .christmas-decoration--footer-right .christmas-light {
    display: block;
    width: 4px;
    height: 4px;
  }
}
/* Nest the mobile identity centrally between the seasonal corner branches. */
@media (max-width: 767px) {
  .season-christmas .christmas-footer-identity {
    text-align: center;
  }
  .season-christmas .christmas-footer-identity img {
    height: 52px;
    width: auto;
    max-width: 72vw;
    object-fit: contain;
  }
}

/* Stack the Advent arrangement below introductory copy on smaller screens. */
@media (max-width: 1279px) {
  .season-christmas .christmas-home-intro:has(> .christmas-decoration--intro),
  .season-christmas .christmas-interior-intro:has(> .christmas-decoration--intro) {
    display: flex;
    flex-direction: column;
  }
  .season-christmas .christmas-home-intro > .site-container-wide {
    width: 100%;
  }
  .season-christmas .christmas-decoration--intro {
    display: block;
    position: relative;
    order: 1;
    --christmas-width: 360px;
    width: min(var(--christmas-width), 100%);
    margin: 24px auto 0;
    top: auto;
    right: auto;
    transform: none;
  }
}

/* A static finishing accent inside the scrollable mobile navigation. */
.season-christmas .christmas-decoration--mobile-menu {
  position: static;
  --christmas-width: 130px;
  max-width: 100%;
  margin: 20px auto 24px;
}
@media (max-height: 650px) {
  .season-christmas .christmas-decoration--mobile-menu {
    display: none;
  }
}

/* Tablet footer: paired framing and the ornament in the legal bar. */
@media (min-width: 768px) and (max-width: 1279px) {
  .season-christmas .christmas-footer {
    overflow-x: clip;
    overflow-y: visible;
    clip-path: inset(-20px 0 0);
  }
  .season-christmas .christmas-decoration--footer-left,
  .season-christmas .christmas-decoration--footer-right {
    display: block;
    --christmas-width: clamp(200px, 22vw, 260px);
    top: -20px;
  }
  .season-christmas .christmas-footer > .relative:has(> .site-container-wide > .grid) {
    padding-top: 88px;
  }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .season-christmas .christmas-decoration--footer-contact {
    display: none;
  }
  .season-christmas .christmas-footer-bottom > .christmas-decoration--footer-contact {
    display: block;
    --christmas-width: 120px;
    flex: 0 0 auto;
    margin: 0 12px;
  }
}

/* Trial seasonal crop: bias toward the top-left source area so subjects
   shift right/down within the frame. Important overrides inline focal positions;
   disabling Christmas restores those canonical positions without any data edits. */
.season-christmas [data-home-hero] [data-hero-image],
.season-christmas .relative:has(> .christmas-decoration--interior) > div > img {
  object-position: 30% 0% !important;
}
@media (min-width: 768px) and (max-width: 1279px) {
  .season-christmas [data-home-hero] [data-hero-image],
  .season-christmas .relative:has(> .christmas-decoration--interior) > div > img {
    object-position: 20% 0% !important;
  }
}

/* The Advent canvas has transparent side margins extending beyond its visible art. */
.season-christmas .christmas-page-intro {
  overflow-x: clip;
  overflow-y: visible;
}

/* Match homepage desktop minimums; longer interior copy can still expand the hero. */
@media (min-width: 1024px) {
  .season-christmas [data-interior-hero]:has(.christmas-decoration--interior) > .grid {
    height: auto;
  }
  .season-christmas [data-interior-hero]:has(.christmas-decoration--interior) [data-interior-hero-image-frame] {
    height: auto;
    min-height: 0;
    aspect-ratio: auto;
  }
  .season-christmas [data-interior-hero]:has(.christmas-decoration--interior) [data-interior-hero-image-frame] > div:not(.christmas-decoration) {
    position: absolute;
    inset: 0;
  }
  .season-christmas [data-interior-hero]:has(.christmas-decoration--interior) .christmas-interior-hero-info {
    height: auto;
    min-height: 560px;
  }
}
@media (min-width: 1280px) {
  .season-christmas [data-interior-hero]:has(.christmas-decoration--interior) .christmas-interior-hero-info {
    min-height: 620px;
  }
}
/* Clip the Advent artwork's transparent side overhang, preserving its flame tips. */
.season-christmas .christmas-interior-intro {
  overflow-x: clip;
  overflow-y: visible;
}
