/* Multilingual navigation */
.nav__lang {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  justify-self: end;
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}
.nav__lang a {
  color: rgba(235, 247, 255, 0.62);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 0.32rem 0.44rem;
  line-height: 1;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}
.nav__lang a:hover,
.nav__lang a[aria-current="true"] {
  color: #effcff;
  border-color: rgba(80, 232, 214, 0.55);
  background: rgba(47, 230, 200, 0.12);
}
@media (min-width: 900px) {
  body > .nav {
    min-height: 58px;
  }
  body > .nav .nav__links {
    grid-column: 3;
    justify-self: end;
  }
  body > .nav .nav__lang {
    position: absolute;
    left: 50%;
    top: 10px;
    transform: translateX(-50%);
    justify-self: center;
  }
}
@media (min-width: 900px) and (max-width: 1270px) {
  body > .nav {
    min-height: 104px;
    row-gap: 0.8rem;
    align-items: start;
  }
  body > .nav .nav__links {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: center;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 100%;
    gap: 0.75rem 1.1rem;
    padding-top: 0.6rem;
  }
  body > .nav .nav__links a {
    white-space: nowrap;
  }
}
@media (max-width: 899px) {
  body > .nav {
    display: grid !important;
    min-height: 58px;
  }
  body > .nav .nav__links {
    display: none !important;
  }
}
@media (max-width: 720px) {
  .nav__lang {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    justify-self: center;
    gap: 0.25rem;
    font-size: 0.64rem;
  }
  .nav__lang a { padding: 0.28rem 0.36rem; }
  body > .nav .nav__brand {
    max-width: calc(50vw - 80px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
