/* Language switcher — pinned to the top-right corner. Styled to match the site's
   dark background with white text and 1px white borders. */

#lang-switcher {
	position: fixed;
	top: 16px;
	right: 16px;
	z-index: 1000;
	font-family: var(--font-standard, liberation_sans), sans-serif;
}

#lang-btn {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	color: #ffffff;
	background-color: rgba(0, 0, 0, 0.6);
	border: 1px solid #ffffff;
	border-radius: 999px;
	padding: 8px 16px;
	font-size: 1em;
	font-family: var(--font-standard, liberation_sans), sans-serif;
	line-height: 1;
	backdrop-filter: blur(2px);
	transition: background-color 0.2s ease-in-out;
}

#lang-btn:hover { background-color: rgba(255, 255, 255, 0.15); }

#lang-btn .globe { font-size: 1.3em; }
#lang-btn .caret { font-size: 0.7em; opacity: 0.7; }

#lang-menu {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	min-width: 200px;
	max-height: 70vh;
	overflow-y: auto;
	background-color: rgba(0, 0, 0, 0.92);
	border: 1px solid #ffffff;
	border-radius: 8px;
	padding: 4px 0;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

#lang-menu.hidden { display: none; }

#lang-menu button {
	display: block;
	width: 100%;
	text-align: left;
	background: none;
	border: none;
	color: #ffffff;
	font-family: var(--font-standard, liberation_sans), sans-serif;
	font-size: 1em;
	padding: 10px 18px;
	cursor: pointer;
	transition: background-color 0.15s ease-in-out;
}

#lang-menu button:hover { background-color: rgba(255, 255, 255, 0.15); }
#lang-menu button.active { background-color: rgba(255, 255, 255, 0.22); font-weight: bold; }

@media only screen and (max-width: 600px) {
	#lang-btn { padding: 7px 12px; font-size: 0.9em; }
	#lang-menu { min-width: 170px; }
}
