.hg-auto-shell__container {
	width: min(100% - 1.5rem, var(--hg-container-width, var(--hg-auto-container)));
	margin-inline: auto;
}

/* Public header always tracks Website Content Width (guest + authenticated). */
.hg-auto-shell__container--header {
	width: min(100% - 1.5rem, var(--hg-container-width, var(--hg-auto-container)));
	max-width: min(100%, var(--hg-container-width, var(--hg-auto-container)));
	box-sizing: border-box;
}

.hg-auto-shell__container--footer {
	width: min(100% - 1.5rem, var(--hg-footer-container-width, var(--hg-container-width, var(--hg-auto-container))));
}

@media (min-width: 640px) {
	.hg-auto-shell__container,
	.hg-auto-shell__container--header,
	.hg-auto-shell__container--footer {
		width: min(100% - 2.5rem, var(--hg-container-width, var(--hg-auto-container)));
	}

	.hg-auto-shell__container--header {
		width: min(100% - 2.5rem, var(--hg-container-width, var(--hg-auto-container)));
		max-width: min(100%, var(--hg-container-width, var(--hg-auto-container)));
	}

	.hg-auto-shell__container--footer {
		width: min(100% - 2.5rem, var(--hg-footer-container-width, var(--hg-container-width, var(--hg-auto-container))));
	}
}

.hg-auto-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--hg-header-bg, rgba(var(--hg-color-card-rgb), 0.95));
	/* Header Text Colour paints the dark chrome only — not nested light flyouts. */
	color: var(--hg-header-text, var(--hg-auto-color-ink));
	overflow: visible;
}

/* Optional chrome — gated by Theme Layout “Show border” / “Show shadow”. */
.hg-auto-header--border {
	border-bottom: 1px solid rgba(var(--hg-color-border-rgb), 0.85);
}

.hg-auto-header--shadow {
	box-shadow: 0 1px 0 rgba(var(--hg-color-card-rgb), 0.6);
}

/*
 * Light header flyouts/popovers reset inherited --hg-header-text so white
 * panels keep canonical dark marketplace text (and currentColor icons).
 */
.hg-auto-header .hg-auto-shell__sell-menu,
.hg-auto-header .hg-auto-shell__account-menu,
.hg-auto-header .hg-auto-shell__saved-menu,
.hg-auto-header .hg-auto-nav--primary .sub-menu,
.hg-auto-header .hg-auto-nav--primary .hg-auto-sub-menu {
	color: var(--hg-color-text, var(--hg-auto-color-ink, #053742));
}

.hg-auto-shell__container--header,
.hg-auto-shell__row,
.hg-auto-shell__zone,
.hg-auto-shell__menu,
.hg-auto-nav--primary {
	overflow: visible;
}

.hg-auto-shell__topbar {
	border-bottom: 1px solid rgba(var(--hg-color-border-rgb), 0.7);
	background: rgba(var(--hg-color-text-rgb), 0.03);
}

.hg-auto-shell__topbar-items,
.hg-auto-shell__row,
.hg-auto-shell__zone {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.hg-auto-shell__topbar-items,
.hg-auto-shell__row {
	min-height: var(--hg-header-height, 72px);
}

.hg-auto-shell__topbar-items {
	min-height: 2.75rem;
	justify-content: flex-end;
}

.hg-auto-shell__row {
	justify-content: space-between;
}

.hg-auto-shell__zone--center {
	flex: 1 1 auto;
	justify-content: center;
}

.hg-auto-shell__zone--right {
	justify-content: flex-end;
}

.hg-auto-shell__link,
.hg-auto-shell__mobile-toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	color: inherit;
	text-decoration: none;
	font-weight: 600;
}

.hg-auto-shell__link--utility {
	position: relative;
	flex: 0 0 auto;
	justify-content: center;
	transition: color 0.15s ease, background-color 0.15s ease;
}

.hg-auto-shell__link--icon {
	width: 2.75rem;
	height: 2.75rem;
	min-width: 2.75rem;
	min-height: 2.75rem;
	padding: 0;
	border-radius: var(--hg-auto-radius-sm, 0.5rem);
	gap: 0;
}

.hg-auto-shell__link--icon .hg-auto-shell__label {
	display: none;
}

.hg-auto-shell__link--icon-text {
	min-height: 2.5rem;
	padding: 0.35rem 0.15rem;
}

.hg-auto-shell__link--utility:hover,
.hg-auto-shell__link--utility:focus-visible {
	color: var(--hg-auto-color-accent, var(--hg-color-accent, var(--hg-primary, #ff9501)));
}

.hg-auto-shell__link--utility:hover {
	background: rgba(var(--hg-color-text-rgb), 0.04);
}

.hg-auto-shell__link--utility:focus-visible {
	outline: 2px solid var(--hg-auto-color-accent, var(--hg-primary, #ff9501));
	outline-offset: 2px;
}

.hg-auto-shell__badge {
	position: absolute;
	top: 0.15rem;
	right: 0.1rem;
	min-width: 1.1rem;
	height: 1.1rem;
	padding: 0 0.28rem;
	border-radius: 999px;
	background: var(--hg-auto-color-accent, var(--hg-primary, #ff9501));
	color: #fff;
	font-size: 0.65rem;
	font-weight: 700;
	line-height: 1.1rem;
	text-align: center;
	pointer-events: none;
}

.hg-auto-shell__badge[hidden] {
	display: none !important;
}

.hg-auto-shell__branding {
	display: flex;
	align-items: center;
}

.hg-auto-shell__branding,
.hg-auto-branding__logo {
	min-width: 0;
	max-width: 100%;
}

.hg-auto-shell__branding img,
.hg-auto-branding__logo img,
.hg-auto-branding__logo .custom-logo {
	max-height: calc(var(--hg-header-height, 72px) - 24px);
	width: var(--desktop-logo-width, 220px);
	max-width: 100%;
	height: auto;
	object-fit: contain;
}

@media (max-width: 767px) {
	.hg-auto-shell__branding img,
	.hg-auto-branding__logo img,
	.hg-auto-branding__logo .custom-logo {
		width: var(--mobile-logo-width, 160px);
		max-height: calc(var(--hg-header-mobile-height, 60px) - 14px);
	}
}

@media (min-width: 768px) {
	.hg-auto-shell__branding img,
	.hg-auto-branding__logo img,
	.hg-auto-branding__logo .custom-logo {
		width: var(--desktop-logo-width, 220px);
	}
}

.hg-auto-shell-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
}

.hg-auto-shell-icon svg {
	width: 1.35rem;
	height: 1.35rem;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.hg-auto-shell__link--icon .hg-auto-shell-icon svg {
	width: 1.375rem;
	height: 1.375rem;
}

.hg-auto-shell__mobile-actions .hg-auto-shell-icon svg {
	width: var(--hg-drawer-icon-size, 1.125rem);
	height: var(--hg-drawer-icon-size, 1.125rem);
}

.hg-auto-shell--style_3 .hg-auto-shell__zone--right .hg-auto-shell__link--custom_cta {
	padding: 0.75rem 1rem;
	border-radius: 999px;
}

.hg-auto-shell--style_3 .hg-auto-shell__zone--right .hg-auto-shell__link--sell_your_car {
	min-height: 2.5rem;
	padding: 0.45rem 0.85rem;
	border-radius: 10px;
}

.hg-auto-shell--style_3 .hg-auto-shell__zone--right .hg-auto-shell__link--account.hg-auto-button {
	padding: 0.45rem 0.85rem;
	border-radius: 10px;
	min-height: 2.5rem;
}

/* Header custom CTA — flat brand orange. */
.hg-auto-shell .hg-auto-shell__link.hg-auto-button--primary {
	background: var(--hg-primary, #ff9501);
	border-color: var(--hg-primary, #ff9501);
	box-shadow: none;
	filter: none;
}

/* Sell Your Car — white chip, no yellow rest-state border. */
.hg-auto-shell .hg-auto-shell__sell-toggle.hg-auto-button--outline {
	min-height: 2.5rem;
	padding: 0.45rem 0.85rem;
	border: 1px solid transparent;
	border-radius: 10px;
	background: var(--hg-color-surface, #fff);
	color: var(--hg-color-secondary, #053742);
	box-shadow: none;
	filter: none;
}

.hg-auto-shell .hg-auto-shell__sell-toggle.hg-auto-button--outline:hover,
.hg-auto-shell .hg-auto-shell__sell-toggle.hg-auto-button--outline:focus-visible,
.hg-auto-shell .hg-auto-shell__sell-toggle.hg-auto-button--outline:active,
.hg-auto-shell__sell.is-open .hg-auto-shell__sell-toggle.hg-auto-button--outline {
	border-color: var(--hg-primary, #ff9501);
	background: var(--hg-primary, #ff9501);
	color: var(--hg-color-on-primary, #fff);
	opacity: 1;
	box-shadow: none;
	filter: none;
	transform: none;
}

.hg-auto-shell .hg-auto-shell__link.hg-auto-button--primary:hover,
.hg-auto-shell .hg-auto-shell__link.hg-auto-button--primary:focus-visible,
.hg-auto-shell .hg-auto-shell__link.hg-auto-button--primary:active {
	background: var(--hg-primary-hover, #e58600);
	border-color: var(--hg-primary-hover, #e58600);
	box-shadow: none;
	filter: none;
}

/* Logged-in “Hi {name}” account toggle — match Sell Your Car outline chip. */
.hg-auto-shell .hg-auto-shell__account-toggle.hg-auto-button--outline,
.hg-auto-shell .hg-auto-shell__link--account.hg-auto-button--outline {
	background: var(--hg-color-surface, #fff);
	border-color: var(--hg-primary, #ff9501);
	color: var(--hg-color-secondary, #053742);
	box-shadow: none;
	filter: none;
	min-height: 2.5rem;
	padding: 0.45rem 0.85rem;
	border-radius: 10px;
}

.hg-auto-shell .hg-auto-shell__account-toggle.hg-auto-button--outline:hover,
.hg-auto-shell .hg-auto-shell__account-toggle.hg-auto-button--outline:focus-visible,
.hg-auto-shell .hg-auto-shell__account-toggle.hg-auto-button--outline:active,
.hg-auto-shell .hg-auto-shell__link--account.hg-auto-button--outline:hover,
.hg-auto-shell .hg-auto-shell__link--account.hg-auto-button--outline:focus-visible,
.hg-auto-shell .hg-auto-shell__link--account.hg-auto-button--outline:active {
	background: var(--hg-primary, #ff9501);
	border-color: var(--hg-primary, #ff9501);
	color: var(--hg-color-on-primary, #fff);
	opacity: 1;
	box-shadow: none;
	filter: none;
	transform: none;
}

/* Header shell dropdowns (Sell Your Car + Account + Saved Items) */
.hg-auto-shell__sell,
.hg-auto-shell__account,
.hg-auto-shell__saved {
	position: relative;
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
	/* Dropdown panels must not contribute to header/row sizing. */
	width: auto;
	max-width: none;
}

.hg-auto-shell__sell-toggle,
.hg-auto-shell__account-toggle,
.hg-auto-shell__saved-toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	cursor: pointer;
	flex: 0 0 auto;
	white-space: nowrap;
}

/* Guest account icon only — keep chrome-free. */
.hg-auto-shell__account-toggle:not(.hg-auto-button),
.hg-auto-shell__saved-toggle {
	border: 0;
	box-shadow: none;
	background: transparent;
	color: inherit;
	font: inherit;
	padding: 0;
}

.hg-auto-shell__account-toggle:not(.hg-auto-button):hover,
.hg-auto-shell__account-toggle:not(.hg-auto-button):focus-visible,
.hg-auto-shell__saved-toggle:hover,
.hg-auto-shell__saved-toggle:focus-visible {
	box-shadow: none;
}

.hg-auto-shell__sell-chevron,
.hg-auto-shell__account-chevron {
	width: 0.45rem;
	height: 0.45rem;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	margin-top: -0.15rem;
	opacity: 0.85;
	flex: 0 0 auto;
}

.hg-auto-shell__sell.is-open .hg-auto-shell__sell-chevron,
.hg-auto-shell__account.is-open .hg-auto-shell__account-chevron {
	transform: rotate(225deg);
	margin-top: 0.15rem;
}

.hg-auto-shell__sell-menu,
.hg-auto-shell__account-menu,
.hg-auto-shell__saved-menu {
	position: absolute;
	/* Attach flush under the trigger (was calc(100% + 0.35rem) — that gap broke hover). */
	top: 100%;
	right: 0;
	left: auto;
	z-index: 80;
	min-width: min(16rem, calc(100vw - 1.5rem));
	width: max-content;
	max-width: min(20rem, calc(100vw - 1.5rem));
	padding: 0.35rem;
	background: var(--hg-color-surface, #fff);
	color: var(--hg-color-text, var(--hg-auto-color-ink, #053742));
	border: 1px solid rgba(var(--hg-color-text-rgb, 20, 20, 20), 0.12);
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
	display: grid;
	gap: 0.15rem;
	box-sizing: border-box;
	/* Overflow outside the header container is intentional. */
	pointer-events: auto;
}

/* Allow long account menus (role links + WP Header Account Dropdown items) to scroll. */
.hg-auto-shell__account-menu {
	max-height: min(70vh, 28rem);
	overflow-x: hidden;
	overflow-y: auto;
}

.hg-auto-shell__saved-menu {
	overflow-x: hidden;
}

/* Invisible hover bridge above the panel for sub-pixel gaps while moving from the button. */
.hg-auto-shell__sell--desktop .hg-auto-shell__sell-menu::before,
.hg-auto-shell__account--desktop .hg-auto-shell__account-menu::before,
.hg-auto-shell__saved--desktop .hg-auto-shell__saved-menu::before {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: 100%;
	height: 0.35rem;
}

.hg-auto-shell__sell-menu[hidden],
.hg-auto-shell__account-menu[hidden],
.hg-auto-shell__saved-menu[hidden] {
	display: none !important;
}

.hg-auto-shell__sell-item,
.hg-auto-shell__account-item,
.hg-auto-shell__saved-item {
	display: grid;
	gap: 0.15rem;
	padding: 0.7rem 0.85rem;
	text-decoration: none;
	color: inherit;
	border-radius: 0.25rem;
}

.hg-auto-shell__sell-item:hover,
.hg-auto-shell__sell-item:focus-visible,
.hg-auto-shell__account-item:hover,
.hg-auto-shell__account-item:focus-visible,
.hg-auto-shell__saved-item:hover,
.hg-auto-shell__saved-item:focus-visible {
	background: rgba(var(--hg-color-text-rgb, 20, 20, 20), 0.06);
	color: var(--hg-color-text, var(--hg-auto-color-ink, #053742));
	outline: none;
}

.hg-auto-shell__sell-item-label {
	font-weight: 600;
}

.hg-auto-shell__sell-item-desc {
	font-size: 0.85em;
	opacity: 0.75;
}

.hg-auto-shell__account-greeting {
	display: none !important;
}

.hg-auto-shell__account-item:first-child {
	border-bottom: 1px solid rgba(var(--hg-color-text-rgb, 20, 20, 20), 0.1);
	margin-bottom: 0.15rem;
	border-radius: 0.25rem 0.25rem 0 0;
}

.hg-auto-shell__account-item--logout {
	margin-top: 0.15rem;
	border-top: 1px solid rgba(var(--hg-color-text-rgb, 20, 20, 20), 0.1);
	border-radius: 0;
}

.hg-auto-shell__sell--mobile,
.hg-auto-shell__account--mobile,
.hg-auto-shell__saved--mobile {
	display: grid;
	width: 100%;
}

.hg-auto-shell__sell--mobile .hg-auto-shell__sell-toggle,
.hg-auto-shell__account--mobile .hg-auto-shell__account-toggle,
.hg-auto-shell__saved--mobile .hg-auto-shell__saved-toggle {
	width: 100%;
	justify-content: flex-start;
}

.hg-auto-shell__sell--mobile .hg-auto-shell__sell-menu,
.hg-auto-shell__account--mobile .hg-auto-shell__account-menu,
.hg-auto-shell__saved--mobile .hg-auto-shell__saved-menu {
	position: static;
	box-shadow: none;
	border: 0;
	padding: 0.15rem 0 0.25rem 0.85rem;
	min-width: 0;
	width: 100%;
	max-width: none;
}

.hg-auto-shell__account--mobile .hg-auto-shell__account-item:first-child {
	border-radius: 0;
}

.hg-auto-shell__mobile-toggle {
	display: none;
	background: transparent;
	border: 0;
	padding: 0.5rem;
}

.hg-auto-shell__mobile-account {
	display: none;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	color: inherit;
	text-decoration: none;
	border-radius: var(--hg-auto-radius-sm, 0.5rem);
}

.hg-auto-shell__mobile-actions {
	display: grid;
	/* Match primary nav row rhythm (gap comes from row min-height). */
	gap: 0;
	padding-top: 0.35rem;
	margin-top: 0.35rem;
	border-top: 1px solid #e7edf2;
}

/* Drawer utilities: left-align with primary rows; tight icon→label gap. */
.hg-auto-shell__mobile-actions .hg-auto-shell__link--utility,
.hg-auto-shell__mobile-actions .hg-auto-shell__link--icon-text {
	justify-content: flex-start;
	align-items: center;
	width: 100%;
	min-width: 0;
	min-height: var(--hg-drawer-row-min, 3.125rem);
	padding: var(--hg-drawer-row-pad-y, 0.8125rem) var(--hg-drawer-row-pad-x, 1.125rem);
	gap: var(--hg-drawer-icon-gap, 0.4rem);
	box-sizing: border-box;
}

.hg-auto-shell__mobile-actions .hg-auto-shell__link--utility .hg-auto-shell-icon,
.hg-auto-shell__mobile-actions .hg-auto-shell__link--icon-text .hg-auto-shell-icon {
	flex: 0 0 var(--hg-drawer-icon-size, 1.125rem);
	width: var(--hg-drawer-icon-size, 1.125rem);
}

.hg-auto-shell__mobile-actions .hg-auto-shell__sell,
.hg-auto-shell__mobile-actions .hg-auto-shell__account,
.hg-auto-shell__mobile-actions .hg-auto-shell__saved {
	margin-top: 0;
}

.hg-auto-shell__mobile-actions .hg-auto-shell__sell-toggle,
.hg-auto-shell__mobile-actions .hg-auto-shell__account-toggle,
.hg-auto-shell__mobile-actions .hg-auto-shell__saved-toggle {
	width: 100%;
	justify-content: flex-start;
	min-height: var(--hg-drawer-row-min, 3.125rem);
	padding: var(--hg-drawer-row-pad-y, 0.8125rem) var(--hg-drawer-row-pad-x, 1.125rem);
	box-sizing: border-box;
}

/* Keep drawer utility links and disclosure buttons at one visual weight. */
.hg-auto-shell__mobile-actions .hg-auto-shell__link--utility,
.hg-auto-shell__mobile-actions .hg-auto-shell__link--icon-text,
.hg-auto-shell__mobile-actions .hg-auto-shell__saved-toggle,
.hg-auto-shell__mobile-actions .hg-auto-shell__account-toggle,
.hg-auto-shell__mobile-actions .hg-auto-shell__sell-toggle {
	font-weight: 600;
}

/*
 * Mobile drawer Sell Your Car — independent of the desktop white chip.
 * White drawer: transparent fill, dark teal label/icon, orange accent border.
 */
.hg-auto-shell__mobile-actions .hg-auto-shell__sell-toggle.hg-auto-button--outline {
	width: 100%;
	justify-content: flex-start;
	align-items: center;
	gap: var(--hg-drawer-icon-gap, 0.4rem);
	margin-top: 0;
	min-height: var(--hg-drawer-row-min, 3.125rem);
	padding: var(--hg-drawer-row-pad-y, 0.8125rem) 0.85rem;
	background: transparent;
	border: 1px solid var(--hg-primary, #ff9501);
	border-radius: 10px;
	color: var(--hg-color-secondary, #053742);
	box-shadow: none;
	filter: none;
}

.hg-auto-shell__mobile-actions .hg-auto-shell__sell-toggle.hg-auto-button--outline:hover,
.hg-auto-shell__mobile-actions .hg-auto-shell__sell-toggle.hg-auto-button--outline:focus-visible,
.hg-auto-shell__mobile-actions .hg-auto-shell__sell-toggle.hg-auto-button--outline:active,
.hg-auto-shell__mobile-actions .hg-auto-shell__sell.is-open .hg-auto-shell__sell-toggle.hg-auto-button--outline {
	background: var(--hg-primary, #ff9501);
	border-color: var(--hg-primary, #ff9501);
	color: var(--hg-color-on-primary, #fff);
	opacity: 1;
	box-shadow: none;
	filter: none;
	transform: none;
}

.hg-auto-shell__mobile-actions .hg-auto-shell__sell {
	padding-inline: var(--hg-drawer-row-pad-x, 1.125rem);
	padding-bottom: 0.25rem;
	box-sizing: border-box;
}

.hg-auto-shell__backdrop {
	position: fixed;
	inset: 0;
	background: rgba(var(--hg-color-text-rgb, 5, 55, 66), 0.58);
	border: 0;
	padding: 0;
	cursor: pointer;
	z-index: 200;
}

.hg-auto-shell__backdrop[hidden] {
	display: none !important;
}

.hg-auto-footer {
	padding-top: var(--hg-footer-padding-top, 56px);
	padding-bottom: var(--hg-footer-padding-bottom, 32px);
}

/* Soft-cap top padding when the logo/newsletter band is present so the footer does not open with a tall empty band. */
.hg-auto-footer:has(.hg-auto-footer__top) {
	padding-top: min(var(--hg-footer-padding-top, 56px), 36px);
}

.hg-auto-footer__top {
	display: grid;
	grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.6fr);
	align-items: center;
	gap: 1rem 2rem;
	/* Compact band above the divider (was 2.25rem + 2rem margin). */
	padding-bottom: 1.75rem;
	margin-bottom: 1.5rem;
	border-bottom: 1px solid rgba(var(--hg-color-card-rgb), 0.12);
}

.hg-auto-footer__top--logo {
	grid-template-columns: minmax(0, 1fr);
}

.hg-auto-footer__top--newsletter {
	grid-template-columns: minmax(0, 1fr);
}

.hg-auto-footer__top-logo {
	min-width: 0;
}

.hg-auto-footer__logo-link {
	display: inline-flex;
	align-items: center;
	max-width: 100%;
	text-decoration: none;
}

.hg-auto-footer__logo {
	display: block;
	width: var(--hg-footer-logo-width, 200px);
	max-width: 100%;
	height: auto;
	/* Preserve the original logo contrast while gently softening it on dark chrome. */
	filter: none;
	opacity: 0.9;
}

.hg-auto-footer__top-newsletter {
	min-width: 0;
	width: 100%;
	justify-self: end;
	text-align: right;
}

.hg-auto-footer__newsletter-title {
	margin: 0 0 0.4rem;
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.25;
	color: var(--hg-color-on-dark, #fff);
}

.hg-auto-footer__newsletter-text {
	margin: 0 0 0.75rem auto;
	max-width: 38rem;
	font-size: 0.9375rem;
	line-height: 1.45;
	color: rgba(var(--hg-color-card-rgb), 0.78);
}

.hg-auto-footer__newsletter-form {
	margin-left: auto;
	width: 100%;
	/* Desktop: about half the newsletter column, right-aligned with heading/text. */
	max-width: 50%;
}

/*
 * Footer newsletter only (scoped).
 * CF7 form with .acf-newsletter-row wraps email + submit as siblings inside that
 * div — flex must target the row, not only .wpcf7-form (otherwise email width:100%
 * fills the row and Subscribe drops under it, right-aligned via text-align).
 */
.hg-auto-footer__newsletter-form .wpcf7,
.hg-auto-footer__newsletter-form .mc4wp-form-fields,
.hg-auto-footer__newsletter-form .ff-el-group {
	margin: 0;
	width: 100%;
}

.hg-auto-footer__newsletter-form form,
.hg-auto-footer__newsletter-form .wpcf7-form,
.hg-auto-footer__newsletter-form .mc4wp-form,
.hg-auto-footer__newsletter-form .ff-el-form {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0;
	margin: 0;
	width: 100%;
}

.hg-auto-footer__newsletter-form label {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Primary CF7 markup: <div class="acf-newsletter-row">[email][submit]</div>
 * CF7 autop often emits: <p><span.wrap>email</span><br><input submit></p>
 * The <br> must not become a grid item or it steals column 2 and stacks Subscribe. */
.hg-auto-footer__newsletter-form .acf-newsletter-row {
	display: block;
	width: 100%;
	max-width: 100%;
	margin: 0;
	min-width: 0;
	box-sizing: border-box;
}

.hg-auto-footer__newsletter-form .acf-newsletter-row br,
.hg-auto-footer__newsletter-form .wpcf7-form br,
.hg-auto-footer__newsletter-form form br {
	display: none !important;
}

/* One <p> wrapping email + submit (typical CF7 autop). */
.hg-auto-footer__newsletter-form .acf-newsletter-row > p {
	display: grid;
	grid-template-columns: minmax(12rem, 1fr) auto;
	align-items: stretch;
	gap: 10px;
	width: 100%;
	margin: 0;
	min-width: 0;
}

/* Direct children when CF7 does not wrap in <p>. */
.hg-auto-footer__newsletter-form .acf-newsletter-row:not(:has(> p)) {
	display: grid;
	grid-template-columns: minmax(12rem, 1fr) auto;
	align-items: stretch;
	gap: 10px;
}

.hg-auto-footer__newsletter-form .acf-newsletter-row .wpcf7-form-control-wrap {
	display: block;
	width: 100%;
	min-width: 0;
	max-width: 100%;
	margin: 0;
	grid-column: 1;
}

.hg-auto-footer__newsletter-form .acf-newsletter-row > [type="submit"],
.hg-auto-footer__newsletter-form .acf-newsletter-row > .wpcf7-submit,
.hg-auto-footer__newsletter-form .acf-newsletter-row .wpcf7-submit,
.hg-auto-footer__newsletter-form .acf-newsletter-row [type="submit"] {
	grid-column: 2;
	width: auto;
	max-width: none;
	justify-self: end;
}

/* Fallback when CF7 has no .acf-newsletter-row (email wrap + submit as form children). */
.hg-auto-footer__newsletter-form .wpcf7-form:not(:has(.acf-newsletter-row)),
.hg-auto-footer__newsletter-form form:not(:has(.acf-newsletter-row)) {
	display: grid;
	grid-template-columns: minmax(12rem, 1fr) auto;
	align-items: stretch;
	gap: 10px;
	width: 100%;
}

.hg-auto-footer__newsletter-form .wpcf7-form:not(:has(.acf-newsletter-row)) > p,
.hg-auto-footer__newsletter-form form:not(:has(.acf-newsletter-row)) > p {
	display: contents;
	margin: 0;
}

.hg-auto-footer__newsletter-form .wpcf7-form:not(:has(.acf-newsletter-row)) > .wpcf7-form-control-wrap,
.hg-auto-footer__newsletter-form .wpcf7-form:not(:has(.acf-newsletter-row)) .wpcf7-form-control-wrap,
.hg-auto-footer__newsletter-form form:not(:has(.acf-newsletter-row)) .wpcf7-form-control-wrap {
	grid-column: 1;
	width: 100%;
	min-width: 0;
	margin: 0;
}

.hg-auto-footer__newsletter-form .wpcf7-form:not(:has(.acf-newsletter-row)) > [type="submit"],
.hg-auto-footer__newsletter-form .wpcf7-form:not(:has(.acf-newsletter-row)) > .wpcf7-submit,
.hg-auto-footer__newsletter-form .wpcf7-form:not(:has(.acf-newsletter-row)) [type="submit"],
.hg-auto-footer__newsletter-form .wpcf7-form:not(:has(.acf-newsletter-row)) .wpcf7-submit,
.hg-auto-footer__newsletter-form form:not(:has(.acf-newsletter-row)) [type="submit"] {
	grid-column: 2;
	width: auto;
	margin: 0;
	justify-self: end;
}

.hg-auto-footer__newsletter-form .wpcf7-form-control-wrap {
	display: block;
	margin: 0;
	min-width: 0;
	width: 100%;
}

.hg-auto-footer__newsletter-form input[type="email"],
.hg-auto-footer__newsletter-form input[type="text"],
.hg-auto-footer__newsletter-form .wpcf7-form-control:not(.wpcf7-submit):not([type="submit"]):not([type="checkbox"]):not([type="radio"]) {
	display: block;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	height: 50px;
	min-height: 50px;
	padding: 0.7rem 0.95rem;
	margin: 0;
	border: 1px solid rgba(var(--hg-color-card-rgb), 0.18);
	border-radius: 4px;
	background: #fff;
	color: #0f172a;
	font-size: 0.9375rem;
	line-height: 1.3;
	box-sizing: border-box;
}

.hg-auto-footer__newsletter-form input[type="email"]:focus,
.hg-auto-footer__newsletter-form input[type="text"]:focus,
.hg-auto-footer__newsletter-form .wpcf7-form-control:focus {
	outline: 2px solid var(--hg-auto-color-accent, var(--hg-primary, #ff9501));
	outline-offset: 2px;
}

.hg-auto-footer__newsletter-form input[type="submit"],
.hg-auto-footer__newsletter-form button[type="submit"],
.hg-auto-footer__newsletter-form .wpcf7-submit {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: auto;
	max-width: none;
	height: 50px;
	min-height: 50px;
	padding: 0 1.25rem;
	margin: 0;
	border: 0;
	border-radius: 4px;
	background: var(--hg-auto-color-accent, var(--hg-primary, #ff9501));
	color: #fff;
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
	white-space: nowrap;
	box-sizing: border-box;
}

/*
 * Page builders and contact-page form skins sometimes enqueue broad CF7 rules
 * after the theme (for example a fixed submit width or input margin). Keep the
 * shared footer form self-contained without changing any form in page content.
 */
body .hg-auto-footer .hg-auto-footer__newsletter-form form,
body .hg-auto-footer .hg-auto-footer__newsletter-form .wpcf7-form {
	display: flex !important;
	flex-direction: column !important;
	align-items: stretch !important;
	gap: 0 !important;
	width: 100% !important;
	margin: 0 !important;
}

body .hg-auto-footer .hg-auto-footer__newsletter-form .acf-newsletter-row > p {
	display: grid !important;
	grid-template-columns: minmax(12rem, 1fr) auto !important;
	align-items: stretch !important;
	gap: 10px !important;
	width: 100% !important;
	margin: 0 !important;
}

body .hg-auto-footer .hg-auto-footer__newsletter-form .wpcf7-form-control-wrap,
body .hg-auto-footer .hg-auto-footer__newsletter-form .acf-newsletter-row .wpcf7-form-control-wrap {
	display: block !important;
	align-self: stretch !important;
	width: 100% !important;
	min-width: 0 !important;
	margin: 0 !important;
}

body .hg-auto-footer .hg-auto-footer__newsletter-form input[type="email"],
body .hg-auto-footer .hg-auto-footer__newsletter-form input[type="text"] {
	width: 100% !important;
	min-width: 0 !important;
	height: 50px !important;
	min-height: 50px !important;
	margin: 0 !important;
}

body .hg-auto-footer .hg-auto-footer__newsletter-form input[type="submit"],
body .hg-auto-footer .hg-auto-footer__newsletter-form button[type="submit"],
body .hg-auto-footer .hg-auto-footer__newsletter-form .wpcf7-submit {
	width: auto !important;
	min-width: 0 !important;
	max-width: none !important;
	height: 50px !important;
	min-height: 50px !important;
	padding: 0 1.25rem !important;
	margin: 0 !important;
}

.hg-auto-footer__newsletter-form .wpcf7 form .wpcf7-response-output,
.hg-auto-footer__newsletter-form .wpcf7-form .wpcf7-response-output,
.hg-auto-footer__newsletter-form .wpcf7-response-output {
	order: 99;
	flex: 0 0 auto;
	grid-column: 1 / -1;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	/* Beat CF7 defaults (often .wpcf7 form .wpcf7-response-output { margin: 2em … }). */
	margin: 10px 0 0;
	text-align: right;
}

/* CF7 autop empty / spinner-only paragraphs inflate the gap above the response. */
.hg-auto-footer__newsletter-form .wpcf7-form > p {
	margin: 0;
}

.hg-auto-footer__newsletter-form .wpcf7-form > p:empty {
	display: none;
}

.hg-auto-footer__newsletter-form .wpcf7-spinner {
	display: none;
	margin: 0;
	vertical-align: middle;
}

.hg-auto-footer__newsletter-form .wpcf7-form.submitting .wpcf7-spinner {
	display: inline-block;
}

.hg-auto-footer__newsletter-form input[type="submit"]:hover,
.hg-auto-footer__newsletter-form button[type="submit"]:hover,
.hg-auto-footer__newsletter-form .wpcf7-submit:hover,
.hg-auto-footer__newsletter-form input[type="submit"]:focus-visible,
.hg-auto-footer__newsletter-form button[type="submit"]:focus-visible,
.hg-auto-footer__newsletter-form .wpcf7-submit:focus-visible {
	filter: brightness(0.96);
	outline: 2px solid var(--hg-color-on-dark, #fff);
	outline-offset: 2px;
}

.hg-auto-footer__widgets {
	display: grid;
	grid-template-columns: repeat(var(--hg-footer-columns, 4), minmax(0, 1fr));
	gap: var(--hg-footer-gap, 24px);
}

.hg-auto-footer__column {
	min-width: 0;
}

.hg-auto-footer .hg-auto-widget__title {
	margin: 0 0 0.85rem;
	font-size: 1rem;
	font-weight: 700;
	color: var(--hg-color-on-dark, #fff);
}

.hg-auto-footer__accordion-trigger {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 0.65rem;
	width: auto;
	max-width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: default;
	pointer-events: none;
}

.hg-auto-footer__accordion-label {
	min-width: 0;
}

.hg-auto-footer__accordion-icon {
	display: none;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	color: currentColor;
}

.hg-auto-footer__chevron {
	display: block;
	transition: transform 0.2s ease;
}

.hg-auto-footer__column-body,
.hg-auto-footer__column-inner {
	min-width: 0;
}

.hg-auto-footer__link-list,
.hg-auto-footer__contact {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.65rem;
}

/* Footer column / bottom menus — own BEM scope; never share .hg-auto-menu flex-row. */
.hg-auto-footer .hg-auto-footer-nav {
	display: block;
}

.hg-auto-footer .hg-auto-footer-menu {
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	align-items: stretch;
	gap: 0.65rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.hg-auto-footer .hg-auto-footer-menu--vertical {
	flex-direction: column;
	flex-wrap: nowrap;
	align-items: stretch;
}

.hg-auto-footer .hg-auto-footer-menu--horizontal {
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	column-gap: 1.25rem;
	row-gap: 0.65rem;
}

.hg-auto-footer .hg-auto-footer-menu > .menu-item {
	display: block;
	margin: 0;
	padding: 0;
	flex: none;
}

.hg-auto-footer .hg-auto-footer-menu--vertical > .menu-item {
	width: 100%;
}

.hg-auto-footer .hg-auto-footer-menu--horizontal > .menu-item {
	width: auto;
}

.hg-auto-footer .hg-auto-footer-menu a {
	display: inline-block;
	color: rgba(var(--hg-color-card-rgb), 0.84);
	font-weight: 500;
	text-decoration: none;
}

.hg-auto-footer .hg-auto-footer-menu a:hover,
.hg-auto-footer .hg-auto-footer-menu a:focus-visible {
	color: var(--hg-color-on-dark, #fff);
}

.hg-auto-footer__bottom {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 1rem;
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(var(--hg-color-card-rgb), 0.12);
}

.hg-auto-footer__bottom--center {
	justify-content: center;
	text-align: center;
}

.hg-auto-footer__bottom--left {
	justify-content: flex-start;
}

.hg-auto-footer__bottom--right {
	justify-content: flex-end;
	text-align: right;
}

.hg-auto-footer__bottom-primary,
.hg-auto-footer__bottom-secondary {
	font-size: 0.875rem;
	color: rgba(var(--hg-color-card-rgb), 0.72);
}

.hg-auto-shell__link:focus-visible,
.hg-auto-shell__mobile-toggle:focus-visible,
.hg-auto-shell__drawer-close:focus-visible,
.hg-auto-footer a:focus-visible,
.hg-auto-nav a:focus-visible,
.hg-auto-nav__parent:focus-visible,
.hg-auto-nav__submenu-toggle:focus-visible {
	outline: 2px solid var(--hg-color-primary, var(--hg-primary, #ff9501));
	outline-offset: 2px;
	border-radius: 0.35rem;
}

/* —— Primary nav dropdowns (header-scoped; do not affect footer menus) —— */
.hg-auto-shell .hg-auto-nav--primary .hg-auto-menu,
.hg-auto-shell__mobile-drawer .hg-auto-nav--mobile .hg-auto-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.hg-auto-shell .hg-auto-nav--primary .hg-auto-menu {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	/* 24–32px between top-level items */
	gap: 0 1.75rem;
}

.hg-auto-shell .hg-auto-nav--primary .menu-item {
	position: relative;
	list-style: none;
	margin: 0;
	flex: 0 0 auto;
}

.hg-auto-shell .hg-auto-nav--primary .hg-auto-nav__parent,
.hg-auto-shell .hg-auto-nav--primary .menu-item > a {
	display: inline-flex;
	align-items: center;
	/* Label ↔ chevron gap 5–7px */
	gap: 0.375rem;
	margin: 0;
	padding: 0.35rem 0;
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	white-space: nowrap;
	line-height: 1.25;
}

.hg-auto-shell .hg-auto-nav--primary .menu-item.current-menu-item > a,
.hg-auto-shell .hg-auto-nav--primary .menu-item.current-menu-ancestor > .hg-auto-nav__parent,
.hg-auto-shell .hg-auto-nav--primary .menu-item.current-menu-parent > .hg-auto-nav__parent {
	color: var(--hg-auto-color-accent, var(--hg-primary, #ff9501));
}

.hg-auto-shell .hg-auto-nav--primary .hg-auto-nav__chevron {
	display: inline-flex;
	align-items: center;
	line-height: 0;
}

.hg-auto-shell .hg-auto-nav--primary .hg-auto-nav__item-row {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
}

.hg-auto-shell__mobile-drawer .hg-auto-nav__item-row {
	display: flex;
	align-items: center;
	gap: 0.15rem;
	width: 100%;
}

.hg-auto-shell .hg-auto-nav__submenu-toggle,
.hg-auto-shell__mobile-drawer .hg-auto-nav__submenu-toggle,
.hg-auto-shell .hg-auto-nav__parent,
.hg-auto-shell__mobile-drawer .hg-auto-nav__parent {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: var(--hg-auto-radius-sm, 0.4rem);
	background: transparent;
	color: inherit;
	cursor: pointer;
	line-height: 0;
	font: inherit;
	font-weight: 600;
}

/* Desktop: size parent control to label + chevron. */
.hg-auto-shell .hg-auto-nav--primary .hg-auto-nav__parent {
	width: auto;
	height: auto;
	min-width: 0;
	min-height: 0;
	flex: 0 0 auto;
	line-height: 1.25;
	padding: 0.35rem 0;
}

.hg-auto-shell .hg-auto-nav__parent .hg-auto-shell-icon,
.hg-auto-shell .hg-auto-nav__submenu-toggle .hg-auto-shell-icon,
.hg-auto-shell__mobile-drawer .hg-auto-nav__parent .hg-auto-shell-icon,
.hg-auto-shell__mobile-drawer .hg-auto-nav__submenu-toggle .hg-auto-shell-icon {
	margin: 0;
	padding: 0;
}

.hg-auto-shell .hg-auto-nav__parent .hg-auto-shell-icon svg,
.hg-auto-shell .hg-auto-nav__submenu-toggle .hg-auto-shell-icon svg,
.hg-auto-shell__mobile-drawer .hg-auto-nav__parent .hg-auto-shell-icon svg,
.hg-auto-shell__mobile-drawer .hg-auto-nav__submenu-toggle .hg-auto-shell-icon svg {
	display: block;
	width: 0.85rem;
	height: 0.85rem;
	margin: 0;
	transition: transform 0.15s ease;
}

.hg-auto-shell .menu-item-has-children.is-open > .hg-auto-nav__parent .hg-auto-shell-icon svg,
.hg-auto-shell .menu-item-has-children.is-open > .hg-auto-nav__item-row .hg-auto-nav__submenu-toggle .hg-auto-shell-icon svg,
.hg-auto-shell__mobile-drawer .menu-item-has-children.is-open > .hg-auto-nav__parent .hg-auto-shell-icon svg,
.hg-auto-shell__mobile-drawer .menu-item-has-children.is-open > .hg-auto-nav__item-row .hg-auto-nav__submenu-toggle .hg-auto-shell-icon svg {
	transform: rotate(180deg);
}

@media (min-width: 1024px) {
	.hg-auto-shell .hg-auto-nav--primary .sub-menu,
	.hg-auto-shell .hg-auto-nav--primary .hg-auto-sub-menu {
		position: absolute;
		top: calc(100% + 0.35rem);
		left: 0;
		z-index: 120;
		display: block;
		width: 15rem; /* Preferred standard dropdown width: 240px. */
		min-width: min(13.75rem, calc(100vw - 1.5rem));
		max-width: min(16.25rem, calc(100vw - 1.5rem));
		margin: 0;
		padding: 0.4rem;
		list-style: none;
		background: var(--hg-color-surface, #fff);
		color: var(--hg-auto-color-ink, #053742);
		border: 1px solid #e7edf2;
		border-radius: 0.625rem; /* 10px within 8–12px */
		box-shadow: 0 10px 28px rgba(5, 55, 66, 0.12);
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		overflow: hidden;
		transform: translateY(0.2rem);
		transition: opacity 0.12s ease, visibility 0.12s ease, transform 0.12s ease;
		box-sizing: border-box;
	}

	.hg-auto-shell .hg-auto-nav--primary > .hg-auto-menu > .menu-item:last-child > .sub-menu,
	.hg-auto-shell .hg-auto-nav--primary > .hg-auto-menu > .menu-item:last-child > .hg-auto-sub-menu {
		right: 0;
		left: auto;
	}

	/*
	 * Parent hover bridge (desktop only).
	 * Submenus sit at top: calc(100% + 0.35rem) and start closed with
	 * visibility:hidden + overflow:hidden, so a submenu::before bridge cannot
	 * receive pointer events. Extend the parent <li> hit area across the gap
	 * so :hover / pointerleave stay active until the cursor reaches the panel.
	 */
	.hg-auto-shell .hg-auto-nav--primary > .hg-auto-menu > .menu-item-has-children::after {
		content: "";
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		/* Cover visual gap (0.35rem) + closed translateY (0.2rem) + buffer. */
		height: 0.65rem;
		z-index: 119;
	}

	.hg-auto-shell .hg-auto-nav--primary .menu-item-has-children:hover > .sub-menu,
	.hg-auto-shell .hg-auto-nav--primary .menu-item-has-children:hover > .hg-auto-sub-menu,
	.hg-auto-shell .hg-auto-nav--primary .menu-item-has-children:focus-within > .sub-menu,
	.hg-auto-shell .hg-auto-nav--primary .menu-item-has-children:focus-within > .hg-auto-sub-menu,
	.hg-auto-shell .hg-auto-nav--primary .menu-item-has-children.is-open > .sub-menu,
	.hg-auto-shell .hg-auto-nav--primary .menu-item-has-children.is-open > .hg-auto-sub-menu {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
		transform: translateY(0);
	}

	.hg-auto-shell .hg-auto-nav--primary .sub-menu .menu-item,
	.hg-auto-shell .hg-auto-nav--primary .hg-auto-sub-menu .menu-item {
		display: block;
		width: 100%;
		margin: 0;
		list-style: none;
	}

	.hg-auto-shell .hg-auto-nav--primary .sub-menu a,
	.hg-auto-shell .hg-auto-nav--primary .hg-auto-sub-menu a {
		display: flex;
		align-items: center;
		min-height: 3.125rem;
		padding: 0.9375rem 1.25rem; /* 15px / 20px */
		border-radius: 0.4rem;
		font-weight: 600;
		color: var(--hg-auto-color-ink, #053742);
		text-decoration: none;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
		box-sizing: border-box;
	}

	.hg-auto-shell .hg-auto-nav--primary .sub-menu a:hover,
	.hg-auto-shell .hg-auto-nav--primary .sub-menu a:focus-visible,
	.hg-auto-shell .hg-auto-nav--primary .hg-auto-sub-menu a:hover,
	.hg-auto-shell .hg-auto-nav--primary .hg-auto-sub-menu a:focus-visible {
		color: var(--hg-auto-color-accent, var(--hg-primary, #ff9501));
		background: rgba(var(--hg-color-text-rgb), 0.04);
	}

	/* Optional mega menu remains available only via the explicit WP CSS class `hg-mega-menu`. */
	.hg-auto-shell .hg-auto-nav--primary .menu-item.hg-mega-menu > .sub-menu,
	.hg-auto-shell .hg-auto-nav--primary .menu-item.hg-mega-menu > .hg-auto-sub-menu {
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
		gap: 0.5rem 1rem;
		min-width: min(40rem, 100%);
		/* Constrain to Website Content Width — no viewport breakout. */
		max-width: min(var(--hg-container-width, 72rem), 100%);
		width: max-content;
		padding: 1rem 1.15rem;
		white-space: normal;
		left: 50%;
		right: auto;
		transform: translate(-50%, 0.2rem);
	}

	.hg-auto-shell .hg-auto-nav--primary .menu-item.hg-mega-menu:hover > .sub-menu,
	.hg-auto-shell .hg-auto-nav--primary .menu-item.hg-mega-menu:focus-within > .sub-menu,
	.hg-auto-shell .hg-auto-nav--primary .menu-item.hg-mega-menu.is-open > .sub-menu,
	.hg-auto-shell .hg-auto-nav--primary .menu-item.hg-mega-menu:hover > .hg-auto-sub-menu,
	.hg-auto-shell .hg-auto-nav--primary .menu-item.hg-mega-menu:focus-within > .hg-auto-sub-menu,
	.hg-auto-shell .hg-auto-nav--primary .menu-item.hg-mega-menu.is-open > .hg-auto-sub-menu {
		transform: translate(-50%, 0);
	}

	.hg-auto-shell .hg-auto-nav--primary .menu-item.hg-mega-menu > .sub-menu .sub-menu,
	.hg-auto-shell .hg-auto-nav--primary .menu-item.hg-mega-menu > .hg-auto-sub-menu .hg-auto-sub-menu--nested {
		position: static;
		display: block;
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
		transform: none;
		min-width: 0;
		max-width: none;
		margin: 0.25rem 0 0;
		padding: 0;
		border: 0;
		box-shadow: none;
		background: transparent;
	}

	/* Mega column headers: look like headings on desktop (chevron hidden). */
	.hg-auto-shell .hg-auto-nav--primary .menu-item.hg-mega-menu > .sub-menu > .menu-item-has-children > .hg-auto-nav__parent {
		display: flex;
		width: 100%;
		justify-content: flex-start;
		padding: 0.35rem 0.5rem 0.15rem;
		font-size: 0.75rem;
		font-weight: 700;
		letter-spacing: 0.04em;
		text-transform: uppercase;
		color: var(--hg-auto-color-ink, #053742);
		cursor: default;
		pointer-events: none;
	}

	.hg-auto-shell .hg-auto-nav--primary .menu-item.hg-mega-menu > .sub-menu > .menu-item-has-children > .hg-auto-nav__parent .hg-auto-nav__chevron {
		display: none;
	}

	.hg-auto-shell .hg-auto-nav--primary .menu-item.hg-mega-menu > .sub-menu a {
		white-space: normal;
	}
}

/* Mobile / tablet drawer accordion (no absolute panels). */
@media (max-width: 1023px) {
	.hg-auto-shell__drawer-header {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 0.75rem;
		min-height: var(--hg-header-mobile-height, 60px);
		padding: 0.35rem var(--hg-drawer-row-pad-x, 1.25rem);
		margin: 0;
		border-bottom: 1px solid #e7edf2;
		background: var(--hg-color-surface, #fff);
		position: sticky;
		top: 0;
		z-index: 2;
	}

	.hg-auto-shell__drawer-branding {
		display: flex;
		align-items: center;
		min-width: 0;
	}

	.hg-auto-shell__drawer-branding img,
	.hg-auto-shell__drawer-branding .custom-logo {
		width: var(--mobile-logo-width, 160px);
		max-width: min(100%, 13.75rem);
		max-height: calc(var(--hg-header-mobile-height, 60px) - 14px);
		height: auto;
		object-fit: contain;
	}

	.hg-auto-shell__drawer-close {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 2.75rem;
		height: 2.75rem;
		margin: 0;
		padding: 0;
		border: 0;
		border-radius: var(--hg-auto-radius-sm, 0.5rem);
		background: transparent;
		color: inherit;
		cursor: pointer;
	}

	.hg-auto-shell__mobile-drawer .hg-auto-nav--mobile .hg-auto-menu {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.hg-auto-shell__mobile-drawer .hg-auto-nav--mobile .menu-item {
		position: static;
		width: 100%;
		list-style: none;
		margin: 0;
	}

	.hg-auto-shell__mobile-drawer .hg-auto-nav--mobile .hg-auto-nav__parent,
	.hg-auto-shell__mobile-drawer .hg-auto-nav--mobile .menu-item > a {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 0.5rem;
		width: 100%;
		min-height: var(--hg-drawer-row-min, 3.125rem); /* 50px */
		padding: var(--hg-drawer-row-pad-y, 0.8125rem) var(--hg-drawer-row-pad-x, 1.125rem); /* ~13px 18px */
		box-sizing: border-box;
		text-align: left;
		text-decoration: none;
		color: inherit;
		font-weight: 600;
		line-height: 1.25;
	}

	.hg-auto-shell__mobile-drawer .hg-auto-nav--mobile .hg-auto-nav__item-row {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 0.35rem;
		width: 100%;
		min-height: var(--hg-drawer-row-min, 3.125rem);
	}

	.hg-auto-shell__mobile-drawer .hg-auto-nav--mobile .hg-auto-nav__item-row > a {
		flex: 1 1 auto;
		display: flex;
		align-items: center;
		min-height: var(--hg-drawer-row-min, 3.125rem);
		padding: var(--hg-drawer-row-pad-y, 0.8125rem) var(--hg-drawer-row-pad-x, 1.125rem);
		box-sizing: border-box;
	}

	.hg-auto-shell__mobile-drawer .hg-auto-nav--mobile .sub-menu,
	.hg-auto-shell__mobile-drawer .hg-auto-nav--mobile .hg-auto-sub-menu {
		position: static;
		display: none;
		width: 100%;
		margin: 0;
		padding: 0 0 0.15rem 0;
		list-style: none;
		background: rgba(var(--hg-color-text-rgb, 20, 20, 20), 0.025);
		border: 0;
		box-shadow: none;
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
		transform: none;
	}

	.hg-auto-shell__mobile-drawer .hg-auto-nav--mobile .menu-item-has-children.is-open > .sub-menu,
	.hg-auto-shell__mobile-drawer .hg-auto-nav--mobile .menu-item-has-children.is-open > .hg-auto-sub-menu {
		display: block;
	}

	/* Nested / mega column groups: indented accordion rows. */
	.hg-auto-shell__mobile-drawer .hg-auto-nav--mobile .sub-menu .menu-item > a,
	.hg-auto-shell__mobile-drawer .hg-auto-nav--mobile .sub-menu .hg-auto-nav__parent {
		min-height: 3rem;
		padding-left: calc(var(--hg-drawer-row-pad-x, 1.125rem) + 0.85rem);
		font-weight: 500;
	}

	.hg-auto-shell__mobile-drawer .hg-auto-nav--mobile .sub-menu .sub-menu .menu-item > a,
	.hg-auto-shell__mobile-drawer .hg-auto-nav--mobile .sub-menu .sub-menu .hg-auto-nav__parent {
		padding-left: calc(var(--hg-drawer-row-pad-x, 1.125rem) + 1.7rem);
	}
}

.hg-auto-layout-full_shell .hg-auto-main {
	background:
		linear-gradient(180deg, rgba(var(--hg-color-card-rgb), 0.25), rgba(var(--hg-color-card-rgb), 0) 8rem);
}

.hg-auto-shell--style_2 .hg-auto-shell__zone--center {
	justify-content: flex-start;
}

.hg-auto-shell--style_1 .hg-auto-shell__zone--left,
.hg-auto-shell--style_3 .hg-auto-shell__zone--left {
	flex: 0 0 auto;
}

@media (max-width: 1023px) {
	.hg-auto-footer__top {
		grid-template-columns: minmax(180px, 0.85fr) minmax(0, 1.4fr);
		gap: 1rem 1.5rem;
		padding-bottom: 1.5rem;
		margin-bottom: 1.25rem;
	}

	.hg-auto-footer__widgets {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	/* 4-column main footer only: stacked accordions. Top row + bottom bar stay expanded. */
	.hg-auto-footer__widgets[data-hg-footer-accordions] {
		display: flex;
		flex-direction: column;
		gap: 0;
	}

	.hg-auto-footer__widgets[data-hg-footer-accordions] .hg-auto-footer__column--accordion {
		border-bottom: 1px solid rgba(var(--hg-color-card-rgb), 0.12);
	}

	.hg-auto-footer__widgets[data-hg-footer-accordions] .hg-auto-footer__column--accordion:last-child {
		border-bottom: 0;
	}

	.hg-auto-footer__widgets[data-hg-footer-accordions] .hg-auto-widget__title {
		margin: 0;
	}

	.hg-auto-footer__accordion-trigger {
		width: 100%;
		min-height: 48px;
		justify-content: space-between;
		padding: 0.35rem 0;
		cursor: pointer;
		pointer-events: auto;
	}

	.hg-auto-footer__accordion-trigger:focus-visible {
		outline: 2px solid var(--hg-color-primary, var(--hg-primary, #ff9501));
		outline-offset: 2px;
		border-radius: 0.35rem;
	}

	.hg-auto-footer__accordion-icon {
		display: inline-flex;
	}

	.hg-auto-footer__column.is-open .hg-auto-footer__chevron {
		transform: rotate(180deg);
	}

	.hg-auto-footer__column--accordion .hg-auto-footer__column-body {
		display: grid;
		grid-template-rows: 0fr;
		transition: grid-template-rows 0.2s ease;
	}

	.hg-auto-footer__column--accordion.is-open .hg-auto-footer__column-body {
		grid-template-rows: 1fr;
	}

	.hg-auto-footer__column--accordion .hg-auto-footer__column-inner {
		overflow: hidden;
		min-height: 0;
	}

	.hg-auto-footer__column--accordion.is-open .hg-auto-footer__column-inner {
		padding-bottom: 0.85rem;
	}

	.hg-auto-footer__widgets[data-hg-footer-accordions] .hg-auto-footer-menu,
	.hg-auto-footer__widgets[data-hg-footer-accordions] .hg-auto-footer__link-list,
	.hg-auto-footer__widgets[data-hg-footer-accordions] .hg-auto-footer__contact {
		gap: 0.45rem;
	}

	.hg-auto-shell__zone--center {
		justify-content: flex-start;
	}

	.hg-auto-shell__zone--center,
	.hg-auto-shell__zone--right .hg-auto-shell__link,
	.hg-auto-shell__zone--right .hg-auto-shell__sell--desktop,
	.hg-auto-shell__zone--right .hg-auto-shell__account--desktop,
	.hg-auto-shell__zone--right .hg-auto-shell__saved--desktop,
	.hg-auto-nav--primary {
		display: none;
	}

	.hg-auto-shell__zone--left,
	.hg-auto-shell__zone--right {
		min-width: 0;
	}

	.hg-auto-shell__zone--right {
		gap: 0.25rem;
		flex: 0 0 auto;
	}

	.hg-auto-shell__mobile-account,
	.hg-auto-shell__mobile-toggle {
		display: inline-flex;
	}

	.hg-auto-shell__mobile-account .hg-auto-shell-icon svg,
	.hg-auto-shell__mobile-toggle .hg-auto-shell-icon svg {
		width: var(--hg-mobile-header-icon-size, 22px);
		height: var(--hg-mobile-header-icon-size, 22px);
	}

	.hg-auto-shell__mobile-account:hover,
	.hg-auto-shell__mobile-account:focus-visible,
	.hg-auto-shell__mobile-toggle:hover,
	.hg-auto-shell__mobile-toggle:focus-visible {
		color: var(--hg-auto-color-accent, var(--hg-primary, #ff9501));
		background: rgba(var(--hg-color-text-rgb), 0.04);
	}

	.hg-auto-shell__mobile-account:focus-visible,
	.hg-auto-shell__mobile-toggle:focus-visible {
		outline: 2px solid var(--hg-auto-color-accent, var(--hg-primary, #ff9501));
		outline-offset: 2px;
	}

	body.hg-auto-nav-open .hg-auto-shell__mobile-toggle {
		visibility: hidden;
		pointer-events: none;
	}

	/* Isolate drawer from Header Text Colour (#ffffff on the dark chrome). */
	.hg-auto-shell__mobile-drawer {
		color: var(--hg-color-text, var(--hg-auto-color-ink, #053742));
		--hg-header-text: var(--hg-color-text, var(--hg-auto-color-ink, #053742));
	}

	.hg-auto-shell__mobile-drawer .hg-auto-shell__drawer-close,
	.hg-auto-shell__mobile-drawer .hg-auto-nav--mobile .menu-item > a,
	.hg-auto-shell__mobile-drawer .hg-auto-nav--mobile .hg-auto-nav__parent,
	.hg-auto-shell__mobile-drawer .hg-auto-shell__mobile-actions .hg-auto-shell__link,
	.hg-auto-shell__mobile-drawer .hg-auto-shell__mobile-actions .hg-auto-shell__saved-toggle,
	.hg-auto-shell__mobile-drawer .hg-auto-shell__mobile-actions .hg-auto-shell__account-toggle {
		color: var(--hg-color-text, var(--hg-auto-color-ink, #053742));
	}

	.hg-auto-shell__mobile-drawer .hg-auto-shell-icon svg {
		color: inherit;
		stroke: currentColor;
	}

	/* Right-side mobile drawer over a dismissible page overlay. */
	.hg-auto-nav--mobile {
		--hg-drawer-pad-x: 0;
		--hg-drawer-pad-top: 0;
		--hg-drawer-pad-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
		--hg-drawer-row-min: 3.125rem; /* 50px */
		--hg-drawer-row-pad-y: 0.8125rem; /* 13px */
		--hg-drawer-row-pad-x: 1.125rem; /* 18px */
		--hg-drawer-icon-size: 1.125rem;
		--hg-drawer-icon-gap: 0.4rem;
		position: fixed;
		inset: 0 0 0 auto;
		display: flex;
		flex-direction: column;
		width: min(88vw, 25rem);
		max-width: calc(100% - 1rem);
		height: 100vh;
		height: 100dvh;
		max-height: none;
		background: var(--hg-color-surface, #fff);
		color: var(--hg-color-text, var(--hg-auto-color-ink, #053742));
		overflow-x: hidden;
		overflow-y: auto;
		overscroll-behavior: contain;
		padding: var(--hg-drawer-pad-top) var(--hg-drawer-pad-x) var(--hg-drawer-pad-bottom);
		box-shadow: -0.75rem 0 2rem rgba(0, 0, 0, 0.16);
		z-index: 210;
		-webkit-overflow-scrolling: touch;
		box-sizing: border-box;
	}

	.hg-auto-nav--mobile[hidden] {
		display: none !important;
	}

	.admin-bar .hg-auto-nav--mobile {
		top: 32px;
		height: calc(100vh - 32px);
		height: calc(100dvh - 32px);
	}

	.hg-auto-nav--mobile > .hg-auto-menu {
		flex: 0 0 auto;
	}

	.hg-auto-nav--mobile .hg-auto-shell__mobile-actions {
		margin-top: 0.35rem;
		padding-inline: 0;
	}

	.hg-auto-footer__widgets,
	.hg-auto-footer__bottom {
		grid-template-columns: 1fr;
		flex-direction: column;
	}

	body.hg-auto-nav-open {
		overflow: hidden;
	}
}

@media (max-width: 860px) {
	.hg-auto-footer__top--both {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 767px) {
	.hg-auto-footer__top {
		grid-template-columns: 1fr;
		justify-items: start;
		gap: 0.85rem;
		padding-bottom: 1.25rem;
		margin-bottom: 1rem;
	}

	.hg-auto-footer__top-newsletter {
		justify-self: stretch;
		text-align: left;
	}

	.hg-auto-footer__newsletter-text,
	.hg-auto-footer__newsletter-form {
		margin-left: 0;
		max-width: none;
		width: 100%;
	}

	.hg-auto-footer__newsletter-text {
		margin-bottom: 0.65rem;
	}

	.hg-auto-footer__logo {
		width: min(var(--hg-footer-logo-width, 200px), 70vw);
	}

	.hg-auto-footer__newsletter-form .wpcf7 form .wpcf7-response-output,
	.hg-auto-footer__newsletter-form .wpcf7-form .wpcf7-response-output,
	.hg-auto-footer__newsletter-form .wpcf7-response-output {
		margin-top: 10px;
		text-align: left;
	}

	/* Keep email + Subscribe on one row on mobile. */
	.hg-auto-footer__newsletter-form .acf-newsletter-row > p,
	.hg-auto-footer__newsletter-form .acf-newsletter-row:not(:has(> p)),
	.hg-auto-footer__newsletter-form .wpcf7-form:not(:has(.acf-newsletter-row)),
	.hg-auto-footer__newsletter-form form:not(:has(.acf-newsletter-row)) {
		grid-template-columns: minmax(0, 1fr) auto;
		gap: 8px;
	}

	.hg-auto-footer__newsletter-form .acf-newsletter-row .wpcf7-form-control-wrap,
	.hg-auto-footer__newsletter-form .acf-newsletter-row [type="submit"],
	.hg-auto-footer__newsletter-form .acf-newsletter-row .wpcf7-submit,
	.hg-auto-footer__newsletter-form input[type="email"],
	.hg-auto-footer__newsletter-form input[type="text"] {
		grid-column: auto;
		width: 100%;
		min-width: 0;
	}

	.hg-auto-footer__newsletter-form input[type="submit"],
	.hg-auto-footer__newsletter-form button[type="submit"],
	.hg-auto-footer__newsletter-form .wpcf7-submit {
		grid-column: auto;
		width: auto;
		max-width: none;
		flex: 0 0 auto;
		padding-inline: 0.9rem !important;
		justify-self: end;
	}

	.hg-auto-shell__row {
		min-height: var(--hg-header-mobile-height, 60px);
		min-width: 0;
	}

	.admin-bar .hg-auto-nav--mobile {
		top: 46px;
		height: calc(100vh - 46px);
		height: calc(100dvh - 46px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.hg-auto-shell .hg-auto-nav--primary .sub-menu,
	.hg-auto-shell .hg-auto-nav--primary .hg-auto-sub-menu,
	.hg-auto-shell .hg-auto-nav__parent .hg-auto-shell-icon svg,
	.hg-auto-shell__mobile-drawer .hg-auto-nav__parent .hg-auto-shell-icon svg,
	.hg-auto-footer__chevron,
	.hg-auto-footer__column--accordion .hg-auto-footer__column-body {
		transition: none;
		scroll-behavior: auto;
	}
}
