html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p,
li,
figcaption {
  text-wrap: pretty;
}

.language-switcher {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.language-switcher a {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  color: inherit;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition-property: background-color, color, transform;
  transition-duration: 150ms;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}

.language-switcher a:hover {
  background: rgba(255, 255, 255, 0.08);
}

.language-switcher a:active {
  transform: scale(0.96);
}

.language-switcher a[aria-current='page'] {
  background: linear-gradient(90deg, #5b6cff, #00d1ff);
  color: #05060a;
}

.language-switcher a:focus-visible {
  outline: 2px solid #00d1ff;
  outline-offset: 2px;
}

.language-switcher-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.translation-notice {
  margin: 18px 0 28px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(91, 108, 255, 0.12);
  box-shadow: 0 0 0 1px rgba(91, 108, 255, 0.3);
  color: inherit;
}

@media (max-width: 880px) {
  .language-switcher {
    order: -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .language-switcher a {
    transition: none;
  }
}
