.als-switcher {
	display: inline-flex;
	align-items: center;
	gap: .5em;
	font-family: "Noto Sans Ethiopic", "Abyssinica SIL", "Nyala", system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 15px;
	line-height: 1.2;
	white-space: nowrap;
}
.als-switcher .als-link { color: inherit; text-decoration: none; padding: .25em .15em; border-bottom: 2px solid transparent; }
.als-switcher .als-link:hover,
.als-switcher .als-link:focus-visible { border-bottom-color: currentColor; }
.als-switcher .als-active { font-weight: 700; border-bottom-color: currentColor; }
.als-switcher .als-sep { opacity: .5; }

/* Mode "menu": last menu item, pushed to the far right */
.als-menu-item { margin-left: auto !important; float: right; list-style: none; display: flex; align-items: center; }

/* Mode "header": before the script moves it into the header it floats top right; afterwards it is pinned inside the header */
.als-pinned { position: fixed; top: 12px; right: 16px; z-index: 9999; background: rgba(255, 255, 255, .92); padding: .35em .7em; border-radius: 6px; box-shadow: 0 1px 4px rgba(0, 0, 0, .15); color: #1d2327; }
body.admin-bar .als-pinned { top: 44px; }
.als-pinned.als-in-header {
	position: absolute;
	top: 50%;
	right: 16px;
	transform: translateY(-50%);
	background: transparent;
	box-shadow: none;
	padding: 0;
	color: inherit;
}

/* Toggle design: a pill with a sliding thumb */
.als-toggle-wrap { display: inline-flex; }
.als-toggle {
	position: relative;
	display: inline-grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	padding: 3px;
	border-radius: 999px;
	background: rgba(128, 128, 128, .3);
	color: inherit;
	text-decoration: none;
	cursor: pointer;
	font-size: 14px;
	line-height: 1;
	-webkit-tap-highlight-color: transparent;
}
.als-toggle:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.als-toggle .als-thumb {
	position: absolute;
	top: 3px; bottom: 3px; left: 3px;
	width: calc(50% - 3px);
	border-radius: 999px;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
	transition: transform .2s ease;
}
.als-toggle.als-on-en .als-thumb { transform: translateX(100%); }
.als-toggle .als-opt {
	position: relative;
	z-index: 1;
	padding: .55em 1em;
	text-align: center;
	font-weight: 600;
	transition: color .2s ease;
}
.als-toggle.als-on-am .als-opt-am,
.als-toggle.als-on-en .als-opt-en { color: #1d2327; }
@media (prefers-reduced-motion: reduce) {
	.als-toggle .als-thumb, .als-toggle .als-opt { transition: none; }
}
.als-pinned.als-toggle-wrap { background: transparent; box-shadow: none; padding: 0; }
.als-pinned.als-toggle-wrap:not(.als-in-header) { background: transparent; }

/* Single-button design: shows only the other language */
.als-single-wrap { display: inline-flex; }
.als-single {
	display: inline-flex;
	align-items: center;
	gap: .45em;
	padding: .45em .95em;
	border: 1.5px solid currentColor;
	border-radius: 999px;
	color: inherit;
	text-decoration: none;
	font-weight: 600;
	font-size: 14px;
	line-height: 1.2;
	white-space: nowrap;
	transition: background-color .15s ease;
}
.als-single:hover, .als-single:focus-visible { background: rgba(128, 128, 128, .25); color: inherit; }
.als-single:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.als-single .als-globe { width: 1.2em; height: 1.2em; flex: none; }
@media (prefers-reduced-motion: reduce) { .als-single { transition: none; } }

/* National flags */
.als-flag { width: 1.6em; height: .8em; flex: none; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .25); vertical-align: middle; }
.als-switcher .als-link { display: inline-flex; align-items: center; gap: .4em; }
.als-toggle .als-opt { display: inline-flex; align-items: center; justify-content: center; gap: .4em; }
