/**
 * Shared Visitor / Locals mobile header drawer.
 * Closed chrome and desktop stay on visitor-v2.css. Do not duplicate this in locals-v1.css.
 *
 * Isolated sibling of .main-navigation: navy page backdrop + partial-width white panel.
 * Plan is a split parent link + chevron button. Child visibility is .is-open.
 */
.mf-header-drawer {
	display: none;
}

.mf-drawer-plan > ul {
	display: none;
}

.mf-drawer-plan.is-open > ul {
	display: block;
}

@media (max-width: 1023px) {
	.mf-visitor-v2 {
		--mf-drawer-w: min(85vw, 22.75rem);
	}

	html:has(body.mf-header-drawer-open),
	body.mf-header-drawer-open {
		overflow: hidden;
	}

	.mf-header-drawer.is-open {
		display: block;
		position: fixed;
		inset: 0;
		width: 100%;
		height: 100%;
		margin: 0;
		padding: 0;
		overflow: hidden;
		border: 0;
		background: rgba(32, 36, 58, 0.42);
		z-index: 10000;
	}

	.mf-header-drawer__panel {
		position: absolute;
		top: 0;
		left: 0;
		bottom: 0;
		width: var(--mf-drawer-w);
		max-width: 100%;
		height: 100%;
		margin: 0;
		padding: 0;
		overflow-x: hidden;
		overflow-y: auto;
		overscroll-behavior: contain;
		display: grid;
		grid-template-columns: 56px minmax(0, 1fr) 56px;
		grid-template-rows: 56px auto minmax(0, 1fr);
		grid-template-areas:
			"close logo search"
			"pills pills pills"
			"nav nav nav";
		align-items: stretch;
		justify-content: stretch;
		gap: 0;
		box-sizing: border-box;
		background: #fff;
		border: 0;
		border-right: 1px solid var(--mf-border);
		border-radius: 0;
		box-shadow: 4px 0 24px rgba(32, 36, 58, 0.1);
	}

	.mf-header-drawer__panel::before {
		content: "";
		grid-area: logo;
		border-bottom: 1px solid #d8dee3;
		pointer-events: none;
	}

	.mf-header-drawer__close {
		grid-area: close;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 56px;
		height: 56px;
		min-height: 56px;
		margin: 0;
		padding: 0;
		color: var(--mf-navy);
		background: transparent;
		border: 0;
		border-bottom: 1px solid #d8dee3;
		border-radius: 0;
		box-shadow: none;
		cursor: pointer;
	}

	.mf-header-drawer__close-icon,
	.mf-header-drawer__close svg,
	.mf-header-drawer__search-icon,
	.mf-header-drawer__search svg {
		width: 1.15rem;
		height: 1.15rem;
		flex-shrink: 0;
		display: block;
	}

	.mf-header-drawer__logo {
		grid-area: logo;
		display: flex;
		align-items: center;
		justify-content: center;
		margin: 0;
		padding: 0;
		color: #20243a;
		-webkit-text-fill-color: #20243a;
		text-decoration: none;
		font-family: var(--mf-font-sans);
		font-size: 1rem;
		font-weight: 700;
		letter-spacing: -0.02em;
		line-height: 1;
		z-index: 1;
	}

	.mf-header-drawer__search {
		grid-area: search;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 56px;
		height: 56px;
		min-height: 56px;
		margin: 0;
		padding: 0;
		color: var(--mf-navy);
		background: transparent;
		border: 0;
		border-bottom: 1px solid #d8dee3;
		border-radius: 0;
		cursor: pointer;
	}

	.mf-header-drawer__pills {
		grid-area: pills;
		margin: 0;
		padding: 0;
		background: #fff;
		border-bottom: 1px solid #d8dee3;
	}

	.mf-header-drawer .mf-header-pills {
		display: grid;
		grid-template-columns: 1fr 1fr;
		align-items: stretch;
		gap: 0;
		width: 100%;
		margin: 0;
		padding: 0.75rem 1rem;
		box-sizing: border-box;
		background: #fff;
	}

	.mf-header-drawer .mf-header-pills a {
		width: 100%;
		min-width: 0;
		min-height: 44px;
		padding: 0 0.65rem;
		border-radius: 0;
		box-shadow: none;
	}

	.mf-header-drawer .mf-header-pills a:first-child {
		border-top-left-radius: 8px;
		border-bottom-left-radius: 8px;
	}

	.mf-header-drawer .mf-header-pills a:last-child {
		border-top-right-radius: 8px;
		border-bottom-right-radius: 8px;
		margin-left: -1px;
	}

	.mf-header-drawer__menu {
		grid-area: nav;
		display: flex;
		flex-direction: column;
		flex-wrap: nowrap;
		align-items: stretch;
		width: 100%;
		max-width: 100%;
		height: auto;
		margin: 0;
		padding: 0;
		list-style: none;
		background: #fff;
		box-sizing: border-box;
	}

	.mf-header-drawer__item {
		display: block;
		width: 100%;
		max-width: 100%;
		margin: 0;
		height: auto;
		min-height: 58px;
		max-height: none;
		overflow: visible;
		position: static;
	}

	.mf-header-drawer__link {
		display: flex;
		align-items: center;
		justify-content: flex-start;
		width: 100%;
		min-height: 58px;
		padding: 0.9rem 1.1rem;
		box-sizing: border-box;
		font-family: var(--mf-font-sans);
		font-size: var(--mf-fs-nav);
		font-weight: 500;
		line-height: 1.25;
		letter-spacing: normal;
		text-transform: none;
		text-decoration: none;
		color: var(--mf-navy);
		background: transparent;
		border: 0;
		border-bottom: 1px solid #d8dee3;
		border-radius: 0;
		white-space: normal;
		overflow-wrap: anywhere;
	}

	.mf-header-drawer__link:hover,
	.mf-header-drawer__link:visited:hover {
		color: var(--mf-coral-text);
		background: transparent;
	}

	.mf-drawer-plan,
	.mf-drawer-plan.is-open {
		display: block;
		width: 100%;
		height: auto;
		max-height: none;
		overflow: visible;
		margin: 0;
		padding: 0;
		border: 0;
		background: transparent;
	}

	.mf-drawer-plan__row {
		display: flex;
		flex-direction: row;
		flex-wrap: nowrap;
		align-items: stretch;
		width: 100%;
		min-height: 58px;
		margin: 0;
		padding: 0;
		border-bottom: 1px solid #d8dee3;
		box-sizing: border-box;
		background: transparent;
	}

	.mf-drawer-plan__link {
		display: flex;
		align-items: center;
		flex: 0 1 auto;
		width: auto;
		min-height: 58px;
		margin: 0;
		padding: 0 0 0 1.1rem;
		box-sizing: border-box;
		font-family: var(--mf-font-sans);
		font-size: var(--mf-fs-nav);
		font-weight: 500;
		line-height: 1.25;
		letter-spacing: normal;
		text-transform: none;
		text-decoration: none;
		color: var(--mf-navy);
		background: transparent;
		border: 0;
		border-radius: 0;
		white-space: nowrap;
		cursor: pointer;
		-webkit-appearance: none;
		appearance: none;
	}

	.mf-drawer-plan__link:hover,
	.mf-drawer-plan__link:visited:hover {
		color: var(--mf-coral-text);
		background: transparent;
	}

	.mf-drawer-plan__toggle {
		display: flex;
		align-items: center;
		justify-content: center;
		flex: 0 0 auto;
		width: auto;
		min-width: 44px;
		min-height: 58px;
		margin: 0;
		padding: 0 1.1rem 0 11px;
		box-sizing: border-box;
		border: 0;
		border-radius: 0;
		background: transparent;
		color: var(--mf-navy);
		cursor: pointer;
		-webkit-appearance: none;
		appearance: none;
	}

	.mf-drawer-plan__toggle:hover {
		color: var(--mf-coral-text);
		background: transparent;
	}

	.mf-drawer-plan__chevron {
		pointer-events: none;
		display: inline-block;
		width: 20px;
		height: 20px;
		margin: 0;
		vertical-align: middle;
		background-color: currentColor;
		-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='black' d='M5.2 7.2 10 12l4.8-4.8 1.4 1.4L10 14.8 3.8 8.6z'/%3E%3C/svg%3E");
		mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='black' d='M5.2 7.2 10 12l4.8-4.8 1.4 1.4L10 14.8 3.8 8.6z'/%3E%3C/svg%3E");
		-webkit-mask-size: 20px 20px;
		mask-size: 20px 20px;
		-webkit-mask-repeat: no-repeat;
		mask-repeat: no-repeat;
		-webkit-mask-position: center;
		mask-position: center;
		transform: rotate(0deg);
	}

	.mf-drawer-plan.is-open .mf-drawer-plan__chevron {
		transform: rotate(180deg);
	}

	.mf-drawer-plan > ul {
		display: none;
		width: 100%;
		margin: 0;
		padding: 0;
		list-style: none;
		background: #f6f7f8;
		border: 0;
		box-shadow: none;
	}

	.mf-drawer-plan.is-open > ul {
		display: block;
		visibility: visible;
		opacity: 1;
		height: auto;
		max-height: none;
		overflow: visible;
		position: static;
		transform: none;
		width: 100%;
		margin: 0;
		padding: 0;
		list-style: none;
		background: #f6f7f8;
		border: 0;
		box-shadow: none;
	}

	.mf-header-drawer__subitem {
		background: #f6f7f8;
	}

	.mf-header-drawer__sublink {
		display: flex;
		align-items: center;
		width: 100%;
		min-height: 45px;
		padding: 0.9rem 1.1rem 0.9rem 1.85rem;
		box-sizing: border-box;
		font-family: var(--mf-font-sans);
		font-size: var(--mf-fs-nav);
		font-weight: 400;
		line-height: 1.25;
		letter-spacing: normal;
		text-transform: none;
		text-decoration: none;
		color: var(--mf-navy);
		background: #f6f7f8;
		border: 0;
		border-bottom: 1px solid #e6eaed;
		white-space: normal;
		overflow-wrap: anywhere;
	}

	.mf-header-drawer__sublink:hover {
		color: var(--mf-coral-text);
		background: #f6f7f8;
	}
}

@media (min-width: 1024px) {
	.mf-header-drawer {
		display: none;
	}
}
