.site-header {
	background: #fff;
	color: var(--ink);
	overflow-anchor: none;
}

.header-nav {
	position: sticky;
	top: 0;
	z-index: 1000;
}

@media screen and (min-width: 783px) {
	.admin-bar .header-nav {
		top: 32px;
	}
}

@media screen and (max-width: 782px) {
	.admin-bar .header-nav {
		top: 46px;
	}
}

.header-bar {
	display: flex;
	align-items: center;
	gap: 28px;
	padding: 8px 0 6px;
}

.has-banner .header-bar,
.has-banner .header-nav .container {
	width: min(1320px, calc(100% - 40px));
}

.site-title {
	margin: 0;
	flex: none;
	line-height: 0;
}

.site-logo {
	display: inline-block;
	line-height: 0;
}

.site-logo img,
.custom-logo {
	height: 80px;
	width: auto;
}

.custom-logo-link {
	display: flex;
	align-items: center;
	line-height: 0;
}

.header-banner {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	justify-content: center;
}

.header-banner-slot {
	width: min(970px, 100%);
}

.header-banner-slot.is-image {
	aspect-ratio: 970 / 250;
	max-height: 250px;
	background: #f6f7f8;
}

.header-banner-link {
	display: block;
	height: 100%;
}

.header-banner-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.header-banner-slot.is-code {
	max-width: 970px;
}

.header-banner-slot.is-code ins.adsbygoogle {
	max-width: 100%;
}

.header-nav {
	background: var(--header);
	color: var(--header-text);
}

.header-nav .primary-nav {
	flex: none;
}

.primary-nav {
	flex: 1;
	min-width: 0;
	overflow-x: auto;
	scrollbar-width: none;
}

.primary-nav.nav-fit {
	overflow: visible;
}

.primary-nav::-webkit-scrollbar {
	display: none;
}

.nav-list {
	display: flex;
	align-items: center;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nav-list a,
.nav-more summary {
	display: block;
	padding: 8px 10px;
	color: var(--header-text);
	font-family: var(--font-display);
	font-size: 1.05rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	line-height: 1;
	text-decoration: none;
	text-transform: uppercase;
	white-space: nowrap;
	cursor: pointer;
}

.nav-list a:hover,
.nav-list a[aria-current="page"],
.nav-list .current-menu-item > a,
.nav-more summary:hover {
	color: var(--accent);
}

.nav-more {
	position: relative;
}

.nav-more summary {
	list-style: none;
}

.nav-more summary::-webkit-details-marker {
	display: none;
}

.nav-more > details > ul {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	z-index: 30;
	min-width: 180px;
	margin: 0;
	padding: 8px 0;
	list-style: none;
	background: #1b1e24;
	border: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-more.is-overflow > details > ul {
	left: auto;
	right: 0;
	max-height: min(70vh, 420px);
	overflow-y: auto;
}

.nav-more.is-overflow.is-empty {
	display: none;
}

.nav-more.is-overflow summary::after {
	content: "";
	display: inline-block;
	margin-left: 6px;
	border-width: 4px 4px 0;
	border-style: solid;
	border-color: currentColor transparent transparent;
	vertical-align: 2px;
}

.nav-more ul a {
	padding: 10px 14px;
}

.search-toggle {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	flex: none;
	margin-left: auto;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--ink);
	cursor: pointer;
}

.search-toggle:hover,
.search-toggle[aria-expanded="true"] {
	color: var(--accent);
}
