/* Mobile header and navigation refinements for ULFLS. */
@media (max-width: 999.98px) {
	/* A larger, high-contrast trigger that remains legible over hero imagery. */
	.ct-header [data-device="mobile"] .ct-header-trigger {
		position: relative;
		display: inline-grid;
		place-items: center;
		width: 48px;
		height: 48px;
		min-width: 48px;
		padding: 0;
		color: #ffffff;
		background: #c8203f !important;
		border: 1px solid rgba(255, 255, 255, 0.48) !important;
		border-radius: 14px;
		box-shadow: 0 7px 20px rgba(130, 12, 38, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
		transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
	}

	.ct-header [data-device="mobile"] .ct-header-trigger:hover,
	.ct-header [data-device="mobile"] .ct-header-trigger:focus-visible {
		filter: brightness(0.92);
		box-shadow: 0 9px 24px rgba(130, 12, 38, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.2);
		transform: translateY(-1px);
	}

	.ct-header [data-device="mobile"] .ct-header-trigger .ct-icon {
		display: none;
	}

	.ct-header [data-device="mobile"] .ct-header-trigger::before {
		content: "";
		position: absolute;
		width: 22px;
		height: 16px;
		background:
			linear-gradient(currentColor, currentColor) left top / 16px 2px no-repeat,
			linear-gradient(currentColor, currentColor) right center / 22px 2px no-repeat,
			linear-gradient(currentColor, currentColor) left bottom / 13px 2px no-repeat;
		border-radius: 999px;
	}

	.ct-header [data-device="mobile"] .ct-header-trigger::after {
		content: "";
		position: absolute;
		width: 4px;
		height: 4px;
		right: 11px;
		bottom: 11px;
		background: rgba(255, 255, 255, 0.76);
		border-radius: 50%;
	}

	/* Give the drawer close control the same visual language as the trigger. */
	#offcanvas .ct-toggle-close {
		display: grid;
		place-items: center;
		width: 44px;
		height: 44px;
		color: #c8203f;
		background: rgba(255, 255, 255, 0.08);
		border: 1px solid rgba(255, 255, 255, 0.22);
		border-radius: 12px;
	}

	#offcanvas .ct-toggle-close .ct-icon {
		width: 17px;
		height: 17px;
	}

	/* Center every navigation label while keeping dropdown controls balanced. */
	#offcanvas .mobile-menu {
		align-self: stretch;
		width: 100%;
		padding-inline: 28px;
	}

	#offcanvas .mobile-menu > ul {
		width: min(100%, 420px);
		margin-inline: auto;
	}

	#offcanvas .mobile-menu > ul > li {
		width: 100%;
	}

	#offcanvas .mobile-menu .ct-sub-menu-parent {
		position: relative;
		display: flex;
		align-items: center;
		justify-content: center;
		width: 100%;
	}

	#offcanvas .mobile-menu .ct-menu-link {
		justify-content: center;
		text-align: center;
	}

	#offcanvas .mobile-menu > ul > li > .ct-menu-link,
	#offcanvas .mobile-menu > ul > li > .ct-sub-menu-parent > .ct-menu-link {
		flex: 1 1 auto;
		font-size: 16px;
		font-weight: 600;
		line-height: 1.35;
		letter-spacing: 0.02em;
		text-transform: none;
	}

	#offcanvas .mobile-menu .ct-toggle-dropdown-mobile {
		position: absolute;
		right: 0;
		flex: 0 0 40px;
	}

	#offcanvas .mobile-menu .sub-menu {
		padding-left: 0;
	}

	#offcanvas .mobile-menu .sub-menu .ct-menu-link {
		font-size: 15px;
		font-weight: 500;
		line-height: 1.4;
		text-transform: none;
	}

	#offcanvas .ct-header-cta .ct-button {
		min-width: 112px;
		min-height: 50px;
		padding: 13px 26px;
		font-size: 15px;
		font-weight: 700;
		border-radius: 8px;
	}
}

@media (max-width: 480px) {
	#offcanvas .mobile-menu {
		padding-inline: 22px;
	}
}
