/* Runtime language switch; it deliberately does not alter the existing nav/menu layout. */
.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  box-sizing: border-box;
  color: inherit;
  font: inherit;
  line-height: 1;
  white-space: nowrap;
}

.language-switch a {
  display: inline-block;
  box-sizing: border-box;
  padding: 0.32rem 0.18rem;
  border-radius: 0.16rem;
  color: inherit;
  font: inherit;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-underline-offset: 0.2em;
}

.language-switch a[aria-current="page"] {
  font-weight: 750;
  text-decoration: underline;
  text-decoration-thickness: 0.12em;
}

.language-switch a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.language-switch span[aria-hidden="true"] {
  user-select: none;
}

@media (max-width: 560px) {
  .language-switch {
    gap: 0.2rem;
    font-size: 0.92em;
  }

  .language-switch a {
    padding: 0.46rem 0.26rem;
  }
}
