/* Shared by the main site and Yugo; loaded only when params.holiday.enabled. */
.site-header,
main#top {
  position: relative;
}

.holiday-decoration {
  --holiday-wire: #98a795;
  --holiday-gold: #d6a348;
  --holiday-red: #c77668;
  --holiday-green: #6c9c7d;
  --holiday-core: #fff0cb;
  position: absolute;
  z-index: 1;
  pointer-events: none;
}

[data-theme="dark"] .holiday-decoration {
  --holiday-wire: #65796b;
  --holiday-gold: #e4bc6c;
  --holiday-red: #d98e80;
  --holiday-green: #88b59b;
}

/* Hang just below the header divider, leaving the navigation untouched. */
.holiday-decoration--header {
  inset: auto 0 -11px;
  height: 12px;
}

/* Follow the entire Yugo panel, including pages taller than the viewport. */
.holiday-decoration--frame { inset: -3px; }

.holiday-decoration__edge {
  position: absolute;
  /* Three small bulbs per repeat; no images, scripts, or animation. */
  background-image:
    radial-gradient(ellipse var(--bulb-size) at var(--bulb-red), var(--holiday-core) 12%, var(--holiday-red) 55%, var(--holiday-red) 85%, transparent 100%),
    radial-gradient(ellipse var(--bulb-size) at var(--bulb-gold), var(--holiday-core) 12%, var(--holiday-gold) 55%, var(--holiday-gold) 85%, transparent 100%),
    radial-gradient(ellipse var(--bulb-size) at var(--bulb-green), var(--holiday-core) 12%, var(--holiday-green) 55%, var(--holiday-green) 85%, transparent 100%);
}

.holiday-decoration__edge--top,
.holiday-decoration__edge--bottom {
  --bulb-size: 3px 4px;
  --bulb-red: 28px 4px;
  --bulb-gold: 84px 4px;
  --bulb-green: 140px 4px;
  left: 0;
  right: 0;
  height: 12px;
  border-top: 1px solid var(--holiday-wire);
  background-size: 168px 12px;
  background-repeat: repeat-x;
}

.holiday-decoration__edge--top { top: 0; }
.holiday-decoration__edge--bottom { bottom: 0; transform: scaleY(-1); }

.holiday-decoration__edge--left,
.holiday-decoration__edge--right {
  --bulb-size: 4px 3px;
  --bulb-red: 4px 28px;
  --bulb-gold: 4px 84px;
  --bulb-green: 4px 140px;
  top: 0;
  bottom: 0;
  width: 12px;
  border-left: 1px solid var(--holiday-wire);
  background-size: 12px 168px;
  background-repeat: repeat-y;
}

.holiday-decoration__edge--left { left: 0; }
.holiday-decoration__edge--right { right: 0; transform: scaleX(-1); }

@media print {
  .holiday-decoration { display: none; }
}
