/* Christmas layer, active only while the date gate from season.py puts .season-xmas on <html>.
   A pine swag with fairy lights hangs from the top-right corner of the sticky header, which grows
   by 24px (20px below 1200px) to make room; a Santa hat sits on Contact Us (on the menu button
   below 1200px); a tree stands right of the button (left of the menu button below 1200px).
   The logo side stays plain. */
html.season-xmas .brand-header { padding-top:24px; }
html.season-xmas .brand-header-row { position:relative; z-index:1; }
html.season-xmas .brand-header::before { content:''; position:absolute; top:0; right:0; width:440px; height:80px; background:url(swag.webp?v=a74703b37423) no-repeat 0 0/100% auto; pointer-events:none; }
html.season-xmas .xmas-lights { position:absolute; left:0; right:0; top:-14px; height:58px; overflow:hidden; pointer-events:none; }
html.season-xmas .xmas-lights i { position:absolute; width:22px; height:22px; margin:-11px 0 0 -11px; border-radius:50%; background:radial-gradient(circle,#fffdf4 0 1.3px,rgba(255,236,186,.96) 2.1px,rgba(255,200,110,.55) 4px,rgba(255,176,70,.18) 7px,rgba(255,170,60,0) 11px); mix-blend-mode:screen; animation:xmas-twinkle var(--d,4s) ease-in-out var(--t,0s) infinite; }
@keyframes xmas-twinkle { 0%,100% { opacity:1; } 50% { opacity:.42; } }
html.season-xmas .brand-cta { position:relative; }
/* The tree belongs to the button group: it stands on the header's bottom edge a fixed 46px right of
   the button, at least 32px from the hat. Where the outer margin cannot hold it (its visible pixels
   end 100px right of the button and keep 16px to the viewport edge), the row's right padding grows by
   the difference so nav and button move left; 570px and 640px are half the container widths. */
html.season-xmas .brand-cta::before,html.season-xmas .brand-toggle::before { content:''; position:absolute; background:url(tree.webp?v=4460c29f024a) no-repeat center bottom/contain; pointer-events:none; }
html.season-xmas .brand-cta::before { left:calc(100% + 46px); bottom:-16px; width:58.7px; height:64px; }
@media(min-width:1200px) {
 html.season-xmas .brand-header-row { padding-right:max(15px, calc(117px + 570px - 50%)); }
}
@media(min-width:1400px) {
 html.season-xmas .brand-header-row { padding-right:max(15px, calc(117px + 640px - 50%)); }
}
html.season-xmas .brand-cta::after,html.season-xmas .brand-toggle::after { content:''; position:absolute; background:url(hat.webp?v=61d548a32776) no-repeat center/contain; filter:drop-shadow(0 0 .7px rgba(80,20,10,.55)) drop-shadow(0 2px 3px rgba(40,10,0,.35)); pointer-events:none; }
html.season-xmas .brand-cta::after { width:54px; height:43.5px; right:-31px; top:-27px; transform:rotate(-3deg); }
/* While a control has keyboard focus its hat drops behind it, so the hat hides no part of the focus ring. */
html.season-xmas .brand-cta:focus-visible::after,html.season-xmas .brand-toggle:focus-visible::after { z-index:-1; }
html.season-xmas .lilin-brand .pf-results { scroll-margin-top:120px; }
html.season-xmas .lilin-brand .cat-series { scroll-margin-top:144px; }
html.season-xmas .lilin-brand #events { scroll-margin-top:48px; }
html.season-xmas .lilin-brand .co-aside,html.season-xmas .context-sidebar nav { top:48px; }
@media(max-width:1199px) {
 html.season-xmas .brand-header { padding-top:20px; }
 /* Narrower than 200px on small screens so its free end stays at least 72px from the logo. */
 html.season-xmas .brand-header::before { width:min(200px, calc(100% - 208px)); height:60px; background-image:url(swag-m.webp?v=8a39a659c50c); }
 html.season-xmas .brand-cta::before,html.season-xmas .brand-cta::after { display:none; }
 /* The taller header leaves less room for the open menu, which scrolls inside the sticky header:
    keep it within the viewport below the 86px top line and the header's 1px border. */
 html.season-xmas .brand-nav.show { max-height:calc(100vh - 87px); max-height:calc(100dvh - 87px); overflow-y:auto; overscroll-behavior:contain; }
 html.season-xmas .brand-toggle { position:relative; }
 html.season-xmas .brand-toggle::after { width:42px; height:33.8px; right:-7px; top:-26px; }
 /* The tree hangs off the menu button, so it stays in the top bar while the menu is open. */
 html.season-xmas .brand-toggle::before { right:calc(100% + 9.5px); top:-1px; width:49.5px; height:54px; }
 html.season-xmas .lilin-brand .pf-results { scroll-margin-top:116px; }
 html.season-xmas .lilin-brand .cat-series { scroll-margin-top:140px; }
 html.season-xmas .lilin-brand #events { scroll-margin-top:44px; }
 html.season-xmas .lilin-brand .co-aside,html.season-xmas .context-sidebar nav { top:44px; }
}
/* Small phones: a smaller tree nearer the menu button keeps 72px to the logo. */
@media(max-width:339px) { html.season-xmas .brand-toggle::before { right:calc(100% + 7px); top:5px; width:44px; height:48px; } }
@media print {
 html.season-xmas .brand-header { padding-top:0; }
 html.season-xmas .brand-header::before,html.season-xmas .xmas-lights,html.season-xmas .brand-cta::before,html.season-xmas .brand-cta::after,html.season-xmas .brand-toggle::before,html.season-xmas .brand-toggle::after,html.season-xmas .xmas-snow { display:none!important; }
 html.season-xmas .brand-header-row { padding-right:15px; }
}
@media(prefers-reduced-motion:reduce) {
 html.season-xmas .xmas-lights i { animation:none; opacity:var(--o,1); }
 html.season-xmas .xmas-snow { display:none; }
}
