/* Shared navigation for homepage and all interior pages. */
.site-header {
	font: 15px/1.7 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.site-header * {
	box-sizing: border-box;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: #fff;
	box-shadow: var(--shadow-sm)
}

.nav-bar {
	max-width: 1400px;
	min-height: 70px;
	padding: 0 24px;
	margin: auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px
}

.brand {
	display: flex;
	flex: 0 0 180px
}

.brand img {
	width: 180px;
	max-height: 60px;
	object-fit: contain
}

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

.desktop-menu>li>a,
.more-menu>summary {
	display: block;
	padding: 22px 10px;
	font-size: 15px;
	font-weight: 600;
	white-space: nowrap;
	text-decoration: none;
	color: var(--text-main)
}

.desktop-menu a:hover,
.desktop-menu a[aria-current],
.mobile-menu a[aria-current] {
	color: var(--accent-color)
}

.desktop-menu a[aria-current] {
	box-shadow: inset 0 -3px var(--accent-color)
}

.more-menu {
	position: relative
}

.more-menu ul {
	position: absolute;
	right: 0;
	top: 55px;
	min-width: 180px;
	list-style: none;
	background: #fff;
	border: 1px solid var(--border-color);
	border-radius: 8px;
	box-shadow: var(--shadow-md);
	padding: 8px;
	margin: 0
}

.more-menu ul a {
	display: block;
	padding: 8px 12px;
	text-decoration: none;
	color: var(--text-main);
	border-radius: 6px
}

.more-menu ul a:hover {
	background: var(--bg-light)
}

.mobile-menu {
	display: none
}

@media(max-width:1250px) {
	.desktop-menu {
		display: none
	}

	.mobile-menu {
		display: block
	}

	.mobile-menu>summary {
		padding: 16px 4px;
		font-weight: 600;
		color: var(--primary-color)
	}

	.mobile-menu>ul {
		position: absolute;
		top: 70px;
		right: 0;
		left: 0;
		background: #fff;
		box-shadow: var(--shadow-md);
		list-style: none;
		margin: 0;
		padding: 16px 24px;
		display: grid;
		grid-template-columns: repeat(3, 1fr);
		gap: 4px;
		max-height: 70vh;
		overflow: auto
	}

	.mobile-menu a {
		display: block;
		padding: 10px 12px;
		color: var(--text-main);
		text-decoration: none;
		border-radius: 6px
	}

	.mobile-menu a:hover {
		background: var(--bg-light)
	}
}

@media(max-width:600px) {
	.site-header .nav-bar {
		padding: 0 16px
	}

	.site-header .brand,
	.site-header .brand img {
		width: 160px;
		flex-basis: 160px
	}

	.site-header .mobile-menu>ul {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		padding: 12px
	}
}

.site-header summary {
	cursor: pointer;
	font-family: inherit
}

.site-header a,
.site-header summary {
	transition: background-color .2s, color .2s
}

.site-header a:focus-visible,
.site-header summary:focus-visible {
	outline: 3px solid #0066cc;
	outline-offset: 4px
}

@media(prefers-reduced-motion:reduce) {
	.site-header * {
		transition: none !important
	}
}

.site-header .brand img {
	display: block;
	height: auto;
	max-width: 100%
}