/* Winter dressing is loaded only while the administrator's switch is on. */
body.site-v2.holiday-mode {
    --v2-bg: #101a18;
    --v2-panel: #18221f;
    --v2-panel-2: #1d2b25;
    --v2-line: #304139;
    --v2-line-strong: #44564a;
    --holiday-gold: #eed39b;
    background-color: #101a18;
}

.holiday-scenery {
    position: fixed;
    z-index: 0;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    user-select: none;
}

.holiday-aurora {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 4% 10%, #386f5026, transparent 43%),
        radial-gradient(ellipse at 98% 22%, #496a7b24, transparent 40%),
        radial-gradient(ellipse at 50% 0, #c4943520, transparent 40%);
}

#holiday-snow {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    /* Keep canvas updates separate from the detailed, static scenery. */
    will-change: transform;
}
#holiday-snow[hidden] { display: none; }
.holiday-status-full, .holiday-status-short { font: inherit; }
.holiday-status-short { display: none; }

.holiday-backdrop-tree {
    display: block;
    position: absolute;
    right: max(-38px, calc((100vw - 1320px) / 2 - 330px));
    bottom: -18px;
    width: clamp(250px, 23vw, 390px);
    height: auto;
    opacity: .92;
}

.holiday-backdrop-snowman {
    display: block;
    position: absolute;
    left: max(-24px, calc((100vw - 1320px) / 4 - 45px));
    bottom: 4px;
    width: 180px;
    height: auto;
}

.holiday-ground {
    position: absolute;
    inset: auto 0 0;
    height: clamp(28px, 5vw, 64px);
    background: url('../holiday/snowdrift.svg') center bottom / cover no-repeat;
    opacity: 1;
}

.holiday-mode > .container { position: relative; z-index: 1; }
.holiday-mode .site-footer { padding-bottom: 2.5rem; }

.holiday-mode .topnav {
    border-color: #71847766;
    /* The snow trim already defines the surface; avoid blurring the animated
       canvas behind the header on every frame of the logo transition. */
    background-color: #13201d;
    backdrop-filter: none;
    background-image: url('../holiday/snow-cap.svg');
    background-repeat: no-repeat;
    background-size: 100% 26px;
    background-position: center -10px;
    box-shadow: 0 16px 42px #0004, 0 1px 0 #e1f4ec33 inset;
}

.holiday-mode.page-home-v2 .home-hero {
    position: relative;
    isolation: isolate;
    overflow: clip;
    grid-template-columns: minmax(0, .98fr) minmax(0, 1.02fr);
    min-height: 680px;
    gap: clamp(1.5rem, 3vw, 3rem);
    margin: 1.5rem 0 2.5rem;
    padding: 7rem clamp(1.3rem, 3vw, 2.5rem) 2.8rem;
    border: 1px solid #8398854d;
    border-radius: 26px;
    background:
        radial-gradient(ellipse at 6% 0, #8eaa6320, transparent 55%),
        radial-gradient(ellipse at 90% 3%, #d8ac6821, transparent 40%),
        linear-gradient(140deg, #1e3029e8, #17231fe8 58%, #1b2826ed);
    box-shadow: 0 28px 80px #0003, 0 1px 0 #e6f3df33 inset;
}

.holiday-mode .home-hero > .holiday-garland {
    position: absolute;
    z-index: 2;
    top: -12px;
    left: 50%;
    width: max(100%, 720px);
    max-width: none;
    height: auto;
    transform: translateX(-50%);
    pointer-events: none;
    user-select: none;
}

.holiday-mode .home-hero > .hero-copy,
.holiday-mode .home-hero > .hero-cockpit { position: relative; z-index: 1; }
.holiday-mode.page-home-v2 .hero-status { color: #f2d7a5; border-color: #d2b26e5c; background: #c8a05b0c; letter-spacing: .035em; font-size: .75rem; }
.holiday-mode.page-home-v2 .hero-status > span { background: #edcf8d; animation: none; box-shadow: 0 0 10px #e9bb5b75; }
.holiday-mode.page-home-v2 .logo-hero { margin: .55rem 0 1.4rem; color: #b8c8bb; opacity: 1; }
.holiday-mode.page-home-v2 .hero-headline { font-size: clamp(2.9rem, 5.7vw, 5rem); }
.holiday-mode.page-home-v2 .hero-headline em { color: #b8efc9; text-shadow: 0 0 38px #89cda020; }
.holiday-wish { display: flex; align-items: center; gap: .55rem; color: #eed39b; font: .84rem var(--font-mono); margin: 1.15rem 0 1.4rem; }
.holiday-wish > span[aria-hidden] { color: #ffe8ad; font-size: 1.25rem; }
#holiday-countdown { font-size: .875rem; line-height: 1.5; }
.holiday-mode.page-home-v2 .tagline { font-size: .75rem; color: #a4b6ae; line-height: 1.6; }
.holiday-mode.page-home-v2 .hero-pitch { color: #c3cec7; font-size: 1rem; }
.holiday-mode.page-home-v2 .hero-cta,
.holiday-mode.page-home-v2 .hero-resume-cta { box-shadow: 0 8px 32px #78ff8b1a, 0 1px 0 #fff4 inset; }
.holiday-mode.page-home-v2 .hero-cockpit {
    border-color: #9aa98a5e;
    background:
        url('../holiday/snow-cap.svg') center -7px / 100% 31px no-repeat,
        radial-gradient(ellipse at 85% 0, #e6b56312, transparent 50%),
        #14201df2;
    box-shadow: 0 25px 60px #0004;
}
.holiday-mode.page-home-v2 .hero-cockpit::after { animation: none; background: none; }
.holiday-mode .cockpit-topline { padding-top: 1.2rem; min-height: 56px; }
.holiday-mode .cockpit-live { color: #d8c48b; }
.holiday-mode .cockpit-live i { background: #d8c48b; }
.holiday-mode .hero-progress-orbit { filter: drop-shadow(0 0 20px #a1d3aa14); }
.holiday-mode .track-section .card {
    border-color: #78927d61;
    overflow: visible;
    padding-top: 1.65rem;
    background-image: linear-gradient(145deg, #22362a, #19241f 55%);
    background-size: 100% 100%;
    box-shadow: 0 16px 38px #0002;
}
.holiday-mode .track-section .card:hover { border-color: #c8d9b1a6; box-shadow: 0 18px 42px #0003, 0 0 22px #d5b85a0a; }
body.holiday-mode.page-home-v2 .track-section .card::before {
    top: -12px;
    right: -1px;
    bottom: auto;
    left: -1px;
    z-index: 2;
    width: auto;
    height: 36px;
    background: url('../holiday/snow-cap.svg') center / 100% 100% no-repeat;
    filter: drop-shadow(0 2px 1px #0e2d2370);
    opacity: 1;
    pointer-events: none;
}
.holiday-mode.page-home-v2 .track-section .card:nth-child(3n + 2)::before { transform: scaleX(-1); }
.holiday-mode .track-section .card-footer { border-radius: 0 0 11px 11px; }
.holiday-mode .progress-panel,
.holiday-mode .weekly-banner { border-color: #8f9b6e50; background-color: #1a2921; }
.holiday-mode .catalog-kicker,
.holiday-mode .track-step { color: #ddc697; }

.holiday-snow-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem .65rem;
    border: 1px solid #a2b8b266;
    border-radius: 8px;
    background: #172722f5;
    color: #dfede5;
    font: .7rem var(--font-mono);
    cursor: pointer;
}
.holiday-menu-toggle { display: none; }
.holiday-snow-toggle[hidden], .holiday-menu-toggle[hidden] { display: none !important; }
.holiday-menu-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.holiday-snow-toggle svg { width: 16px; height: 16px; fill: none; stroke: #cae8ec; stroke-width: 1.3; stroke-linecap: round; }
.holiday-snow-toggle[aria-pressed="false"] { color: #bac9c0; background: #18221ff5; }
.holiday-snow-toggle:hover { border-color: #dce9de; }
.holiday-snow-toggle:focus-visible { outline: 2px solid #e8d09a; outline-offset: 4px; }

@media (max-width: 900px) {
    .holiday-menu-ready .holiday-mode .topnav { display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 12px; }
    .holiday-mode .topnav .topnav-brand { width: auto; min-width: 0; }
    .holiday-menu-ready .holiday-mode .holiday-menu-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--v2-line-strong); border-radius: 8px; background: var(--v2-panel); color: var(--v2-text); font: inherit; font-size: .875rem; font-weight: 500; line-height: 1.4; cursor: pointer; }
    .holiday-menu-ready .holiday-mode .topnav-links { display: none; grid-column: 1 / -1; width: 100%; }
    .holiday-menu-ready .holiday-mode .holiday-menu-toggle[aria-expanded="true"] + .topnav-links { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; padding-top: 8px; border-top: 1px solid var(--v2-line); }
    .holiday-mode .topnav .topnav-links a, .holiday-mode .topnav .topnav-links button { justify-content: flex-start; min-height: 44px; padding: 10px 12px; font-size: .875rem; }
}

@media (max-width: 1050px) {
    .holiday-mode.page-home-v2 .home-hero { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; min-height: auto; }
    .holiday-mode.page-home-v2 .hero-headline { font-size: clamp(3.2rem, 7vw, 5rem); }
    .holiday-mode.page-home-v2 .hero-cockpit { max-width: 760px; width: 100%; }
}
@media (max-width: 420px) {
    .holiday-menu-ready .holiday-mode .topnav { column-gap: 8px; }
    .holiday-menu-ready .holiday-mode .holiday-menu-toggle { min-width: 44px; padding: 8px; justify-content: center; gap: 0; }
    .holiday-mode .holiday-menu-toggle > span { display: none; }
    .holiday-mode .topnav-brand .brand-graphic { font-size: 1.5rem; }
    .holiday-mode .topnav-brand .brand-graphic.is-collapsed { font-size: 1.8rem; }
}
@media (max-width: 600px) {
    .holiday-backdrop-tree { right: -70px; bottom: -18px; width: 190px; opacity: .42; }
    .holiday-backdrop-snowman { left: -20px; width: 100px; opacity: .7; }
    .holiday-mode.page-home-v2 .home-hero { margin: 1rem 0 2rem; padding: 4rem 1rem 1.5rem; border-radius: 19px; }
    .holiday-mode.page-home-v2 .hero-headline { font-size: clamp(2.65rem, 11.7vw, 4rem); }
    .holiday-mode.page-home-v2 .hero-status { font-size: .75rem; padding: .35rem .55rem; margin-bottom: .5rem; }
    .holiday-status-full { display: none; }
    .holiday-status-short { display: inline; }
    .holiday-mode.page-home-v2 .coop-announcement { padding: 12px; gap: 12px; }
    .holiday-mode .coop-announcement-description { display: none; }
    .holiday-mode .coop-announcement-kicker { font-size: .75rem; letter-spacing: .06em; }
    .holiday-mode .coop-announcement-copy { gap: 4px; }
    .holiday-mode.page-home-v2 .logo-hero { display: none; }
    .holiday-mode .holiday-wish { font-size: .875rem; gap: .4rem; margin: .75rem 0; }
    .holiday-mode.page-home-v2 .tagline { font-size: .75rem; letter-spacing: .04em; margin-bottom: .5rem; }
    .holiday-mode.page-home-v2 .hero-pitch { margin-bottom: .75rem; font-size: .9375rem; line-height: 1.5; }
    .holiday-mode.page-home-v2 .hero-headline { margin-bottom: .75rem; }
    .holiday-mode.page-home-v2 .logo-hero { margin-bottom: 1rem; }
    .holiday-mode.page-home-v2 .hero-note { font-size: .8125rem; }
    .holiday-mode.page-home-v2 .hero-proof { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem .3rem; }
    .holiday-mode.page-home-v2 .hero-proof li { min-width: 0; padding: 0 .7rem; }
    .holiday-mode.page-home-v2 .hero-proof li:nth-child(odd) { padding-left: 0; border-left: 0; }
    .holiday-mode .home-hero > .holiday-garland { width: max(100%,560px); top: -9px; }
}
@media (max-width: 360px) {
    .holiday-mode.page-home-v2 .home-hero { padding-top: 3.5rem; }
    .holiday-mode .home-hero > .holiday-garland { width: max(100%,480px); }
    .holiday-mode.page-home-v2 .hero-resume-cta { font-size: .875rem; padding: .75rem .65rem; }
}
@media (prefers-reduced-motion: reduce) {
    .holiday-mode *, .holiday-mode *::before, .holiday-mode *::after { animation: none !important; }
}
