.zh-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: rgba(233, 226, 214, .98);
	border-bottom: 1px solid rgba(37, 41, 43, .14);
	box-shadow: 0 10px 26px rgba(37, 41, 43, .05);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
}

.admin-bar .zh-header { top: 32px; }

.zh-header__inner {
	min-height: 92px;
	display: flex;
	align-items: center;
	gap: 1.5rem;
}

.zh-logo {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
	text-decoration: none;
}

.zh-logo__image {
	display: block;
	width: auto;
	height: 70px;
	max-width: 170px;
	object-fit: contain;
}

.zh-logo__text {
	font-weight: 800;
	color: var(--zh-color-dark);
}

.zh-nav {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: 1rem;
}

.zh-nav__list {
	display: flex;
	align-items: center;
	gap: .9rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.zh-nav__list > li { position: relative; }

.zh-nav__list > li > a {
	position: relative;
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 .12rem;
	color: var(--zh-color-dark);
	text-decoration: none;
	font-weight: 700;
	font-size: .94rem;
	transition: color .2s ease;
}

.zh-nav__list > li > a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 3px;
	height: 3px;
	border-radius: 999px;
	background: var(--zh-color-rust);
	opacity: 0;
	transform: scaleX(.25);
	transform-origin: center;
	transition: opacity .2s ease, transform .2s ease;
}

.zh-nav__list > li > a:hover,
.zh-nav__list > li > a:focus-visible,
.zh-nav__list .current-menu-item > a,
.zh-nav__list .current-menu-ancestor > a,
.zh-nav__list .current_page_item > a,
.zh-nav__list .current_page_parent > a,
.zh-nav__list a[aria-current="page"] {
	color: var(--zh-color-green);
}

.zh-nav__list .current-menu-item > a::after,
.zh-nav__list .current-menu-ancestor > a::after,
.zh-nav__list .current_page_item > a::after,
.zh-nav__list .current_page_parent > a::after,
.zh-nav__list a[aria-current="page"]::after {
	opacity: 1;
	transform: scaleX(1);
}

.zh-nav__list .sub-menu {
	position: absolute;
	left: -.9rem;
	top: calc(100% - 2px);
	min-width: 230px;
	margin: 0;
	padding: .65rem;
	list-style: none;
	background: #fff;
	border: 1px solid rgba(37, 41, 43, .12);
	border-radius: var(--zh-radius-medium);
	box-shadow: 0 18px 40px rgba(37, 41, 43, .13);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

.zh-nav__list li:hover > .sub-menu,
.zh-nav__list li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.zh-nav__list .sub-menu a {
	display: flex;
	align-items: center;
	color: var(--zh-color-dark);
	text-decoration: none;
	font-weight: 700;
	width: 100%;
	min-height: 40px;
	padding: .45rem .6rem;
	border-radius: var(--zh-radius-small);
}

.zh-nav__list .sub-menu a:hover,
.zh-nav__list .sub-menu a:focus-visible { background: var(--zh-color-light); }

.zh-nav__cta {
	flex: 0 0 auto;
	padding-inline: 1.05rem;
}

.zh-nav-toggle {
	display: none;
	margin-left: auto;
	border: 0;
	background: transparent;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.zh-nav-toggle__icon {
	display: inline-block;
	width: 22px;
	height: 2px;
	background: currentColor;
	box-shadow: 0 7px 0 currentColor, 0 -7px 0 currentColor;
	margin-left: .6rem;
}

.zh-signpost { display: none; }

@media (min-width: 1280px) {
	body.zh-has-signpost,
	body.zh-has-signpost #page,
	body.zh-has-signpost .site {
		margin-left: 0 !important;
		padding-left: 0 !important;
		width: 100% !important;
		max-width: none !important;
	}

	.zh-header__inner {
		width: 100%;
		max-width: none;
		min-height: 116px;
		padding-left: 252px;
		padding-right: 26px;
		gap: 1rem;
	}

	.zh-header .zh-logo {
		display: none;
	}

	.zh-signpost {
		display: block;
		position: fixed;
		top: 6px;
		left: 0;
		bottom: 0;
		width: 250px;
		z-index: 1100;
		pointer-events: none;
		overflow: visible;
	}

	.admin-bar .zh-signpost {
		top: 38px;
	}

	/*
	 * Smalle gemetselde wandstrook.
	 * Bewust slechts iets breder dan de bevestigingsplaat.
	 */
	.zh-signpost__wall {
		position: absolute !important;
		top: -6px !important;
		left: 0 !important;
		bottom: -120px !important;
		width: 36px !important;
		max-width: 36px !important;
		min-width: 36px !important;
		pointer-events: none;
		background-color: #aaa7a1;
		background-image:
			linear-gradient(90deg, rgba(255,255,255,.08) 0%, rgba(255,255,255,.015) 45%, rgba(0,0,0,.08) 100%),
			url("../images/zuur-muur-klein-schuin.webp");
		background-repeat: no-repeat, repeat-y;
		background-size: 100% 100%, 72px auto !important;
		background-position: 0 0, 49% 0;
		box-shadow:
			inset -1px 0 0 rgba(255,255,255,.16),
			4px 0 10px rgba(37,41,43,.08);
		z-index: 1;
	}

	.zh-signpost__brand {
		position: relative;
		left: 4px;
		display: block;
		width: 240px;
		pointer-events: auto;
		text-decoration: none;
		filter: drop-shadow(0 12px 16px rgba(0,0,0,.16));
		transform-origin: 14px 38px;
		transition: transform .22s ease, filter .22s ease;
		z-index: 2;
	}

	.zh-signpost__brand:hover,
	.zh-signpost__brand:focus-visible {
		transform: translateY(1px) rotate(-.25deg);
		filter: drop-shadow(0 15px 19px rgba(0,0,0,.22));
	}

	.zh-signpost__brand:focus-visible {
		outline: 3px solid var(--zh-color-rust);
		outline-offset: 5px;
	}

	.zh-signpost__image {
		display: block;
		width: 240px;
		height: auto;
		object-fit: contain;
	}
}

@media (min-width: 1280px) and (max-width: 1450px) {
	.zh-header__inner {
		padding-left: 230px;
		padding-right: 18px;
		min-height: 110px;
	}

	.zh-signpost {
		width: 226px;
	}

	.zh-signpost__wall {
		width: 32px !important;
		max-width: 32px !important;
		min-width: 32px !important;
		background-size: 100% 100%, 64px auto !important;
	}

	.zh-signpost__brand,
	.zh-signpost__image {
		width: 218px;
	}

	.zh-signpost__brand {
		left: 3px;
	}

	.zh-nav__list {
		gap: .72rem;
	}

	.zh-nav__list a {
		font-size: .9rem;
	}

	.zh-nav {
		gap: .75rem;
	}

	.zh-nav__cta {
		padding-inline: .95rem;
		font-size: .9rem;
	}
}

@media (max-width: 1180px) {
	.zh-header__inner { gap: 1rem; }
	.zh-logo__image { height: 64px; max-width: 160px; }
	.zh-nav { gap: .8rem; }
	.zh-nav__list { gap: .75rem; }
}

@media (max-width: 1040px) {
	.admin-bar .zh-header { top: 46px; }
	.zh-header__inner { min-height: 82px; }
	.zh-nav-toggle { display: block; }
	.zh-nav {
		display: none;
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		max-height: calc(100vh - 82px);
		overflow-y: auto;
		background: #efe8dd;
		padding: 1rem max(1rem, calc((100vw - var(--zh-container)) / 2));
		border-top: 1px solid rgba(37, 41, 43, .1);
		box-shadow: 0 18px 30px rgba(37, 41, 43, .10);
	}
	.zh-nav.is-open { display: block; }
	.zh-nav__list { display: block; }
	.zh-nav__list > li { border-bottom: 1px solid rgba(37, 41, 43, .1); }
	.zh-nav__list > li > a { display: flex; padding: .65rem 0; }
	.zh-nav__list .sub-menu {
		position: static;
		min-width: 0;
		padding: 0 0 .5rem 1rem;
		border: 0;
		box-shadow: none;
		background: transparent;
		opacity: 1;
		visibility: visible;
		transform: none;
	}
	.zh-nav__cta { margin-top: 1rem; width: 100%; }
}
