:root {
	--med-header-page-gap: 86px;
	--med-header-admin-offset: 0px;
}

html {
	scroll-behavior: smooth;
}

[id] {
	scroll-margin-top: calc(var(--med-header-page-gap) + var(--med-header-admin-offset) + 24px);
}

body > main {
	padding-top: var(--med-header-page-gap);
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

body.med-mobile-nav-is-open {
	overflow: hidden;
}

.med-site-header {
	position: fixed;
	top: var(--med-header-admin-offset);
	left: 0;
	z-index: 1000;
	width: 100%;
	box-sizing: border-box;
	padding: 16px;
	font-family: "Plus Jakarta Sans", sans-serif;
	font-size: 14px;
	font-weight: 600;
	line-height: 150%;
	color: #1a252f;
	pointer-events: none;
}

.med-site-header *,
.med-site-header *::before,
.med-site-header *::after {
	box-sizing: border-box;
}

.med-site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	gap: 20px;
	pointer-events: none;
	min-width: 0;
}

.med-site-header__group {
	display: flex;
	align-items: center;
	min-width: 0;
	border-radius: 20px;
	background-color: rgba(255, 255, 255, 0.85);
	border: 1px solid transparent;
	backdrop-filter: blur(32px);
	-webkit-backdrop-filter: blur(32px);
	pointer-events: auto;
	transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.med-site-header__group:hover,
.med-site-header.is-scrolled .med-site-header__group,
.med-site-header.is-mobile-menu-open .med-site-header__group {
	border-color: #eaecee;
	box-shadow: 0 8px 24px rgba(26, 37, 47, 0.06);
}

.med-site-header__group--primary {
	gap: 24px;
	padding: 12px 12px 12px 20px;
}

.med-site-header__group--actions {
	gap: 8px;
	padding: 12px;
}

.med-site-header__brand {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
	min-width: 0;
	color: #1a252f;
	text-decoration: none;
}

.med-site-header__logo,
.med-site-header__brand .custom-logo {
	display: block;
	width: 114px;
	max-width: 100%;
	height: 24px;
	object-fit: contain;
}

.med-site-header__logo-text {
	display: block;
	max-width: 114px;
	overflow: hidden;
	color: #1a252f;
	font-size: 20px;
	font-weight: 700;
	line-height: 24px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.med-site-header__nav,
.med-site-header__mobile-actions {
	display: flex;
	align-items: center;
	min-width: 0;
	gap: 4px;
}

.med-site-header__mobile-actions {
	display: none;
	gap: 8px;
}

.med-site-header__nav-item,
.med-site-header__button {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	height: 36px;
	border-radius: 8px;
	padding: 0 10px;
	border: 1px solid transparent;
	color: #1a252f;
	font: inherit;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.med-site-header__button {
	padding: 0 14px;
	text-align: center;
}

.med-site-header__nav-item > span:first-child {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 4px;
}

.med-site-header__nav-item:hover,
.med-site-header__nav-item:focus-visible {
	background-color: #f8f9fc;
	border-color: #eaecee;
	color: #1a252f;
	outline: none;
}

.med-site-header__button--primary {
	background-color: #b9215c;
	color: #fcf4f7;
}

.med-site-header__button--primary:hover,
.med-site-header__button--primary:focus-visible {
	background-color: #a51d52;
	color: #fcf4f7;
	outline: none;
}

.med-site-header__button--secondary {
	background-color: #fae9f0;
	border-color: #efbbcf;
	color: #901a48;
}

.med-site-header__button--secondary:hover,
.med-site-header__button--secondary:focus-visible {
	background-color: #f6dce7;
	color: #901a48;
	outline: none;
}

.med-site-header__brand:focus-visible,
.med-site-header__menu-button:focus-visible,
.med-site-header__mobile-menu-item:focus-visible,
.med-site-header__mobile-menu-button:focus-visible,
.med-site-header__nav-item:focus-visible,
.med-site-header__button:focus-visible {
	box-shadow: 0 0 0 3px rgba(185, 33, 92, 0.28);
	outline: none;
}

.med-site-header__external-icon {
	display: block;
	width: 16px;
	height: 16px;
	margin-left: 2px;
	flex: 0 0 16px;
	opacity: 0.5;
}

.med-site-header__menu-button {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: #1a252f;
	cursor: pointer;
}

.med-site-header__menu-button:hover {
	background-color: #f8f9fc;
}

.med-site-header__menu-icon {
	position: absolute;
	width: 20px;
	height: 20px;
	color: currentColor;
}

.med-site-header__menu-icon--open::before,
.med-site-header__menu-icon--open::after,
.med-site-header__menu-icon--close::before,
.med-site-header__menu-icon--close::after {
	content: "";
	position: absolute;
	left: 2px;
	right: 2px;
	height: 2px;
	border-radius: 999px;
	background: currentColor;
}

.med-site-header__menu-icon--open::before {
	top: 6px;
}

.med-site-header__menu-icon--open::after {
	bottom: 6px;
}

.med-site-header__menu-icon--close {
	display: none;
}

.med-site-header__menu-icon--close::before,
.med-site-header__menu-icon--close::after {
	top: 9px;
}

.med-site-header__menu-icon--close::before {
	transform: rotate(45deg);
}

.med-site-header__menu-icon--close::after {
	transform: rotate(-45deg);
}

.med-site-header.is-mobile-menu-open .med-site-header__menu-icon--open {
	display: none;
}

.med-site-header.is-mobile-menu-open .med-site-header__menu-icon--close {
	display: block;
}

.med-site-header__mobile-menu {
	display: none;
}

body.admin-bar {
	--med-header-admin-offset: 32px;
}

@media (max-width: 782px) {
	body.admin-bar {
		--med-header-admin-offset: 46px;
	}
}

@media (max-width: 1019px) {
	body.med-mobile-nav-is-open {
		overflow: hidden;
	}

	:root {
		--med-header-page-gap: 76px;
	}

	.med-site-header {
		padding: 8px;
	}

	.med-site-header__inner {
		display: block;
	}

	.med-site-header__group--primary {
		width: 100%;
		justify-content: space-between;
		gap: 20px;
		padding: 12px 12px 12px 20px;
	}

	.med-site-header__group--actions,
	.med-site-header__nav {
		display: none;
	}

	.med-site-header__mobile-actions {
		display: flex;
	}

	.med-site-header__mobile-menu {
		position: fixed;
		top: calc(var(--med-header-admin-offset) + 76px);
		left: 8px;
		right: 8px;
		z-index: 1000;
		display: flex;
		flex-direction: column;
		align-items: stretch;
		height: calc(100dvh - var(--med-header-admin-offset) - 84px);
		padding: 8px;
		border: 1px solid #eaecee;
		border-radius: 20px;
		background-color: rgba(255, 255, 255, 0.85);
		box-shadow: 0 4px 8px 3px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.08);
		backdrop-filter: blur(32px);
		-webkit-backdrop-filter: blur(32px);
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		transform: translateY(-4px);
		transition: opacity 180ms ease, visibility 180ms ease, transform 180ms ease;
	}

	.med-site-header.is-mobile-menu-open .med-site-header__mobile-menu {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
		transform: translateY(0);
	}

	.med-site-header__mobile-menu-list {
		display: flex;
		flex: 1;
		flex-direction: column;
		align-items: stretch;
		gap: 5px;
		overflow-y: auto;
	}

	.med-site-header__mobile-menu-actions {
		align-self: stretch;
		border-radius: 16px;
		background-color: #ffffff;
		border: 1px solid #eaecee;
		display: flex;
		align-items: flex-start;
		padding: 8px;
		gap: 5px;
		box-sizing: border-box;
	}

	.med-site-header__mobile-menu-button {
		min-width: 0;
		height: 40px;
		flex: 1;
		border-radius: 8px;
		display: flex;
		align-items: center;
		justify-content: center;
		padding: 0 12px;
		box-sizing: border-box;
		font: inherit;
		font-size: 14px;
		line-height: 150%;
		font-weight: 600;
		text-align: center;
		text-decoration: none;
		white-space: nowrap;
	}

	.med-site-header__mobile-menu-item {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		width: 100%;
		min-height: 48px;
		padding: 12px 14px 12px 16px;
		border: 1px solid #eaecee;
		border-radius: 16px;
		background: #fff;
		color: #1a252f;
		font: inherit;
		text-align: left;
		text-decoration: none;
	}

	.med-site-header__mobile-menu-item span {
		min-width: 0;
		overflow-wrap: anywhere;
	}

	.med-site-header__mobile-menu-item:hover {
		background-color: #f8f9fc;
	}
}

@media (max-width: 465px) {
	.med-site-header__mobile-actions .med-site-header__button--secondary {
		display: none;
	}
}

@media (max-width: 390px) {
	.med-site-header__mobile-actions .med-site-header__button--primary {
		display: none;
	}

	.med-site-header__mobile-menu-actions {
		flex-direction: column;
	}

	.med-site-header__mobile-menu-button {
		width: 100%;
		flex: none;
	}
}

@media (max-width: 340px) {
	.med-site-header__group--primary {
		gap: 12px;
		padding: 10px 10px 10px 14px;
	}

	.med-site-header__logo,
	.med-site-header__brand .custom-logo {
		width: 96px;
	}
}

@media (max-width: 320px) {
	.med-site-header {
		padding-inline: 6px;
	}

	.med-site-header__mobile-menu {
		left: 6px;
		right: 6px;
	}
}
