/* Public shell only; content widths/tokens remain owned by the foundation. */
.mrwax-brand {
	display: inline-flex;
	align-items: center;
	gap: var(--wp--preset--spacing--mrwax-space-1);
	min-inline-size: 0;
	max-inline-size: 100%;
}

.mrwax-brand-copy {
	min-inline-size: 0;
	max-inline-size: 100%;
}

/* Decorative line icons retain the visible labels and native link targets. */
.mrwax-navigation-icon {
	flex: 0 0 auto;
	inline-size: 1.2rem;
	block-size: 1.2rem;
	color: inherit;
	vertical-align: middle;
}

.mrwax-header-utilities a {
	gap: 0.5rem;
}

.mrwax-header-utilities a > span {
	min-inline-size: 0;
}

.mrwax-brand .site-title {
	margin: 0;
	font-family: var(--wp--preset--font-family--mrwax-display);
	font-size: var(--wp--preset--font-size--mrwax-heading-3);
	font-weight: var(--wp--custom--mrwax--font-weight--light);
	letter-spacing: var(--wp--custom--mrwax--tracking--brand);
	line-height: var(--wp--custom--mrwax--line-height--brand);
	text-transform: uppercase;
	overflow-wrap: anywhere;
}

/* The native description is header metadata; R5 owns footer structure. */
.mrwax-brand .site-description {
	display: none;
	margin: 0;
}

/* R5 owns footer structure; retain its existing logo-only state when present. */
.site-footer .mrwax-brand .custom-logo-link + .mrwax-brand-copy {
	display: none;
}

.mrwax-brand .custom-logo-link {
	display: inline-flex;
	max-inline-size: 100%;
}

.mrwax-brand .custom-logo {
	inline-size: auto;
	block-size: auto;
	max-inline-size: 100%;
	max-block-size: 3rem;
	object-fit: contain;
}

.mrwax-site {
	display: flex;
	flex-direction: column;
	min-block-size: 100vh;
}

/* Core supplies the toolbar height and retains its document offset. */
body.admin-bar > .mrwax-site {
	min-block-size: calc(100vh - var(--wp-admin--admin-bar--height, 32px));
}

@supports (min-block-size: 100dvh) {
	.mrwax-site {
		min-block-size: 100dvh;
	}

	body.admin-bar > .mrwax-site {
		min-block-size: calc(100dvh - var(--wp-admin--admin-bar--height, 32px));
	}
}

.mrwax-site > .site-main {
	flex: 1 0 auto;
	min-inline-size: 0;
	margin-block: var(--wp--preset--spacing--mrwax-space-4);
}

.mrwax-site > .site-main:focus:not(:focus-visible) {
	outline: none;
	box-shadow: none;
}

.mrwax-site > .site-main:focus-visible {
	outline: var(--wp--custom--mrwax--focus--width) solid var(--wp--preset--color--mrwax-bronze);
	outline-offset: var(--wp--custom--mrwax--focus--width);
	box-shadow: none;
}

@media (forced-colors: active) {
	.mrwax-site > .site-main:focus-visible {
		outline-color: Highlight;
		box-shadow: none;
	}
}
