/* ==========================================================================
   CHRISTMAS LIGHTS — 228 Neural Edge Christmas dress (Dec 4, 2026, v1.9.75)
   One strand of bulbs strung across the top of the hero, under the
   Christmas band. Pure CSS, no script, no layout cost (zero-height
   container, bulbs hang into the hero's top padding).
   Hazel-safe discipline:
   - NO flashing, NO strobing. A few bulbs breathe between full glow and
     a soft dim over ~4 seconds (opacity only) — a twinkle, not a blink.
   - prefers-reduced-motion: every bulb holds a steady glow, no motion.
   - The strand is part of the dress: the theme-off toggle hides it
     (html.xmas-off rule lives in xmas-toggle-2026-12-04.css).
   Palette stays in the dress's register: warm white + the site's gold,
   with a muted berry and a muted pine every few bulbs, all low-glow.
   ========================================================================== */

.xmas-lights {
  position: relative; z-index: 5;
  height: 0; max-width: 1060px; margin: 0 auto; padding: 0 20px;
  display: flex; justify-content: space-between;
  pointer-events: none;
}
.xmas-lights i {
  position: relative; flex: 0 0 auto;
  width: 7px; height: 7px; margin-top: 13px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff8e6, #ffd98a 55%, #e8a83e);
  box-shadow: 0 0 10px 2px rgba(255, 190, 80, .50);
}
.xmas-lights i::before {
  content: ""; position: absolute; left: 50%; top: -13px;
  width: 1px; height: 13px; background: rgba(220, 225, 235, .38);
}
/* varied drop lengths — the swag rhythm of a real strand */
.xmas-lights i:nth-child(2n) { margin-top: 19px; }
.xmas-lights i:nth-child(2n)::before { top: -19px; height: 19px; }
.xmas-lights i:nth-child(3n) { margin-top: 9px; }
.xmas-lights i:nth-child(3n)::before { top: -9px; height: 9px; }
/* muted berry + pine, kept quiet */
.xmas-lights i:nth-child(5n) {
  background: radial-gradient(circle at 35% 35%, #ffe9e6, #f0a198 55%, #c4554d);
  box-shadow: 0 0 10px 2px rgba(230, 110, 95, .42);
}
.xmas-lights i:nth-child(7n) {
  background: radial-gradient(circle at 35% 35%, #eafff2, #a8d8b0 55%, #4f7d5a);
  box-shadow: 0 0 10px 2px rgba(110, 190, 130, .38);
}
/* the gentle twinkle — slow, shallow, staggered; never a flash */
.xmas-lights i:nth-child(3n) { animation: xl-tw 3.8s ease-in-out -1.2s infinite alternate; }
.xmas-lights i:nth-child(4n) { animation: xl-tw 4.6s ease-in-out -2.7s infinite alternate; }
@keyframes xl-tw { from { opacity: 1; } to { opacity: .45; } }

@media (prefers-reduced-motion: reduce) {
  /* !important: the nth-child twinkle rules out-specify a plain rule. */
  .xmas-lights i { animation: none !important; }
}
