/* DS Vianočný motív – jemný, moderný overlay */

/* --- Snow canvas --- */
.ds-xmas-snow {
	position: fixed;
	inset: 0;
	width: 100vw;
	height: 100vh;
	z-index: 99990;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.8s ease;
}

.ds-xmas-snow.is-on {
	opacity: 0.9;
}

/* --- Light garland: a thin banner above the header, part of the normal
   page flow (not fixed) so it never overlaps the menu while scrolling. --- */
.ds-xmas-garland-wrap {
	position: relative;
	width: 100%;
	height: 38px;
	overflow: hidden;
	pointer-events: none;
	background: #faf8f5;
}

.ds-xmas-garland {
	display: block;
	width: 100%;
	height: 100%;
}

.ds-xmas-garland__wire {
	fill: none;
	stroke: rgba(10, 30, 20, 0.55);
	stroke-width: 2;
	stroke-linecap: round;
}

.ds-xmas-garland__cap {
	fill: #33424f;
}

.ds-xmas-garland__glass {
	fill: var(--c);
}

.ds-xmas-garland__glow {
	fill: var(--c);
	opacity: 0.35;
	filter: blur(4px);
}

@media (prefers-reduced-motion: no-preference) {
	.ds-xmas-garland__glass,
	.ds-xmas-garland__glow {
		animation: ds-xmas-twinkle 1.3s steps(1, end) var(--d, 0s) infinite;
	}
}

@keyframes ds-xmas-twinkle {
	0%, 45%  { opacity: 1; }
	50%, 95% { opacity: 0.15; }
	100%     { opacity: 1; }
}

.ds-xmas-garland__glow {
	animation-name: ds-xmas-twinkle-glow;
}

@keyframes ds-xmas-twinkle-glow {
	0%, 45%  { opacity: 0.5; }
	50%, 95% { opacity: 0.05; }
	100%     { opacity: 0.5; }
}

@media (max-width: 767px) {
	.ds-xmas-garland-wrap { height: 28px; }
}

@media print {
	.ds-xmas-snow,
	.ds-xmas-garland-wrap {
		display: none !important;
	}
}

/* Respect reduced motion: hide the animated snow entirely */
@media (prefers-reduced-motion: reduce) {
	.ds-xmas-snow {
		display: none !important;
	}
}

/* --- Admin bar toggle styling --- */
#wpadminbar .ds-xmas-toggle-node .ab-item {
	cursor: pointer;
}
