.tpx-mega-menu {
	--tpx-menu-styles-ready: 1;
	--tpx-menu-panel-bg: var(--wp--preset--color--white, #fff);
	--tpx-menu-panel-text: var(--wp--preset--color--charcoal, #171717);
	--tpx-menu-highlight: var(--wp--preset--color--smoke, #f2f2f2);
	--tpx-menu-border: #0000001a;
	position: relative;
	z-index: 100;
	width: 100%;
	max-width: none;
	font-size: 1rem;
	color: var(--wp--preset--color--white, #fff);
	background: var(--wp--preset--color--charcoal, #171717);
	margin-block: 0 !important;
}
	.has-white-background-color > .tpx-mega-menu {
		color: var(--wp--preset--color--charcoal, #171717);
		background: var(--wp--preset--color--white, #fff);	
	}

	.has-white-background-color > .tpx-mega-menu .tpx-mega-menu__trigger {
		color: var(--wp--preset--color--charcoal, #171717);
	}

@media (min-width: 782px) {
	.has-white-background-color > .tpx-mega-menu .tpx-mega-menu__trigger:hover, 
	.has-white-background-color > .tpx-mega-menu .tpx-mega-menu__trigger[aria-expanded="true"] { background: #0000000a; }
}

.tpx-mega-menu *, .tpx-mega-menu *::before, .tpx-mega-menu *::after { box-sizing: border-box; }
.tpx-mega-menu [hidden], .tpx-mega-menu-editor [hidden] { display: none !important; }
.tpx-mega-menu button { font: inherit; cursor: pointer; }
.tpx-mega-menu__list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	/*gap: clamp(.5rem, 2vw, 2.5rem);*/
	list-style: none;
	padding: 0;
	margin: 0 !important;
}
.tpx-mega-menu[data-justify="start"] > .tpx-mega-menu__list { justify-content: flex-start; }
.tpx-mega-menu[data-justify="end"] > .tpx-mega-menu__list { justify-content: flex-end; }
.tpx-mega-menu__item { margin: 0; padding: 0; flex: 0 0 auto; }
.tpx-mega-menu__trigger {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: .35em;
	padding: 1.1em clamp(.5rem, 2vw, 2.5rem);
	border: 0;
	border-radius: 0;
	background: transparent;
	color: inherit;
	text-decoration: none;
	font: inherit;
	line-height: 1.3;
	white-space: nowrap;
}
.tpx-mega-menu__chevron { flex: 0 0 auto; width: 1em; height: 1em; transition: transform .2s; }
.tpx-mega-menu__trigger[aria-expanded="true"] > .tpx-mega-menu__chevron { transform: rotate(180deg); }
.tpx-mega-menu :where(a,button):focus-visible { outline: 2px solid var(--wp--preset--color--red, #ff0033); outline-offset: 3px; }
.tpx-mega-menu__trigger:hover, .tpx-mega-menu__trigger[aria-expanded="true"] { background: #ffffff0a; }
.tpx-mega-menu__stage { color: var(--tpx-menu-panel-text); background: var(--tpx-menu-panel-bg); }
.tpx-mega-menu__panel { background: var(--tpx-menu-panel-bg); color: var(--tpx-menu-panel-text); }
.tpx-mega-menu__panel-body { width: 100%; }
.tpx-mega-menu__panel-body > :not(.tpx-mega-menu__columns) { margin: 0; padding: 1.5rem; }
.tpx-mega-menu__panel-body .tpx-mega-menu__columns {
	display: flex;
	gap: 0;
	margin: 0;
	align-items: stretch !important;
	max-width: none;
}
.tpx-mega-menu__panel-body .tpx-mega-menu__column {
	flex: 1 1 0;
	min-width: 0;
	margin: 0;
	padding: 2.5rem 1.5rem;
	border-right: 1px solid var(--tpx-menu-border, #0000001a);
}
.tpx-mega-menu__column:last-child { border-right: 0; }
.tpx-mega-menu__column.is-highlighted { background: var(--tpx-menu-highlight, #f2f2f2); }
.tpx-mega-menu__column.is-highlighted:not(:last-child) { border-right: 1px solid var(--tpx-menu-border, #0000001a); }
.tpx-mega-menu__column.has-feature { padding: 1.5rem; }
.tpx-mega-menu__panel-body .tpx-mega-menu__heading {
	margin: 0 0 1.5rem;
	padding: 0 .75rem;
	font-size: .75rem;
	font-weight: 400;
	line-height: 1.3;
	text-transform: uppercase;
	letter-spacing: .03em;
}
.tpx-mega-menu__link {
	display: flex;
	flex-direction: column;
	gap: .125rem;
	padding: .625rem .75rem;
	margin: 0 !important;
	border-radius: .25rem;
	color: inherit;
	text-decoration: none;
}
.by-applications .tpx-mega-menu__link {
	margin-bottom: -.625rem !important;
}
.tpx-mega-menu__link[href]:hover { background: #00000008; }
.tpx-mega-menu__link.has-image { flex-direction: row; align-items: center; gap: 1rem; }
.tpx-mega-menu__link-image { display: block; flex: 0 0 60px; width: 60px; min-width: 60px; max-width: 60px; height: 60px; margin: 0; object-fit: contain; }
.tpx-mega-menu__link-copy { display: flex; flex-direction: column; gap: .125rem; min-width: 0; overflow-wrap: anywhere; }
.tpx-mega-menu__link-title { display: block; font-size: 1rem; font-weight: 500; line-height: 1.4; }
.tpx-mega-menu__link-description { display: block; font-size: .875rem; font-weight: 400; line-height: 1.4; opacity: .7; }
.tpx-mega-menu__link.is-style-stacked-card {
	flex-direction: column;
	align-items: stretch;
	gap: .75rem;
	width: 100%;
	max-width: 270px;
	padding: 0;
	border-radius: 0;
}
.tpx-mega-menu__panel-body > .tpx-mega-menu__link.is-style-stacked-card { padding: 0; }
.tpx-mega-menu__link.is-style-stacked-card > .tpx-mega-menu__link-image {
	flex: 0 0 auto;
	width: 100%;
	min-width: 0;
	max-width: 270px;
	height: auto;
	max-height: 270px;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}
.tpx-mega-menu__link.is-style-stacked-card > .tpx-mega-menu__link-copy { padding: 0 .75rem .625rem; }
.tpx-mega-menu__feature { border-radius: .5rem; overflow: hidden; background: #fff; color: #171717; }
.tpx-mega-menu__feature > .wp-block-image { margin: 0; }
.tpx-mega-menu__feature > .wp-block-image img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.tpx-mega-menu__feature-copy { padding: 1.5rem; margin: 0; }
.tpx-mega-menu__feature-copy > :first-child { margin-top: 0; }
.tpx-mega-menu__feature-copy > :last-child { margin-bottom: 0; }
.tpx-mega-menu__feature-copy h3 { font-size: 1rem; line-height: 1.4; font-weight: 500; margin-bottom: .125rem; }
.tpx-mega-menu__feature-copy p { font-size: .875rem; margin-top: 0; opacity: .7; }
.tpx-mega-menu__feature-copy .wp-block-buttons { margin-top: 1.25rem; }
.tpx-mega-menu__feature-copy .wp-block-button__link { font-size: .9375rem; }
.tpx-mega-menu__mobile-bar { display: none; }
.tpx-mega-menu__backdrop {
	position: fixed;
	inset: var(--tpx-menu-bottom, 0) 0 0;
	z-index: 1;
	background: #00000040;
	animation: tpx-mega-backdrop .3s ease-out;
}
.tpx-mega-menu.is-enhanced > .tpx-mega-menu__list { position: relative; z-index: 3; flex-wrap: nowrap; }
.tpx-mega-menu.is-enhanced > .tpx-mega-menu__stage {
	position: absolute;
	top: 100%;
	left: 0;
	width: 100%;
	height: 0;
	z-index: 2;
	overflow: hidden;
	box-shadow: 0 12px 20px #0000000a;
}
.tpx-mega-menu.is-enhanced .tpx-mega-menu__panels { position: relative; border-top: 1px solid var(--tpx-menu-border, #0000001a); }
.tpx-mega-menu.is-enhanced .tpx-mega-menu__panel {
	position: absolute;
	inset: 0 0 auto;
	max-height: var(--tpx-menu-available, 80vh);
	overflow: auto;
	overscroll-behavior: contain;
}
.tpx-mega-menu[data-mobile="true"] .tpx-mega-menu__mobile-bar {
	display: flex;
	position: relative;
	z-index: 4;
	justify-content: space-between;
	align-items: center;
	min-height: 3.5rem;
	/*padding: .5rem 1rem;*/
	background: inherit;
}
/* One opaque surface stays in place from menu open to menu close, including
 * transitions between the root list, submenu and column panels. */
.tpx-mega-menu.is-enhanced[data-mobile="true"] > .tpx-mega-menu__backdrop {
	background: var(--tpx-menu-panel-bg);
	animation: none;
}
.tpx-mega-menu__burger, .tpx-mega-menu__back {
	display: flex;
	align-items: center;
	gap: .75rem;
	min-height: 44px;
	padding: .25rem .5rem;
	border: 0;
	color: inherit;
	background: transparent;
}
.tpx-mega-menu__burger { margin-left: auto; min-height: 36px; min-width: 36px; padding: 0; justify-content: center; background-color: var(--wp--preset--color--smoke);
    border-radius: 100px; }
.tpx-mega-menu__burger-lines { position: relative; display: block; width: 1rem; height: 1rem; }
.tpx-mega-menu__burger-lines span { position: absolute; top: 50%; left: 0; width: 100%; height: 2px; background: #666666; transition: transform .3s, opacity .2s; }
.tpx-mega-menu__burger-lines span:first-child { transform: translateY(-5px); }
.tpx-mega-menu__burger-lines span:last-child { transform: translateY(5px); }
.is-menu-open .tpx-mega-menu__burger-lines span:first-child { transform: rotate(45deg); }
.is-menu-open .tpx-mega-menu__burger-lines span:nth-child(2) { opacity: 0; }
.is-menu-open .tpx-mega-menu__burger-lines span:last-child { transform: rotate(-45deg); }
.tpx-mega-menu__back .tpx-mega-menu__chevron { transform: rotate(90deg); }
.tpx-mega-menu.is-enhanced[data-mobile="true"] > .tpx-mega-menu__list {
	position: fixed;
	inset: var(--tpx-menu-bottom) 0 0;
	max-height: var(--tpx-menu-available);
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: stretch;
	gap: 0;
	padding: 1.5rem;
	background: var(--tpx-menu-panel-bg);
	color: var(--tpx-menu-panel-text);
	overflow: auto;
	overscroll-behavior: contain;
	visibility: hidden;
	opacity: 0;
	transform: translateX(0);
	transition: opacity .3s, transform .35s, visibility .3s;
}
.tpx-mega-menu[data-mobile="true"] .tpx-mega-menu__trigger { width: 100%; white-space: normal; padding: 1rem 0; border-bottom: 1px solid var(--tpx-menu-border); font-size: 1.125rem; }
.tpx-mega-menu[data-mobile="true"] .tpx-mega-menu__trigger > .tpx-mega-menu__chevron { transform: rotate(-90deg); }
.tpx-mega-menu.is-enhanced[data-mobile="true"].is-menu-open > .tpx-mega-menu__list { visibility: visible; opacity: 1; }
.tpx-mega-menu.is-enhanced[data-mobile="true"].has-panel > .tpx-mega-menu__list { opacity: 0; visibility: hidden; transform: translateX(-10%); pointer-events: none; }
.tpx-mega-menu.is-enhanced[data-mobile="true"] > .tpx-mega-menu__stage {
	display: flex;
	flex-direction: column;
	position: fixed;
	inset: var(--tpx-menu-bottom) 0 0;
	width: auto;
	height: auto !important;
	max-height: var(--tpx-menu-available);
	z-index: 3;
	visibility: hidden;
	background: var(--tpx-menu-panel-bg);
	pointer-events: none;
}
.tpx-mega-menu.is-enhanced[data-mobile="true"].has-panel > .tpx-mega-menu__stage { visibility: visible; pointer-events: auto; }
.tpx-mega-menu.is-enhanced[data-mobile="true"] .tpx-mega-menu__back {
	flex: 0 0 auto;
	width: 100%;
	min-height: 56px;
	margin: 0;
	padding: .5rem 1.5rem;
	border-radius: 0;
	border-bottom: 1px solid var(--tpx-menu-border);
	background: var(--tpx-menu-panel-bg);
	color: var(--tpx-menu-panel-text);
}
.tpx-mega-menu.is-enhanced[data-mobile="true"] .tpx-mega-menu__panels { flex: 1 1 auto; min-height: 0; border-top: 0; }
.tpx-mega-menu.is-enhanced[data-mobile="true"] .tpx-mega-menu__panel { inset: 0; max-height: 100%; background: transparent; }
.tpx-mega-menu[data-mobile="true"] .tpx-mega-menu__columns { flex-direction: column; }
.tpx-mega-menu[data-mobile="true"] {
	--tpx-menu-accordion-duration: .6s;
	--tpx-menu-accordion-ease: cubic-bezier(0.625, 0.05, 0, 1);
}
.tpx-mega-menu[data-mobile="true"] .tpx-mega-menu__link {
	box-sizing: border-box;
	justify-content: center;
	width: 100%;
	max-width: none;
	min-height: 80px;
	padding: 10px 24px;
}
.tpx-mega-menu[data-mobile="true"] .tpx-mega-menu__link.has-image {
	flex-direction: row;
	align-items: center;
	justify-content: flex-start;
	gap: 1rem;
	width: 100%;
	max-width: none;
	padding: 10px 24px;
	border-radius: .25rem;
}
.tpx-mega-menu[data-mobile="true"] .tpx-mega-menu__link.has-image > .tpx-mega-menu__link-image {
	flex: 0 0 60px;
	width: 60px;
	min-width: 60px;
	max-width: 60px;
	height: 60px;
	max-height: 60px;
	aspect-ratio: auto;
	object-fit: contain;
}
.tpx-mega-menu[data-mobile="true"] .tpx-mega-menu__link.has-image > .tpx-mega-menu__link-copy { padding: 0; }
.tpx-mega-menu[data-mobile="true"] .tpx-mega-menu__panel-body .tpx-mega-menu__column { flex: auto !important; width: 100%; padding: 0 !important; border: 0; }
.tpx-mega-menu[data-mobile="true"] .tpx-mega-menu__column-accordion { flex: 0 0 auto; width: 100%; min-width: 0; }
.tpx-mega-menu[data-mobile="true"] .tpx-mega-menu__accordion-heading { margin: 0; font: inherit; }
.tpx-mega-menu[data-mobile="true"] .tpx-mega-menu__column-content {
	display: grid;
	grid-template-rows: 0fr;
	width: 100%;
	overflow: hidden;
	transition: grid-template-rows var(--tpx-menu-accordion-duration) var(--tpx-menu-accordion-ease);
}
.tpx-mega-menu[data-mobile="true"] .tpx-mega-menu__column-accordion.is-expanded > .tpx-mega-menu__column-content { grid-template-rows: 1fr; }
.tpx-mega-menu[data-mobile="true"] .tpx-mega-menu__column-content > .tpx-mega-menu__column { min-height: 0; overflow: hidden; }
.tpx-mega-menu[data-mobile="true"] .tpx-mega-menu__column-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	flex: 0 0 auto;
	width: 100%;
	box-sizing: border-box;
	min-height: 80px;
	margin: 0;
	padding: 10px 24px;
	border: 0;
	border-radius: 0;
	background: var(--tpx-menu-panel-bg);
	color: var(--tpx-menu-panel-text);
	text-align: start;
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.4;
    background: var(--tpx-menu-highlight);
    border-top: 1px solid white;	
}
.tpx-mega-menu[data-mobile="true"] .tpx-mega-menu__column-toggle > .tpx-mega-menu__chevron { transform: rotate(0deg); transition: transform var(--tpx-menu-accordion-duration) var(--tpx-menu-accordion-ease); }
.tpx-mega-menu[data-mobile="true"] .tpx-mega-menu__column-toggle[aria-expanded="true"] > .tpx-mega-menu__chevron { transform: rotate(180deg); }
.tpx-mega-menu[data-mobile="true"] .tpx-mega-menu__column-toggle:hover { background: var(--tpx-menu-highlight); }
@keyframes tpx-mega-backdrop { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
	.tpx-mega-menu *, .tpx-mega-menu *::before, .tpx-mega-menu *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (max-width: 781px) {
	.tpx-mega-menu:not(.is-enhanced) .tpx-mega-menu__columns { flex-direction: column; }
}

/* Follow the controller's actual mode, including its configurable breakpoint. */
.tpx-mega-menu[data-mobile="false"].has-current-section
.tpx-mega-menu__item:not(.is-current-section) > .tpx-mega-menu__trigger:not(:hover):not(:focus-visible) {
	opacity: 0.4;
}

/* Override the saved header's link colour only on mobile menu surfaces. */
.tpx-mega-menu[data-mobile="true"] .tpx-mega-menu__trigger,
.tpx-mega-menu[data-mobile="true"] .tpx-mega-menu__link {
	color: var(--tpx-menu-panel-text);
}
.tpx-mega-menu[data-mobile="true"] .tpx-mega-menu__stage a:where(:not(.wp-element-button):not(.wp-block-button__link)) {
	color: inherit;
}
