/* ============================================================
   CHRISTMAS LOOK FOR docs.squirro.com: "Alpine Christmas"
   ============================================================

   A drop-in overlay for the stock theme (sphinx_book_theme + custom.css).
   Every rule is scoped to `html.sq-season`, so the look is on only while
   christmas.js has put that class on <html> (1 December to 6 January by
   default), and the reader can switch it off with the snowflake button.
   Removing this file and christmas.js restores the site exactly.

   Principles, from the inspiration research:
   - Decoration only. Body text, links, admonitions and code blocks keep their
     colours: red and green already mean danger and success there.
   - Every decoration is a pseudo-element or a background, absolutely placed,
     with `pointer-events: none`, so nothing shifts the layout or blocks a click.
   - Motion is short and finite (under 5 s), and none at all under
     `prefers-reduced-motion`. Nothing prints.
   - Dark mode keys on `html[data-theme='dark']`, as custom.css does, because
     the theme switch can override the OS setting.

   Palette (brand colours plus four winter tones):
     Ocean Navy   #001D32   night sky, the hero (unchanged)
     Orange       #EC6A2B   lantern light
     Aqua         #2FCEC3   ice light
     Snow         #F4F8FB   snow, bulbs
     Ice          #CFE6F5   wire, hairlines
     Gold         #F2C14E   fairy lights (dark surfaces only)
     Fir          #1F5E4A   light-mode accent;  fir tint #7FCFA9 in dark mode
     Swiss red    #DA291C   the squirrel's hat only
   ============================================================ */


/* --- 1. Home page hero: snow-globe night over the Alps --------------------

   Layers, bottom to top (all z-index 1, under `.sq-hero-inner` at z-index 2):
     .sq-hero::before           glow of the fairy lights (twinkles 3 times)
     .sq-hero-shapes::before    snow, settling for 5 s then still
     .sq-hero-shapes::after     Alpine ridge with snowcaps along the bottom
     .sq-hero::after            the string of fairy lights along the top
   custom.css uses none of these four pseudo-elements. */

html.sq-season .sq-hero::before,
html.sq-season .sq-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 44px;
    z-index: 1;
    pointer-events: none;
    background-repeat: repeat-x;
    background-size: 240px 44px;
}

/* The string of lights: an ice-blue wire sagging between hooks, six bulbs per
   240px tile in gold, orange, fir, snow, aqua and gold. */
html.sq-season .sq-hero::after {
    background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='44' viewBox='0 0 240 44'><path d='M0 4 Q60 28 120 4 Q180 28 240 4' fill='none' stroke='%23CFE6F5' stroke-opacity='.45' stroke-width='1.2'/><g fill='%23CFE6F5' fill-opacity='.75'><rect x='18' y='9.7' width='4' height='3' rx='.6'/><rect x='58' y='15' width='4' height='3' rx='.6'/><rect x='98' y='9.7' width='4' height='3' rx='.6'/><rect x='138' y='9.7' width='4' height='3' rx='.6'/><rect x='178' y='15' width='4' height='3' rx='.6'/><rect x='218' y='9.7' width='4' height='3' rx='.6'/></g><ellipse cx='20' cy='17.5' rx='3.4' ry='4.8' fill='%23F2C14E'/><ellipse cx='60' cy='22.8' rx='3.4' ry='4.8' fill='%23EC6A2B'/><ellipse cx='100' cy='17.5' rx='3.4' ry='4.8' fill='%237FCFA9'/><ellipse cx='140' cy='17.5' rx='3.4' ry='4.8' fill='%23F4F8FB'/><ellipse cx='180' cy='22.8' rx='3.4' ry='4.8' fill='%232FCEC3'/><ellipse cx='220' cy='17.5' rx='3.4' ry='4.8' fill='%23F2C14E'/></svg>");
}

/* The glow behind each bulb, same tile and positions, blurred. */
html.sq-season .sq-hero::before {
    background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='44' viewBox='0 0 240 44'><filter id='b' x='-1' y='-1' width='3' height='3'><feGaussianBlur stdDeviation='3.2'/></filter><g filter='url(%23b)' fill-opacity='.55'><circle cx='20' cy='17.5' r='8' fill='%23F2C14E'/><circle cx='60' cy='22.8' r='8' fill='%23EC6A2B'/><circle cx='100' cy='17.5' r='8' fill='%237FCFA9'/><circle cx='140' cy='17.5' r='8' fill='%23F4F8FB'/><circle cx='180' cy='22.8' r='8' fill='%232FCEC3'/><circle cx='220' cy='17.5' r='8' fill='%23F2C14E'/></g></svg>");
    animation: sq-twinkle 1.5s ease-in-out 3;
}

@keyframes sq-twinkle {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.25; }
}

/* Snow: a 320px tile of 46 flakes of varied size and opacity. The layer starts
   160px higher and drifts down to rest, like a snow globe settling. Faded on
   the left, behind the title and search field, so the text keeps its contrast. */
html.sq-season .sq-hero-shapes::before {
    content: '';
    position: absolute;
    top: -160px;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    opacity: 0.6;
    background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='320' height='320' viewBox='0 0 320 320'><g fill='%23ffffff'><circle cx='120' cy='104' r='1.8' fill-opacity='0.66'/><circle cx='106' cy='1' r='1' fill-opacity='0.42'/><circle cx='36' cy='151' r='1.4' fill-opacity='0.7'/><circle cx='133' cy='190' r='0.8' fill-opacity='0.4'/><circle cx='156' cy='202' r='1' fill-opacity='0.79'/><circle cx='210' cy='190' r='2.2' fill-opacity='0.4'/><circle cx='95' cy='58' r='1' fill-opacity='0.59'/><circle cx='115' cy='302' r='2.2' fill-opacity='0.76'/><circle cx='65' cy='168' r='1' fill-opacity='0.85'/><circle cx='18' cy='184' r='1' fill-opacity='0.56'/><circle cx='135' cy='58' r='0.8' fill-opacity='0.5'/><circle cx='204' cy='81' r='1.2' fill-opacity='0.54'/><circle cx='216' cy='52' r='1' fill-opacity='0.68'/><circle cx='17' cy='148' r='1.2' fill-opacity='0.85'/><circle cx='229' cy='316' r='1.2' fill-opacity='0.56'/><circle cx='11' cy='96' r='0.8' fill-opacity='0.87'/><circle cx='159' cy='1' r='1.8' fill-opacity='0.89'/><circle cx='209' cy='316' r='1' fill-opacity='0.75'/><circle cx='15' cy='302' r='1.4' fill-opacity='0.72'/><circle cx='103' cy='122' r='1.2' fill-opacity='0.4'/><circle cx='169' cy='67' r='1.8' fill-opacity='0.59'/><circle cx='27' cy='153' r='1.8' fill-opacity='0.47'/><circle cx='37' cy='230' r='1' fill-opacity='0.76'/><circle cx='66' cy='216' r='2.2' fill-opacity='0.81'/><circle cx='294' cy='84' r='2.2' fill-opacity='0.62'/><circle cx='113' cy='180' r='1' fill-opacity='0.37'/><circle cx='158' cy='234' r='1.2' fill-opacity='0.46'/><circle cx='313' cy='238' r='1' fill-opacity='0.46'/><circle cx='309' cy='115' r='0.8' fill-opacity='0.49'/><circle cx='263' cy='311' r='1.8' fill-opacity='0.35'/><circle cx='101' cy='32' r='0.8' fill-opacity='0.84'/><circle cx='147' cy='53' r='1.2' fill-opacity='0.84'/><circle cx='189' cy='199' r='0.8' fill-opacity='0.38'/><circle cx='300' cy='250' r='1' fill-opacity='0.44'/><circle cx='206' cy='276' r='1' fill-opacity='0.89'/><circle cx='100' cy='254' r='0.8' fill-opacity='0.4'/><circle cx='168' cy='39' r='1.8' fill-opacity='0.73'/><circle cx='64' cy='71' r='1' fill-opacity='0.5'/><circle cx='72' cy='259' r='1.4' fill-opacity='0.65'/><circle cx='46' cy='118' r='1.2' fill-opacity='0.49'/><circle cx='262' cy='291' r='1' fill-opacity='0.42'/><circle cx='250' cy='150' r='1.4' fill-opacity='0.6'/><circle cx='280' cy='20' r='1' fill-opacity='0.7'/><circle cx='240' cy='230' r='2' fill-opacity='0.5'/></g></svg>");
    background-size: 320px 320px;
    -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.45) 45%, #000 70%);
    mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.45) 45%, #000 70%);
    animation: sq-snow-settle 5s cubic-bezier(0.25, 0.6, 0.3, 1) 1 both;
}

@keyframes sq-snow-settle {
    from { transform: translateY(0);     opacity: 0; }
    15%  {                               opacity: 0.6; }
    to   { transform: translateY(160px); opacity: 0.6; }
}

/* The Alps along the bottom edge, peaks on the right where the hero is empty,
   low on the left under the buttons. 46px high, so even the highest peak stays
   below the search field, which ends 48px above the bottom edge at every
   desktop width. */
html.sq-season .sq-hero-shapes::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 46px;
    pointer-events: none;
    background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 76' preserveAspectRatio='none'><path d='M0 76V66L160 60L300 64L440 54L560 60L680 40L760 50L860 14L940 40L1010 26L1080 44L1140 30L1200 38V76Z' fill='%23F4F8FB' fill-opacity='.09'/><path d='M680 40L700 45L712 41L724 46L760 50L720 37Z M860 14L840 26L852 23L862 30L874 24L886 29L900 24Z M1010 26L996 32L1008 31L1018 35L1030 30Z M1140 30L1128 36L1140 35L1150 38L1160 33Z' fill='%23F4F8FB' fill-opacity='.28'/><path d='M0 76V70L200 66L380 70L520 64L700 68L820 52L900 62L1000 50L1120 60L1200 54V76Z' fill='%23F4F8FB' fill-opacity='.07'/></svg>") no-repeat bottom / 100% 100%;
}

/* Up to 768px, custom.css trims the hero's bottom padding, and the search field
   ends only 32px above the bottom edge: flatten the ridge so no peak shows
   through the field. Same breakpoint as custom.css, so the two flip together. */
@media (max-width: 768px) {
    html.sq-season .sq-hero-shapes::after {
        height: 28px;
    }

    /* The text spans the whole hero here, so fade the snow evenly. */
    html.sq-season .sq-hero-shapes::before {
        -webkit-mask-image: linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35));
        mask-image: linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35));
    }
}

/* The soft circles of custom.css become warm bokeh, as if out-of-focus lights.
   Screen only, so print keeps the plain circles. The third circle keeps its
   fainter share: 0.05 of 0.08 in custom.css, so 0.075 of 0.12 here. */
@media screen {
    html.sq-season .sq-shape {
        background: radial-gradient(circle at 50% 50%, rgba(242, 193, 78, 0.9), rgba(242, 193, 78, 0) 70%);
        opacity: 0.12;
    }

    html.sq-season .sq-shape-3 {
        background: radial-gradient(circle at 50% 50%, rgba(47, 206, 195, 0.9), rgba(47, 206, 195, 0) 70%);
        opacity: 0.075;
    }
}

/* The two product cards: snow falling on their navy bars. */
html.sq-season div.sq-pillar-icon-neo,
html.sq-season div.sq-pillar-icon-graphite,
html.sq-season div.sq-pillar-icon-security {
    background:
        url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='48' viewBox='0 0 160 48'><g fill='%23ffffff'><circle cx='12' cy='10' r='1' fill-opacity='.5'/><circle cx='34' cy='30' r='1.4' fill-opacity='.35'/><circle cx='58' cy='14' r='.8' fill-opacity='.6'/><circle cx='80' cy='38' r='1.2' fill-opacity='.4'/><circle cx='104' cy='8' r='1.6' fill-opacity='.3'/><circle cx='126' cy='26' r='1' fill-opacity='.55'/><circle cx='148' cy='40' r='.8' fill-opacity='.5'/><circle cx='70' cy='4' r='1' fill-opacity='.35'/><circle cx='22' cy='42' r='.8' fill-opacity='.45'/></g></svg>") 0 0 / 160px 48px repeat-x,
        linear-gradient(135deg, #002d4e, #001D32);
}


/* --- 2. Headings: a little string of lights under every h2 ----------------

   Replaces the 50px orange bar of custom.css with five bulbs on a wire, the
   orange bulb first so the brand accent still leads. h3 keeps its grey bar. */

html.sq-season h2:after {
    width: 60px;
    height: 11px;
    bottom: -14px;
    background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='60' height='11' viewBox='0 0 60 11'><path d='M0 2 Q15 5 30 2 Q45 5 60 2' fill='none' stroke='%2385929E' stroke-width='.8'/><g fill='%2385929E'><rect x='4.9' y='2.76' width='2.2' height='1.6' rx='.4'/><rect x='16.9' y='3.24' width='2.2' height='1.6' rx='.4'/><rect x='28.9' y='1.80' width='2.2' height='1.6' rx='.4'/><rect x='40.9' y='3.24' width='2.2' height='1.6' rx='.4'/><rect x='52.9' y='2.76' width='2.2' height='1.6' rx='.4'/></g><ellipse cx='6' cy='7.16' rx='2.5' ry='3.1' fill='%23EC6A2B'/><ellipse cx='18' cy='7.64' rx='2.5' ry='3.1' fill='%231F5E4A'/><ellipse cx='30' cy='6.20' rx='2.5' ry='3.1' fill='%23C8901E'/><ellipse cx='42' cy='7.64' rx='2.5' ry='3.1' fill='%231A9E95'/><ellipse cx='54' cy='7.16' rx='2.5' ry='3.1' fill='%23EC6A2B'/></svg>") no-repeat left center / 60px 11px;
}

html.sq-season[data-theme='dark'] h2:after {
    background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='60' height='11' viewBox='0 0 60 11'><path d='M0 2 Q15 5 30 2 Q45 5 60 2' fill='none' stroke='%23CFE6F5' stroke-opacity='.5' stroke-width='.8'/><g fill='%23CFE6F5'><rect x='4.9' y='2.76' width='2.2' height='1.6' rx='.4'/><rect x='16.9' y='3.24' width='2.2' height='1.6' rx='.4'/><rect x='28.9' y='1.80' width='2.2' height='1.6' rx='.4'/><rect x='40.9' y='3.24' width='2.2' height='1.6' rx='.4'/><rect x='52.9' y='2.76' width='2.2' height='1.6' rx='.4'/></g><ellipse cx='6' cy='7.16' rx='2.5' ry='3.1' fill='%23EC6A2B'/><ellipse cx='18' cy='7.64' rx='2.5' ry='3.1' fill='%237FCFA9'/><ellipse cx='30' cy='6.20' rx='2.5' ry='3.1' fill='%23F2C14E'/><ellipse cx='42' cy='7.64' rx='2.5' ry='3.1' fill='%232FCEC3'/><ellipse cx='54' cy='7.16' rx='2.5' ry='3.1' fill='%23EC6A2B'/></svg>");
}


/* --- 3. Sidebar: a snowflake marks the page you are on --------------------

   Only the deepest current link, not its ancestors. Drawn with a mask so it
   takes the link's own colour in light and dark mode. */

html.sq-season nav.bd-links li.current:not(:has(li.current)) > a::after {
    content: '';
    display: inline-block;
    width: 0.75em;
    height: 0.75em;
    margin-left: 0.4em;
    vertical-align: -0.05em;
    background-color: currentColor;
    -webkit-mask: var(--sq-snowflake) no-repeat center / contain;
    mask: var(--sq-snowflake) no-repeat center / contain;
}

html.sq-season {
    --sq-snowflake: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><g fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'><path d='M12 12V2M9 4.5L12 7.2L15 4.5'/><path transform='rotate(60 12 12)' d='M12 12V2M9 4.5L12 7.2L15 4.5'/><path transform='rotate(120 12 12)' d='M12 12V2M9 4.5L12 7.2L15 4.5'/><path transform='rotate(180 12 12)' d='M12 12V2M9 4.5L12 7.2L15 4.5'/><path transform='rotate(240 12 12)' d='M12 12V2M9 4.5L12 7.2L15 4.5'/><path transform='rotate(300 12 12)' d='M12 12V2M9 4.5L12 7.2L15 4.5'/></g></svg>");
}


/* --- 4. Logo (OPTIONAL): set by LOGO in christmas.js ---------------------

   The one move that touches the brand mark, so it needs Marketing's go.
     LOGO = 'replace'  (html.sq-logo-replace)  the squirrel gives way to a
                        Christmas hat in the squirrel's own orange-to-red
                        gradient, beside the unchanged "squirro docs" wordmark
     LOGO = 'hat'      (html.sq-logo-hat)      the squirrel wears a small hat
     LOGO = 'none'                             the logo stays as it is
   Both are positioned for the current logo.png (319x64, shown at 198x40 after
   18px of padding); recheck the numbers if the logo changes. */

html.sq-season .navbar-brand {
    position: relative;
}

/* 'replace': cut the squirrel (the left 50 of 319px) out of the logo image,
   and draw the hat in its place, its brim on the baseline of the wordmark. */
html.sq-season.sq-logo-replace .navbar-brand img.logo__image {
    clip-path: inset(0 0 0 15.7%);
}

html.sq-season.sq-logo-replace .navbar-brand::after {
    content: '';
    position: absolute;
    left: 20px;
    top: 4px;
    width: 30px;
    height: 25.5px;
    transform: rotate(-8deg);
    transform-origin: 50% 88%;
    pointer-events: none;
    background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 34'><defs><linearGradient id='g' x1='0' y1='0' x2='.35' y2='1'><stop offset='0' stop-color='%23F39A2E'/><stop offset='.45' stop-color='%23EC6A2B'/><stop offset='1' stop-color='%23D42A1C'/></linearGradient></defs><path d='M8 25C9 21 10 16 13 13C11 11 8 10 5 11C7 6 12 3 18 4C27 6 32 15 33 25Z' fill='url(%23g)'/><path d='M5 11C8 10 11 11 13 13C11 16 10 21 9 25L13 25C14 20 15.5 15.5 18.5 12.5C15 10 9 9 5 11Z' fill='%238E1409' fill-opacity='.4'/><path d='M29.5 21C28.5 14.5 25 9 19 6.5' fill='none' stroke='%23ffffff' stroke-opacity='.4' stroke-width='1.3' stroke-linecap='round'/><circle cx='5.5' cy='12' r='4.3' fill='%23F4F8FB' stroke='%23AFC0CD' stroke-width='.6'/><circle cx='4.2' cy='10.6' r='1.3' fill='%23ffffff'/><path d='M5 23.5Q20.5 20.5 36 23.5A3.5 3.5 0 0 1 36 30.5Q20.5 27.5 5 30.5A3.5 3.5 0 0 1 5 23.5Z' fill='%23F4F8FB' stroke='%23AFC0CD' stroke-width='.6'/><path d='M3 28.5Q4 30.5 5 30.5Q20.5 27.5 36 30.5Q37.5 30.4 38.4 28.6Q20.5 25.8 3 28.5Z' fill='%23D5E1EA'/><g fill='%23ffffff'><circle cx='9' cy='24.6' r='.8'/><circle cx='15' cy='23.6' r='.8'/><circle cx='21' cy='23.2' r='.8'/><circle cx='27' cy='23.6' r='.8'/><circle cx='33' cy='24.4' r='.8'/></g></svg>") no-repeat center / contain;
}

/* 'hat': sized to the squirrel's head, only about 10px wide on screen. The
   brim sits between the ear and the snout, above the eye, and the tip flops
   backwards with the pompom behind the head. */
html.sq-season.sq-logo-hat .navbar-brand::after {
    content: '';
    position: absolute;
    left: 29px;
    top: -8px;
    width: 16px;
    height: 13.6px;
    transform: rotate(-6deg);
    transform-origin: 50% 88%;
    pointer-events: none;
    background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 34'><path d='M8 25C9 21 10 16 13 13C11 11 8 10 5 11C7 6 12 3 18 4C27 6 32 15 33 25Z' fill='%23DA291C'/><path d='M5 11C8 10 11 11 13 13C11 16 10 21 9 25L13 25C14 20 15.5 15.5 18.5 12.5C15 10 9 9 5 11Z' fill='%239E170D' fill-opacity='.55'/><path d='M29.5 21C28.5 14.5 25 9 19 6.5' fill='none' stroke='%23ffffff' stroke-opacity='.35' stroke-width='1.6' stroke-linecap='round'/><circle cx='5.5' cy='12' r='4.3' fill='%23F4F8FB' stroke='%23AFC0CD' stroke-width='.9'/><path d='M5 23.5Q20.5 20.5 36 23.5A3.5 3.5 0 0 1 36 30.5Q20.5 27.5 5 30.5A3.5 3.5 0 0 1 5 23.5Z' fill='%23F4F8FB' stroke='%23AFC0CD' stroke-width='.9'/><path d='M3 28.5Q4 30.5 5 30.5Q20.5 27.5 36 30.5Q37.5 30.4 38.4 28.6Q20.5 25.8 3 28.5Z' fill='%23D5E1EA'/></svg>") no-repeat center / contain;
}


/* --- 5. Footer greeting and the on/off button (both written by christmas.js) */

/* The greeting gets a line of its own under the footer row. Inside the row,
   custom.css's divider (`.footer-item:has(p) + .footer-item:has(p)`, 0,3,3)
   would hang on its left whenever it wraps, which follows the footer's width,
   not the viewport's. This selector (0,4,2) beats that rule. */
.sq-season-greeting {
    display: none;
}

html.sq-season footer.bd-footer-content .footer-item.sq-season-greeting {
    display: block;
    flex-basis: 100%;
    border-left: 0;
    padding-left: 0;
}

.sq-season-greeting svg {
    width: 0.85em;
    height: 0.85em;
    margin-right: 0.35em;
    vertical-align: -0.08em;
    color: #1F5E4A;
}

html[data-theme='dark'] .sq-season-greeting svg {
    color: #7FCFA9;
}

/* The button sits next to the light/dark switch and copies its look. Shown
   during the season even when the decorations are off, so they can be
   switched back on. */
/* Same box and alignment as the light/dark icon beside it (Font Awesome's
   `fa-lg`: 1em high, 1.13em wide, -0.2em down). christmas.js crops the
   snowflake's viewBox so the flake fills the box as the half circle does. */
.sq-season-toggle svg {
    width: 1.13em;
    height: 1em;
    vertical-align: -0.2em;
}

/* On: the snowflake in ice blue, so it stands out from the grey light/dark
   switch beside it. Off: the theme's grey, with a slash across it. */
.sq-season-toggle[aria-pressed='true'] {
    color: #1A9E95;
}

html[data-theme='dark'] .sq-season-toggle[aria-pressed='true'] {
    color: #8FD3F0;
}

.sq-season-toggle__slash {
    display: none;
}

.sq-season-toggle[aria-pressed='false'] .sq-season-toggle__slash {
    display: inline;
}


/* --- 6. Reduced motion, forced colours, print ----------------------------- */

@media (prefers-reduced-motion: reduce) {
    html.sq-season .sq-hero::before,
    html.sq-season .sq-hero-shapes::before {
        animation: none;
    }

    /* Without the drift, show the snow where it would have come to rest. */
    html.sq-season .sq-hero-shapes::before {
        transform: translateY(160px);
    }
}

@media (forced-colors: active) {
    html.sq-season .sq-hero::before,
    html.sq-season .sq-hero::after,
    html.sq-season .sq-hero-shapes::before,
    html.sq-season .sq-hero-shapes::after,
    html.sq-season .navbar-brand::after {
        display: none;
    }

    /* Its own rule: same selector as the snowflake rule, so it wins on source
       order, and a browser without :has() drops only this rule. */
    html.sq-season nav.bd-links li.current:not(:has(li.current)) > a::after {
        display: none;
    }
}

/* Forced colours and print get the plain heading bar, card bars and logo back. */
@media (forced-colors: active), print {
    html.sq-season.sq-logo-replace .navbar-brand img.logo__image {
        clip-path: none;
    }

    html.sq-season h2:after,
    html.sq-season[data-theme='dark'] h2:after {
        width: 50px;
        height: 3px;
        bottom: -10px;
        background: #EC6A2B;
    }

    html.sq-season div.sq-pillar-icon-neo,
    html.sq-season div.sq-pillar-icon-graphite,
    html.sq-season div.sq-pillar-icon-security {
        background: linear-gradient(135deg, #002d4e, #001D32);
    }
}

@media print {
    html.sq-season .sq-hero::before,
    html.sq-season .sq-hero::after,
    html.sq-season .sq-hero-shapes::before,
    html.sq-season .sq-hero-shapes::after,
    html.sq-season .navbar-brand::after,
    .sq-season-greeting,
    .sq-season-toggle {
        display: none !important;
    }

    /* Its own rule, as under forced colours: a browser without :has() drops
       only this rule, not the list above. */
    html.sq-season nav.bd-links li.current:not(:has(li.current)) > a::after {
        display: none !important;
    }
}
