
/*
Theme Name: MV-Horgen
Theme URI: https://mv-horgen.de
Description: WordPress Theme für den Musikverein Horgen e.V.
Author: Tim Reichl
Version: 0.5.3
Template: twentytwentyfive
Text Domain: mv-horgen
*/

/*
 * Most design decisions live in theme.json. The rules below cover interaction
 * states and responsive relationships that Global Styles cannot express well.
 */

:where(a, button, input, select, summary, textarea, [tabindex]):focus-visible {
	box-shadow: 0 0 0 2px var(--wp--preset--color--base);
	outline: 3px solid var(--wp--preset--color--accent-3);
	outline-offset: 3px;
}

a {
	text-underline-offset: 0.18em;
}

/* Text-shadow inherits through groups and RichText; it does not accumulate. */
.font-shadow {
	text-shadow: 0 2px 5px rgba(0, 0, 0, 0.45);
}

.wp-site-blocks {
	display: flex;
	min-height: 100vh;
	flex-direction: column;
}

.wp-site-blocks > main {
	flex-grow: 1;
}

/* Independent native part shares the top grid row with the transparent nav. */
body:not(.wp-admin) .wp-site-blocks > .mvh-global-hero {
	grid-area: 1 / 1; margin: 0; padding: 0; min-width: 0; align-self: start;
}
body:not(.wp-admin) .wp-site-blocks:has(> .mvh-global-hero .mvh-hero) > .wp-block-template-part > .mvh-site-header__nav-shell {
	grid-row: 1 / -1; --mvh-header-initial-background: transparent;
}
/* Saved legacy header covers remain visible until a member removes them. */
body:not(.wp-admin) .wp-site-blocks:has(> .mvh-global-hero):has(> .wp-block-template-part > .mvh-site-header__hero) {
	grid-template-rows: auto auto 1fr auto;
}
body:not(.wp-admin) .wp-site-blocks:has(> .mvh-global-hero) > .wp-block-template-part > .mvh-site-header__hero { grid-area: 2 / 1; }
body:not(.wp-admin) .wp-site-blocks:has(> .mvh-global-hero):has(> .wp-block-template-part > .mvh-site-header__hero) > main { grid-area: 3 / 1; }
body:not(.wp-admin) .wp-site-blocks:has(> .mvh-global-hero):has(> .wp-block-template-part > .mvh-site-header__hero) > :last-child { grid-area: 4 / 1; }

.mvh-global-hero .mvh-hero {
	min-block-size: clamp(36rem, 80svh, 54rem); block-size: auto;
	max-inline-size: none; inline-size: 100%; margin: 0; padding: 0;
}
.mvh-global-hero .mvh-hero__slides { min-block-size: inherit; }
.mvh-global-hero .mvh-hero .mvh-hero__slide { min-block-size: inherit; block-size: auto; overflow: hidden; }
.mvh-global-hero .mvh-hero__content {
	padding-block: 8rem 9rem;
}
/* The global hero has no automatic top tint. Overlay remains editorial. */
.mvh-global-hero .mvh-hero__slide::after {
	background: linear-gradient(90deg, rgb(7 20 32 / var(--mvh-hero-overlay)), rgb(7 20 32 / calc(var(--mvh-hero-overlay) * .45)));
}
@media (max-width: 782px) {
	.mvh-global-hero .mvh-hero { min-block-size: clamp(32rem, 85svh, 44rem); }
}

/*
 * Flatten only our header's template-part box in the frontend. WordPress can
 * render this wrapper as header or div, depending on its area and tagName.
 * A normal wrapper ends just below the navigation and leaves no sticky travel.
 * Keep the editor's wrapper box so its selection and toolbar remain usable.
 */
:where(body:not(.wp-admin):not(.editor-styles-wrapper)) .wp-site-blocks > .wp-block-template-part:has(> .mvh-site-header__nav-shell) {
	display: contents;
}

/* The navigation spans all page rows, so the hero cannot end its sticky range. */
:where(body:not(.wp-admin):not(.editor-styles-wrapper)) .wp-site-blocks:has(> .wp-block-template-part > .mvh-site-header__nav-shell) {
	display: grid;
	position: relative;
	padding-inline: 0;
	grid-template-columns: minmax(0, 1fr);
	grid-template-rows: auto 1fr auto;
}
:where(body:not(.wp-admin):not(.editor-styles-wrapper)) .wp-site-blocks > .wp-block-template-part > .mvh-site-header__nav-shell {
	grid-column: 1;
	grid-row: 1 / -1;
	align-self: start;
	margin-block: 0;
}
:where(body:not(.wp-admin):not(.editor-styles-wrapper)) .wp-site-blocks > .wp-block-template-part > .mvh-site-header__hero {
	grid-area: 1 / 1;
	margin-block: 0;
}
:where(body:not(.wp-admin):not(.editor-styles-wrapper)) .wp-site-blocks:has(> .wp-block-template-part > .mvh-site-header__nav-shell) > main {
	grid-area: 2 / 1;
	padding-left: var(--wp--style--root--padding-left, 1rem);
	padding-right: var(--wp--style--root--padding-right, 1rem);
	min-width: 0;
}
:where(body:not(.wp-admin):not(.editor-styles-wrapper)) .wp-site-blocks:has(> .wp-block-template-part > .mvh-site-header__nav-shell) > :last-child {
	grid-area: 3 / 1;
	min-width: 0;
}
.mvh-site-header__hero {
	background-color: var(--wp--preset--color--accent-2);
	min-height: clamp(22rem, 50vw, 38rem);
	padding-block-start: 8rem;
	box-sizing: border-box;
}

.mvh-site-header__logo {
	--mvh-logo-max-height: 3rem;
	flex: 0 1 auto;
	min-inline-size: 0;
	max-inline-size: min(16rem, 40%);
}

.mvh-site-header__logo img {
	display: block;
	max-height: var(--mvh-logo-max-height);
	filter: drop-shadow(0 1px 2px #000);
	object-fit: contain;
	object-position: left center;
}

/* Keep the native Site Logo width control; these classes only set its limits. */
.mvh-site-header__logo.mvh-logo-large {
	--mvh-logo-max-height: 4rem;
}

/* A hidden logo stays selectable in the Site Editor, without deleting the logo. */
:where(body:not(.wp-admin):not(.editor-styles-wrapper)) .mvh-site-header__logo.mvh-logo-hidden {
	display: none;
}

:where(body.wp-admin, .editor-styles-wrapper) .mvh-site-header__logo.mvh-logo-hidden {
	opacity: 0.4;
}

.mvh-site-header__identity,
.mvh-site-header__identity .wp-block-site-title,
.mvh-site-header__identity .wp-block-site-tagline {
	margin-block: 0;
}

.mvh-site-header__identity .wp-block-site-title a,
.mvh-site-footer .wp-block-site-title a {
	color: inherit;
	text-decoration: none;
}

.mvh-site-header__nav-shell {
	position: sticky;
	top: var(--mvh-header-admin-offset, 0px);
	z-index: 1000;
	border-bottom: 1px solid transparent;
	--mvh-header-glass-color: var(--wp--preset--color--accent-2);
}

.mvh-site-header__nav-shell,
.mvh-site-header__nav-inner {
	background: transparent;
}

@supports ((-webkit-backdrop-filter: blur(16px)) or (backdrop-filter: blur(16px))) {
	.mvh-site-header__nav-shell {
		--mvh-header-glass-color: rgba(16, 45, 68, 0.78);
	}
}

/* Keep the filter off the overlay's ancestors so its fixed box uses the viewport. */
.mvh-site-header__nav-shell::before {
	content: "";
	position: absolute;
	inset: 0 0 -1px;
	z-index: -1;
	pointer-events: none;
	background-color: var(--mvh-header-initial-background, transparent);
	border-bottom: 1px solid transparent;
}

/* Without a hero, reserve a real navigation row and provide contrast immediately. */
:where(body:not(.wp-admin):not(.editor-styles-wrapper)) .wp-site-blocks > .wp-block-template-part:not(:has(> .mvh-site-header__hero)) > .mvh-site-header__nav-shell {
	grid-row: 1;
	--mvh-header-initial-background: var(--wp--preset--color--accent-2);
}

html.mvh-header-scrolled .mvh-site-header__nav-shell::before {
	background-color: var(--mvh-header-glass-color);
	border-bottom-color: var(--wp--preset--color--accent-1);
	-webkit-backdrop-filter: blur(16px);
	backdrop-filter: blur(16px);
}

:where(body.wp-admin, .editor-styles-wrapper) .mvh-site-header__nav-shell {
	background-color: var(--wp--preset--color--accent-2);
}

@media (prefers-reduced-motion: no-preference) {
	html.mvh-header-ready .mvh-site-header__nav-shell::before {
		transition: background-color 180ms ease, border-color 180ms ease, -webkit-backdrop-filter 180ms ease, backdrop-filter 180ms ease;
	}
}

body.admin-bar .mvh-site-header__nav-shell {
	--mvh-header-admin-offset: var(--wp-admin--admin-bar--height, 32px);
}

.mvh-site-header__nav-inner {
	min-height: 3rem;
	gap: 1rem;
	flex-wrap: nowrap;
	justify-content: space-between;
}

.mvh-site-header__navigation .wp-block-navigation-item__content {
	color: inherit;
	padding-block: 0.75rem;
	text-decoration: none;
	text-underline-offset: 0.35em;
}

.mvh-site-header__navigation .wp-block-navigation__submenu-container {
	background-color: var(--wp--preset--color--accent-2);
}

.mvh-site-header__navigation.wp-block-navigation:not(.has-background) .wp-block-navigation__submenu-container {
	border-color: var(--wp--preset--color--accent-1);
	color: var(--wp--preset--color--base);
}

.mvh-site-header__navigation .wp-block-navigation-item__content:hover,
.mvh-site-header__navigation .current-menu-item > .wp-block-navigation-item__content,
.mvh-site-header__navigation .current-menu-ancestor > .wp-block-navigation-item__content {
	text-decoration-color: var(--wp--preset--color--accent-3);
	text-decoration-line: underline;
	text-decoration-thickness: 1px;
}

:target {
	scroll-margin-top: 6rem;
}

body.admin-bar :target {
	scroll-margin-top: 8rem;
}

.mvh-site-footer {
	margin-block-start: var(--wp--preset--spacing--70);
}

.mvh-site-footer__inner {
	align-items: flex-start;
	gap: var(--wp--preset--spacing--50);
}

.mvh-site-footer__brand {
	max-width: 30rem;
}

.mvh-site-footer__brand .wp-block-site-title,
.mvh-site-footer__brand .wp-block-site-tagline,
.mvh-site-footer__links .wp-block-heading {
	margin-block: 0;
}

.mvh-site-footer a {
	color: inherit;
}

.mvh-site-footer a:hover {
	color: var(--wp--preset--color--base);
	text-decoration-thickness: 2px;
}

/* Startseiten-Patterns */
:is(.mvh-pattern-hero, .mvh-pattern-about, .mvh-pattern-news, .mvh-pattern-events, .mvh-pattern-join) {
	overflow-wrap: anywhere;
}

.wp-block-cover.mvh-pattern-hero {
	background-color: var(--wp--preset--color--accent-2);
	min-block-size: clamp(24rem, 65vh, 44rem);
	padding-inline: var(--wp--preset--spacing--40);
	padding-block-end: var(--wp--preset--spacing--70);
}

.mvh-pattern-hero__copy {
	max-inline-size: var(--wp--style--global--wide-size);
	margin-inline: auto;
}

.mvh-pattern-hero__copy > .wp-block-heading {
	max-inline-size: 18ch;
}

.mvh-pattern-hero__copy > p {
	max-inline-size: 40ch;
}

/* Keep prose readable inside intentionally wide media and text layouts. */
:is(.mvh-pattern-about, .mvh-pattern-join__layout) > .wp-block-media-text__content > p {
	max-inline-size: 65ch;
}

.mvh-pattern-about,
.mvh-pattern-news,
.mvh-pattern-events,
.mvh-pattern-join {
	padding-block: var(--wp--preset--spacing--80);
}

.wp-block-media-text.mvh-pattern-about,
.wp-block-media-text.mvh-pattern-join__layout {
	gap: var(--wp--preset--spacing--70);
}

:is(.mvh-pattern-about, .mvh-pattern-join__layout) > .wp-block-media-text__content {
	padding: 0;
	min-inline-size: 0;
}

:is(.mvh-pattern-about, .mvh-pattern-join__layout) > .wp-block-media-text__media {
	background-color: var(--wp--preset--color--accent-6);
	aspect-ratio: 4 / 3;
}

.mvh-pattern-join__layout > .wp-block-media-text__media {
	background-color: var(--wp--preset--color--accent-1);
}

:is(.mvh-pattern-about, .mvh-pattern-join__layout) > .wp-block-media-text__media img {
	display: block;
	inline-size: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.mvh-pattern-news .wp-block-post-template {
	display: grid;
	gap: var(--wp--preset--spacing--60);
}

.mvh-pattern-news .wp-block-post-template > li {
	min-inline-size: 0;
	margin: 0;
}

.mvh-pattern-news .wp-block-post-featured-image img {
	display: block;
	inline-size: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

.mvh-pattern-news .wp-block-post-featured-image + .mvh-pattern-news__text {
	margin-block-start: var(--wp--preset--spacing--40);
}

.mvh-pattern-news__text .wp-block-post-title {
	margin-block: var(--wp--preset--spacing--20) 0;
}

.mvh-pattern-news__text .wp-block-post-title a {
	color: inherit;
}

.mvh-pattern-events__list {
	border-block-end: 1px solid var(--wp--preset--color--accent-6);
}

.mvh-pattern-events__list > .mvh-pattern-events__entry {
	display: grid;
	gap: var(--wp--preset--spacing--30);
	margin-block: 0;
	padding-block: var(--wp--preset--spacing--50);
	border-block-start: 1px solid var(--wp--preset--color--accent-6);
}

.mvh-pattern-events__entry > *,
.mvh-pattern-events__details > * {
	margin-block: 0;
}

.mvh-pattern-events__details > .wp-block-heading + p {
	margin-block-start: var(--wp--preset--spacing--20);
}

.mvh-pattern-events__entry > p {
	font-weight: 700;
}

.mvh-pattern-events > .wp-block-heading {
	hyphens: auto;
}

@media (max-width: 600px) {
	.wp-block-media-text.mvh-pattern-about.is-stacked-on-mobile > .wp-block-media-text__content {
		grid-row: 1;
	}

	.wp-block-media-text.mvh-pattern-about.is-stacked-on-mobile > .wp-block-media-text__media {
		grid-row: 2;
	}
}

@media (min-width: 601px) {
	.mvh-pattern-events__list > .mvh-pattern-events__entry {
		grid-template-columns: minmax(0, 8rem) minmax(0, 1fr);
	}
}

@media (min-width: 783px) {
	.mvh-pattern-news .wp-block-post-template:has(> li + li) {
		grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
		grid-template-rows: auto 1fr;
		align-items: start;
	}

	.mvh-pattern-news .wp-block-post-template > li:first-child {
		grid-row: span 2;
	}

	.mvh-pattern-news .wp-block-post-template > li + li {
		display: grid;
		grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
		gap: var(--wp--preset--spacing--40);
		padding-block-start: var(--wp--preset--spacing--40);
		border-block-start: 1px solid var(--wp--preset--color--accent-6);
	}

	.mvh-pattern-news .wp-block-post-template > li + li > .mvh-pattern-news__text {
		margin-block: 0;
	}

	.mvh-pattern-news .wp-block-post-template > li + li > .mvh-pattern-news__text:first-child {
		grid-column: 1 / -1;
	}

	.mvh-pattern-news .wp-block-post-template > li:first-child .wp-block-post-title {
		font-size: var(--wp--preset--font-size--x-large);
	}

	.mvh-pattern-events.wp-block-group {
		display: grid;
		grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
		gap: var(--wp--preset--spacing--70);
	}

	.mvh-pattern-events > .mvh-pattern-events__list {
		margin-block: 0;
	}
}

/* Match WordPress core's admin-bar breakpoints, independently of font size. */
@media screen and (max-width: 782px) {
	body.admin-bar .mvh-site-header__nav-shell {
		--mvh-header-admin-offset: var(--wp-admin--admin-bar--height, 46px);
	}
}

/* At <= 600px the core admin bar is absolute and scrolls out of view. */
@media screen and (max-width: 600px) {
	body.admin-bar .mvh-site-header__nav-shell {
		--mvh-header-admin-offset: 0px;
	}

	body.admin-bar :target {
		scroll-margin-top: 6rem;
	}
}

@media (max-width: 37.5rem) {
	.mvh-site-header__hero-inner {
		align-items: flex-start;
		flex-direction: column;
		justify-content: center;
	}

	.mvh-site-footer__inner,
	.mvh-site-footer__navigation .wp-block-navigation__container {
		align-items: flex-start;
		flex-direction: column;
	}
}

.mvh-site-header__navigation {
	min-width: 0;
	margin-inline-start: auto;
}
.mvh-site-header__navigation .wp-block-navigation__responsive-container-open,
.mvh-site-header__navigation .wp-block-navigation__responsive-container-close {
	min-width: 44px;
	min-height: 44px;
	justify-content: center;
	align-items: center;
}
/* Use the core toggle on compact tablets as well as phones. */
@media (max-width: 782px) {
	.mvh-site-header__logo {
		--mvh-logo-max-height: 2.75rem;
	}

	.mvh-site-header__logo.mvh-logo-large {
		--mvh-logo-max-height: 3.5rem;
	}

	:where(body:not(.wp-admin):not(.editor-styles-wrapper)) .mvh-site-header__navigation.wp-block-navigation .wp-block-navigation__responsive-container-open {
		display: flex;
	}

	:where(body:not(.wp-admin):not(.editor-styles-wrapper)) .mvh-site-header__navigation .wp-block-navigation__responsive-container:not(.is-menu-open):not(.hidden-by-default) {
		display: none;
	}
}

/* The shell is a stacking context. Raise it with the modal above the admin bar. */
.mvh-site-header__nav-shell:has(.mvh-site-header__navigation .wp-block-navigation__responsive-container.is-menu-open) {
	z-index: 100000;
}

/*
 * Style the native mobile container even during its discrete display transition.
 * No modal state, focus handling or menu markup is implemented by the theme.
 */
@media (max-width: 782px) and (scripting: enabled) {
	:where(body:not(.wp-admin):not(.editor-styles-wrapper)) .mvh-site-header__navigation.wp-block-navigation .wp-block-navigation__responsive-container:not(.disable-default-overlay) {
		--mvh-menu-background: #102d44;
		--navigation-layout-justification-setting: flex-start;
		--navigation-layout-direction: column;
		--navigation-layout-align: flex-start;
		background-color: var(--mvh-menu-background);
		color: var(--wp--preset--color--base);
		position: fixed;
		z-index: 100000;
		display: none;
		flex-direction: column;
		box-sizing: border-box;
		inset: 0 0 auto;
		inline-size: auto;
		block-size: 100vh;
		block-size: 100dvh;
		padding-block: calc(var(--mvh-header-admin-offset, 0px) + max(1rem, env(safe-area-inset-top, 0px))) max(1rem, env(safe-area-inset-bottom, 0px));
		padding-left: max(clamp(1rem, 5vw, 3rem), env(safe-area-inset-left, 0px));
		padding-right: max(clamp(1rem, 5vw, 3rem), env(safe-area-inset-right, 0px));
		overflow: hidden;
		opacity: 0;
		pointer-events: none;
		animation: none;
	}

	/* Core forces inherited colours with !important on the closed container. Keep
	 * the glass surface while display is transitioning out, without changing core. */
	:where(body:not(.wp-admin):not(.editor-styles-wrapper)) .mvh-site-header__navigation.wp-block-navigation .wp-block-navigation__responsive-container:not(.is-menu-open) {
		background-color: var(--mvh-menu-background) !important;
		color: var(--wp--preset--color--base) !important;
	}

	:where(body:not(.wp-admin):not(.editor-styles-wrapper)) .mvh-site-header__navigation.wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open {
		display: flex;
		opacity: 1;
		pointer-events: auto;
	}

	/* Override core's white fallback for navigation blocks without a background. */
	:where(body:not(.wp-admin):not(.editor-styles-wrapper)) .mvh-site-header__navigation.wp-block-navigation:not(.has-background) .wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) {
		background-color: var(--mvh-menu-background);
	}

	@supports ((-webkit-backdrop-filter: blur(12px)) or (backdrop-filter: blur(12px))) {
		:where(body:not(.wp-admin):not(.editor-styles-wrapper)) .mvh-site-header__navigation.wp-block-navigation .wp-block-navigation__responsive-container:not(.disable-default-overlay) {
			--mvh-menu-background: rgba(16, 45, 68, 0.94);
			-webkit-backdrop-filter: blur(12px);
			backdrop-filter: blur(12px);
		}
	}

	:where(body:not(.wp-admin):not(.editor-styles-wrapper)) .mvh-site-header__navigation .wp-block-navigation__responsive-container :is(.wp-block-navigation__responsive-close, .wp-block-navigation__responsive-dialog) {
		display: flex;
		flex: 1;
		flex-direction: column;
		min-block-size: 0;
		min-inline-size: 0;
		max-inline-size: none;
	}

	/* The modal already reserves space above the dialog for a fixed admin bar. */
	body.admin-bar:not(.wp-admin):not(.editor-styles-wrapper) .mvh-site-header__navigation .wp-block-navigation__responsive-container .wp-block-navigation__responsive-dialog {
		margin-top: 0;
	}

	:where(body:not(.wp-admin):not(.editor-styles-wrapper)) .mvh-site-header__navigation.wp-block-navigation .wp-block-navigation__responsive-container:not(.disable-default-overlay) .wp-block-navigation__responsive-container-close {
		display: flex;
		position: static;
		flex: none;
		align-self: flex-end;
		margin-block-end: 0.5rem;
	}

	:where(body:not(.wp-admin):not(.editor-styles-wrapper)) .mvh-site-header__navigation.wp-block-navigation .wp-block-navigation__responsive-container:not(.disable-default-overlay) .wp-block-navigation__responsive-container-content {
		flex: 1;
		flex-direction: column;
		flex-wrap: nowrap;
		align-items: stretch;
		justify-content: flex-start;
		min-block-size: 0;
		min-inline-size: 0;
		padding: 0.5rem 0.5rem 1.5rem;
		overflow: auto;
		overscroll-behavior: contain;
		overflow-wrap: anywhere;
		text-align: start;
		font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2.25rem);
		line-height: 1.3;
		letter-spacing: 0;
	}

	:where(body:not(.wp-admin):not(.editor-styles-wrapper)) .mvh-site-header__navigation .wp-block-navigation__responsive-container-content :where(ul, li, a, button) {
		box-sizing: border-box;
		min-inline-size: 0;
		max-inline-size: 100%;
		white-space: normal;
	}

	:where(body:not(.wp-admin):not(.editor-styles-wrapper)) .mvh-site-header__navigation.wp-block-navigation .wp-block-navigation__responsive-container .wp-block-navigation__responsive-container-content :is(.wp-block-navigation__container, .wp-block-page-list) {
		flex: none;
		inline-size: min(100%, 44rem);
		margin-block: auto;
		margin-inline: auto;
		gap: clamp(0.75rem, 2vh, 1.5rem);
		font-size: inherit;
		line-height: inherit;
	}

	:where(body:not(.wp-admin):not(.editor-styles-wrapper)) .mvh-site-header__navigation.wp-block-navigation .wp-block-navigation__responsive-container .wp-block-navigation__responsive-container-content :is(ul, li) {
		align-items: flex-start;
		flex-direction: column;
	}

	:where(body:not(.wp-admin):not(.editor-styles-wrapper)) .mvh-site-header__navigation.wp-block-navigation .wp-block-navigation__responsive-container-content li {
		inline-size: 100%;
	}

	:where(body:not(.wp-admin):not(.editor-styles-wrapper)) .mvh-site-header__navigation.wp-block-navigation .wp-block-navigation__responsive-container .wp-block-navigation__responsive-container-content .has-child .wp-block-navigation__submenu-container {
		position: static;
		inline-size: auto;
		block-size: auto;
		min-inline-size: 0;
		max-inline-size: 100%;
		overflow: visible;
		opacity: 1;
		visibility: visible;
		border: 0;
		margin: 0;
		padding: 0.5rem 0 0 min(1rem, 4vw);
		gap: 0.5rem;
		font-size: clamp(1rem, 0.95rem + 0.4vw, 1.25rem);
	}

	:where(body:not(.wp-admin):not(.editor-styles-wrapper)) .mvh-site-header__navigation .wp-block-navigation__responsive-container .wp-block-navigation__submenu-icon {
		display: none;
	}

	:where(body:not(.wp-admin):not(.editor-styles-wrapper)) .mvh-site-header__navigation.wp-block-navigation .wp-block-navigation__responsive-container:not(.disable-default-overlay) .wp-block-navigation-item__content {
		position: relative;
		display: block;
		padding: 0.35rem 0.25rem 0.35rem 1.5rem;
		border: 0;
		border-radius: 0.2rem;
		text-decoration: none;
		font-weight: inherit;
	}

	:where(body:not(.wp-admin):not(.editor-styles-wrapper)) .mvh-site-header__navigation .wp-block-navigation__responsive-container :is(.current-menu-item, .current-menu-ancestor) > .wp-block-navigation-item__content::before {
		content: "";
		position: absolute;
		inset-inline-start: 0;
		inset-block-start: 0.95em;
		inline-size: 0.75rem;
		block-size: 3px;
		border-radius: 2px;
		background: var(--wp--preset--color--accent-3);
	}

	/* Twenty Twenty-Five outlines every :focus, including pointer focus. Only
	 * suppress that pointer state here; keyboard focus gets its own light ring. */
	:where(body:not(.wp-admin):not(.editor-styles-wrapper)) .mvh-site-header__navigation .wp-block-navigation__responsive-container :is(a, button):focus:not(:focus-visible) {
		outline-width: 0;
		box-shadow: none;
	}

	:where(body:not(.wp-admin):not(.editor-styles-wrapper)) .mvh-site-header__navigation.wp-block-navigation .wp-block-navigation__responsive-container :is(a, button):focus-visible {
		outline: 2px solid var(--wp--preset--color--base);
		outline-offset: 4px;
		box-shadow: 0 0 0 4px #102d44;
	}

	/* Discrete display transitions keep core's dialog lifecycle. Inert prevents
	 * Tab from entering the closing menu after core has returned focus. Browsers
	 * without both features close immediately and retain the opening animation. */
	@media (prefers-reduced-motion: no-preference) {
		:where(body:not(.wp-admin):not(.editor-styles-wrapper)) .mvh-site-header__navigation.wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open {
			animation: mvh-menu-in 180ms ease both;
		}

		@keyframes mvh-menu-in {
			from { opacity: 0; }
			to { opacity: 1; }
		}

		@supports (transition-behavior: allow-discrete) and (interactivity: inert) {
			:where(body:not(.wp-admin):not(.editor-styles-wrapper)) .mvh-site-header__navigation.wp-block-navigation .wp-block-navigation__responsive-container:not(.disable-default-overlay) {
				animation: none;
				interactivity: inert;
				transition: opacity 180ms ease, display 180ms allow-discrete;
			}

			:where(body:not(.wp-admin):not(.editor-styles-wrapper)) .mvh-site-header__navigation.wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open {
				interactivity: auto;
			}

			@starting-style {
				:where(body:not(.wp-admin):not(.editor-styles-wrapper)) .mvh-site-header__navigation.wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open {
					opacity: 0;
				}
			}
		}
	}
}

@media (scripting: none) {
	.mvh-site-header__nav-shell::before {
		background-color: var(--wp--preset--color--accent-2);
	}

	/* Core's click-to-open submenus need a hover and keyboard fallback. */
	.mvh-site-header__navigation .has-child:is(:hover, :focus-within) > .wp-block-navigation__submenu-container {
		block-size: auto;
		inline-size: max-content;
		max-inline-size: 80vw;
		overflow: visible;
		opacity: 1;
		visibility: visible;
		overflow-wrap: anywhere;
	}
}

@media (max-width: 782px) and (scripting: none) {
	:where(body:not(.wp-admin):not(.editor-styles-wrapper)) .wp-site-blocks:has(> .wp-block-template-part > .mvh-site-header__nav-shell) {
		display: flex;
	}

	:where(body:not(.wp-admin):not(.editor-styles-wrapper)) .wp-site-blocks > .wp-block-template-part > .mvh-site-header__nav-shell {
		position: relative;
		top: auto;
		align-self: stretch;
	}

	.mvh-site-header__navigation .wp-block-navigation__responsive-container-open,
	.mvh-site-header__navigation .wp-block-navigation__responsive-container-close,
	.mvh-site-header__navigation button.wp-block-navigation__submenu-icon {
		display: none;
	}

	.mvh-site-header__navigation .wp-block-navigation__responsive-container:not(.is-menu-open):not(.hidden-by-default),
	.mvh-site-header__navigation .wp-block-navigation__responsive-container.hidden-by-default {
		display: block;
		position: static;
		min-inline-size: 0;
	}

	.mvh-site-header__navigation .wp-block-navigation__responsive-container-content :where(ul, li, a, button) {
		box-sizing: border-box;
		min-inline-size: 0;
		max-inline-size: 100%;
		white-space: normal;
	}

	.mvh-site-header__navigation .wp-block-navigation__container {
		flex-direction: column;
		align-items: flex-end;
		overflow-wrap: anywhere;
	}

	.mvh-site-header__navigation .has-child {
		flex-direction: column;
		align-items: flex-end;
	}

	.mvh-site-header__navigation .has-child > .wp-block-navigation__submenu-container,
	.mvh-site-header__navigation .has-child:is(:hover, :focus-within) > .wp-block-navigation__submenu-container {
		position: static;
		block-size: auto;
		inline-size: auto;
		min-inline-size: 0;
		max-inline-size: 100%;
		overflow: visible;
		opacity: 1;
		visibility: visible;
	}
}
