/**
 * When the custom image logo is in the header, keep the typographic
 * site title (the yellow WA4 badge + Local) for screen readers only.
 * Uses the same clip pattern as GeneratePress .screen-reader-text.
 * pointer-events is none so iOS Safari cannot hit-test the overflowing
 * home link that clip/clip-path do not always exclude.
 */
.wp-custom-logo .site-header .site-branding {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
	pointer-events: none !important;
}
.wp-custom-logo .site-header .site-branding a {
	pointer-events: none !important;
}

/* Designed header size is 155×52. Leave room for the mobile menu button. */
.wp-custom-logo .site-header .site-logo img.header-image,
.wp-custom-logo .site-header .site-logo img.is-logo-image {
	width: 155px;
	max-width: min(155px, calc(100vw - 7.5rem));
	height: auto;
	display: block;
}

/* 1.0.1: keep the hamburger above other header layers. z-index only works
   when the element is positioned; GeneratePress leaves the wrapper static. */
.has-inline-mobile-toggle .mobile-menu-control-wrapper {
	position: relative;
	z-index: 101;
}
.has-inline-mobile-toggle .mobile-menu-control-wrapper .menu-toggle {
	position: relative;
	z-index: 102;
	pointer-events: auto;
}
@media (max-width: 768px) {
	.has-inline-mobile-toggle #site-navigation:not(.toggled) {
		pointer-events: none;
	}
	.has-inline-mobile-toggle #site-navigation.toggled {
		pointer-events: auto;
	}
}
