/* Language dropdown (matches std-navbar__icon utility controls) */
.std-navbar__lang-dropdown {
	position: relative;
	display: inline-flex;
	align-items: center;
}

.std-navbar__lang-dropdown > summary {
	list-style: none;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 0.35rem;
	color: inherit;
	background: transparent;
	border: none;
	padding: 0;
}

.std-navbar__lang-dropdown > summary::-webkit-details-marker {
	display: none;
}

.std-navbar__lang-trigger:hover,
.std-navbar__lang-dropdown[open] > .std-navbar__lang-trigger {
	background: color-mix(in srgb, currentColor 8%, transparent);
}

.std-navbar__lang-trigger--active .std-navbar__lang-icon {
	color: color-mix(in srgb, #3b6ef5 85%, currentColor);
}

.std-navbar__lang-panel {
	position: absolute;
	top: calc(100% + 0.35rem);
	right: 0;
	min-width: 11.5rem;
	padding: 0.65rem 0.75rem 0.75rem;
	border-radius: 0.5rem;
	background: color-mix(in srgb, var(--colorLightBg1, #fff) 96%, transparent);
	border: 1px solid color-mix(in srgb, currentColor 14%, transparent);
	box-shadow: 0 0.35rem 1.25rem color-mix(in srgb, #000 12%, transparent);
	z-index: 60;
}

html[class*="dark"] .std-navbar__lang-panel {
	background: color-mix(in srgb, var(--colorDarkBg2, #1e1e24) 98%, transparent);
}

.std-navbar__lang-panel-inner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	margin-bottom: 0.25rem;
    margin-top: 0.25rem;
}

.std-navbar__lang-label {
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	opacity: 0.5;
	user-select: none;
	text-decoration: none;
	color: inherit;
	padding: 0.15rem 0.2rem;
	border-radius: 0.25rem;
}

.std-navbar__lang-label:hover {
	opacity: 0.85;
	background: color-mix(in srgb, currentColor 6%, transparent);
}

.std-navbar__lang-label.is-active {
	opacity: 1;
}

.std-lang-track-link {
	display: inline-flex;
	text-decoration: none;
	border-radius: 999px;
}

.std-lang-track {
	position: relative;
	width: 2.75rem;
	height: 1.35rem;
	border-radius: 999px;
	background: color-mix(in srgb, currentColor 16%, transparent);
	transition: background 0.2s ease;
}

.std-lang-track--en {
	background: color-mix(in srgb, #3b6ef5 55%, currentColor);
}

.std-lang-thumb {
	position: absolute;
	top: 0.2rem;
	left: 0.2rem;
	width: 0.95rem;
	height: 0.95rem;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 2px color-mix(in srgb, #000 18%, transparent);
	transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.std-lang-track--en .std-lang-thumb {
	transform: translateX(1.35rem);
}

.std-lang-track-link:focus-visible,
.std-navbar__lang-label:focus-visible {
	outline: 2px solid color-mix(in srgb, #3b6ef5 70%, currentColor);
	outline-offset: 2px;
}

.std-legal-lang-note {
	margin: 0 0 1rem;
	padding: 0.75rem 0.85rem;
	border-radius: 0.4rem;
	border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
	background: color-mix(in srgb, currentColor 6%, transparent);
	font-size: 0.92rem;
	line-height: 1.35;
}

.std-legal-lang-note a {
	font-weight: 600;
	color: inherit;
}

html.rs-ext-link-icons a[target="_blank"]::after,
html.rs-ext-link-icons a[href^="http://"]::after,
html.rs-ext-link-icons a[href^="https://"]::after {
	content: "↗";
	display: inline-block;
	margin-left: 0.25em;
	font-size: 0.72em;
	line-height: 1;
	vertical-align: text-top;
	opacity: 0.7;
}
