/* Webaula Core — shared, company-wide styles.
 * Loaded on every site running this plugin. Put per-site tweaks in the child theme. */

/* Base styling for menus rendered via [webaula_menu_*] shortcodes. */
.webaula-menu ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}

.webaula-menu a {
	text-decoration: none;
}

/* Footer menu — [webaula_menu_* style="footer"] */
.webaula-footer-menu ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.webaula-footer-menu li {
	margin: 0 0 10px;
}
.webaula-footer-menu a {
	font-family: var( --wb-font-body );
	color: inherit;
	text-decoration: none;
	transition: color 0.15s ease;
}
.webaula-footer-menu a:hover {
	color: var( --wb-red );
}
.webaula-footer-menu .sub-menu {
	margin: 8px 0 0;
	padding-left: 14px;
}
.webaula-footer-menu .sub-menu li {
	margin-bottom: 6px;
}

/* ============================================================
   Header navigation — [webaula_menu_* style="nav"]
   Reproduces the Lähdekorpi header. Tokens are --wb-* prefixed
   and overridable per site. Pair with a .site-header wrapper if
   you want the sticky/blur chrome; .main-nav alone styles the menu.
   ============================================================ */
.site-header,
.main-nav,
.mobile-menu,
.webaula-nav,
.webaula-footer-menu {
	--wb-red: #e11a1a;
	--wb-red-dark: #b81212;
	--wb-ink: #121316;
	--wb-surface: #ffffff;
	--wb-neutral: #f4f4f3;
	--wb-line: #e4e4e2;
	--wb-radius: 12px;
	--wb-radius-sm: 8px;
	--wb-shadow-sm: 0 1px 2px rgba( 18, 19, 22, 0.05 );
	--wb-shadow-lg: 0 1px 2px rgba( 18, 19, 22, 0.06 ), 0 30px 60px -28px rgba( 18, 19, 22, 0.34 );
	--wb-font-label: 'Oswald', 'Arial Narrow', system-ui, sans-serif;
	--wb-font-body: 'Lato', system-ui, sans-serif;
}

/* Optional sticky header chrome */
.site-header {
	position: sticky;
	top: 0;
	z-index: 60;
	background: rgba( 255, 255, 255, 0.92 );
	backdrop-filter: saturate( 140% ) blur( 10px );
	border-bottom: 1px solid var( --wb-line );
	transition: box-shadow 0.2s ease;
}
.site-header.scrolled {
	box-shadow: var( --wb-shadow-sm );
}
.site-header .header-inner {
	display: flex;
	align-items: center;
	gap: clamp( 16px, 2.5vw, 40px );
	height: 78px;
	width: 100%;
	padding-inline: clamp( 20px, 4vw, 52px );
}

/* Desktop nav */
.main-nav {
	display: flex;
	align-items: center;
	gap: clamp( 10px, 1.1vw, 22px );
	margin-left: auto;
}
.main-nav .nav-item {
	position: relative;
	display: flex;
	align-items: center;
}
.main-nav .nav-link {
	font-family: var( --wb-font-label );
	font-weight: 700;
	font-size: 13px;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var( --wb-ink );
	position: relative;
	padding-block: 26px;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	white-space: nowrap;
	text-decoration: none;
}
.main-nav .nav-link .caret {
	width: 13px;
	height: 13px;
	opacity: 0.55;
	transition: transform 0.2s ease;
}
.main-nav .nav-link::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 20px;
	height: 2px;
	width: 0;
	background: var( --wb-red );
	transition: width 0.18s ease;
}
.main-nav .nav-link:hover {
	color: var( --wb-red );
}
.main-nav .nav-link:hover::after {
	width: 100%;
}
.main-nav .nav-item:hover .nav-link .caret {
	transform: rotate( 180deg );
	opacity: 1;
}

/* Dropdown card — shared by the first-level dropdown and nested flyouts */
.main-nav .drop {
	position: absolute;
	min-width: 232px;
	background: #fff;
	border: 1px solid var( --wb-line );
	border-radius: var( --wb-radius );
	box-shadow: var( --wb-shadow-lg );
	padding: 8px;
	display: flex;
	flex-direction: column;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.16s ease, transform 0.16s ease;
	z-index: 70;
}

/* First level: drops straight down, centered under the top item */
.main-nav .nav-item > .drop {
	top: 100%;
	left: 50%;
	transform: translate( -50%, 8px );
}
.main-nav .nav-item > .drop::before {
	content: "";
	position: absolute;
	top: -8px;
	left: 0;
	right: 0;
	height: 8px;
}
.main-nav .nav-item:hover > .drop,
.main-nav .nav-item:focus-within > .drop {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translate( -50%, 0 );
}

/* Dropdown links */
.main-nav .drop a {
	font-family: var( --wb-font-body );
	font-weight: 600;
	font-size: 14px;
	letter-spacing: 0;
	text-transform: none;
	color: var( --wb-ink );
	padding: 10px 14px;
	border-radius: var( --wb-radius-sm );
	white-space: nowrap;
	text-decoration: none;
	transition: background 0.14s ease, color 0.14s ease;
}
.main-nav .drop a:hover {
	background: var( --wb-neutral );
	color: var( --wb-red );
}

/* Sub-item that contains a further flyout */
.main-nav .drop-item {
	position: relative;
}
.main-nav .drop-item > a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}
.main-nav .caret--right {
	width: 13px;
	height: 13px;
	opacity: 0.5;
	flex: 0 0 auto;
	transition: opacity 0.15s ease;
}
.main-nav .drop-item:hover > a .caret--right {
	opacity: 1;
}

/* Nested flyout: opens to the right of its parent item */
.main-nav .drop-item > .drop {
	top: -9px;
	left: 100%;
	transform: translateX( 8px );
}
.main-nav .drop-item > .drop::before {
	content: "";
	position: absolute;
	top: 0;
	left: -8px;
	width: 8px;
	height: 100%;
}
.main-nav .drop-item:hover > .drop,
.main-nav .drop-item:focus-within > .drop {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateX( 0 );
}

/* Hamburger (hidden until the mobile breakpoint) */
.hamburger {
	display: none;
	flex-direction: column;
	gap: 5px;
	width: 44px;
	height: 44px;
	align-items: center;
	justify-content: center;
	background: none;
	border: 1px solid var( --wb-line );
	border-radius: var( --wb-radius-sm );
	cursor: pointer;
}
.hamburger span {
	width: 20px;
	height: 2px;
	background: var( --wb-ink );
	border-radius: 2px;
	transition: 0.2s;
}

/* Mobile overlay menu */
.mobile-menu {
	display: none;
}

@media ( max-width: 1280px ) {
	.main-nav {
		display: none;
	}
	.hamburger {
		display: flex;
	}
	.mobile-menu.open {
		display: block;
		position: fixed;
		inset: 78px 0 0;
		z-index: 55;
		background: #fff;
		padding: 20px clamp( 20px, 5vw, 56px ) 40px;
		overflow: auto;
	}
	.mobile-menu a {
		display: block;
		font-family: var( --wb-font-label );
		font-weight: 500;
		text-transform: uppercase;
		letter-spacing: 0.04em;
		font-size: 18px;
		padding: 16px 0;
		border-bottom: 1px solid var( --wb-line );
		color: var( --wb-ink );
		text-decoration: none;
	}
	body.menu-open {
		overflow: hidden;
	}
}

/* ============================================================
   Self-contained responsive nav — [webaula_menu_* style="nav"]
   The shortcode wraps the desktop nav + a hamburger + a mobile
   accordion panel, so one shortcode works on every screen size.
   ============================================================ */
.webaula-nav {
	display: flex;
	align-items: center;
	margin-left: auto;
}
.webaula-nav .main-nav {
	margin-left: 0;
}
.webaula-burger {
	display: none;
	flex-direction: column;
	gap: 5px;
	width: 46px;
	height: 46px;
	padding: 0;
	align-items: center;
	justify-content: center;
	background: none;
	border: 1px solid var( --wb-line );
	border-radius: var( --wb-radius-sm );
	cursor: pointer;
}
.webaula-burger span {
	width: 22px;
	height: 2px;
	background: var( --wb-ink );
	border-radius: 2px;
	transition: transform 0.2s ease, opacity 0.2s ease;
}
.webaula-nav.open .webaula-burger span:nth-child( 1 ) {
	transform: translateY( 7px ) rotate( 45deg );
}
.webaula-nav.open .webaula-burger span:nth-child( 2 ) {
	opacity: 0;
}
.webaula-nav.open .webaula-burger span:nth-child( 3 ) {
	transform: translateY( -7px ) rotate( -45deg );
}
.webaula-mobile {
	display: none;
}

@media ( max-width: 1280px ) {
	.webaula-nav .main-nav {
		display: none;
	}
	.webaula-burger {
		display: flex;
	}
	.webaula-mobile {
		display: block;
		position: fixed;
		top: 64px;
		left: 0;
		right: 0;
		bottom: 0;
		background: #fff;
		padding: 8px clamp( 18px, 6vw, 40px ) 40px;
		overflow-y: auto;
		z-index: 65;
		transform: translateX( 100% );
		visibility: hidden;
		transition: transform 0.24s ease;
	}
	.webaula-nav.open .webaula-mobile {
		transform: translateX( 0 );
		visibility: visible;
	}
	body.webaula-menu-open {
		overflow: hidden;
	}

	/* Accordion: reset the desktop dropdown positioning */
	.webaula-mnav,
	.webaula-mobile .nav-item,
	.webaula-mobile .drop-item {
		position: static;
		display: block;
	}
	.webaula-mobile .nav-link,
	.webaula-mobile .drop > a,
	.webaula-mobile .drop-item > a {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		font-family: var( --wb-font-label );
		text-transform: uppercase;
		font-weight: 600;
		font-size: 16px;
		letter-spacing: 0.03em;
		color: var( --wb-ink );
		padding: 15px 2px;
		border-bottom: 1px solid var( --wb-line );
		border-radius: 0;
	}
	.webaula-mobile .nav-link::after {
		display: none;
	}
	.webaula-mobile .drop {
		position: static;
		display: none;
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
		transform: none;
		min-width: 0;
		padding: 0 0 0 16px;
		border: none;
		border-radius: 0;
		box-shadow: none;
		background: transparent;
	}
	.webaula-mobile .nav-item.open > .drop,
	.webaula-mobile .drop-item.open > .drop {
		display: block;
	}

	/* Caret becomes a tappable expand/collapse toggle */
	.webaula-mobile .caret,
	.webaula-mobile .caret--right {
		width: 22px;
		height: 22px;
		padding: 8px;
		margin: -8px -6px -8px 0;
		box-sizing: content-box;
		opacity: 0.6;
		flex: 0 0 auto;
		transition: transform 0.2s ease;
	}
	.webaula-mobile .nav-item.open > .nav-link .caret,
	.webaula-mobile .drop-item.open > a .caret--right {
		transform: rotate( 90deg );
	}
}

/* ============================================================
   Mega-panel navigation — [webaula_menu_* style="mega"]

   A top bar whose parent items open a panel of two cascading
   columns: the parent's children on the left, the highlighted
   child's children on the right.

   The bar itself is left unpainted on purpose — the site theme
   owns that chrome (Teräsmyynti draws a rounded pill). Only the
   panel and the rows are styled here, off --wb-mega-* tokens.

   Below --wb-mega-break the bar is replaced by the shared
   hamburger + accordion panel (.webaula-burger / .webaula-mobile),
   so this variant reuses that markup and behaviour as-is.
   ============================================================ */
.wa-nav {
	--wb-mega-bg: #3c3c3c;
	--wb-mega-text: #ffffff;
	--wb-mega-accent: #db0037;
	--wb-mega-accent-ink: #ffffff;
	--wb-mega-row-active: rgba( 255, 255, 255, 0.06 );
	--wb-mega-line: rgba( 255, 255, 255, 0.09 );
	/* The rule between the two panel columns. Separate from --wb-mega-line,
	   which also draws the mobile accordion's row borders and the hamburger
	   outline, so this one can be as strong as the design wants. */
	--wb-mega-divider: var( --wb-mega-line );

	--wb-mega-bleed: 30px; /* how far the panel oversteps the bar each side */
	/* How far the panel reaches back up behind the bar. Set this to the bar's
	   height and the band fills the header strip too, with the bar riding on
	   top of it; the rows are pushed back down by the same amount. Pair it
	   with --wb-mega-z: -1 so the bar paints over the band. */
	--wb-mega-rise: 0px;
	--wb-mega-z: 70;
	/* Width a three-column panel grows to, capped against the viewport. */
	--wb-mega-w-3col: min( calc( 100vw - 4rem ), 1180px );
	--wb-mega-row-h: 48px;
	--wb-mega-row-pad: 30px;
	--wb-mega-pad-top: 14px;
	--wb-mega-pad-bottom: 24px;
	--wb-mega-size: 17px;
	--wb-mega-size-top: 18px;
	--wb-mega-shadow: 0 34px 60px -30px rgba( 0, 0, 0, 0.55 );

	position: relative;
	display: flex;
	align-items: center;
	width: 100%;
	height: 100%;
	margin-left: 0;
}

/* ---------- top bar ---------- */
.wa-nav__bar {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: clamp( 6px, 1.5vw, 26px );
	width: 100%;
	height: 100%;
}
.wa-nav__item {
	display: flex;
	align-items: center;
	height: 100%;
}
.wa-nav__link {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 6px 4px;
	color: var( --wb-mega-text );
	font-size: var( --wb-mega-size-top );
	line-height: 1.2;
	white-space: nowrap;
	text-decoration: none;
	transition: color 0.15s ease;
}

/* Red rule that grows under the label. Used by the bar and the rows. */
.wa-nav__label,
.wa-mega__label {
	position: relative;
}
.wa-nav__label::after,
.wa-mega__label::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -5px;
	height: 2px;
	background: currentColor;
	transform: scaleX( 0 );
	transform-origin: left center;
	transition: transform 0.2s ease;
}
/* Panel rows go white when active, so their rule needs the accent stated
   outright rather than inherited from the text colour. The bar's own label
   turns accent-coloured on hover, so currentColor is already right there. */
.wa-mega__label::after {
	background: var( --wb-mega-accent );
}

.wa-nav__item:hover > .wa-nav__link,
.wa-nav__item:focus-within > .wa-nav__link,
.wa-nav__item.is-open > .wa-nav__link {
	color: var( --wb-mega-accent );
}
.wa-nav__item:hover > .wa-nav__link .wa-nav__label::after,
.wa-nav__item:focus-within > .wa-nav__link .wa-nav__label::after,
.wa-nav__item.is-open > .wa-nav__link .wa-nav__label::after {
	transform: scaleX( 1 );
}

/* Circled chevron. Ring in CSS, chevron in the SVG, so the open state can
   fill the disc without painting an outline on top of it. */
.wa-nav__badge {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	box-sizing: border-box;
	width: 20px;
	height: 20px;
	border: 2px solid var( --wb-mega-accent );
	border-radius: 50%;
	color: var( --wb-mega-accent );
	transition: background 0.15s ease, color 0.15s ease, transform 0.2s ease;
}
.wa-nav__badge svg {
	width: 10px;
	height: 6px;
	display: block;
}
/* Filling on hover says "this opens something"… */
.wa-nav__item:hover > .wa-nav__link .wa-nav__badge,
.wa-nav__item:focus-within > .wa-nav__link .wa-nav__badge,
.wa-nav__item.is-open > .wa-nav__link .wa-nav__badge {
	background: var( --wb-mega-accent );
	color: var( --wb-mega-accent-ink );
}
/* …while the flip is reserved for actually being open, now that hovering no
   longer opens anything. */
.wa-nav__item.is-open > .wa-nav__link .wa-nav__badge {
	transform: rotate( 180deg );
}

/* ---------- panel ---------- */
/* The host theme may not set a global border-box, and these components are
   sized by min-height plus padding, so pin it here. */
.wa-mega,
.wa-mega *,
.wa-nav__bar,
.wa-nav__item,
.wa-nav__link {
	box-sizing: border-box;
}
.wa-mega {
	position: absolute;
	top: calc( 100% - var( --wb-mega-rise ) );
	/* Centred on the bar and given an explicit width, rather than pinned to
	   both its edges, so a three-column panel can be wider than the bar. */
	left: 50%;
	width: calc( 100% + 2 * var( --wb-mega-bleed ) );
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translate( -50%, -8px );
	/* visibility is what takes the panel's links out of the tab order, so it
	   flips the instant the panel opens — otherwise there is nothing focusable
	   to step into yet. On close it is held back until the fade has finished,
	   so the panel does not vanish mid-transition. */
	transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
	z-index: var( --wb-mega-z );
}
/* Three levels need more room than the bar has. Capped against the viewport
   so the panel cannot grow past the page. */
.wa-mega--3col {
	width: var( --wb-mega-w-3col );
}
/* Bridges the gap between the bar and the panel so the pointer can travel
   down without the panel closing underneath it. */
.wa-mega::before {
	content: "";
	position: absolute;
	top: -14px;
	left: 0;
	right: 0;
	height: 14px;
}
/* The band is painted by this layer rather than by .wa-mega itself, so
   --wb-mega-bleed-x can widen it past the panel box on both sides: set it to
   100vw and the background runs the full width of the page while the rows stay
   where they are. Anything that overhangs is trimmed by the header's
   overflow-x: clip. Defaults to 0 — flush with the panel. */
.wa-mega::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: calc( -1 * var( --wb-mega-bleed-x, 0px ) );
	right: calc( -1 * var( --wb-mega-bleed-x, 0px ) );
	background: var( --wb-mega-bg );
	box-shadow: var( --wb-mega-shadow );
	z-index: 0;
	/* Decoration only. Without this the overhang would swallow clicks on
	   whatever it covers — the logo and the header's buttons once the band
	   reaches up behind the bar — and hold the panel open while the pointer
	   was anywhere over it. */
	pointer-events: none;
}
/* Opened by clicking the parent (see shared.js), not by hovering it: the panel
   is far wider than the item that opens it, so a hover-out on the way to an
   outer column would pull it away mid-reach. A site that wants the old
   hover behaviour adds wa-nav--hover to the wrapper — the "Extra CSS class"
   field on the menu shortcode puts it there. */
.wa-nav__item.is-open > .wa-mega,
.wa-nav--hover .wa-nav__item:hover > .wa-mega,
.wa-nav--hover .wa-nav__item:focus-within > .wa-mega {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translate( -50%, 0 );
	transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s;
}

.wa-mega__inner {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 1fr 1fr;
	/* Stretch, and carry the vertical padding on the columns rather than here,
	   so the divider below runs the panel's whole height however few items the
	   highlighted category happens to have. */
	align-items: stretch;
}
.wa-mega__col {
	/* The rise is added back here so the rows sit below the bar wherever the
	   band's top edge ends up. */
	padding-block: calc( var( --wb-mega-pad-top ) + var( --wb-mega-rise ) ) var( --wb-mega-pad-bottom );
}
.wa-mega__col--sub,
.wa-mega__col--sub2 {
	border-left: 1px solid var( --wb-mega-divider );
}
.wa-mega--3col .wa-mega__inner {
	grid-template-columns: repeat( 3, 1fr );
}
/* A panel with nothing at the third level has no cascade to show, so its rows
   flow across both halves of the same 50/50 grid — first row left, second
   right, then wrapping — rather than stacking down the left and leaving the
   right empty. No divider: there is no hierarchy here for one to mark. */
.wa-mega--single .wa-mega__col--root {
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-content: start;
}
.wa-mega--single .wa-mega__col--sub {
	display: none;
}

/* ---------- rows ---------- */
.wa-mega__row {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: var( --wb-mega-row-h );
	padding: 6px var( --wb-mega-row-pad );
	color: var( --wb-mega-text );
	font-size: var( --wb-mega-size );
	line-height: 1.25;
	text-decoration: none;
	transition: background 0.14s ease, color 0.14s ease;
}
/* Pointed-at row, and the highlighted one whose contents fill the next
   column — deliberately the same look, so the row you came from does not
   change appearance as you move across into that column. Bold white on the
   raised background, with the accent rule under the label.
   The label is left-aligned against a right-aligned arrow, so going bold
   shifts nothing around it. */
.wa-mega__row.is-active,
.wa-mega__row:hover,
.wa-mega__row:focus-visible {
	background: var( --wb-mega-row-active );
	color: var( --wb-mega-text );
	font-weight: 700;
}
.wa-mega__row.is-active .wa-mega__label::after,
.wa-mega__row:hover .wa-mega__label::after,
.wa-mega__row:focus-visible .wa-mega__label::after {
	transform: scaleX( 1 );
}

/* Arrow: bare on a resting row, in a filled disc on the highlighted one. */
.wa-mega__arrow {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	box-sizing: border-box;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	transition: background 0.14s ease, color 0.14s ease;
}
.wa-mega__arrow svg {
	width: 12px;
	height: 10px;
	display: block;
}
.wa-mega__row.is-active .wa-mega__arrow,
.wa-mega__row:hover .wa-mega__arrow,
.wa-mega__row:focus-visible .wa-mega__arrow {
	background: var( --wb-mega-accent );
	color: var( --wb-mega-accent-ink );
}

/* WordPress outlines anything focused inside .wp-site-blocks, which since the
   panel opens on a click leaves a ring sitting on the parent afterwards. Drop
   it when the focus did not come from the keyboard, and give the keyboard ring
   some room rather than having it hug the label. */
.wa-nav__link:focus:not( :focus-visible ),
.wa-mega__row:focus:not( :focus-visible ),
.wa-nav .webaula-burger:focus:not( :focus-visible ),
.wa-nav .webaula-mobile a:focus:not( :focus-visible ) {
	outline: none;
}
.wa-nav__link:focus-visible,
.wa-mega__row:focus-visible,
.wa-nav .webaula-burger:focus-visible,
.wa-nav .webaula-mobile a:focus-visible {
	outline: 2px solid var( --wb-mega-accent );
	outline-offset: 3px;
}

/* Only the highlighted root row's list is shown in the right column. */
.wa-mega__sub {
	display: none;
}
.wa-mega__sub.is-active {
	display: block;
}

@media ( prefers-reduced-motion: reduce ) {
	.wa-nav__label::after,
	.wa-mega__label::after,
	.wa-nav__badge,
	.wa-mega,
	.wa-mega__row,
	.wa-mega__arrow {
		transition: none;
	}
}

/* ---------- responsive ----------
   The shared .webaula-* accordion switches on at 1280px. The mega bar has
   room to spare down to tablet, so it keeps the bar until 1024px and holds
   the burger + panel back over that range. */
@media ( min-width: 1025px ) and ( max-width: 1280px ) {
	.wa-nav .webaula-burger {
		display: none;
	}
	.wa-nav .webaula-mobile {
		display: none;
	}
}

@media ( max-width: 1024px ) {
	.wa-nav {
		width: auto;
		margin-left: auto;
	}
	.wa-nav__bar {
		display: none;
	}
	.wa-nav .webaula-burger {
		display: flex;
		border-color: var( --wb-mega-line );
	}
	.wa-nav .webaula-burger span {
		background: var( --wb-mega-text );
	}
	.wa-nav .webaula-mobile {
		display: block;
		background: var( --wb-mega-bg );
	}
	/* The style="nav" accordion sets its own label font and leans on the host
	   theme for link colour; the mega variant keeps the bar's own type and
	   drops any inherited underline. */
	.wa-nav .webaula-mobile a,
	.wa-nav .webaula-mobile .nav-link,
	.wa-nav .webaula-mobile .drop > a,
	.wa-nav .webaula-mobile .drop-item > a {
		font-family: inherit;
		font-weight: 400;
		color: var( --wb-mega-text );
		border-bottom-color: var( --wb-mega-line );
		text-transform: none;
		letter-spacing: 0;
		text-decoration: none;
	}
	.wa-nav .webaula-mobile a:hover,
	.wa-nav .webaula-mobile .nav-item.open > .nav-link,
	.wa-nav .webaula-mobile .drop-item.open > a {
		color: var( --wb-mega-accent );
	}
	/* An expanded top-level caret should point up, not sideways — 90deg is
	   right for the sub-level's right-facing caret, not for this one. */
	.wa-nav .webaula-mobile .nav-item.open > .nav-link .caret {
		transform: rotate( 180deg );
	}
}
