/* A removable winter layer. The homepage's colours, typography and content stay intact. */
.home-christmas .logo-pill { position: relative; flex-shrink: 0; overflow: visible; }
.home-santa-hat { position: absolute; width: 44px; height: 32px; top: -13px; left: 2px; transform: rotate(-8deg); pointer-events: none; filter: drop-shadow(0 2px 2px #02061750); }
.home-season-note { border-bottom: 1px solid #c5d6ed15; background: #0b1020; color: #cbd5e1; }
.home-season-note > div { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 4px 22px; padding: 11px 20px; font-size: 12px; line-height: 1.6; }
.home-season-note a { color: #e2e8f0; text-decoration: underline; text-decoration-color: #cbd5e150; text-underline-offset: 4px; }
.home-season-note a:hover { text-decoration-color: currentColor; }
.home-season-note a > span { margin-left: 5px; color: #a6bad6; }

/* These sit outside selected panels without covering their content or changing layout. */
.home-snow-ledge { position: relative; }
.home-snow-ledge::after { content: ""; position: absolute; z-index: 2; pointer-events: none; top: -13px; left: 8px; right: 8px; height: 18px; background: url('../winter/snow-ledge.svg') center / 100% 100% no-repeat; filter: drop-shadow(0 2px 2px #050b1850); }
.home-snow-ledge-reverse::after { transform: scaleX(-1); height: 14px; top: -10px; opacity: .9; }
.home-snow-ledge-wide::after { background-image: url('../winter/snow-ledge-wide.svg'); }
/* One quiet strand of lights and small ribbon-tied sprigs, only around the gifts. */
.home-fairy-lights { position: absolute; top: -4px; left: 20px; right: 20px; height: 28px; color: #b8ad8870; pointer-events: none; }
.home-fairy-lights svg { display: block; width: 100%; height: 28px; }
.home-fairy-lights span { position: absolute; width: 4px; height: 6px; border-radius: 2px 2px 3px 3px; transform: translateX(-50%); background: #ffeac2; box-shadow: 0 0 5px 2px #e9c58b35, 0 0 14px 5px #e9c58b0d; }
.home-fairy-lights span:nth-of-type(1) { left: 8%; top: 12px; }
.home-fairy-lights span:nth-of-type(2) { left: 25%; top: 21px; }
.home-fairy-lights span:nth-of-type(3) { left: 42%; top: 12px; }
.home-fairy-lights span:nth-of-type(4) { left: 58%; top: 12px; }
.home-fairy-lights span:nth-of-type(5) { left: 75%; top: 21px; }
.home-fairy-lights span:nth-of-type(6) { left: 92%; top: 12px; }
.home-christmas #gifts .gift-card-link::before { content: ""; position: absolute; top: -18px; right: 15px; width: 68px; height: 76px; background: url('../winter/gift-sprig.svg') center / contain no-repeat; pointer-events: none; }
.home-winter-snow { position: fixed; inset: 0; z-index: 30; pointer-events: none; overflow: hidden; contain: strict; }
.home-snowflake { position: absolute; top: -12px; left: var(--left); width: var(--size); height: var(--size); border-radius: 50%; background: #edf4fc; opacity: 0; animation: winter-snowfall var(--duration) var(--delay) linear infinite; }
.home-winter-snow[data-paused="true"] { visibility: hidden; }
.home-winter-snow[data-paused="true"] .home-snowflake { animation-play-state: paused; }
.home-winter-motion { position: fixed; bottom: max(12px, env(safe-area-inset-bottom)); right: 14px; z-index: 40; min-height: 44px; padding: 10px 15px; border: 1px solid #b7c7de30; border-radius: 24px; background: #0b1223ed; color: #cbd5e1; font: inherit; font-size: 11px; cursor: pointer; box-shadow: 0 3px 16px #02061730; }
.home-winter-motion:hover { background: #182236; border-color: #b7c7de66; color: #fff; }
.home-winter-motion[hidden] { display: none; }
.home-winter-motion:focus-visible, .home-season-note a:focus-visible { outline: 2px solid #b9d1f4; outline-offset: 4px; }
.home-christmas-preview { padding: 10px 20px; text-align: center; background: #172234; color: #dbe7f7; font-size: 12px; }
.home-christmas-preview a { text-decoration: underline; margin-left: 10px; text-underline-offset: 3px; }
@keyframes winter-snowfall {
    0% { transform: translate3d(0, 0, 0); opacity: 0; }
    10%, 85% { opacity: var(--opacity, .45); }
    100% { transform: translate3d(var(--drift), var(--snow-distance, 105vh), 0); opacity: 0; }
}
@media (min-width: 768px) and (max-width: 1100px) {
    .home-christmas .site-header > div:first-child > nav,
    .home-christmas .site-header > div:first-child > div { display: none; }
    .home-christmas .site-header [data-mobile-toggle] { display: inline-flex; flex-shrink: 0; }
    .home-christmas .site-header [data-mobile-nav]:not([hidden]) { display: block; }
    .home-christmas #lessons > div > div { grid-template-columns: minmax(0, 1fr); gap: 3rem; }
}
@media (max-width: 767px) {
    .home-santa-hat { width: 40px; height: 29px; top: -11px; left: 4px; }
    .home-season-note > div { font-size: 11px; padding: 9px 16px; gap: 2px 12px; }
    .home-christmas #meet-matt .grid > * { min-width: 0; }
    .home-christmas #meet-matt h2 { overflow-wrap: anywhere; }
    .home-christmas #meet-matt .btn-primary, .home-christmas #meet-matt .btn-secondary { max-width: 100%; text-align: center; }
    .home-snow-ledge::after { height: 14px; top: -10px; }
    .home-snow-ledge-wide::after { background-image: url('../winter/snow-ledge.svg'); }
    .home-fairy-lights { left: 12px; right: 12px; }
    .home-christmas #gifts .gift-card-link::before { top: -16px; right: 9px; width: 50px; height: 62px; }
}
@media (max-width: 380px) {
    .home-christmas #gifts .gift-card-link::before { right: 7px; width: 40px; height: 50px; }
}
@media (prefers-reduced-motion: reduce) {
    .home-winter-snow, .home-winter-motion { display: none !important; }
    .home-snowflake { animation: none; }
}
