/* The language control in the top bar and the list of languages in the footer. */
.lang { position: relative; }
.lang__current {
  display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 44px; padding: 0 var(--space-sm);
  color: var(--ink-quiet); font-size: .875rem; cursor: pointer; list-style: none; border-radius: var(--radius-plate);
}
.lang__current::-webkit-details-marker { display: none; }
.lang__current:hover, .lang[open] .lang__current { color: var(--ink); }
.lang__list {
  position: absolute; z-index: 20; right: 0; top: 100%; min-width: 12rem; margin: 0; padding: var(--space-xs);
  list-style: none; background: var(--dark-surface); border: 1px solid var(--rule); border-radius: var(--radius-plate);
}
.lang__item {
  display: flex; align-items: center; min-height: 44px; padding: 0 var(--space-compact);
  color: var(--ink-quiet); font-size: .875rem; text-decoration: none; border-radius: calc(var(--radius-plate) - 2px);
}
.lang__item:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 8%, transparent); }
.lang__item[aria-current='true'] { color: var(--ink); font-weight: 600; }
.lang-line .link[aria-current='true'] { color: var(--ink); text-decoration: none; }
/* The privacy page has no navigation: the control sits at the right of its top bar. */
.top > .lang { margin-left: auto; }
