#ayiti-holiday{position:absolute;inset:0 0 auto;z-index:60;overflow:hidden;pointer-events:none!important;user-select:none;contain:layout style}
#ayiti-holiday *{pointer-events:none!important;box-sizing:border-box}
.holiday-header{position:absolute;left:0;right:0;top:var(--nav-top,40px);height:34px}
.holiday-wire{position:absolute;top:0;left:0;width:100%;height:20px;color:#b17a3d;overflow:visible}
.holiday-wire path{fill:none;stroke:currentColor;stroke-width:1}
.holiday-bulb{position:absolute;top:11px;width:9px;height:13px;margin-left:-4.5px;border-radius:50% 50% 50% 50%/40% 40% 60% 60%;background:radial-gradient(circle at 40% 35%,#fffdf0,#ffe27a 45%,#f2b630);box-shadow:0 0 4px 1px #fff0a0,0 0 12px 4px #ffcf3aa6;animation:holiday-glimmer 4s ease-in-out infinite alternate;animation-delay:var(--delay)}
.holiday-bulb::before{content:'';position:absolute;left:2px;top:-4px;width:5px;height:5px;border-radius:1px 1px 0 0;background:linear-gradient(#8a7146,#5d4a2b)}
.holiday-header-bauble{position:absolute;top:18px;width:14px;height:17px;border-radius:50%;background:radial-gradient(circle at 30% 25%,#ffdc8b,#e18414 35%,#9e490c 85%);box-shadow:0 2px 4px #4e2b2233}
.holiday-header-bauble:before{content:'';position:absolute;left:6px;top:-14px;height:14px;width:1px;background:#c3995b}
.holiday-frame{display:none;position:absolute;top:0;left:0;right:0;z-index:1;pointer-events:none!important}
.holiday-frame *{pointer-events:none!important}
.ayiti-holiday-hero{position:relative;isolation:isolate}
.ayiti-holiday-hero .holiday-frame{display:block}
.holiday-branch{position:absolute;left:-65px;top:-48px;width:var(--branch-width,210px);height:auto;object-fit:contain;object-position:top left}
.holiday-suspension{position:absolute;left:var(--pendant-left);top:var(--art-top,0px);width:var(--pendant-width,480px);aspect-ratio:3/1}
.holiday-suspension>img{display:block;width:100%;height:auto;max-width:none;filter:drop-shadow(0 0 2px #ffdf4780)}
.holiday-lantern-glow{position:absolute;left:28%;top:49%;width:8%;aspect-ratio:1;background:radial-gradient(circle,#fffbc9,#ffd72a99 38%,transparent 72%);filter:blur(3px);animation:holiday-glimmer 3.6s ease-in-out infinite alternate}
.holiday-sky{position:fixed;inset:0;overflow:hidden;contain:strict;pointer-events:none!important}
.holiday-snow,.holiday-leaf{position:absolute;top:-24px;left:var(--x);animation:holiday-fall var(--duration) linear infinite;animation-delay:var(--delay);will-change:transform;opacity:0}
.holiday-snow{width:5px;height:5px;background:#fff;box-shadow:0 0 1px #223;border-radius:1px}
.holiday-snow.cross{width:8px;height:2px;border-radius:0}
.holiday-snow.cross::after{content:'';position:absolute;left:3px;top:-3px;width:2px;height:8px;background:inherit}
.holiday-leaf{width:8px;height:12px;background:#bd7428;border-radius:80% 0 80% 0;box-shadow:inset -2px 0 #916128}
#ayiti-holiday.is-paused *,html:has(#ayiti-holiday.is-paused) .holiday-frame *{animation-play-state:paused!important}
@keyframes holiday-glimmer{from{opacity:.7}to{opacity:1}}
@keyframes holiday-fall{0%{transform:translate3d(0,-24px,0) rotate(0);opacity:0}8%{opacity:.85}76%{opacity:.7}90%,100%{transform:translate3d(var(--drift),calc(100dvh + 35px),0) rotate(var(--turn));opacity:0}}
@media(max-width:900px){.holiday-branch{width:330px;left:-35px;top:-25px}.holiday-suspension{left:auto;right:8px;top:calc(var(--art-top,0px) - 45px);width:180px}.holiday-header-bauble{width:10px;height:12px}}
@media(max-width:640px){.holiday-branch{width:275px;left:-30px;top:-22px}.holiday-suspension{width:125px;right:5px}.holiday-bulb{width:5px;height:7px;top:4px}.holiday-snow{width:3px;height:3px}.holiday-header-bauble{top:15px}}
@media(prefers-reduced-motion:reduce){#ayiti-holiday *,.holiday-frame *{animation:none!important}.holiday-snow,.holiday-leaf{display:none}.holiday-bulb,.holiday-lantern-glow{opacity:.85}}

/* Keep the existing text above the larger decorative foliage, without moving it. */
.ayiti-holiday-active .intro-copy>:is(p,h1,.intro-actions){position:relative;z-index:2;text-shadow:0 1px 3px #000,0 0 7px #000}

/* Extend the existing illustration into the formerly empty outer right gutter. */
@media(min-width:1921px){.ayiti-holiday-hero .intro-layout{max-width:none;margin-left:calc((100vw - 1920px)/2);margin-right:0;grid-template-columns:720px minmax(0,1fr)}}

/* Additional header assets. The original hero decorations remain in place. */
.holiday-added-header-corners{position:absolute;inset:0 0 auto;height:240px;pointer-events:none;overflow:hidden}
/* Both corners use the same garland (stars, bauble, lantern); the left one is its mirror image.
   The artwork has 11/400 px of empty space on top and 4/600 px on its outer side: the translate
   removes it, raises the garland and lets the leaves bleed past the page edges. holiday-decor.js slides
   a corner further out (--dx-left/--dx-right) when it would reach the logo or the menu controls. */
.holiday-added-corner{position:absolute;top:0;width:clamp(120px,22vw,380px);height:auto;max-width:none;pointer-events:none}
.holiday-added-corner-left{left:0;transform:translate(calc(-2% + var(--dx-left,0px)),-33%) scaleX(-1)}
.holiday-added-corner-right{right:0;transform:translate(calc(2% + var(--dx-right,0px)),-33%)}
/* Corners follow the screen width (22vw, 120 px at least): on a phone the leaves cover only the ends of the
   Flash band, so the corners and the scrolling text both stay visible. */
@media(max-width:1100px){.holiday-added-header-corners{height:calc(clamp(120px,22vw,380px) * .7)}}
/* Flash band under the header corners: a strip of the band's own colour, fading towards the centre,
   hides the scrolling text before it reaches the foliage. Widths come from holiday-decor.js. */
html.holiday-ticker-masked .ticker-shell::before,html.holiday-ticker-masked .ticker-shell::after{content:'';position:absolute;top:0;bottom:0;z-index:2;pointer-events:none}
html.holiday-ticker-masked .ticker-shell::before{left:0;width:var(--holiday-ticker-left,0px);background:linear-gradient(to right,var(--holiday-ticker-bg,#ccff00) calc(100% - var(--holiday-ticker-fade,28px)),transparent)}
html.holiday-ticker-masked .ticker-shell::after{right:0;width:var(--holiday-ticker-right,0px);background:linear-gradient(to left,var(--holiday-ticker-bg,#ccff00) calc(100% - var(--holiday-ticker-fade,28px)),transparent)}

/* Article pages: top garland and corners above the sticky menu (z 70); art inside the article header only. */
#ayiti-holiday.holiday-article{z-index:80}
.holiday-article-corner{position:absolute;top:0;width:184px;height:auto}
.holiday-article-corner-left{left:0;transform:translate(-2%,-40%) scaleX(-1)}
.holiday-article-tucked .holiday-article-corner-left{transform:translate(-34%,-40%) scaleX(-1)}
.holiday-article-corner-right{right:0;transform:translate(2%,-40%)}
.holiday-article-tucked .holiday-article-corner-right{transform:translate(34%,-40%)}
.holiday-article-hero{position:absolute;inset:0;overflow:hidden;pointer-events:none!important}
.holiday-article-hero *{pointer-events:none!important}
.holiday-article-branch{position:absolute;left:-60px;top:-40px;width:min(560px,40vw);height:auto}
.holiday-article-pendants{position:absolute;right:40px;top:0;width:min(520px,34vw);height:auto;filter:drop-shadow(0 0 2px #ffdf4780)}
@media(max-width:640px){.holiday-article-corner{width:130px}.holiday-article-branch{width:300px}.holiday-article-pendants{right:6px;width:150px}}
.holiday-article-snow{z-index:65}
.holiday-article-snow.is-paused *{animation-play-state:paused!important}
@media(prefers-reduced-motion:reduce){.holiday-article-snow{display:none}}

/* Decorations fade in once their pictures are loaded instead of popping in (owner, 12 Nov 2026). */
@keyframes ayiti-deco-in{from{opacity:0}to{opacity:1}}
#ayiti-holiday,.holiday-article-snow{animation:ayiti-deco-in .6s ease-out both}
#ayiti-holiday img,.holiday-added-header-corners img,.holiday-card-deco img{opacity:0;transition:opacity .5s ease-out}
#ayiti-holiday img.holiday-in,.holiday-added-header-corners img.holiday-in,.holiday-card-deco img.holiday-in{opacity:1}
@media(prefers-reduced-motion:reduce){#ayiti-holiday,.holiday-article-snow{animation:none}#ayiti-holiday img,.holiday-added-header-corners img,.holiday-card-deco img{transition:none}}

html.holiday-ticker-front .ticker-shell{position:relative;z-index:61}

/* Phones (owner, 18 Nov 2026): no light garland. The header corners (stars, bauble, lantern) stay. */
@media(max-width:640px){.holiday-header{display:none}.holiday-added-corner{width:clamp(96px,30vw,140px)}.holiday-added-header-corners{height:100px}}

/* Phones place the ornament below the method link; desktop stays in the hero frame. */
.intro-method{display:contents}
.intro-method-decoration{display:none}
@media(max-width:760px){
 .intro-method{display:inline-flex;flex-direction:column;align-items:center;align-self:flex-start;max-width:100%;padding-top:16px}
 .intro-method-decoration{display:block;position:relative;width:180px;max-width:100%;aspect-ratio:3/1;margin-top:14px;pointer-events:none!important}
 .intro-method-decoration .holiday-suspension{left:0;right:auto;top:0;width:100%;pointer-events:none!important;user-select:none}
}
html:has(#ayiti-holiday.is-paused) .intro-method-decoration *{animation-play-state:paused!important}
@media(prefers-reduced-motion:reduce){.intro-method-decoration *{animation:none!important}}
