.mk-header {
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	z-index: 20;
}

.mk-header__bar {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	max-width: 1240px;
	margin: 0 auto;
	padding: 26px clamp(20px, 4vw, 40px) 10px;
}

.mk-header__brand {
	display: flex;
	align-items: center;
	text-decoration: none;
}

.mk-header__logo {
	display: block;
	width: auto;
	height: 32px;
}

.mk-header__name {
	color: var(--wp--preset--color--heading);
	font-size: 22px;
	font-weight: 600;
	letter-spacing: -0.4px;
}

.mk-header__nav {
	display: flex;
	flex-wrap: wrap;
	gap: 2px;
	padding: 5px;
	border: 1px solid rgba(255, 255, 255, 0.9);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.6);
	box-shadow: 0 1px 2px rgba(17, 17, 66, 0.04);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
}

.mk-header__item,
.mk-header__item:hover {
	border-radius: 999px;
	color: var(--wp--preset--color--body);
	font-size: 15px;
	text-decoration: none;
}

a.mk-header__item {
	padding: 9px 16px;
}

button.mk-header__item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 9px 14px 9px 16px;
	border: none;
	background: transparent;
	font: 400 15px var(--wp--preset--font-family--inter);
	cursor: pointer;
}

.mk-header__item.is-current {
	background: var(--wp--preset--color--base);
	box-shadow: 0 1px 2px rgba(17, 17, 66, 0.04);
	color: var(--wp--preset--color--heading);
}

.mk-header__item[aria-expanded="true"] {
	background: var(--mk-navy);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
	color: var(--wp--preset--color--base);
	font-weight: 500;
}

.mk-header__item .mk-icon--chevron-up,
.mk-header__item[aria-expanded="true"] .mk-icon--chevron,
.mk-drawer__item .mk-icon--minus,
.mk-drawer__item[aria-expanded="true"] .mk-icon--plus {
	display: none;
}

.mk-header__item[aria-expanded="true"] .mk-icon--chevron-up,
.mk-drawer__item[aria-expanded="true"] .mk-icon--minus {
	display: block;
}

.mk-header__cta.ml-btn {
	padding: 16px 24px;
}

.mk-header__toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 1px solid #e3e6f0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.85);
	color: var(--wp--preset--color--primary);
	cursor: pointer;
}

.mk-header__toggle .mk-icon--close,
.mk-header__toggle[aria-expanded="true"] .mk-icon--menu {
	display: none;
}

.mk-header__toggle[aria-expanded="true"] .mk-icon--close {
	display: inline;
}

/* Desktop dropdowns. */
.mk-mega {
	position: absolute;
	top: calc(100% + 8px);
	left: 50%;
	display: flex;
	box-sizing: border-box;
	width: min(1120px, calc(100vw - 40px));
	border: 1px solid var(--wp--preset--color--base);
	border-radius: 30px;
	transform: translateX(-50%);
	-webkit-backdrop-filter: blur(20px) saturate(160%);
	backdrop-filter: blur(20px) saturate(160%);
	animation: mk-drop 0.26s var(--mk-ease) both;
}

.mk-mega[hidden] {
	display: none;
}

@keyframes mk-drop {

	from {
		opacity: 0;
		transform: translateX(-50%) translateY(-8px);
	}

	to {
		opacity: 1;
		transform: translateX(-50%) translateY(0);
	}
}

.mk-mega--list {
	flex-wrap: wrap;
	gap: 12px;
	padding: 12px;
	background: rgba(255, 255, 255, 0.92);
	box-shadow: 0 1px 0 #fff;
}

.mk-mega--cards {
	flex-direction: column;
	gap: 22px;
	padding: 24px;
	background: rgba(255, 255, 255, 0.94);
	box-shadow: 0 1px 0 0 #fffffff7;
}

.mk-mega__main {
	display: flex;
	flex: 2 1 560px;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
	padding: 14px 10px 10px;
}

.mk-mega__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 14px 8px;
}

.mk-mega--cards .mk-mega__head {
	gap: 12px;
	padding: 10px 16px 2px;
}

.mk-mega__heading {
	color: var(--wp--preset--color--subtle);
	font-size: 12.5px;
	font-weight: 500;
	letter-spacing: 0.9px;
	text-transform: uppercase;
}

.mk-mega__all,
.mk-mega__all:hover {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--wp--preset--color--accent);
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
}

.mk-mega__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 2px 8px;
}

.mk-mega__link {
	display: grid;
	grid-template-columns: 48px minmax(0, 1fr);
	gap: 14px;
	align-items: start;
	padding: 14px;
	border: 1px solid transparent;
	border-radius: 18px;
	text-decoration: none;
}

.mk-mega__tile {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border: 1px solid #e6e8f1;
	border-radius: 14px;
	background: linear-gradient(180deg, #fff 0%, #f3f4fa 100%);
	box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(17, 17, 66, 0.04);
}

.mk-mega__tile img {
	width: 26px;
	height: 26px;
}

.mk-mega__text {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding-top: 2px;
}

.mk-mega__title {
	color: var(--wp--preset--color--heading);
	font-size: 15.5px;
	font-weight: 600;
}

.mk-mega__desc {
	color: var(--wp--preset--color--body);
	font-size: 13.5px;
	line-height: 1.5;
}

.mk-mega__panel {
	position: relative;
	display: flex;
	flex: 1 1 300px;
	flex-direction: column;
	gap: 14px;
	min-width: 0;
	padding: 26px;
	overflow: hidden;
	border-radius: 22px;
	background: radial-gradient(70% 80% at 90% 0%, rgba(201, 208, 255, 0.95) 0%, rgba(201, 208, 255, 0) 70%), radial-gradient(50% 60% at 0% 100%, rgba(247, 163, 27, 0.12) 0%, rgba(247, 163, 27, 0) 70%), linear-gradient(180deg, #eef0ff 0%, #f8f9ff 100%);
}

.mk-mega__ring {
	position: absolute;
	bottom: -460px;
	left: -220px;
	width: 640px;
	height: 640px;
	border: 1px solid rgba(255, 255, 255, 0.9);
	border-radius: 50%;
}

.mk-mega__panel > :not(.mk-mega__ring) {
	position: relative;
}

.mk-mega__panel-label {
	align-self: flex-start;
	padding: 6px 12px;
	border: 1px solid var(--wp--preset--color--lavender);
	border-radius: 999px;
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--accent);
	font-size: 12.5px;
	font-weight: 600;
}

.mk-mega__panel-heading {
	color: var(--wp--preset--color--heading);
	font-size: 21px;
	font-weight: 600;
	letter-spacing: -0.4px;
	line-height: 1.3;
}

.mk-mega__panel-text {
	color: var(--wp--preset--color--body-strong);
	font-size: 14.5px;
	line-height: 1.6;
}

.mk-mega__stack {
	display: flex;
	margin-top: 2px;
}

.mk-mega__stack-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border: 2px solid #fff;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 2px rgba(17, 17, 66, 0.04);
}

.mk-mega__stack-icon + .mk-mega__stack-icon {
	margin-left: -8px;
}

.mk-mega__stack-icon img {
	width: 18px;
	height: 18px;
}

.mk-mega__panel-cta.ml-btn {
	align-self: flex-start;
	margin-top: auto;
	padding: 12px 20px;
}

.mk-mega__cards {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}

.mk-mega__card {
	position: relative;
	display: flex;
	flex: 1 1 420px;
	flex-direction: column;
	gap: 24px;
	min-width: 0;
	padding: 34px;
	overflow: hidden;
	border: 1px solid #e8eaf4;
	border-radius: 26px;
	background: radial-gradient(70% 70% at 100% 0%, rgba(201, 208, 255, 0.9) 0%, rgba(255, 255, 255, 0) 70%), linear-gradient(180deg, #f6f7ff 0%, #fff 100%);
}

.mk-mega__card--amber {
	background: radial-gradient(70% 70% at 100% 0%, rgba(247, 163, 27, 0.16) 0%, rgba(255, 255, 255, 0) 70%), linear-gradient(180deg, #f6f7ff 0%, #fff 100%);
}

.mk-mega__card > * {
	position: relative;
}

.mk-mega__card-logo {
	align-self: flex-start;
	width: auto;
	height: 30px;
}

.mk-mega__card-text {
	max-width: 460px;
	margin: 0;
	color: var(--wp--preset--color--body-strong);
	font-size: 15px;
	line-height: 1.65;
}

.mk-mega__card-shot {
	margin-top: auto;
	padding: 10px;
	border: 1px solid #fff;
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.7);
}

.mk-mega__card-frame {
	overflow: hidden;
	border-radius: 10px;
	background: #fff;
}

.mk-mega__card-frame img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
	object-position: top left;
	aspect-ratio: 16 / 7;
}

.mk-mega__card-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 4px;
}

.mk-mega__card-actions .ml-btn {
	font-size: 14.5px;
}

.mk-mega__card-actions .ml-btn--primary {
	padding: 12px 18px;
}

.mk-mega__card-actions .ml-btn--outline {
	padding: 11px 18px;
	background: rgba(255, 255, 255, 0.55);
	box-shadow: none;
	color: var(--wp--preset--color--primary);
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}

/* Menu for small screens. */
.mk-drawer {
	position: absolute;
	top: calc(100% + 8px);
	right: 12px;
	left: 12px;
	z-index: 30;
	display: flex;
	flex-direction: column;
	gap: 2px;
	justify-content: center;
	box-sizing: border-box;
	max-height: calc(100vh - 96px);
	padding: 10px;
	overflow-y: auto;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 26px;
	background: var(--wp--preset--color--base);
	box-shadow: 0 24px 64px rgba(28, 35, 64, 0.08);
	text-align: left;
}

.mk-drawer[hidden],
.mk-drawer__sub[hidden] {
	display: none;
}

.mk-drawer__item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 12px 14px 16px;
	border-radius: 16px;
	color: var(--wp--preset--color--heading);
	font: 500 17px var(--wp--preset--font-family--inter);
	text-align: left;
	text-decoration: none;
}

button.mk-drawer__item {
	width: 100%;
	border: none;
	background: transparent;
	cursor: pointer;
}

a.mk-drawer__item {
	box-sizing: border-box;
	min-height: 60px;
}

.mk-drawer__item:hover,
.mk-drawer__link:hover,
.mk-drawer__all:hover {
	background: var(--wp--preset--color--surface-soft);
}

.mk-drawer__item:hover {
	color: var(--wp--preset--color--heading);
}

.mk-drawer__chevron {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border: 1px solid var(--wp--preset--color--border-strong);
	border-radius: 50%;
	color: var(--wp--preset--color--primary);
}

.mk-drawer__item[aria-expanded="true"] .mk-drawer__chevron {
	border: none;
	background: var(--mk-navy);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
	color: var(--wp--preset--color--base);
}

.mk-drawer__arrow {
	display: flex;
	color: var(--wp--preset--color--accent);
}

.mk-drawer__sub {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin: 2px 0 8px;
	padding: 6px;
	border: 1px solid #eef0fa;
	border-radius: 18px;
	background: var(--wp--preset--color--surface-soft);
}

.mk-drawer__link {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	border-radius: 14px;
	text-decoration: none;
}

.mk-drawer__tile {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 12px;
	background: linear-gradient(180deg, #fff 0%, #f3f4fa 100%);
}

.mk-drawer__tile img {
	width: 22px;
	height: 22px;
}

.mk-drawer__text {
	display: flex;
	flex-direction: column;
	gap: 1px;
	min-width: 0;
}

.mk-drawer__title {
	color: var(--wp--preset--color--heading);
	font-size: 15px;
	font-weight: 600;
}

.mk-drawer__desc {
	color: var(--wp--preset--color--muted);
	font-size: 13px;
	line-height: 1.4;
}

.mk-drawer__all,
.mk-drawer__all:hover {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 12px;
	color: var(--wp--preset--color--accent);
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
}

.mk-drawer__cta.ml-btn {
	display: flex;
	justify-content: center;
	margin-top: 10px;
	padding: 16px 20px;
	font-size: 16px;
}

@media (max-width: 900px) {

	.mk-header__nav,
	.mk-header__cta,
	.mk-mega {
		display: none;
	}

	.mk-header__toggle {
		display: inline-flex;
	}
}

@media (min-width: 901px) {

	.mk-drawer {
		display: none;
	}
}

@media (max-width: 620px) {

	.mk-drawer {
		align-items: stretch;
	}

	a.mk-drawer__item,
	.mk-drawer__cta.ml-btn {
		text-align: center;
	}

	.mk-drawer__cta.ml-btn {
		box-sizing: border-box;
	}
}

@media (prefers-reduced-motion: reduce) {

	.mk-mega {
		animation: none;
	}
}
