/* =============================================================
   Unified site navigation — site-nav.css
   Fixed header + consistent desktop/mobile menu on every route.
   ============================================================= */

:root {
	--mcusa-header-height: 76px;
}

/* ── Fixed header bar (homepage, events, and all inner pages) ── */
body.mcusa-unified-nav #header-wrapper {
	background: transparent !important;
	padding: 0 !important;
	margin: 0 !important;
	float: none;
	width: 100%;
}

body.mcusa-unified-nav #header-wrapper > #header {
	position: fixed !important;
	top: 0;
	left: 0;
	right: 0;
	width: 100% !important;
	z-index: 1000 !important;
	background: rgba(26, 15, 8, 0.9) !important;
	backdrop-filter: blur(10px);
	box-shadow: 0 2px 18px rgba(10, 5, 2, 0.22);
}

body.mcusa-unified-nav #header-wrapper > #header .wdt-no-header-builder-content,
body.mcusa-unified-nav #header-wrapper > #header .wdt-no-header-builder-content:before {
	background: transparent !important;
	box-shadow: none !important;
}

body.mcusa-unified-nav #header-wrapper > #header .container {
	width: 100% !important;
	max-width: 1366px !important;
}

/* ── Custom header layout (logo + menu + donate CTA) ── */
body.mcusa-unified-nav #header.mcusa-custom-header .no-header {
	display: flex;
	align-items: center;
	gap: 22px;
}

body.mcusa-unified-nav #header.mcusa-custom-header .no-header-logo {
	flex: 0 0 auto;
}

body.mcusa-unified-nav #header.mcusa-custom-header .no-header-logo img {
	max-height: 72px;
	width: auto;
}

body.mcusa-unified-nav #header.mcusa-custom-header .wdt-header-menu {
	flex: 1 1 auto;
	width: auto;
	min-width: 0;
}

body.mcusa-unified-nav #header.mcusa-custom-header .wdt-header-menu .wdt-primary-nav {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 6px 14px;
}

body.mcusa-unified-nav #header.mcusa-custom-header .wdt-primary-nav > li > a {
	font-size: 17px;
	line-height: 1.2;
}

/* ── Nav link colours — same on every page ── */
body.mcusa-unified-nav .wdt-primary-nav > li > a,
body.mcusa-unified-nav .wdt-primary-nav > li > a span,
body.mcusa-unified-nav .no-header-menu ul li a,
body.mcusa-unified-nav .mobile-nav-container .menu-trigger,
body.mcusa-unified-nav .mobile-nav-container .menu-trigger > span {
	color: #fdf6e3 !important;
}

body.mcusa-unified-nav .wdt-primary-nav > li > a:hover span,
body.mcusa-unified-nav .wdt-primary-nav > li.current-menu-item > a span,
body.mcusa-unified-nav .wdt-primary-nav > li.current-menu-ancestor > a span {
	color: #f0d090 !important;
}

body.mcusa-unified-nav .mobile-nav-container .menu-trigger > i {
	background-color: #fdf6e3;
}

body.mcusa-unified-nav .mobile-nav-container .menu-trigger > i::before,
body.mcusa-unified-nav .mobile-nav-container .menu-trigger > i::after {
	background: #fdf6e3;
}

body.mcusa-unified-nav #header.mcusa-custom-header .mcusa-header-cta {
	margin-left: 18px;
	flex-shrink: 0;
}

body.mcusa-unified-nav #header.mcusa-custom-header .mcusa-header-actions {
	display: flex;
	align-items: center;
	flex: 1 1 auto;
	min-width: 0;
}

body.mcusa-unified-nav #header.mcusa-custom-header .mcusa-header-cta .wdt-button-holder {
	display: inline-flex;
}

body.mcusa-unified-nav #header.mcusa-custom-header .mcusa-header-cta .wdt-button {
	white-space: nowrap;
	min-height: 44px;
	border-radius: 24px !important;
	padding: 0 18px !important;
	display: inline-flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	align-items: center;
	gap: 8px;
}

body.mcusa-unified-nav #header.mcusa-custom-header .mcusa-header-cta .wdt-button-text,
body.mcusa-unified-nav #header.mcusa-custom-header .mcusa-header-cta .wdt-button-icon {
	display: inline-flex !important;
	width: auto !important;
	flex: 0 0 auto !important;
}

body.mcusa-unified-nav #header.mcusa-custom-header .mcusa-header-cta .wdt-button-text span {
	font-size: 15px;
	font-weight: 700;
}

/* ── Desktop dropdowns ── */
body.mcusa-unified-nav .wdt-header-menu ul li ul.sub-menu {
	background: #fdf6e3 !important;
	border-radius: 0 0 8px 8px;
	box-shadow: 0 12px 32px rgba(26, 15, 8, 0.18);
}

body.mcusa-unified-nav .wdt-header-menu ul li ul.sub-menu li a,
body.mcusa-unified-nav .wdt-header-menu ul li ul.sub-menu li a span {
	color: #1a0f08 !important;
}

body.mcusa-unified-nav .wdt-header-menu ul li ul.sub-menu li a:hover span {
	color: #834d22 !important;
}

/* ── Homepage hero sits under fixed header ── */
body.home.mcusa-unified-nav .mh-hero {
	padding-top: var(--mcusa-header-height);
}

/* ── Mobile drawer — consistent stacking and colours ── */
body.nav-is-visible .mobile-menu-overlay {
	z-index: 10000 !important;
}

body.nav-is-visible .mobile-menu {
	z-index: 10001 !important;
	background: #fdf6e3 !important;
}

body.nav-is-visible .mobile-menu ul > li > a,
body.nav-is-visible .mobile-menu ul ul > li > a {
	color: #1a0f08 !important;
	border-color: rgba(26, 15, 8, 0.1) !important;
}

/* The desktop nav rule sets span text to cream. Override in drawer. */
body.nav-is-visible .mobile-menu ul > li > a span,
body.nav-is-visible .mobile-menu ul ul > li > a span {
	color: #1a0f08 !important;
}

body.nav-is-visible .mobile-menu ul > li.current-menu-item > a span,
body.nav-is-visible .mobile-menu ul > li.current_page_item > a span {
	color: #fdf6e3 !important;
}

body.nav-is-visible .mobile-menu ul li.see-all a {
	font-weight: 700;
	color: #834d22 !important;
}

body.logged-in.admin-bar.mcusa-unified-nav #header-wrapper > #header {
	top: 32px;
}

@media (max-width: 782px) {
	body.logged-in.admin-bar.mcusa-unified-nav #header-wrapper > #header {
		top: 46px;
	}
}

@media (max-width: 1280px) {
	body.mcusa-unified-nav #header.mcusa-custom-header .no-header {
		flex-wrap: nowrap;
		justify-content: flex-start;
		align-items: center;
		gap: 12px;
		min-height: 76px;
	}

	body.mcusa-unified-nav #header.mcusa-custom-header .no-header-logo img {
		max-height: 56px;
	}

	body.mcusa-unified-nav #header.mcusa-custom-header .mcusa-header-actions {
		margin-left: auto;
		flex: 0 0 auto;
		gap: 10px;
		justify-content: flex-end;
	}

	body.mcusa-unified-nav #header.mcusa-custom-header .mcusa-header-actions .mcusa-header-cta {
		order: 1;
	}

	body.mcusa-unified-nav #header.mcusa-custom-header .mcusa-header-actions .no-header-menu {
		order: 2;
	}

	body.mcusa-unified-nav #header.mcusa-custom-header .wdt-header-menu {
		flex: 0 0 auto;
		width: auto !important;
		min-width: 0;
		display: flex;
		align-items: center;
	}

	body.mcusa-unified-nav #header.mcusa-custom-header .menu-primary-navigation-container,
	body.mcusa-unified-nav #header.mcusa-custom-header #menu-primary-navigation,
	body.mcusa-unified-nav #header.mcusa-custom-header .wdt-primary-nav,
	body.mcusa-unified-nav #header.mcusa-custom-header .no-header-menu .menu-container {
		display: none !important;
	}

	body.mcusa-unified-nav #header.mcusa-custom-header .mobile-nav-container {
		display: inline-flex !important;
		align-items: center;
		margin-left: 0 !important;
	}

	body.mcusa-unified-nav #header.mcusa-custom-header .mobile-nav-container .menu-trigger > span {
		display: none;
	}

	body.mcusa-unified-nav .wdt-no-header-builder-content .no-header {
		padding-block: 12px;
	}

	body.mcusa-unified-nav .wdt-no-header-builder-content .no-header .mobile-nav-container {
		margin: 0;
	}

	body.mcusa-unified-nav #header.mcusa-custom-header .mcusa-header-cta {
		display: flex !important;
		align-items: center;
		margin-left: 0;
		flex-shrink: 0;
	}

	body.mcusa-unified-nav #header.mcusa-custom-header .mcusa-header-cta .wdt-button-holder,
	body.mcusa-unified-nav #header.mcusa-custom-header .mcusa-header-cta .wdt-button {
		display: inline-flex !important;
		flex-direction: row !important;
		align-items: center;
	}

	body.mcusa-unified-nav #header.mcusa-custom-header .mcusa-header-cta .wdt-button-text,
	body.mcusa-unified-nav #header.mcusa-custom-header .mcusa-header-cta .wdt-button-icon {
		display: inline-flex;
		align-items: center;
	}

	body.mcusa-unified-nav #header.mcusa-custom-header .mcusa-header-cta .wdt-button {
		min-height: 38px;
		padding: 0 14px !important;
		gap: 6px;
	}

	body.mcusa-unified-nav #header.mcusa-custom-header .mcusa-header-cta .wdt-button-text span {
		font-size: 14px;
		white-space: nowrap;
	}
}

@media (max-width: 480px) {
	body.mcusa-unified-nav #header.mcusa-custom-header .mcusa-header-cta .wdt-button-text span {
		font-size: 13px;
	}

	body.mcusa-unified-nav #header.mcusa-custom-header .mcusa-header-cta .wdt-button {
		padding: 0 10px !important;
	}
}
