/**
 * CJLS header (Figma 15973:2558) — light base band, two rows:
 *   utility row (top right): "News & Updates" 14px + gold 20px tick + 21px
 *   ink search icon; main row: 220×89 logo left, 16px slate links (gap 25px)
 *   + primary "Contribute" button right. Content column 1320px (1440 − 2×60).
 *
 * Core navigation collapses to the hamburger overlay at 600px; this design
 * collapses below 992px (matches the hero/mobile breakpoint). Between 600
 * and 991.98px core would show the horizontal link row — keep the hamburger
 * instead. The `header` prefix outranks core's same-weight rules regardless
 * of stylesheet order; the .is-menu-open overlay works at any width.
 */
@media (min-width: 600px) and (max-width: 991.98px) {
	header .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}

	header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none;
	}
}

/* The open overlay (toggle button + drawer panel) is skinned in one block at
   the END of this file — see "COLLAPSED NAVIGATION (<992px)". Keeping every
   overlay rule together and inside the collapsed media queries is what
   guarantees the ≥992px row is untouched. */

/**
 * Footer link columns: rest on the onDark.link token and whiten on
 * hover/focus. Direct rules on the link content beat the nav block's
 * inherited textColor.
 */
footer .wp-block-navigation .wp-block-navigation-item__content {
	color: var(--wp--custom--on-dark--text);
}

footer .wp-block-navigation .wp-block-navigation-item__content:hover,
footer .wp-block-navigation .wp-block-navigation-item__content:focus-visible {
	color: var(--wp--preset--color--white);
}

/**
 * Utility row (Figma 15973:2559): "News & Updates" — GSF 400 14px/1.4,
 * −1% tracking, body slate; bare link (no underline) that darkens to
 * contrast and underlines on hover/focus.
 */
header .utility-bar .secondary-nav a {
	font-size: var(--wp--preset--font-size--eyebrow);
	font-weight: 400;
	line-height: 1.4;
	letter-spacing: -0.01em;
	color: var(--wp--preset--color--body);
	text-decoration: none;
}

header .utility-bar .secondary-nav a:hover,
header .utility-bar .secondary-nav a:focus-visible {
	color: var(--wp--preset--color--contrast);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/**
 * Utility-row search (.header-search): core search block in button-only
 * mode — the design draws a bare 21px ink magnifier (no box), preceded by
 * the gold 20px hairline tick 20px to its left (Figma 15973:2561/2563).
 * The exported Figma glyph replaces core's magnifier via CSS mask (this
 * stylesheet is inlined by the styles inliner, so the asset URL is
 * root-absolute). The 44×24 footprint (20px divider padding + 24px touch
 * target) is pinned so the row doesn't reflow when the expanded field
 * goes position:fixed.
 */
header .utility-bar .header-search {
	position: relative;
	width: 44px;
	height: 24px;
	padding-left: 20px;
	flex: none;
}

header .utility-bar .header-search::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	height: 20px;
	border-left: var(--wp--custom--border--gold-tick);
}

header .header-search .wp-block-search__button {
	width: 24px;
	height: 24px;
	margin: 0;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: 0;
	border-radius: var(--wp--custom--radius--button);
	box-shadow: none;
	color: var(--wp--preset--color--ink);
	cursor: pointer;
}

header .header-search .wp-block-search__button:hover,
header .header-search .wp-block-search__button:focus-visible {
	background: transparent;
	color: var(--wp--preset--color--primary);
}

/* Core's own magnifier glyph differs from the design's — swap it for the
   exported Figma icon, painted in currentColor through a mask. */
header .header-search .wp-block-search__button svg {
	display: none;
}

header .header-search .wp-block-search__button::before {
	content: "";
	width: 21px;
	height: 21px;
	background: currentColor;
	-webkit-mask: url('/wp-content/themes/framework/assets/images/search-icon.svg') center / 21px 21px no-repeat;
	mask: url('/wp-content/themes/framework/assets/images/search-icon.svg') center / 21px 21px no-repeat;
}

header .header-search .wp-block-search__input {
	width: 190px;
	padding: 10px 12px;
	border: 1.5px solid var(--wp--custom--border--hairline-strong);
	border-radius: var(--wp--custom--radius--input);
	background: var(--wp--preset--color--base);
	font-family: var(--wp--preset--font-family--body);
	font-size: 14.5px;
	color: var(--wp--preset--color--contrast);
}

header .header-search .wp-block-search__input:focus,
header .header-search .wp-block-search__input:focus-visible {
	border-color: var(--wp--preset--color--primary);
	outline: 2px solid var(--wp--preset--color--primary);
	outline-offset: 2px;
}

/**
 * Logo (Figma 15973:2566): 220×89 SVG in a 65px main row — the mark bleeds
 * 12px above and below the row line, exactly as drawn (row 65px tall, logo
 * centered). Negative block margins reproduce the bleed while the sticky
 * bar's 15px top padding (the design's row gap) absorbs the overhang, so
 * nothing clips when the bar is stuck at the viewport top.
 */
header .site-header .cjls-logo {
	display: block;
	line-height: 0;
}

header .site-header .cjls-logo img {
	display: block;
	width: 220px;
	/* auto, not the mark’s own 89: the logo is an uploadable image now
	   (cjls/site-logo), and pinning both axes would squash a replacement with a
	   different ratio. The shipped 220×89 SVG still renders at exactly 89. */
	height: auto;
	margin-block: -12px;
}

/* Right cluster hugs the right edge even if the row ever wraps (the
   space-between pair handles the normal single-line case). */
header .site-header .header-nav-cluster {
	margin-left: auto;
}

/* Pages that open WITHOUT an immersive banner (search, 404, bare interiors)
   run the header straight into a white page — a soft shadow marks where it
   ends (client call). Banner pages keep their clean seam against the hero. */
body:not(.has-immersive-hero) header .site-header {
	box-shadow: var(--wp--custom--shadow--header, 0 2px 20px rgba(0, 0, 0, 0.08));
}

/**
 * Search results page form (.search-page-form, templates/search.html) —
 * lives here because this stylesheet loads on every page via the header
 * navigation block. Light-surface input metrics per the theme input
 * system; the button keeps the theme.json primary, sized compact.
 */
.search-page-form {
	max-width: 560px;
}

.search-page-form .wp-block-search__input {
	padding: 13px 14px;
	border: 1.5px solid var(--wp--custom--border--hairline-strong);
	border-radius: var(--wp--custom--radius--input);
	background: var(--wp--preset--color--base);
	font-family: var(--wp--preset--font-family--body);
	font-size: 15px;
	color: var(--wp--preset--color--contrast);
}

.search-page-form .wp-block-search__input:focus,
.search-page-form .wp-block-search__input:focus-visible {
	border-color: var(--wp--preset--color--primary);
	outline: 2px solid var(--wp--preset--color--primary);
	outline-offset: 2px;
}

.search-page-form .wp-block-search__button {
	margin-left: 8px;
	padding: 13px 22px;
	font-size: 15px;
}

/**
 * Footer bottom bar (.footer-legal) and address block (.footer-address):
 * low mockup grays fail small-text AA on the dark footer — per conventions
 * the legal links ride on-dark muted and lift to on-dark text on
 * hover/focus. Address links carry on-dark text emphasis and whiten on
 * hover. Direct rules beat the footer group's inherited accent link color
 * deterministically.
 */
footer .footer-legal a {
	color: var(--wp--custom--on-dark--muted);
	text-decoration: none;
}

footer .footer-legal a:hover,
footer .footer-legal a:focus-visible {
	color: var(--wp--custom--on-dark--text);
}

footer .footer-address a {
	color: var(--wp--custom--on-dark--text);
	font-weight: 600;
	text-decoration: none;
}

footer .footer-address a:hover,
footer .footer-address a:focus-visible {
	color: var(--wp--preset--color--white);
}

/**
 * Desktop link row (Figma 15973:2609): GSF 400 16px/1.4, −1% tracking,
 * body slate (theme.json core/navigation supplies the color; the 16px
 * size beats its 14px at (0,2,0)+element). Links ride a 2px transparent
 * baseline that turns primary on hover/focus; the current page keeps the
 * primary line and darkens to contrast. Scoped ≥992px — the mobile
 * overlay uses plain stacked rows. Overlay-only items (.menu-cta CTA,
 * .menu-search, the .menu-secondary "News & Updates" duplicate of the
 * utility-row link) never render in the desktop row.
 */
@media (min-width: 992px) {
	header .wp-block-navigation .menu-cta,
	header .wp-block-navigation .menu-search,
	header .wp-block-navigation .menu-secondary {
		display: none;
	}

	header .site-header .wp-block-navigation {
		font-size: 16px;
	}

	/* Expanded utility search: the bar goes position:fixed over a dimmed
	   backdrop so the header row never reflows. The form keeps its pinned
	   44×24 footprint (divider + icon slot); core's Interactivity API drops
	   .wp-block-search__searchfield-hidden when open and collapses on
	   focusout/Escape — clicking the backdrop (the form's own pseudo)
	   blurs the input, which core treats as focusout. */
	header .header-search:not(.wp-block-search__searchfield-hidden)::before {
		content: "";
		position: fixed;
		inset: 0;
		z-index: 110;
		background: color-mix(in srgb, var(--wp--preset--color--contrast) 45%, transparent);
		height: auto;
		border-left: 0;
		transform: none;
	}

	header .header-search:not(.wp-block-search__searchfield-hidden) .wp-block-search__inside-wrapper {
		position: fixed;
		top: 128px;
		left: 50%;
		transform: translateX(-50%);
		width: min(560px, calc(100vw - 48px));
		z-index: 120;
		display: flex;
		align-items: center; /* the magnifier rides the input's middle */
		gap: 8px;
		padding: 10px;
		background: var(--wp--preset--color--base);
		border-radius: var(--wp--custom--radius--card);
		box-shadow: var(--wp--custom--shadow--card);
	}

	header .header-search:not(.wp-block-search__searchfield-hidden) .wp-block-search__input {
		flex: 1;
		width: auto;
		min-width: 0;
	}

	header .wp-block-navigation-item__content {
		padding: 6px 0;
		border-bottom: 2px solid transparent;
		line-height: 1.4;
		letter-spacing: -0.01em;
	}

	header .wp-block-navigation-item__content:hover,
	header .wp-block-navigation-item__content:focus-visible {
		border-bottom-color: var(--wp--preset--color--primary);
	}

	/* Active states (client call, round 2): the top-bar parent keeps the
	   primary LINE — the cream band on the bar read as heavy — and the
	   cream moves into the dropdown, marking the current CHILD (rule after
	   the panel hover, below). Ancestors count: a child page lights its
	   parent's line. */
	header .wp-block-navigation-item:is(.current-menu-item, .current_page_item, .current-menu-ancestor, .current-menu-parent, .current_page_parent, .current_page_ancestor):not(.menu-secondary):not(.menu-cta) > .wp-block-navigation-item__content,
	header .wp-block-navigation-item:not(.menu-secondary):not(.menu-cta) > .wp-block-navigation-item__content[aria-current="page"] {
		border-bottom-color: var(--wp--preset--color--primary);
		color: var(--wp--preset--color--contrast);
	}

	/* Desktop dropdown panels (future submenu parents render as toggle
	   buttons). White card on the design system; row links inside swap the
	   top-bar underline hover for a tint fill. */
	header .wp-block-navigation .wp-block-navigation__submenu-container {
		min-width: 250px;
		padding: 8px;
		background: var(--wp--preset--color--base);
		border: 1px solid var(--wp--custom--border--card);
		border-radius: var(--wp--custom--radius--input);
		box-shadow: var(--wp--custom--shadow--header);
		z-index: 60;
	}

	/* Core declares the submenu border on a more specific selector —
	   re-pin the card token at (0,3,1). */
	header .wp-block-navigation .has-child .wp-block-navigation__submenu-container {
		border-color: var(--wp--custom--border--card);
	}

	header .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
		width: 100%;
		padding: 9px 12px;
		border-bottom: 0;
		border-radius: var(--wp--custom--radius--input);
		font-size: 14.5px;
	}

	header .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover,
	header .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content:focus-visible {
		background: var(--wp--preset--color--tint);
		border-bottom: 0;
		color: var(--wp--preset--color--contrast);
	}

	/* Current CHILD wears the cream — the row shape the hover already
	   draws (inset, input radius), in the active color. Placed after the
	   hover rule so the specificity tie resolves to cream on hover too. */
	header .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item:is(.current-menu-item, .current_page_item) > .wp-block-navigation-item__content,
	header .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content[aria-current="page"] {
		background: var(--wp--preset--color--cream);
		border-bottom: 0;
		color: var(--wp--preset--color--contrast);
	}
}

/**
 * Compact desktop tier (992–1239px): the five CJLS labels plus the
 * Contribute button don't fit the 1440 mockup metrics below ~1240px —
 * step the links to the 14px UI size, tighten the gaps, and scale the
 * logo so the row holds one line down to the 992px collapse point.
 * (Mockups are desktop-only; tier per conventions responsive rules.)
 * Placed after the ≥992 block so its font-size wins the cascade tie.
 */
@media (min-width: 992px) and (max-width: 1239.98px) {
	header .site-header .wp-block-navigation {
		font-size: var(--wp--preset--font-size--eyebrow);
		gap: 12px;
	}

	header .site-header > .wp-block-group,
	header .site-header .header-nav-cluster {
		gap: 12px;
	}

	header .site-header .cjls-logo img {
		width: 150px;
		height: auto;
		margin-block: 0;
	}
}

/* ============================================================================
 * COLLAPSED NAVIGATION (<992px) — the toggle button and the open drawer.
 *
 * Figma "Tablet - Menu 0" 15973:14070 (768 frame) and "Mobile - Menu"
 * 15642:428 (390 frame). Measured off the design, not eyeballed:
 *
 *   panel  15973:14131 — 369x949, flush RIGHT, top edge on the header's
 *                        bottom edge (NOT a full-screen takeover)
 *   items  15973:14132 — 310px column, 35px from the panel's left / 24px
 *                        from its right, first row 121px below the panel top
 *   row    15973:14133 — 58px tall, 18px block padding, 10px lead-in,
 *                        16px/1.4 GSF -1% body slate, 1px #B5C3DC divider
 *   active 15973:14133 — #EDE3D5 cream band = the current page
 *   news   15973:14150 — 14px contrast, 35px under the last divider
 *   search 15973:14152 — bare ~19px magnifier, 14px under that
 *   toggle 15973:14084 — 55px circle, 1px ring, base fill, two 21px rules
 *                        1.2px thick and 7px apart (same glyph open/closed)
 *
 * Core's MECHANISM is untouched — aria-haspopup/aria-label, the open and
 * close buttons, the focus trap, `has-modal-open` and the responsive-container
 * classes all still drive the overlay. Everything here is skin, and every rule
 * sits inside a collapsed media query so the >=992px row cannot be reached.
 *
 * Specificity notes, because core fights back:
 *   - core pads the overlay from the root-padding vars on
 *     `.is-menu-open:not(.disable-default-overlay)` (0,3,0) — the `header`
 *     prefix plus the same `:not()` gives (0,3,1) and wins;
 *   - core's other overlay rules run at (0,4,0) through
 *     `:where(:not(.disable-default-overlay))`, so the descendant rules below
 *     land at (0,4,1)+ and beat them on the element;
 *   - `.wp-block-navigation:not(.has-background)` forces #fff on the open
 *     overlay at (0,4,0) — the panel's background therefore carries the extra
 *     `.wp-block-navigation` ancestor to reach (0,4,1);
 *   - core sets `background: transparent !important` on
 *     `.wp-block-navigation-item`, so the current-page band is painted on the
 *     li's ::before — a pseudo-element core's selector cannot reach.
 * ========================================================================== */
@media (max-width: 991.98px) {
	header .site-header {
		--cjls-menu-panel: 369px;
		--cjls-menu-lead: 121px;
		--cjls-menu-inset-start: 35px;
		--cjls-menu-inset-end: 24px;
		--cjls-menu-toggle: 55px;
		/* Design (client CSS): the collapsed bar sits on its own base surface
		   with the 0.5px nav hairline underneath — explicit here so it holds
		   over the immersive hero and the open drawer alike. */
		background: var(--wp--preset--color--base);
		border-bottom: var(--wp--custom--border--nav-rule, 0.5px solid #B5C3DC);
	}

	/* --- the bar ---------------------------------------------------------
	 * Unchanged apart from the toggle. The utility row and the logo size feed
	 * `--cjls-home-hero-header` / `--cjls-immersive-header` in
	 * src/blocks/*-hero/style.scss (the immersive banner is pulled up by the
	 * header's rendered height), so the bar's HEIGHT is not ours to change
	 * from this file. The hamburger sits at the far right of the cluster.
	 *
	 * `nav.` matters: core also stamps `wp-block-navigation` on the <ul>s
	 * inside the drawer, and an unqualified `order: 2` on those pushed the
	 * search form (order 0) above every link in the open menu.
	 */
	header .site-header nav.wp-block-navigation {
		order: 2;
		/* The drawer below anchors to `.site-header` (sticky, therefore a
		   containing block). Core makes the nav `position: relative`, which
		   would capture it instead — stand that down here; the desktop
		   dropdowns that need it live in the >=992px block. */
		position: static;
	}

	header .site-header > .wp-block-group,
	header .site-header .header-nav-cluster {
		gap: 12px;
	}

	header .site-header .cjls-logo img {
		width: 170px;
		height: auto;
		margin-block: 0;
	}

	/* The whole utility strip stands down on the collapsed tier: the design's
	   mobile and tablet menus carry no top strip, search lives inside the
	   drawer (.menu-search below), and News & Updates is a drawer row — the
	   stray strip floating over the open menu read as a broken item
	   (client QA). */
	header .utility-bar {
		display: none;
	}

	/* The bar Contribute yields to the drawer CTA on the whole collapsed
	   tier — beside the toggle it duplicated the drawer's button (client
	   QA). */
	header .site-header .wp-block-buttons {
		display: none;
	}

	/* --- toggle + close: one circular control ---------------------------
	 * The design draws the SAME control open and closed (15973:14084 is a
	 * hamburger inside a ring), so both of core's buttons share this skin.
	 * The glyph is two CSS rules, not an icon font and not core's SVG —
	 * webfonts are not dependable here per CLAUDE.md. Accessible names come
	 * from core: "Open menu" / "Close menu".
	 */
	header .wp-block-navigation__responsive-container-open,
	header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close {
		box-sizing: border-box;
		width: var(--cjls-menu-toggle);
		height: var(--cjls-menu-toggle);
		flex: none;
		display: flex;
		align-items: center;
		justify-content: center;
		padding: 0;
		background: var(--wp--preset--color--base);
		/* The design ring is #D1CDC8, a warm gray with no token; this is the
		   nearest palette hairline (#B5C3DC) — see notes. */
		border: 1px solid var(--wp--custom--border--hairline-strong);
		border-radius: 50%;
		/* The design glyph is #333333; ink (#111111) is the nearest neutral
		   token and already carries the header's icon colour. */
		color: var(--wp--preset--color--ink);
		cursor: pointer;
	}

	header .wp-block-navigation__responsive-container-open {
		position: relative;
	}

	header .wp-block-navigation__responsive-container-open:focus-visible,
	header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close:focus-visible {
		outline: 2px solid var(--wp--preset--color--primary);
		outline-offset: 3px;
	}

	/* Core's own bars are narrower than the design's and its close button is
	   an X; hide both glyphs and draw the design's two rules. */
	header .wp-block-navigation__responsive-container-open svg,
	header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close svg {
		display: none;
	}

	header .wp-block-navigation__responsive-container-open::before,
	header .wp-block-navigation__responsive-container-open::after,
	header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close::before,
	header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close::after {
		content: "";
		position: absolute;
		left: 50%;
		width: 21px;
		height: 1.2px;
		background: currentColor;
		transform: translate(-50%, -50%);
		pointer-events: none;
	}

	header .wp-block-navigation__responsive-container-open::before {
		top: calc(50% - 3.5px);
	}

	header .wp-block-navigation__responsive-container-open::after {
		top: calc(50% + 3.5px);
	}

	/* Open, the control is an X (design 15642:428): the same two rules,
	   stacked on the centre line and crossed. Rotating them rather than
	   swapping in a glyph keeps the identical stroke weight and colour, and
	   the transition below makes the flip read as one control changing state
	   rather than two buttons swapping places. */
	header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close::before,
	header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close::after {
		top: 50%;
	}

	header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close::before {
		transform: translate(-50%, -50%) rotate(45deg);
	}

	header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close::after {
		transform: translate(-50%, -50%) rotate(-45deg);
	}

	@media (prefers-reduced-motion: no-preference) {
		header .wp-block-navigation__responsive-container-open::before,
		header .wp-block-navigation__responsive-container-open::after,
		header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close::before,
		header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close::after {
			transition: transform 180ms ease, top 180ms ease;
		}
	}

	/* --- the drawer ------------------------------------------------------
	 * Anchored to `.site-header` rather than to the viewport: `top: 100%` IS
	 * the bar's own bottom edge, so the panel tracks the bar at every scroll
	 * position and through every header height (utility row present or
	 * scrolled away, admin bar or not) with no hard-coded offset to drift.
	 * `right: 0` is the viewport edge — an absolutely positioned box resolves
	 * against the ancestor's PADDING box and the bar spans the full width.
	 */
	header .wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) {
		position: absolute;
		top: 100%;
		/* The panel carries the SAME hairline as its own top border: absolute
		   percentages resolve against the padding box, so the panel sits ON
		   the bar's 0.5px navRule band and covered its right half. Offsetting
		   by 0.5px loses to device-pixel rounding (0.5px renders 0.8px at
		   this DPR); painting the line on the panel too makes the two
		   segments meet seamlessly at every DPR. */
		border-top: var(--wp--custom--border--nav-rule, 0.5px solid #B5C3DC);
		right: 0;
		bottom: auto;
		left: auto;
		width: var(--cjls-menu-panel);
		max-width: 100%;
		height: calc(100vh - 100%);
		height: calc(100dvh - 100%);

		padding: 0;
		/* The close control is parked above this box, over the bar, so the
		   panel must not clip; the scroll box is the content below. */
		overflow: visible;
		/* The design's menu shadow drops DOWNWARD (client CSS). The old card
		   glow radiated 40px in every direction and bled up over the bar,
		   which read as a shadow on the HEADER. */
		box-shadow: var(--wp--custom--shadow--menu, 0 14px 14px 0 rgba(0, 0, 0, 0.25));
	}

	/* Short windows: the menu (7 rows + CTA + search) outgrows the panel and
	   the body scroll is modal-locked, so anything past the panel's foot —
	   the search icon first — was UNREACHABLE (client QA on a ~600px-tall
	   window). The CONTENT box scrolls; the panel itself must stay
	   unclipped for the close control parked above it. */
	header .wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) .wp-block-navigation__responsive-close,
	header .wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) .wp-block-navigation__responsive-dialog {
		height: 100%;
		min-height: 0;
	}

	header .wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) .wp-block-navigation__responsive-container-content {
		height: 100%;
		min-height: 0;
		overflow-y: auto;
		overscroll-behavior: contain;
		/* The search row breathes at the scroll foot (client call) — the
		   35px matches the drawer's own drop above News & Updates. */
		padding-bottom: 35px;
	}

	/* The scroll box is a height-constrained flex COLUMN, so its items can
	   compress — the rows resist via min-height, but core gives the
	   collapsed search form overflow:hidden (its expand animation), which
	   zeroes the flex minimum and squashed the magnifier row to 0 height
	   (client devtools: "310 × 0"). Nothing in the drawer may shrink —
	   overflow is what the scrollbar is for. */
	header .wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) .wp-block-navigation__responsive-container-content > * {
		flex-shrink: 0;
	}

	/* Background/colour need the extra ancestor: core forces #fff/#000 onto
	   the open overlay at (0,4,0) whenever the NAV element itself carries no
	   colour class — ours carries them on the container, so it does hit. */
	header .wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) {
		background-color: var(--wp--preset--color--base);
		color: var(--wp--preset--color--body);
	}

	/* Core's wrappers: full width, no auto-centring, and no admin-bar tuck —
	   the panel already hangs off the real bar, admin bar included. */
	header .wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) .wp-block-navigation__responsive-close,
	header .wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) .wp-block-navigation__responsive-dialog {
		width: 100%;
		max-width: none;
		margin: 0;
		gap: 0;
		display: flex;
		flex-direction: column;
		flex: 1;
		min-height: 0;
		overflow: visible;
	}

	/* The close control sits exactly ON the open toggle. `bottom: 100%` is
	   the panel's top edge (= the bar's bottom edge); back off by the bar's
	   own bottom padding (14px under 1000px) plus half the difference between
	   the 68.8px row (the 170px logo's rendered height) and the 55px button. */
	header .wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) .wp-block-navigation__responsive-container-close {
		position: absolute;
		top: auto;
		bottom: calc(100% + 14px + (68.8px - 55px) / 2);
		right: var(--wp--custom--gutter);
		z-index: 2;
	}

	/* Content box: the design's 121 / 35 / 24 padding, and the only thing
	   that scrolls when the menu outgrows the drawer. */
	header .wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) .wp-block-navigation__responsive-container-content {
		flex: 1;
		min-height: 0;
		width: 100%;
		gap: 0;
		align-items: stretch;
		padding: var(--cjls-menu-lead) var(--cjls-menu-inset-end) 40px var(--cjls-menu-inset-start);
		overflow-y: auto;
		overscroll-behavior: contain;
	}

	/* Both link lists (core splits the CTA into a second <ul> because the
	   search form sits between them) run flush — the dividers are the
	   rhythm, so the nav block's 25px gap stands down. */
	header .wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) .wp-block-navigation__container {
		width: 100%;
		margin: 0;
		gap: 0;
		align-items: stretch;
	}

	header .wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) .wp-block-navigation-item {
		width: 100%;
		align-items: stretch;
	}

	/* --- rows ------------------------------------------------------------ */
	header .wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) .wp-block-navigation-item__content {
		position: relative;
		z-index: 1;
		display: flex;
		align-items: center;
		gap: 10px;
		width: 100%;
		/* 58px measured, not padded to 58: the design's "18px" padding is
		   Figma rounding a 58px frame around a 22.4px line box, so the block
		   padding is 17px and `min-height` supplies the exact row. */
		min-height: 58px;
		padding: 17px 20px 17px 10px;
		border-bottom: 1px solid var(--wp--preset--color--border);
		font-family: var(--wp--preset--font-family--body);
		font-size: 16px;
		font-weight: 400;
		line-height: 1.4;
		letter-spacing: -0.01em;
		color: var(--wp--preset--color--body);
		text-decoration: none;
	}

	header .wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) .wp-block-navigation-item__content:hover,
	header .wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) .wp-block-navigation-item__content:focus-visible {
		background: var(--wp--preset--color--tint);
		color: var(--wp--preset--color--contrast);
	}

	/* --- current page ----------------------------------------------------
	 * Driven by WordPress's OWN state, never a hard-coded item:
	 * core/navigation stamps `current-menu-item` + `aria-current="page"` on
	 * the matching link, navigation-submenu adds `current-menu-ancestor`, and
	 * page-list / classic-menu imports add the `current_page_*` pair.
	 * The cream band is painted on the li's ::before because core sets
	 * `background: transparent !important` on `.wp-block-navigation-item`;
	 * z-index keeps it under the row, which owns the divider.
	 * The band is the design's cue, the weight step and aria-current are the
	 * non-colour ones.
	 */
	header .wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) .wp-block-navigation-item:is(.current-menu-item, .current_page_item, .current-menu-ancestor, .current-menu-parent, .current_page_parent, .current_page_ancestor, :has(> .wp-block-navigation-item__content[aria-current="page"])):not(.menu-secondary):not(.menu-cta):not(.wp-block-navigation__submenu-container *)::before {
		content: "";
		position: absolute;
		inset: 0;
		/* The active band marks the PARENT ROW only: a has-child li grows to
		   hold its expanded children, and inset:0 wrapped the whole group in
		   cream (client QA). The row is the design's 58px — cap to it. */
		bottom: auto;
		height: 58px;
		z-index: 0;
		background: var(--wp--preset--color--cream);
		pointer-events: none;
	}

	header .wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) .wp-block-navigation-item:is(.current-menu-item, .current_page_item, .current-menu-ancestor, .current-menu-parent, .current_page_parent, .current_page_ancestor):not(.menu-secondary):not(.menu-cta) > .wp-block-navigation-item__content,
	header .wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) .wp-block-navigation-item:not(.menu-secondary):not(.menu-cta) > .wp-block-navigation-item__content[aria-current="page"] {
		background: transparent;
		color: var(--wp--preset--color--contrast);
		font-weight: 500;
	}

	/* Child rows: the cream band belongs to TOP-LEVEL rows only — the band
	   rule above excludes submenu descendants (the :not(container *) arm),
	   and a current child takes a plain underline instead. */
	header .wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) .wp-block-navigation__submenu-container .wp-block-navigation-item:is(.current-menu-item, .current_page_item) > .wp-block-navigation-item__content,
	header .wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) .wp-block-navigation__submenu-container .wp-block-navigation-item > .wp-block-navigation-item__content[aria-current="page"] {
		text-decoration: underline;
		text-underline-offset: 4px;
	}

	/* --- items with children --------------------------------------------
	 * The drawer is an ACCORDION now (client call — the always-expanded lists
	 * with dead arrows read as broken): child lists start collapsed, the
	 * chevron toggles them, and the state rides on the li as data-cjls-open,
	 * written by assets/js/nav-drawer.js (which claims the toggle clicks in
	 * capture phase so core's Interactivity runtime never fights the aria).
	 * The chevron is core's own inline SVG, resized and recoloured — no icon
	 * font; closed it points down, open rotates up. Core hangs it OUTSIDE
	 * the anchor, so has-child rows carry the row chrome on the li and let
	 * label + chevron share one line, child list wrapping beneath.
	 */
	header .wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) .wp-block-navigation-item.has-child {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
		gap: 10px;
		min-height: 58px;
		padding: 17px 20px 17px 10px;
		border-bottom: 1px solid var(--wp--preset--color--border);
	}

	/* With the row chrome on the li, the label is a bare 16px/1.4 line box —
	   22.4px, under the 24px minimum target (WCAG 2.5.8). Pad the hit box over
	   the threshold and refund it with negative margins so the label position,
	   the 58px row and the hover chip all render exactly as before. */
	header .wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) .wp-block-navigation-item.has-child > .wp-block-navigation-item__content {
		width: auto;
		min-height: 0;
		padding: 2px 0;
		margin-block: -2px;
		border-bottom: 0;
	}

	header .wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) .wp-block-navigation__submenu-icon {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 24px;
		height: 24px;
		margin: 0;
		padding: 0;
		background: transparent;
		border: 0;
		/* Same paint layer as __content: the current-item cream band is a
		   positioned ::before and covers a STATIC button — the open state's
		   rotate() happened to lift the svg (transforms stack), so the arrow
		   read as "disappearing on close" on exactly the banded row. */
		position: relative;
		z-index: 1;
		color: var(--wp--preset--color--contrast);
		cursor: pointer;
	}

	header .wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) .wp-block-navigation__submenu-icon svg {
		width: 10px;
		height: 10px;
		margin: 0;
		fill: none;
		stroke: currentColor;
		stroke-width: 1.2;
		stroke-linecap: round;
	}

	/* Accordion state. Collapsed is the default; nav-drawer.js stamps
	   data-cjls-open on the li. display:none (not visibility) so the row
	   gives its wrap-line back — core's forced-open overlay rules only push
	   visibility/opacity, which display trumps regardless of specificity. */
	header .wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) .wp-block-navigation-item.has-child:not([data-cjls-open]) > .wp-block-navigation__submenu-container {
		display: none;
	}

	header .wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) .wp-block-navigation-item.has-child[data-cjls-open] > .wp-block-navigation__submenu-icon svg {
		transform: rotate(180deg);
	}

	@media (prefers-reduced-motion: no-preference) {
		header .wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) .wp-block-navigation__submenu-icon svg {
			transition: transform 0.15s ease;
		}
	}

	/* Child list: full-width row under its parent, indented against a
	   hairline, one step smaller than the top-level rows. */
	header .wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) .wp-block-navigation__submenu-container {
		flex-basis: 100%;
		width: 100%;
		min-width: 0;
		gap: 0;
		margin: 10px 0 0;
		padding: 0 0 0 14px;
		border-left: 1px solid var(--wp--custom--border--hairline);
	}

	header .wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
		min-height: 44px;
		padding: 10px 0 10px 10px;
		border-bottom: 0;
		font-size: 14.5px;
	}

	/* --- "News & Updates" (15973:14150) ---------------------------------
	 * Not a row: 14px contrast type 35px below the last divider, flush with
	 * the item column's left edge (the 10px lead-in is a row property, not a
	 * column one — the design lines this up with the panel inset, not the
	 * labels).
	 */
	header .wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) .menu-secondary > .wp-block-navigation-item__content {
		min-height: 0;
		/* A bare 14px/1.4 line is 19.6px — under the 24px minimum target.
		   3px of block padding clears it; the margins refund it so the 35px
		   drop under the last divider (32 + 3) and the search's 24px gap
		   below both hold to the pixel. */
		margin-top: 32px;
		margin-bottom: -3px;
		padding: 3px 0;
		border-bottom: 0;
		font-size: var(--wp--preset--font-size--eyebrow);
		color: var(--wp--preset--color--contrast);
	}

	header .wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) .menu-secondary > .wp-block-navigation-item__content:hover,
	header .wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) .menu-secondary > .wp-block-navigation-item__content:focus-visible {
		background: transparent;
		text-decoration: underline;
		text-underline-offset: 3px;
	}

	/* --- drawer search -----------------------------------------------------
	 * The ICON alone, per the client: the design's 20x20 magnifier as a
	 * background-image on the button (their exact export, stroke #111111),
	 * inside the 24x24 minimum target. The block runs button-only, so core's
	 * Interactivity expands the field on tap — the expanded input keeps the
	 * theme's light metrics below.
	 */
	header .wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) .menu-search {
		width: 100%;
		margin-top: 24px;
	}

	header .wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) .menu-search .wp-block-search__inside-wrapper {
		display: flex;
		align-items: center;
		justify-content: flex-start;
		/* No gap while collapsed: core keeps the zero-width input in the flex
		   line, so a gap would push the glyph off the column's left edge. */
		gap: 0;
		max-width: 100%;
	}

	/* Core only zeroes the collapsed field's WIDTH, so it still reserved ~16px
	   of height under the glyph. Match the 24px target instead. */
	header .wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) .menu-search.wp-block-search__searchfield-hidden .wp-block-search__input {
		height: 24px;
		min-height: 0;
		padding-block: 0;
		border-block-width: 0;
	}

	header .wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) .menu-search:not(.wp-block-search__searchfield-hidden) .wp-block-search__inside-wrapper {
		gap: 8px;
	}

	header .wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) .menu-search .wp-block-search__button {
		flex: none;
		width: 24px;
		height: 24px;
		min-width: 24px;
		margin: 0;
		padding: 0;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		background: transparent;
		background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M18.7 18.7L14.4429 14.6105M8.7486 0.5C4.19296 0.5 0.5 4.16182 0.5 8.69011C0.5 13.2182 4.19296 16.8802 8.7486 16.8802C10.9599 16.8802 12.9613 16.0251 14.4429 14.6217C16.0241 13.1306 17.0082 11.0255 17.0082 8.69022C16.9972 4.16193 13.304 0.50011 8.7486 0.50011V0.5Z' stroke='%23111111' stroke-miterlimit='10' stroke-linecap='round'/%3E%3C/svg%3E%0A");
		background-repeat: no-repeat;
		background-position: center;
		background-size: 20px 20px;
		border: 0;
		border-radius: 0;
		box-shadow: none;
		color: transparent;
		cursor: pointer;
	}

	header .wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) .menu-search .wp-block-search__button:hover,
	header .wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) .menu-search .wp-block-search__button:focus-visible {
		background-color: transparent;
		opacity: 0.7;
	}

	header .wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) .menu-search .wp-block-search__button svg {
		display: none;
	}

	/* Expanded state (core drops .wp-block-search__searchfield-hidden): the
	   field opens across the drawer on the theme's light input metrics. */
	header .wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) .menu-search:not(.wp-block-search__searchfield-hidden) .wp-block-search__input {
		flex: 1;
		min-width: 0;
		padding: 10px 12px;
		border: 1.5px solid var(--wp--custom--border--hairline-strong);
		border-radius: var(--wp--custom--radius--input);
		background: var(--wp--preset--color--base);
		font-family: var(--wp--preset--font-family--body);
		font-size: 16px; /* >=16px prevents iOS zoom-on-focus */
		color: var(--wp--preset--color--contrast);
	}

	header .wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) .menu-search:not(.wp-block-search__searchfield-hidden) .wp-block-search__input:focus,
	header .wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) .menu-search:not(.wp-block-search__searchfield-hidden) .wp-block-search__input:focus-visible {
		border-color: var(--wp--preset--color--primary);
		outline: 2px solid var(--wp--preset--color--primary);
		outline-offset: 2px;
	}

	/* --- drawer CTA (.menu-cta) ------------------------------------------
	 * The only "Contribute" on the collapsed tier (the bar button yields to
	 * it). Client placement: directly below Programs & Events — the item
	 * rides there in the nav markup, hidden on desktop with its overlay-only
	 * siblings. Design-system primary button at its own intrinsic width.
	 */
	header .wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) .menu-cta {
		width: 100%;
		align-items: flex-start;
		margin-top: 24px;
	}

	header .wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) .menu-cta > .wp-block-navigation-item__content {
		justify-content: center;
		min-height: 0;
		width: auto;
		padding: 20px 25px;
		border-bottom: 0;
		border-radius: var(--wp--custom--radius--button);
		background: var(--wp--preset--color--primary);
		color: var(--wp--preset--color--base);
		font-size: 16px;
		font-weight: 400;
		line-height: 1.3;
		letter-spacing: normal;
		text-align: center;
		box-shadow: none;
	}

	header .wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) .menu-cta > .wp-block-navigation-item__content:hover,
	header .wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) .menu-cta > .wp-block-navigation-item__content:focus-visible {
		background: var(--wp--preset--color--primary-hover);
		color: var(--wp--preset--color--body);
	}
}

/* Phones (Figma "Mobile - Menu" 15642:428, 390 frame): the drawer takes the
   full width and the item column sits on the 16px page inset. */
@media (max-width: 599.98px) {
	header .wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) {
		width: 100%;
	}

	header .wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) .wp-block-navigation__responsive-container-content {
		padding-right: 16px;
		padding-left: 16px;
	}
}
/*
 * Stacking: the utility row must paint ABOVE the header bar below it. Both
 * carried z-index 30 (the immersive-hero rules give the sticky header one),
 * and with the utility row FIRST in the DOM the header won the tie — so the
 * expanded search field opened underneath the logo/nav bar and was unusable.
 * This is not homepage-specific: any page with the sticky header hit it.
 */
header .utility-bar {
	position: relative;
	z-index: 40;
}

