/* ==========================================================================
   Language side panel — a small fixed tab on the right edge: English | हिन्दी
   ========================================================================== */

.lang-panel {
	position: fixed;
	z-index: 90;
	top: 50%;
	right: 0;
	translate: 0 -50%;
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 6px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-right: 0;
	border-radius: 14px 0 0 14px;
	background: rgba(18, 14, 12, 0.92);
	box-shadow: -8px 10px 30px -12px rgba(0, 0, 0, 0.6);
	backdrop-filter: blur(8px);
}

.lang-panel__opt {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1px;
	min-width: 52px;
	min-height: 44px;
	padding: 6px 8px;
	border-radius: 9px;
	color: #f3e9dc;
	font: 600 0.8125rem/1.15 var(--font-body, system-ui, sans-serif);
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.lang-panel__opt:hover,
.lang-panel__opt:focus-visible {
	background: rgba(255, 170, 95, 0.18);
	color: #fff;
}

.lang-panel__opt.is-current {
	background: #f47a1f;
	color: #1a0f08;
}

.lang-panel__code {
	font-size: 0.9375rem;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.lang-panel__name {
	font-size: 0.6875rem;
	font-weight: 500;
	opacity: 0.85;
}

.lang-panel__opt:focus-visible {
	outline: 2px solid #ffc482;
	outline-offset: 1px;
}

/* Narrow screens: keep it compact and clear of the page edge content. */
@media (max-width: 767px) {
	.lang-panel {
		top: auto;
		bottom: 88px;
		translate: none;
		padding: 4px;
	}

	.lang-panel__opt {
		min-width: 46px;
		min-height: 44px;
		padding: 4px 6px;
	}

	.lang-panel__name {
		display: none;
	}
}

@media print {
	.lang-panel {
		display: none;
	}
}
