
.language-switch {
  position: absolute;
  z-index: 10000;
  top: max(14px, env(safe-area-inset-top, 0px));
  right: max(16px, env(safe-area-inset-right, 0px));
  display: flex;
  align-items: center;
  padding: 3px;
  gap: 2px;
  border: 1px solid #b99aeb55;
  border-radius: 999px;
  background-color: #130d20ed;
  box-shadow: 0 6px 24px #0005;
  font: 650 13px/1 system-ui, sans-serif;
  letter-spacing: .075em;
}
.language-switch a {
  display: grid;
  min-height: 36px;
  min-width: 43px;
  padding: 0 5px;
  place-items: center;
  border-radius: 999px;
  text-decoration: none;
  color: #e8dff6;
}
.language-switch a[aria-current] { background: #b88afd; color: #180b2b; }
.language-switch a:hover:not([aria-current]) { background: #42265e; color: white; }
.language-switch a:focus-visible { outline: 2px solid white; outline-offset: 3px; }

@media (max-width: 759px) {
  #overview h1 { top: max(62px, calc(env(safe-area-inset-top, 0px) + 48px)); }
  .language-switch { right: max(10px, env(safe-area-inset-right, 0px)); }
  .language-switch a { min-width: 41px; }
}
