/*
 * Language switcher (design style.css .lsw, .mnav-locale; inc/i18n/switcher.php, assets/js/locale.js).
 * Header: current language as a round button, the other one in a small menu. Drawer: both as a pair on
 * a beige strip at the bottom. The region (phase 5) becomes a second item / pair with the same divider.
 */
:root .ll-lsw {
	display: flex;
	align-items: center;
	margin-right: calc(-1 * var(--ll-space-4));
}
:root .ll-lsw__item {
	position: relative;
}
:root .ll-lsw__item + .ll-lsw__item::before,
:root .ll-mnav-locale__pair > * + *::before {
	content: "";
	position: absolute;
	top: 50%;
	width: 1px;
	height: var(--ll-separator-h);
	background: currentColor;
	opacity: .3;
	transform: translateY(-50%);
}
:root .ll-lsw__item + .ll-lsw__item::before {
	left: 0;
}
:root .ll-lsw__btn {
	display: inline-flex;
	align-items: center;
	height: var(--ll-tap);
	padding: 0 var(--ll-space-12);
	border: 0;
	border-radius: var(--ll-r-full);
	background: none;
	font-size: var(--ll-tiny);
	line-height: var(--ll-lh-relaxed);
	font-weight: var(--ll-weight-bold);
	color: inherit;
	cursor: pointer;
	transition: background var(--ll-t-fast) ease;
}
:root span.ll-lsw__btn {
	cursor: default;
}
:root button.ll-lsw__btn:hover,
:root .ll-lsw__btn[aria-expanded="true"] {
	background: var(--ll-icon-hover-bg, var(--ll-hover-tint));
}
:root .ll-lsw__menu {
	position: absolute;
	top: calc(100% + var(--ll-space-4));
	right: 0;
	z-index: var(--ll-z-dropdown);
	margin: 0;
	padding: var(--ll-space-4);
	list-style: none;
	border-radius: var(--ll-r-sm);
	background: var(--ll-white);
	color: var(--ll-ink);
	box-shadow: var(--ll-shadow-float);
}
:root .ll-lsw__menu[hidden] {
	display: none;
}
:root .ll-lsw__menu::before { /* hover bridge across the gap */
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: calc(-1 * var(--ll-space-4));
	height: var(--ll-space-4);
}
:root .ll-lsw__menu a {
	display: flex;
	align-items: center;
	width: 100%;
	padding: var(--ll-space-8) var(--ll-space-12);
	border-radius: calc(var(--ll-r-sm) - var(--ll-space-4));
	font-size: var(--ll-small);
	line-height: var(--ll-lh-tight);
	font-weight: var(--ll-weight-bold);
	text-align: left;
	white-space: nowrap;
	text-decoration: none;
	color: var(--ll-ink-soft);
}
:root .ll-lsw__menu a:hover {
	background: var(--ll-beige);
	color: var(--ll-ink);
}
@media (max-width: 999.98px) {
	:root .ct-header .ll-lsw {
		display: none;
	}
}

:root .ll-mnav-locale {
	margin: 0 calc(-1 * var(--ll-space-24)) calc(-1 * var(--ll-space-24)); /* pushed down by its Blocksy text item (header.css) */
	padding: var(--ll-space-4) var(--ll-space-24) calc(var(--ll-space-12) + env(safe-area-inset-bottom));
	background: var(--ll-beige);
}
:root .ll-mnav-locale__pair {
	display: flex;
	align-items: center;
	gap: var(--ll-space-16);
	padding: var(--ll-space-12) 0;
}
:root .ll-mnav-locale__pair + .ll-mnav-locale__pair {
	border-top: 1px solid var(--ll-border);
}
:root .ll-mnav-locale__pair > * {
	position: relative;
	font-size: var(--ll-body);
	line-height: var(--ll-lh-relaxed);
	font-weight: var(--ll-weight-medium);
	text-decoration: none;
	color: var(--ll-ink-mute);
	transition: color var(--ll-t-base) ease;
}
:root .ll-mnav-locale__pair > * + *::before {
	left: calc(-0.5 * var(--ll-space-16));
}
:root .ll-mnav-locale__pair > [aria-current="true"] {
	color: var(--ll-ink);
	font-weight: var(--ll-weight-bold);
}
:root .ll-mnav-locale__pair > a:hover {
	color: var(--ll-petrol);
}

/* Region hint (design .locale-hint; inc/i18n/region-hint.php) */
:root .ll-locale-hint {
	position: fixed;
	z-index: var(--ll-z-hint);
	left: var(--ll-pad-x);
	bottom: var(--ll-space-24);
	width: min(var(--ll-hint-w), calc(100% - 2 * var(--ll-pad-x)));
	padding: var(--ll-space-24);
	border-radius: var(--ll-r-lg);
	background: var(--ll-white);
	box-shadow: var(--ll-shadow-float);
	animation: cmp-in var(--ll-t-base) var(--ll-ease);
}
:root .ll-locale-hint[hidden] {
	display: none;
}
:root .ll-locale-hint__text {
	margin: 0;
	font-size: var(--ll-small);
	line-height: var(--ll-lh-relaxed);
	color: var(--ll-ink-soft);
}
:root .ll-locale-hint__text strong {
	color: var(--ll-ink);
}
:root .ll-locale-hint__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--ll-space-8) var(--ll-space-16);
	margin-top: var(--ll-space-16);
}
:root .ll-locale-hint .wp-element-button.ll-btn-sm {
	padding: var(--ll-space-12) var(--ll-space-24);
	line-height: var(--ll-lh-relaxed);
}
:root .ll-locale-hint__stay {
	padding: 0;
	border: 0;
	background: none;
	font-size: var(--ll-small);
	font-weight: var(--ll-weight-bold);
	color: var(--ll-ink-mute);
	text-decoration: underline;
	text-underline-offset: var(--ll-underline-gap);
	cursor: pointer;
}
:root .ll-locale-hint__stay:hover {
	color: var(--ll-ink);
}
@media (max-width: 689.98px) {
	:root .ll-locale-hint {
		left: var(--ll-space-12);
		right: var(--ll-space-12);
		bottom: var(--ll-space-12);
		width: auto;
	}
}

/* Zone texts (inc/setup/zone.php): the front end keeps one version; the editor shows both, labelled */
.editor-styles-wrapper :is(.ll-zone-ch, .ll-zone-eu) {
	outline: 1px dashed var(--ll-border);
}
.editor-styles-wrapper .ll-zone-ch::before,
.editor-styles-wrapper .ll-zone-eu::before {
	margin-right: var(--ll-space-4);
	font-size: var(--ll-tiny);
	font-weight: var(--ll-weight-bold);
	color: var(--ll-ink-mute);
}
.editor-styles-wrapper .ll-zone-ch::before {
	content: "CH";
}
.editor-styles-wrapper .ll-zone-eu::before {
	content: "EU";
}
