/* ShipBang holiday decoration layer — Christmas 2026.
   PURE DECORATION (owner ruling 2026-12-03): this file styles only
   the seasonal greeting banner, the snowfall layer and one footer
   sprig. It never restyles existing components, never changes a
   button colour, and the snowfall layer is pointer-events:none so
   it can never intercept a click. When the layer is off (master
   switch off, or outside the Dec 15–26 Chicago window) the banner
   stays display:none and the snow layer is never created — the
   page renders exactly as without this file. */

/* --- greeting banner: deep green (the site's own accent family)
   with a thin gold rule — festive, still a logistics site. It sits
   in normal flow at the top of the home view, stacked with the
   other .notice bars (stale / holiday-service / maintenance);
   bars never overlap because every one of them is in-flow. --- */
.sb-xmas-banner {
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(90deg, #064233, #0a5c46);
  color: #f6ead0;
  border: 1px solid #064233;
  border-bottom: 3px solid #c9a227;
  border-radius: 10px;
  padding: 12px 16px;
  margin: 12px 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}
.sb-xmas-banner svg { flex: 0 0 auto; }

/* --- snowfall: a fixed, click-through veil of a handful of small
   dots animated with transform only (compositor-friendly, no
   per-frame JS). Flakes are <i> elements whose size / position /
   duration / delay are set inline by holiday-decor.js. --- */
.sb-xmas-snow {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 40;
}
.sb-xmas-snow i {
  position: absolute;
  top: -4vh;
  display: block;
  border-radius: 50%;
  /* pale steel-blue, not pure white: the site background is a warm
     off-white, where white flakes would be invisible. The tint and
     the soft shadow keep the snow readable yet quiet. */
  background: #cfdff0;
  opacity: .8;
  box-shadow: 0 0 5px rgba(110, 140, 175, .5);
  animation-name: sb-xmas-fall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  will-change: transform;
}
@keyframes sb-xmas-fall {
  0%   { transform: translate(0, -4vh); }
  25%  { transform: translate(1.2vw, 24vh); }
  50%  { transform: translate(-0.6vw, 52vh); }
  75%  { transform: translate(1vw, 78vh); }
  100% { transform: translate(0, 106vh); }
}

/* --- footer sprig: one small tree inline before the footer
   brand line. Inline-level, adds no layout block of its own. --- */
.sb-xmas-foot { display: inline-flex; vertical-align: -4px; margin-right: 8px; }

/* --- reduced motion: no falling snow at all. (holiday-decor.js
   also checks matchMedia before creating the layer; this is the
   belt-and-braces half for a preference flipped mid-session.) --- */
@media (prefers-reduced-motion: reduce) {
  .sb-xmas-snow { display: none; }
  .sb-xmas-snow i { animation: none; }
}

/* --- small screens: the banner wraps inside its own padding;
   nothing here sets a fixed width, so no horizontal scroll. --- */
@media (max-width: 760px) {
  .sb-xmas-banner { font-size: 14px; padding: 10px 12px; }
}
