.ast-desktop .ast-mega-menu-enabled .astra-megamenu-li .astra-megamenu.sub-menu.astra-mega-menu-width-full:has(> .tbp-menu-test-category) {
	flex-wrap: wrap;
	align-items: flex-start;
	padding-top: 8px !important;
	padding-bottom: 8px !important;
}

/* Fix layout when mega menu is opened via click/toggle, not just CSS hover */
.ast-desktop .ast-mega-menu-enabled .astra-megamenu-li .astra-megamenu.sub-menu.astra-mega-menu-width-full:not(.ast-hidden):has(> .tbp-menu-test-category) {
	display: flex !important;
	flex-wrap: wrap !important;
	align-items: flex-start !important;
}

.ast-desktop .ast-mega-menu-enabled .astra-megamenu-li .astra-megamenu.sub-menu.astra-mega-menu-width-full:not(.ast-hidden) > .tbp-menu-test-category {
	display: block !important;
}

.ast-desktop .ast-mega-menu-enabled .astra-megamenu-li .astra-megamenu.sub-menu.astra-mega-menu-width-full:not(.ast-hidden) .tbp-menu-test-category > .sub-menu {
	display: block !important;
}

.ast-desktop .ast-mega-menu-enabled .astra-megamenu-li .astra-megamenu.sub-menu.astra-mega-menu-width-full>.tbp-menu-test-category {
	flex: 0 0 20% !important;
	max-width: 20%;
	box-sizing: border-box;
	padding: 8px 16px 12px 0 !important;
}

.ast-desktop .ast-mega-menu-enabled .astra-megamenu-li .tbp-menu-test-category>a {
	display: block;
	color: var(--tbp-td-ink);
	font-size: 1.1rem;
	font-weight: 700;
	text-decoration: none;
	cursor: default;
	pointer-events: none;
	padding-left: 0;
	padding-bottom: 0;
}

.ast-desktop .ast-mega-menu-enabled .astra-megamenu-li .tbp-menu-test-category>a::after {
	content: "";
	display: block;
	width: 50%;
	height: 1px;
	background: var(--tbp-td-warm-rule);
	margin-top: 5px;
	margin-bottom: 3px;
}

.ast-desktop .ast-mega-menu-enabled .astra-megamenu-li .tbp-menu-test-category .sub-menu li a {
	padding: 3px 0 !important;
	line-height: 1.3;
	text-decoration: underline;
}

.ast-desktop .ast-mega-menu-enabled .astra-megamenu-li .tbp-menu-test-category .sub-menu li a:hover {
	color: var(--tbp-brand-navy);
}

.ast-desktop .ast-mega-menu-enabled .astra-megamenu-li .tbp-menu-test-broad>a {
	font-size: 1rem;
	font-weight: 600;
}

.ast-desktop .ast-mega-menu-enabled .astra-megamenu-li .tbp-menu-test:not(.tbp-menu-test-broad)>a {
	color: var(--tbp-td-text-link);
	font-size: 0.91rem;
	font-weight: 400;
}

/* ===== Compact desktop / laptop menu =====
 * Used below the full mega-menu width while Astra still renders desktop nav.
 */
@media (min-width: 1057px) and (max-width: 1300px) {
	.ast-desktop .ast-mega-menu-enabled .astra-megamenu-li .astra-megamenu.sub-menu.astra-mega-menu-width-full:has(> .tbp-menu-test-category),
	.ast-desktop .ast-mega-menu-enabled .astra-megamenu-li .astra-megamenu.sub-menu.astra-mega-menu-width-full:not(.ast-hidden):has(> .tbp-menu-test-category) {
		display: grid !important;
		grid-template-columns: repeat(5, minmax(0, 1fr));
		gap: 0 var(--tbp-space-md);
		/* width: min(920px, calc(100vw - 32px)) !important; */
		max-width: calc(100vw - 32px);
		right: 0 !important;
		left: 0 !important;
		margin-right: auto;
		margin-left: auto;
		padding: var(--tbp-space-md) !important;
		transform: none;
	}

	.ast-desktop .ast-mega-menu-enabled .astra-megamenu-li .astra-megamenu.sub-menu.astra-mega-menu-width-full>.tbp-menu-test-category {
		flex: none !important;
		max-width: none;
		width: 100%;
		padding: 0 0 var(--tbp-space-md) !important;
		border-bottom: 1px solid var(--tbp-td-warm-rule);
	}

	.ast-desktop .ast-mega-menu-enabled .astra-megamenu-li .tbp-menu-test-category>a {
		padding: 0 0 var(--tbp-space-xs) !important;
		font-size: 1rem;
	}

	.ast-desktop .ast-mega-menu-enabled .astra-megamenu-li .tbp-menu-test-category>a::after {
		width: 100%;
		margin-bottom: var(--tbp-space-xs);
	}

	.ast-desktop .ast-mega-menu-enabled .astra-megamenu-li .tbp-menu-test-category .sub-menu li a {
		padding: 4px 0 !important;
	}

	.ast-desktop .ast-mega-menu-enabled .astra-megamenu-li .tbp-menu-test-broad>a {
		color: var(--tbp-brand-navy) !important;
		font-size: 0.95rem;
		font-weight: 700;
		text-decoration: none;
	}

	.ast-desktop .ast-mega-menu-enabled .astra-megamenu-li .tbp-menu-test:not(.tbp-menu-test-broad)>a {
		font-size: 0.9rem;
	}
}

/* ===== Mobile / hamburger menu =====
 * Astra adds .ast-header-break-point to <body> when the hamburger nav is active.
 * Desktop styles above are scoped to .ast-desktop so they never reach mobile.
 */

/* Category heading: bold label, no link navigation (mirrors desktop pointer-events:none) */
.ast-header-break-point .tbp-menu-test-category {
	position: relative;
}

.ast-header-break-point .tbp-menu-test-category > a {
	color: var(--tbp-td-ink) !important;
	font-weight: 700 !important;
	font-size: 1rem;
	text-decoration: none;
	pointer-events: none;
	cursor: default;
	border-bottom: 1px solid var(--tbp-td-warm-rule);
	padding-right: 3.5rem !important;
}

.ast-header-break-point #ast-hf-mobile-menu .tbp-menu-test-category > .ast-menu-toggle,
.ast-header-break-point .tbp-menu-test-category > .ast-menu-toggle {
	position: absolute !important;
	top: 0 !important;
	right: 0 !important;
	left: 0 !important;
	z-index: 2;
	width: 100% !important;
	height: 3rem !important;
	text-align: right;
}

.ast-header-break-point .tbp-menu-test-category > .ast-menu-toggle::before {
	content: "+";
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.35rem;
	height: 1.35rem;
	margin-right: var(--tbp-space-sm);
	border: 1px solid var(--tbp-td-warm-rule);
	border-radius: 999px;
	background: var(--tbp-white);
	color: var(--tbp-brand-navy);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1;
}

.ast-header-break-point .tbp-menu-test-category.ast-submenu-expanded > .ast-menu-toggle::before {
	content: "–";
}

.ast-header-break-point .tbp-menu-test-category > .ast-menu-toggle .ast-icon {
	display: none;
}

#ast-hf-mobile-menu .tbp-menu-test-category,
#ast-desktop-toggle-menu .tbp-menu-test-category {
	position: relative;
}

#ast-hf-mobile-menu .tbp-menu-test-category > a,
#ast-desktop-toggle-menu .tbp-menu-test-category > a {
	color: var(--tbp-td-ink) !important;
	font-weight: 700 !important;
	font-size: 1rem;
	text-decoration: none;
	pointer-events: none;
	cursor: default;
	border-bottom: 1px solid var(--tbp-td-warm-rule);
	padding-right: 3.5rem !important;
}

#ast-hf-mobile-menu .tbp-menu-test-category > .ast-menu-toggle,
#ast-desktop-toggle-menu .tbp-menu-test-category > .ast-menu-toggle {
	position: absolute !important;
	top: 0 !important;
	right: 0 !important;
	left: 0 !important;
	z-index: 2;
	width: 100% !important;
	height: 3rem !important;
	text-align: right;
}

#ast-hf-mobile-menu .tbp-menu-test-category > .ast-menu-toggle::before,
#ast-desktop-toggle-menu .tbp-menu-test-category > .ast-menu-toggle::before {
	content: "+";
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.35rem;
	height: 1.35rem;
	margin-right: var(--tbp-space-sm);
	border: 1px solid var(--tbp-td-warm-rule);
	border-radius: 999px;
	background: var(--tbp-white);
	color: var(--tbp-brand-navy);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1;
}

#ast-hf-mobile-menu .tbp-menu-test-category.ast-submenu-expanded > .ast-menu-toggle::before,
#ast-desktop-toggle-menu .tbp-menu-test-category.ast-submenu-expanded > .ast-menu-toggle::before {
	content: "–";
}

#ast-hf-mobile-menu .tbp-menu-test-category > .ast-menu-toggle .ast-icon,
#ast-desktop-toggle-menu .tbp-menu-test-category > .ast-menu-toggle .ast-icon {
	display: none;
}

/* The overlay toggle handles open/close state; no extra text label needed. */
.ast-header-break-point .tbp-menu-test-category > a::after {
	content: none;
}

/* Astra renders the tablet hamburger through #ast-desktop-toggle-menu. */
#ast-hf-mobile-menu .tbp-menu-test-category > a::after,
#ast-desktop-toggle-menu .tbp-menu-test-category > a::after {
	content: none !important;
}

/* Regular test links */
.ast-header-break-point .tbp-menu-test:not(.tbp-menu-test-broad) > a {
	color: var(--tbp-td-text-link) !important;
	font-weight: 400 !important;
	font-size: 0.875rem;
	text-decoration: underline;
	text-underline-offset: 2px;
}

#ast-hf-mobile-menu .tbp-menu-test:not(.tbp-menu-test-broad) > a,
#ast-desktop-toggle-menu .tbp-menu-test:not(.tbp-menu-test-broad) > a {
	color: var(--tbp-td-text-link) !important;
	font-weight: 400 !important;
	font-size: 0.975rem;
	text-decoration: underline !important;
	text-underline-offset: 2px;
}

/* Broad / featured test links */
.ast-header-break-point .tbp-menu-test-broad > a {
	color: var(--tbp-brand-navy) !important;
	font-weight: 700 !important;
	font-size: 0.92rem;
	text-decoration: none;
}

#ast-hf-mobile-menu .tbp-menu-test-broad > a,
#ast-desktop-toggle-menu .tbp-menu-test-broad > a {
	color: var(--tbp-brand-navy) !important;
	font-weight: 600 !important;
	font-size: 0.99rem;
	text-decoration: underline;
}

.ast-header-break-point .main-navigation .sub-menu .menu-item .menu-item .menu-link {
	    padding-left: 0 !important;
}

.ast-desktop-header-content .ast-builder-menu-mobile .main-navigation .sub-menu .menu-item .sub-menu .menu-link, .ast-desktop-popup-content .ast-builder-menu-mobile .main-navigation .sub-menu .menu-item .sub-menu .menu-link {
    padding-left: 0 !important;
}
