/* Language control follows the site's deep navy and silver chrome palette. */
.arxedo-header .arxedo-language-control {
	position: relative;
	z-index: 10020;
	flex: 0 0 auto;
}

.arxedo-language-trigger {
	width: 48px;
	height: 48px;
	min-width: 48px;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid rgb(220 230 240 / 0.72);
	border-radius: 50%;
	background: linear-gradient(145deg, rgb(237 244 250 / 0.18), rgb(114 147 179 / 0.1));
	box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.25), 0 5px 16px rgb(0 0 0 / 0.16);
	cursor: pointer;
	transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.arxedo-language-trigger:hover,
.arxedo-language-trigger:focus-visible,
.arxedo-language-trigger[aria-expanded="true"] {
	border-color: #f5f8fc;
	box-shadow: 0 0 0 3px rgb(207 221 235 / 0.18), inset 0 1px 0 rgb(255 255 255 / 0.38), 0 7px 20px rgb(0 0 0 / 0.22);
	transform: translateY(-1px);
}

.arxedo-language-trigger img {
	width: 29px;
	height: 29px;
	display: block;
	border: 1px solid rgb(255 255 255 / 0.9);
	border-radius: 50%;
	object-fit: cover;
	box-shadow: 0 2px 8px rgb(0 0 0 / 0.32);
}

.arxedo-language-menu[hidden] {
	display: none !important;
}

.arxedo-language-menu {
	position: absolute;
	top: calc(100% + 12px);
	right: 0;
	width: min(320px, calc(100vw - 32px));
	max-height: min(560px, calc(100dvh - 112px));
	padding: 9px;
	border: 1px solid rgb(219 231 243 / 0.85);
	border-radius: 18px;
	background: linear-gradient(155deg, rgb(12 39 70 / 0.97), rgb(3 22 45 / 0.98));
	color: #f6f9fd;
	box-shadow: 0 22px 55px rgb(0 8 20 / 0.48), inset 0 1px 0 rgb(255 255 255 / 0.13);
	-webkit-backdrop-filter: blur(22px);
	backdrop-filter: blur(22px);
	overflow: hidden;
}

.arxedo-language-menu__heading {
	margin: 2px 5px 7px;
	padding: 7px 10px 10px;
	border-bottom: 1px solid rgb(212 226 239 / 0.17);
	color: #edf4fb;
	font-size: 0.84rem;
	font-weight: 650;
	letter-spacing: 0.025em;
}

.arxedo-language-list {
	max-height: min(445px, calc(100dvh - 205px));
	padding: 2px 3px;
	overflow-y: auto;
	overscroll-behavior: contain;
	scrollbar-color: #aebdcd rgb(255 255 255 / 0.09);
	scrollbar-width: thin;
}

.arxedo-language-option {
	width: 100%;
	min-height: 51px;
	padding: 8px 11px;
	display: flex;
	align-items: center;
	gap: 13px;
	border: 1px solid transparent;
	border-radius: 12px;
	background: transparent;
	color: #edf4fc;
	font: inherit;
	font-size: 0.97rem;
	font-weight: 540;
	text-align: left;
	cursor: pointer;
	transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}

.arxedo-language-option:hover,
.arxedo-language-option:focus-visible {
	border-color: rgb(224 234 244 / 0.4);
	background: linear-gradient(100deg, rgb(207 221 235 / 0.2), rgb(141 169 194 / 0.1));
	color: #fff;
	outline: none;
}

.arxedo-language-option[aria-checked="true"] {
	border-color: rgb(218 229 240 / 0.64);
	background: linear-gradient(110deg, rgb(218 230 242 / 0.2), rgb(157 180 202 / 0.13));
	box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.13);
}

.arxedo-language-option img {
	width: 29px;
	height: 29px;
	flex: 0 0 29px;
	border: 1px solid rgb(255 255 255 / 0.88);
	border-radius: 50%;
	object-fit: cover;
	box-shadow: 0 2px 7px rgb(0 0 0 / 0.28);
}

.arxedo-language-menu__credit {
	margin: 6px 4px 0;
	padding: 9px 11px 4px;
	border-top: 1px solid rgb(212 226 239 / 0.17);
	color: #c2d0df;
	font-size: 0.71rem;
	text-align: right;
}

.arxedo-language-status:empty {
	display: none;
}

.arxedo-language-status {
	margin: 7px 7px 3px;
	color: #f3d7a0;
	font-size: 0.76rem;
	line-height: 1.4;
}

.arxedo-language-sr-only {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

#google_translate_element {
	position: fixed !important;
	left: -10000px !important;
	top: 0 !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

.goog-te-banner-frame,
#goog-gt-tt,
.goog-tooltip,
.goog-te-balloon-frame {
	display: none !important;
}

body {
	top: 0 !important;
}

@media (max-width: 781px) {
	.arxedo-language-trigger {
		width: 42px;
		height: 42px;
		min-width: 42px;
	}
	.arxedo-language-trigger img {
		width: 26px;
		height: 26px;
	}
	.arxedo-language-menu {
		position: fixed;
		top: calc(var(--arxedo-header-h, 72px) + 0.5rem);
		right: max(1rem, env(safe-area-inset-right, 0px));
		width: min(320px, calc(100vw - 3rem));
		max-height: min(520px, calc(100dvh - var(--arxedo-header-h, 72px) - 1.5rem));
	}
}

@media (prefers-reduced-motion: reduce) {
	.arxedo-language-trigger,
	.arxedo-language-option {
		transition: none;
	}
}
