/* Canonical public-header layout. This stylesheet is loaded on every shared-shell route. */
.mve-public-page .mve-header {
	position: sticky;
	z-index: 50;
	top: 0;
	left: 0;
	width: 100%;
	background: #fffefb;
	border-bottom: 1px solid rgba(11, 27, 41, .12);
	border-bottom-color: rgba(11, 27, 41, .12);
	transition: background .35s, border-color .35s, box-shadow .35s;
}

.mve-header.is-scrolled {
	position: sticky;
	background: #fffefb;
	border-bottom-color: rgba(11, 27, 41, .12);
	box-shadow: none;
	backdrop-filter: none;
}

.mve-public-page .mve-header__inner {
	position: relative;
	width: 100%;
	max-width: none;
	margin: 0 auto;
	padding-inline: clamp(36px, 2.8vw, 40px);
	height: var(--mve-header-height-desktop);
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	column-gap: clamp(24px, 2.4vw, 34px);
}

.mve-public-page .mve-brand { min-width: 0; display: flex; align-items: center; }
.mve-public-page .mve-menu { display: flex; align-items: center; justify-content: center; gap: clamp(20px, 1.7vw, 26px); margin: 0; padding: 0; list-style: none; }
.mve-public-page .mve-menu li { position: relative; display: block; margin: 0; padding: 0; white-space: nowrap; list-style: none; }
.mve-public-page .mve-menu li::marker { content: ''; }
.mve-public-page .mve-menu a { text-decoration: none; }
.mve-public-page .mve-actions { display: flex; align-items: center; }
.mve-public-page .mve-menu-toggle { display: none; }
.mve-public-page .mve-mobile-panel[hidden] { display: none !important; }

.mve-brand:after {
	display: none;
}

.mve-brand {
	grid-column: 1;
	justify-self: start;
	overflow: visible;
}

.mve-brand .custom-logo-link {
	max-width: 100%;
}

.mve-brand__logo {
	display: inline-flex;
	width: var(--mve-logo-width-desktop);
	max-width: none;
	margin-inline-start: var(--mve-logo-offset-desktop);
	flex: 0 0 auto;
}

.mve-brand__image {
	display: block;
	width: 100%;
	height: auto;
	max-height: min(var(--mve-logo-max-height-desktop), calc(var(--mve-header-height-desktop) - 14px));
	object-fit: contain;
}

.mve-brand .custom-logo {
	width: var(--mve-logo-width-desktop);
	max-width: none;
	height: auto;
	max-height: min(var(--mve-logo-max-height-desktop), calc(var(--mve-header-height-desktop) - 14px));
	object-fit: contain;
}

.mve-brand .custom-logo-link {
	margin-inline-start: var(--mve-logo-offset-desktop);
}

.mve-brand__fallback {
	color: #f2f5f4;
	font-size: 20px;
	font-weight: 540;
	letter-spacing: -.052em;
}

.mve-brand__fallback strong {
	color: #e8c445;
	font-weight: 720;
}

.mve-nav {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

.mve-menu a,
.mve-signin {
	color: #0b1b29;
	font-size: 14px;
	font-weight: 580;
	letter-spacing: .008em;
}

.mve-menu > li > a {
	display: inline-block;
	padding: 4px 0;
}

.mve-menu > li > a:before {
	/* Colour alone marks the current link; no moving underline on the light surface. */
	content: none;
}

.mve-menu > li > a:hover,
.mve-header .mve-menu a:focus-visible,
.mve-menu > li.current-menu-item > a,
.mve-menu > li.current-menu-ancestor > a,
.mve-menu a[aria-current="page"],
.mve-signin:hover,
.mve-signin:focus-visible {
	color: #806016;
}

.mve-menu .sub-menu {
	top: calc(100% + 19px);
	left: -14px;
	padding: 10px 12px;
	background: #fffefb;
	border-color: rgba(11, 27, 41, .12);
	box-shadow: 0 8px 20px rgba(11, 27, 41, .08);
}

.mve-header .sub-menu a:hover,
.mve-header .sub-menu .current-menu-item > a {
	color: #806016;
}

.mve-menu .sub-menu a {
	padding: 10px 8px;
	font-size: 13px;
}

.mve-actions {
	grid-column: 3;
	justify-self: end;
	gap: 18px;
}

.mve-actions:before {
	display: none;
}

.mve-signin {
	display: inline-flex;
	align-items: center;
	min-height: 42px;
	padding: 0 3px;
}

.mve-start {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 42px;
	padding: 0 13px 0 15px;
	border: 1px solid #d7ad26;
	border-radius: 5px;
	background: linear-gradient(180deg, #efd35c 0%, #e3bb31 100%);
	box-shadow: inset 0 1px rgba(255, 255, 255, .4), inset 0 -1px rgba(111, 76, 6, .15);
	color: #101b22;
	font-size: 13px;
	font-weight: 620;
	letter-spacing: .002em;
	text-decoration: none;
	text-transform: none;
	transition: background-color .2s, border-color .2s, box-shadow .2s, transform .2s;
}

.mve-start:hover {
	background: linear-gradient(180deg, #f3dc70 0%, #e8c33d 100%);
	box-shadow: inset 0 1px rgba(255, 255, 255, .48), inset 0 -1px rgba(111, 76, 6, .15);
	transform: translateY(-1px);
}

.mve-start > span {
	font-size: inherit;
}

.mve-header__arrow {
	width: 14px;
	height: 14px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.6;
	transition: transform .2s;
}

.mve-start:hover .mve-header__arrow,
.mve-mobile-actions a:last-child:hover .mve-header__arrow {
	transform: translateX(2px);
}

.mve-header a:focus-visible,
.mve-header button:focus-visible {
	outline: 2px solid #0b1b29;
	outline-offset: 3px;
}

@media (min-width: 1200px) and (max-width: 1240px) {
	.mve-nav {
		left: calc(50% + 24px);
	}
}

@media (max-width: 1199px) {
	.mve-public-page .mve-header__inner {
		width: calc(100% - 40px);
		padding-inline: 0;
		height: var(--mve-header-height-mobile);
		grid-template-columns: minmax(0, 1fr) auto;
		gap: 20px;
	}

	.mve-brand {
		grid-column: 1;
		width: 100%;
		min-width: 0;
	}

	.mve-public-page .mve-nav,
	.mve-public-page .mve-actions {
		display: none;
	}

	.mve-public-page .mve-menu-toggle {
		display: flex;
		justify-content: center;
		align-items: center;
		flex-direction: column;
	}

	.mve-brand .custom-logo {
		width: 100%;
		max-width: 100%;
		max-height: min(var(--mve-logo-max-height-mobile), calc(var(--mve-header-height-mobile) - 12px));
		object-position: left center;
	}

	.mve-brand__logo,
	.mve-brand .custom-logo-link {
		width: min(var(--mve-logo-width-mobile), 100%);
		max-width: 100%;
		flex: 0 0 auto;
		/* Stay inside the logo grid column, retaining its 20px gap to the hamburger.
		 * Default: 14px inside the existing gutter (30px from the phone viewport).
		 * Negative/positive offsets cannot push the complete image out of this area. */
		margin-inline-start: clamp(0px, calc(14px + var(--mve-logo-offset-mobile, 0px)), max(0px, calc(100% - var(--mve-logo-width-mobile))));
	}

	.mve-brand__image {
		max-height: min(var(--mve-logo-max-height-mobile), calc(var(--mve-header-height-mobile) - 12px));
		object-position: left center;
	}

	.mve-brand__fallback {
		font-size: 18px;
	}

	.mve-public-page .mve-menu-toggle {
		width: 40px;
		height: 40px;
		gap: 5px;
		border: 1px solid rgba(11, 27, 41, .28);
		border-radius: 4px;
		background: #fffefb;
		color: #0b1b29;
	}

	.mve-menu-toggle i {
		width: 17px;
	}

	.mve-mobile-panel {
		position: absolute;
		top: 100%;
		left: 0;
		width: 100%;
		padding: 17px 24px 24px;
		background: #fffefb;
		border-top-color: rgba(11, 27, 41, .12);
		box-shadow: 0 8px 20px rgba(11, 27, 41, .08);
	}

	.mve-mobile-panel .mve-menu {
		display: block;
	}

	.mve-mobile-panel .mve-menu > li {
		white-space: normal;
		border-bottom: 1px solid rgba(11, 27, 41, .12);
	}

	.mve-mobile-panel .mve-menu > li > a {
		padding: 15px 0;
		color: #0b1b29;
		font-size: 15px;
		font-weight: 560;
		letter-spacing: .004em;
	}

	.mve-mobile-panel .sub-menu a {
		padding: 9px 0;
		font-size: 14px;
		color: #0b1b29;
	}

	.mve-mobile-panel .sub-menu {
		position: static;
		display: block;
		visibility: visible;
		opacity: 1;
		min-width: 0;
		padding: 0 0 7px 12px;
		border: 0;
		background: transparent;
		box-shadow: none;
		transform: none;
	}

	.mve-mobile-panel .mve-menu a:hover,
	.mve-mobile-panel .mve-menu a:focus-visible,
	.mve-mobile-panel .mve-menu li.current-menu-item > a,
	.mve-mobile-panel .mve-menu li.current-menu-ancestor > a,
	.mve-mobile-panel .mve-menu a[aria-current="page"] {
		color: #806016;
	}

	.mve-mobile-actions {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 10px;
		margin-top: 20px;
		padding-top: 19px;
		border-top-color: rgba(11, 27, 41, .12);
	}

	.mve-mobile-actions a {
		display: flex;
		align-items: center;
		justify-content: center;
		min-height: 44px;
		border-radius: 4px;
		color: #0b1b29;
		border-color: rgba(11, 27, 41, .28);
		font-size: 13px;
		font-weight: 600;
		letter-spacing: .002em;
	}

	.mve-mobile-actions a:last-child {
		gap: 7px;
		border-color: #d7ad26;
		background: linear-gradient(180deg, #efd35c 0%, #e3bb31 100%);
		box-shadow: inset 0 1px rgba(255, 255, 255, .4), inset 0 -1px rgba(111, 76, 6, .15);
		color: #101b22;
	}

	.mve-mobile-actions a:first-child:hover,
	.mve-mobile-actions a:first-child:focus-visible {
		color: #806016;
	}
}

@media (max-width: 640px) {
	.mve-public-page .mve-header__inner {
		width: calc(100% - 32px);
		height: var(--mve-header-height-mobile);
	}

	.mve-mobile-panel {
		padding: 16px 16px 22px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mve-start,
	.mve-header__arrow {
		transition: none;
	}
}
