/* v4 header — approved spec. Bar 1 #162623 / Bar 2 #FFFFFF, single sticky
 * hide-on-scroll unit. See z-index hierarchy block below before touching
 * stacking on any header element. */

:root {
	/* Header surfaces. Bar 1 is always the dark brand colour, but Bar 2, the
	 * mega panels and the mobile drawer all flip with the appearance setting,
	 * so their colours are tokens rather than literals. */
	--mrb-hdr-surface: #ffffff;
	--mrb-hdr-raised: #F7F5F0;
	--mrb-hdr-line: #EDEAE4;
	--mrb-hdr-ink: #0E1418;
	--mrb-hdr-muted: rgba(14, 20, 24, 0.7); /* was 0.55 (4.1:1); now ≥ 5.5:1 on white and #F7F5F0 */
	--mrb-hdr-meta: rgba(14, 20, 24, 0.64); /* was 0.4 (2.6:1) */
	--mrb-hdr-accent: var(--mrb-brand-bar); /* was #162623; follows the brand blue */

	/* Brand surface of Bar 1 and the footer. Changed 2026-09-25 from #162623 (dark green)
	 * to #0E4560; to roll back set #162623 / #0E1715. */
	--mrb-brand-bar: #0E4560;
	--mrb-brand-bar-deep: #0A3246; /* footer in night mode (was #0E1715) */
	/* Bar 1 surface (2026-09-25): deeper blue at the edges, lighter behind the centred
	 * logo, plus a soft glow there. Every stop keeps white text above 7:1 contrast.
	 * Roll back to the flat colour with: --mrb-brand-bar-gradient: none; */
	--mrb-brand-bar-gradient:
		radial-gradient(34% 190% at 50% 50%, rgba(98, 196, 230, 0.2) 0%, rgba(98, 196, 230, 0) 70%),
		linear-gradient(90deg, #0A344A 0%, #0E4560 30%, #115476 50%, #0E4560 70%, #0A344A 100%);

	--mrb-bar1-height: 88px;

	/*
	 * Z-INDEX HIERARCHY (documented — do not add ad-hoc large values)
	 * ------------------------------------------------------------------
	 * Page content ......................... default (no z-index set)
	 * .mrb-header (sticky wrapper) ......... 500   — above page content,
	 *                                                below the theme's
	 *                                                pre-existing floating
	 *                                                tools (999) and skip
	 *                                                link (1000)
	 * Inside .mrb-header's own stacking context:
	 *   Bar 2 (.mrb-nav-bar) ............... 10   — lower header layer
	 *   Mega menus (.mrb-mega-menus-panel) . 20   — above Bar 2 + content
	 *   Bar 1 (.mrb-brand-bar) ............. 30   — above Bar 2
	 *   Bar 1 popovers (search, language) .. 40   — highest header layer
	 */
	--mrb-z-header: 500;
	--mrb-z-bar2: 10;
	--mrb-z-mega: 20;
	--mrb-z-bar1: 30;
	--mrb-z-bar1-pop: 40;
}

[data-theme="night"] {
	--mrb-hdr-surface: #10181A;
	--mrb-hdr-raised: #16211F;
	--mrb-hdr-line: #1E2830;
	--mrb-hdr-ink: #E6EEF3;
	--mrb-hdr-muted: rgba(230, 238, 243, 0.72);
	--mrb-hdr-meta: rgba(230, 238, 243, 0.64);
	--mrb-hdr-accent: #E6EEF3;
}

@media (max-width: 1024px) {
	:root {
		--mrb-bar1-height: 76px;
	}

	.mrb-logo-img {
		max-height: 48px;
	}
}

@media (max-width: 480px) {
	:root {
		--mrb-bar1-height: 60px;
	}
}

.mrb-skip-link {
	position: absolute;
	top: -40px;
	left: 0;
	background: var(--mrb-color-primary);
	color: white;
	padding: var(--mrb-space-2) var(--mrb-space-4);
	text-decoration: none;
	z-index: 1000;
	border-radius: var(--mrb-radius-sm);
}

.mrb-skip-link:focus {
	top: 0;
}

/* ========== HEADER WRAPPER: sticky unit, both bars move together ========== */
.mrb-header {
	position: sticky;
	top: 0;
	z-index: var(--mrb-z-header);
	background: transparent;
	transform: translateY(0);
	transition: transform 260ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 260ms ease;
	box-shadow: none;
}

.mrb-header.is-stuck {
	box-shadow: 0 4px 16px rgba(22, 38, 35, 0.10);
}

.mrb-header.is-hidden {
	transform: translateY(-100%);
}

/* ========== BAR 1: BRAND BAR ========== */
.mrb-brand-bar {
	position: relative;
	background-color: var(--mrb-brand-bar);
	background-image: var(--mrb-brand-bar-gradient);
	color: white;
	height: var(--mrb-bar1-height);
	display: flex;
	align-items: center;
	z-index: var(--mrb-z-bar1);
}

/* Hairline of light along the bottom edge, where the blue meets the white nav bar. */
.mrb-brand-bar::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 1px;
	background: linear-gradient(90deg, rgba(140, 210, 236, 0), rgba(140, 210, 236, 0.4) 50%, rgba(140, 210, 236, 0));
	pointer-events: none;
}

.mrb-brand-inner {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	width: 100%;
	padding: 0 var(--mrb-gutter);
	height: 100%;
	gap: var(--mrb-space-4);
}

.mrb-logo {
	display: flex;
	align-items: center;
	justify-self: center;
	text-decoration: none;
	color: white;
	flex-shrink: 0;
	transition: opacity 200ms ease;
}

.mrb-logo:hover {
	opacity: 0.85;
}

/* Enlarged 2026-09-24 (was 44/38/32px). The source PNG is 106×100, so anything
 * above ~50px looks soft on high-density screens until a larger file or an SVG is uploaded. */
.mrb-logo-img {
	max-height: 58px;
	width: auto;
	display: block;
	filter: brightness(0) invert(1);
}

.mrb-logo-text {
	font-family: var(--mrb-font-header-nav);
	font-size: clamp(1.55rem, 2.4vw, 2.15rem);
	font-weight: 500;
	letter-spacing: 0.12em;
	line-height: 1;
}

.mrb-brand-left,
.mrb-brand-right {
	display: flex;
	align-items: center;
	gap: 28px;
}

.mrb-brand-left {
	justify-self: start;
}

.mrb-brand-right {
	justify-self: end;
}

.mrb-cart-link {
	position: relative;
}

.mrb-cart-badge {
	position: absolute;
	top: -6px;
	right: -8px;
	min-width: 15px;
	height: 15px;
	padding: 0 3px;
	border-radius: 999px;
	background: #ffffff;
	color: var(--mrb-brand-bar);
	font-size: 9px;
	font-weight: 700;
	line-height: 15px;
	text-align: center;
}

/* Search + theme toggle: icon-only, no border/background/box */
.mrb-util-btn {
	position: relative;
	background: none;
	border: none;
	padding: 0;
	margin: 0;
	cursor: pointer;
	color: rgba(255, 255, 255, 0.85);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: color 200ms ease;
}

.mrb-util-btn:hover,
.mrb-util-btn:focus-visible {
	color: #ffffff;
}

.mrb-util-btn:focus-visible {
	outline: 1px solid rgba(255, 255, 255, 0.6);
	outline-offset: 3px;
}

.mrb-util-icon {
	width: 18px;
	height: 18px;
	fill: currentColor;
}

.mrb-appearance-toggle .mrb-icon-sun { display: block; }
.mrb-appearance-toggle .mrb-icon-moon { display: none; }
[data-theme="night"] .mrb-appearance-toggle .mrb-icon-sun { display: none; }
[data-theme="night"] .mrb-appearance-toggle .mrb-icon-moon { display: block; }

/* Light mode shows a warm, softly glowing sun; dark mode a pale crescent moon with a star. */
.mrb-appearance-toggle .mrb-icon-sun {
	width: 20px;
	height: 20px;
	color: #FFD27A;
	filter: drop-shadow(0 0 3px rgba(255, 205, 110, 0.8)) drop-shadow(0 0 9px rgba(255, 190, 80, 0.4));
	animation: mrbSunGlow 3.6s ease-in-out infinite;
	transition: transform 400ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.mrb-appearance-toggle:hover .mrb-icon-sun,
.mrb-appearance-toggle:focus-visible .mrb-icon-sun {
	transform: rotate(45deg);
}

.mrb-appearance-toggle .mrb-icon-moon {
	width: 19px;
	height: 19px;
	color: #EAF3FA;
	filter: drop-shadow(0 0 5px rgba(190, 225, 255, 0.55));
	transition: transform 400ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.mrb-appearance-toggle:hover .mrb-icon-moon,
.mrb-appearance-toggle:focus-visible .mrb-icon-moon {
	transform: rotate(-12deg);
}

@keyframes mrbSunGlow {
	0%, 100% { filter: drop-shadow(0 0 3px rgba(255, 205, 110, 0.7)) drop-shadow(0 0 7px rgba(255, 190, 80, 0.3)); }
	50% { filter: drop-shadow(0 0 4px rgba(255, 215, 130, 1)) drop-shadow(0 0 14px rgba(255, 190, 80, 0.6)); }
}

@media (prefers-reduced-motion: reduce) {
	.mrb-appearance-toggle .mrb-icon-sun { animation: none; }
}

/* ========== APPEARANCE: dropdown (desktop) ========== */
.mrb-appearance {
	position: relative;
}

.mrb-appearance-menu {
	position: absolute;
	top: calc(100% + 12px);
	left: 50%;
	transform: translate(-50%, -0.5rem);
	min-width: 190px;
	padding: var(--mrb-space-2) 0;
	background: var(--mrb-hdr-surface);
	border: 1px solid var(--mrb-hdr-line);
	border-radius: var(--mrb-radius-sm);
	box-shadow: 0 12px 32px rgba(22, 38, 35, 0.14);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 200ms ease, transform 200ms ease, visibility 200ms ease;
	z-index: var(--mrb-z-bar1-pop);
}

.mrb-appearance-toggle[aria-expanded="true"] + .mrb-appearance-menu {
	opacity: 1;
	visibility: visible;
	transform: translate(-50%, 0);
	pointer-events: auto;
}

.mrb-appearance-heading {
	display: block;
	padding: var(--mrb-space-2) var(--mrb-space-4);
	font-family: var(--mrb-font-nav);
	font-size: 0.66rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--mrb-hdr-muted);
}

.mrb-appearance-option {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--mrb-space-4);
	width: 100%;
	padding: 10px var(--mrb-space-4);
	font-family: var(--mrb-font-body);
	font-size: 0.9rem;
	font-weight: 400;
	text-align: left;
	color: var(--mrb-hdr-ink);
	cursor: pointer;
	transition: background 150ms ease;
}

.mrb-appearance-option:hover,
.mrb-appearance-option:focus-visible {
	background: var(--mrb-hdr-raised);
}

.mrb-appearance-check {
	width: 15px;
	height: 15px;
	fill: currentColor;
	opacity: 0;
	flex-shrink: 0;
}

.mrb-appearance-option.is-active .mrb-appearance-check {
	opacity: 1;
}

/* Language: text-only control, no filled box, no permanent border */
.mrb-lang-dropdown {
	position: relative;
}

.mrb-lang-toggle {
	display: flex;
	align-items: center;
	gap: 4px;
	font-family: var(--mrb-font-header-nav);
	font-size: 0.74rem;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.85);
	border-bottom: 1px solid transparent;
	padding-bottom: 2px;
	transition: border-color 200ms ease, color 200ms ease;
}

.mrb-lang-toggle:hover,
.mrb-lang-toggle:focus-visible,
.mrb-lang-toggle[aria-expanded="true"] {
	color: #ffffff;
	border-bottom-color: rgba(255, 255, 255, 0.6);
}

.mrb-lang-caret {
	width: 10px;
	height: 10px;
	fill: currentColor;
	transition: transform 200ms ease;
}

.mrb-lang-toggle[aria-expanded="true"] .mrb-lang-caret {
	transform: rotate(180deg);
}

.mrb-lang-menu {
	position: absolute;
	top: calc(100% + 12px);
	right: 0;
	background: var(--mrb-brand-bar);
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: var(--mrb-radius-sm);
	min-width: 130px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-0.5rem);
	transition: all 200ms ease;
	z-index: var(--mrb-z-bar1-pop);
	pointer-events: none;
	box-shadow: 0 12px 32px rgba(22, 38, 35, 0.25);
}

.mrb-lang-toggle[aria-expanded="true"] + .mrb-lang-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	pointer-events: auto;
}

.mrb-lang-option {
	display: block;
	padding: var(--mrb-space-2) var(--mrb-space-3);
	color: rgba(255, 255, 255, 0.85);
	text-decoration: none;
	font-size: 0.8125rem;
	transition: background 200ms ease, color 200ms ease;
}

.mrb-lang-option:hover,
.mrb-lang-option.is-active {
	background: rgba(255, 255, 255, 0.08);
	color: #ffffff;
}

/* A language this page does not exist in: listed, but not a link. */
.mrb-lang-option.is-unavailable,
.mrb-lang-option.is-unavailable:hover {
	background: none;
	color: rgba(255, 255, 255, 0.4);
	cursor: not-allowed;
}

/* Quote: text-only premium CTA, persistent subtle underline */
.mrb-quote-link {
	position: relative;
	color: #ffffff;
	text-decoration: none;
	font-family: var(--mrb-font-header-nav);
	font-size: 0.74rem;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding-bottom: 2px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.4);
	transition: border-color 200ms ease, opacity 200ms ease;
}

.mrb-quote-link:hover {
	border-bottom-color: rgba(255, 255, 255, 0.9);
}

/* Search panel: appears above Bar 2, flush under Bar 1 */
.mrb-search-panel {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: var(--mrb-color-bg);
	border-bottom: 1px solid var(--mrb-color-border);
	padding: var(--mrb-space-5) var(--mrb-gutter);
	z-index: var(--mrb-z-bar1-pop);
	animation: mrbSlideDown 200ms ease;
	box-shadow: 0 12px 32px rgba(22, 38, 35, 0.12);
}

@keyframes mrbSlideDown {
	from { opacity: 0; transform: translateY(-0.5rem); }
	to { opacity: 1; transform: translateY(0); }
}

/* ========== HEADER SEARCH (desktop panel + mobile drawer) ==========
 * searchform.php renders a plain input + submit, which base.css turns into a
 * bordered field and a filled teal pill. The header wants the underlined,
 * text-button treatment instead, so both are reset here. */
.mrb-search-panel .mrb-search-form,
.mrb-drawer-search .mrb-search-form {
	display: flex;
	align-items: center;
	gap: var(--mrb-space-3);
	max-width: 25rem;
	border-bottom: 1px solid var(--mrb-hdr-line);
}

.mrb-search-panel input[type="search"],
.mrb-drawer-search input[type="search"] {
	flex: 1;
	min-width: 0;
	min-block-size: 0;
	min-height: 0;
	padding: 10px 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--mrb-hdr-ink);
	font-size: 0.85rem;
	letter-spacing: 0.02em;
}

.mrb-search-panel input[type="search"]:focus,
.mrb-drawer-search input[type="search"]:focus {
	outline: none;
	box-shadow: none;
}

.mrb-search-panel .mrb-search-form button[type="submit"],
.mrb-drawer-search .mrb-search-form button[type="submit"] {
	appearance: none;
	-webkit-appearance: none;
	flex-shrink: 0;
	min-block-size: 0;
	min-height: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--mrb-hdr-ink);
	font-family: var(--mrb-font-nav);
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	white-space: nowrap;
	cursor: pointer;
	transition: opacity 200ms ease;
}

.mrb-search-panel .mrb-search-form button[type="submit"]:hover,
.mrb-drawer-search .mrb-search-form button[type="submit"]:hover {
	background: transparent;
	opacity: 0.6;
}

/* ========== BAR 2: NAVIGATION BAR ========== */
/* padding:0 overrides base.css `.site-header { padding: var(--mrb-space-6) ... }`,
 * which otherwise adds 24px top and bottom to this bar. All Bar 2 vertical
 * spacing is owned by .mrb-nav-inner below. */
.site-header.mrb-nav-bar {
	position: relative;
	background: var(--mrb-hdr-surface);
	border-bottom: 1px solid var(--mrb-hdr-line);
	padding: 0;
	z-index: var(--mrb-z-bar2);
}

/* Bar height is intrinsic, generated by the nav links' own 19px/18px padding
 * (matching .cuirden-toplink) rather than a fixed height or wrapper padding. */
.mrb-nav-inner {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 var(--mrb-gutter);
	position: relative;
}

/* base.css styles every <button> as a filled pill (min-block-size 2.75rem,
 * border-radius, background: var(--mrb-button-bg)). The header's chrome buttons
 * are bare icons, so that has to be fully undone — neutralising background
 * alone still leaves a 44px rounded box. */
.mrb-header .mrb-menu-toggle,
.mrb-header .mrb-util-btn,
.mrb-header .mrb-drawer-close,
.mrb-header .mrb-appearance-option {
	appearance: none;
	-webkit-appearance: none;
	min-block-size: 0;
	min-height: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	background-color: transparent;
	background-image: none;
	box-shadow: none;
	gap: 0;
	line-height: 1;
}

.mrb-header .mrb-menu-toggle:hover,
.mrb-header .mrb-menu-toggle:focus,
.mrb-header .mrb-util-btn:hover,
.mrb-header .mrb-util-btn:focus {
	background: transparent;
	background-color: transparent;
}

/* Lives in Bar 1 (dark brand bar) and only appears on mobile. */
.mrb-menu-toggle {
	position: relative;
	display: none;
	padding: 0;
	cursor: pointer;
	color: #ffffff;
	flex-shrink: 0;
	align-items: center;
	transition: opacity 200ms ease;
}

.mrb-menu-toggle:hover,
.mrb-menu-toggle:focus-visible {
	opacity: 0.75;
}

.mrb-menu-toggle:focus-visible {
	outline: 1px solid rgba(255, 255, 255, 0.6);
	outline-offset: 3px;
}

/* Height must fit 3 bars + 2 gaps. It previously declared 12px for 18px of
 * content; gaps don't shrink, so flex-shrink collapsed all three bars to 0px
 * and the icon rendered as nothing. space-between owns the spacing now. */
.mrb-hamburger {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 0;
	width: 18px;
	height: 14px;
}

.mrb-hamburger span {
	display: block;
	width: 100%;
	height: 2px;
	flex: 0 0 2px;
	background: currentColor;
	border-radius: 1px;
	transition: transform 300ms ease, opacity 300ms ease;
}

/* Bars sit 6px apart in the 14px box, so each outer bar travels 6px to meet
 * the centre. Translate before rotate keeps the offset in unrotated space. */
.mrb-menu-toggle[aria-expanded="true"] .mrb-hamburger span:nth-child(1) {
	transform: translateY(6px) rotate(45deg);
}

.mrb-menu-toggle[aria-expanded="true"] .mrb-hamburger span:nth-child(2) {
	opacity: 0;
}

.mrb-menu-toggle[aria-expanded="true"] .mrb-hamburger span:nth-child(3) {
	transform: translateY(-6px) rotate(-45deg);
}

.mrb-nav-menu-wrapper {
	display: flex;
	align-items: center;
	justify-content: center;
	max-width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

/* Hide the scrollbar only for the desktop horizontal nav overflow. Leaving this
 * unscoped also stripped the mobile drawer's vertical scrollbar. */
@media (min-width: 1025px) {
	.mrb-nav-menu-wrapper {
		scrollbar-width: none;
	}

	.mrb-nav-menu-wrapper::-webkit-scrollbar {
		display: none;
	}
}

.mrb-nav-items {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 40px;
	align-items: center;
}

.mrb-nav-items > li {
	position: relative;
	display: flex;
	align-items: center;
}

/*
 * The underline is a dedicated ::after sized to the link's own (centered,
 * natural-height) box rather than a border on a 100%-height anchor — that
 * full-height-border approach is what previously made a line appear to cut
 * across the menu text. The link box hugs the text; the underline sits a
 * fixed 4px below it, so it can never intersect the glyphs.
 */
.mrb-nav-items > li > a,
.mrb-nav-items > li > a:visited {
	position: relative;
	display: inline-block;
	color: var(--mrb-hdr-ink);
	text-decoration: none;
	font-family: var(--mrb-font-nav);
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.085em;
	text-transform: uppercase;
	line-height: 1;
	white-space: nowrap;
	padding: 19px 0 18px;
	transition: color 200ms ease;
}

.mrb-nav-items > li > a::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: 10px;
	height: 2px;
	background: var(--mrb-hdr-accent);
	transform: scaleX(0);
	transform-origin: center;
	transition: transform 200ms ease;
}

/* Caret marks items that open a mega panel */
.mrb-nav-items > li.mrb-has-mega > a::before {
	content: '';
	position: absolute;
	right: -13px;
	top: 50%;
	width: 5px;
	height: 5px;
	margin-top: -4px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg);
	opacity: 0.55;
	transition: opacity 200ms ease;
}

.mrb-nav-items > li.mrb-has-mega {
	margin-right: 13px;
}

.mrb-nav-items > li.mrb-has-mega > a:hover::before {
	opacity: 1;
}

.mrb-nav-items > li > a:hover::after,
.mrb-nav-items > li > a:focus-visible::after,
.mrb-nav-items > li.current-menu-item > a::after {
	transform: scaleX(1);
}

.mrb-nav-items > li > a:focus-visible {
	outline: 1px solid var(--mrb-color-focus);
	outline-offset: 2px;
}

/* Standard WordPress submenus (non-mega) */
.mrb-nav-items .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	list-style: none;
	margin: 0;
	padding: 0;
	background: var(--mrb-hdr-surface);
	border: 1px solid var(--mrb-hdr-line);
	border-radius: var(--mrb-radius-sm);
	box-shadow: 0 12px 32px rgba(22, 38, 35, 0.08);
	min-width: 12rem;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-0.5rem);
	transition: all 200ms ease;
	pointer-events: none;
	z-index: var(--mrb-z-mega);
}

.mrb-nav-items > li:hover > .sub-menu,
.mrb-nav-items > li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	pointer-events: auto;
}

.mrb-nav-items .sub-menu li {
	border-bottom: 1px solid var(--mrb-hdr-line);
}

.mrb-nav-items .sub-menu li:last-child {
	border-bottom: none;
}

.mrb-nav-items .sub-menu a {
	display: block;
	padding: var(--mrb-space-3);
	color: var(--mrb-hdr-ink);
	text-decoration: none;
	font-size: 0.8125rem;
	transition: background 200ms ease;
}

.mrb-nav-items .sub-menu a:hover {
	background: var(--mrb-hdr-raised);
}

/* ========== DRAWER CHROME (mobile only) ========== */
.mrb-drawer-head,
.mrb-drawer-search,
.mrb-drawer-foot {
	display: none;
}

/* ========== MEGA MENUS ========== */
.mrb-mega-menus-panel {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	z-index: var(--mrb-z-mega);
}

.mrb-mega-menu {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	width: 100%;
	background: var(--mrb-hdr-surface);
	border: 1px solid var(--mrb-hdr-line);
	border-top: none;
	box-shadow: 0 12px 32px rgba(22, 38, 35, 0.08);
	padding: 48px var(--mrb-gutter);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-0.25rem);
	transition: opacity 150ms ease, visibility 150ms ease, transform 150ms ease;
	pointer-events: none;
}

.mrb-mega-menu[aria-hidden="false"] {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	pointer-events: auto;
}

.mrb-mega-columns {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 40px;
	max-width: 1400px;
	margin: 0 auto;
}

.mrb-mega-columns--4 {
	grid-template-columns: repeat(4, 1fr);
}

.mrb-mega-col h4 {
	font-family: var(--mrb-font-body);
	font-size: 0.6875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	margin: 0 0 var(--mrb-space-4) 0;
	color: var(--mrb-hdr-muted);
}

.mrb-mega-col ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.mrb-mega-col a {
	display: block;
	color: var(--mrb-hdr-ink);
	text-decoration: none;
	font-family: var(--mrb-font-body);
	font-size: 0.8125rem;
	font-weight: 400;
	line-height: 2;
	transition: color 150ms ease;
}

/* Product/project/article counts beside a link */
.mrb-mega-meta {
	margin-left: 0.4em;
	font-size: 0.6875rem;
	font-weight: 400;
	color: var(--mrb-hdr-meta);
	font-variant-numeric: tabular-nums;
}

.mrb-mega-col a:hover {
	color: var(--mrb-hdr-accent);
	font-weight: 500;
}

.mrb-mega-featured {
	background: var(--mrb-hdr-raised);
	padding: var(--mrb-space-4);
	border-radius: var(--mrb-radius-sm);
}

.mrb-mega-featured p {
	font-size: 0.8125rem;
	margin: var(--mrb-space-2) 0 var(--mrb-space-4);
	color: var(--mrb-hdr-muted);
	line-height: 1.4;
}

.mrb-mega-cta {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--mrb-hdr-accent);
	text-decoration: none;
	padding: var(--mrb-space-2) 0;
	border-bottom: 1px solid var(--mrb-hdr-accent);
	transition: opacity 200ms ease;
}

.mrb-mega-cta:hover {
	opacity: 0.7;
}

/* Short quote label is for phones only (see the max-width: 1024px block). */
.mrb-quote-short {
	display: none;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
	/* Mobile is a SINGLE bar. Bar 2 keeps no visual presence of its own; it only
	 * hosts the drawer, which is fixed and therefore out of flow. */
	.site-header.mrb-nav-bar {
		background: none;
		border-bottom: none;
	}

	.mrb-nav-inner {
		display: block;
		padding: 0;
	}

	.mrb-menu-toggle {
		display: flex;
	}

	/* Bar 1 on mobile: [toggle + language] [logo] [account + Get Quote] */
	.mrb-brand-left .mrb-search-toggle,
	.mrb-brand-left .mrb-appearance,
	.mrb-brand-right .mrb-util-btn {
		display: none;
	}

	/* Owner 2026-10-04: My Account sits beside Get Quote on phones (cart + help stay in the drawer). */
	.mrb-brand-right .mrb-util-btn.mrb-account-link {
		display: flex;
	}

	.mrb-quote-link {
		white-space: nowrap;
	}

	.mrb-quote-full {
		display: none;
	}

	.mrb-quote-short {
		display: inline;
	}

	.mrb-nav-items > li.mrb-has-mega {
		margin-right: 0;
	}

	/* .mrb-header carries a transform for the scroll-hide animation, which makes
	 * it the containing block for fixed descendants. `bottom: 0` would therefore
	 * resolve against the header box (~128px) instead of the viewport and
	 * collapse the drawer, so its height is set explicitly. */
	.mrb-nav-menu-wrapper {
		position: fixed;
		top: var(--mrb-bar1-height);
		left: 0;
		right: 0;
		height: calc(100vh - var(--mrb-bar1-height));
		height: calc(100dvh - var(--mrb-bar1-height));
		flex-direction: column;
		align-items: stretch;
		justify-content: flex-start;
		background: var(--mrb-hdr-surface);
		max-width: none;
		overflow-x: hidden;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		overscroll-behavior: contain;
		opacity: 0;
		visibility: hidden;
		transform: translateX(-100%);
		transition: transform 300ms ease, opacity 300ms ease, visibility 300ms ease;
		z-index: var(--mrb-z-bar2);
		scrollbar-width: thin;
		scrollbar-color: rgba(128, 128, 128, 0.45) transparent;
	}

	/* Visible scroll affordance so long menus read as scrollable. */
	.mrb-nav-menu-wrapper::-webkit-scrollbar {
		width: 4px;
	}

	.mrb-nav-menu-wrapper::-webkit-scrollbar-track {
		background: transparent;
	}

	.mrb-nav-menu-wrapper::-webkit-scrollbar-thumb {
		background: rgba(128, 128, 128, 0.45);
		border-radius: 999px;
	}

	.mrb-nav-menu-wrapper[aria-expanded="true"] {
		opacity: 1;
		visibility: visible;
		transform: translateX(0);
	}

	.mrb-nav-items {
		flex-direction: column;
		gap: 0;
		height: auto;
		align-items: stretch;
	}

	/* display:block (not the desktop flex row) so a relocated mega panel stacks
	 * under its link instead of sitting beside it. */
	.mrb-nav-items > li {
		display: block;
		height: auto;
		border-bottom: 1px solid var(--mrb-hdr-line);
		width: 100%;
	}

	/* Mobile drawer items run slightly larger and wider-tracked than the
	 * desktop row, matching .cuirden-mobile-accordion / -direct. */
	.mrb-nav-items > li > a {
		display: block;
		padding: 16px var(--mrb-gutter);
		width: 100%;
		font-size: 0.77rem;
		letter-spacing: 0.095em;
		color: var(--mrb-hdr-ink);
	}

	/* --- drawer chrome --- */
	.mrb-drawer-head {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 10px var(--mrb-gutter);
		border-bottom: 1px solid var(--mrb-hdr-line);
		position: sticky;
		top: 0;
		background: var(--mrb-hdr-surface);
		z-index: 2;
	}

	.mrb-drawer-title {
		font-family: var(--mrb-font-nav);
		font-size: 0.72rem;
		font-weight: 600;
		letter-spacing: 0.12em;
		text-transform: uppercase;
		color: var(--mrb-hdr-muted);
	}

	.mrb-drawer-close {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 36px;
		height: 36px;
		margin-right: -8px;
		padding: 0;
		border: none;
		background: none;
		color: var(--mrb-hdr-ink);
		cursor: pointer;
		border-radius: 999px;
		transition: background 200ms ease;
	}

	.mrb-drawer-close:hover,
	.mrb-drawer-close:focus-visible {
		background: var(--mrb-hdr-raised);
	}

	.mrb-drawer-close svg {
		width: 20px;
		height: 20px;
		fill: currentColor;
	}

	.mrb-drawer-search {
		display: block;
		padding: 10px var(--mrb-gutter) 14px;
		border-bottom: 1px solid var(--mrb-hdr-line);
	}

	.mrb-drawer-search .mrb-search-form {
		max-width: none;
	}

	.mrb-drawer-search form {
		display: flex;
		gap: var(--mrb-space-2);
		align-items: center;
	}

	.mrb-drawer-search input[type="search"] {
		flex: 1;
		min-width: 0;
		min-height: 42px;
		font-size: 0.875rem;
	}

	.mrb-drawer-foot {
		display: block;
		margin-top: auto;
		padding: 8px 0 32px;
		border-top: 1px solid var(--mrb-hdr-line);
	}

	/* Appearance becomes a 3-up segmented control inside the drawer. */
	.mrb-drawer-appearance-block {
		padding: 18px var(--mrb-gutter) 8px;
	}

	.mrb-appearance-heading {
		padding: 0 0 10px;
	}

	.mrb-appearance-segmented {
		display: grid;
		grid-template-columns: repeat(3, 1fr);
		gap: 8px;
	}

	.mrb-appearance-segmented .mrb-appearance-option {
		justify-content: center;
		gap: 6px;
		width: 100%;
		padding: 12px 6px;
		border: 1px solid var(--mrb-hdr-line);
		border-radius: var(--mrb-radius-sm);
		font-family: var(--mrb-font-nav);
		font-size: 0.72rem;
		font-weight: 600;
		letter-spacing: 0.04em;
		text-align: center;
	}

	.mrb-appearance-segmented .mrb-appearance-option.is-active {
		background: var(--mrb-hdr-raised);
		border-color: var(--mrb-hdr-accent);
	}

	.mrb-appearance-segmented .mrb-appearance-check {
		width: 13px;
		height: 13px;
	}

	.mrb-drawer-link {
		display: block;
		padding: 14px var(--mrb-gutter);
		text-decoration: none;
		color: var(--mrb-hdr-ink);
		font-family: var(--mrb-font-nav);
		font-size: 0.77rem;
		font-weight: 600;
		letter-spacing: 0.095em;
		text-transform: uppercase;
	}

	.mrb-nav-items > li > a::after {
		display: none;
	}

	.mrb-nav-items .sub-menu {
		position: static;
		opacity: 0;
		visibility: hidden;
		max-height: 0;
		border: none;
		box-shadow: none;
		background: var(--mrb-hdr-raised);
		transform: none;
		overflow: hidden;
	}

	.mrb-nav-items > li[aria-expanded="true"] > .sub-menu {
		opacity: 1;
		visibility: visible;
		max-height: 100rem;
	}

	/* Panels are relocated into their own <li> by header-v4.js on mobile, so the
	 * shared container is empty here and must not reserve space. */
	.mrb-mega-menus-panel {
		position: static;
		display: none;
	}

	.mrb-mega-menu {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		pointer-events: auto;
		border: none;
		box-shadow: none;
		padding: 0;
		display: none;
		background: var(--mrb-hdr-raised);
	}

	.mrb-mega-menu[data-mobile-open="true"] {
		display: block;
		padding: var(--mrb-space-4) var(--mrb-gutter);
	}

	.mrb-mega-columns,
	.mrb-mega-columns--4 {
		grid-template-columns: 1fr;
		gap: var(--mrb-space-4);
		max-width: none;
	}

	.mrb-mega-col h4 {
		margin-bottom: var(--mrb-space-2);
	}

	.mrb-mega-featured {
		padding: var(--mrb-space-3);
		background: var(--mrb-hdr-surface);
	}

	/* Caret on drawer rows rotates to show open state */
	.mrb-nav-items > li.mrb-has-mega > a::before {
		right: var(--mrb-gutter);
		margin-top: -3px;
		transition: transform 200ms ease;
	}

	.mrb-nav-items > li.mrb-has-mega > a[aria-expanded="true"]::before {
		transform: rotate(225deg);
		margin-top: 0;
	}
}

@media (max-width: 480px) {
	.mrb-brand-inner {
		gap: var(--mrb-space-2);
	}

	.mrb-logo-img {
		max-height: 40px;
	}

	.mrb-logo-text {
		font-size: 1.22rem;
	}

	.mrb-brand-left,
	.mrb-brand-right {
		gap: 14px;
	}

	.mrb-lang-toggle {
		font-size: 0.68rem;
	}

	.mrb-quote-link {
		font-size: 0.68rem;
	}

	/* Get Quote is never hidden (it used to disappear at ≤360px, e.g. Infinix Note 40 Pro).
	 * Narrow phones tighten the spacing and type instead, so it fits down to 320px. */
	@media (max-width: 380px) {
		.mrb-brand-left,
		.mrb-brand-right {
			gap: 12px;
		}

		.mrb-quote-link {
			font-size: 0.64rem;
			letter-spacing: 0.04em;
		}
	}

	@media (max-width: 340px) {
		.mrb-logo-img {
			max-height: 34px;
		}

		.mrb-brand-left,
		.mrb-brand-right {
			gap: 10px;
		}

		.mrb-lang-toggle,
		.mrb-quote-link {
			font-size: 0.6rem;
		}
	}

	.mrb-search-panel {
		padding: var(--mrb-space-4) var(--mrb-space-3);
	}

	.mrb-search-panel .mrb-search-form {
		max-width: 100%;
	}
}

/* ========== AUDIT FIXES (2026-09-25) ========== */

/* NOTE: do not put overflow-x: clip (or hidden) on .mrb-header. In Chrome it also
 * removes everything hanging below the header box from hit-testing: the desktop
 * mega panels closed as soon as the pointer reached them, and the mobile drawer's
 * buttons stopped responding. The load-time sideways scroll is prevented in
 * mega-v5.css instead (dropdowns stay right-anchored until JS has placed them). */

/* Touch targets: invisible hit areas of at least 44×44px around the small Bar 1
 * controls, without changing how they look or where they sit. */
.mrb-util-btn::before,
.mrb-menu-toggle::before,
.mrb-quote-link::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: max(100%, 44px);
	height: max(100%, 44px);
	transform: translate(-50%, -50%);
}

/* Screen-reader-only text. Before this, only a staging-only stylesheet defined it,
 * so on the live site the hidden labels (cart, mega-menu toggles) would have shown. */
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* Print: no navigation chrome (the footer is hidden the same way). */
@media print {
	.mrb-header,
	.mrb-skip-link {
		display: none !important;
	}
}
/* ========== GET QUOTE BUTTON (owner 2026-10-13) ==========
 * Was a text link with an underline; now a filled pill so it stands out on Bar 1.
 * Day: white pill, brand-blue text. Night: sky-blue pill with a soft glow that matches
 * the glowing sun/moon icon. Bar 1 is brand blue in both modes, so both stay high-contrast
 * (#0E4560 on white 10.3:1; #06212E on #8CD2EC/#62C4E6 above 8:1). Phones keep the short
 * label without the arrow. To roll back, delete this block and the .mrb-quote-icon SVG in header.php. */
.mrb-header .mrb-brand-right .mrb-quote-link {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	min-height: 40px;
	padding: 0 18px;
	border: 0;
	border-radius: 999px;
	background: #ffffff;
	color: var(--mrb-brand-bar, #0E4560);
	font-family: var(--mrb-font-nav);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1;
	box-shadow: 0 6px 18px -8px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.6);
	transition: background-color 200ms ease, box-shadow 250ms ease, transform 200ms ease;
}

.mrb-header .mrb-brand-right .mrb-quote-link:hover {
	background: #E6F4FA;
	box-shadow: 0 10px 22px -8px rgba(0, 0, 0, 0.5), 0 0 0 4px rgba(140, 210, 236, 0.25);
	transform: translateY(-1px);
}

.mrb-header .mrb-brand-right .mrb-quote-link:focus-visible {
	outline: 2px solid #ffffff;
	outline-offset: 3px;
}

.mrb-quote-icon {
	width: 14px;
	height: 14px;
	flex-shrink: 0;
	fill: currentColor;
	transition: transform 200ms ease;
}

.mrb-header .mrb-quote-link:hover .mrb-quote-icon {
	transform: translateX(2px);
}

[data-theme="night"] .mrb-header .mrb-brand-right .mrb-quote-link {
	background: linear-gradient(135deg, #A6DEF2 0%, #62C4E6 100%);
	color: #06212E;
	box-shadow: 0 0 18px rgba(98, 196, 230, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

[data-theme="night"] .mrb-header .mrb-brand-right .mrb-quote-link:hover {
	background: linear-gradient(135deg, #BFE8F6 0%, #7DD0EC 100%);
	box-shadow: 0 0 26px rgba(98, 196, 230, 0.65), inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

@media (max-width: 1024px) {
	.mrb-header .mrb-brand-right .mrb-quote-link {
		min-height: 36px;
		padding: 0 14px;
		font-size: 0.66rem;
		letter-spacing: 0.06em;
	}

	.mrb-quote-icon {
		display: none;
	}

	@media (max-width: 380px) {
		.mrb-header .mrb-brand-right .mrb-quote-link {
			padding: 0 11px;
			font-size: 0.62rem;
			letter-spacing: 0.04em;
		}
	}

	@media (max-width: 340px) {
		.mrb-header .mrb-brand-right .mrb-quote-link {
			min-height: 34px;
			padding: 0 9px;
			font-size: 0.58rem;
		}
	}
}

@media (prefers-reduced-motion: reduce) {
	.mrb-header .mrb-brand-right .mrb-quote-link,
	.mrb-quote-icon {
		transition: none;
	}

	.mrb-header .mrb-brand-right .mrb-quote-link:hover,
	.mrb-header .mrb-quote-link:hover .mrb-quote-icon {
		transform: none;
	}
}
