.language-switch {
  display: flex;
  gap: 0.48rem;
  align-items: center;
  justify-self: end;
  border: 0;
  color: inherit;
  white-space: nowrap;
}

.language-switch button {
  position: relative;
  min-width: 0;
  padding: 0.28rem 0.06rem;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-size: 0.62rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  opacity: 0.42;
}

.language-switch button::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--sf-magenta, #ec046c);
  transform: scaleX(0);
  transform-origin: left;
}

.language-switch button[aria-pressed="true"] {
  background: transparent;
  color: inherit;
  opacity: 1;
}

.language-switch button[aria-pressed="true"]::after {
  transform: scaleX(1);
}

.language-switch button:hover {
  opacity: 1;
}

.language-switch button:focus-visible {
  outline: 2px solid var(--sf-magenta, #ec046c);
  outline-offset: 3px;
}

.header-tools {
  display: flex;
  gap: clamp(0.8rem, 1.8vw, 1.5rem);
  align-items: center;
  justify-self: end;
}

[data-lang="zh"] {
  font-family: Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}

[data-lang="zh"] .wordmark,
[data-lang="zh"] .match-vs {
  font-family: Arial, Helvetica, sans-serif;
}

.about-page[data-lang="it"] .positioning h1 {
  font-size: clamp(3.15rem, 5.2vw, 6.7rem);
}

@media (max-width: 680px) {
  .header-tools .page-marker {
    display: none;
  }

  .language-switch {
    gap: 0.36rem;
  }

  .language-switch button {
    font-size: 0.56rem;
    letter-spacing: 0.02em;
  }

  .about-page[data-lang="it"] .positioning h1 {
    font-size: clamp(2rem, 8vw, 3.6rem);
  }
}
