/**
 * MOVE Language switcher — the header is its only home (the footer's own
 * copy was removed to match the approved Figma, which draws the switcher
 * once, in the header).
 *
 * Breakpoints (see assets/css/tokens.css): mobile <768px, tablet >=768px,
 * desktop >=1024px. No @container rule here: the switcher is a single row of
 * three short controls at every width, so it has nothing to rearrange.
 */
:root {
	/* Tagline/tagline-14 — 14px SemiBold uppercase +15% tracking, not the
	   12px Regular this shipped with (corrected 2026-09-01). */
	--move-lang-font: var(--move-font-size-sm, 0.875rem); /* 14px */

	/* Header bar is navy on every page, so dark is the base case. Figma's
	   Language Selector (156:881) sets inactive codes at pure white, current
	   in the accent. */
	--move-lang-text: #ffffff;
	--move-lang-text-current: var(--move-color-accent, #689fdf);
	/* The floating pill is the one light ground left; it overrides these
	   three from inside header.css's own 1360px media query rather than a
	   selector here — an .is-floating rule in this file would apply at every
	   width, since main.js sets the class regardless of styling. */
	--move-lang-outline: var(--move-color-text-inverse, #f5f3ee);
	--move-lang-gap: var(--move-space-4, 0.25rem); /* 4px, per the Figma pill */
}

.move-lang-switcher__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: var(--move-lang-gap);
}

.move-lang-switcher__item {
	/* Visible code is 12px, but the target must clear SC 2.5.8's 24x24px —
	   hence min sizing plus centring rather than a bare inline button. */
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: var(--move-target-min, 24px);
	min-height: var(--move-target-min, 24px);
	padding: var(--move-space-4, 0.25rem);
	background: none;
	border: none;
	font-family: inherit;
	font-size: var(--move-lang-font);
	font-weight: var(--move-font-weight-semibold, 600);
	letter-spacing: var(--move-letter-spacing-looser, 0.15em);
	text-transform: uppercase;
	line-height: 1;
	color: var(--move-lang-text);
	text-decoration: none;
	cursor: pointer;
	transition: color var(--move-transition, 150ms ease);
}

/* Marked by weight + colour together, never colour alone (also carries
   aria-current/aria-pressed). Figma sets every code SemiBold, so current
   steps up to Bold rather than contrasting against a Regular. */
.move-lang-switcher__item.is-current {
	font-weight: var(--move-font-weight-bold, 700);
	color: var(--move-lang-text-current);
}

/* Colour fade only, no underline — matches every other hover in the chrome. */
.move-lang-switcher__item:hover,
.move-lang-switcher__item:focus-visible {
	color: var(--move-lang-text-current);
}
.move-lang-switcher__item:focus-visible {
	outline: 2px solid var(--move-color-focus, #315179);
	outline-offset: 2px;
}

.move-header .move-lang-switcher__item:focus-visible {
	outline-color: var(--move-lang-outline);
}
