/* Keep the site name and navigation in separate, predictable layout tracks. */
#page.site {
	--site-header-height: 140px;
	padding-top: 0;
}

header.site-header--responsive {
	position: relative;
	height: auto;
	min-height: var(--site-header-height);
}

.site-header--responsive > .section-top {
	padding: 24px 0;
}

.site-header--responsive .header-layout {
	display: grid;
	grid-template-columns: 13rem minmax(0, 1fr);
	align-items: center;
	gap: clamp(1.5rem, 3vw, 3rem);
	min-height: 92px;
}

.site-header--responsive .header-branding,
.site-header--responsive .header-navigation {
	min-width: 0;
}

.site-header--responsive h1 {
	padding-right: 0;
}

.site-header--responsive .inner_main_menu {
	display: block;
	max-width: none;
}

.site-header--responsive #menu {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: clamp(0.75rem, 1.4vw, 1.5rem);
}

.site-header--responsive #menu > li {
	float: none;
	display: block;
	flex: 0 0 auto;
}

.site-header--responsive #menu > li > a {
	margin: 0;
	white-space: nowrap;
}

.site-header--responsive #menu > li:last-child > a {
	width: auto;
	max-width: none;
	padding-right: 1.25rem;
	padding-left: 1.25rem;
}

.slicknav_menu {
	display: none;
}

@media screen and (min-width: 1200px) {
	header.site-header--responsive {
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		z-index: 10;
	}

	#page.site {
		padding-top: var(--site-header-height);
	}
}

/* Give the navigation the full width before switching to the mobile menu. */
@media screen and (max-width: 1199px) {
	.site-header--responsive .header-layout {
		grid-template-columns: minmax(0, 1fr);
		gap: 1rem;
	}

	.site-header--responsive #menu {
		justify-content: space-between;
		gap: 0.75rem;
	}
}

@media screen and (max-width: 959px) {
	.site-header--responsive .header-branding {
		padding-right: 72px;
	}

	.site-header--responsive .header-navigation {
		display: none;
	}

	.slicknav_menu {
		display: block;
	}

	.slicknav_nav > li:last-child > a {
		width: max-content;
		max-width: 100%;
		white-space: nowrap;
	}
}
