/* EN / ES switcher shared by every page. It takes its colour from the header it sits in. */
.header-end {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-shrink: 0;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.1rem;
  padding: 0.15rem;
  border: 1.5px solid color-mix(in srgb, currentColor 35%, transparent);
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  white-space: nowrap;
}

.lang-switch > * {
  padding: 0.4rem 0.55rem;
  border-radius: 999px;
  color: inherit;
  text-decoration: none;
}

.lang-switch__current {
  background: color-mix(in srgb, currentColor 16%, transparent);
}

.lang-switch a {
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.lang-switch a:hover,
.lang-switch a:focus-visible {
  opacity: 1;
}
