/* Christmas & New Year 2026 — TEMPORARY festive layer (inc/psp-christmas.php).
   Loads only 18 Nov 2026 → 1 Jan 2027 IST. Decorative only: no pointer events,
   hidden from screen readers, still (no animation) for reduced motion. */

:root {
	--psp-xm-red: #ff4b5c;
	--psp-xm-green: #2fd17a;
	--psp-xm-gold: #ffc23d;
	--psp-xm-white: #f4fbff;
	--psp-xm-ice: #9fd3ff;
	--psp-xm-snow: rgba( 255, 255, 255, 0.85 );
}
html[data-theme="light"] {
	--psp-xm-snow: rgba( 120, 170, 225, 0.75 );
}

/* ---------- Light string ---------- */
.psp-xmas-lights {
	position: relative;
	z-index: 4;
	display: flex;
	height: 20px;
	overflow: hidden;
	pointer-events: none;
	background: linear-gradient( 180deg, rgba( 5, 14, 28, 0.85 ), rgba( 5, 14, 28, 0 ) );
}
html[data-theme="light"] .psp-xmas-lights {
	background: linear-gradient( 180deg, rgba( 13, 42, 77, 0.12 ), rgba( 13, 42, 77, 0 ) );
}
.psp-xmas-lights i {
	position: relative;
	flex: 0 0 38px;
	height: 100%;
}
.psp-xmas-lights i::before { /* the wire */
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: -4px;
	height: 11px;
	border-bottom: 1.5px solid rgba( 150, 200, 160, 0.5 );
	border-radius: 0 0 50% 50%;
}
.psp-xmas-lights i::after { /* the bulb */
	--c: var( --psp-xm-red );
	content: "";
	position: absolute;
	left: calc( 50% - 3px );
	top: 7px;
	width: 6px;
	height: 9px;
	border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
	background: var( --c );
	box-shadow: 0 0 6px 1px var( --c );
	box-shadow: 0 0 6px 1px var( --c ), 0 0 14px 2px color-mix( in srgb, var( --c ) 45%, transparent );
	animation: psp-xm-twinkle 2.2s ease-in-out infinite;
}
.psp-xmas-lights i:nth-child( 4n + 2 )::after { --c: var( --psp-xm-green ); animation-delay: -0.55s; }
.psp-xmas-lights i:nth-child( 4n + 3 )::after { --c: var( --psp-xm-gold ); animation-delay: -1.1s; }
.psp-xmas-lights i:nth-child( 4n + 4 )::after { --c: var( --psp-xm-white ); animation-delay: -1.65s; }
.psp-xmas-lights i:nth-child( 3n )::after { animation-duration: 3s; }
.psp-xmas-lights--footer {
	background: none;
	margin-bottom: -6px;
}

@keyframes psp-xm-twinkle {
	0%, 100% { opacity: 1; filter: brightness( 1.1 ); }
	50% { opacity: 0.35; filter: brightness( 0.7 ); }
}

/* ---------- Snowfall ---------- */
.psp-xmas-on .site-footer {
	position: relative;
}
.psp-xmas-snow {
	position: absolute;
	inset: 0;
	z-index: 3;
	overflow: hidden;
	pointer-events: none;
}
.psp-xmas-snow i {
	position: absolute;
	top: -12px;
	left: var( --l );
	width: var( --s );
	height: var( --s );
	border-radius: 50%;
	background: var( --psp-xm-snow );
	box-shadow: 0 0 4px rgba( 255, 255, 255, 0.35 );
	opacity: 0;
	will-change: transform, opacity;
	animation: psp-xm-fall var( --d ) linear var( --dl ) infinite;
}
.psp-xmas-snow i.is-flake { /* a few real snowflake shapes among the dots */
	width: auto;
	height: auto;
	background: none;
	box-shadow: none;
	color: var( --psp-xm-snow );
	font-size: calc( var( --s ) * 2.6 );
	line-height: 1;
}
.psp-xmas-snow i.is-flake::before {
	content: "\2744"; /* ❄ */
}
.psp-xmas-snow--header {
	--fall: 190px;
}
.psp-xmas-snow--footer {
	--fall: 520px;
}
@keyframes psp-xm-fall {
	0% { transform: translate3d( 0, 0, 0 ); opacity: 0; }
	10% { opacity: 0.9; }
	50% { transform: translate3d( var( --dx ), calc( var( --fall ) * 0.5 ), 0 ); }
	85% { opacity: 0.7; }
	100% { transform: translate3d( 0, var( --fall ), 0 ) rotate( 90deg ); opacity: 0; }
}

/* ---------- Footer greeting ---------- */
.psp-xmas-greet {
	position: relative;
	z-index: 4;
	margin: 10px auto 0;
	padding: 0 16px;
	text-align: center;
	font-family: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: var( --psp-xm-gold );
	text-shadow: 0 0 12px rgba( 255, 194, 61, 0.35 );
}
html[data-theme="light"] .psp-xmas-greet {
	color: #b0263a;
	text-shadow: none;
}

/* ---------- Santa's sleigh (theme 1.74.0) ---------- */
.psp-santa-lane { /* clips the flight so it never widens the page */
	position: absolute;
	z-index: 5;
	top: var( --psp-santa-top, 53px );
	left: 0;
	right: 0;
	height: 46px;
	overflow: hidden;
	pointer-events: none;
}
.psp-santa {
	position: absolute;
	top: 1px;
	left: 0;
	width: 330px;
	height: 44px;
	pointer-events: none;
	transform: translate3d( -360px, 0, 0 );
	animation: psp-santa-fly 26s linear 2s infinite;
	will-change: transform;
}
.psp-santa__bob {
	position: relative;
	display: flex;
	align-items: center;
	height: 100%;
	animation: psp-santa-bob 1.6s ease-in-out infinite;
}
.psp-santa__banner {
	flex: 0 0 auto;
	padding: 3px 10px 4px;
	border: 1px solid rgba( 255, 194, 61, 0.7 );
	border-radius: 999px;
	background: linear-gradient( 180deg, #e0283f, #a5102a );
	box-shadow: 0 4px 14px rgba( 0, 0, 0, 0.35 ), 0 0 12px rgba( 255, 75, 92, 0.35 );
	color: #fff6e0;
	font-family: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.02em;
	line-height: 1.2;
	white-space: nowrap;
	transform: rotate( -3deg );
	animation: psp-santa-wave 1.6s ease-in-out infinite;
}
.psp-santa__rope {
	flex: 0 0 14px;
	height: 0;
	border-top: 1.5px dashed rgba( 255, 194, 61, 0.8 );
}
.psp-santa__svg {
	flex: 0 0 auto;
	width: 200px;
	height: 44px;
	overflow: visible;
	filter: drop-shadow( 0 3px 6px rgba( 0, 0, 0, 0.35 ) );
}
.psp-santa__legs path {
	stroke: #6e3f1d;
	stroke-width: 2.4;
	stroke-linecap: round;
	fill: none;
}
.psp-santa__legs {
	transform-box: fill-box;
	transform-origin: 50% 0;
	animation: psp-santa-gallop 0.5s ease-in-out infinite alternate;
}
.psp-santa__legs--f {
	animation-delay: -0.25s;
}
.psp-santa__nose {
	animation: psp-santa-nose 1s ease-in-out infinite;
}
@keyframes psp-santa-fly {
	0% { transform: translate3d( -360px, 6px, 0 ); }
	55% { transform: translate3d( calc( 100vw + 20px ), -4px, 0 ); }
	100% { transform: translate3d( calc( 100vw + 20px ), -4px, 0 ); }
}
@keyframes psp-santa-bob {
	0%, 100% { transform: translateY( 0 ); }
	50% { transform: translateY( -3px ); }
}
@keyframes psp-santa-wave {
	0%, 100% { transform: rotate( -3deg ); }
	50% { transform: rotate( 2deg ); }
}
@keyframes psp-santa-gallop {
	from { transform: rotate( -14deg ); }
	to { transform: rotate( 14deg ); }
}
@keyframes psp-santa-nose {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.45; }
}
@media ( max-width: 991px ) {
	.psp-santa-lane {
		--psp-santa-top: 56px;
		height: 38px;
	}
	.psp-santa {
		width: 260px;
		height: 36px;
	}
	.psp-santa__svg {
		width: 160px;
		height: 36px;
	}
	.psp-santa__banner {
		font-size: 11px;
		padding: 2px 8px 3px;
	}
	@keyframes psp-santa-fly {
		0% { transform: translate3d( -280px, 4px, 0 ); }
		55% { transform: translate3d( calc( 100vw + 20px ), -3px, 0 ); }
		100% { transform: translate3d( calc( 100vw + 20px ), -3px, 0 ); }
	}
}

/* Phones: fewer flakes. */
@media ( max-width: 600px ) {
	.psp-xmas-snow--header i:nth-child( n + 11 ),
	.psp-xmas-snow--footer i:nth-child( n + 15 ) {
		display: none;
	}
	.psp-xmas-greet {
		font-size: 12px;
	}
}

@media ( prefers-reduced-motion: reduce ) {
	.psp-xmas-lights i::after {
		animation: none;
	}
	.psp-xmas-snow {
		display: none;
	}
	.psp-santa,
	.psp-santa__bob,
	.psp-santa__banner,
	.psp-santa__legs,
	.psp-santa__nose {
		animation: none;
	}
	.psp-santa {
		left: auto;
		right: 16px;
		transform: none;
	}
}
