/* 4.55 Christmas layer. Shows only when <html> has the class hg-xmas:
   the dates in Customize > Christmas (1 December to 4 January to start with; visitor's own date), or always/never from
   Appearance > Customize > Christmas. Add ?hg_xmas=1 to any address to preview it. */
.hg-xmas-bar,.xmas-hat,.xmas-holly,.xmas-lights,.footer-xmas,.xmas-on{display:none}
.hg-xmas .xmas-off{display:none}
.hg-xmas .xmas-on{display:inline}

/* 1. Festive bar above the header */
.hg-xmas .hg-xmas-bar{display:block;position:relative;z-index:51;background-color:#24502f;color:#f3ead6;font:500 15px/1.3 "Instrument Sans","Segoe UI",system-ui,sans-serif;
 background-image:radial-gradient(circle at 20px 12px,rgba(255,255,255,.10) 1.4px,transparent 1.6px),radial-gradient(circle at 62px 30px,rgba(255,255,255,.07) 1.2px,transparent 1.4px);background-size:84px 40px}
.hg-xmas-bar .wrap{display:flex;align-items:center;justify-content:center;gap:12px;min-height:42px;padding-top:6px;padding-bottom:6px;text-align:center}
.hg-xmas-bar svg{flex:none}
.hg-xmas-bar strong{font-family:"Bricolage Grotesque","Segoe UI",system-ui,sans-serif;font-weight:700;color:#fff}
.hg-xmas-bar a,.hg-xmas-bar a:link,.hg-xmas-bar a:visited{color:#f6c945;font-weight:700;text-decoration:none;white-space:nowrap;border-bottom:1px solid rgba(246,201,69,.45)}
.hg-xmas-bar a:hover{color:#f6c945;border-bottom-color:#f6c945;text-decoration:none}
html[data-theme="dark"].hg-xmas .hg-xmas-bar{background-color:#183823;color:#e6dcc6}

/* 2. Santa hat on the peeking monkey */
.hg-xmas .xmas-hat{display:block;position:absolute;z-index:2;left:50%;bottom:calc(100% + .53em);width:.86em;height:.76em;margin-left:-.7em;transform:rotate(-32deg);pointer-events:none}

/* 3. Gentle snow in the home banner (stays still if the visitor prefers less motion) */
.hg-xmas .hero--home{position:relative;overflow:hidden}
.hg-xmas .hero--home::before{content:"";position:absolute;inset:-40px 0 0 0;pointer-events:none;z-index:0;opacity:.55;
 background-image:radial-gradient(circle,rgba(255,250,240,.9) 1.6px,transparent 2px),radial-gradient(circle,rgba(255,250,240,.6) 1.2px,transparent 1.6px),radial-gradient(circle,rgba(255,250,240,.45) 2.2px,transparent 2.6px);
 background-size:140px 140px,90px 110px,230px 200px;background-position:10px 0,50px 30px,120px 60px;animation:hg-snow 26s linear infinite}
.hg-xmas .hero--home>*{position:relative;z-index:1}
@keyframes hg-snow{to{background-position:30px 560px,70px 550px,150px 600px}}
@media (prefers-reduced-motion:reduce){.hg-xmas .hero--home::before{animation:none}}

/* 4. Holly on the Founders' offer box and the closing card */
.hg-xmas .xmas-holly{display:block;position:absolute;pointer-events:none}
.hg-xmas .e-offer{position:relative;overflow:visible}
.e-offer .xmas-holly{top:-22px;right:-18px;width:86px;height:70px;transform:rotate(12deg)}
.hg-xmas .e-cta__in{position:relative;border-left-color:#b0332b}
.e-cta__in .xmas-holly{top:-20px;left:-16px;width:66px;height:54px;transform:rotate(-16deg)}

/* 5. String of lights along the top of the footer */
.hg-xmas .site-footer{position:relative}
.hg-xmas .xmas-lights{display:block;position:absolute;left:0;right:0;top:-6px;height:30px;pointer-events:none;
 background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='30'%3E%3Cpath d='M0 4 Q40 16 80 4 T160 4' fill='none' stroke='%231b120a' stroke-width='1.6'/%3E%3Crect x='17' y='8' width='6' height='4' rx='1' fill='%23463728'/%3E%3Cellipse cx='20' cy='17' rx='5' ry='7' fill='%23f6c945'/%3E%3Crect x='57' y='12' width='6' height='4' rx='1' fill='%23463728'/%3E%3Cellipse cx='60' cy='21' rx='5' ry='7' fill='%23d9473c'/%3E%3Crect x='97' y='8' width='6' height='4' rx='1' fill='%23463728'/%3E%3Cellipse cx='100' cy='17' rx='5' ry='7' fill='%238be05a'/%3E%3Crect x='137' y='5' width='6' height='4' rx='1' fill='%23463728'/%3E%3Cellipse cx='140' cy='14' rx='5' ry='7' fill='%23fff6dc'/%3E%3C/svg%3E") repeat-x 0 0/160px 30px;
 filter:drop-shadow(0 0 4px rgba(246,201,69,.35))}
.hg-xmas .footer-xmas{display:block;margin-top:4px;color:#f6c945;font-family:"Bricolage Grotesque","Segoe UI",system-ui,sans-serif;font-weight:700;font-size:16px}

@media (max-width:640px){
 .hg-xmas .hg-xmas-bar{font-size:13.5px}
 .hg-xmas-bar .wrap{gap:10px;flex-wrap:nowrap;min-height:38px;white-space:nowrap}
 .hg-xmas-bar svg,.hg-xmas-bar .x-long{display:none}
 .e-offer .xmas-holly{width:64px;height:52px;top:-16px;right:-8px}
 .e-cta__in .xmas-holly{width:52px;height:42px;top:-16px;left:-8px}
}
