/**
 * Easy Mega Menu — Frontend styles
 * Desktop: sidebar categories + feature grid
 * Mobile: hamburger drawer + accordion mega
 */

.emm-header {
	--emm-sidebar-bg: #f0f0f5;
	--emm-active-bg: #ffffff;
	--emm-panel-bg: #ffffff;
	--emm-header-bg: #ffffff;
	--emm-accent: #1a73e8;
	--emm-grid-cols: 3;
	--emm-text: #2c2c2c;
	--emm-nav-link: #2c2c2c;
	--emm-nav-hover: #1a73e8;
	--emm-muted: #6b6b6b;
	--emm-border: #e5e5ea;
	--emm-cta-text: #ffffff;
	--emm-panel-width: 1000px;
	--emm-sidebar-width: 280px;
	--emm-radius: 8px;
	--emm-admin-offset: 0px;
	--emm-mobile-offset: 52px;
	position: relative;
	z-index: 1000;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 14px;
	line-height: 1.45;
	background: var(--emm-header-bg);
	border-bottom: 0;
	color: var(--emm-text);
	overflow: visible;
}

.emm-header *,
.emm-header *::before,
.emm-header *::after {
	box-sizing: border-box;
}

.emm-nav {
	position: relative;
	overflow: visible;
}

/* Desktop: bar is unused visually; drawer is always visible as the nav row */
.emm-nav__bar {
	display: none;
}

.emm-nav__drawer {
	display: block;
}

.emm-nav__backdrop {
	display: none;
}

.emm-nav__inner {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 1.5rem;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 1.5rem;
	min-height: 64px;
}

.emm-nav__brand {
	display: inline-flex;
	align-items: center;
	gap: 0.65rem;
	flex: 0 1 auto;
	min-width: 0;
	color: var(--emm-nav-link);
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
}

.emm-nav__brand:hover,
.emm-nav__brand:focus {
	color: var(--emm-nav-hover);
}

.emm-nav__brand-logo {
	display: block;
	width: auto;
	max-width: 180px;
	height: var(--emm-brand-logo-height, 40px);
	object-fit: contain;
}

.emm-nav__brand-title {
	overflow: hidden;
	max-width: 18rem;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.emm-nav__brand--bar {
	display: none;
}

.emm-nav__list {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.25rem;
	list-style: none;
	margin: 0;
	padding: 0;
	flex: 1;
	min-width: 0;
	flex-wrap: wrap;
}

.emm-nav-align--left .emm-nav__list {
	justify-content: flex-start;
}

.emm-nav-align--right .emm-nav__list {
	justify-content: flex-end;
}

.emm-nav__item {
	position: static;
}

.emm-nav__item--mega {
	/* Keep open path from trigger → panel for hover */
	position: static;
}

.emm-nav__link,
.emm-nav__link:link,
.emm-nav__link:visited {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.9rem 0.3rem;
	font-size: 14px;
	font-weight: 500;
	color: var(--emm-nav-link) !important;
	text-decoration: none !important;
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	outline-offset: 2px;
	cursor: pointer;
	font-family: inherit;
	line-height: 1.3;
	border-radius: 4px;
	width: auto;
	text-align: left;
	appearance: none;
	-webkit-appearance: none;
}

@media (min-width: 901px) {
	.emm-header .emm-nav__link,
	.emm-header .emm-nav__link:link,
	.emm-header .emm-nav__link:visited {
		gap: 6px;
		padding: 8px 16px;
		font-size: 17px;
	}
}

.emm-nav__link:hover,
.emm-nav__link:focus,
.emm-nav__item.is-open > .emm-nav__link {
	color: var(--emm-nav-hover) !important;
	text-decoration: none !important;
	background: transparent !important;
}

.emm-nav__link:focus-visible,
.emm-nav__cta:focus-visible,
.emm-mega__cat:focus-visible,
.emm-mega__col-link:focus-visible,
.emm-mega__grid-link:focus-visible {
	outline: 3px solid var(--emm-accent);
	outline-offset: 3px;
}

.emm-nav__item.is-current > .emm-nav__link,
.emm-nav__item.is-current-ancestor > .emm-nav__link {
	color: var(--emm-nav-hover) !important;
	text-decoration: underline !important;
	text-decoration-thickness: 0.14em !important;
	text-underline-offset: 0.3em;
}

.emm-nav__link--toggle {
	/* Same visual as other nav anchors */
	cursor: pointer;
}

.emm-chevron {
	opacity: 0.7;
	transition: transform 0.2s ease;
	flex-shrink: 0;
	margin-left: 0.15rem;
}

.emm-nav__item.is-open .emm-chevron {
	transform: rotate(180deg);
}

.emm-nav__cta {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.55rem 1.25rem;
	background: var(--emm-accent);
	color: var(--emm-cta-text) !important;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	border-radius: var(--emm-radius);
	transition: filter 0.15s ease;
	white-space: nowrap;
}

.emm-cta--square .emm-nav__cta {
	border-radius: 0;
}

.emm-cta--rounded .emm-nav__cta {
	border-radius: calc(var(--emm-radius) * 0.75);
}

.emm-cta--pill .emm-nav__cta {
	border-radius: 999px;
}

.emm-nav__cta:hover {
	filter: brightness(1.08);
	color: var(--emm-cta-text) !important;
}

.emm-nav__cta--drawer {
	display: inline-flex;
}

.emm-nav__toggle {
	display: none;
}

.emm-nav__drawer-head {
	display: none;
}

/* ---- Mega panel (desktop) ---- */
.emm-mega {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	/* Overlap nav slightly so there is no dead hover gap */
	top: calc(100% - 4px);
	width: min(var(--emm-panel-width), calc(100vw - 2rem));
	padding-top: 4px;
	z-index: 1001;
}

/* Full-bleed mega panel (edge to edge of the header / nav) */
.emm-full-width .emm-nav {
	width: 100%;
}

.emm-full-width .emm-mega {
	left: 0;
	right: 0;
	transform: none;
	width: 100%;
	max-width: none;
}

.emm-full-width .emm-mega__inner,
.emm-full-width .emm-mega__inner--features {
	border-radius: 0;
	border-left: none;
	border-right: none;
}

/* Invisible hover bridge: covers space above panel back into the nav bar */
.emm-mega::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: -28px;
	height: 32px;
	background: transparent;
}

.emm-mega[hidden] {
	display: none !important;
}

.emm-mega__inner {
	display: flex;
	background: var(--emm-panel-bg);
	border: 1px solid var(--emm-border);
	border-bottom: 0;
	border-radius: var(--emm-radius);
	overflow: hidden;
	min-height: 0;
}

.emm-shadow--none .emm-mega__inner {
	box-shadow: none;
}

.emm-shadow--soft .emm-mega__inner {
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.emm-shadow--medium .emm-mega__inner {
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.emm-shadow--strong .emm-mega__inner {
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.2);
}

.emm-layout--sidebar-right .emm-mega__inner {
	flex-direction: row-reverse;
}

.emm-layout--stacked .emm-mega__inner {
	flex-direction: column;
}

/* Platforms accordion structure (desktop = sidebar + panel) */
.emm-mega__accordion {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	position: relative;
	width: 100%;
	min-height: var(--emm-active-panel-height, 0px);
	background: var(--emm-sidebar-bg);
	padding: 0.5rem 0.4rem;
	gap: 0;
	align-content: start;
	box-sizing: border-box;
}

.emm-layout--sidebar-right .emm-mega__accordion {
	align-items: flex-end;
}

.emm-layout--stacked .emm-mega__accordion {
	display: flex;
	flex-direction: column;
	min-height: 0;
}

.emm-mega__section {
	display: contents;
}

.emm-layout--stacked .emm-mega__section {
	display: contents;
}

.emm-header .emm-mega__cat {
	display: flex;
	align-items: flex-start;
	gap: 0.7rem;
	width: calc(var(--emm-sidebar-width) - 0.3rem);
	margin: 0.1rem 0.15rem;
	padding: 0.55rem 0.65rem;
	text-align: left;
	background: rgba(255, 255, 255, 0.55);
	border: 1px solid transparent;
	border-radius: 10px;
	cursor: pointer;
	font-family: inherit;
	color: var(--emm-text) !important;
	transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
	-webkit-tap-highlight-color: transparent;
	grid-column: 1;
	align-self: start;
	box-sizing: border-box;
	height: auto;
	min-height: 48px;
	white-space: normal;
	overflow-wrap: anywhere;
	appearance: none;
	-webkit-appearance: none;
	font-size: inherit;
	line-height: inherit;
}

.emm-layout--sidebar-right .emm-mega__cat {
	grid-column: 2;
}

.emm-layout--stacked .emm-mega__cat {
	grid-column: auto;
	flex: 0 0 auto;
	width: auto;
	min-width: 140px;
	margin: 0;
}

.emm-layout--stacked .emm-mega__accordion {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	grid-auto-rows: auto;
	background: var(--emm-sidebar-bg);
	padding: 0.65rem;
	gap: 0.4rem;
}

.emm-layout--stacked .emm-mega__section {
	display: contents;
}

.emm-layout--stacked .emm-mega__panel {
	position: static;
	top: auto;
	left: auto;
	right: auto;
	grid-column: 1 / -1;
	grid-row: 2;
}

.emm-mega__cat:hover {
	background: var(--emm-active-bg);
	border-color: var(--emm-border);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
	color: var(--emm-text) !important;
}

.emm-mega__cat.is-active {
	background: var(--emm-active-bg);
	border-color: transparent;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	color: var(--emm-text) !important;
	z-index: 1;
}

.emm-mega__cat:focus {
	color: var(--emm-text) !important;
}

.emm-header .emm-mega__cat:hover,
.emm-header .emm-mega__cat:focus,
.emm-header .emm-mega__cat.is-active {
	color: var(--emm-text) !important;
}

.emm-layout--sidebar-right .emm-mega__cat.is-active,
.emm-layout--stacked .emm-mega__cat.is-active {
	border-color: transparent;
}

.emm-mega__cat-chevron {
	display: none;
	margin-left: auto;
	flex-shrink: 0;
	color: var(--emm-muted);
	transition: transform 0.2s ease;
	align-self: center;
}

.emm-mega__section.is-open .emm-mega__cat-chevron {
	transform: rotate(180deg);
	color: var(--emm-accent);
}

.emm-mega__section.is-current-ancestor > .emm-mega__cat {
	border-color: var(--emm-accent);
	box-shadow: inset 4px 0 0 var(--emm-accent);
}

.emm-mega__cat-icon {
	flex-shrink: 0;
	color: var(--emm-accent);
	margin-top: 0.05rem;
	line-height: 0;
}

.emm-mega__cat-icon .emm-icon--lg {
	font-size: 22px;
}

.emm-mega__cat-text {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	min-width: 0;
	flex: 1;
}

.emm-mega__cat-title {
	display: block;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	line-height: 1.3;
	white-space: normal;
	overflow-wrap: anywhere;
	color: inherit;
}

.emm-cats-upper .emm-mega__cat-title {
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.emm-hide-cat-desc .emm-mega__cat-desc {
	display: none !important;
}

.emm-mega__cat-desc {
	display: block;
	font-size: 13px;
	font-weight: 400;
	color: var(--emm-muted);
	line-height: 1.35;
}

.emm-mega__cat.is-active .emm-mega__cat-desc {
	opacity: 0.92;
}

.emm-mega__panel {
	position: absolute;
	top: 0;
	left: calc(var(--emm-sidebar-width) + 0.25rem);
	right: 0;
	padding: 1.25rem 1.25rem 1.5rem;
	background: var(--emm-panel-bg);
	min-width: 0;
	min-height: 0;
	max-height: min(70vh, 560px);
	overflow-y: auto;
	overscroll-behavior: contain;
	scrollbar-gutter: stable;
	margin: 0;
	border-radius: 0;
	box-sizing: border-box;
}

.emm-layout--sidebar-right .emm-mega__panel {
	left: 0;
	right: calc(var(--emm-sidebar-width) + 0.25rem);
}

.emm-mega__panel[hidden] {
	display: none !important;
}

.emm-mega__panel-title {
	margin: 0 0 1rem;
	font-size: 18px;
	font-weight: 600;
	color: var(--emm-text);
	text-align: center;
}

.emm-mega__panel-title a {
	color: inherit;
	text-decoration: none;
}

.emm-mega__panel-title a:hover {
	color: var(--emm-accent, #4264ff);
}

.emm-title--left .emm-mega__panel-title {
	text-align: left;
}

.emm-title--center .emm-mega__panel-title {
	text-align: center;
}

/* Category column groups (e.g. Finance / Spend Management / Operations) */
.emm-mega__columns {
	display: grid;
	grid-template-columns: repeat(var(--emm-col-count, 3), minmax(0, 1fr));
	gap: 1rem 1.5rem;
	align-items: start;
}

.emm-mega__col {
	min-width: 0;
}

.emm-mega__col-title {
	margin: 0 0 0.65rem;
	padding: 0;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--emm-muted);
	line-height: 1.3;
}

.emm-mega__col-title a {
	color: inherit;
	text-decoration: none;
}

.emm-mega__col-title a:hover {
	color: var(--emm-accent, #4264ff);
}

.emm-mega__col-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
}

.emm-mega__col-link {
	display: flex;
	align-items: flex-start;
	gap: 0.55rem;
	padding: 0.3rem 0;
	color: var(--emm-text) !important;
	text-decoration: none !important;
	font-size: 14px;
	line-height: 1.4;
	border-radius: 4px;
	transition: color 0.15s ease;
}

.emm-mega__col-link:not(.has-icon)::before {
	content: "";
	flex-shrink: 0;
	width: 5px;
	height: 5px;
	margin-top: 0.45em;
	border-radius: 50%;
	background: var(--emm-muted);
}

.emm-mega__col-link:hover,
.emm-mega__col-link:focus {
	color: var(--emm-accent) !important;
	text-decoration: none !important;
}

.emm-mega__col-link:hover:not(.has-icon)::before,
.emm-mega__col-link:focus:not(.has-icon)::before {
	background: var(--emm-accent);
}

.emm-mega__col-icon {
	flex-shrink: 0;
	color: var(--emm-muted);
	margin-top: 0.1em;
}

.emm-mega__col-link:hover .emm-mega__col-icon {
	color: var(--emm-accent);
}

.emm-mega__col-link.is-disabled {
	cursor: default;
	opacity: 0.72;
}

.emm-mega__col-link.is-disabled:hover .emm-mega__col-icon {
	color: var(--emm-muted);
}

.emm-mega__col-label {
	min-width: 0;
	font-family: inherit;
	font-size: inherit;
	font-weight: inherit;
	line-height: inherit;
}

.emm-mega__grid {
	display: grid;
	grid-template-columns: repeat(var(--emm-grid-cols, 3), 1fr);
	gap: 0.3rem 1rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.emm-mega__grid-link {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.55rem 0.4rem;
	font-size: 14px;
	color: var(--emm-text) !important;
	text-decoration: none !important;
	border-radius: 6px;
	transition: background 0.15s ease, color 0.15s ease;
	min-height: 40px;
}

.emm-mega__grid-label {
	min-width: 0;
	font-family: inherit;
	font-size: inherit;
	font-weight: inherit;
	line-height: inherit;
}

.emm-mega__grid-link:hover,
.emm-mega__grid-link:focus {
	background: var(--emm-active-bg);
	color: var(--emm-accent) !important;
	text-decoration: none !important;
}

.emm-mega__grid-icon {
	flex-shrink: 0;
	color: var(--emm-muted);
}

.emm-mega__grid-link:hover .emm-mega__grid-icon {
	color: var(--emm-accent);
}

.emm-mega__grid-link.is-disabled {
	cursor: default;
	opacity: 0.72;
}

.emm-mega__grid-link.is-disabled:hover {
	background: transparent;
	color: var(--emm-text) !important;
}

.emm-mega__grid-link.is-disabled:hover .emm-mega__grid-icon {
	color: var(--emm-muted);
}

.emm-mega__col-link[aria-current="page"],
.emm-mega__grid-link[aria-current="page"],
.emm-mega__panel-title a[aria-current="page"],
.emm-mega__col-title a[aria-current="page"] {
	color: var(--emm-accent) !important;
	font-weight: 700;
	text-decoration: underline !important;
	text-decoration-thickness: 0.14em !important;
	text-underline-offset: 0.2em;
}

.emm-header.emm-has-overflow-risk .emm-nav__inner {
	gap: 0.5rem 0.75rem;
}

.emm-header.emm-has-overflow-risk .emm-nav__link {
	padding-inline: 0.55rem;
	white-space: normal;
}

.emm-mega--features {
	width: min(560px, calc(100vw - 2rem));
}

.emm-mega__inner--features {
	display: block;
	min-height: 0;
	padding: 1.25rem 1.5rem;
	background: var(--emm-panel-bg);
}

.emm-mega__grid--features {
	gap: 0.25rem 2rem;
}

.emm-mega__grid--features .emm-mega__grid-link {
	padding: 0.7rem 0.65rem;
}

/* Icons */
.emm-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
	width: 1em;
	height: 1em;
	font-size: var(--emm-icon-size, var(--emm-icon-default-size, 22px));
	color: var(--emm-icon-color, var(--emm-icon-default, currentColor));
	background: var(--emm-icon-background, var(--emm-icon-default-background, transparent));
	border-radius: var(--emm-icon-radius, var(--emm-icon-default-radius, 0));
	box-shadow: inset 0 0 0 1px var(--emm-icon-border, var(--emm-icon-default-border, transparent));
	transition: color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.emm-header .emm-icon {
	padding: 0 !important;
}

.emm-header .emm-icon > svg {
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: 100% !important;
	max-height: 100% !important;
	flex: 0 0 100%;
}

/*
 * Some legacy Elementor templates add `svg path { fill: currentColor !important; }`.
 * Preserve the no-fill contract of line icons without changing product artwork
 * whose paths explicitly opt into a fill colour.
 */
.emm-header .emm-icon--svg > svg[fill="none"] path:not([fill]),
.emm-header .emm-icon--svg > svg[fill="none"] path[fill="none"] {
	fill: none !important;
}

.emm-icon--colored {
	color: var(--emm-icon-color);
}

.emm-icon--colored svg [fill]:not([fill="none"]) {
	fill: currentColor !important;
}

.emm-icon--colored svg [stroke]:not([stroke="none"]) {
	stroke: currentColor !important;
}

.emm-icon--lg {
	font-size: var(--emm-icon-size, var(--emm-icon-default-size, 22px));
}

.emm-icon--sm {
	font-size: var(--emm-icon-size, var(--emm-icon-default-size, 22px));
}

.emm-icon--media {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
}

.emm-icon__image {
	display: block;
	width: 1em;
	height: 1em;
	object-fit: contain;
}

/* Raster assets preserve their original artwork and are intentionally non-tintable. */
.emm-icon--raster {
	color: inherit;
}

.emm-mega__cat:hover .emm-icon,
.emm-mega__cat:focus .emm-icon,
.emm-mega__col-link:hover .emm-icon,
.emm-mega__col-link:focus .emm-icon,
.emm-mega__grid-link:hover .emm-icon,
.emm-mega__grid-link:focus .emm-icon {
	color: var(--emm-icon-hover, var(--emm-icon-default-hover, var(--emm-accent)));
}

.emm-mega__cat.is-active .emm-icon,
.emm-mega__section.is-open > .emm-mega__cat .emm-icon,
.emm-mega__col-link[aria-current] .emm-icon,
.emm-mega__grid-link[aria-current] .emm-icon,
.current-menu-item .emm-icon,
.is-current .emm-icon {
	color: var(--emm-icon-active, var(--emm-icon-default-active, var(--emm-accent)));
}

.emm-mega__col-link.is-disabled .emm-icon,
.emm-mega__grid-link.is-disabled .emm-icon,
[aria-disabled="true"] .emm-icon {
	opacity: 0.5;
	filter: grayscale(0.25);
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

html.emm-drawer-open {
	overflow: hidden;
}

/* =========================================================
   Mobile / tablet
   ========================================================= */
@media (max-width: 900px) {
	.emm-mega::before {
		display: none;
	}

	.emm-mega {
		top: auto;
		padding-top: 0;
		transform: none;
		left: auto;
	}

	.emm-header {
		position: sticky;
		top: var(--emm-admin-offset);
	}

	.emm-nav__bar {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 0.75rem;
		padding:
			max(0.55rem, env(safe-area-inset-top))
			max(1rem, env(safe-area-inset-right))
			0.55rem
			max(1rem, env(safe-area-inset-left));
		min-height: 52px;
	}

	.emm-nav__brand--bar {
		display: inline-flex;
		margin-right: auto;
	}

	.emm-nav__brand--drawer {
		display: none;
	}

	.emm-nav__brand-logo {
		max-width: min(150px, 42vw);
		height: min(var(--emm-brand-logo-height, 40px), 34px);
	}

	.emm-nav__brand-title {
		max-width: 42vw;
	}

	.emm-nav__toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 44px;
		height: 44px;
		padding: 0;
		margin: 0;
		background: transparent;
		border: none;
		border-radius: 8px;
		cursor: pointer;
		color: var(--emm-text);
		font-family: inherit;
		-webkit-tap-highlight-color: transparent;
	}

	.emm-nav__toggle:hover,
	.emm-nav__toggle:focus-visible {
		background: rgba(0, 0, 0, 0.05);
	}

	.emm-nav__toggle-box {
		position: relative;
		width: 22px;
		height: 16px;
		display: block;
	}

	.emm-nav__toggle-bar,
	.emm-nav__toggle-bar::before,
	.emm-nav__toggle-bar::after {
		display: block;
		width: 22px;
		height: 2px;
		background: currentColor;
		border-radius: 2px;
		position: absolute;
		left: 0;
		top: 7px;
		transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease;
	}

	.emm-nav__toggle-bar::before,
	.emm-nav__toggle-bar::after {
		content: "";
	}

	.emm-nav__toggle-bar::before {
		top: -7px;
	}

	.emm-nav__toggle-bar::after {
		top: 7px;
	}

	.emm-header.is-mobile-open .emm-nav__toggle-bar {
		background: transparent;
	}

	.emm-header.is-mobile-open .emm-nav__toggle-bar::before {
		top: 0;
		transform: rotate(45deg);
	}

	.emm-header.is-mobile-open .emm-nav__toggle-bar::after {
		top: 0;
		transform: rotate(-45deg);
	}

	/* The drawer already provides a close control. Hiding the bar toggle while
	 * open avoids duplicate close buttons in stacked Elementor headers. */
	.emm-header.is-mobile-open .emm-nav__toggle {
		display: none !important;
		visibility: hidden !important;
		pointer-events: none !important;
	}

	.emm-nav__cta--bar {
		display: inline-flex;
		padding: 0.5rem 1rem;
		font-size: 14px;
		min-height: 40px;
	}

	.emm-nav__cta--drawer {
		display: flex;
		width: calc(100% - 2rem);
		margin: 1rem;
		padding: 0.85rem 1rem;
		font-size: 16px;
	}

	.emm-nav__backdrop {
		display: block;
		position: fixed;
		inset: 0;
		top: var(--emm-mobile-offset);
		background: rgba(15, 15, 20, 0.4);
		z-index: 998;
		border: none;
		padding: 0;
		margin: 0;
		cursor: pointer;
	}

	.emm-nav__backdrop[hidden] {
		display: none !important;
	}

	.emm-nav__drawer {
		display: none;
		position: fixed;
		left: 0;
		right: 0;
		top: var(--emm-mobile-offset);
		bottom: env(safe-area-inset-bottom);
		z-index: 999;
		background: var(--emm-header-bg);
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		overscroll-behavior: contain;
		padding: 0 0 1.5rem;
		box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
	}

	.emm-header.is-mobile-open .emm-nav__drawer {
		display: block;
	}

	.emm-nav__drawer-head {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 0.75rem;
		padding: 0.65rem 1rem;
		border-bottom: 1px solid var(--emm-border);
		position: sticky;
		top: 0;
		background: var(--emm-header-bg);
		z-index: 3;
	}

	.emm-header.emm-is-drilling .emm-nav__drawer-head {
		display: none;
	}

	.emm-nav__drawer-title {
		font-size: 16px;
		font-weight: 700;
		color: var(--emm-text);
	}

	.emm-nav__drawer-close {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 40px;
		height: 40px;
		padding: 0;
		margin: 0;
		border: none;
		border-radius: 8px;
		background: transparent;
		color: var(--emm-text);
		font-size: 28px;
		line-height: 1;
		cursor: pointer;
		-webkit-tap-highlight-color: transparent;
	}

	.emm-nav__drawer-close:hover,
	.emm-nav__drawer-close:focus-visible {
		background: rgba(0, 0, 0, 0.05);
	}

	.emm-nav__inner {
		display: block;
		max-width: none;
		margin: 0;
		padding: 0;
		min-height: 0;
	}

	.emm-nav__list {
		flex-direction: column;
		align-items: stretch;
		justify-content: flex-start;
		gap: 0;
		margin: 0;
		padding: 0;
	}

	.emm-nav__item {
		border-bottom: 1px solid var(--emm-border);
		width: 100%;
	}

	/* Level 1: full-width rows, chevron on the right */
	.emm-header .emm-nav__link {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		padding: 16px 18px;
		font-size: 17px;
		min-height: 54px;
		border-radius: 0;
		width: 100%;
		box-sizing: border-box;
	}

	.emm-nav__link .emm-chevron {
		margin-left: auto;
		flex-shrink: 0;
		opacity: 0.55;
		transform: rotate(-90deg);
	}

	.emm-nav__item.is-open .emm-chevron {
		transform: rotate(-90deg);
	}

	.emm-nav__item.is-open > .emm-nav__link {
		color: var(--emm-nav-hover);
		background: transparent;
	}

	/* ---- Mobile drill-down ---- */
	.emm-mobile-bar {
		display: none;
		align-items: flex-start;
		gap: 0.65rem;
		padding: 0.65rem 1rem;
		margin: 0;
		border-bottom: 1px solid var(--emm-border);
		position: sticky;
		top: 0;
		background: var(--emm-header-bg);
		z-index: 2;
	}

	.emm-mobile-bar[hidden] {
		display: none !important;
	}

	.emm-mobile-back {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		gap: 0.2rem;
		width: 40px;
		height: 40px;
		padding: 0;
		margin: 0;
		border: none;
		border-radius: 8px;
		background: transparent;
		color: var(--emm-text);
		font-family: inherit;
		font-size: 14px;
		font-weight: 600;
		cursor: pointer;
		-webkit-tap-highlight-color: transparent;
	}

	.emm-mobile-back span {
		display: none;
	}

	.emm-mobile-back:hover,
	.emm-mobile-back:focus-visible {
		background: rgba(0, 0, 0, 0.05);
	}

	.emm-mobile-back svg {
		display: block;
	}

	.emm-mobile-title {
		flex: 1;
		font-size: 17px;
		font-weight: 700;
		color: var(--emm-text);
		min-width: 0;
		overflow-wrap: anywhere;
		white-space: normal;
		line-height: 1.35;
		padding-block: 0.55rem;
	}

	.emm-mobile-close {
		flex-shrink: 0;
	}

	.emm-header.emm-is-drilling .emm-nav__cta--drawer {
		display: none;
	}

	.emm-header.emm-is-drilling .emm-nav__item:not(.is-open) {
		display: none;
	}

	.emm-header.emm-is-drilling .emm-nav__item.is-open {
		border-bottom: none;
	}

	.emm-header.emm-is-drilling .emm-nav__item.is-open > .emm-nav__link {
		display: none;
	}

	.emm-nav__item--mega.is-open .emm-mobile-bar {
		display: flex;
	}

	.emm-mega {
		position: static;
		transform: none;
		width: 100%;
		padding: 0;
		left: auto;
		animation: emm-slide-in 0.22s ease;
	}

	@keyframes emm-slide-in {
		from {
			opacity: 0.4;
			transform: translateX(12px);
		}
		to {
			opacity: 1;
			transform: translateX(0);
		}
	}

	.emm-mega--features,
	.emm-mega--platforms {
		width: 100%;
	}

	.emm-mega__inner,
	.emm-mega__inner--features {
		flex-direction: column;
		border: none;
		border-radius: 0;
		box-shadow: none;
		min-height: 0;
		background: transparent;
		overflow: visible;
		padding: 0;
		margin: 0;
	}

	.emm-mega__accordion {
		display: flex;
		flex-direction: column;
		position: static;
		align-items: stretch;
		gap: 0;
		min-height: 0;
		background: transparent;
		padding: 0;
	}

	.emm-layout--sidebar-right .emm-mega__accordion,
	.emm-layout--stacked .emm-mega__accordion {
		display: flex;
		flex-direction: column;
		grid-template-columns: none;
		padding: 0;
		gap: 0;
	}

	.emm-mega__section {
		display: block;
		background: transparent;
		border: none;
		overflow: visible;
	}

	/* Level 1: category list only */
	.emm-nav__item--mega[data-drill="cats"] .emm-mega__panel {
		display: none !important;
	}

	.emm-nav__item--mega[data-drill="cats"] .emm-mega__cat-chevron {
		display: inline-flex;
		transform: rotate(-90deg);
		color: var(--emm-muted);
	}

	.emm-nav__item--mega[data-drill="cats"] .emm-mega__section.is-open .emm-mega__cat-chevron,
	.emm-nav__item--mega[data-drill="cats"] .emm-mega__cat.is-active .emm-mega__cat-chevron {
		transform: rotate(-90deg);
	}

	/* Level 2: links for selected category */
	.emm-nav__item--mega[data-drill="links"] .emm-mega__section:not(.is-open) {
		display: none;
	}

	.emm-nav__item--mega[data-drill="links"] .emm-mega__section.is-open > .emm-mega__cat {
		display: none;
	}

	.emm-nav__item--mega[data-drill="links"] .emm-mega__panel {
		display: block !important;
		position: static;
		top: auto;
		left: auto;
		right: auto;
		width: auto;
		margin: 0;
		padding: 0;
		background: transparent;
		border: none;
		border-radius: 0;
	}

	/* Level 2: simple full-width list rows (not cards/buttons) */
	.emm-header .emm-mega__cat {
		display: flex;
		flex: none;
		width: 100%;
		margin: 0;
		min-width: 0;
		align-items: center;
		padding: 0.95rem 1.15rem;
		text-align: left;
		border: none;
		border-bottom: 1px solid var(--emm-border);
		border-radius: 0;
		background: transparent;
		min-height: 56px;
		grid-column: auto;
		box-shadow: none;
	}

	.emm-mega__cat-title {
		font-size: 16px;
		line-height: 1.3;
	}

	.emm-mega__cat:hover,
	.emm-mega__cat.is-active {
		background: rgba(0, 0, 0, 0.02);
		border-color: var(--emm-border);
		box-shadow: none;
		border-radius: 0;
		color: var(--emm-text);
	}

	.emm-mega__section:last-child .emm-mega__cat {
		border-bottom: none;
	}

	.emm-mega__cat-chevron {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		margin-left: auto;
	}

	.emm-mega__cat-icon {
		font-size: 22px;
		margin-top: 0;
		flex-shrink: 0;
	}

	.emm-mega__cat-icon .emm-icon--lg {
		font-size: 22px;
	}

	.emm-mega__cat-desc {
		display: block;
		font-size: 13px;
	}

	/* Hide level-3 panel titles on mobile (e.g. "Spend Platform Overview") */
	.emm-mega__panel-title {
		display: none !important;
	}

	.emm-mega__columns {
		display: flex;
		flex-direction: column;
		gap: 0;
	}

	.emm-mega__col {
		border-bottom: 1px solid var(--emm-border);
		padding: 0.75rem 0 0.35rem;
	}

	.emm-mega__col:last-child {
		border-bottom: none;
	}

	.emm-mega__col-title {
		padding: 0 1.15rem 0.45rem;
		margin: 0;
		font-size: 12px;
	}

	.emm-mega__col-list {
		gap: 0;
	}

	.emm-mega__col-link {
		padding: 0.85rem 1.15rem;
		min-height: 48px;
		align-items: center;
		border-bottom: 1px solid var(--emm-border);
		font-size: 16px;
	}

	.emm-mega__col-item:last-child .emm-mega__col-link {
		border-bottom: none;
	}

	.emm-mega__col-link:not(.has-icon)::before {
		margin-top: 0;
	}

	.emm-mega__col-link:active {
		background: rgba(0, 0, 0, 0.03);
	}

	.emm-mega__grid,
	.emm-mega__grid--features {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.emm-mega__grid-link,
	.emm-mega__grid--features .emm-mega__grid-link {
		background: transparent;
		border: none;
		border-bottom: 1px solid var(--emm-border);
		border-radius: 0;
		padding: 0.95rem 1.15rem;
		min-height: 52px;
		font-size: 16px;
		color: var(--emm-text) !important;
		text-decoration: none !important;
	}

	.emm-mega__grid-link:last-child,
	.emm-mega__grid--features .emm-mega__grid-link:last-child {
		border-bottom: none;
	}

	.emm-mega__grid-link:active {
		background: rgba(0, 0, 0, 0.03);
	}

	.emm-mega__inner--features {
		padding: 0;
	}
}

@media (min-width: 481px) and (max-width: 900px) {
	.emm-nav__item--mega[data-drill="links"] .emm-mega__columns {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.5rem 1rem;
	}

	.emm-nav__item--mega[data-drill="links"] .emm-mega__col {
		border-bottom: none;
	}

	.emm-nav__item--mega[data-drill="links"] .emm-mega__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (forced-colors: active) {
	.emm-nav__item.is-current > .emm-nav__link,
	.emm-nav__item.is-current-ancestor > .emm-nav__link,
	.emm-mega__section.is-current-ancestor > .emm-mega__cat,
	.emm-mega__col-link[aria-current="page"],
	.emm-mega__grid-link[aria-current="page"] {
		border: 2px solid Highlight;
	}
}

@media (prefers-reduced-motion: reduce) {
	.emm-header *,
	.emm-header *::before,
	.emm-header *::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}

/*
 * Content-aware mobile mode. JavaScript applies this above the nominal
 * breakpoint when translated or user-authored labels cannot fit safely.
 */
@media (min-width: 901px) {
	.emm-header.emm-force-mobile {
		position: sticky;
		top: var(--emm-admin-offset, 0);
		z-index: 10000;
	}

	.emm-header.emm-force-mobile .emm-nav__bar {
		display: flex;
		align-items: center;
		justify-content: space-between;
		min-height: 56px;
		padding: 0.5rem 1rem;
		background: var(--emm-header-bg);
	}

	.emm-header.emm-force-mobile .emm-nav__toggle,
	.emm-header.emm-force-mobile .emm-nav__drawer-head {
		display: flex;
	}

	.emm-header.emm-force-mobile .emm-nav__drawer {
		position: fixed;
		inset: var(--emm-mobile-offset, 56px) 0 0 auto;
		display: none;
		width: min(420px, 100vw);
		max-height: calc(100dvh - var(--emm-mobile-offset, 56px));
		overflow: auto;
		background: var(--emm-header-bg);
		box-shadow: -8px 12px 32px rgba(0, 0, 0, 0.2);
	}

	.emm-header.emm-force-mobile.is-mobile-open .emm-nav__drawer {
		display: block;
	}

	.emm-header.emm-force-mobile .emm-nav__inner,
	.emm-header.emm-force-mobile .emm-nav__list {
		display: flex;
		flex-direction: column;
		width: 100%;
	}

	.emm-header.emm-force-mobile .emm-nav__item,
	.emm-header.emm-force-mobile .emm-nav__link {
		width: 100%;
	}

	.emm-header.emm-force-mobile .emm-nav__link {
		display: flex;
		justify-content: space-between;
		min-height: 48px;
		padding: 0.8rem 1rem;
	}

	.emm-header.emm-force-mobile .emm-mega {
		position: static;
		inset: auto;
		width: 100%;
		max-width: none;
		transform: none;
		box-shadow: none;
	}

	.emm-header.emm-force-mobile .emm-mega__inner,
	.emm-header.emm-force-mobile .emm-mega__accordion,
	.emm-header.emm-force-mobile .emm-mega__columns {
		display: block;
		width: 100%;
		padding: 0;
	}

	.emm-header.emm-force-mobile .emm-mega__cat {
		display: flex;
		flex: none;
		width: 100%;
		min-width: 0;
		margin: 0;
		padding: 0.95rem 1.15rem;
		align-items: center;
		text-align: left;
		border: none;
		border-bottom: 1px solid var(--emm-border);
		border-radius: 0;
		background: transparent;
		min-height: 56px;
		box-shadow: none;
	}

	.emm-header.emm-force-mobile .emm-mega__cat-title {
		font-size: 16px;
		line-height: 1.3;
	}

	.emm-header.emm-force-mobile .emm-nav__item--mega[data-drill="cats"] .emm-mega__panel,
	.emm-header.emm-force-mobile .emm-nav__item--mega[data-drill="links"] .emm-mega__section:not(.is-open),
	.emm-header.emm-force-mobile .emm-nav__item--mega[data-drill="links"] .emm-mega__section.is-open > .emm-mega__cat {
		display: none;
	}

	.emm-header.emm-force-mobile .emm-nav__item--mega[data-drill="links"] .emm-mega__panel {
		display: block;
	}

	.emm-header.emm-force-mobile .emm-mega__grid,
	.emm-header.emm-force-mobile .emm-mega__grid--features {
		grid-template-columns: 1fr;
	}
}


/* Prevent theme widget separators from appearing beneath the mega menu. */
.emm-widget,
.widget_emm_widget {
	border-bottom: 0 !important;
}

/* Frontend panel resilience (#70): keep large menus usable in short viewports
 * while preserving the panel header and keyboard-scrollable content. */
.emm-mega__panel {
	max-height: min(78vh, 760px);
	overflow: auto;
	overscroll-behavior: contain;
	scrollbar-gutter: stable;
}
.emm-mega__panel:focus-within {
	scroll-margin-block: 1rem;
}
.emm-mega__panel-title {
	position: sticky;
	top: 0;
	z-index: 1;
	padding-block: 0.25rem 0.75rem;
	background: var(--emm-panel-bg, #fff);
}
.emm-mega__col-title {
	font-size: 12px;
}
@media (max-width: 900px) {
	.emm-mobile-bar {
		display: flex;
		align-items: center;
		gap: 0.5rem;
		min-width: 0;
	}
	.emm-mobile-bar .emm-brand,
	.emm-mobile-bar .emm-mobile-cta {
		min-width: 0;
		flex: 1 1 auto;
	}
	.emm-mobile-bar .emm-brand a,
	.emm-mobile-bar .emm-mobile-cta {
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}
	.emm-mobile-bar .emm-menu-toggle {
		flex: 0 0 auto;
	}
	.emm-mega__panel {
		max-height: calc(100dvh - 5rem);
	}
}
@media (prefers-reduced-motion: reduce) {
	.emm-mega__panel {
		scroll-behavior: auto;
	}
}
