/* Christmas header (setting "Christmas header", Services/SiteKnobs.cs; owner, 29 Nov 2026: "a christmas theme that we can turn
   on and off in the admin section. The usual kind of things shopping sites have. Just on the header ... fit for both mobile and
   desktop"; then "put the xmas hat on the P and O ... remove the snow ... remove the gap ... glow/twinkle slowly ... less
   similar ... not all point down ... a bit 3d ... see what a black header would look like"). Loaded only while the setting is
   on (Views/Shared/_Layout.cshtml), which sets <html data-xmas="1">, or "black" for the black header. Two touches:
   - a string of fairy lights across the seam between the logo row and the menu, taking no room of its own: the bulbs hang
     both ways, tilt, differ in size and colour and twinkle slowly out of step (wwwroot/img/xmas/lights.svg, one cached file,
     its own animation; it stands still for visitors who ask their device for less motion);
   - Santa hats on the "P" of Polling and the "o" of Forecast, sized in em so they fit every header size.
   Everything is decoration (aria-hidden, no pointer events). */

html[data-xmas] .site-header.masthead { position: relative; }
html[data-xmas] .site-header .masthead__inner { position: relative; z-index: 3; }
html[data-xmas] .site-header .section-nav { position: relative; z-index: 1; }

/* ---------------------------------------------------------------- fairy lights */
/* the string sits in a band with room for the glow above and below; the band is pulled up and down by half its height, so
   the header is exactly as tall as without it. Clipped only at the sides (the image is wider than any screen), never top or
   bottom, so no glow is cut off */
.xmas-lights { position: relative; z-index: 4; height: 63px; margin: -32px 0 -31px; overflow: hidden; overflow: clip visible; pointer-events: none; }
.xmas-lights img { position: absolute; left: 0; top: 0; display: block; width: 3733px; max-width: none; height: 63px; }
/* phones: smaller bulbs, lifted so the ones that hang down stay clear of the tab row under the logo */
@media (max-width: 760px) {
    .xmas-lights { height: 48px; margin: -28px 0 -20px; }
    .xmas-lights img { width: 2844px; height: 48px; }
}

/* ---------------------------------------------------------------- Santa hats on the letters */
.xmas-l { position: relative; display: inline-block; }
.xmas-hat { position: absolute; left: 50%; pointer-events: none; z-index: 2; line-height: 0; }
.xmas-hat svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 1px 1px rgba(0,0,0,.22)); }
.xmas-l--p .xmas-hat { width: .95em; top: -.5em; transform: translateX(-42%) rotate(-16deg); }
.xmas-l--o .xmas-hat { width: .8em; top: -.26em; transform: translateX(-48%) rotate(13deg); }

/* ---------------------------------------------------------------- black header */
/* the logo row only; the menu row below keeps the site's own look */
html[data-xmas="black"] .site-header.masthead,
html[data-xmas="black"][data-phone=app] .site-header.masthead { background: #0b0b0b; }
html[data-xmas="black"] .site-header .masthead__inner {
    --ink: #ffffff; --muted: #aab1ba; --hair: #3b4048; --b1: #1b1d21; --pm-card: #0b0b0b;
    --logo-mark: var(--logo-mark-dark); --logo-blue: #8fb8ff; --logo-red: #ff7a7a;
    color: #ffffff; background: #0b0b0b; }
html[data-xmas="black"] .site-header .masthead__inner .wordmark,
html[data-xmas="black"] .site-header .masthead__inner a { color: #ffffff; }
html[data-xmas="black"] .site-header .site-search input[type=search] { background: #1b1d21; border-color: #3b4048; color: #ffffff; }
html[data-xmas="black"] .site-header .nav-toggle span { background: #ffffff; }
html[data-xmas="black"] .site-header .lang-switch a.on { background: #ffffff; color: #0b0b0b; }

@media print { .xmas-lights, .xmas-hat { display: none; } }
