/* Maker Verified / Salient header integration */
#header-outer .mv-header-account-item,
#header-outer .mv-header-search-item,
#header-secondary-outer .mv-header-account-item,
#header-secondary-outer .mv-header-search-item {
	position: relative;
	display: flex;
	align-items: center;
	margin: 0;
	padding: 0;
}

#header-outer .mv-header-icon-link,
#header-outer .mv-header-account-trigger,
#header-secondary-outer .mv-header-icon-link,
#header-secondary-outer .mv-header-account-trigger {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-width: 42px;
	height: 48px;
	padding: 0 8px;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	appearance: none;
}

#header-outer .mv-header-icon-link:hover,
#header-outer .mv-header-icon-link:focus,
#header-outer .mv-header-account-trigger:hover,
#header-outer .mv-header-account-trigger:focus,
#header-secondary-outer .mv-header-icon-link:hover,
#header-secondary-outer .mv-header-icon-link:focus,
#header-secondary-outer .mv-header-account-trigger:hover,
#header-secondary-outer .mv-header-account-trigger:focus {
	background: transparent;
	color: var(--mv-accent, currentColor);
}

#header-outer .mv-header-icon-link svg,
#header-secondary-outer .mv-header-icon-link svg {
	display: block;
	width: 24px;
	height: 24px;
}

.mv-header-account-name {
	font-size: 15px;
	font-weight: 500;
	line-height: 1.2;
	white-space: nowrap;
}

.mv-header-avatar {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	flex: 0 0 42px;
	border: 1px solid rgba(16, 23, 30, 0.18);
	border-radius: 50%;
	background: #fff;
	overflow: hidden;
}

.mv-header-avatar img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mv-header-avatar img.mv-header-avatar-seal,
.mv-header-avatar .mv-header-avatar-seal {
	object-fit: contain;
	padding: 4px;
}

.mv-header-avatar-large {
	width: 54px;
	height: 54px;
	flex-basis: 54px;
}

.mv-header-account-chevron {
	display: inline-flex;
	width: 12px;
	height: 8px;
	transition: transform 180ms ease;
}

.mv-header-account-chevron svg {
	width: 12px;
	height: 8px;
}

.mv-header-account-item.is-open .mv-header-account-chevron {
	transform: rotate(180deg);
}

.mv-header-account-dropdown {
	position: absolute;
	top: calc(100% + 12px);
	right: 0;
	z-index: 10020;
	box-sizing: border-box;
	width: 288px;
	padding: 12px;
	border: 1px solid rgba(16, 23, 30, 0.14);
	border-radius: 4px;
	background: #fff;
	box-shadow: 0 20px 55px rgba(15, 22, 28, 0.16);
	color: #111820;
}

.mv-header-account-dropdown[hidden] {
	display: none !important;
}

#header-outer .mv-header-account-dropdown a,
#header-secondary-outer .mv-header-account-dropdown a {
	display: block;
	box-sizing: border-box;
	width: 100%;
	padding: 10px 12px;
	border-radius: 2px;
	color: #28323c !important;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.35;
	text-align: left;
	text-decoration: none;
}

#header-outer .mv-header-account-dropdown a:hover,
#header-outer .mv-header-account-dropdown a:focus,
#header-secondary-outer .mv-header-account-dropdown a:hover,
#header-secondary-outer .mv-header-account-dropdown a:focus {
	background: var(--mv-site-gray, #f5f5f7);
	color: #111820 !important;
}

.mv-header-account-summary {
	display: grid;
	grid-template-columns: 54px minmax(0, 1fr);
	align-items: center;
	gap: 12px;
	padding: 8px 8px 14px;
	margin-bottom: 6px;
	border-bottom: 1px solid rgba(16, 23, 30, 0.12);
}

.mv-header-account-summary strong,
.mv-header-account-summary span {
	display: block;
	min-width: 0;
}

.mv-header-account-summary strong {
	margin-bottom: 3px;
	font-size: 15px;
	line-height: 1.25;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.mv-header-account-summary div > span {
	color: #6a737d;
	font-size: 12px;
	line-height: 1.35;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.mv-header-account-divider {
	height: 1px;
	margin: 6px 8px;
	background: rgba(16, 23, 30, 0.12);
}

/* Logged-in members use the site header account menu, not a duplicate portal control. */
body.mv-hide-portal-account .mv-dashboard-topbar .mv-account-menu {
	display: none !important;
}

body.mv-hide-portal-account .mv-dashboard-topbar {
	grid-template-columns: minmax(0, 1fr);
}

body.mv-hide-portal-account .mv-dashboard-nav {
	justify-content: flex-start;
}

/* Full-screen public certification search. */
.mv-header-search-overlay {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: grid;
	place-items: stretch;
}

.mv-header-search-overlay[hidden] {
	display: none !important;
}

.mv-header-search-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(17, 24, 32, 0.46);
	backdrop-filter: blur(8px);
}

.mv-header-search-dialog {
	position: relative;
	z-index: 1;
	box-sizing: border-box;
	width: 100%;
	min-height: 100%;
	padding: clamp(72px, 10vh, 120px) 28px 64px;
	background: rgba(255,255,255,0.98);
	overflow-y: auto;
}

.mv-header-search-close {
	position: fixed;
	top: 30px;
	right: 34px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 1px solid rgba(16, 23, 30, 0.18);
	border-radius: 50%;
	background: #fff;
	color: #111820;
	cursor: pointer;
}

.mv-header-search-close svg {
	width: 22px;
	height: 22px;
}

.mv-header-search-inner {
	width: min(920px, 100%);
	margin: 0 auto;
}

.mv-header-search-inner > .mv-eyebrow {
	display: block;
	margin-bottom: 13px;
	color: var(--mv-accent-dark, #718c26);
}

.mv-header-search-inner h2 {
	margin: 0 0 14px;
	font-size: clamp(42px, 6vw, 72px);
	line-height: 1.02;
}

.mv-header-search-inner > p {
	margin: 0 0 34px;
	color: #5b6876;
	font-size: 18px;
	line-height: 1.6;
}

.mv-header-search-form {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 12px;
	margin-bottom: 32px;
}

.mv-header-search-form input[type="search"] {
	box-sizing: border-box;
	width: 100%;
	height: 60px;
	padding: 0 20px;
	border: 1px solid rgba(16, 23, 30, 0.2);
	border-radius: 2px;
	background: #fff;
	font: inherit;
	font-size: 18px;
}

.mv-header-search-form .mv-button {
	height: 60px;
	padding-inline: 28px;
	border-radius: 2px;
}

.mv-header-search-results {
	min-height: 80px;
}

.mv-header-search-message {
	margin: 0;
	padding: 22px 0;
	color: #687482;
	font-size: 15px;
}

.mv-header-search-result-list {
	border-top: 1px solid rgba(16, 23, 30, 0.14);
}

.mv-header-search-result {
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr) auto;
	align-items: center;
	gap: 18px;
	padding: 18px 0;
	border-bottom: 1px solid rgba(16, 23, 30, 0.14);
	color: #111820;
	text-decoration: none;
}

.mv-header-search-result:hover,
.mv-header-search-result:focus {
	color: #111820;
}

.mv-header-search-result-image {
	display: block;
	width: 64px;
	height: 64px;
	border: 1px solid rgba(16, 23, 30, 0.14);
	border-radius: 50%;
	background: #fff;
	overflow: hidden;
}

.mv-header-search-result-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mv-header-search-result-image img.mv-header-search-seal {
	object-fit: contain;
	padding: 5px;
}

.mv-header-search-result-copy,
.mv-header-search-result-copy strong,
.mv-header-search-result-copy span,
.mv-header-search-result-copy small {
	display: block;
}

.mv-header-search-result-copy strong {
	margin-bottom: 3px;
	font-size: 18px;
	line-height: 1.25;
}

.mv-header-search-result-copy span {
	margin-bottom: 3px;
	color: #52606e;
	font-size: 14px;
}

.mv-header-search-result-copy small {
	color: #78828d;
	font-size: 12px;
	line-height: 1.4;
}

.mv-header-search-page-link {
	display: inline-block;
	margin-top: 24px;
	color: #4d5863;
	font-size: 14px;
	text-decoration: underline;
	text-underline-offset: 4px;
}

body.mv-header-search-open {
	overflow: hidden !important;
}

/* Restrained corner cleanup to match the redesigned site. */
body.mv-sharper-portal .mv-dashboard,
body.mv-sharper-portal .mv-form-card,
body.mv-sharper-portal .mv-overview-card,
body.mv-sharper-portal .mv-tool-card,
body.mv-sharper-portal .mv-certification-summary,
body.mv-sharper-portal .mv-verification-link-panel,
body.mv-sharper-portal .mv-profile-visibility-card,
body.mv-sharper-portal .mv-asset-card,
body.mv-sharper-portal .mv-document-card,
body.mv-sharper-portal .mv-onboarding-card,
body.mv-sharper-portal .mv-onboarding-preview,
body.mv-sharper-portal .mv-onboarding-status-grid,
body.mv-sharper-portal .mv-certificate-preview {
	border-radius: 4px !important;
}

body.mv-sharper-portal .mv-dashboard-nav,
body.mv-sharper-portal .mv-dashboard-nav a,
body.mv-sharper-portal .mv-button,
body.mv-sharper-portal input,
body.mv-sharper-portal textarea,
body.mv-sharper-portal select,
body.mv-sharper-portal .mv-upload-zone,
body.mv-sharper-portal .mv-notice {
	border-radius: 2px;
}

/* Preserve intentionally circular/pill UI. */
body.mv-sharper-portal .mv-member-avatar,
body.mv-sharper-portal .mv-profile-image,
body.mv-sharper-portal .mv-profile-photo,
body.mv-sharper-portal .mv-status,
body.mv-sharper-portal .mv-active-status,
body.mv-sharper-portal .mv-onboarding-step-number,
body.mv-sharper-portal .mv-card-number {
	border-radius: 999px !important;
}

@media (max-width: 1000px) {
	#header-outer .mv-header-account-name {
		display: none;
	}

	#header-outer .mv-header-account-trigger {
		padding-inline: 4px;
	}

	.mv-header-avatar {
		width: 38px;
		height: 38px;
		flex-basis: 38px;
	}
}

@media (max-width: 690px) {
	.mv-header-account-dropdown {
		position: fixed;
		top: 76px;
		right: 14px;
		left: 14px;
		width: auto;
		max-height: calc(100vh - 96px);
		overflow-y: auto;
	}

	.mv-header-search-dialog {
		padding: 82px 20px 44px;
	}

	.mv-header-search-close {
		top: 18px;
		right: 18px;
		width: 42px;
		height: 42px;
	}

	.mv-header-search-inner h2 {
		font-size: 42px;
	}

	.mv-header-search-form {
		grid-template-columns: 1fr;
	}

	.mv-header-search-form input[type="search"],
	.mv-header-search-form .mv-button {
		height: 54px;
	}

	.mv-header-search-result {
		grid-template-columns: 54px minmax(0, 1fr);
		gap: 14px;
	}

	.mv-header-search-result-image {
		width: 54px;
		height: 54px;
	}

	.mv-header-search-result > .mv-status {
		grid-column: 2;
		justify-self: start;
	}
}


/* v0.2.49: compact header controls and smaller-desktop resilience. */
#header-outer .mv-header-icon-link,
#header-outer .mv-header-account-trigger,
#header-secondary-outer .mv-header-icon-link,
#header-secondary-outer .mv-header-account-trigger {
	gap: 7px;
	min-width: 36px;
	height: 44px;
	padding-inline: 5px;
}

#header-outer .mv-header-icon-link svg,
#header-secondary-outer .mv-header-icon-link svg {
	width: 21px;
	height: 21px;
}

.mv-header-avatar {
	width: 37px;
	height: 37px;
	flex-basis: 37px;
}

.mv-header-account-chevron,
.mv-header-account-chevron svg {
	width: 10px;
}

.mv-header-account-name {
	max-width: 13ch;
	overflow: hidden;
	text-overflow: ellipsis;
}

body.mv-site-header-integration #header-outer .pull-right-wrap .sf-menu > li > a {
	white-space: nowrap;
}

@media (min-width: 1001px) and (max-width: 1240px) {
	body.mv-site-header-integration #header-outer .pull-right-wrap .sf-menu > li > a {
		padding-right: 10px !important;
		padding-left: 10px !important;
		font-size: 13px !important;
	}

	#header-outer .mv-header-account-trigger {
		gap: 6px;
		padding-inline: 3px;
	}
}

@media (max-width: 1000px) {
	.mv-header-avatar {
		width: 34px;
		height: 34px;
		flex-basis: 34px;
	}

	#header-outer .mv-header-account-trigger,
	#header-outer .mv-header-icon-link {
		min-width: 34px;
		height: 40px;
		padding-inline: 2px;
	}
}


/* v0.2.50: compact header spacing and Salient mobile off-canvas isolation. */
/* Salient may repeat the mobile-header hook inside the slide-out menu. Keep
 * Maker Verified controls in the persistent header only. */
#slide-out-widget-area .mv-header-mobile-item,
#slide-out-widget-area .mv-header-account-dropdown,
#slide-out-widget-area-bg .mv-header-mobile-item,
body #slide-out-widget-area .mv-header-account-item,
body #slide-out-widget-area .mv-header-search-item {
	display: none !important;
}

/* Remove extra theme spacing around the two custom pull-right controls. */
#header-outer .pull-right-wrap .mv-header-account-item,
#header-outer .pull-right-wrap .mv-header-search-item,
#header-secondary-outer .pull-right-wrap .mv-header-account-item,
#header-secondary-outer .pull-right-wrap .mv-header-search-item {
	margin-right: 0 !important;
	margin-left: 0 !important;
	padding-right: 0 !important;
	padding-left: 0 !important;
}

#header-outer .pull-right-wrap .mv-header-account-item + .mv-header-search-item,
#header-secondary-outer .pull-right-wrap .mv-header-account-item + .mv-header-search-item {
	margin-left: -9px !important;
}

/* Keep the profile image centered inside its circular frame even when Salient
 * applies global image alignment rules. */
.mv-header-avatar > img {
	position: absolute !important;
	inset: 0 !important;
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	transform: none !important;
	object-fit: cover !important;
}

.mv-header-avatar > img.mv-header-avatar-seal {
	padding: 3px !important;
	object-fit: contain !important;
}

@media (max-width: 1000px) {
	#header-outer .mv-header-mobile-item,
	#header-secondary-outer .mv-header-mobile-item {
		align-self: center !important;
		align-items: center !important;
		height: 100% !important;
		margin-top: 0 !important;
		margin-bottom: 0 !important;
		padding: 0 !important;
		line-height: 1 !important;
		transform: none !important;
	}

	#header-outer .mv-header-mobile-item .mv-header-icon-link,
	#header-outer .mv-header-mobile-item .mv-header-account-trigger,
	#header-secondary-outer .mv-header-mobile-item .mv-header-icon-link,
	#header-secondary-outer .mv-header-mobile-item .mv-header-account-trigger {
		display: inline-flex !important;
		align-items: center !important;
		justify-content: center !important;
		width: 30px;
		min-width: 30px;
		height: 40px !important;
		margin: 0 !important;
		padding: 0 !important;
		line-height: 1 !important;
		top: auto !important;
		transform: none !important;
	}

	#header-outer .mv-header-mobile-item .mv-header-icon-link svg,
	#header-secondary-outer .mv-header-mobile-item .mv-header-icon-link svg {
		width: 19px;
		height: 19px;
	}

	#header-outer .mv-header-mobile-item .mv-header-avatar,
	#header-secondary-outer .mv-header-mobile-item .mv-header-avatar {
		position: relative !important;
		top: auto !important;
		width: 32px;
		height: 32px;
		flex-basis: 32px;
		margin: 0 !important;
		transform: none !important;
	}

	/* Logged-out account and search icons sit tightly together. */
	#header-outer .mv-header-account-logged-out.mv-header-mobile-item + .mv-header-search-item,
	#header-secondary-outer .mv-header-account-logged-out.mv-header-mobile-item + .mv-header-search-item {
		margin-left: -7px !important;
	}

	/* Preserve a clear separation from Salient's hamburger toggle. */
	#header-outer .mv-header-search-item.mv-header-mobile-item,
	#header-secondary-outer .mv-header-search-item.mv-header-mobile-item,
	body.mv-header-user-logged-in #header-outer .mv-header-account-item.mv-header-mobile-item,
	body.mv-header-user-logged-in #header-secondary-outer .mv-header-account-item.mv-header-mobile-item {
		margin-right: 12px !important;
	}

	.mv-header-account-chevron,
	.mv-header-account-chevron svg {
		width: 8px;
		height: 6px;
	}
}


/* v0.2.53: JavaScript removes all cloned controls that are not inside the
 * persistent site header. Keep these selectors only as an early-paint fallback
 * for Salient's standard off-canvas wrappers. */
#slide-out-widget-area > .mv-header-account-item,
#slide-out-widget-area > .mv-header-search-item,
#slide-out-widget-area .off-canvas-menu-container .mv-header-account-item,
#slide-out-widget-area .off-canvas-menu-container .mv-header-search-item,
.slide-out-widget-area .off-canvas-menu-container .mv-header-account-item,
.slide-out-widget-area .off-canvas-menu-container .mv-header-search-item {
	display: none !important;
}


/* v0.2.54: Salient Simple Dropdown mobile navigation. The theme can inherit
 * pull-right hook items into #mobile-menu even though the same controls are
 * already present in the persistent mobile header. */
#mobile-menu .mv-header-account-item,
#mobile-menu .mv-header-search-item,
#header-outer #mobile-menu .mv-header-account-item,
#header-outer #mobile-menu .mv-header-search-item {
	display: none !important;
}

/* v0.2.55: tighten logged-out desktop account/search controls only. */
@media (min-width: 1001px) {
	#header-outer .pull-right-wrap .mv-header-account-logged-out,
	#header-outer .pull-right-wrap .mv-header-search-item,
	#header-secondary-outer .pull-right-wrap .mv-header-account-logged-out,
	#header-secondary-outer .pull-right-wrap .mv-header-search-item {
		display: inline-flex !important;
		flex: 0 0 auto !important;
		width: 30px !important;
		min-width: 30px !important;
		margin: 0 !important;
		padding: 0 !important;
	}

	#header-outer .pull-right-wrap .mv-header-account-logged-out > .mv-header-icon-link,
	#header-outer .pull-right-wrap .mv-header-search-item > .mv-header-icon-link,
	#header-secondary-outer .pull-right-wrap .mv-header-account-logged-out > .mv-header-icon-link,
	#header-secondary-outer .pull-right-wrap .mv-header-search-item > .mv-header-icon-link {
		width: 30px !important;
		min-width: 30px !important;
		height: 44px !important;
		margin: 0 !important;
		padding: 0 !important;
	}

	#header-outer .pull-right-wrap .mv-header-account-logged-out + .mv-header-search-item,
	#header-secondary-outer .pull-right-wrap .mv-header-account-logged-out + .mv-header-search-item {
		margin-left: 2px !important;
	}
}


/* v0.2.57: Salient applies normal navigation-link padding to custom header
 * controls. Remove that padding only from the grouped visitor icons so the
 * account and verification controls sit together without affecting menus or
 * the Apply for Certification button. */
@media (min-width: 1001px) {
	body.mv-header-user-logged-out #header-outer #top nav > ul > li.mv-header-visitor-controls,
	body.mv-header-user-logged-out #header-outer nav > ul > li.mv-header-visitor-controls,
	body.mv-header-user-logged-out #header-secondary-outer #top nav > ul > li.mv-header-visitor-controls,
	body.mv-header-user-logged-out #header-secondary-outer nav > ul > li.mv-header-visitor-controls {
		display: inline-flex !important;
		align-items: center !important;
		justify-content: flex-start !important;
		gap: 4px !important;
		width: auto !important;
		min-width: 0 !important;
		margin: 0 0 0 14px !important;
		padding: 0 !important;
	}

	/* Match and override Salient's high-specificity navigation padding rule. */
	body.mv-header-user-logged-out #header-outer[data-lhe="default"] #top nav > ul > li.mv-header-visitor-controls > a,
	body.mv-header-user-logged-out #header-outer[data-lhe="text_reveal"] #top nav > ul > li.mv-header-visitor-controls:not([class*="menu-item-btn"]) > a,
	body.mv-header-user-logged-out #header-outer[data-lhe="animated_underline"] #top nav > ul > li.mv-header-visitor-controls > a,
	body.mv-header-user-logged-out #header-outer #top nav > ul > li.mv-header-visitor-controls > a,
	body.mv-header-user-logged-out #header-outer nav > ul > li.mv-header-visitor-controls > a,
	body.mv-header-user-logged-out #header-secondary-outer #top nav > ul > li.mv-header-visitor-controls > a,
	body.mv-header-user-logged-out #header-secondary-outer nav > ul > li.mv-header-visitor-controls > a {
		display: inline-flex !important;
		align-items: center !important;
		justify-content: center !important;
		box-sizing: border-box !important;
		flex: 0 0 26px !important;
		width: 26px !important;
		min-width: 26px !important;
		height: 44px !important;
		margin: 0 !important;
		padding-left: 0 !important;
		padding-right: 0 !important;
	}
}

#mobile-menu .mv-header-visitor-controls,
#slide-out-widget-area .mv-header-visitor-controls,
.slide-out-widget-area .mv-header-visitor-controls,
.off-canvas-menu-container .mv-header-visitor-controls {
	display: none !important;
}
