/* Christmas, 1 to 26 December (Helpers/Seasonal.cs). Loaded only in that window, so nothing here
   touches the Hub the rest of the year. Purely decorative: no layout changes, pointer-events off. */

/* Fairy lights hanging under the top bar. z-index -1 inside the bar keeps them under its menus. */
.xmas-lights{position:absolute;left:0;right:0;top:100%;height:22px;margin-top:-2px;z-index:-1;
  pointer-events:none;overflow:hidden;display:flex;justify-content:space-around;padding:0 12px}
.xmas-lights::before{content:"";position:absolute;left:0;right:0;top:0;height:8px;
  background:radial-gradient(ellipse 34px 8px at 50% 0,transparent 70%,rgba(27,39,85,.45) 72%,transparent 80%) 0 0/68px 8px repeat-x}
.xmas-bulb{position:relative;width:7px;height:11px;margin-top:5px;border-radius:50% 50% 50% 50%/40% 40% 60% 60%;
  background:var(--b);box-shadow:0 0 6px 1px var(--b);animation:xmasTwinkle 2.4s ease-in-out infinite;animation-delay:var(--d)}
.xmas-bulb::before{content:"";position:absolute;left:1px;top:-3px;width:5px;height:4px;border-radius:1px;background:#1B2755}
.xmas-bulb:nth-child(odd){margin-top:7px}
@keyframes xmasTwinkle{0%,100%{opacity:1}50%{opacity:.35;box-shadow:0 0 2px 0 var(--b)}}

/* Snow: one canvas over the page, drawn by xmas.js. Pale blue flakes, because white vanishes on the canvas. */
.xmas-snow{position:fixed;inset:0;width:100%;height:100%;pointer-events:none;z-index:55}

/* Snow on / off, beside the clock. */
.xmas-toggle{border:1px solid #E1EFF6;background:#fff;border-radius:999px;height:32px;padding:0 11px;
  font:600 12px Heebo,sans-serif;color:#1B2755;cursor:pointer;display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.xmas-toggle:hover{border-color:#135CFD;color:#135CFD}
.xmas-toggle[aria-pressed="false"]{color:#8A98B3}

/* Summit in a Santa hat (Home hero, sign-in page). The wrapper takes the image's box; aspect-ratio makes its width
   follow the image exactly, so the hat's percentages land on his head at every size. Per pose: --ar is the image's
   width / height, and the hat's place is measured on that picture. */
.xmas-summit{--ar:511/760;aspect-ratio:var(--ar);width:auto}
.xmas-summit img{height:100%;width:100%;display:block}
.xmas-hat{position:absolute;left:24%;top:-12%;width:62%;height:auto;transform:rotate(8deg);transform-origin:46% 92%}
.xmas-summit.wave{--ar:332/520}
.xmas-summit.wave .xmas-hat{left:25%;top:-13%;width:66%}

/* Countdown on the Home hero eyebrow. */
.xmas-chip{display:inline-flex;align-items:center;gap:6px;margin-left:4px;padding:4px 12px;border-radius:999px;
  background:#FDECEC;color:#B4232A;font-weight:800;letter-spacing:.06em;white-space:nowrap}

/* The accent after big headings becomes a red bauble with a gold cap. */
.xmas .dd-hero h1 .dot,.xmas h1 .dot{position:relative;background:#D42F35}
.xmas .dd-hero h1 .dot::before,.xmas h1 .dot::before{content:"";position:absolute;left:30%;top:-26%;width:40%;height:28%;
  border-radius:2px;background:#F5C542}

/* Snow inside one panel (the sign-in hero) instead of over the whole page: white, on the dark band. */
.xmas-snow.in{position:absolute;inset:0;z-index:1}
/* Lights along the top of a page with no top bar (sign-in). */
.xmas-lights.xmas-top{position:fixed;top:0;margin-top:0;z-index:5}
/* The sign-in speech balloon is tied to Summit's height; lift it clear of the hat. */
.xmas .summit-hi{bottom:calc(min(62vh,560px) * 1.12 + 14px)}

@media (max-width:860px){.xmas-toggle span{display:none}}
@media (prefers-reduced-motion:reduce){.xmas-bulb{animation:none}.xmas-snow,.xmas-toggle{display:none}}
@media print{.xmas-lights,.xmas-snow,.xmas-toggle{display:none!important}}
