/*
 * دکمهٔ «فارسی | العربية» (۱۴۰۵/۰۸/۰۷، `PageExtras::LANGS`) — فقط روی صفحه‌ای که نسخهٔ زبانِ دیگرش چیده شده بار
 * می‌شود (فعلاً «دربارهٔ ما»). بالای صفحه، گوشهٔ چپ، روبه‌روی مسیرِ «خانه / …».
 */
.site-main { position: relative; }

.mg-lang-switch {
  position: absolute;
  top: 10px;
  inset-inline-end: 16px;
  z-index: 5;
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(var(--mg-primary-rgb, 8, 80, 65), .18);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
}

.mg-lang-switch a {
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 13px;
  line-height: 1.2;
  color: var(--mg-primary, #085041);
  text-decoration: none;
  transition: background-color .2s, color .2s;
}

.mg-lang-switch a:hover { background: rgba(var(--mg-primary-rgb, 8, 80, 65), .08); }

.mg-lang-switch a.is-on {
  background: var(--mg-primary, #085041);
  color: #fff;
}

.mg-lang-switch a:focus-visible { outline: 2px solid var(--mg-primary, #085041); outline-offset: 2px; }

@media (max-width: 575px) {
  .mg-lang-switch { top: 8px; inset-inline-end: 12px; }
  .mg-lang-switch a { padding: 5px 12px; font-size: 12px; }
}
