/*
 * Dragonfly Crowd mega menu: split panel (desktop) + drill-down (mobile).
 * Loaded only when a menu is assigned to the dfc-primary location.
 * Everything is scoped to body.dfc-mm-on / .dfc-mm so the rest of the theme is untouched.
 */

.dfc-mm {
	--dfc-navy-900: #0C1427;
	--dfc-navy-700: #1A2B55;
	--dfc-teal-500: #4FC0A2;
	--dfc-teal-600: #3FA189;
	--dfc-teal-text: #26806A;
	--dfc-teal-050: #EEF8F5;
	--dfc-grey-050: #F7F8FA;
	--dfc-grey-100: #EFF1F4;
	--dfc-grey-200: #DFE3EA;
	--dfc-grey-600: #636B7B;
	--dfc-grey-800: #3D4557;
	--dfc-font: "Kumbh Sans", sans-serif;
	--dfc-t: 200ms cubic-bezier(.2, .6, .2, 1);
	--dfc-container: min(100% - 6.26rem, 85.38rem);
}

/* ---------- header bar ---------- */

body.dfc-mm-on .site-header .main-header {
	position: relative;
	padding: 1.1rem 0;
}

body.dfc-mm-on .site-header .main-header .container,
body.dfc-mm-on .site-header .main-header .row {
	position: static;
}

body.dfc-mm-on .site-header .main-header .row {
	flex-wrap: nowrap;
	align-items: center;
}

body.dfc-mm-on .site-header .main-header .logo-main-wrap {
	flex: 0 0 auto;
	width: auto;
	max-width: none;
}

body.dfc-mm-on .site-header .main-header .logo-main-wrap .logo-container img {
	width: auto;
	height: 52px;
	margin-left: 0;
}

body.dfc-mm-on .site-header .main-header .dfc-mm-cell {
	position: static;
	flex: 1 1 auto;
	min-width: 0;
	padding-right: 0.94rem;
	padding-left: 0.94rem;
}

.dfc-mm {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 28px;
	font-family: var(--dfc-font);
}

.dfc-mm *,
.dfc-mm *::before,
.dfc-mm *::after {
	box-sizing: border-box;
}

/* Resets use :where() so the component classes below always win, while
   still out-ranking the theme's element rules (p, ul li, a:hover). */
.dfc-mm :where(p, ul, li) {
	margin: 0;
	padding: 0;
}

.dfc-mm :where(ul) {
	list-style: none;
}

.dfc-mm :where(a),
.dfc-mm :where(a):hover {
	text-decoration: none;
}

.dfc-mm .dfc-mm__svg {
	display: block;
	flex: 0 0 auto;
}

.dfc-mm :focus-visible {
	outline: 2px solid var(--dfc-teal-500);
	outline-offset: 3px;
}

.dfc-mm__list {
	display: flex;
	align-items: center;
	gap: 28px;
}

.dfc-mm__top {
	appearance: none;
	margin: 0;
	padding: 8px 0 6px;
	background: none;
	border: 0;
	border-bottom: 2px solid transparent;
	border-radius: 0;
	font-family: var(--dfc-font);
	font-weight: 600;
	font-size: 15.5px;
	line-height: 1.2;
	color: var(--dfc-navy-700);
	white-space: nowrap;
	cursor: pointer;
	transition: color var(--dfc-t), border-color var(--dfc-t);
}

.dfc-mm__top.is-current {
	border-bottom-color: var(--dfc-grey-200);
}

.dfc-mm__top:hover,
.dfc-mm__top[aria-expanded="true"] {
	color: var(--dfc-teal-text);
	border-bottom-color: var(--dfc-teal-500);
}

.dfc-mm__btn {
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 12px 24px;
	background: var(--dfc-teal-500);
	border: 1px solid transparent;
	border-radius: 999px;
	font-family: var(--dfc-font);
	font-weight: 700;
	font-size: 14.5px;
	line-height: 1.2;
	color: var(--dfc-navy-900);
	white-space: nowrap;
	cursor: pointer;
	transition: background-color var(--dfc-t), color var(--dfc-t);
}

.dfc-mm__btn:hover,
.dfc-mm__btn:focus-visible {
	background: var(--dfc-teal-600);
	color: var(--dfc-navy-900);
}

.dfc-mm__btn--sm {
	padding: 10px 18px;
	font-size: 13.5px;
}

.dfc-mm__burger {
	appearance: none;
	display: none;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 46px;
	height: 46px;
	margin: 0;
	padding: 0;
	background: #fff;
	border: 1px solid var(--dfc-grey-200);
	border-radius: 999px;
	color: var(--dfc-navy-700);
	cursor: pointer;
}

/* ---------- desktop split panel ---------- */

.dfc-mm__panel {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	z-index: 1000;
	background: #fff;
	border-top: 1px solid var(--dfc-grey-200);
	box-shadow: 0 24px 40px rgba(12, 20, 39, .10);
	cursor: default;
}

.dfc-mm__panel.is-open,
.dfc-mm--nojs .dfc-mm__item:hover > .dfc-mm__panel,
.dfc-mm--nojs .dfc-mm__item:focus-within > .dfc-mm__panel {
	display: block;
}

.dfc-mm__panel-in {
	display: grid;
	grid-template-columns: 2.05fr 1fr 288px;
	gap: 40px;
	width: var(--dfc-container);
	margin: 0 auto;
	padding: 30px 0 34px;
}

.dfc-mm__panel-in--solo {
	grid-template-columns: 1fr 288px;
}

.dfc-mm__main,
.dfc-mm__side {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 22px;
	min-width: 0;
}

.dfc-mm__side {
	padding-left: 36px;
	border-left: 1px solid var(--dfc-grey-200);
}

.dfc-mm__groups {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 28px 36px;
	width: 100%;
}

.dfc-mm__panel-in--solo .dfc-mm__groups {
	grid-template-columns: repeat(3, 1fr);
}

.dfc-mm__group {
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-width: 0;
}

.dfc-mm__side .dfc-mm__group {
	align-items: flex-start;
}

.dfc-mm__pill {
	display: inline-block;
	border-radius: 999px;
	padding: 7px 16px;
	font-family: var(--dfc-font);
	font-weight: 700;
	font-size: 11.5px;
	line-height: 1.2;
	letter-spacing: .16em;
	text-transform: uppercase;
}

.dfc-mm__pill--solid {
	background: var(--dfc-teal-500);
	color: var(--dfc-navy-900);
}

.dfc-mm__pill--line {
	border: 1px solid var(--dfc-grey-200);
	color: var(--dfc-navy-700);
}

.dfc-mm__grouplab {
	font-family: var(--dfc-font);
	font-weight: 700;
	font-size: 12px;
	line-height: 1.3;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--dfc-teal-text);
}

.dfc-mm__group > .dfc-mm__grouplab {
	padding-bottom: 10px;
	border-bottom: 1px solid var(--dfc-grey-100);
}

.dfc-mm__links {
	display: flex;
	flex-direction: column;
	gap: 16px;
	width: 100%;
}

.dfc-mm__link {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.dfc-mm .dfc-mm__name {
	font-family: var(--dfc-font);
	font-weight: 600;
	font-size: 15.5px;
	line-height: 1.3;
	color: var(--dfc-navy-700);
	transition: color var(--dfc-t);
}

.dfc-mm .dfc-mm__desc {
	font-size: 13px;
	line-height: 1.5;
	color: var(--dfc-grey-600);
	text-wrap: pretty;
}

.dfc-mm__link:hover .dfc-mm__name,
.dfc-mm__link:focus-visible .dfc-mm__name,
.dfc-mm__link.is-current .dfc-mm__name {
	color: var(--dfc-teal-text);
}

.dfc-mm__overview {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 600;
	font-size: 14px;
	color: var(--dfc-teal-text);
}

.dfc-mm__overview:hover {
	color: var(--dfc-navy-700);
}

/* side card */
.dfc-mm__promo {
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 24px 22px;
	background: var(--dfc-grey-050);
	border-radius: 14px;
}

.dfc-mm__promo > * {
	position: relative;
}

.dfc-mm .dfc-mm__promo-mark {
	position: absolute;
	right: -30px;
	bottom: -24px;
	width: auto;
	max-width: none;
	height: 150px;
	max-height: none;
	opacity: .16;
	pointer-events: none;
}

.dfc-mm__promo-title {
	font-weight: 700;
	font-size: 19px;
	line-height: 1.25;
	color: var(--dfc-navy-700);
}

.dfc-mm__promo-text {
	font-size: 13.5px;
	line-height: 1.6;
	color: var(--dfc-grey-800);
}

.dfc-mm__promo .dfc-mm__btn {
	padding: 10px 18px;
	font-size: 13.5px;
}

.dfc-mm__promo-call {
	margin-top: auto;
	font-size: 13px;
	color: var(--dfc-grey-600);
}

.dfc-mm__promo-call a {
	font-weight: 700;
	color: var(--dfc-navy-700);
}

/* ---------- mobile drill-down ---------- */

.dfc-mm__mobile {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	flex-direction: column;
	background: #fff;
	color: var(--dfc-grey-800);
}

.dfc-mm__mobile[hidden],
.dfc-mm__level[hidden],
.dfc-mm__aud[hidden] {
	display: none;
}

.dfc-mm__mtop {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 58px;
	padding: env(safe-area-inset-top, 0) 16px 0;
	background: var(--dfc-navy-900);
}

.dfc-mm__circ {
	appearance: none;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 999px;
	color: #fff;
	cursor: pointer;
}

.dfc-mm__back {
	margin-left: -8px;
}

.dfc-mm__back:disabled {
	color: rgba(255, 255, 255, .28);
	cursor: default;
}

.dfc-mm__close {
	margin-left: auto;
	background: rgba(255, 255, 255, .12);
}

.dfc-mm__mtitle {
	font-weight: 600;
	font-size: 17px;
	line-height: 1.2;
	color: #fff;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.dfc-mm__mbody {
	flex: 1 1 auto;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
}

.dfc-mm__level {
	animation: dfc-mm-in .22s cubic-bezier(.2, .6, .2, 1);
}

.dfc-mm__level.is-back {
	animation-name: dfc-mm-back;
}

@keyframes dfc-mm-in {
	from { opacity: 0; transform: translateX(24px); }
	to { opacity: 1; transform: none; }
}

@keyframes dfc-mm-back {
	from { opacity: 0; transform: translateX(-24px); }
	to { opacity: 1; transform: none; }
}

/* level one */
.dfc-mm__mrow {
	appearance: none;
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	min-height: 76px;
	margin: 0;
	padding: 16px;
	background: #fff;
	border: 0;
	border-bottom: 1px solid var(--dfc-grey-200);
	border-radius: 0;
	font-family: var(--dfc-font);
	text-align: left;
	cursor: pointer;
}

.dfc-mm__ic {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	background: var(--dfc-teal-050);
	border-radius: 999px;
	color: var(--dfc-teal-500);
}

.dfc-mm__mrow-txt {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.dfc-mm__mrow-lb {
	font-weight: 600;
	font-size: 17.5px;
	line-height: 1.25;
	color: var(--dfc-navy-700);
}

.dfc-mm__mrow.is-current .dfc-mm__mrow-lb {
	color: var(--dfc-teal-text);
}

.dfc-mm__mrow-meta {
	font-size: 13px;
	line-height: 1.4;
	color: var(--dfc-grey-600);
}

.dfc-mm__chev {
	display: flex;
	margin-left: auto;
	color: var(--dfc-teal-500);
}

.dfc-mm__mlinks {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 22px;
	padding: 22px 16px 26px;
}

.dfc-mm__mlinks a {
	display: inline-block;
	padding: 4px 0;
	font-size: 14.5px;
	color: var(--dfc-navy-700);
}

/* level two */
.dfc-mm__chips {
	display: flex;
	gap: 8px;
	padding: 14px 16px;
	background: var(--dfc-grey-050);
	border-bottom: 1px solid var(--dfc-grey-200);
}

.dfc-mm__chip {
	appearance: none;
	flex: 1 1 0;
	min-height: 44px;
	margin: 0;
	padding: 0 12px;
	background: #fff;
	border: 1px solid var(--dfc-grey-200);
	border-radius: 999px;
	font-family: var(--dfc-font);
	font-weight: 600;
	font-size: 14.5px;
	color: var(--dfc-navy-700);
	cursor: pointer;
	transition: background-color var(--dfc-t), color var(--dfc-t), border-color var(--dfc-t);
}

.dfc-mm__chip[aria-pressed="true"] {
	background: var(--dfc-navy-700);
	border-color: var(--dfc-navy-700);
	color: #fff;
}

.dfc-mm__mgroup {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 18px 16px 6px;
}

.dfc-mm__mtap {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-height: 44px;
	padding: 12px 0;
	border-bottom: 1px solid var(--dfc-grey-100);
}

.dfc-mm__mtap .dfc-mm__name {
	font-size: 16px;
}

.dfc-mm__mtap .dfc-mm__desc {
	font-size: 13.5px;
}

.dfc-mm__mtap.is-current .dfc-mm__name {
	color: var(--dfc-teal-text);
}

.dfc-mm__moverview-wrap {
	padding: 16px 16px 0;
}

.dfc-mm__moverview {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	font-weight: 600;
	font-size: 15px;
	color: var(--dfc-teal-text);
}

.dfc-mm__mpromo {
	padding: 18px;
}

.dfc-mm__promo--mobile {
	gap: 10px;
	padding: 18px;
}

.dfc-mm__promo--mobile .dfc-mm__promo-title {
	font-size: 16.5px;
}

.dfc-mm__promo--mobile .dfc-mm__promo-text {
	font-size: 14px;
	line-height: 1.55;
}

.dfc-mm__promo--mobile .dfc-mm__btn {
	width: 100%;
	padding: 12px 18px;
	font-size: 14.5px;
}

.dfc-mm__promo--mobile .dfc-mm__promo-call {
	display: none;
}

.dfc-mm__promo--mobile .dfc-mm__promo-mark {
	height: 120px;
}

/* sticky call bar */
.dfc-mm__mfoot {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 18px calc(14px + env(safe-area-inset-bottom, 0px));
	background: var(--dfc-navy-900);
}

.dfc-mm__mcall {
	display: flex;
	flex-direction: column;
}

.dfc-mm__mcall-lb {
	font-size: 11.5px;
	color: rgba(255, 255, 255, .7);
}

.dfc-mm__mcall-num {
	font-weight: 700;
	font-size: 17px;
	color: #fff;
}

.dfc-mm__mfoot .dfc-mm__btn {
	margin-left: auto;
}

html.dfc-mm-locked,
html.dfc-mm-locked body {
	overflow: hidden;
}

/* ---------- breakpoints ---------- */

@media (max-width: 1199.98px) {
	.dfc-mm,
	.dfc-mm__list {
		gap: 22px;
	}

	.dfc-mm__panel-in {
		grid-template-columns: 2fr 1fr 252px;
		gap: 32px;
	}

	.dfc-mm__panel-in--solo {
		grid-template-columns: 1fr 252px;
	}

	.dfc-mm__side {
		padding-left: 28px;
	}
}

@media (max-width: 1099.98px) {
	.dfc-mm {
		gap: 12px;
	}

	.dfc-mm__nav {
		display: none;
	}

	.dfc-mm__burger {
		display: inline-flex;
	}
}

@media (min-width: 1100px) {
	.dfc-mm__burger,
	.dfc-mm__mobile {
		display: none !important;
	}
}

@media (max-width: 767.98px) {
	body.dfc-mm-on .site-header .main-header {
		padding: .75rem 0;
	}

	body.dfc-mm-on .site-header .main-header .logo-main-wrap .logo-container img {
		height: 40px;
	}

	.dfc-mm__cta {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.dfc-mm__level {
		animation: none;
	}

	.dfc-mm * {
		transition: none !important;
	}
}
