/*
 * Public header — logo scale + nav type (tokens). Bar min-heights at file end.
 * (deploy ping: staging SFTP sync)
 */

body:not(.fpc-leader-portal):not(.fpc-self-service-active) .main-header-menu .menu-link,
body:not(.fpc-leader-portal):not(.fpc-self-service-active) .main-header-menu > .menu-item > a,
body:not(.fpc-leader-portal):not(.fpc-self-service-active) .ast-builder-menu .menu-link,
body:not(.fpc-leader-portal):not(.fpc-self-service-active) .ast-builder-menu > .menu-item > a,
body:not(.fpc-leader-portal):not(.fpc-self-service-active) .elementor-nav-menu a,
body:not(.fpc-leader-portal):not(.fpc-self-service-active) .ast-header-break-point .main-header-menu .menu-link,
body:not(.fpc-leader-portal):not(.fpc-self-service-active) .ast-header-break-point .main-header-menu > .menu-item > a,
body:not(.fpc-leader-portal):not(.fpc-self-service-active) .ast-mobile-header-content .main-header-menu a {
	font-family: Inter, sans-serif !important;
	font-size: var(--fpc-public-header-nav-font-size) !important;
	font-weight: 500 !important;
	line-height: 1.2 !important;
	letter-spacing: 0.01em;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

body:not(.fpc-leader-portal):not(.fpc-self-service-active) .main-header-menu > .menu-item,
body:not(.fpc-leader-portal):not(.fpc-self-service-active) .ast-builder-menu > .menu-item {
	display: flex !important;
	align-items: center !important;
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}

@media (min-width: 922px) {
	body:not(.fpc-leader-portal):not(.fpc-self-service-active) #masthead .ast-main-header-bar-alignment,
	body:not(.fpc-leader-portal):not(.fpc-self-service-active) #masthead .main-header-bar-navigation,
	body:not(.fpc-leader-portal):not(.fpc-self-service-active) #masthead #primary-site-navigation.site-navigation {
		display: flex !important;
		align-items: center !important;
		line-height: normal !important;
	}

	body:not(.fpc-leader-portal):not(.fpc-self-service-active) #masthead .main-navigation,
	body:not(.fpc-leader-portal):not(.fpc-self-service-active) #masthead .main-header-menu,
	body:not(.fpc-leader-portal):not(.fpc-self-service-active) #masthead .main-header-menu > .menu-item {
		line-height: normal !important;
	}

	body:not(.fpc-leader-portal):not(.fpc-self-service-active) #masthead .main-navigation {
		display: inline-flex !important;
		align-items: center !important;
	}

	body:not(.fpc-leader-portal):not(.fpc-self-service-active) #masthead .main-header-bar-wrap,
	body:not(.fpc-leader-portal):not(.fpc-self-service-active) #masthead .main-header-bar {
		display: flex !important;
		align-items: center !important;
		box-sizing: border-box !important;
	}

	html.dark body:not(.fpc-leader-portal):not(.fpc-self-service-active) #masthead .main-header-bar-wrap,
	html.dark body:not(.fpc-leader-portal):not(.fpc-self-service-active) #masthead .main-header-bar {
		flex: 1 1 auto !important;
		width: 100% !important;
		min-height: 100% !important;
	}

	body:not(.fpc-leader-portal):not(.fpc-self-service-active) #masthead .main-header-bar > .ast-container,
	body:not(.fpc-leader-portal):not(.fpc-self-service-active) #masthead .main-header-container {
		display: flex !important;
		align-items: center !important;
		min-height: 100% !important;
		height: 100% !important;
		width: 100% !important;
		box-sizing: border-box !important;
		line-height: normal !important;
	}

	body:not(.fpc-leader-portal):not(.fpc-self-service-active) #masthead.site-header {
		display: flex !important;
		flex-direction: column !important;
		justify-content: center !important;
	}

	body:not(.fpc-leader-portal):not(.fpc-self-service-active) #masthead .ast-primary-header-bar,
	body:not(.fpc-leader-portal):not(.fpc-self-service-active) #masthead .site-primary-header-wrap,
	body:not(.fpc-leader-portal):not(.fpc-self-service-active) #masthead .main-header-bar {
		width: 100% !important;
	}

	body:not(.fpc-leader-portal):not(.fpc-self-service-active) .main-header-bar .ast-builder-grid-row {
		width: 100% !important;
		max-width: 100% !important;
		justify-content: space-between !important;
		align-items: center !important;
		box-sizing: border-box !important;
	}

	html:not(.dark) body:not(.fpc-leader-portal):not(.fpc-self-service-active) .main-header-bar .ast-builder-grid-row {
		min-height: var(--fpc-public-header-bar-h) !important;
	}

	body:not(.fpc-leader-portal):not(.fpc-self-service-active) .main-header-bar .site-header-primary-section-left {
		justify-self: start !important;
		margin-right: auto !important;
		flex: 0 1 auto !important;
		align-self: center !important;
	}

	body:not(.fpc-leader-portal):not(.fpc-self-service-active) .main-header-bar .site-header-primary-section-right {
		justify-self: end !important;
		margin-left: auto !important;
		flex: 0 1 auto !important;
		display: flex !important;
		align-items: center !important;
		align-self: center !important;
	}

	body:not(.fpc-leader-portal):not(.fpc-self-service-active) .main-header-bar .site-header-primary-section-right .ast-builder-menu,
	body:not(.fpc-leader-portal):not(.fpc-self-service-active) .main-header-bar .site-header-primary-section-right .ast-builder-layout-element {
		align-self: center !important;
		display: flex !important;
		align-items: center !important;
	}

	body:not(.fpc-leader-portal):not(.fpc-self-service-active) .main-header-bar .main-header-menu,
	body:not(.fpc-leader-portal):not(.fpc-self-service-active) .main-header-bar .ast-builder-menu .main-header-menu {
		display: flex !important;
		flex-wrap: nowrap !important;
		align-items: center !important;
		align-self: center !important;
		margin: 0 !important;
	}

	body:not(.fpc-leader-portal):not(.fpc-self-service-active) .main-header-menu > .menu-item,
	body:not(.fpc-leader-portal):not(.fpc-self-service-active) .ast-builder-menu > .menu-item {
		margin-left: 0.5em !important;
		margin-right: 0.5em !important;
	}

	body:not(.fpc-leader-portal):not(.fpc-self-service-active) .main-header-menu > .menu-item:first-child,
	body:not(.fpc-leader-portal):not(.fpc-self-service-active) .ast-builder-menu > .menu-item:first-child {
		margin-left: 0 !important;
	}
}

@media (max-width: 921px) {
	body:not(.fpc-leader-portal):not(.fpc-self-service-active) #masthead .main-header-bar .site-branding {
		transform: translateY(3px) !important;
	}
}

@media (min-width: 922px) and (max-width: 1100px) {
	body:not(.fpc-leader-portal):not(.fpc-self-service-active) .main-header-menu > .menu-item,
	body:not(.fpc-leader-portal):not(.fpc-self-service-active) .ast-builder-menu > .menu-item {
		margin-left: 0.38em !important;
		margin-right: 0.38em !important;
	}
}

body:not(.fpc-leader-portal):not(.fpc-self-service-active) .site-header,
body:not(.fpc-leader-portal):not(.fpc-self-service-active) .main-header-bar,
body:not(.fpc-leader-portal):not(.fpc-self-service-active) .ast-primary-header-bar,
body:not(.fpc-leader-portal):not(.fpc-self-service-active) .ast-mobile-header-wrap,
body:not(.fpc-leader-portal):not(.fpc-self-service-active) .ast-mobile-header-wrap .main-header-bar,
body:not(.fpc-leader-portal):not(.fpc-self-service-active) .site-header-primary-section,
body:not(.fpc-leader-portal):not(.fpc-self-service-active) .ast-builder-grid-row,
body:not(.fpc-leader-portal):not(.fpc-self-service-active) .site-branding,
body:not(.fpc-leader-portal):not(.fpc-self-service-active) .ast-site-identity,
body:not(.fpc-leader-portal):not(.fpc-self-service-active) .custom-logo-link,
body:not(.fpc-leader-portal):not(.fpc-self-service-active) .site-logo-img,
body:not(.fpc-leader-portal):not(.fpc-self-service-active) .custom-logo-link picture {
	overflow: visible !important;
}

body:not(.fpc-leader-portal):not(.fpc-self-service-active) .site-header .site-branding,
body:not(.fpc-leader-portal):not(.fpc-self-service-active) .site-header .ast-site-identity,
body:not(.fpc-leader-portal):not(.fpc-self-service-active) .ast-mobile-header-wrap .site-branding,
body:not(.fpc-leader-portal):not(.fpc-self-service-active) .ast-mobile-header-wrap .ast-site-identity,
body:not(.fpc-leader-portal):not(.fpc-self-service-active) .main-header-bar .site-branding,
body:not(.fpc-leader-portal):not(.fpc-self-service-active) .main-header-bar .ast-site-identity,
body:not(.fpc-leader-portal):not(.fpc-self-service-active) .site-header .custom-logo-link,
body:not(.fpc-leader-portal):not(.fpc-self-service-active) .site-header .site-logo-img,
body:not(.fpc-leader-portal):not(.fpc-self-service-active) .ast-mobile-header-wrap .custom-logo-link,
body:not(.fpc-leader-portal):not(.fpc-self-service-active) .ast-mobile-header-wrap .site-logo-img,
body:not(.fpc-leader-portal):not(.fpc-self-service-active) .main-header-bar .custom-logo-link,
body:not(.fpc-leader-portal):not(.fpc-self-service-active) .main-header-bar .site-logo-img {
	height: auto !important;
	max-height: none !important;
	min-height: 0 !important;
	overflow: visible !important;
}

body:not(.fpc-leader-portal):not(.fpc-self-service-active) .site-header .custom-logo-link img,
body:not(.fpc-leader-portal):not(.fpc-self-service-active) .site-header .site-logo-img img,
body:not(.fpc-leader-portal):not(.fpc-self-service-active) .site-header .ast-site-identity img,
body:not(.fpc-leader-portal):not(.fpc-self-service-active) .site-header .site-branding img,
body:not(.fpc-leader-portal):not(.fpc-self-service-active) .ast-mobile-header-wrap .custom-logo-link img,
body:not(.fpc-leader-portal):not(.fpc-self-service-active) .ast-mobile-header-wrap .site-logo-img img,
body:not(.fpc-leader-portal):not(.fpc-self-service-active) .ast-mobile-header-wrap .ast-site-identity img,
body:not(.fpc-leader-portal):not(.fpc-self-service-active) .ast-mobile-header-wrap .site-branding img,
body:not(.fpc-leader-portal):not(.fpc-self-service-active) .main-header-bar .custom-logo-link img,
body:not(.fpc-leader-portal):not(.fpc-self-service-active) .main-header-bar .site-logo-img img,
body:not(.fpc-leader-portal):not(.fpc-self-service-active) .main-header-bar .ast-site-identity img,
body:not(.fpc-leader-portal):not(.fpc-self-service-active) .main-header-bar .site-branding img,
body:not(.fpc-leader-portal):not(.fpc-self-service-active) .site-header .custom-logo-link img.custom-logo,
body:not(.fpc-leader-portal):not(.fpc-self-service-active) .ast-mobile-header-wrap .custom-logo-link img.custom-logo,
body:not(.fpc-leader-portal):not(.fpc-self-service-active) .main-header-bar .custom-logo-link img.custom-logo {
	box-sizing: content-box !important;
	display: block !important;
	width: auto !important;
	height: auto !important;
	max-width: none !important;
	max-height: var(--fpc-public-header-logo-slot-h) !important;
	object-fit: contain !important;
	object-position: left center !important;
	transform: scale(var(--fpc-public-header-logo-scale)) !important;
	transform-origin: left center !important;
}

@media (max-width: 921px) {
	body:not(.fpc-leader-portal):not(.fpc-self-service-active) .site-header .custom-logo-link img,
	body:not(.fpc-leader-portal):not(.fpc-self-service-active) .site-header .site-logo-img img,
	body:not(.fpc-leader-portal):not(.fpc-self-service-active) .site-header .ast-site-identity img,
	body:not(.fpc-leader-portal):not(.fpc-self-service-active) .site-header .site-branding img,
	body:not(.fpc-leader-portal):not(.fpc-self-service-active) .ast-mobile-header-wrap .custom-logo-link img,
	body:not(.fpc-leader-portal):not(.fpc-self-service-active) .ast-mobile-header-wrap .site-logo-img img,
	body:not(.fpc-leader-portal):not(.fpc-self-service-active) .ast-mobile-header-wrap .ast-site-identity img,
	body:not(.fpc-leader-portal):not(.fpc-self-service-active) .ast-mobile-header-wrap .site-branding img,
	body:not(.fpc-leader-portal):not(.fpc-self-service-active) .main-header-bar .custom-logo-link img,
	body:not(.fpc-leader-portal):not(.fpc-self-service-active) .main-header-bar .site-logo-img img,
	body:not(.fpc-leader-portal):not(.fpc-self-service-active) .main-header-bar .ast-site-identity img,
	body:not(.fpc-leader-portal):not(.fpc-self-service-active) .main-header-bar .site-branding img,
	body:not(.fpc-leader-portal):not(.fpc-self-service-active) .site-header .custom-logo-link img.custom-logo,
	body:not(.fpc-leader-portal):not(.fpc-self-service-active) .ast-mobile-header-wrap .custom-logo-link img.custom-logo,
	body:not(.fpc-leader-portal):not(.fpc-self-service-active) .main-header-bar .custom-logo-link img.custom-logo {
		max-height: calc(var(--fpc-public-header-logo-slot-h-mobile) - 4px) !important;
	}
}

html:not(.dark) body:not(.fpc-leader-portal):not(.fpc-self-service-active) #masthead.site-header,
html:not(.dark) body:not(.fpc-leader-portal):not(.fpc-self-service-active) #masthead .site-header,
html:not(.dark) body:not(.fpc-leader-portal):not(.fpc-self-service-active) .ast-primary-header-bar,
html:not(.dark) body:not(.fpc-leader-portal):not(.fpc-self-service-active) .ast-primary-header-bar .site-primary-header-wrap,
html:not(.dark) body:not(.fpc-leader-portal):not(.fpc-self-service-active) #masthead .main-header-bar,
html:not(.dark) body:not(.fpc-leader-portal):not(.fpc-self-service-active) .main-header-bar .ast-builder-grid-row,
html:not(.dark) body:not(.fpc-leader-portal):not(.fpc-self-service-active) .ast-mobile-header-wrap .main-header-bar,
html:not(.dark) body:not(.fpc-leader-portal):not(.fpc-self-service-active) .ast-mobile-header-wrap .main-header-bar .ast-builder-grid-row {
	min-height: var(--fpc-public-header-bar-h) !important;
	box-sizing: border-box;
}

@media (max-width: 921px) {
	html:not(.dark) body:not(.fpc-leader-portal):not(.fpc-self-service-active) #masthead.site-header,
	html:not(.dark) body:not(.fpc-leader-portal):not(.fpc-self-service-active) #masthead .site-header,
	html:not(.dark) body:not(.fpc-leader-portal):not(.fpc-self-service-active) .ast-primary-header-bar,
	html:not(.dark) body:not(.fpc-leader-portal):not(.fpc-self-service-active) .ast-primary-header-bar .site-primary-header-wrap,
	html:not(.dark) body:not(.fpc-leader-portal):not(.fpc-self-service-active) #masthead .main-header-bar,
	html:not(.dark) body:not(.fpc-leader-portal):not(.fpc-self-service-active) .main-header-bar .ast-builder-grid-row,
	html:not(.dark) body:not(.fpc-leader-portal):not(.fpc-self-service-active) .ast-mobile-header-wrap .main-header-bar,
	html:not(.dark) body:not(.fpc-leader-portal):not(.fpc-self-service-active) .ast-mobile-header-wrap .main-header-bar .ast-builder-grid-row {
		min-height: var(--fpc-public-header-bar-h-mobile) !important;
	}

	html.dark body:not(.fpc-leader-portal):not(.fpc-self-service-active) #masthead.site-header,
	html.dark body:not(.fpc-leader-portal):not(.fpc-self-service-active) #masthead .site-header,
	html.dark body:not(.fpc-leader-portal):not(.fpc-self-service-active) .ast-primary-header-bar,
	html.dark body:not(.fpc-leader-portal):not(.fpc-self-service-active) .ast-primary-header-bar .site-primary-header-wrap,
	html.dark body:not(.fpc-leader-portal):not(.fpc-self-service-active) #masthead .main-header-bar,
	html.dark body:not(.fpc-leader-portal):not(.fpc-self-service-active) .main-header-bar .ast-builder-grid-row,
	html.dark body:not(.fpc-leader-portal):not(.fpc-self-service-active) .ast-mobile-header-wrap .main-header-bar,
	html.dark body:not(.fpc-leader-portal):not(.fpc-self-service-active) .ast-mobile-header-wrap .main-header-bar .ast-builder-grid-row {
		min-height: var(--fpc-public-header-bar-h-mobile-dark) !important;
		box-sizing: border-box;
	}
}
