/* MCG Multilingual — the language switcher.
   Sized and coloured to sit inside the existing header without changing it. */

.mcg-ml-switcher {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	line-height: 1;
	white-space: nowrap;
}

.mcg-ml-switcher__link {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 5px 8px;
	border-radius: 7px;
	color: inherit;
	text-decoration: none;
	opacity: .72;
	transition: opacity .15s ease, background-color .15s ease;
}

.mcg-ml-switcher__link:hover,
.mcg-ml-switcher__link:focus-visible {
	opacity: 1;
	background: rgba(37, 99, 235, .10);
}

.mcg-ml-switcher__link.is-active {
	opacity: 1;
	font-weight: 700;
	background: rgba(37, 99, 235, .12);
}

.mcg-ml-switcher__flag {
	font-size: 15px;
	line-height: 1;
}

.mcg-ml-switcher__sep {
	opacity: .35;
}

/* In the site header the switcher sits with the sign-in buttons. */
.site-nav__actions .mcg-ml-switcher {
	margin-right: 4px;
}

/* Phones: the names go, the flags stay — the row must never wrap the header. */
@media (max-width: 860px) {
	.mcg-ml-switcher__label {
		position: absolute;
		width: 1px;
		height: 1px;
		margin: -1px;
		padding: 0;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
		border: 0;
	}

	.mcg-ml-switcher__link {
		padding: 6px;
	}

	.mcg-ml-switcher__sep {
		display: none;
	}
}

/* Inside the open mobile menu there is room for the full names again. */
.site-nav.is-open .mcg-ml-switcher__label,
.mcg-ml-switcher--compact .mcg-ml-switcher__label {
	position: static;
	width: auto;
	height: auto;
	margin: 0;
	clip: auto;
}
