/* AriLanguages language switcher */
.arilang-switcher {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.25em 0.9em;
}
.arilang-switcher li {
	margin: 0;
	padding: 0;
}
.arilang-switcher a,
.arilang-switcher .arilang-unavailable {
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 0.35em;
	min-height: 24px; /* WCAG 2.5.8 target size. */
}
.arilang-switcher a:focus-visible,
.arilang-dropdown summary:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}
.arilang-switcher .current-lang > a {
	font-weight: 600;
}
/* A language without a translation of this page: shown, not linked. Italic as well as lighter, so
   the difference from the links does not rest on colour alone (WCAG 1.4.1). */
.lang-item .arilang-unavailable {
	opacity: 0.7;
	font-style: italic;
	cursor: default;
}
/* A link to another page (home, parent) because this page is not translated. */
.lang-item .arilang-fallback {
	text-decoration: underline dotted;
	text-underline-offset: 0.2em;
}
.arilang-flag {
	font-family: "Twemoji Country Flags", "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
	line-height: 1;
}
.arilang-dropdown {
	position: relative;
	display: inline-block;
}
.arilang-dropdown summary {
	cursor: pointer;
	list-style: none;
	display: inline-flex;
	align-items: center;
	gap: 0.35em;
	min-height: 24px;
	padding: 0.3em 0.6em;
	border: 1px solid currentColor;
	border-radius: 6px;
}
.arilang-dropdown summary::-webkit-details-marker {
	display: none;
}
.arilang-dropdown summary::after {
	content: "";
	width: 0.45em;
	height: 0.45em;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg) translateY(-2px);
	margin-left: 0.2em;
}
.arilang-dropdown[open] summary::after {
	transform: rotate(-135deg) translateY(-2px);
}
.arilang-dropdown ul {
	position: absolute;
	z-index: 100;
	top: calc(100% + 4px);
	inset-inline-start: 0;
	min-width: 100%;
	list-style: none;
	margin: 0;
	padding: 0.3em 0;
	background: var(--wp--preset--color--base, #fff);
	color: var(--wp--preset--color--contrast, #1e1e1e);
	border: 1px solid rgba(0, 0, 0, 0.15);
	border-radius: 6px;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}
.arilang-dropdown li a,
.arilang-dropdown li .arilang-unavailable {
	display: flex;
	padding: 0.35em 0.9em;
	white-space: nowrap;
	color: inherit;
}
.arilang-dropdown li a:hover,
.arilang-dropdown li a:focus {
	background: rgba(0, 0, 0, 0.06);
}
.arilang-dropdown li a:focus-visible {
	outline-offset: -2px;
}
.lang-item .screen-reader-text,
.arilang-switcher .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}
@media (forced-colors: active) {
	.lang-item .arilang-unavailable {
		color: GrayText;
		opacity: 1;
	}
}
