/* MMX HOLIDAY START
   Seasonal logo hat + header snow. Remove this file and the
   matching include in Skins/Default/Views/Shared/_Layout.cshtml
   after the holidays.
*/

/* Let the hat sit slightly outside the logo without being clipped */
.header-row,
.header-row .logo-wrap,
.header-row .logo {
	overflow: visible;
}

.header-row {
	position: relative;
	/* Room for the hat, which sits above the logo (see top: -33.628%) */
	padding-top: 1rem;
}

@media (min-width: 768px) {
	.header-row {
		padding-top: 1.75rem;
		/* Room for the pom-pom, which hangs left of the 16rem logo.
		   Without this, 0.5rem header + 0.5rem logo padding is not enough
		   and the viewport clips the pom-pom at every desktop width. */
		padding-left: 2.25rem;
	}
}

/* Snow canvas (created by holiday-snow.js). Below menus (z-index 1000)
   and non-interactive so header links stay clickable. */
.mmx-holiday-snow {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 2;
}

@media (prefers-reduced-motion: reduce) {
	.mmx-holiday-snow {
		display: none;
	}
}

/* Wrapper shrinks to the logo image so hat % units stay aligned */
.mmx-holiday-logo {
	position: relative;
	display: inline-block;
}

/* More specific than `.header-row .logo img { width: 10rem / 16rem }` in custom.css.
   Mobile placement was measured from Christian's mockup against the official
   200x79 logo: left -18.357%, top -33.628%, width 57.517%.
   The PNG is already oriented (pom-pom left, no extra rotate/flip). */
.header-row .logo img.mmx-santa-hat {
	position: absolute;
	width: 57.517%;
	max-width: none;
	max-height: none;
	height: auto;
	padding: 0;
	left: -18.357%;
	top: -33.628%;
	pointer-events: none;
	z-index: 3;
	filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

/* Desktop: scale the hat to 50% of the logo (from 57.517%) around the
   brim-on-the-first-M point so the pom-pom stays on-screen. */
@media (min-width: 768px) {
	.header-row .logo img.mmx-santa-hat {
		width: 50%;
		left: -14.71%;
		top: -27.49%;
	}
}
/* MMX HOLIDAY END */
