/* Language switcher dùng chung cho các cặp trang vi/en.
 * Chỉ hiển thị ngôn ngữ đã có bản dịch; không đổi URL hiện tại.
 */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  flex: 0 0 auto;
}

.lang-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 26px;
  padding: 0 7px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2px;
  line-height: 1;
  text-decoration: none;
}

.lang-switch a:hover {
  color: var(--ink);
  text-decoration: none;
}

.lang-switch a[aria-current="true"] {
  background: var(--accent);
  color: #fff;
}

@media (max-width: 640px) {
  .lang-switch a {
    min-width: 27px;
    height: 24px;
    padding: 0 5px;
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .lang-switch a {
    transition: background-color .15s ease, color .15s ease;
  }
}
