/* December header touches. Loaded only from 1 December to 6 January (see inc/christmas.php). */

/* Snow lying along the top of the blue bar: one wide layer of uneven drifts, with gaps, loose clumps and a soft shadow underneath. */
.wl-xmas .wl-topbar {
	position: relative;
	padding-top: 8px;
}
.wl-xmas .wl-topbar::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 18px;
	pointer-events: none;
	background: url("../img/snow-edge.svg") repeat-x 0 0 / 1600px 18px;
	filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, .35));
}

/* The ornament hangs from the bottom edge of the header, under the mobile menu. */
.wl-ornament {
	position: absolute;
	top: 100%;
	right: clamp(1rem, 7vw, 6rem);
	z-index: -1;
	width: 34px;
	height: 78px;
	transform-origin: 50% 0;
	cursor: default;
}
.wl-ornament svg { display: block; }
.wl-ornament.is-swinging { animation: wl-swing 1.7s ease-out; }
@keyframes wl-swing {
	0%   { transform: rotate(0); }
	14%  { transform: rotate(13deg); }
	32%  { transform: rotate(-10deg); }
	50%  { transform: rotate(6deg); }
	68%  { transform: rotate(-3.5deg); }
	84%  { transform: rotate(1.5deg); }
	100% { transform: rotate(0); }
}

@media (prefers-reduced-motion: reduce) {
	.wl-ornament.is-swinging { animation: none; }
}
