/* Helvi Santa edition - on from 20 November to 6 January (site/santa.js adds .santa to <html>).
   Every rule is scoped to .santa, so the stylesheet does nothing the rest of the year. */

html.santa {
  /* Christmas crimson in place of Swiss red; each keeps the contrast its original was chosen for. */
  --red: #C21221;
  --red-hi: #D9303A;
  --red-lo: #9E0D1A;
  --red-ink: #6E0812;
  --red-tint: #FDE5E3;
  --red-text: #B01020;
  --red-btn: #BA1120;
  --santa-green: #0F5C3D;
  --santa-green-lo: #083D2B;
  --santa-gold: #F9CC5C;
}

/* Snowfall: drawn by santa.js, never in the way of a click. */
.santa-snow { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 45; pointer-events: none; }

/* The card that leads to the Christmas events. */
.santa-card {
  position: fixed; left: max(14px, env(safe-area-inset-left)); bottom: max(14px, env(safe-area-inset-bottom)); z-index: 48;
  display: flex; align-items: center; gap: 10px;
  max-width: min(360px, calc(100vw - 28px));
  padding: 10px 40px 10px 10px;
  border-radius: 18px; border: 1px solid rgba(249, 204, 92, .55);
  background: linear-gradient(135deg, var(--santa-green), var(--santa-green-lo));
  color: #fff; text-decoration: none; font-family: var(--font); line-height: 1.3;
  box-shadow: 0 14px 30px -12px rgba(8, 40, 28, .6);
}
.santa-card[hidden], .santa-close[hidden] { display: none; }
.santa-card img { flex: none; width: 54px; height: 49px; object-fit: contain; }
.santa-card b { display: block; font-size: 15.5px; font-weight: 800; letter-spacing: -.01em; }
.santa-card span span { display: block; margin-top: 2px; font-size: 13px; font-weight: 500; color: rgba(255, 255, 255, .92); }
.santa-card:hover b { text-decoration: underline; }
.santa-close {
  position: fixed; z-index: 49; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%;
  background: var(--santa-green-lo); color: #fff; font-size: 20px; line-height: 1; cursor: pointer;
}
.santa-close:hover { background: #0B4A34; }
@media (prefers-reduced-motion: no-preference) {
  .santa-card { animation: santaIn .5s var(--ease) .6s both; }
  .santa-close { animation: santaIn .5s var(--ease) .6s both; }
}
@keyframes santaIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Footer switch: shown through the season, also when the edition is switched off. */
.santa-toggle {
  padding: 4px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .28);
  background: transparent; color: rgba(255, 255, 255, .8); font-size: 13px; font-weight: 600; cursor: pointer;
}
.santa-toggle:hover { color: #fff; border-color: rgba(255, 255, 255, .6); }
.santa-toggle[aria-pressed="true"] { border-color: var(--santa-gold, #F9CC5C); color: #fff; }

@media print { .santa-snow, .santa-card, .santa-close, .santa-toggle { display: none; } }

/* Dark mode: the crimson stays for fills (buttons, the hero), but text reds and tints get lighter so they
   still read on the dark paper - the same values site.css uses, in a warmer Christmas hue. */
@media (prefers-color-scheme: dark) {
  html.santa {
    --red-ink: #FFB3B0;
    --red-tint: #3E1A1E;
    --red-text: #FF6F72;
    --red: #E0313F;
    --red-on-white: #B01020;
  }
}

@media print {
  html.santa { --red-ink: #6E0812; --red-tint: #FDE5E3; --red-text: #B01020; --red: #C21221; --red-on-white: #B01020; }
}
