/* Christmas theme (26 Nov 2026, BRIEF_CAUSEHUB_CHRISTMAS_2026-11-26.md; Sergiu: "really really Christmas feeling and vibe, really
   realistic and 100% Christmas"). Built on winter (theme.json "extends": "winter"): winter.css and winter.js load first and bring the
   falling snow behind the page, the snow on the header with its icicles, the snowbank on the footer and the snowman. This file adds a
   string of real-looking lights along the top of the home hero (faceted C9 bulbs rendered in Blender, lit, each with a soft glow),
   four glass baubles hanging on gold threads (their reflections are of a small warm room: a window, a lamp, a string of lights), the
   snowman's Santa hat and a small lit fir beside him on the footer, and a little bauble on the give box. Every picture is our own
   render (render/assets.py in the release tools), no outside model, texture or font; the pictures are versioned by their content
   (?v=, stamped by the tools) because /assets is cached for 30 days. What moves on full pages is christmas.js (Web Animations, finite,
   never with reduced motion), so a tap that plays winter's drawings again never blinks the lights; the one CSS motion is the memorial
   candle's flame (gentle level, no script there, a fixed number of runs, transform and opacity only). Colours
   only through tokens (Daylight and Lamplight). */
:root {
  --xm-h: 56px; --xm-wire: #24392B; --xm-wire-hi: rgba(196, 226, 204, .42); --xm-glow-a: .42; --xm-thread: #B08A48;
  --xm-spill: rgba(255, 178, 96, .10); --xm-spill-0: rgba(255, 178, 96, 0);
  --xm-red: #C62A22; --xm-red-hi: #E8564A; --xm-red-lo: #8E1712; --xm-fold: rgba(80, 8, 6, .45); --xm-cdl-a: .55;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --xm-wire: #0E1A12; --xm-wire-hi: rgba(150, 190, 160, .3); --xm-glow-a: .78; --xm-thread: #C9A25A;
    --xm-spill: rgba(255, 170, 80, .17); --xm-spill-0: rgba(255, 170, 80, 0);
    --xm-red: #B8261F; --xm-red-hi: #D9483D; --xm-red-lo: #7A120E; --xm-fold: rgba(40, 4, 3, .5); --xm-cdl-a: .9;
  }
}
:root[data-theme="dark"] {
  --xm-wire: #0E1A12; --xm-wire-hi: rgba(150, 190, 160, .3); --xm-glow-a: .78; --xm-thread: #C9A25A;
  --xm-spill: rgba(255, 170, 80, .17); --xm-spill-0: rgba(255, 170, 80, 0);
  --xm-red: #B8261F; --xm-red-hi: #D9483D; --xm-red-lo: #7A120E; --xm-fold: rgba(40, 4, 3, .5); --xm-cdl-a: .9;
}

/* Sprite parts (the Santa hat's gradients). */
.xm-st-red { stop-color: var(--xm-red); } .xm-st-red-hi { stop-color: var(--xm-red-hi); } .xm-st-red-lo { stop-color: var(--xm-red-lo); }

/* home.hero: the light string. It hangs from five hooks right under the header's snow, among the icicles; the wire is one SVG that
   stretches with the hero (the stroke keeps its width), the bulbs sit on the wire's curve: left in % of the width, top in parts of the
   string's height (the same parabola as the wire's path), so they stay on it at every width. Each bulb hangs from its socket. */
.xm-spill { position: absolute; left: 0; right: 0; top: 0; height: 190px; background: radial-gradient(120% 100% at 50% 0, var(--xm-spill), var(--xm-spill-0) 70%); }
.xm-string { position: absolute; left: 0; right: 0; top: 8px; height: var(--xm-h); }
.xm-wire { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.xm-wire-a, .xm-wire-b { fill: none; }
.xm-wire-a { stroke: var(--xm-wire); stroke-width: 2.4px; }
.xm-wire-b { stroke: var(--xm-wire-hi); stroke-width: 1px; stroke-dasharray: 2 5; }
.xm-bulb { position: absolute; width: 18px; height: 32px; margin: -3px 0 0 -9px; transform-origin: 50% 2px; }
.xm-sw { position: absolute; left: 0; top: 0; width: 100%; height: 100%; transform-origin: 50% 2px; }
.xm-glass, .xm-lit { position: absolute; left: 0; top: 0; width: 100%; height: 100%; background-image: url("/assets/seasonal/christmas/xmas-bulbs.webp?v=2eb7cb7dc6");
  background-repeat: no-repeat; background-size: 500% 200%; }
.xm-glass { background-position-y: 0; }
.xm-lit { background-position-y: 100%; }
.xm-warm .xm-glass, .xm-warm .xm-lit { background-position-x: 0; }
.xm-amber .xm-glass, .xm-amber .xm-lit { background-position-x: 25%; }
.xm-red .xm-glass, .xm-red .xm-lit { background-position-x: 50%; }
.xm-green .xm-glass, .xm-green .xm-lit { background-position-x: 75%; }
.xm-blue .xm-glass, .xm-blue .xm-lit { background-position-x: 100%; }
/* The glow: light spilling from the glass, drawn under it. */
.xm-glow { position: absolute; left: 50%; top: 64%; width: 50px; height: 50px; margin: -25px 0 0 -25px; border-radius: 50%; opacity: var(--xm-glow-a); }
.xm-warm .xm-glow { background: radial-gradient(closest-side, rgba(255, 214, 150, .85), rgba(255, 214, 150, .25) 45%, rgba(255, 214, 150, 0)); }
.xm-amber .xm-glow { background: radial-gradient(closest-side, rgba(255, 150, 40, .85), rgba(255, 150, 40, .25) 45%, rgba(255, 150, 40, 0)); }
.xm-red .xm-glow { background: radial-gradient(closest-side, rgba(255, 52, 36, .8), rgba(255, 52, 36, .22) 45%, rgba(255, 52, 36, 0)); }
.xm-green .xm-glow { background: radial-gradient(closest-side, rgba(40, 214, 100, .75), rgba(40, 214, 100, .2) 45%, rgba(40, 214, 100, 0)); }
.xm-blue .xm-glow { background: radial-gradient(closest-side, rgba(70, 130, 255, .8), rgba(70, 130, 255, .22) 45%, rgba(70, 130, 255, 0)); }
.xm-k1 { left: 2.50%; top: calc(0.3480 * var(--xm-h)); }
.xm-k2 { left: 7.50%; top: calc(0.7320 * var(--xm-h)); }
.xm-k3 { left: 12.50%; top: calc(0.8600 * var(--xm-h)); }
.xm-k4 { left: 17.50%; top: calc(0.7320 * var(--xm-h)); }
.xm-k5 { left: 22.50%; top: calc(0.3480 * var(--xm-h)); }
.xm-k6 { left: 27.50%; top: calc(0.3480 * var(--xm-h)); }
.xm-k7 { left: 32.50%; top: calc(0.7320 * var(--xm-h)); }
.xm-k8 { left: 37.50%; top: calc(0.8600 * var(--xm-h)); }
.xm-k9 { left: 42.50%; top: calc(0.7320 * var(--xm-h)); }
.xm-k10 { left: 47.50%; top: calc(0.3480 * var(--xm-h)); }
.xm-k11 { left: 52.50%; top: calc(0.3480 * var(--xm-h)); }
.xm-k12 { left: 57.50%; top: calc(0.7320 * var(--xm-h)); }
.xm-k13 { left: 62.50%; top: calc(0.8600 * var(--xm-h)); }
.xm-k14 { left: 67.50%; top: calc(0.7320 * var(--xm-h)); }
.xm-k15 { left: 72.50%; top: calc(0.3480 * var(--xm-h)); }
.xm-k16 { left: 77.50%; top: calc(0.3480 * var(--xm-h)); }
.xm-k17 { left: 82.50%; top: calc(0.7320 * var(--xm-h)); }
.xm-k18 { left: 87.50%; top: calc(0.8600 * var(--xm-h)); }
.xm-k19 { left: 92.50%; top: calc(0.7320 * var(--xm-h)); }
.xm-k20 { left: 97.50%; top: calc(0.3480 * var(--xm-h)); }
@media (max-width: 699px) {
  .xm-hero { --xm-h: 34px; }
  .xm-string { top: 6px; }
  .xm-bulb { width: 12px; height: 22px; margin: -2px 0 0 -6px; }
  .xm-glow { width: 38px; height: 38px; margin: -19px 0 0 -19px; }
  .xm-alt { display: none; }
  .xm-spill { height: 130px; }
}

/* home.hero: the baubles, two on each side of the text (one on each side on a phone), each on a gold thread from the top edge. The
   pivot (.xm-pv) is the hook: christmas.js swings it like a pendulum; the ball's own picture (.xm-ballw) turns back by the same angle,
   so its reflections stay where the room's light is, as a real sphere's do, while the cap and the thread swing with it. The cap
   picture is drawn at the ball's scale: its top a 17th of the ball above the loop, a third of the ball tall. */
.xm-bauble { position: absolute; top: 0; width: var(--d); height: calc(var(--l) + var(--d) * 1.11); margin-left: calc(var(--d) / -2); }
.xm-pv { position: absolute; left: 0; top: 0; width: 100%; height: 100%; transform-origin: 50% 0; }
.xm-thread { position: absolute; left: 50%; top: 0; width: 1.2px; height: calc(var(--l) + 2px); margin-left: -.6px; background: var(--xm-thread); opacity: .85; }
.xm-cap { position: absolute; left: 50%; top: calc(var(--l) - var(--d) * .058); width: calc(var(--d) / 3); height: calc(var(--d) / 3); margin-left: calc(var(--d) / -6);
  background-image: url("/assets/seasonal/christmas/xmas-baubles.webp?v=b01d8b755b"); background-repeat: no-repeat; background-size: 1400% 300%; background-position-y: 0; }
.xm-cap-gold { background-position-x: calc(100% * 12 / 13); }
.xm-cap-silver { background-position-x: 100%; }
.xm-ballw { position: absolute; left: 0; top: calc(var(--l) + var(--d) * .109); width: var(--d); height: var(--d); }
.xm-ball { position: absolute; left: 0; top: 0; width: 100%; height: 100%; background-image: url("/assets/seasonal/christmas/xmas-baubles.webp?v=b01d8b755b");
  background-repeat: no-repeat; background-size: 466.667% 100%; }
.xm-red .xm-ball { background-position-x: 0; }
.xm-gold .xm-ball { background-position-x: calc(100% * 1 / 3.6667); }
.xm-green .xm-ball { background-position-x: calc(100% * 2 / 3.6667); }
.xm-silver .xm-ball { background-position-x: calc(100% * 3 / 3.6667); }
.xm-b1 { --d: 62px; --l: 118px; left: max(54px, calc(50% - 548px)); }
.xm-b2 { --d: 44px; --l: 196px; left: max(118px, calc(50% - 478px)); }
.xm-b3 { --d: 70px; --l: 150px; right: max(20px, calc(50% - 572px)); margin-left: 0; margin-right: calc(var(--d) / -2); }
.xm-b4 { --d: 42px; --l: 84px; right: max(96px, calc(50% - 494px)); margin-left: 0; margin-right: calc(var(--d) / -2); }
@media (max-width: 699px) {
  .xm-b1 { --d: 34px; --l: 52px; left: 30px; }
  .xm-b3 { --d: 30px; --l: 98px; right: 30px; }
  .xm-b2, .xm-b4 { display: none; }
}

/* foot: a small fir beside the snowman, lit, a gold star, its foot in the snowbank (a second mound in front of it); five warm points
   over its lights that christmas.js makes twinkle when the tree is tapped. The snowman wears a Santa hat (winter.js still makes it jump). */
.xm-tree { left: 96px; bottom: 7px; width: 60px; height: 74px; transform-origin: 50% 100%; }
.xm-tree-img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: url("/assets/seasonal/christmas/xmas-tree.webp?v=715a9b6601") no-repeat center bottom / contain; }
.xm-tw { position: absolute; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; opacity: 0;
  background: radial-gradient(closest-side, rgba(255, 236, 190, 1), rgba(255, 190, 90, .55) 45%, rgba(255, 190, 90, 0)); }
.xm-tw-1 { left: 44%; top: 30%; } .xm-tw-2 { left: 60%; top: 46%; } .xm-tw-3 { left: 34%; top: 58%; } .xm-tw-4 { left: 66%; top: 70%; } .xm-tw-5 { left: 46%; top: 80%; }
.xm-star { position: absolute; left: 50%; top: 3%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; opacity: .45;
  background: radial-gradient(closest-side, rgba(255, 226, 150, .9), rgba(255, 200, 90, .25) 50%, rgba(255, 200, 90, 0)); }
.xm-mound { left: 84px; bottom: 4px; width: 84px; height: 16px; border-radius: 50%; background: radial-gradient(closest-side, var(--ws-snow) 58%, var(--ws-snow-0) 100%); }
.xm-mound-front { left: 92px; bottom: 2px; width: 70px; height: 13px; }
.xm-sh-cone { fill: url(#xm-g-hat); } .xm-sh-fold { stroke: var(--xm-fold); }
.xm-sh-fur, .xm-sh-pom { fill: url(#xm-g-fur); }
.xm-foot .ws-patch { width: 176px; }

/* cause.give (quiet): the snow on the give box's top edge, and a small red bauble hanging from it (still). */
.xm-give > i { position: absolute; }
.xm-g-thread { right: -3px; top: 6px; width: 1.2px; height: 13px; background: var(--xm-thread); }
.xm-g-cap { right: -6.4px; top: 17.4px; width: 8px; height: 8px; background: url("/assets/seasonal/christmas/xmas-baubles.webp?v=b01d8b755b") no-repeat; background-size: 1400% 300%; background-position: calc(100% * 12 / 13) 0; }
.xm-g-ball { right: -14px; top: 22px; width: 24px; height: 24px; background: url("/assets/seasonal/christmas/xmas-baubles.webp?v=b01d8b755b") no-repeat; background-size: 466.667% 100%; background-position: 0 0; }

/* cause.cover (quiet, 26 Nov 2026, Sergiu: "in causes pages we need also Christmas decorations"): a fir garland with small warm lights
   laid along the top edge of the cover photo's frame, like on a picture frame at home, and a small bauble at each end. A zero-height
   layer right before the cover (no layout shift); it rests on the frame's edge, its lower half over the photo's top few pixels only,
   fading out at both ends where the frame rounds; still (a cause page stays calm), never a tap. */
.season-cover { position: relative; z-index: 3; height: 0; }
.xm-cover > * { position: absolute; }
.xm-garland { left: 4px; right: 4px; top: -17px; height: 36px; background: url("/assets/seasonal/christmas/xmas-garland.webp?v=33154d36ed") repeat-x 0 50% / auto 100%;
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0), #000 22px, #000 calc(100% - 22px), rgba(0, 0, 0, 0));
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0), #000 22px, #000 calc(100% - 22px), rgba(0, 0, 0, 0)); }
.xm-cb { top: 4px; width: 18px; height: 30px; }
.xm-cb > i { position: absolute; }
.xm-cb-l { left: 14px; } .xm-cb-r { right: 16px; }
.xm-cb-t { left: 8.4px; top: 0; width: 1.2px; height: 9px; background: var(--xm-thread); }
.xm-cb-c { left: 6px; top: 8.4px; width: 6px; height: 6px; background: url("/assets/seasonal/christmas/xmas-baubles.webp?v=b01d8b755b") no-repeat; background-size: 1400% 300%; background-position: calc(100% * 12 / 13) 0; }
.xm-cb-b { left: 0; top: 12px; width: 18px; height: 18px; background: url("/assets/seasonal/christmas/xmas-baubles.webp?v=b01d8b755b") no-repeat; background-size: 466.667% 100%; }
.xm-cb.xm-red .xm-cb-b { background-position: 0 0; }
.xm-cb.xm-gold .xm-cb-b { background-position: calc(100% * 1 / 3.6667) 0; }
@media (max-width: 699px) {
  .xm-garland { top: -14px; height: 30px; }
  .xm-cb { transform: scale(.85); transform-origin: 50% 0; }
}

/* cause.give at the gentle level (memorial and emergency causes, 26 Nov 2026, Sergiu: "one small warm candle, gentle snow, respectful,
   nothing playful"): one wax candle standing on the give box's top edge, its flame soft light that flickers a little for about a minute
   and a half, then burns still; still from the start with reduced motion. No lights, no baubles, no Santa on these pages. */
.xm-candle { top: -39px; right: 30px; width: 25px; height: 58px; }
.xm-candle > i { position: absolute; }
.xm-cdl-body { left: 0; bottom: 0; width: 25px; height: 42px; background: url("/assets/seasonal/christmas/xmas-candle.webp?v=84c7f203e7") no-repeat center bottom / contain; }
.xm-cdl-flame { left: 9px; top: 0; width: 7px; height: 15px; border-radius: 50% 50% 50% 50% / 64% 64% 36% 36%; transform-origin: 50% 100%;
  background: radial-gradient(ellipse 50% 46% at 50% 70%, #FFFBEA 0, #FFE4A0 32%, #FFB348 62%, rgba(255, 140, 40, .55) 82%, rgba(255, 120, 30, 0) 100%);
  animation: xm-flicker 2.3s ease-in-out .4s 40 alternate; }
.xm-cdl-glow { left: -16px; top: -14px; width: 53px; height: 46px; border-radius: 50%; opacity: var(--xm-cdl-a);
  background: radial-gradient(closest-side, rgba(255, 196, 110, .7), rgba(255, 170, 80, .22) 50%, rgba(255, 170, 80, 0)); animation: xm-glow 3.1s ease-in-out .4s 30 alternate; }
@keyframes xm-flicker { 0% { transform: scale(1, 1) rotate(0deg); } 40% { transform: scale(.96, 1.06) rotate(-2deg); } 70% { transform: scale(1.03, .95) rotate(1.5deg); } 100% { transform: scale(.98, 1.03) rotate(-1deg); } }
@keyframes xm-glow { from { opacity: var(--xm-cdl-a); } to { opacity: calc(var(--xm-cdl-a) * .8); } }
/* Sentinel F1 (26 Nov 2026): the footer switch keeps its words and its On and Off on a gentle page, but not its red bauble icon
   (Sergiu: "no lights, no baubles, no Santa" on memorial and emergency causes). */
:root[data-season-level="gentle"] .season-label .season-ico { display: none; }
