/* Shared language control: compact in the header, native names in the menu. */
.language-switch {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: .25rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  position: relative;
}
.language-switch a {
  display: grid;
  place-items: center;
  position: relative;
  min-width: 2.5rem;
  min-height: 2.75rem;
  padding: .35rem .55rem;
  border-radius: .35rem;
  color: #526b82;
  font-size: .8125rem;
  font-weight: 650;
  letter-spacing: .025em;
  transition: color .16s, background-color .16s;
}
.language-switch a + a:before {
  content: "";
  position: absolute;
  inset-inline-start: -.125rem;
  top: 50%;
  width: 1px;
  height: .75rem;
  background: #cbdbe8;
  transform: translateY(-50%);
}
.language-switch a[aria-current] { color: #075fb2; font-weight: 750; }
.language-switch a[aria-current]:after {
  content: "";
  position: absolute;
  inset-inline: .55rem;
  bottom: .3rem;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.language-switch a:hover { color: #075fb2; background: #eaf3fb; }
.language-switch--mobile, .site-header__actions { display: none; }
.site-header .menu-toggle { margin-inline-start: auto; }
html[lang="en"] .article-equation {
  gap: clamp(.35rem, 1.5vw, .85rem);
  padding-inline: clamp(.75rem, 3vw, 1.5rem);
  font-size: clamp(1.3rem, 4vw, 2.4rem);
}
@media (width >= 68.75rem) {
  .site-header__inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    column-gap: clamp(1rem, 2.1vw, 2.5rem);
  }
  .site-header .primary-nav {
    position: static;
    inset: auto;
    width: auto;
    min-width: 0;
    justify-content: center;
  }
  .site-header .primary-nav__list { flex-wrap: nowrap; width: auto; }
  .site-header__actions { display: flex; align-items: center; gap: clamp(.75rem, 1.3vw, 1.4rem); }
  .site-header__actions > .primary-nav__cta { flex: none; }
}
@media (68.75rem <= width < 80rem) {
  .site-header__inner { column-gap: .85rem; }
  .site-header .primary-nav__list { gap: .25rem; }
  .site-header .primary-nav__link { font-size: .83rem; padding-inline: .4rem; }
  .site-header__actions { gap: .65rem; }
  .site-header__actions > .primary-nav__cta { padding-inline: 1rem; }
}
@media (width <= 22.5rem) {
  .site-header .brand { gap: .4rem; }
  .site-header .brand__icon { width: 2rem; }
  .site-header .brand__name { font-size: 1.18rem; }
}
@media (prefers-reduced-motion: reduce) {
  .language-switch a { transition: none; }
}
