/* Datascan header — desktop utility bar, main nav, mobile menu */

#hello-bar,
.ct-cta-button {
	display: none !important;
}

body.ds-nav-open {
	overflow: hidden;
}

/* ---------- Top utility bar ---------- */

#top-header.ds-topbar {
	background: #082c4e !important;
	border: 0;
	font-size: 13px;
	line-height: 1.2;
	height: auto !important;
	padding: 0;
	z-index: 100001;
}

#top-header.ds-topbar .container,
#main-header.ds-header > .container {
	width: 100%;
	max-width: 1480px;
	padding-left: 28px;
	padding-right: 28px;
}

#top-header.ds-topbar .ds-topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 32px;
	padding-top: 0;
	padding-bottom: 0;
}

#top-header.ds-topbar .ds-topbar__tagline {
	margin: 0;
	color: #ffffff;
	font-family: "Open Sans", Arial, sans-serif;
	font-size: 12.5px;
	font-weight: 500;
	letter-spacing: 0;
	white-space: nowrap;
}

#top-header.ds-topbar .ds-topbar__links {
	display: flex;
	align-items: center;
	margin-left: auto;
}

#top-header.ds-topbar .ds-topbar__item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #ffffff !important;
	font-family: "Open Sans", Arial, sans-serif;
	font-size: 12.5px;
	font-weight: 500;
	line-height: 1;
	text-decoration: none;
	padding: 0 14px;
	position: relative;
}

#top-header.ds-topbar .ds-topbar__item + .ds-topbar__item::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	width: 1px;
	height: 14px;
	background: rgba(255, 255, 255, 0.45);
	transform: translateY(-50%);
}

#top-header.ds-topbar .ds-topbar__item:first-child {
	padding-left: 0;
}

#top-header.ds-topbar .ds-topbar__item:last-child {
	padding-right: 0;
}

#top-header.ds-topbar .ds-icon {
	width: 15px;
	height: 15px;
	color: #00f96e;
	flex: 0 0 auto;
}

#top-header.ds-topbar .ds-icon--light {
	color: #ffffff;
}

#top-header.ds-topbar .ds-topbar__item:hover {
	opacity: 0.8;
}

/* ---------- Main header ---------- */

#main-header.ds-header {
	background: #0f4574 !important;
	box-shadow: none !important;
	border-bottom: 3px solid #2ad4b0;
	height: auto !important;
	z-index: 100000;
	overflow: visible !important;
}

#main-header.ds-header > .container,
#main-header.ds-header #et-top-navigation,
#main-header.ds-header #top-menu-nav,
#main-header.ds-header #top-menu {
	overflow: visible !important;
}

#main-header.ds-header.et-fixed-header {
	background: #0f4574 !important;
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08) !important;
}

#main-header.ds-header > .container.ds-header__inner,
#main-header.ds-header .et_menu_container {
	display: flex !important;
	align-items: stretch;
	justify-content: flex-start;
	gap: 20px;
	height: auto !important;
	min-height: 64px;
	padding-top: 0;
	padding-bottom: 0;
	float: none;
}

#main-header.ds-header .logo_container,
.et_hide_fixed_logo #main-header.ds-header.et-fixed-header .logo_container,
.et-fixed-header .logo_container {
	position: relative !important;
	top: auto !important;
	left: auto !important;
	width: auto !important;
	height: auto !important;
	opacity: 1 !important;
	display: block !important;
	padding: 0 !important;
	text-align: left;
	flex: 0 0 auto;
	align-self: center;
}

#main-header.ds-header .logo_helper {
	display: none !important;
}

#main-header.ds-header img#logo,
#main-header.ds-header .logo_container img,
#main-header.ds-header .ds-brand__mark,
#main-header.ds-header .ds-brand__word {
	height: 44px !important;
	width: auto !important;
	max-width: 210px !important;
	max-height: 44px !important;
	padding: 0 !important;
	margin: 0 !important;
}

/* Source file is a dark wordmark plus a light-blue monogram.
   Clip the monogram through and paint only the wordmark white. */
#main-header.ds-header .ds-brand,
.ds-mobile-panel__logo .ds-brand {
	position: relative;
	display: inline-block;
	line-height: 0;
	vertical-align: middle;
}

#main-header.ds-header .ds-brand__mark,
.ds-mobile-panel__logo .ds-brand__mark {
	display: block !important;
	clip-path: inset(0 62% 0 0);
	mix-blend-mode: screen;
}

#main-header.ds-header .ds-brand__word,
.ds-mobile-panel__logo .ds-brand__word {
	position: absolute !important;
	top: 0;
	left: 0;
	display: block !important;
	clip-path: inset(0 0 0 38%);
	filter: brightness(0) invert(1) !important;
	mix-blend-mode: normal;
}

#main-header.ds-header #et-top-navigation {
	display: flex !important;
	align-items: center;
	align-self: stretch;
	float: none !important;
	margin: 0 0 0 auto !important;
	padding: 0 !important;
	width: auto !important;
	height: auto !important;
	gap: 8px;
}

#main-header.ds-header #top-menu-nav {
	display: flex !important;
	align-self: stretch;
	align-items: stretch;
}

#main-header.ds-header #top-menu {
	display: flex !important;
	align-items: stretch;
	align-self: stretch;
	flex-wrap: nowrap;
	height: 100%;
	gap: 2px;
	padding: 0;
	margin: 0;
	line-height: 1.2;
}

#main-header.ds-header #top-menu > li {
	position: relative;
	display: flex;
	align-items: center;
	padding: 0 !important;
	margin: 0 2px !important;
}

#main-header.ds-header #top-menu > li.ds-nav-skip {
	display: none !important;
}

#main-header.ds-header #top-menu > .menu-item-102,
.ds-mobile-list > .menu-item-102 { order: 1; }
#main-header.ds-header #top-menu > .menu-item-238887,
.ds-mobile-list > .menu-item-238887 { order: 2; }
#main-header.ds-header #top-menu > .menu-item-167,
.ds-mobile-list > .menu-item-167 { order: 3; }
#main-header.ds-header #top-menu > .menu-item-2642,
.ds-mobile-list > .menu-item-2642 { order: 4; }
#main-header.ds-header #top-menu > .menu-item-284,
.ds-mobile-list > .menu-item-284 { order: 5; }
#main-header.ds-header #top-menu > .menu-item-1141,
.ds-mobile-list > .menu-item-1141 { order: 6; }

#main-header.ds-header #top-menu > li > a {
	display: inline-flex;
	align-items: center;
	color: #ffffff !important;
	font-family: "Open Sans", Arial, sans-serif;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0;
	line-height: 1.2;
	padding: 8px 12px !important;
	border-radius: 6px;
	white-space: nowrap;
	background: transparent;
	opacity: 1;
}

#main-header.ds-header #top-menu > li > a:hover,
#main-header.ds-header #top-menu > li.et-hover > a,
#main-header.ds-header #top-menu > li:hover > a,
#main-header.ds-header #top-menu > li.current-menu-item > a,
#main-header.ds-header #top-menu > li.current-menu-ancestor > a {
	background: #071f38 !important;
	color: #ffffff !important;
	opacity: 1;
}

#main-header.ds-header #top-menu > li.menu-item-has-children:hover > a:first-child:after,
#main-header.ds-header #top-menu > li.menu-item-has-children.et-hover > a:first-child:after {
	transform: translateY(-30%) rotate(225deg);
}

#main-header.ds-header #top-menu > li.menu-item-has-children > a:first-child {
	padding-right: 28px !important;
}

#main-header.ds-header #top-menu > li.menu-item-has-children > a:first-child:after {
	content: "" !important;
	font-family: inherit !important;
	font-size: 0 !important;
	position: absolute !important;
	right: 12px !important;
	top: 50% !important;
	width: 7px;
	height: 7px;
	margin: 0 !important;
	border-right: 1.5px solid #ffffff;
	border-bottom: 1.5px solid #ffffff;
	transform: translateY(-70%) rotate(45deg);
	background: none;
}

/* Dropdowns */

#main-header.ds-header #top-menu li > ul.sub-menu,
#main-header.ds-header #top-menu > li > ul.sub-menu {
	background: #ffffff !important;
	border: 0 !important;
	border-radius: 2px;
	box-shadow: 0 12px 32px rgba(8, 28, 48, 0.18) !important;
	padding: 8px !important;
	text-align: left !important;
	left: 0 !important;
	right: auto !important;
	top: calc(100% + 3px) !important;
	transform: none !important;
	width: max-content !important;
	min-width: 280px;
	max-width: none;
	margin-top: 0 !important;
	z-index: 1000;
}

#main-header.ds-header #top-menu > li > ul.sub-menu::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: -8px;
	height: 8px;
}

#main-header.ds-header #top-menu > li:not(.ds-mega) > ul.sub-menu {
	display: block !important;
	padding: 8px !important;
	width: max-content !important;
	min-width: 292px;
	border-radius: 4px;
}

#main-header.ds-header #top-menu > li.ds-mega > ul.sub-menu {
	width: 760px !important;
	max-width: min(760px, 72vw);
	min-width: 0;
	columns: 2;
	column-gap: 56px;
	padding: 26px 36px 22px !important;
}

#main-header.ds-header #top-menu li li,
#main-header.ds-header #top-menu > li > ul.sub-menu > li {
	padding: 0 !important;
	margin: 0 !important;
	line-height: 1.3 !important;
	width: auto !important;
	align-self: stretch;
	float: none !important;
	break-inside: avoid;
	display: block;
}

#main-header.ds-header #top-menu li li a,
#main-header.ds-header #top-menu .sub-menu a {
	display: block !important;
	color: #1b3348 !important;
	background: transparent !important;
	border: 0 !important;
	width: auto !important;
	box-sizing: border-box;
	padding: 11px 14px !important;
	border-radius: 4px;
	font-size: 15px !important;
	font-weight: 500 !important;
	line-height: 1.35 !important;
	text-align: left !important;
	white-space: nowrap;
	opacity: 1;
}

#main-header.ds-header #top-menu li li:hover > a,
#main-header.ds-header #top-menu li li a:hover,
#main-header.ds-header #top-menu .sub-menu li:hover > a,
#main-header.ds-header #top-menu .sub-menu a:hover,
#main-header.ds-header #top-menu li li.current-menu-item > a,
#main-header.ds-header #top-menu li li.current_page_item > a,
#main-header.ds-header #top-menu li li.current-menu-ancestor > a {
	color: #1b3348 !important;
	background: #e7f1fb !important;
	background-color: #e7f1fb !important;
	border-radius: 4px;
	opacity: 1;
}

#main-header.ds-header #top-menu > li:not(.ds-mega) > ul.sub-menu > li > a {
	width: 100% !important;
	padding: 11px 14px !important;
}

/* Search + demo + mobile controls */

#main-header.ds-header #et_top_search {
	align-self: center;
	float: none;
	margin: 0 4px 0 8px;
	width: 34px;
	height: 34px;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
}

#main-header.ds-header #et_search_icon:before {
	color: #ffffff !important;
	font-size: 18px;
	position: relative;
	top: 0;
	left: 0;
}

#main-header.ds-header .ds-demo-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #00f96e;
	color: #0e3a5c !important;
	font-family: "Open Sans", Arial, sans-serif;
	font-size: 14.5px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	border-radius: 4px;
	padding: 11px 16px;
	align-self: center;
	border: 0;
	white-space: nowrap;
	transition: background-color 0.2s ease, color 0.2s ease;
}

#main-header.ds-header .ds-demo-btn:hover {
	background: #00e264;
	color: #0e3a5c !important;
}

#main-header.ds-header .ds-icon-btn--phone,
#main-header.ds-header .ds-burger {
	display: none;
}

#main-header.ds-header .et_search_outer {
	background: #0f4574;
	z-index: 100002;
}

#main-header.ds-header .et-search-form,
#main-header.ds-header .et-search-form input {
	color: #14324c !important;
}

#et_mobile_nav_menu,
#main-header.ds-header #mobile_menu {
	display: none !important;
}

/* Fixed nav offset. Top bar ~32px + main bar ~66px + accent. */
.et_fixed_nav.et_show_nav #page-container,
.et_fixed_nav.et_show_nav.et_secondary_nav_enabled #page-container {
	padding-top: 102px !important;
}

/* ---------- Mobile panel ---------- */

.ds-mobile-panel {
	display: none;
}

@media (max-width: 1240px) {
	#top-header.ds-topbar {
		display: none !important;
	}

	#main-header.ds-header {
		top: 0 !important;
	}

	body.admin-bar #main-header.ds-header {
		top: 32px !important;
	}

	#main-header.ds-header > .container.ds-header__inner {
		min-height: 68px;
		padding-left: 16px;
		padding-right: 16px;
		gap: 12px;
	}

	#main-header.ds-header img#logo,
	#main-header.ds-header .logo_container img {
		height: 42px !important;
		max-width: 160px !important;
	}

	#main-header.ds-header #top-menu-nav,
	#main-header.ds-header .ds-demo-btn--bar {
		display: none !important;
	}

	#main-header.ds-header #et-top-navigation {
		gap: 2px;
	}

	#main-header.ds-header .ds-icon-btn--phone {
		order: 1;
		align-self: center;
		display: flex;
		align-items: center;
		justify-content: center;
		width: 40px;
		height: 40px;
		color: #00f96e;
		text-decoration: none;
	}

	#main-header.ds-header .ds-icon-btn--phone .ds-icon {
		width: 22px;
		height: 22px;
	}

	#main-header.ds-header #et_top_search {
		order: 2;
		margin: 0;
	}

	#main-header.ds-header .ds-burger {
		order: 3;
		align-self: center;
		display: inline-flex;
		flex-direction: column;
		justify-content: center;
		gap: 5px;
		width: 42px;
		height: 40px;
		padding: 8px;
		border: 0;
		background: transparent;
		cursor: pointer;
	}

	#main-header.ds-header .ds-burger span {
		display: block;
		height: 2px;
		width: 100%;
		background: #ffffff;
		border-radius: 2px;
	}

	.et_fixed_nav.et_show_nav #page-container,
	.et_fixed_nav.et_show_nav.et_secondary_nav_enabled #page-container {
		padding-top: 72px !important;
	}

	.ds-mobile-panel {
		display: flex;
		flex-direction: column;
		position: fixed;
		inset: 0;
		z-index: 1000000;
		background: #082c4e;
		color: #ffffff;
		padding: 12px 22px 32px;
		overflow: auto;
		transform: translateX(100%);
		visibility: hidden;
		transition: transform 0.28s ease, visibility 0.28s ease;
	}

	body.admin-bar .ds-mobile-panel {
		top: 32px;
	}

	.ds-mobile-panel.is-open {
		transform: none;
		visibility: visible;
	}

	.ds-mobile-panel__bar {
		display: flex;
		align-items: center;
		justify-content: space-between;
		min-height: 56px;
		margin-bottom: 8px;
	}

	.ds-mobile-panel__logo img {
		height: 42px;
		width: auto;
		display: block;
	}

	.ds-close {
		position: relative;
		width: 42px;
		height: 42px;
		border: 0;
		background: transparent;
		cursor: pointer;
	}

	.ds-close span {
		position: absolute;
		left: 8px;
		top: 20px;
		width: 26px;
		height: 2px;
		background: #ffffff;
	}

	.ds-close span:first-child {
		transform: rotate(45deg);
	}

	.ds-close span:last-child {
		transform: rotate(-45deg);
	}

	.ds-mobile-nav {
		flex: 0 0 auto;
	}

	.ds-mobile-list {
		list-style: none;
		margin: 0;
		padding: 0;
		display: flex;
		flex-direction: column;
	}

	.ds-mobile-list > li.ds-nav-skip {
		display: none !important;
	}

	.ds-mobile-list > li {
		border-bottom: 1px solid rgba(255, 255, 255, 0.28);
	}

	.ds-mobile-list > li > a,
	.ds-mobile-list .ds-mobile-link {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		color: #ffffff !important;
		font-family: "Open Sans", Arial, sans-serif;
		font-size: 20px;
		font-weight: 600;
		line-height: 1.3;
		text-decoration: none;
		padding: 16px 0;
	}

	.ds-mobile-list .menu-item-has-children {
		position: relative;
	}

	.ds-mobile-list .menu-item-has-children > a {
		padding-right: 48px;
	}

	.ds-mobile-list .menu-item-has-children > a:after,
	.ds-mobile-list .menu-item-has-children > a:before {
		content: none !important;
		display: none !important;
	}

	.ds-sub-toggle {
		position: absolute;
		right: 0;
		top: 0;
		z-index: 3;
		width: 48px;
		height: 56px;
		border: 0;
		background: transparent;
		cursor: pointer;
	}

	.ds-sub-toggle::before {
		content: "";
		position: absolute;
		left: 18px;
		top: 22px;
		width: 8px;
		height: 8px;
		border-right: 2px solid #00f96e;
		border-bottom: 2px solid #00f96e;
		transform: rotate(45deg);
		transition: transform 0.2s ease;
	}

	.ds-mobile-list > li.is-open > .ds-sub-toggle::before,
	.ds-mobile-list > li.et-show-dropdown > .ds-sub-toggle::before,
	.ds-mobile-list > li.et-hover > .ds-sub-toggle::before {
		transform: rotate(225deg);
		top: 26px;
	}

	#ds-mobile-panel .ds-mobile-list > li > ul.sub-menu {
		display: none !important;
		list-style: none;
		margin: 0 !important;
		padding: 0 0 12px 12px !important;
		background: transparent !important;
		background-color: transparent !important;
		position: static !important;
		top: auto !important;
		left: auto !important;
		right: auto !important;
		width: auto !important;
		min-width: 0 !important;
		max-width: none !important;
		height: auto !important;
		box-shadow: none !important;
		border: 0 !important;
		opacity: 1 !important;
		visibility: visible !important;
		transform: none !important;
		columns: 1 !important;
		overflow: visible !important;
	}

	#ds-mobile-panel .ds-mobile-list > li.is-open > ul.sub-menu,
	#ds-mobile-panel .ds-mobile-list > li.et-show-dropdown > ul.sub-menu,
	#ds-mobile-panel .ds-mobile-list > li.et-hover > ul.sub-menu,
	#ds-mobile-panel .ds-mobile-list > li.et-touch-hover > ul.sub-menu {
		display: block !important;
		margin: 0 0 16px !important;
		padding: 2px 0 8px 18px !important;
		border-left: 2px solid #2ad4ea !important;
	}

	#ds-mobile-panel .ds-mobile-list ul.sub-menu li {
		margin: 0 !important;
		padding: 0 !important;
		border: 0 !important;
	}

	#ds-mobile-panel .ds-mobile-list ul.sub-menu a {
		display: block !important;
		color: #ffffff !important;
		font-family: "Open Sans", Arial, sans-serif !important;
		font-size: 16px !important;
		font-weight: 500 !important;
		line-height: 1.35 !important;
		letter-spacing: 0 !important;
		padding: 9px 0 !important;
		text-decoration: none;
		background: transparent !important;
		background-color: transparent !important;
		border: 0 !important;
		border-radius: 0 !important;
		width: auto !important;
		opacity: 1 !important;
		visibility: visible !important;
		text-align: left !important;
	}

	.ds-mobile-actions {
		margin-top: 28px;
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 16px;
	}

	.ds-mobile-actions__row {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 14px;
	}

	.ds-outline-btn {
		display: flex;
		align-items: center;
		justify-content: center;
		min-height: 48px;
		padding: 10px 12px;
		border: 1px solid rgba(255, 255, 255, 0.85);
		border-radius: 4px;
		color: #ffffff !important;
		font-family: "Open Sans", Arial, sans-serif;
		font-size: 16px;
		font-weight: 600;
		text-decoration: none;
		background: transparent;
	}

	.ds-outline-btn:hover {
		background: rgba(255, 255, 255, 0.08);
	}

	#main-header.ds-header .ds-demo-btn--block {
		display: flex;
		width: 100%;
		min-height: 52px;
		font-size: 18px;
		border-radius: 4px;
	}

	.ds-mobile-meta {
		display: block;
		text-align: center;
		color: #ffffff !important;
		font-size: 16px;
		font-weight: 500;
		text-decoration: none;
		line-height: 1.4;
	}

	.ds-mobile-meta:hover {
		color: #00f96e !important;
	}
}

@media (max-width: 782px) {
	body.admin-bar #main-header.ds-header,
	body.admin-bar .ds-mobile-panel {
		top: 46px !important;
	}
}

/* Final overrides — beat Divi fixed-header and customizer rules. */
html body #page-container #top-header.ct-style.ds-topbar {
	background: #082c4e !important;
	background-color: #082c4e !important;
	background-image: none !important;
}

html body #main-header.ds-header > .container.ds-header__inner,
html body #top-header.ds-topbar .container.ds-topbar__inner {
	width: 100% !important;
	max-width: 1480px !important;
}

html body #main-header.ds-header .logo_container,
html body.et_hide_fixed_logo #main-header.ds-header.et-fixed-header .logo_container,
html body .et-fixed-header .logo_container {
	display: block !important;
	opacity: 1 !important;
	visibility: visible !important;
	position: relative !important;
	height: auto !important;
	width: auto !important;
	max-height: none !important;
	overflow: visible !important;
	transform: none !important;
}

html body #main-header.ds-header img#logo,
html body #main-header.ds-header .ds-brand__mark,
html body .ds-mobile-panel__logo img {
	display: block !important;
	height: 44px !important;
	width: auto !important;
	max-height: 44px !important;
	max-width: 210px !important;
	opacity: 1 !important;
	visibility: visible !important;
}

html body #main-header.ds-header img#logo.ds-brand__word,
html body .ds-mobile-panel__logo .ds-brand__word {
	filter: brightness(0) invert(1) !important;
}

html body #main-header.ds-header .ds-brand__mark,
html body .ds-mobile-panel__logo .ds-brand__mark {
	filter: none !important;
	mix-blend-mode: screen;
	clip-path: inset(0 62% 0 0);
}

@media (min-width: 1241px) and (max-width: 1420px) {
	#main-header.ds-header #top-menu > li > a {
		font-size: 13.5px;
		padding: 8px 8px !important;
	}

	#main-header.ds-header #top-menu > li.menu-item-has-children > a:first-child {
		padding-right: 22px !important;
	}

	#main-header.ds-header .ds-demo-btn {
		font-size: 14px;
		padding: 11px 14px;
	}
}

/* Open parent sits in a dark pill. The active dropdown row is a light blue bar.
   Divi's default current-link color is bright blue and must not win. */
html body #main-header.ds-header #top-menu > li.current-menu-item > a,
html body #main-header.ds-header #top-menu > li.current-menu-ancestor > a,
html body #main-header.ds-header #top-menu > li.current_page_item > a,
html body #main-header.ds-header #top-menu > li.current-menu-parent > a,
html body #main-header.ds-header #top-menu > li:hover > a,
html body #main-header.ds-header #top-menu > li.et-hover > a {
	color: #ffffff !important;
	background: #071f38 !important;
	background-color: #071f38 !important;
}

html body #main-header.ds-header #top-menu ul.sub-menu li.current-menu-item > a,
html body #main-header.ds-header #top-menu ul.sub-menu li.current_page_item > a,
html body #main-header.ds-header #top-menu ul.sub-menu li.current-menu-ancestor > a,
html body #main-header.ds-header #top-menu ul.sub-menu li.current-menu-parent > a,
html body #main-header.ds-header #top-menu ul.sub-menu li:hover > a,
html body #main-header.ds-header #top-menu ul.sub-menu li > a:hover,
html body #main-header.ds-header #top-menu ul.sub-menu li > a:focus {
	color: #1b3348 !important;
	background: #e7f1fb !important;
	background-color: #e7f1fb !important;
	border-radius: 4px;
}

html body #main-header.ds-header #top-menu > li > ul.sub-menu {
	top: calc(100% + 3px) !important;
}
