/* December holiday look: twinkle lights under a snowy menu edge, light snow over the top of the page,
   icy-blue headings (Jeff, 5 Dec 2026). Loaded only while Services/HolidayLook.IsOn; every decoration is
   scoped under html.hol, which the head script removes when the visitor has turned the look off.
   Markup: Pages/Shared/_HolidayLook.cshtml. Mockups: Work/holiday-theme-2026/. */

/* The button is styled in both states, so a visitor who turned the look off can turn it back on. */
.hol-toggle { margin-left: 10px; border-radius: 999px; padding: 4px 12px; font: 600 .82rem/1.4 'Roboto Condensed', sans-serif;
  letter-spacing: .3px; cursor: pointer; white-space: nowrap; background: transparent; color: #cfe6ff; border: 1.5px solid #5b7aa0; }
.hol-toggle b { font-weight: 700; }
.hol-toggle:hover, .hol-toggle:focus-visible { border-color: #cfe6ff; }
html.hol .hol-toggle { background: #e8f2ff; color: #0d2440; border-color: #e8f2ff; }
@media (max-width: 768px) { .hol-toggle { margin: 8px 0 4px; align-self: flex-start; } }

.hol-lights, .hol-snow { display: none; }

/* Snowy edge on the menu (it stays with the menu as the page scrolls). */
html.hol .navbar { border-bottom-color: transparent; }
html.hol .navbar::after { content: ''; position: absolute; left: 0; right: 0; bottom: -10px; height: 14px; pointer-events: none;
  background:
    radial-gradient(ellipse 22px 9px at 22px 3px, #f2f7ff 98%, transparent 100%) 0 0 / 44px 14px repeat-x,
    radial-gradient(ellipse 15px 7px at 15px 2px, #e3eeff 98%, transparent 100%) 22px 0 / 37px 14px repeat-x;
  filter: drop-shadow(0 3px 4px rgba(150,190,255,.35)); }

/* The string of lights just under the snow. */
html.hol .hol-lights { display: block; position: relative; z-index: 2; height: 34px; overflow: hidden; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='34'%3E%3Cpath d='M0 9 Q30 22 60 9' fill='none' stroke='%235b6b55' stroke-width='2'/%3E%3C/svg%3E") repeat-x 0 0; }
.hol-lights i { position: absolute; top: 15px; width: 9px; height: 14px; border-radius: 50% 50% 45% 45%;
  background: var(--c); box-shadow: 0 0 10px 3px color-mix(in srgb, var(--c) 66%, transparent); animation: hol-tw 2.4s ease-in-out infinite; }
.hol-lights i::before { content: ''; position: absolute; left: 2px; top: -4px; width: 5px; height: 5px; background: #3a4a3a; border-radius: 1px; }
@keyframes hol-tw { 0%, 100% { opacity: 1 } 50% { opacity: .55 } }

/* Light snow over the top of the page, behind the content, so it never covers pictures or text. */
html.hol .hol-snow { display: block; position: absolute; left: 0; right: 0; top: 0; height: 620px; overflow: hidden; pointer-events: none; z-index: 0; }
.hol-snow i { position: absolute; top: -10px; border-radius: 50%; background: #fff; animation: hol-fall linear infinite; will-change: transform; }
@keyframes hol-fall { 0% { transform: translate(0, 0) } 50% { transform: translate(12px, 310px) } 100% { transform: translate(0, 630px); opacity: 0 } }
html.hol .site-tagline, html.hol main { position: relative; z-index: 1; }
html.hol body { background-image: linear-gradient(180deg, #0f1b2b 0, #0d1117 560px); background-repeat: no-repeat; }
html.hol .section-title { color: #cfe6ff; }
/* The homepage's top sections paint the page colour over themselves (inline style), which would hide the snow. */
html.hol main > section[style*="background: var(--bg);"] { background: transparent !important; }
@media (max-width: 600px) { .hol-snow i:nth-child(n+31) { display: none; } }

/* Visitors who ask their device for less motion get still lights and still snow. */
@media (prefers-reduced-motion: reduce) {
  .hol-lights i { animation: none; }
  .hol-snow i { animation: none; transform: translateY(var(--y)); }
}
