/* Christmas theme (added Nov 24, 2026). Everything here only applies when seasonal.js adds
   the "xmas" class, and seasonal.js stops adding it on Jan 3, 2027 (up through Jan 2). See readme.md. */

/* Hero: keep the page content above the snow and lights */
html.xmas .hero-navy { overflow: hidden; padding-top: 44px; }
html.xmas .hero-navy > div:not(.xl-strip):not(.xs-snow) { position: relative; z-index: 1; }

/* Candy-cane stripes in place of the black-and-yellow ones */
html.xmas #top + div[aria-hidden],
html.xmas #get-app > div[aria-hidden]:first-child {
  background: repeating-linear-gradient(135deg, #C62828 0 22px, #FFFFFF 22px 44px) !important;
}

/* String lights */
.xl-strip { position: absolute; top: 0; left: 0; right: 0; height: 46px; z-index: 2; pointer-events: none; overflow: hidden; }
.xl-strip svg { display: block; }
.xl-b { animation: xl-blink 1.8s ease-in-out infinite; }
@keyframes xl-blink { 0%, 100% { opacity: 1; } 50% { opacity: .22; } }

/* Snow */
.xs-snow { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.xs-snow span { position: absolute; top: -12px; border-radius: 50%; background: #FFFFFF; animation: xs-fall linear infinite; }
@keyframes xs-fall { to { transform: translate3d(var(--dx, 0), var(--h, 900px), 0); } }

/* Merry Christmas band */
.xm-band { position: relative; overflow: hidden; color: #FFFFFF; background: radial-gradient(ellipse at 50% 0, #1C3F66 0, #0E2440 60%, #0A1A30 100%); }
.xm-band::after { content: ""; display: block; height: 14px; background: repeating-linear-gradient(135deg, #C62828 0 18px, #FFFFFF 18px 36px); position: relative; z-index: 1; }
.xm-in { position: relative; z-index: 1; max-width: 1240px; margin: 0 auto; padding: 72px 24px 56px; display: flex; flex-wrap: wrap; align-items: center; gap: 32px 40px; }
.xm-scene { flex: 1 1 620px; min-width: 0; order: 1; }
.xm-scene svg { display: block; width: 100%; height: auto; border-radius: 8px; box-shadow: 0 0 0 2px rgba(244, 194, 13, .35), 0 18px 40px rgba(0, 0, 0, .35); }
.xm-text { flex: 1 1 260px; min-width: 0; order: 2; }
/* Christmas tree in the hero: top of the right column, level with "Run the job. Not the paperwork." */
html.xmas .hero-navy .xm-tree-col { align-self: flex-start; }
.xm-hero-tree { width: 320px; margin: 0 auto 24px; }
.xm-hero-tree svg { display: block; width: 100%; height: auto; }
.xm-hero-tree.is-abs { position: absolute; right: 0; margin: 0; }
.xm-hero-tree.is-float { float: right; width: 118px; margin: 18px 0 6px 12px; }
.xm-eyebrow { margin: 0 0 10px; font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif; font-weight: 700; font-size: 18px; letter-spacing: .12em; text-transform: uppercase; color: #F4C20D; }
.xm-text h2 { margin: 0; font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif; font-weight: 800; font-size: clamp(2.75rem, 5.5vw, 4.5rem); line-height: .95; text-transform: uppercase; color: #FFFFFF; }
.xm-text h2 span { color: #F4C20D; }
.xm-verse { margin: 20px 0 0; font-size: 1.2rem; line-height: 1.5; font-style: italic; color: #DADDE2; }
.xm-verse cite { display: block; margin-top: 8px; font-style: normal; font-weight: 700; font-size: 1rem; color: #F4C20D; }

/* Tree lights */
.xt-b { animation: xt-blink 1.6s ease-in-out infinite; }
@keyframes xt-blink { 0%, 100% { opacity: 1; } 50% { opacity: .18; } }

@media (max-width: 959px) {
  .xm-text { order: 0; flex-basis: 100%; text-align: center; }
}
@media (max-width: 560px) {
  .xm-in { padding: 64px 16px 44px; }
}

/* Visitors who turn off motion get steady lights and no snow */
@media (prefers-reduced-motion: reduce) {
  .xl-b, .xt-b { animation: none; }
}
