.thm-wn,
.thm-wn-spacer {
	display: none;
}

.thm-wn {
	position: fixed;
	z-index: 90;
	inset: auto 0 0;
	box-sizing: border-box;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	align-items: stretch;
	min-block-size: calc(var(--thm-wn-height, 64px) + env(safe-area-inset-bottom, 0px));
	padding-inline-start: env(safe-area-inset-left, 0px);
	padding-inline-end: env(safe-area-inset-right, 0px);
	padding-block-end: env(safe-area-inset-bottom, 0px);
	background: var(--thm-wn-background, var(--thm-wn-site-background, Canvas));
	color: var(--thm-wn-text, var(--e-global-color-text, CanvasText));
	border-block-start: var(--thm-wn-border, 1px solid rgba(127, 127, 127, .35));
	box-shadow: var(--thm-wn-shadow, 0 -2px 10px rgba(0, 0, 0, .08));
	font-family: var(--thm-wn-font, var(--e-global-typography-text-font-family, inherit));
	font-size: var(--thm-wn-font-size, var(--e-global-typography-accent-font-size, .875rem));
	font-weight: var(--e-global-typography-accent-font-weight, inherit);
	line-height: 1.25;
}

.thm-wn-spacer {
	block-size: var(--thm-wn-measured-height, calc(var(--thm-wn-height, 64px) + env(safe-area-inset-bottom, 0px)));
	flex: 0 0 auto;
}

.thm-wn .thm-wn-link {
	display: flex;
	min-inline-size: 0;
	min-block-size: 48px;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: .25em;
	padding: .4em .2em;
	text-align: center;
	overflow-wrap: anywhere;
	color: inherit;
	text-decoration: none;
	border-radius: var(--thm-wn-link-radius, .25em);
}

.thm-wn .thm-wn-link[aria-current] {
	color: var(--thm-wn-active, var(--e-global-color-primary, LinkText));
	text-decoration: underline;
	text-underline-offset: .2em;
}

.thm-wn .thm-wn-link:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: -3px;
}

.thm-wn .thm-wn-symbol {
	display: flex;
	align-items: center;
	gap: .2em;
	color: var(--thm-wn-icon, currentColor);
}

.thm-wn .thm-wn-symbol svg {
	inline-size: var(--thm-wn-icon-size, 22px);
	block-size: var(--thm-wn-icon-size, 22px);
	display: block;
}

@media (max-width: 767px) {
	.thm-wn:not(.thm-wn-custom-breakpoint) {
		display: grid;
	}

	.thm-wn-spacer:not(.thm-wn-custom-breakpoint) {
		display: block;
	}
}

nav.thm-wn[hidden] {
	display: none;
}

.thm-wn-header-badge,
.thm-wn .thm-wn-badge {
	display: inline-grid;
	place-items: center;
	box-sizing: border-box;
	min-inline-size: 1.8em;
	block-size: 1.8em;
	padding: 0 .3em;
	border-radius: 999px;
	background: var(--thm-wn-badge-bg, #89630c);
	color: var(--thm-wn-badge-text, #fff);
	font-size: .6875rem;
	font-weight: 700;
	line-height: 1;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.thm-wn-header-badge {
	vertical-align: middle;
	pointer-events: none;
}

.thm-wn-header-badge-positioned {
	position: relative;
	z-index: 1;
	transform: translate(var(--thm-wn-header-badge-x), var(--thm-wn-header-badge-y));
}

.thm-wn .thm-wn-symbol {
	position: relative;
}

.thm-wn .thm-wn-badge {
	position: absolute;
	inset-block-start: -.45em;
	inset-inline-start: calc(100% - .6em);
}
