/* Christmas decorations - pure CSS. Remove the djbob_christmas hook in functions.php to disable. */
.xmas-snow{position:fixed;inset:0;pointer-events:none;z-index:150;overflow:hidden}
.xmas-snow::before,.xmas-snow::after{content:"";position:absolute;left:0;width:100%;will-change:transform;backface-visibility:hidden;
  background-image:
    radial-gradient(3px 3px at 20px 30px,#fff 98%,transparent),
    radial-gradient(2px 2px at 90px 140px,#fff 98%,transparent),
    radial-gradient(4px 4px at 160px 70px,#fff 98%,transparent),
    radial-gradient(2px 2px at 230px 210px,#fff 98%,transparent),
    radial-gradient(3px 3px at 310px 120px,#fff 98%,transparent),
    radial-gradient(2px 2px at 370px 260px,#fff 98%,transparent);
  background-size:400px 300px;top:-600px;height:calc(100% + 600px);opacity:.85;animation:xmas-fall 12s linear infinite}
.xmas-snow::after{background-size:330px 220px;top:-660px;height:calc(100% + 660px);opacity:.6;animation:xmas-fall2 18s linear infinite}
@keyframes xmas-fall{from{transform:translate3d(0,0,0)}to{transform:translate3d(0,600px,0)}}
@keyframes xmas-fall2{from{transform:translate3d(0,0,0)}to{transform:translate3d(0,660px,0)}}
html.xmas-snow-off .xmas-snow{display:none}
.xmas-snow-btn{position:fixed;left:1.25rem;bottom:1.25rem;z-index:160;display:flex;align-items:center;gap:.45rem;
  padding:.55rem .9rem;border:2px solid #fff;border-radius:999px;background:#2f61f5;color:#fff;font:600 .85rem/1 inherit;font-family:inherit;cursor:pointer;
  box-shadow:0 4px 14px rgba(0,0,0,.35)}
.xmas-snow-btn:hover{background:#244fd0}
.xmas-snow-btn:focus-visible{outline:3px solid #ffd23f;outline-offset:2px}
@media print{.xmas-snow-btn{display:none}}

/* Light string along the bottom of the header */
header.site{position:relative}
header.site::before{content:"";position:absolute;left:0;right:0;bottom:-2px;height:2px;background:#0b3d1c;opacity:.9}
header.site::after{content:"";position:absolute;left:0;right:0;bottom:-12px;height:22px;pointer-events:none;
  background:
    radial-gradient(circle 6px at 15px 12px,#ff2d3a 70%,transparent 74%) 0 0/120px 22px repeat-x,
    radial-gradient(circle 6px at 45px 14px,#ffd23f 70%,transparent 74%) 0 0/120px 22px repeat-x,
    radial-gradient(circle 6px at 75px 12px,#2fe06b 70%,transparent 74%) 0 0/120px 22px repeat-x,
    radial-gradient(circle 6px at 105px 14px,#3fa7ff 70%,transparent 74%) 0 0/120px 22px repeat-x;
  filter:drop-shadow(0 0 5px rgba(255,255,255,.55));animation:xmas-twinkle 1.6s ease-in-out infinite alternate}
@keyframes xmas-twinkle{from{opacity:1}to{opacity:.45}}

/* Trees above the footer */
.xmas-trees{display:flex;justify-content:space-around;align-items:flex-end;gap:1rem;padding:0 1rem;
  background:linear-gradient(to top,#f4f8ff 0,#f4f8ff 14px,transparent 14px);pointer-events:none;overflow:hidden;height:96px}
.xmas-trees i{position:relative;display:block;width:56px;height:80px;margin-bottom:10px;
  background:linear-gradient(#1f8a3f,#14612c);
  clip-path:polygon(50% 0,66% 28%,58% 28%,78% 55%,66% 55%,92% 88%,58% 88%,58% 100%,42% 100%,42% 88%,8% 88%,34% 55%,22% 55%,42% 28%,34% 28%)}
.xmas-trees i:nth-child(even){height:64px;width:44px}
.xmas-trees i::before{content:"";position:absolute;inset:0;
  background:
    radial-gradient(circle 3px at 50% 22%,#ffd23f 90%,transparent),
    radial-gradient(circle 3px at 38% 48%,#ff2d3a 90%,transparent),
    radial-gradient(circle 3px at 62% 52%,#3fa7ff 90%,transparent),
    radial-gradient(circle 3px at 30% 78%,#ffd23f 90%,transparent),
    radial-gradient(circle 3px at 70% 80%,#ff2d3a 90%,transparent);
  animation:xmas-twinkle 1.2s ease-in-out infinite alternate}
.xmas-trees i:nth-child(odd)::before{animation-delay:.6s}
footer.site{border-top:3px solid #c8102e}

@media (prefers-reduced-motion:reduce){
  .xmas-snow::before,.xmas-snow::after,header.site::after,.xmas-trees i::before{animation:none}
}
@media print{.xmas-snow,.xmas-trees{display:none}}

/* Red gradient (from the supplied red background) on header + footer */
html:not(.a11y-contrast) footer.site{
  background:radial-gradient(ellipse 80% 140% at 50% 45%,#c8311a 0,#a42c17 45%,#6e1d11 80%,#3f130c 100%) !important;color:#fff}
html:not(.a11y-contrast) footer.site{border-top-color:#2fe06b}

/* Green logo replaces the wordmark image (alt text is kept) */
.wordmark img{height:54px;width:124px;object-fit:cover;object-position:-9999px 0;
  background:url(christmas/green-logo.png) center/contain no-repeat;
  filter:drop-shadow(0 2px 6px rgba(0,0,0,.35))}
/* Red accents + red hero replace the blue ones */
:root:root:root:root{--blue:#e0392b;--blue-strong:#b31119;--blue-deep:#8a1a12;--focus:#c8311a}
@media (prefers-color-scheme:dark){:root:root:root:root:not([data-theme="light"]){--blue:#ff6a5c;--blue-strong:#ffa097;--blue-deep:#9c1d14;--focus:#ff8a7e}}
:root[data-theme="dark"]:root:root:root{--blue:#ff6a5c;--blue-strong:#ffa097;--blue-deep:#9c1d14;--focus:#ff8a7e}
html:not(.a11y-contrast) .hero{background:radial-gradient(ellipse 90% 120% at 50% 40%,#d9381f 0,#b82d18 38%,#7a2012 75%,#3f130c 100%)}

/* Green mascot replaces the hero head */
.hero-art img{aspect-ratio:332/371;object-fit:cover;object-position:-9999px 0;
  background:url(christmas/green-mascot-lg.png) center/contain no-repeat;filter:drop-shadow(0 8px 18px rgba(0,0,0,.35))}

/* Header Listen Now button keeps its original blue */
header.site .btn-blue-outline{background:#041c38}
header.site .btn-blue-outline:hover{background:#0f5cb0}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) header.site .btn-blue-outline{background:#1d4d8c}:root:not([data-theme="light"]) header.site .btn-blue-outline:hover{background:#a9cdf5}}
:root[data-theme="dark"] header.site .btn-blue-outline{background:#1d4d8c}
:root[data-theme="dark"] header.site .btn-blue-outline:hover{background:#a9cdf5}

/* Gentle tree sway */
.xmas-trees i{transform-origin:50% 100%;animation:xmas-sway 5.5s ease-in-out infinite alternate;will-change:transform}
.xmas-trees i:nth-child(2n){animation-duration:4.6s;animation-delay:-1.4s}
.xmas-trees i:nth-child(3n){animation-duration:6.5s;animation-delay:-2.8s}
.xmas-trees i:nth-child(5n){animation-delay:-4.2s}
@keyframes xmas-sway{from{transform:rotate(-4deg)}to{transform:rotate(4deg)}}
@media (prefers-reduced-motion:reduce){.xmas-trees i{animation:none}}
