/* Winter mode — soft snow, mounds on card tops, classic hanging lights */

.site-winter {
    pointer-events: none;
}

.site-winter-defs {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.site-winter-snow {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 900;
    pointer-events: none;
}

.site-winter-garland {
    pointer-events: none;
    z-index: 1030;
}

.site-winter-garland--nav {
    position: fixed;
    left: 0;
    right: 0;
    top: calc(var(--site-header-h, 92px) - 4px);
    height: 82px;
    z-index: 1030;
}

.site-winter-garland--nav .site-winter-garland__svg {
    display: block;
    width: 100%;
    height: 82px;
    overflow: visible;
}

.site-winter-garland--side {
    position: fixed;
    top: calc(var(--site-header-h, 92px) + 40px);
    bottom: 8px;
    width: 58px;
    z-index: 35;
}

.site-winter-garland--left { left: 0; }
.site-winter-garland--right { right: 0; }

.site-winter-garland--side .site-winter-garland__svg {
    display: block;
    width: 58px;
    height: 100%;
    max-height: 920px;
    overflow: visible;
}

.site-winter-garland__cord {
    stroke: #2a4528;
    stroke-width: 2.6;
    stroke-linecap: round;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .3));
}

.site-winter-garland__cord--soft {
    stroke: #4a6b45;
    stroke-width: 4.2;
    opacity: .35;
    filter: none;
}

.site-winter-bulb {
    color: inherit;
    transform-box: fill-box;
    transform-origin: 50% 0%;
    animation: site-winter-twinkle 2.4s ease-in-out infinite;
    animation-delay: calc(var(--i) * .14s);
}

.site-winter-bulb use {
    color: inherit;
}

@keyframes site-winter-twinkle {
    0%, 100% { opacity: .7; filter: brightness(.9); }
    40% { opacity: 1; filter: brightness(1.22); }
    65% { opacity: .82; filter: brightness(1.05); }
}

@media (min-width: 1200px) {
    body.is-winter .container,
    body.is-winter .site-header__bar > .container,
    body.is-winter .site-topbar__inner {
        padding-left: max(var(--bs-gutter-x, .75rem), 42px);
        padding-right: max(var(--bs-gutter-x, .75rem), 42px);
    }
}

@media (max-width: 991.98px) {
    .site-winter-garland--side { display: none; }
    .site-winter-garland--nav {
        height: 58px;
        top: calc(var(--site-header-h, 92px) - 2px);
    }
    .site-winter-garland--nav .site-winter-garland__svg { height: 58px; }
}

@media (prefers-reduced-motion: reduce) {
    .site-winter-bulb {
        animation: none !important;
        opacity: .9;
    }
}
