/* Thin site topbar + header offset + mobile header CTA. After header-hero sheets. */

:root {
	--yepx-topbar-h: 0px;
}

.yepx-chrome--has-topbar {
	position: sticky;
	top: 0;
	z-index: var(--yepx-z-header, 50);
	background: #fff;
}

.admin-bar .yepx-chrome--has-topbar {
	top: var(--wp-admin--admin-bar--height, 32px);
}

.yepx-chrome--has-topbar .yepx-site-header,
.yepx-chrome--has-topbar .yepx-site-header.yepx-header,
.yepx-chrome--has-topbar .yepx-site-header.yepx-header--sticky {
	position: relative;
	top: auto;
	z-index: auto;
}

.yepx-topbar {
	display: none;
	background: var(--yepx-color-bg-soft, #f7f9fa);
	color: var(--yepx-color-muted, #81909a);
	border-bottom: 1px solid var(--yepx-color-border-soft, #eef1f3);
	font-size: 0.8125rem;
	line-height: 1.1;
	min-height: 0;
	max-height: 0;
	overflow: hidden;
	transform: translateY(-100%);
	opacity: 0;
	pointer-events: none;
	transition: transform var(--yepx-duration, 240ms) var(--yepx-ease, ease),
		max-height var(--yepx-duration, 240ms) var(--yepx-ease, ease),
		opacity var(--yepx-duration-fast, 140ms) var(--yepx-ease, ease);
}

.yepx-topbar__inner {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	min-height: 29px;
	padding-block: 0.16rem;
}

.yepx-topbar__meta {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 1.1rem;
	list-style: none;
	margin: 0;
	padding: 0;
	margin-inline-start: auto;
}

.yepx-topbar a.yepx-topbar__link {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	color: var(--yepx-color-muted, #81909a);
	text-decoration: none;
	min-height: 26px;
	white-space: nowrap;
}

.yepx-topbar a.yepx-topbar__link:hover,
.yepx-topbar a.yepx-topbar__link:focus-visible {
	color: var(--yepx-color-ink, #102c3b);
}

.yepx-topbar__glyph {
	width: 15px;
	height: 15px;
	flex: 0 0 auto;
}

.yepx-topbar__cta.yepx-btn,
.yepx-topbar__cta.yepx-btn--soft,
.yepx-topbar__cta.yepx-btn[data-yepx-lead-modal] {
	min-height: 26px;
	height: 26px;
	min-width: 0;
	padding: 0 0.95rem;
	font-size: 0.8125rem;
	border-radius: var(--yepx-btn-radius, 9999px);
	background: var(--yepx-color-bg-warm, var(--yepx-color-surface-alt, #faf9f7));
	background-image: none;
	color: var(--yepx-color-ink, var(--yepx-color-navy, #102c3b));
	box-shadow: none;
	border: 0;
}

.yepx-topbar__cta.yepx-btn:hover,
.yepx-topbar__cta.yepx-btn:focus,
.yepx-topbar__cta.yepx-btn[data-yepx-lead-modal]:hover,
.yepx-topbar__cta.yepx-btn[data-yepx-lead-modal]:focus {
	background: var(--yepx-color-surface-alt, #faf9f7);
	background-image: none;
	color: var(--yepx-color-ink, var(--yepx-color-navy, #102c3b));
	box-shadow: none;
}

.yepx-topbar__cta .yepx-btn__icon {
	width: 20px;
	height: 20px;
	background: transparent;
	color: inherit;
}

.yepx-topbar__cta .yepx-btn__glyph,
.yepx-topbar__cta .yepx-btn__icon svg {
	width: 12px;
	height: 12px;
}

.yepx-header__cta .yepx-btn__icon,
.yepx-drawer__cta .yepx-btn__icon,
.yepx-header__cta .yepx-btn__mobile .yepx-btn__icon,
.yepx-header__cta .yepx-btn:hover .yepx-btn__icon,
.yepx-drawer__cta .yepx-btn:hover .yepx-btn__icon {
	background: transparent;
	background-image: none;
	color: #fff;
}

.yepx-header__cta .yepx-btn__icon,
.yepx-drawer__cta .yepx-btn__icon {
	width: 20px;
	height: 20px;
}

.yepx-header__cta .yepx-btn__glyph,
.yepx-header__cta .yepx-btn__icon svg,
.yepx-drawer__cta .yepx-btn__glyph,
.yepx-drawer__cta .yepx-btn__icon svg {
	width: 17px;
	height: 17px;
	color: #fff;
}

.yepx-header__cta .yepx-btn__mobile {
	display: none;
}

.yepx-nav--primary > ul > li > a.yepx-btn,
.yepx-nav--primary > ul > li > a.yepx-btn--header,
.yepx-nav--primary > ul > li > a.yepx-btn--compact {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-inline-start: 0.35rem;
	border-radius: var(--yepx-btn-radius, 30px);
	white-space: nowrap;
}

@media (min-width: 1025px) {
	.yepx-topbar {
		display: block;
		min-height: 0;
		max-height: 38px;
		transform: translateY(0);
		opacity: 1;
		pointer-events: auto;
		overflow: hidden;
	}

	.yepx-topbar__inner {
		min-height: 29px;
	}

	html.is-topbar-away .yepx-topbar,
	.yepx-topbar.is-hidden {
		transform: translateY(-100%);
		max-height: 0;
		opacity: 0;
		pointer-events: none;
		border-bottom-width: 0;
	}
}

@media (max-width: 1024px) {
	html {
		scrollbar-gutter: stable;
	}

	:root {
		--yepx-topbar-h: 0px;
	}

	.yepx-topbar,
	.yepx-topbar#yepx-topbar,
	.yepx-chrome--has-topbar .yepx-topbar {
		display: none !important;
		visibility: hidden !important;
		height: 0 !important;
		min-height: 0 !important;
		max-height: 0 !important;
		padding: 0 !important;
		margin: 0 !important;
		border: 0 !important;
		overflow: hidden !important;
		line-height: 0 !important;
		opacity: 0 !important;
		pointer-events: none !important;
		transform: none !important;
	}

	.yepx-topbar__inner,
	.yepx-topbar__meta,
	.yepx-topbar__link,
	.yepx-topbar__cta,
	.yepx-chrome--has-topbar .yepx-topbar__inner,
	.yepx-chrome--has-topbar .yepx-topbar__meta {
		display: none !important;
		height: 0 !important;
		min-height: 0 !important;
		max-height: 0 !important;
		padding: 0 !important;
		margin: 0 !important;
		border: 0 !important;
	}

	.yepx-chrome--has-topbar {
		padding: 0;
		margin: 0;
		min-height: 0;
	}

	.yepx-chrome--has-topbar .yepx-site-header,
	.yepx-chrome--has-topbar .yepx-site-header.yepx-header,
	.yepx-chrome--has-topbar .yepx-header {
		padding-top: 0 !important;
		margin-top: 0 !important;
	}

	.yepx-site-header,
	.yepx-site-header.yepx-header,
	.yepx-site-header.yepx-header--sticky,
	.yepx-site-header.is-scrolled,
	.yepx-site-header.is-compact,
	.yepx-header.is-scrolled,
	.yepx-header.is-compact,
	.yepx-chrome--has-topbar .yepx-site-header.is-scrolled,
	.yepx-chrome--has-topbar .yepx-site-header.is-compact {
		height: auto;
		min-height: 0;
		padding-block: 0 !important;
		margin-block: 0 !important;
		box-shadow: none;
		border-bottom-width: 1px;
	}

	html.is-topbar-away .yepx-chrome--has-topbar,
	.yepx-chrome--has-topbar.is-topbar-away,
	html.is-topbar-away .yepx-site-header,
	.yepx-chrome--has-topbar .yepx-site-header,
	.yepx-chrome--has-topbar.is-topbar-away .yepx-site-header,
	html.is-topbar-away .yepx-chrome--has-topbar .yepx-site-header {
		transform: none !important;
		padding-top: 0 !important;
		margin-top: 0 !important;
	}

	.yepx-header__cta .yepx-btn__mobile {
		display: inline-flex;
		align-items: center;
		gap: 0.3rem;
	}

	.yepx-header__cta .yepx-btn__full,
	.yepx-header__cta .yepx-btn__short {
		display: none !important;
	}

	.yepx-site-header .yepx-header__inner,
	.yepx-site-header__inner,
	.yepx-chrome--has-topbar .yepx-header__inner,
	.yepx-header.is-compact .yepx-header__inner,
	.yepx-site-header.is-scrolled .yepx-header__inner,
	.yepx-site-header.is-compact .yepx-header__inner,
	.yepx-chrome--has-topbar .yepx-site-header.is-scrolled .yepx-header__inner,
	.yepx-chrome--has-topbar .yepx-site-header.is-compact .yepx-header__inner {
		display: flex;
		flex-wrap: nowrap;
		align-items: center;
		justify-content: flex-start;
		gap: 8px;
		width: 100%;
		max-width: 100%;
		box-sizing: border-box;
		height: 60px;
		min-height: 60px;
		max-height: 60px;
		padding-block: 0;
		padding-inline: 12px;
	}

	.yepx-site-header .yepx-branding,
	.yepx-site-header .yepx-site-branding {
		flex: 0 1 auto;
		min-width: 0;
		max-width: 136px;
		margin: 0;
		order: 1;
	}

	.yepx-site-header .yepx-logo,
	.yepx-site-header .custom-logo,
	.yepx-site-header .yepx-branding img,
	.yepx-site-header .yepx-site-branding img {
		width: auto;
		max-width: 100%;
		height: auto;
		max-height: 32px;
	}

	.yepx-header__cta,
	.yepx-site-header.is-scrolled .yepx-header__cta,
	.yepx-site-header.is-compact .yepx-header__cta,
	.yepx-header.is-scrolled .yepx-header__cta,
	.yepx-header.is-compact .yepx-header__cta {
		display: flex !important;
		flex: 0 0 auto;
		min-width: 0;
		margin: 0 !important;
		margin-inline-start: auto !important;
		order: 2;
		justify-content: flex-end;
	}

	.yepx-site-header .yepx-header__cta .yepx-btn,
	.yepx-site-header .yepx-header__cta .yepx-btn--compact,
	.yepx-site-header .yepx-header__cta .yepx-btn--header,
	.yepx-site-header.is-scrolled .yepx-header__cta .yepx-btn,
	.yepx-site-header.is-compact .yepx-header__cta .yepx-btn {
		min-height: 35px;
		height: 35px;
		max-height: 35px;
		min-width: 0;
		max-width: 100%;
		padding: 0 10px;
		padding-block: 0;
		line-height: 1;
		font-size: 0.75rem;
		border-radius: var(--yepx-btn-radius, 9999px);
		white-space: nowrap;
		box-sizing: border-box;
	}

	.yepx-header__cta .yepx-btn__mobile .yepx-btn__icon {
		width: 18px;
		height: 18px;
		background: transparent;
		color: #fff;
	}

	.yepx-header__cta .yepx-btn__mobile .yepx-btn__glyph,
	.yepx-header__cta .yepx-btn__mobile .yepx-btn__icon svg {
		width: 14px;
		height: 14px;
		color: #fff;
	}

	.yepx-site-header .yepx-nav-toggle,
	.yepx-nav-toggle,
	.yepx-site-header.is-scrolled .yepx-nav-toggle,
	.yepx-site-header.is-compact .yepx-nav-toggle,
	.yepx-header.is-scrolled .yepx-nav-toggle,
	.yepx-header.is-compact .yepx-nav-toggle {
		flex: 0 0 auto;
		order: 3;
		width: 44px;
		height: 44px;
		min-width: 44px;
		min-height: 44px;
		max-width: 44px;
		max-height: 44px;
		margin-inline-start: 6px;
		margin-inline-end: 0;
		padding: 0;
		box-sizing: border-box;
	}

	.yepx-site-header .yepx-nav-overlay,
	.yepx-site-header .yepx-drawer {
		order: 10;
	}
}

@media (max-width: 380px) {
	html.yepx-nav-mode-drawer .yepx-site-header .yepx-header__inner,
	html.yepx-nav-mode-drawer .yepx-site-header.is-scrolled .yepx-header__inner,
	html.yepx-nav-mode-drawer .yepx-site-header.is-compact .yepx-header__inner,
	html.yepx-nav-mode-drawer .yepx-chrome--has-topbar .yepx-header__inner,
	html.yepx-nav-mode-drawer .yepx-chrome--has-topbar .yepx-site-header.is-scrolled .yepx-header__inner,
	html.yepx-nav-mode-drawer .yepx-chrome--has-topbar .yepx-site-header.is-compact .yepx-header__inner {
		gap: 6px;
		padding-inline: 12px;
	}

	html.yepx-nav-mode-drawer .yepx-site-header .yepx-branding,
	html.yepx-nav-mode-drawer .yepx-site-header.is-scrolled .yepx-branding,
	html.yepx-nav-mode-drawer .yepx-site-header.is-compact .yepx-branding,
	html.yepx-nav-mode-drawer .yepx-site-header .yepx-site-branding,
	html.yepx-nav-mode-drawer .yepx-site-header.is-scrolled .yepx-site-branding,
	html.yepx-nav-mode-drawer .yepx-site-header.is-compact .yepx-site-branding {
		max-width: 108px;
	}

	html.yepx-nav-mode-drawer .yepx-site-header .yepx-logo,
	html.yepx-nav-mode-drawer .yepx-site-header.is-scrolled .yepx-logo,
	html.yepx-nav-mode-drawer .yepx-site-header.is-compact .yepx-logo,
	html.yepx-nav-mode-drawer .yepx-site-header .yepx-branding img,
	html.yepx-nav-mode-drawer .yepx-site-header.is-scrolled .yepx-branding img,
	html.yepx-nav-mode-drawer .yepx-site-header.is-compact .yepx-branding img {
		max-width: 108px;
		max-height: 28px;
	}

	html.yepx-nav-mode-drawer .yepx-site-header .yepx-header__cta,
	html.yepx-nav-mode-drawer .yepx-site-header.is-scrolled .yepx-header__cta,
	html.yepx-nav-mode-drawer .yepx-site-header.is-compact .yepx-header__cta {
		margin: 0 !important;
		margin-inline-start: auto !important;
	}

	html.yepx-nav-mode-drawer .yepx-site-header .yepx-header__cta .yepx-btn,
	html.yepx-nav-mode-drawer .yepx-site-header.is-scrolled .yepx-header__cta .yepx-btn,
	html.yepx-nav-mode-drawer .yepx-site-header.is-compact .yepx-header__cta .yepx-btn,
	html.yepx-nav-mode-drawer .yepx-chrome--has-topbar .yepx-site-header.is-scrolled .yepx-header__cta .yepx-btn,
	html.yepx-nav-mode-drawer .yepx-chrome--has-topbar .yepx-site-header.is-compact .yepx-header__cta .yepx-btn {
		min-height: 35px;
		height: 35px;
		max-height: 35px;
		padding: 0 8px;
		padding-block: 0;
		line-height: 1;
		font-size: 0.6875rem;
	}

	html.yepx-nav-mode-drawer .yepx-header__cta .yepx-btn__mobile .yepx-btn__icon,
	html.yepx-nav-mode-drawer .yepx-site-header.is-scrolled .yepx-btn__mobile .yepx-btn__icon,
	html.yepx-nav-mode-drawer .yepx-site-header.is-compact .yepx-btn__mobile .yepx-btn__icon {
		width: 16px;
		height: 16px;
		background: transparent;
		color: #fff;
	}

	html.yepx-nav-mode-drawer .yepx-header__cta .yepx-btn__mobile .yepx-btn__glyph,
	html.yepx-nav-mode-drawer .yepx-header__cta .yepx-btn__mobile .yepx-btn__icon svg {
		width: 13px;
		height: 13px;
		color: #fff;
	}

	html.yepx-nav-mode-drawer .yepx-site-header .yepx-nav-toggle,
	html.yepx-nav-mode-drawer .yepx-nav-toggle,
	html.yepx-nav-mode-drawer .yepx-site-header.is-scrolled .yepx-nav-toggle,
	html.yepx-nav-mode-drawer .yepx-site-header.is-compact .yepx-nav-toggle,
	html.yepx-nav-mode-drawer .yepx-chrome--has-topbar .yepx-site-header.is-scrolled .yepx-nav-toggle,
	html.yepx-nav-mode-drawer .yepx-chrome--has-topbar .yepx-site-header.is-compact .yepx-nav-toggle {
		width: 40px;
		height: 40px;
		min-width: 40px;
		min-height: 40px;
		max-width: 40px;
		max-height: 40px;
		margin-inline-start: 6px;
		margin-inline-end: 0;
		padding: 0;
		box-sizing: border-box;
	}
}

@media (min-width: 1025px) {
	.yepx-header__cta .yepx-btn__mobile {
		display: none !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.yepx-topbar {
		transition: none;
	}
}
