/* CHRISTMAS THEME — every rule sits under html.xmas, so the normal site is untouched when the class is off.
   Night-sky navy stays; violet/blue accents become Christmas red, gold and pine green. */
html.xmas{
  --violet:#f4c95d; --blue:#2fa56a;
  --grad:linear-gradient(90deg,#ff5a5f 0%,#ffb454 60%,#f6d06b 100%);
  --line:rgba(255,222,170,.14);
  --x-red:#e63946; --x-red2:#c21f2f; --x-gold:#f4c95d; --x-green:#2fa56a;
}

/* hero + page headers: gold glow round the star, red and pine green in the corners */
html.xmas .hero,html.xmas .page-head{background:
  radial-gradient(circle at 82% 22%,rgba(226,160,60,.20),transparent 40%),
  radial-gradient(circle at 100% 0%,rgba(196,32,50,.22),transparent 42%),
  radial-gradient(circle at 8% 96%,rgba(24,128,80,.28),transparent 44%),
  linear-gradient(45deg,rgba(7,9,24,0) 0%,rgba(11,17,40,.12) 50%,rgba(22,18,47,.25) 100%)!important}

/* buttons and accents */
html.xmas .btn-primary{background:linear-gradient(90deg,#c9202f 0%,#ef4b4b 100%);box-shadow:0 8px 28px -8px rgba(230,57,70,.75)}
html.xmas .btn-xl{box-shadow:0 12px 36px -10px rgba(230,57,70,.9),0 0 0 1px rgba(246,208,107,.35) inset}
html.xmas .links a.nb-a{background:linear-gradient(90deg,#c9202f,#ef4b4b);box-shadow:0 6px 20px -8px rgba(230,57,70,.85)}
html.xmas .eyebrow,html.xmas .h4{color:#f3d9a4}
html.xmas .step::before{background:linear-gradient(135deg,#c9202f,#ef4b4b);box-shadow:0 0 0 1px rgba(246,208,107,.4) inset}
html.xmas .step:nth-child(even)::before{background:linear-gradient(135deg,#1f7a4d,#2fa56a)}
html.xmas .brand img{box-shadow:0 0 0 2px rgba(244,201,93,.55)}
html.xmas .about-card img{box-shadow:0 0 0 3px rgba(244,201,93,.45),0 20px 50px -20px rgba(230,57,70,.8)}
html.xmas .card:hover{border-color:rgba(244,201,93,.5);box-shadow:0 18px 40px -20px rgba(230,57,70,.6)}
html.xmas .cbox:hover{border-color:rgba(244,201,93,.5)}
html.xmas .custom{border-color:rgba(244,201,93,.35);background:radial-gradient(120% 140% at 0% 0%,rgba(214,40,57,.20),transparent 60%),radial-gradient(120% 140% at 100% 100%,rgba(47,165,106,.14),transparent 60%),var(--card)}
html.xmas .note{background:radial-gradient(140% 120% at 100% 0%,rgba(47,165,106,.18),transparent 60%),var(--card)}
html.xmas .about-card{background:radial-gradient(120% 120% at 100% 0%,rgba(214,40,57,.22),transparent 55%),radial-gradient(120% 120% at 0% 100%,rgba(47,165,106,.18),transparent 55%),var(--card)}
html.xmas .why .ic{background:rgba(47,165,106,.16);color:#8fe3b6}
html.xmas .why > div:nth-child(even) .ic,html.xmas .why li:nth-child(even) .ic{background:rgba(230,57,70,.16);color:#ff9aa2}
html.xmas .chips span,html.xmas .active-chips button{background:rgba(244,201,93,.11);border-color:rgba(244,201,93,.3);color:#ffe9bd}
html.xmas .card .eng{color:#ffe9bd;background:rgba(244,201,93,.13);border-color:rgba(244,201,93,.36)}
html.xmas .specs .sp-eng{background:rgba(244,201,93,.11);border-color:rgba(244,201,93,.4)}
html.xmas .field select:focus,html.xmas .field input:focus,html.xmas .qform .field input:focus,html.xmas .qform .field textarea:focus{outline-color:rgba(244,201,93,.7)}
html.xmas .cbox .tag{background:linear-gradient(90deg,#c9202f,#ef4b4b)}

/* string lights under the header */
html.xmas .xlights{position:absolute;left:0;right:0;top:100%;height:24px;overflow:hidden;pointer-events:none;z-index:-1;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='12'%3E%3Cpath d='M0 1.5Q17 9 34 1.5' fill='none' stroke='%232c3a34' stroke-width='1.4'/%3E%3C/svg%3E") 0 0/34px 12px repeat-x}
html.xmas .xlights i{position:absolute;top:5px;width:7px;height:10px;margin-left:1.5px;border-radius:50% 50% 50% 50%/42% 42% 58% 58%;background:var(--c);box-shadow:0 0 9px 2px var(--c);animation:xtw 3.1s ease-in-out infinite}
html.xmas .xlights i::before{content:"";position:absolute;left:1.5px;top:-2.5px;width:4px;height:3.5px;border-radius:1px;background:#3b4a43}
html.xmas .xlights i:nth-child(4n+1){--c:#ff4d5a}
html.xmas .xlights i:nth-child(4n+2){--c:#ffd166}
html.xmas .xlights i:nth-child(4n+3){--c:#37d67a}
html.xmas .xlights i:nth-child(4n){--c:#7cc4ff}
@keyframes xtw{0%,100%{opacity:1;filter:brightness(1.15)}50%{opacity:.38;filter:brightness(.8)}}
html.xmas .hero .wrap{padding-top:96px}

/* Santa hat on the logo */
html.xmas .brand{position:relative}
html.xmas .brand::before{display:none!important;content:"";position:absolute;left:-7px;top:-11px;width:30px;height:26px;transform:rotate(-20deg);pointer-events:none;z-index:1;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 52'%3E%3Cpath d='M8 40C10 20 24 6 40 6c8 0 14 6 16 16l-6 2c-2-6-5-8-9-8 4 6 6 14 5 24z' fill='%23e23645'/%3E%3Cpath d='M40 6c8 0 14 6 16 16l-6 2c-2-6-5-8-9-8z' fill='%23c21f2f'/%3E%3Crect x='3' y='36' width='48' height='12' rx='6' fill='%23fff'/%3E%3Ccircle cx='54' cy='25' r='6' fill='%23fff'/%3E%3C/svg%3E") center/contain no-repeat}

/* snow on top of the main button */
html.xmas .btn-xl{position:relative}
html.xmas .btn-xl::before{content:"";position:absolute;left:10px;right:10px;top:-7px;height:15px;pointer-events:none;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 30' preserveAspectRatio='none'%3E%3Cpath d='M4 16C4 6 20 4 34 7c14-6 30-5 44 0 16-5 34-5 50 0 14-5 32-5 46 0 16-5 34-4 48 1 14-5 30-4 44 0 12-3 30-1 30 8 0 5-5 7-9 7-3 0-4 6-9 6s-6-6-10-6h-52c-4 0-4 8-9 8s-5-8-9-8H130c-4 0-5 5-9 5s-5-5-9-5H52c-4 0-4 9-9 9s-5-9-9-9H14c-5 0-10-2-10-7z' fill='%23fff'/%3E%3C/svg%3E") center/100% 100% no-repeat;
  filter:drop-shadow(0 2px 2px rgba(20,30,60,.35))}

/* greeting chip in the hero (only shown while the theme is on) */
.xgreet{display:none}
html.xmas .xgreet{display:inline-flex;align-items:center;gap:9px;margin-bottom:20px;padding:7px 15px 7px 11px;border-radius:999px;font:600 13.5px/1 Montserrat,Inter,sans-serif;letter-spacing:.04em;color:#ffe9bd;
  background:linear-gradient(90deg,rgba(214,40,57,.24),rgba(47,165,106,.2));border:1px solid rgba(244,201,93,.4)}
html.xmas .xgreet svg{width:18px;height:18px;flex:none}

/* snowy hills along the bottom of the hero */
html.xmas .hero::before{content:"";position:absolute;left:0;right:0;bottom:-1px;height:74px;pointer-events:none;z-index:1;
  background:
   url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 74' preserveAspectRatio='none'%3E%3Cpath d='M0 74V46c120-26 240-30 380-8 150 24 270 20 400-4 150-28 290-22 420 6v34z' fill='%23ffffff' fill-opacity='.09'/%3E%3Cpath d='M0 74V58c160-22 330-20 480-4 170 18 330 14 470-4 100-12 180-10 250 0v24z' fill='%23ffffff' fill-opacity='.15'/%3E%3C/svg%3E") bottom/100% 100% no-repeat}

/* Santa and the snow layer */
.xsnow{position:fixed;inset:0;width:100%;height:100%;pointer-events:none;z-index:-1}
.xspark{position:fixed;inset:0;width:100%;height:100%;pointer-events:none;z-index:71}
.xsanta{position:fixed;left:0;top:0;pointer-events:none;z-index:70;will-change:transform;opacity:.88;filter:drop-shadow(0 4px 10px rgba(0,0,0,.35))}
.xsanta svg{display:block;width:100%;height:auto;overflow:visible}
.xsanta .xs-bob{animation:xbob .5s ease-in-out infinite alternate}
.xsanta .xs-sleigh{animation-duration:.9s}
.xsanta .xs-leg-f{transform-origin:67px 52px;animation:xleg .36s ease-in-out infinite alternate}
.xsanta .xs-leg-b{transform-origin:33px 52px;animation:xleg .36s ease-in-out infinite alternate-reverse}
@keyframes xbob{from{transform:translateY(-1.6px)}to{transform:translateY(1.6px)}}
@keyframes xleg{from{transform:rotate(-30deg)}to{transform:rotate(30deg)}}
@media (prefers-reduced-motion:reduce){html.xmas .xlights i{animation:none}}

/* little cars along the hero: red to gold, parked on the snow */
html.xmas #cg stop:first-child{stop-color:#e23645}
html.xmas #cg stop:last-child{stop-color:#f4c95d}

.xsanta{display:none!important}
