.siah-language-switcher {
	--siah-lang-ink: #123f35;
	--siah-lang-green: #1f6a4d;
	--siah-lang-gold: #f2c94c;
	display: inline-flex;
	align-items: center;
	font-size: 0.68rem;
	font-weight: 800;
	letter-spacing: 0.05em;
	line-height: 1;
}

/* Keep the control compact: its accessible label remains available to screen readers. */
.siah-language-switcher__label {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.siah-language-switcher__options {
	display: inline-flex;
	align-items: center;
	gap: 0.08rem;
	padding: 0.08rem;
	border: 1px solid rgba(255, 255, 255, 0.46);
	border-radius: 999px;
	background: rgba(12, 74, 55, 0.78);
	box-shadow: 0 3px 10px rgba(4, 35, 27, 0.13);
	backdrop-filter: blur(9px);
}

.siah-language-switcher__choice {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	min-width: 1.45rem;
	min-height: 1.25rem;
	padding: 0.16rem 0.26rem !important;
	border-radius: 999px;
	color: #fff !important;
	font-size: 0.56rem !important;
	font-weight: 850 !important;
	line-height: 1 !important;
	text-decoration: none !important;
	opacity: 0.82;
	transition: background-color 150ms ease, color 150ms ease, opacity 150ms ease;
}

.siah-language-switcher__choice:hover,
.siah-language-switcher__choice:focus-visible {
	background: rgba(255, 255, 255, 0.17);
	color: #fff !important;
	opacity: 1;
}

.siah-language-switcher__choice:focus-visible {
	outline: 2px solid var(--siah-lang-gold);
	outline-offset: 2px;
}

.siah-language-switcher__choice.is-current {
	background: var(--siah-lang-gold);
	color: var(--siah-lang-ink) !important;
	opacity: 1;
}

.siah-language-switcher__divider {
	color: rgba(255, 255, 255, 0.55);
	font-size: 0.5rem;
}

/* The footer-rendered control is visually positioned inside the site header. */
.siah-language-switcher-wrap {
	position: absolute;
	top: 0.35rem;
	right: 3.5rem;
	z-index: 100001;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
}

.admin-bar .siah-language-switcher-wrap {
	top: 2.35rem;
}

/* The alignment helper measures the active header row and supplies its centre
 * without inserting this control into the header flex layout. This preserves
 * the navigation and keeps the three social icons on one horizontal line. */
.siah-language-switcher-wrap.is-header-aligned {
	position: absolute;
	top: var(--siah-language-switcher-top) !important;
	right: 1.5rem !important;
	margin: 0;
	transform: none;
}

.siah-language-switcher-wrap.is-header-aligned.has-social-anchor {
	left: var(--siah-language-switcher-left) !important;
	right: auto !important;
}

/* French labels are naturally longer. On desktop, trim only their typographic
 * footprint and reserve the social group's normal width so its three icons
 * never wrap into a second row. */
@media (min-width: 922px) and (max-width: 1800px) {
	html[lang|="fr"] .main-header-menu > li:not(.menu-item-2077) > a {
		font-size: 12px !important;
		letter-spacing: 0.3px !important;
	}

	html[lang|="fr"] .header-social-inner-wrap {
		min-width: 141px;
		white-space: nowrap;
	}
}

@media (max-width: 1200px) {
	.siah-language-switcher-wrap {
		right: 3.5rem;
	}
}

@media (max-width: 921px) {
	.siah-language-switcher-wrap {
		top: 0.35rem;
		right: 3.5rem;
	}

	.admin-bar .siah-language-switcher-wrap {
		top: 2.35rem;
	}

	.siah-language-switcher-wrap.is-header-aligned {
		right: 3.5rem !important;
	}

	.siah-language-switcher-wrap.is-header-aligned.has-social-anchor {
		left: auto !important;
	}

}

@media (max-width: 767px) {
	.siah-language-switcher-wrap {
		top: 0.85rem;
		right: 4.25rem;
	}

	.admin-bar .siah-language-switcher-wrap {
		top: 3.75rem;
	}

	.siah-language-switcher-wrap.is-header-aligned {
		right: 4.25rem !important;
	}

	.siah-language-switcher__choice {
		min-width: 1.4rem;
		min-height: 1.2rem;
		padding: 0.14rem 0.22rem !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.siah-language-switcher__choice {
		transition: none;
	}
}
