/* Seasonal layer: the snow tapers to zero at both ends and overlaps the edge by 2px. */
html[data-winter-theme="on"] :is(.main-hero .hero-banner, .main-content > .card[data-progs], #how-to-apply, .footer-top) {
    position: relative;
    overflow: visible;
}
html[data-winter-theme="on"] :is(.main-hero .hero-banner, .main-content > .card[data-progs], #how-to-apply, .footer-top)::before {
    --snow-height: 34px;
    content: "";
    position: absolute;
    inset-inline: 0;
    top: calc(2px - var(--snow-height));
    height: var(--snow-height);
    z-index: 2;
    background: url('/images/winter/snowcap-v2-01.svg') center bottom / 100% 100% no-repeat;
    /* Static alpha fade conceals the ends without a blur filter or animation. */
    -webkit-mask-image: linear-gradient(to right, transparent, #000 18px, #000 calc(100% - 18px), transparent);
    mask-image: linear-gradient(to right, transparent, #000 18px, #000 calc(100% - 18px), transparent);
    pointer-events: none;
    user-select: none;
}
html[data-winter-theme="on"] .main-content > .card[data-progs]::before { background-image: url('/images/winter/snowcap-v2-02.svg'); --snow-height: 28px; }
html[data-winter-theme="on"] #how-to-apply::before { background-image: url('/images/winter/snowcap-v2-03.svg'); --snow-height: 26px; }
html[data-winter-theme="on"] .footer-top::before { background-image: url('/images/winter/snowcap-v2-04.svg'); --snow-height: 32px; }
@media (max-width: 900px) {
    html[data-winter-theme="on"] :is(.main-hero .hero-banner, .main-content > .card[data-progs], #how-to-apply)::before { --snow-height: 21px; }
    html[data-winter-theme="on"] .footer-top::before { --snow-height: 25px; }
}
@media (max-width: 480px) {
    html[data-winter-theme="on"] :is(.main-hero .hero-banner, .main-content > .card[data-progs], #how-to-apply)::before { --snow-height: 17px; }
}
/* A small, dismissible offer. Only light opacity changes; no canvas or timers. */
.winter-promo { position: fixed; inset-inline-start: max(16px, env(safe-area-inset-left)); bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 110; color: var(--gray-900); }
.winter-promo[hidden] { display: none !important; }
.winter-promo__details { position: relative; }
.winter-promo__trigger { display: flex; align-items: flex-end; gap: 0; cursor: pointer; list-style: none; border-radius: 16px; -webkit-tap-highlight-color: transparent; }
.winter-promo__trigger::-webkit-details-marker { display: none; }
.winter-promo__trigger:focus-visible { outline: 2px solid var(--red-700); outline-offset: 5px; }
.winter-promo__tree { width: 76px; height: 108px; display: block; flex: none; }
.winter-promo__badge { display: flex; flex-direction: column; gap: 2px; margin: 0 0 12px -5px; padding: 9px 13px 10px; border: 1px solid var(--red-200); border-radius: 12px; background: #fff; box-shadow: 0 4px 14px rgba(90,20,28,.08); }
.winter-promo__badge small { color: var(--gray-500); font-size: 10px; line-height: 1.3; }
.winter-promo__badge strong { color: var(--red-800); font-size: 12px; line-height: 1.35; font-weight: 700; }
.winter-promo__panel { position: absolute; inset-inline-start: 0; bottom: calc(100% + 12px); width: 300px; max-width: calc(100vw - 32px); max-height: calc(100dvh - 170px); overflow-y: auto; padding: 24px; background: #fff; border: 1px solid var(--red-200); border-radius: 18px; box-shadow: 0 12px 36px rgba(70,15,25,.13); }
.winter-promo__eyebrow { margin: 0 40px 10px 0; font-size: 10px; line-height: 1.4; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--red-700); }
.winter-promo__panel h2 { margin: 0 28px 10px 0; font-size: 23px; font-weight: 800; line-height: 1.15; letter-spacing: -.02em; }
.winter-promo__panel p:not(.winter-promo__eyebrow) { margin: 0 0 18px; font-size: 13px; line-height: 1.6; color: var(--gray-600); }
.winter-promo__close { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: var(--gray-500); cursor: pointer; font: inherit; }
.winter-promo__close svg { width: 18px; height: 18px; }
.winter-promo__close:hover { background: var(--gray-100); }
.winter-promo__cta { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; min-height: 44px; border-radius: 10px; background: var(--red-700); color: #fff; font-size: 13px; font-weight: 700; text-decoration: none; }
.winter-promo__cta:hover { background: var(--red-800); }
.winter-promo__cta svg { width: 16px; height: 16px; }
.winter-promo__hide { display: block; margin: 12px auto -8px; min-height: 40px; padding: 6px 10px; border: 0; background: transparent; color: var(--gray-500); font: inherit; font-size: 11px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.winter-promo :is(button,a):focus-visible { outline: 2px solid var(--red-700); outline-offset: 3px; }
.winter-promo__light { animation: winter-light 3.2s ease-in-out 6; }
.winter-promo__light--two { animation-delay: .8s; }
.winter-promo__light--three { animation-delay: 1.6s; }
.winter-promo.is-paused .winter-promo__light { animation-play-state: paused; }
@keyframes winter-light { 0%,100% { opacity: .55; } 50% { opacity: 1; } }
@media (max-width: 600px) {
    .winter-promo { inset-inline-start: max(10px, env(safe-area-inset-left)); bottom: calc(12px + env(safe-area-inset-bottom)); }
    .winter-promo__tree { width: 46px; height: 66px; }
    .winter-promo__badge { margin: 0 0 5px -3px; padding: 7px 9px; border-radius: 10px; }
    .winter-promo__badge small { font-size: 9px; }
    .winter-promo__badge strong { font-size: 11px; }
    .winter-promo__panel { width: 280px; padding: 22px; max-height: calc(100dvh - 150px); }
    .winter-promo__panel h2 { font-size: 22px; }
}
@media (max-height: 480px) { .winter-promo__panel { max-height: calc(100dvh - 100px); bottom: calc(100% + 4px); } .winter-promo__tree { height: 54px; width: 38px; } }
@media (prefers-reduced-motion: reduce) { .winter-promo__light { animation: none; opacity: 1; } }
@media print {
    .winter-promo { display: none !important; }
    html[data-winter-theme="on"] :is(.main-hero .hero-banner, .main-content > .card[data-progs], #how-to-apply, .footer-top)::before { display: none; }
}
