/**
 * Faris Kit: language switcher on the site.
 *
 * Colours come from the text around the switcher, so it fits any header,
 * footer or block it sits in.
 */

.hr-lang-switcher__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hr-lang-switcher__item {
	margin: 0;
	padding: 0;
}

.hr-lang-switcher a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-block-size: 44px;
	padding: 0 10px;
	border-radius: 8px;
	color: inherit;
	text-decoration: none;
}

.hr-lang-switcher a:hover {
	background: color-mix(in srgb, currentColor 8%, transparent);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.hr-lang-switcher a:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.hr-lang-switcher .is-current a {
	font-weight: 700;
}

.hr-lang-switcher abbr {
	border: 0;
	text-decoration: none;
	cursor: inherit;
}

.hr-lang-switcher__code {
	display: inline-flex;
	align-items: center;
	padding: 1px 6px;
	border: 1px solid currentColor;
	border-radius: 4px;
	font-size: .75em;
	font-weight: 700;
	letter-spacing: .03em;
	line-height: 1.5;
}

.hr-lang-switcher--vertical .hr-lang-switcher__list {
	flex-direction: column;
	align-items: flex-start;
}
