/* Christmas 2026 decorations. Additive only: no text or line colour on the site changes.
   Every piece is an empty aria-hidden span that assets/js/xmas-2026.js adds (its XMAS_ON switch),
   takes no clicks and sits on rules, corners and picture edges, never over text. */
.xd{position:absolute;display:block;pointer-events:none;background-repeat:no-repeat;background-position:center;background-size:contain;z-index:3}
.xd-rel{position:relative}

/* Light string hanging just under the header rule */
.xd-lights{left:0;right:0;top:calc(100% - 3px);height:34px;background:url("../media/xmas/xmas-lights.svg") repeat-x 0 0/auto 34px;z-index:11;transition:opacity .25s,transform .25s}
/* The header is sticky: once the page scrolls, the string folds away so it never hangs over text */
html.xd-scrolled .xd-lights{opacity:0;transform:translateY(-10px)}
/* Something sits right under the header (a stripe, a frame): the string rides inside the header bottom edge instead */
html.xd-tuck .xd-lights{top:auto;bottom:1px;height:18px;background-size:auto 18px;z-index:-1} /* behind the header controls */
@media (prefers-reduced-motion:reduce){.xd-lights{transition:none}}

/* Santa hat on the Podium Pro Media logo */
.xd-hat{width:42px;height:34px;left:-21px;top:-13px;background-image:url("../media/xmas/xmas-santa-hat.svg");transform:rotate(-20deg);transform-origin:70% 90%}
@media(max-width:650px){.xd-hat{width:34px;height:27px;left:-11px;top:-14px}}

/* Garland lying along a rule (masthead and footer) */
.xd-garland{left:0;right:0;height:40px;background:url("../media/xmas/xmas-garland.webp") repeat-x 0 0/auto 40px}
.xd-garland.xd-bottom{bottom:-23px}
.xd-garland.xd-top{top:-23px}
@media(max-width:650px){.xd-garland{height:32px;background-size:auto 32px}.xd-garland.xd-bottom{bottom:-19px}.xd-garland.xd-top{top:-18px}}

/* Swag draped over the top edge of a hero picture, and a small sprig on card rules */
.xd-swag{left:-1%;right:-1%;top:-27px;height:44px;background-image:url("../media/xmas/xmas-swag.webp");background-size:100% 100%}
.xd-sprig{right:0;top:-13px;width:120px;height:24px;background-image:url("../media/xmas/xmas-swag.webp");background-size:100% 100%}
@media(max-width:650px){.xd-swag{top:-20px;height:30px}.xd-sprig{width:96px;height:19px;top:-11px}}

/* Frost creeping in from two picture corners */
.xd-frost{width:min(21%,136px);aspect-ratio:1;background-image:url("../media/xmas/xmas-frost.svg");opacity:.7;z-index:2}
.xd-frost.xd-tl{left:0;top:0}
.xd-frost.xd-br{right:0;bottom:0;transform:scale(-1,-1)}

/* Bauble hanging from a button corner */
.xd-bauble{width:24px;height:37px;right:14px;top:calc(100% - 1px);background-image:url("../media/xmas/xmas-bauble-red.svg")}
.xd-bauble.xd-gold{background-image:url("../media/xmas/xmas-bauble-gold.svg");right:40px;height:44px;width:24px}

/* A short bough centred on a full-width section rule (text pages get one too) */
.xd-rulebough{left:50%;top:-21px;width:240px;height:40px;margin-left:-120px;background-image:url("../media/xmas/xmas-swag.webp");background-size:100% 100%}
.xd-rulebough.xd-onbottom{top:auto;bottom:-21px}
@media(max-width:650px){.xd-rulebough{width:170px;height:30px;margin-left:-85px;top:-16px}.xd-rulebough.xd-onbottom{top:auto;bottom:-16px}}

/* Mobile App: its button bar sits right under the header, so give the light string room */
html.xmas .tracker-topbar{margin-top:12px}

@media print{.xd{display:none}}

/* Snow canvas sits over the picture only and never takes clicks */
.xmas-frame{position:relative;display:block}
.xmas-snow{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
@media (prefers-reduced-motion:reduce){.xmas-snow{display:none}}
