/* Ehgzli AR/EN language switcher — Clause 23 (WCAG 2.2 AA) + Clause 48 (browser-test gate) — W34.33 */
.ehgzli-lang-switcher {
	position: fixed;
	top: 12px;
	inset-inline-end: 12px; /* top-left in RTL, top-right in LTR */
	z-index: 9999;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	background: rgba(255, 255, 255, 0.96);
	border: 1px solid #e5e7eb;
	border-radius: 999px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
	font: 14px/1.2 system-ui, -apple-system, "Segoe UI", "IBM Plex Sans Arabic",
		Tajawal, Cairo, sans-serif;
	user-select: none;
}

.ehgzli-lang-switcher__btn {
	color: #475569;
	text-decoration: none;
	padding: 4px 10px;
	border-radius: 999px;
	min-height: 32px; /* WCAG 2.2 AA target size 24x24+ — bumped for comfort */
	min-width: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 500;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.ehgzli-lang-switcher__btn:hover,
.ehgzli-lang-switcher__btn:focus-visible {
	background: #f1f5f9;
	color: #0f172a;
	text-decoration: none;
	outline: 2px solid #0d9488;
	outline-offset: 2px;
}

.ehgzli-lang-switcher__btn.is-active {
	background: #0d9488;
	color: #fff;
	font-weight: 700;
}

.ehgzli-lang-switcher__btn.is-active:hover,
.ehgzli-lang-switcher__btn.is-active:focus-visible {
	background: #0f766e;
	color: #fff;
	outline-color: #0f766e;
}

.ehgzli-lang-switcher__sep {
	color: #cbd5e1;
	padding: 0 2px;
}

/* Mobile: stay top-corner but smaller padding */
@media (max-width: 640px) {
	.ehgzli-lang-switcher {
		top: 8px;
		inset-inline-end: 8px;
		padding: 4px 8px;
		font-size: 13px;
	}
	.ehgzli-lang-switcher__btn {
		padding: 3px 8px;
		min-width: 40px;
	}
}

/* Print: hide */
@media print {
	.ehgzli-lang-switcher {
		display: none !important;
	}
}

/* Reduced-motion: no transitions */
@media (prefers-reduced-motion: reduce) {
	.ehgzli-lang-switcher__btn {
		transition: none;
	}
}
