/* Christmas seasonal extras.
   Remove this file, christmas-season.js, their <link>/<script>, and the
   .xm-banner markup to revert. */

.xm-banner{
  position:relative;
  background:linear-gradient(180deg,#1a1814 0%,#15130f 70%);
  border-bottom:0;
  color:#f5b700;
  text-align:center;
  font-weight:700;
  font-size:14px;
  letter-spacing:.02em;
  line-height:1.35;
  padding:8px 0 0;
  z-index:11;
  overflow:visible;
}
.xm-banner-inner{
  position:relative;
  z-index:2;
  display:flex;
  align-items:flex-end;
  justify-content:center;
  gap:8px;
  max-width:100%;
  padding:2px 16px 0;
  box-sizing:border-box;
}
.xm-banner-text{
  margin:0;
  padding:0 0 3px;
  position:relative;
  z-index:1;
  white-space:nowrap;
  line-height:1.2;
  background-image:linear-gradient(180deg,#ffffff 0 26%,#ffe27a 42%,#f5b700 58%,#f5b700 100%);
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
  color:#f5b700;
  filter:drop-shadow(0 1px 0 rgba(28,26,23,.55)) drop-shadow(0 -1px 1px rgba(255,255,255,.35));
}
.xm-beagle-wrap{
  position:relative;
  flex:none;
  width:54px;
  height:48px;
  margin-bottom:-6px;
  transform-origin:center bottom;
}
.xm-beagle{
  display:block;
  width:54px;
  height:48px;
  overflow:visible;
  animation:xm-beagle-bob 2.1s ease-in-out infinite;
  transform-origin:center bottom;
}
.xm-hat{
  transform-box:fill-box;
  transform-origin:70% 100%;
  animation:xm-hat-bob 2.2s ease-in-out infinite;
}
.xm-tail{
  transform-box:fill-box;
  transform-origin:100% 80%;
  animation:xm-wag .7s ease-in-out infinite;
}

@keyframes xm-beagle-bob{
  0%,100%{transform:translateY(0)}
  50%{transform:translateY(-2px)}
}
@keyframes xm-hat-bob{
  0%,100%{transform:rotate(-3deg)}
  50%{transform:rotate(4deg)}
}
@keyframes xm-wag{
  0%,100%{transform:rotate(8deg)}
  50%{transform:rotate(-12deg)}
}
@keyframes xm-step{
  0%,100%{transform:rotate(16deg)}
  50%{transform:rotate(-16deg)}
}

/* Walk-on-letters layout is applied by JS (class xm-walking).
   Without JS or with reduced motion, the beagle stays beside the text. */
.xm-banner.xm-walking .xm-banner-inner{
  min-height:48px;
  padding-top:30px;
}
.xm-banner.xm-walking .xm-banner-text{
  display:inline-block;
}
.xm-banner.xm-walking .xm-beagle-wrap{
  position:absolute;
  left:0;
  bottom:-6px;
  margin-bottom:0;
  z-index:3;
  pointer-events:none;
  will-change:left,transform;
}
.xm-banner.xm-walking .xm-leg-l,
.xm-banner.xm-walking .xm-leg-r,
.xm-banner.xm-walking .xm-arm-l,
.xm-banner.xm-walking .xm-arm-r{
  transform-box:fill-box;
  transform-origin:50% 0%;
}
.xm-banner.xm-walking .xm-leg-l,
.xm-banner.xm-walking .xm-arm-r{animation:xm-step .35s ease-in-out infinite}
.xm-banner.xm-walking .xm-leg-r,
.xm-banner.xm-walking .xm-arm-l{animation:xm-step .35s ease-in-out infinite reverse}

.xm-snowbank{
  position:relative;
  z-index:1;
  width:100%;
  height:26px;
  margin-top:-10px;
  line-height:0;
  overflow:visible;
  pointer-events:none;
  filter:drop-shadow(0 2px 3px rgba(20,24,32,.28));
}
.xm-snowbank-svg{
  display:block;
  width:100%;
  height:26px;
  overflow:visible;
}

/* Lights hang from the bottom edge of the snow pile, drooping in swags
   over the top of the header. Negative margin keeps the banner compact. */
.xm-lights{
  position:relative;
  width:100%;
  height:22px;
  margin-top:-1px;
  margin-bottom:-12px;
  pointer-events:none;
  z-index:12;
  overflow:visible;
}
.xm-wire{
  position:absolute;
  left:0;
  right:0;
  top:0;
  width:100%;
  height:16px;
  display:block;
}
.xm-lights-row{
  position:absolute;
  left:0;
  right:0;
  top:0;
  height:22px;
  pointer-events:none;
}
.xm-bulb{
  position:absolute;
  top:0;
  width:8px;
  height:11px;
  margin-left:-4px;
  border-radius:50% 50% 50% 50% / 42% 42% 58% 58%;
  animation:xm-twinkle 2.4s ease-in-out infinite;
}
.xm-bulb::before{
  content:"";
  position:absolute;
  top:-3px;
  left:50%;
  width:4px;
  height:3px;
  margin-left:-2px;
  background:#6a6358;
  border-radius:1px;
  z-index:1;
}
.xm-bulb::after{
  content:"";
  position:absolute;
  inset:-7px;
  border-radius:50%;
  background:radial-gradient(circle,var(--xm-glow) 0%,transparent 70%);
  z-index:-1;
  pointer-events:none;
}
.xm-bulb-gold{
  --xm-glow:rgba(255,210,60,.7);
  background:radial-gradient(circle at 35% 28%,#fffce6,#ffe44a 38%,#f5b700 68%,#e09000);
  box-shadow:0 0 4px 2px rgba(255,230,120,.95),0 0 10px 5px rgba(245,183,0,.85),0 0 18px 9px rgba(245,183,0,.4);
}
.xm-bulb-white{
  --xm-glow:rgba(255,252,230,.75);
  background:radial-gradient(circle at 35% 28%,#fff,#fff8d8 45%,#ffe9a0 80%);
  box-shadow:0 0 5px 2px rgba(255,255,240,.95),0 0 12px 6px rgba(255,236,180,.75),0 0 20px 10px rgba(255,220,120,.35);
}
.xm-bulb-red{
  --xm-glow:rgba(255,70,50,.65);
  background:radial-gradient(circle at 35% 28%,#ffd8d0,#ff4e3c 38%,#e21810 68%,#b01008);
  box-shadow:0 0 4px 2px rgba(255,120,100,.95),0 0 10px 5px rgba(226,24,16,.8),0 0 18px 9px rgba(226,24,16,.4);
}
.xm-bulb-amber{
  --xm-glow:rgba(255,180,40,.7);
  background:radial-gradient(circle at 35% 28%,#fff5c8,#ffb020 38%,#ff8a00 68%,#d36a00);
  box-shadow:0 0 4px 2px rgba(255,200,80,.95),0 0 10px 5px rgba(255,138,0,.8),0 0 18px 9px rgba(255,138,0,.4);
}
.xm-bulb-green{
  --xm-glow:rgba(50,230,90,.6);
  background:radial-gradient(circle at 35% 28%,#e8ffe8,#4aff6e 38%,#16c447 68%,#0e8a30);
  box-shadow:0 0 4px 2px rgba(120,255,150,.9),0 0 10px 5px rgba(22,196,71,.75),0 0 18px 9px rgba(22,196,71,.35);
}

@keyframes xm-twinkle{
  0%,100%{opacity:1;filter:brightness(1.12)}
  45%{opacity:.78;filter:brightness(.96)}
  60%{opacity:1;filter:brightness(1.32)}
}

@media (max-width:600px){
  .xm-banner{font-size:13px;padding:3px 0 0}
  .xm-banner-inner{padding:1px 12px 0;gap:5px}
  .xm-beagle-wrap{width:42px;height:38px;margin-bottom:-5px}
  .xm-beagle{width:42px;height:38px}
  .xm-snowbank{height:20px;margin-top:-8px}
  .xm-snowbank-svg{height:20px}
  .xm-lights{height:18px;margin-bottom:-10px}
  .xm-bulb{width:7px;height:10px;margin-left:-3.5px}
  .xm-banner.xm-walking{padding-top:18px}
  .xm-banner.xm-walking .xm-banner-inner{min-height:38px;padding-top:22px}
  .xm-banner.xm-walking .xm-beagle-wrap{bottom:-5px}
}
@media (max-width:360px){
  .xm-banner{font-size:12px}
  .xm-banner-inner{gap:4px;padding:1px 8px 0}
}

/* Falling snow overlay: never captures clicks. */
.xm-snow{
  position:fixed;
  inset:0;
  z-index:30;
  pointer-events:none;
  width:100%;
  height:100%;
  display:block;
}

html.xm-paused .xm-beagle,
html.xm-paused .xm-hat,
html.xm-paused .xm-tail,
html.xm-paused .xm-leg-l,
html.xm-paused .xm-leg-r,
html.xm-paused .xm-arm-l,
html.xm-paused .xm-arm-r,
html.xm-paused .xm-bulb{
  animation-play-state:paused !important;
}

@media (prefers-reduced-motion:reduce){
  .xm-beagle,.xm-hat,.xm-tail,.xm-leg-l,.xm-leg-r,.xm-arm-l,.xm-arm-r,.xm-bulb{
    animation:none !important;
  }
  .xm-snow{display:none !important}
}


/* ---- Seasonal snow caps on cards, headings, header, and footer.
   Remove with the rest of the Christmas files after the season. ---- */

.card,.pcard,.info,.photo,.fence-video,h2,footer,.faq-mini{
  position:relative;
}

/* Keep inner media clipped to rounded corners when the card itself
   is overflow:visible so snow can sit on the top edge. */
.pcard{overflow:visible}
.pcard .pcar,
.pcard > picture{
  border-top-left-radius:var(--r,14px);
  border-top-right-radius:var(--r,14px);
  overflow:hidden;
}
.photo{overflow:visible}
.photo .pcar,
.photo > picture,
.photo > img{
  border-radius:var(--r,14px);
  overflow:hidden;
}
.fence-video{overflow:visible}
.fence-video video{
  border-radius:var(--r,14px);
}

.card::before,
.pcard::before,
.info::before,
.photo::before,
.fence-video::before{
  content:"";
  position:absolute;
  left:-1px;
  right:-1px;
  top:-16px;
  height:28px;
  background:url("data:image/svg+xml,%3Csvg xmlns%3D'http%3A//www.w3.org/2000/svg' viewBox%3D'0 0 400 40' preserveAspectRatio%3D'none'%3E%0A%3Cdefs%3E%3ClinearGradient id%3D'g' x1%3D'0' y1%3D'0' x2%3D'0' y2%3D'1'%3E%0A%3Cstop offset%3D'0' stop-color%3D'%23ffffff'/%3E%3Cstop offset%3D'.4' stop-color%3D'%23eef5fb'/%3E%3Cstop offset%3D'1' stop-color%3D'%23b7cbe0'/%3E%0A%3C/linearGradient%3E%3C/defs%3E%0A%3Cpath fill%3D'url(%23g)' d%3D'M-2 20 C 18 20 32 11 58 13 C 90 16 112 8 150 12 C 188 16 220 7 268 11 C 310 14 338 6 372 10 C 388 12 402 16 402 20 L402 23 C 392 23 384 35 372 36 C 360 37 356 26 344 23 C 300 23 220 25 120 23 C 70 22 30 23 -2 23 Z'/%3E%0A%3Cpath d%3D'M-2 20 C 18 20 32 11 58 13 C 90 16 112 8 150 12 C 188 16 220 7 268 11 C 310 14 338 6 372 10 C 388 12 402 16 402 20' fill%3D'none' stroke%3D'%23fff' stroke-width%3D'1.3' stroke-linecap%3D'round' opacity%3D'.75'/%3E%0A%3C/svg%3E") no-repeat center / 100% 100%;
  pointer-events:none;
  z-index:5;
  filter:drop-shadow(0 1px 1px rgba(16,20,28,.18));
}
.card:nth-child(3n+2)::before,
.pcard:nth-child(3n+2)::before,
.info::before{
  background-image:url("data:image/svg+xml,%3Csvg xmlns%3D'http%3A//www.w3.org/2000/svg' viewBox%3D'0 0 400 40' preserveAspectRatio%3D'none'%3E%0A%3Cdefs%3E%3ClinearGradient id%3D'g' x1%3D'0' y1%3D'0' x2%3D'0' y2%3D'1'%3E%0A%3Cstop offset%3D'0' stop-color%3D'%23ffffff'/%3E%3Cstop offset%3D'.4' stop-color%3D'%23eef5fb'/%3E%3Cstop offset%3D'1' stop-color%3D'%23b7cbe0'/%3E%0A%3C/linearGradient%3E%3C/defs%3E%0A%3Cpath fill%3D'url(%23g)' d%3D'M-2 18 C 12 10 40 6 78 11 C 114 16 140 8 184 12 C 230 16 270 9 320 13 C 350 16 380 14 402 20 L402 23 C 340 24 250 23 180 23 C 150 23 146 34 134 35 C 122 36 118 26 108 23 C 80 23 50 34 38 35 C 26 36 22 25 10 23 L-2 23 Z'/%3E%0A%3Cpath d%3D'M-2 18 C 12 10 40 6 78 11 C 114 16 140 8 184 12 C 230 16 270 9 320 13 C 350 16 380 14 402 20' fill%3D'none' stroke%3D'%23fff' stroke-width%3D'1.3' stroke-linecap%3D'round' opacity%3D'.75'/%3E%0A%3C/svg%3E");
}
.card:nth-child(3n+3)::before,
.pcard:nth-child(3n+3)::before,
.photo::before{
  background-image:url("data:image/svg+xml,%3Csvg xmlns%3D'http%3A//www.w3.org/2000/svg' viewBox%3D'0 0 400 40' preserveAspectRatio%3D'none'%3E%0A%3Cdefs%3E%3ClinearGradient id%3D'g' x1%3D'0' y1%3D'0' x2%3D'0' y2%3D'1'%3E%0A%3Cstop offset%3D'0' stop-color%3D'%23ffffff'/%3E%3Cstop offset%3D'.4' stop-color%3D'%23eef5fb'/%3E%3Cstop offset%3D'1' stop-color%3D'%23b7cbe0'/%3E%0A%3C/linearGradient%3E%3C/defs%3E%0A%3Cpath fill%3D'url(%23g)' d%3D'M-2 20 C 30 14 55 8 95 12 C 135 16 165 7 205 11 C 245 15 275 8 315 12 C 350 16 380 11 402 18 L402 23 C 370 23 330 23 300 23 C 292 23 288 34 276 35 C 264 36 260 26 248 23 C 200 23 160 23 140 23 C 132 23 128 33 118 34 C 108 35 104 26 96 23 C 50 23 20 23 -2 23 Z'/%3E%0A%3Cpath d%3D'M-2 20 C 30 14 55 8 95 12 C 135 16 165 7 205 11 C 245 15 275 8 315 12 C 350 16 380 11 402 18' fill%3D'none' stroke%3D'%23fff' stroke-width%3D'1.3' stroke-linecap%3D'round' opacity%3D'.75'/%3E%0A%3C/svg%3E");
}
.card:nth-child(3n+4)::before,
.fence-video::before{
  background-image:url("data:image/svg+xml,%3Csvg xmlns%3D'http%3A//www.w3.org/2000/svg' viewBox%3D'0 0 400 40' preserveAspectRatio%3D'none'%3E%0A%3Cdefs%3E%3ClinearGradient id%3D'g' x1%3D'0' y1%3D'0' x2%3D'0' y2%3D'1'%3E%0A%3Cstop offset%3D'0' stop-color%3D'%23ffffff'/%3E%3Cstop offset%3D'.4' stop-color%3D'%23eef5fb'/%3E%3Cstop offset%3D'1' stop-color%3D'%23b7cbe0'/%3E%0A%3C/linearGradient%3E%3C/defs%3E%0A%3Cpath fill%3D'url(%23g)' d%3D'M-2 21 C 40 21 50 12 80 14 C 115 16 130 9 165 13 C 200 17 230 8 270 10 C 310 12 340 9 368 8 C 388 7 402 14 402 19 L402 23 C 394 23 388 37 376 38 C 364 39 358 26 348 23 C 260 24 140 23 40 23 C 18 23 8 23 -2 23 Z'/%3E%0A%3Cpath d%3D'M-2 21 C 40 21 50 12 80 14 C 115 16 130 9 165 13 C 200 17 230 8 270 10 C 310 12 340 9 368 8 C 388 7 402 14 402 19' fill%3D'none' stroke%3D'%23fff' stroke-width%3D'1.3' stroke-linecap%3D'round' opacity%3D'.75'/%3E%0A%3C/svg%3E");
}

/* Bottom-edge bank: not on every card, so it doesn't feel stamped. */
.card:nth-child(odd)::after,
.pcard:nth-child(even)::after,
.info::after{
  content:"";
  position:absolute;
  left:-1px;
  right:-1px;
  bottom:-5px;
  height:16px;
  background:url("data:image/svg+xml,%3Csvg xmlns%3D'http%3A//www.w3.org/2000/svg' viewBox%3D'0 0 400 22' preserveAspectRatio%3D'none'%3E%0A%3Cdefs%3E%3ClinearGradient id%3D'g' x1%3D'0' y1%3D'0' x2%3D'0' y2%3D'1'%3E%0A%3Cstop offset%3D'0' stop-color%3D'%23ffffff'/%3E%3Cstop offset%3D'.5' stop-color%3D'%23e4eef8'/%3E%3Cstop offset%3D'1' stop-color%3D'%23b7cbe0'/%3E%0A%3C/linearGradient%3E%3C/defs%3E%0A%3Cpath fill%3D'url(%23g)' d%3D'M-2 8 C 40 8 60 3 110 6 C 160 9 200 2 260 5 C 310 8 350 3 402 8 L402 12 L-2 12 Z'/%3E%0A%3Cpath fill%3D'url(%23g)' d%3D'M300 11 C 312 11 318 20 332 20 C 344 20 348 13 338 11 Z'/%3E%0A%3C/svg%3E") no-repeat center / 100% 100%;
  pointer-events:none;
  z-index:5;
  filter:drop-shadow(0 1px 1px rgba(16,20,28,.16));
}
.pcard:nth-child(even)::after,
.info::after{
  background-image:url("data:image/svg+xml,%3Csvg xmlns%3D'http%3A//www.w3.org/2000/svg' viewBox%3D'0 0 400 22' preserveAspectRatio%3D'none'%3E%0A%3Cdefs%3E%3ClinearGradient id%3D'g' x1%3D'0' y1%3D'0' x2%3D'0' y2%3D'1'%3E%0A%3Cstop offset%3D'0' stop-color%3D'%23ffffff'/%3E%3Cstop offset%3D'.5' stop-color%3D'%23e4eef8'/%3E%3Cstop offset%3D'1' stop-color%3D'%23b7cbe0'/%3E%0A%3C/linearGradient%3E%3C/defs%3E%0A%3Cpath fill%3D'url(%23g)' d%3D'M-2 9 C 50 4 90 8 150 5 C 210 2 270 8 330 5 C 370 3 402 8 402 10 L402 13 L-2 13 Z'/%3E%0A%3Cpath fill%3D'url(%23g)' d%3D'M48 12 C 58 12 62 21 76 21 C 88 21 90 14 80 12 Z'/%3E%0A%3C/svg%3E");
}

/* Heading snow is drawn by JS so it sits on the letter tops, not in the gap
   above the line box. */
.xm-heading-snow{
  position:absolute;
  left:0;
  top:0;
  pointer-events:none;
  z-index:3;
}

.tally-card{
  position:relative;
}
.tally-card::before{
  content:"";
  position:absolute;
  left:-1px;
  right:-1px;
  top:-16px;
  height:28px;
  background:url("data:image/svg+xml,%3Csvg xmlns%3D'http%3A//www.w3.org/2000/svg' viewBox%3D'0 0 400 40' preserveAspectRatio%3D'none'%3E%0A%3Cdefs%3E%3ClinearGradient id%3D'g' x1%3D'0' y1%3D'0' x2%3D'0' y2%3D'1'%3E%0A%3Cstop offset%3D'0' stop-color%3D'%23ffffff'/%3E%3Cstop offset%3D'.45' stop-color%3D'%23e8f0f8'/%3E%3Cstop offset%3D'1' stop-color%3D'%239eb6ce'/%3E%0A%3C/linearGradient%3E%3C/defs%3E%0A%3Cpath fill%3D'url(%23g)' d%3D'M-2 20 C 22 14 50 8 88 12 C 130 16 165 7 210 12 C 258 17 300 8 345 12 C 375 15 395 14 402 20 L402 23 C 360 23 300 23 250 23 C 238 23 234 34 222 35 C 210 36 206 26 194 23 C 140 23 80 34 68 35 C 56 36 52 25 40 23 L-2 23 Z'/%3E%0A%3Cpath d%3D'M-2 20 C 22 14 50 8 88 12 C 130 16 165 7 210 12 C 258 17 300 8 345 12 C 375 15 395 14 402 20' fill%3D'none' stroke%3D'%23fff' stroke-width%3D'1.3' stroke-linecap%3D'round' opacity%3D'.8'/%3E%0A%3C/svg%3E") no-repeat center / 100% 100%;
  pointer-events:none;
  z-index:5;
  filter:drop-shadow(0 1px 2px rgba(16,20,28,.22));
}

/* Snowdrift along the top of the footer. */
footer::before{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:-22px;
  height:28px;
  background:url("data:image/svg+xml,%3Csvg xmlns%3D'http%3A//www.w3.org/2000/svg' viewBox%3D'0 0 1200 24' preserveAspectRatio%3D'none'%3E%0A%3Cdefs%3E%3ClinearGradient id%3D'g' x1%3D'0' y1%3D'0' x2%3D'0' y2%3D'1'%3E%0A%3Cstop offset%3D'0' stop-color%3D'%23ffffff'/%3E%3Cstop offset%3D'.4' stop-color%3D'%23eef5fb'/%3E%3Cstop offset%3D'1' stop-color%3D'%23b7cbe0'/%3E%0A%3C/linearGradient%3E%3C/defs%3E%0A%3Cpath fill%3D'url(%23g)' d%3D'M0 24 L0 14 C 40 14 70 5 130 8 C 200 12 250 4 330 9 C 410 14 470 5 560 9 C 650 13 720 4 810 9 C 900 14 960 6 1040 10 C 1100 13 1160 10 1200 14 L1200 24 Z'/%3E%0A%3Cpath d%3D'M0 14 C 40 14 70 5 130 8 C 200 12 250 4 330 9 C 410 14 470 5 560 9 C 650 13 720 4 810 9 C 900 14 960 6 1040 10 C 1100 13 1160 10 1200 14' fill%3D'none' stroke%3D'%23fff' stroke-width%3D'1.2' opacity%3D'.7'/%3E%0A%3C/svg%3E") no-repeat center / 100% 100%;
  pointer-events:none;
  z-index:3;
  filter:drop-shadow(0 1px 1px rgba(16,20,28,.16));
}

@media (max-width:600px){
  .card::before,
  .pcard::before,
  .info::before,
  .photo::before,
  .fence-video::before,
  .tally-card::before{
    top:-14px;
    height:24px;
  }
  footer::before{height:22px;top:-16px}
}
