.language-picker { position: relative; z-index: 24; flex: none; }
.header .language-picker #language {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 64px;
  min-height: 44px;
  padding-inline: 8px;
  color: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
}
.header .language-picker #language::after {
  content: "";
  width: 5px;
  height: 5px;
  margin-top: -3px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
}
.language-options {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 184px;
  max-height: min(62vh, 360px);
  overflow-y: auto;
  padding: 6px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: 0 14px 30px rgba(30, 24, 18, .13);
}
.language-options[hidden] { display: none; }
.language-options button {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  text-align: left;
  font-size: 14px;
  line-height: 1.4;
}
.language-options button:hover,
.language-options button:focus-visible { background: var(--soft); }
.language-options button[aria-pressed="true"] { font-weight: 800; }
@media (max-width: 600px) {
  .header .language-picker #language { min-width: 54px; padding-inline: 3px; }
  .language-options { right: 0; }
  .page-header #menu {
    left: auto;
    right: calc(var(--space) + 72px);
    transform: translateY(-50%);
  }
}
