/* ---------- Christmas layer ----------
   Loaded only while src/data/season.ts has CHRISTMAS = true. BaseLayout links it last in <head>
   and puts data-holiday="christmas" on <html>.

   1. A Christmas COLOURWAY (Mark, 27 Oct 2026: "give it a new colorway, a Christmas colorway"):
      the site's colour tokens (src/styles/tokens.css) are re-pointed, so every surface that reads
      them turns evergreen / berry red / gold / warm cream with no component edited. Contrast vs
      white: text #183A2B 12.5:1, links + prices #A61E2A 7.4:1 (6.0:1 on the footer cream), white on the red buttons 7.4:1,
      muted text 5.7:1 (4.7:1 on the footer cream) — all WCAG AA.
      Warnings keep --warn-amber; "Added" keeps --confirm-green; review stars keep real gold.
   2. Animated decorations (src/components/global/XmasDecor.astro): fairy lights under the header
      and across the footer top, glass baubles swaying between the bulbs. aria-hidden and
      pointer-events: none, so they never take a tap. Motion is opacity (twinkle) and rotate
      (sway) only, and stops under prefers-reduced-motion. */

/* ---- 1. Colourway ---- */
html[data-holiday="christmas"] {
  --navy: #183A2B;              /* headings + dark text: evergreen */
  --ocean: #A61E2A;
  --sea: #A61E2A;               /* links, prices, eyebrows: berry red (Mark went off the green accent) */
  --gold-dark: #A61E2A;
  --brand-blue: #183A2B;        /* logo + icons: dark evergreen */
  --navy-light: #861722;
  --ocean-light: #C0392B;
  --sea-deep: #10301F;
  --sea-mid: #1E5A3C;
  --sea-solid: #A61E2A;         /* buttons: berry red */
  --sea-solid-hover: #861722;
  --sea-gradient: linear-gradient(180deg, #10301F 0%, #1E5A3C 55%, #2E8B57 100%);
  --sea-gradient-hover: linear-gradient(180deg, #0B2417 0%, #184A31 55%, #267A4B 100%);
  --sea-light: #D9B65C;         /* accent text on dark photos: gold */
  --sea-bright: #F2DC9A;
  --sea-gradient-bright: linear-gradient(100deg, #E3BE5E 0%, #F6E3A6 100%);
  --gold: #E8C468;
  --surface-blue: #FBF6EC;      /* light bands: warm cream */
  --surface-blue-deep: #F2E8D5;
  --line-blue: #E8DCC2;
  --cream-warm: #FDF9F2;
  --ice-white: #FBF6EC;
  --text-dark: #1F2B24;
  --text-muted: #5B6A5F;
  --scrim: 22, 20, 18;          /* photo fades: neutral warm dark (the evergreen tint read as a green
                                   wash over the landing-page hero, Mark 27 Oct) */
  --scrim-navy: 26, 22, 20;
  /* Basket, checkout, prep dialog glass (tokens.css): the everyday blue tints become warm gold
     and cream, selected states a pale berry, shadows a warm dark (review, 27 Oct). */
  --blue-rgb: 176, 141, 74;
  --ocean-rgb: 166, 30, 42;
  --shade-rgb: 40, 28, 18;
  --ice-rgb: 251, 246, 236;
  --glass-rgb: 253, 249, 242;
  --aqua-rgb: 232, 196, 104;
  --glow-rgb: 134, 23, 34;
  --glow-rgb-deep: 60, 12, 18;
  --pale-blue: #FDF9F2;
  --pale-blue-2: #F6EDDC;
  --pale-blue-3: #FBF4E8;
  --pale-blue-4: #F2E3C6;
  --pale-grey-blue: #F6F0E6;
  --pay-hover-a: #861722;
  --pay-hover-b: #A61E2A;

  /* Decoration colours: red, gold, green, cream */
  --x1: #B3202A; --x2: #C9A84C; --x3: #1F6B45; --x4: #F3EEE2;
}

/* ---- 2. The decorations (src/components/global/XmasDecor.astro) ----
   Hung, not laid on: the light string is pinned at points along the edge and swags deeply
   between them (bulb positions + angles computed in the component); every pin has a velvet bow with a cluster of glass baubles
   beneath it. */
.xmas-decor {
  position: absolute; left: 0; right: 0; overflow: hidden;
  pointer-events: none; z-index: 0;
}
.xmas-decor__inner { position: absolute; left: 0; top: 16px; width: 2880px; height: 100%; }
/* Under the header: sits below the desktop dropdowns (z-index 101 in the same header). The strip
   starts 16px up and the hang is pushed back down by the same, so the wire meets the bar's edge
   exactly and the bows sit ON it, holding the string to the bar. */
.xmas-decor--header { top: 100%; height: 190px; margin-top: -16px; }
.xmas-decor--footer { top: -16px; height: 220px; }
/* No hairline under the bar: the bows and the string are the edge now (Mark: "that line
   separating it ... looks thrown together"). */
html[data-holiday="christmas"] .site-header,
html[data-holiday="christmas"] .site-header.is-solid { border-bottom-color: transparent; }
/* Pages with the plain white header (no photo hero underneath): move the page down so the
   decorations do not sit over the breadcrumbs. */
html[data-holiday="christmas"] body:not(:has(#main > [data-photo-hero]:first-child)) #main { padding-top: 92px; }
/* Photo-banner pages: the banner already starts under the bar (utilities.css adds --header-h on
   top); give it the hang's depth too, or the baubles sit on the title (the review found them
   touching or over it on ~20 pages, worst at 1024 wide and on phones). Restates the clamp in
   tokens.css. The homepage hero is full-screen and clear already. */
html[data-holiday="christmas"] #main > [data-photo-hero]:first-child:not(.home-hero) { --header-h: calc(clamp(80px, 2.6vw + 50px, 96px) + 36px); }
/* The phone menu opens below the bar: the decorations step out of its way. */
html[data-holiday="christmas"] .site-header:has(.header-nav.is-open) .xmas-decor { display: none; }

/* Strands: the wire is a background tile (one swag), each bulb is placed on it. */
.xmas-strand { position: absolute; left: 0; top: 0; width: 2880px; height: 80px; background-repeat: repeat-x; }
.xmas-strand--front { --s: 1; }
/* Slight size variation along the string, like real bulbs. */
.xmas-strand .xmas-bulb:nth-child(3n+1) { --s: .9; }
.xmas-strand .xmas-bulb:nth-child(5n+2) { --s: 1.08; }

/* A C7-style bulb: a ridged cap on the wire, a lit glass teardrop below it, three rings of glow.
   Angled to the wire (--r) and scaled for depth (--s). The twinkle only dips to 72%. */
.xmas-bulb {
  position: absolute; width: 0; height: 0;
  transform: rotate(var(--r)) scale(var(--s));
  --bulb: #FFC93C;                                    /* gold */
}
.xmas-strand .xmas-bulb:nth-child(4n+2) { --bulb: #FF3B3B; }  /* red */
.xmas-strand .xmas-bulb:nth-child(4n+3) { --bulb: #FFF0C4; }  /* warm white */
.xmas-strand .xmas-bulb:nth-child(4n)   { --bulb: #3BE07A; }  /* green */
.xmas-bulb::before {   /* the cap */
  content: ""; position: absolute; left: -4.5px; top: 0; width: 9px; height: 8px; z-index: 1;
  border-radius: 2px 2px 1px 1px;
  background:
    repeating-linear-gradient(180deg, rgba(0,0,0,.35) 0 1px, transparent 1px 2.5px),
    linear-gradient(90deg, #0E2318, #4C7A5E 45%, #0E2318);
}
.xmas-bulb::after {    /* the glass, lit */
  content: ""; position: absolute; left: -7px; top: 6px; width: 14px; height: 22px;
  border-radius: 50% 50% 50% 50% / 38% 38% 62% 62%;
  background:
    radial-gradient(ellipse 30% 22% at 38% 26%, #fff 0, rgba(255,255,255,.7) 50%, transparent 100%),
    radial-gradient(ellipse at 50% 62%, color-mix(in srgb, var(--bulb) 45%, #fff) 0, var(--bulb) 58%, color-mix(in srgb, var(--bulb) 80%, #000) 100%);
  box-shadow:
    0 0 6px 2px var(--bulb),
    0 0 18px 7px color-mix(in srgb, var(--bulb) 60%, transparent),
    0 0 40px 14px color-mix(in srgb, var(--bulb) 24%, transparent);
}
/* One bulb in three twinkles, the rest burn steady. Every bulb twinkling kept a phone's main
   thread busy over half the time (review, 27 Oct: ~2.9s of work per 5s at 4x CPU throttle). */
.xmas-bulb:nth-child(3n)::after   { animation: xmas-twinkle 2.4s ease-in-out -0.8s infinite; }
.xmas-bulb:nth-child(6n)::after   { animation-delay: -1.7s; animation-duration: 1.9s; }
.xmas-bulb:nth-child(5n)::after   { animation-duration: 3.1s; }
/* Nothing animates where nobody can see it: the header hang once folded away, the footer hang
   and the hero snow while off screen (an IntersectionObserver in BaseLayout sets .is-offscreen). */
/* !important because every animation here is set with the shorthand, which resets the play
   state at a higher specificity. Decorations past the right edge of the screen (the strand is
   2880px wide; a phone shows ~540px of it) never animate at all (.xmas-far, same script). */
html.xmas-scrolled .xmas-decor--header *,
html.xmas-scrolled .xmas-decor--header *::before,
html.xmas-scrolled .xmas-decor--header *::after,
.is-offscreen *, .is-offscreen *::before, .is-offscreen *::after { animation-play-state: paused !important; }
.xmas-far, .xmas-far *, .xmas-far::after, .xmas-far *::after { animation: none !important; }
@keyframes xmas-twinkle {
  0%, 100% { opacity: 1; }
  50%      { opacity: .72; }
}

/* Pins: a velvet bow on the edge, the bauble cluster hanging beneath it. */
.xmas-pin { position: absolute; top: 0; width: 0; height: 100%; z-index: 2; }
.xmas-bow {
  position: absolute; left: -20px; top: -6px; width: 40px; height: 34px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='34' viewBox='0 0 40 34'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23E0434C'/%3E%3Cstop offset='.55' stop-color='%23A61E2A'/%3E%3Cstop offset='1' stop-color='%236E0D15'/%3E%3C/linearGradient%3E%3ClinearGradient id='t' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23B5242F'/%3E%3Cstop offset='1' stop-color='%236E0D15'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M18 14L10 32L14.5 30L16.5 33.5L20.5 16Z' fill='url(%23t)'/%3E%3Cpath d='M22 14L30 32L25.5 30L23.5 33.5L19.5 16Z' fill='url(%23t)'/%3E%3Cpath d='M20 13C12 1 1 3 2.5 12C4 20 13 18.5 20 14.5Z' fill='url(%23g)'/%3E%3Cpath d='M20 13C28 1 39 3 37.5 12C36 20 27 18.5 20 14.5Z' fill='url(%23g)'/%3E%3Cpath d='M19 13.5C14 8 8 8.5 8 12C8.5 15 14 15 19 14Z' fill='%234A0710' fill-opacity='.5'/%3E%3Cpath d='M21 13.5C26 8 32 8.5 32 12C31.5 15 26 15 21 14Z' fill='%234A0710' fill-opacity='.5'/%3E%3Cpath d='M16 8.5C11 4 5.5 5 5 9' stroke='%23fff' stroke-opacity='.35' stroke-width='1.3' fill='none' stroke-linecap='round'/%3E%3Cpath d='M24 8.5C29 4 34.5 5 35 9' stroke='%23fff' stroke-opacity='.25' stroke-width='1.3' fill='none' stroke-linecap='round'/%3E%3Cellipse cx='20' cy='14' rx='4.2' ry='4.6' fill='%239A1A24'/%3E%3Cellipse cx='19' cy='12.6' rx='1.8' ry='1.3' fill='%23fff' fill-opacity='.4'/%3E%3C/svg%3E") no-repeat center / contain;
  filter: drop-shadow(0 3px 3px rgba(20, 5, 5, .45));
}
.xmas-bauble {
  position: absolute; top: 10px; left: var(--dx);
  width: 0; height: calc(var(--len) + var(--size));
  transform-origin: 0 0;
  animation: xmas-sway 5s ease-in-out var(--d) infinite alternate;
}
.xmas-bauble::before {   /* the ribbon thread, from the bow */
  content: ""; position: absolute; left: -0.75px; top: 0; width: 1.5px; height: calc(var(--len) + 2px);
  background: linear-gradient(180deg, #8B7028, #E9D08A);
}
.xmas-bauble i {         /* the glass ball */
  position: absolute; top: var(--len); left: calc(var(--size) / -2);
  width: var(--size); height: var(--size); border-radius: 50%;
  background:
    radial-gradient(ellipse 20% 14% at 33% 25%, #fff 0, rgba(255,255,255,.88) 45%, transparent 100%),
    radial-gradient(ellipse 10% 7% at 55% 18%, rgba(255,255,255,.7) 0, transparent 100%),
    radial-gradient(circle at 72% 80%, rgba(255,255,255,.32) 0, transparent 20%),
    radial-gradient(circle at 36% 30%, color-mix(in srgb, var(--bc) 65%, #fff) 0, var(--bc) 34%, color-mix(in srgb, var(--bc) 55%, #000) 76%, color-mix(in srgb, var(--bc) 30%, #000) 100%);
  box-shadow:
    inset 0 -3px 6px rgba(0,0,0,.25),
    inset 0 0 0 1px rgba(255,255,255,.12),
    0 10px 14px -6px rgba(10, 6, 2, .55),
    0 0 20px 2px color-mix(in srgb, var(--bc) 30%, transparent);
}
.xmas-bauble i::before { /* ridged gold cap */
  content: ""; position: absolute; top: -6px; left: 50%; transform: translateX(-50%);
  width: calc(var(--size) * .3); height: 7px; border-radius: 2px 2px 1px 1px;
  background:
    repeating-linear-gradient(90deg, rgba(90,70,20,.45) 0 1px, transparent 1px 3px),
    linear-gradient(90deg, #8B7028, #F4E1A0 50%, #8B7028);
}
.xmas-bauble i::after {  /* sparkle glint: a soft four-point star on the highlight */
  content: ""; position: absolute; left: 14%; top: 6%; width: 44%; height: 44%;
  background: radial-gradient(circle, #fff 0 18%, rgba(255,255,255,.85) 30%, rgba(255,255,255,0) 70%);
  clip-path: polygon(50% 0, 57% 43%, 100% 50%, 57% 57%, 50% 100%, 43% 57%, 0 50%, 43% 43%);
  opacity: 0; transform: scale(.3) rotate(0deg);
  animation: xmas-glint 5s ease-in-out var(--d) infinite;
}
@keyframes xmas-glint {
  0%, 80%, 100% { opacity: 0; transform: scale(.4) rotate(0deg); }
  88%           { opacity: 1; transform: scale(1.15) rotate(20deg); }
}
.xmas-bauble--c1 i { --bc: var(--x1); }
.xmas-bauble--c2 i { --bc: var(--x2); }
.xmas-bauble--c3 i { --bc: var(--x3); }
.xmas-bauble--c4 i { --bc: var(--x4); }
@keyframes xmas-sway {
  from { transform: rotate(-4deg); }
  to   { transform: rotate(4deg); }
}

/* Footer: room above the columns for the baubles; a faint pattern of little fish and gold stars on
   the cream. Our own, not British Mist's snowflakes (Mark, 27 Oct: "we can't use the same background"). */
html[data-holiday="christmas"] .site-footer {
  position: relative;
  padding-top: calc(var(--sp-7) + 124px);
  background-image:
    linear-gradient(180deg, #fff 0, rgba(255,255,255,0) 96px),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260' viewBox='0 0 260 260'%3E%3Cg fill='%23E3D4B2'%3E%3Cg transform='translate(30 60) rotate(-8) scale(1)'%3E%3Cpath d='M0 0C6-7 17-7 23 0C17 7 6 7 0 0ZM23 0L30-6L29 0L30 6Z'/%3E%3Ccircle cx='5.5' cy='-1.2' r='1.1'/%3E%3C/g%3E%3Cg transform='translate(170 40) rotate(6) scale(-0.8 0.8)'%3E%3Cpath d='M0 0C6-7 17-7 23 0C17 7 6 7 0 0ZM23 0L30-6L29 0L30 6Z'/%3E%3Ccircle cx='5.5' cy='-1.2' r='1.1'/%3E%3C/g%3E%3Cg transform='translate(120 150) rotate(-4) scale(1.1)'%3E%3Cpath d='M0 0C6-7 17-7 23 0C17 7 6 7 0 0ZM23 0L30-6L29 0L30 6Z'/%3E%3Ccircle cx='5.5' cy='-1.2' r='1.1'/%3E%3C/g%3E%3Cg transform='translate(210 215) rotate(10) scale(-0.75 0.75)'%3E%3Cpath d='M0 0C6-7 17-7 23 0C17 7 6 7 0 0ZM23 0L30-6L29 0L30 6Z'/%3E%3Ccircle cx='5.5' cy='-1.2' r='1.1'/%3E%3C/g%3E%3Cg transform='translate(40 210) rotate(4) scale(0.85)'%3E%3Cpath d='M0 0C6-7 17-7 23 0C17 7 6 7 0 0ZM23 0L30-6L29 0L30 6Z'/%3E%3Ccircle cx='5.5' cy='-1.2' r='1.1'/%3E%3C/g%3E%3C/g%3E%3Cpath fill='%23D2B05C' fill-opacity='.38' d='M110.0 22.0L112.1 27.1L117.6 27.5L113.4 31.1L114.7 36.5L110.0 33.6L105.3 36.5L106.6 31.1L102.4 27.5L107.9 27.1ZM230.0 103.0L231.9 107.5L236.7 107.8L233.0 111.0L234.1 115.7L230.0 113.2L225.9 115.7L227.0 111.0L223.3 107.8L228.1 107.5ZM70.0 114.0L71.6 117.8L75.7 118.1L72.6 120.8L73.5 124.9L70.0 122.7L66.5 124.9L67.4 120.8L64.3 118.1L68.4 117.8ZM185.0 156.0L187.4 161.7L193.6 162.2L188.9 166.3L190.3 172.3L185.0 169.1L179.7 172.3L181.1 166.3L176.4 162.2L182.6 161.7ZM20.0 143.5L21.7 147.6L26.2 148.0L22.8 150.9L23.8 155.3L20.0 152.9L16.2 155.3L17.2 150.9L13.8 148.0L18.3 147.6ZM140.0 228.0L141.9 232.5L146.7 232.8L143.0 236.0L144.1 240.7L140.0 238.2L135.9 240.7L137.0 236.0L133.3 232.8L138.1 232.5ZM240.0 15.0L241.3 18.2L244.8 18.5L242.1 20.7L242.9 24.0L240.0 22.2L237.1 24.0L237.9 20.7L235.2 18.5L238.7 18.2Z'/%3E%3C/svg%3E");
  background-size: auto, 260px 260px;
}

/* ---- 3. Extras (Mark, 27 Oct: "let's do all of that") ---- */

/* Scrolled: the whole hang folds up behind the bar like a blind rolling up (clip from the bottom
   plus a short lift), and drops back down at the top of the page. Mark, 27 Oct: it should fold
   away, not shrink. The flag is set by a small script in BaseLayout. */
.xmas-decor--header {
  clip-path: inset(0 0 0 0);
  transition: clip-path .55s cubic-bezier(.4, 0, .2, 1), opacity .45s ease .1s;
}
.xmas-decor--header .xmas-decor__inner { transition: translate .55s cubic-bezier(.4, 0, .2, 1); }
html.xmas-scrolled .xmas-decor--header { clip-path: inset(0 0 100% 0); opacity: 0; transition: clip-path .5s cubic-bezier(.4, 0, .2, 1), opacity .3s ease .15s; }
html.xmas-scrolled .xmas-decor--header .xmas-decor__inner { translate: 0 -40px; }

/* The header logo wears Santa hats: the real logo with a hat on each fish (Higgsfield drew the top one; the bottom fish is its exact 180° turn, so its hat sits on its back like the logo, not by its mouth;
   original kept in Parkstone_Fisheries_photos/Christmas 2026/), used as a STENCIL filled with the
   logo's own colour. So it is white over the photo heroes and evergreen on the white bar, and
   fades between them exactly as the plain logo does. The stencil is cropped to the logo's own
   frame plus strips for the hats (1527 + 65 above + 57 below, 1755 wide), so the fish sit exactly where
   the plain logo's fish sit. */
html[data-holiday="christmas"] .site-header .header-logo { position: relative; --lh: clamp(40px, 1.6vw + 22px, 50px); }
html[data-holiday="christmas"] .site-header .header-logo__mark { visibility: hidden; }
html[data-holiday="christmas"] .site-header .header-logo::before {
  content: ""; position: absolute; left: 0; pointer-events: none;
  width: calc(var(--lh) * 600 / 522);
  height: calc(var(--lh) * 1649 / 1527);
  top: calc(50% - var(--lh) / 2 - var(--lh) * 65 / 1527);
  background-color: currentColor;
  -webkit-mask: url("/images/logo-christmas-mask.png") no-repeat 0 0 / 100% 100%;
          mask: url("/images/logo-christmas-mask.png") no-repeat 0 0 / 100% 100%;
  transition: background-color .35s ease;
}
html[data-holiday="christmas"] .site-header .header-logo { transition: color .35s ease; }
html[data-holiday="christmas"] body:not(:has(#main > [data-photo-hero]:first-child)) .site-header .header-logo,
html[data-holiday="christmas"] .site-header.is-solid .header-logo { color: var(--brand-blue); }

/* Light snowfall over the homepage hero: two depths of flakes on tall tiled layers that slide
   down (transform only, so the phone's GPU does the work). Hidden under reduced motion.
   Review, 27 Oct: the old 320px tile of 6 flakes read as a grid of dots across a desktop, and
   the sideways drift jumped back at every loop. Now big tiles with scattered flakes, falling
   straight, each loop exactly one tile tall so it never jumps. */
.xmas-snow { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 1; }
.xmas-snow i {
  position: absolute; left: 0; right: 0; top: -610px; height: calc(100% + 610px);
  background-image:
    radial-gradient(circle at 499px 291px, rgba(255,255,255,.71) 0 1.8px, transparent 2.6px),
    radial-gradient(circle at 74px 268px, rgba(255,255,255,.75) 0 1.7px, transparent 2.5px),
    radial-gradient(circle at 389px 420px, rgba(255,255,255,.92) 0 1.1px, transparent 1.9px),
    radial-gradient(circle at 510px 81px, rgba(255,255,255,.84) 0 1.6px, transparent 2.4px),
    radial-gradient(circle at 88px 443px, rgba(255,255,255,.87) 0 1.6px, transparent 2.4px),
    radial-gradient(circle at 458px 366px, rgba(255,255,255,.94) 0 1px, transparent 1.8px),
    radial-gradient(circle at 240px 544px, rgba(255,255,255,.94) 0 1.1px, transparent 1.9px),
    radial-gradient(circle at 317px 46px, rgba(255,255,255,.81) 0 1.6px, transparent 2.4px),
    radial-gradient(circle at 182px 478px, rgba(255,255,255,.73) 0 1.6px, transparent 2.4px),
    radial-gradient(circle at 60px 185px, rgba(255,255,255,.85) 0 1.8px, transparent 2.6px),
    radial-gradient(circle at 470px 162px, rgba(255,255,255,.82) 0 1.3px, transparent 2.1px),
    radial-gradient(circle at 433px 74px, rgba(255,255,255,.78) 0 1.2px, transparent 2px),
    radial-gradient(circle at 486px 369px, rgba(255,255,255,.7) 0 1px, transparent 1.8px);
  background-size: 530px 610px;
  animation: xmas-snow 30s linear infinite;
}
.xmas-snow i:last-child {
  background-image:
    radial-gradient(circle at 279px 189px, rgba(255,255,255,.91) 0 1.7px, transparent 2.5px),
    radial-gradient(circle at 70px 537px, rgba(255,255,255,.71) 0 1.4px, transparent 2.2px),
    radial-gradient(circle at 760px 508px, rgba(255,255,255,.75) 0 1.8px, transparent 2.6px),
    radial-gradient(circle at 66px 410px, rgba(255,255,255,.68) 0 1.5px, transparent 2.3px),
    radial-gradient(circle at 268px 823px, rgba(255,255,255,.86) 0 1.8px, transparent 2.6px),
    radial-gradient(circle at 315px 475px, rgba(255,255,255,.8) 0 1.7px, transparent 2.5px),
    radial-gradient(circle at 607px 31px, rgba(255,255,255,.71) 0 2.1px, transparent 2.9px),
    radial-gradient(circle at 497px 575px, rgba(255,255,255,.94) 0 1.7px, transparent 2.5px),
    radial-gradient(circle at 131px 11px, rgba(255,255,255,.76) 0 1.8px, transparent 2.6px),
    radial-gradient(circle at 202px 311px, rgba(255,255,255,.91) 0 1.9px, transparent 2.7px),
    radial-gradient(circle at 40px 583px, rgba(255,255,255,.87) 0 1.6px, transparent 2.4px),
    radial-gradient(circle at 762px 11px, rgba(255,255,255,.94) 0 1.4px, transparent 2.2px);
  background-size: 790px 870px; opacity: .55; filter: blur(1.2px);
  animation: xmas-snow-far 48s linear infinite; top: -870px; height: calc(100% + 870px);
}
@keyframes xmas-snow {
  from { translate: 0 0; }
  to   { translate: 0 610px; }
}
@keyframes xmas-snow-far {
  from { translate: 0 0; }
  to   { translate: 0 870px; }
}

/* "Christmas orders now open" pill above the hero line. Frosted, like the hero button. */
.xmas-badge {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px;
  padding: 8px 16px 8px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .35);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: #fff; font-size: .875rem; font-weight: 600; text-decoration: none;
  box-shadow: 0 6px 18px -8px rgba(0,0,0,.5);
  transition: background .25s ease;
}
.xmas-badge:hover { background: rgba(255, 255, 255, .24); }
.xmas-badge__star {
  width: 16px; height: 16px; flex: none; background: #E8C468;
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  filter: drop-shadow(0 0 4px rgba(255, 210, 110, .9));
}

/* The homepage "Christmas pre-orders" tile gets a short swag of the same lights along its top. */
.xmas-tile-lights {
  position: absolute; left: 0; right: 0; top: 0; height: 34px; z-index: 2; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='34' viewBox='0 0 120 34'%3E%3Cdefs%3E%3Cfilter id='b' x='-1' y='-1' width='3' height='3'%3E%3CfeGaussianBlur stdDeviation='3'/%3E%3C/filter%3E%3C/defs%3E%3Cpath d='M0 2Q60 30 120 2' fill='none' stroke='%230E2318' stroke-width='1.8'/%3E%3Cg transform='translate(12.0 7.0) rotate(20)'%3E%3Cellipse cx='0' cy='11' rx='7' ry='9' fill='%23FFC93C' filter='url(%23b)' opacity='.85'/%3E%3Crect x='-2.5' y='0' width='5' height='4.5' rx='1' fill='%230E2318'/%3E%3Cellipse cx='0' cy='10' rx='3.6' ry='5.6' fill='%23FFC93C'/%3E%3Cellipse cx='-1' cy='8' rx='1.2' ry='1.8' fill='%23fff' fill-opacity='.85'/%3E%3C/g%3E%3Cg transform='translate(36.0 13.8) rotate(11)'%3E%3Cellipse cx='0' cy='11' rx='7' ry='9' fill='%23FF3B3B' filter='url(%23b)' opacity='.85'/%3E%3Crect x='-2.5' y='0' width='5' height='4.5' rx='1' fill='%230E2318'/%3E%3Cellipse cx='0' cy='10' rx='3.6' ry='5.6' fill='%23FF3B3B'/%3E%3Cellipse cx='-1' cy='8' rx='1.2' ry='1.8' fill='%23fff' fill-opacity='.85'/%3E%3C/g%3E%3Cg transform='translate(60.0 16.0) rotate(0)'%3E%3Cellipse cx='0' cy='11' rx='7' ry='9' fill='%23FFF0C4' filter='url(%23b)' opacity='.85'/%3E%3Crect x='-2.5' y='0' width='5' height='4.5' rx='1' fill='%230E2318'/%3E%3Cellipse cx='0' cy='10' rx='3.6' ry='5.6' fill='%23FFF0C4'/%3E%3Cellipse cx='-1' cy='8' rx='1.2' ry='1.8' fill='%23fff' fill-opacity='.85'/%3E%3C/g%3E%3Cg transform='translate(84.0 13.8) rotate(-11)'%3E%3Cellipse cx='0' cy='11' rx='7' ry='9' fill='%233BE07A' filter='url(%23b)' opacity='.85'/%3E%3Crect x='-2.5' y='0' width='5' height='4.5' rx='1' fill='%230E2318'/%3E%3Cellipse cx='0' cy='10' rx='3.6' ry='5.6' fill='%233BE07A'/%3E%3Cellipse cx='-1' cy='8' rx='1.2' ry='1.8' fill='%23fff' fill-opacity='.85'/%3E%3C/g%3E%3Cg transform='translate(108.0 7.0) rotate(-20)'%3E%3Cellipse cx='0' cy='11' rx='7' ry='9' fill='%23FF3B3B' filter='url(%23b)' opacity='.85'/%3E%3Crect x='-2.5' y='0' width='5' height='4.5' rx='1' fill='%230E2318'/%3E%3Cellipse cx='0' cy='10' rx='3.6' ry='5.6' fill='%23FF3B3B'/%3E%3Cellipse cx='-1' cy='8' rx='1.2' ry='1.8' fill='%23fff' fill-opacity='.85'/%3E%3C/g%3E%3C/svg%3E") repeat-x 0 0 / 120px 34px;
}

/* Footer sign-off, just above the legal line. Even space above and below. On a phone it is two
   deliberate lines, "Merry Christmas" with its stars and the rest under it (review on iPhone
   Safari, 28 Oct: a free wrap read "* * Merry Christmas from all * / of us at ..." among the
   pattern's stars). */
.xmas-signoff {
  margin: var(--sp-4) 0 0; text-align: center;
  font-family: var(--font-serif); font-size: clamp(1.25rem, 1vw + 1rem, 1.625rem); color: var(--navy);
}
.xmas-signoff::before, .xmas-signoff::after,
.xmas-signoff__hi::before, .xmas-signoff__hi::after {
  content: ""; display: inline-block; width: 14px; height: 14px; margin: 0 12px; vertical-align: 2px;
  background: #C9A84C;
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
.xmas-signoff__hi::before, .xmas-signoff__hi::after { display: none; }
@media (max-width: 600px) {
  .xmas-signoff::before, .xmas-signoff::after { display: none; }
  .xmas-signoff__hi { display: block; font-size: 1.25em; }
  .xmas-signoff__hi::before, .xmas-signoff__hi::after { display: inline-block; }
  .xmas-signoff__rest { font-size: .85em; }
}

@media (max-width: 820px) {
  /* Same hang, scaled to a phone. */
  .xmas-decor__inner { transform: scale(.72); transform-origin: 0 0; }
  .xmas-decor--header { height: 112px; }
  .xmas-decor--footer { height: 140px; }
  html[data-holiday="christmas"] body:not(:has(#main > [data-photo-hero]:first-child)) #main { padding-top: 66px; }
  html[data-holiday="christmas"] #main > [data-photo-hero]:first-child:not(.home-hero) { --header-h: calc(clamp(80px, 2.6vw + 50px, 96px) + 48px); }
  html[data-holiday="christmas"] .site-footer { padding-top: calc(var(--sp-7) + 88px); }
  .xmas-badge { font-size: .8125rem; }
}

@media (prefers-reduced-motion: reduce) {
  .xmas-snow { display: none; }
  .xmas-decor *, .xmas-decor *::after, .xmas-decor *::before { animation: none !important; }
}

/* ---- 4. Basket and checkout (review, 27 Oct) ----
   The minimum-order bar ran berry red into evergreen; one berry red instead. */
html[data-holiday="christmas"] .sb__fill { background: linear-gradient(90deg, #861722, var(--sea-solid)); }
/* The checkout's own logo (a blue PNG) becomes the hatted mark in evergreen: the image is moved
   out of its box and the box is painted through the same stencil the header uses. */
html[data-holiday="christmas"] .co-brandbar__logo,
html[data-holiday="christmas"] .co-pay-head__logo {
  object-position: -9999px 0; background-color: var(--brand-blue);
  -webkit-mask: url("/images/logo-christmas-mask.png") no-repeat center / contain;
          mask: url("/images/logo-christmas-mask.png") no-repeat center / contain;
}

/* ---- 5. Review, 1 Dec: hex blues in parts added to the site after October ----
   (the rgba ones now use the colour tokens in the components themselves). */
html[data-holiday="christmas"] .how__icon { background: linear-gradient(180deg, #FFFFFF 0%, var(--surface-blue-deep) 100%); }
html[data-holiday="christmas"] .pc__result--phone { background: var(--surface-blue); }
html[data-holiday="christmas"] .product-card:hover .product-card__btn,
html[data-holiday="christmas"] .product-card:focus-within .product-card__btn { background: linear-gradient(180deg, #FFFFFF 0%, var(--surface-blue-deep) 100%); }
/* The slim shop-category banner on phones (Nov funnel review) left 8px over the title, so the
   middle bauble hung onto "Fresh Fish". Christmas only: enough room to clear the hang. */
@media (max-width: 768px) {
  html[data-holiday="christmas"] #main > .page-hero--compact[data-photo-hero]:first-child { padding-top: calc(var(--sp-5) + var(--header-h)); }
}
/* Trade and yacht heroes: their sea-blue glow would turn berry red through the tokens and read
   as a blotch. At Christmas the photo keeps its plain dark scrim. */
html[data-holiday="christmas"] .tw-hero__mesh,
html[data-holiday="christmas"] .yp-hero__mesh { display: none; }
/* The shop sidebar's delivery note is a filled box in --ocean; filled berry red read as a
   warning, so at Christmas it is the evergreen of the headings. */
html[data-holiday="christmas"] .delivery-badge { background: var(--navy); }
/* Footer logo wears the hats too (Mark, 1 Dec: "make sure the fish has the hats everywhere").
   Same stencil and maths as the header, sized to the footer's 44px mark. */
html[data-holiday="christmas"] .footer-brand { position: relative; --lh: 44px; }
html[data-holiday="christmas"] .footer-brand .footer-logo { visibility: hidden; }
html[data-holiday="christmas"] .footer-brand::before {
  content: ""; position: absolute; left: 0; pointer-events: none;
  width: calc(var(--lh) * 600 / 522);
  height: calc(var(--lh) * 1649 / 1527);
  top: calc(50% - var(--lh) / 2 - var(--lh) * 65 / 1527);
  background-color: var(--brand-blue);
  -webkit-mask: url("/images/logo-christmas-mask.png") no-repeat 0 0 / 100% 100%;
          mask: url("/images/logo-christmas-mask.png") no-repeat 0 0 / 100% 100%;
}
/* The drawn gift card's logo wears the hats at Christmas too. */
html[data-holiday="christmas"] .gift__brand { --lh: 46px; }
html[data-holiday="christmas"] .gift__brand .gift__logo { visibility: hidden; }
html[data-holiday="christmas"] .gift__brand::before {
  content: ""; position: absolute; left: 0; pointer-events: none;
  width: calc(var(--lh) * 600 / 522); height: calc(var(--lh) * 1649 / 1527);
  top: calc(50% - var(--lh) / 2 - var(--lh) * 65 / 1527);
  background-color: #1B2A4A;
  -webkit-mask: url("/images/logo-christmas-mask.png") no-repeat 0 0 / 100% 100%;
          mask: url("/images/logo-christmas-mask.png") no-repeat 0 0 / 100% 100%;
}
