/* Frosted header (js/pc-header.js adds .pc-header-scrolled to <html> past 80px). The layer sits behind the header's
   content; only its opacity changes, so the blur is never animated, and the header itself gets no backdrop-filter
   (which would make it the containing block of the fixed mobile menu inside it). */

#website_header.sticky::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	opacity: 0;
	pointer-events: none;
	transition: opacity 240ms ease;
}

.pc-header-scrolled #website_header.sticky::before {
	opacity: 1;
}

/* Smart sticky: slides up while scrolling down, back while scrolling up. No transform at rest or while the mobile
   menu is open: a transformed header would become the containing block of the fixed menu panel inside it. */
#website_header.sticky {
	transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.pc-header-hidden:not(.pc-header-menu-open) #website_header.sticky:not(:focus-within) {
	transform: translateY(-100%);
}

.pc-header-menu-open #website_header.sticky {
	transition: none;
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
	#website_header.sticky::before {
		background: rgba(0, 0, 0, 0.6);
	}
}

@media (prefers-reduced-motion: reduce) {
	#website_header.sticky,
	#website_header.sticky::before {
		transition: none;
	}
}

/* Hyperion: #website_header .website-container { padding: 2rem 0 } (inline theme-critical-css) and
   img[class*="logo"] { max-height: 4rem } from 768px (parent style.css; 2rem on phones, unchanged). */
#website_header .website-container.website-header-container {
	padding: 0.3rem 0;
}

/* An inline image sits on a text line: 5px of descender space under the logo. */
#website_header img.hx-logo-img {
	display: block;
}

@media (min-width: 768px) {
	#website_header img.hx-logo-img {
		max-height: 3rem;
	}
}

.pc-header-sentinel {
	position: absolute;
	top: 0;
	left: 0;
	width: 1px;
	height: 80px;
	visibility: hidden;
	pointer-events: none;
}
