/* Language switcher, the same control as on Spot Suite and Cushly: flag,
   code and a chevron; the menu names each language in its own words. */

/* The bar's right end holds more links plus the switcher, so the middle
   links take the space left over instead of a centred third, and fold into
   the menu before anything wraps. */
.kop { grid-template-columns: auto 1fr auto; column-gap: 16px; }
.kop__midden { justify-self: center; }
.kop__midden a, .kop__rechts a { white-space: nowrap; }
.kop__eind { justify-self: end; display: flex; align-items: center; gap: 6px; }
@media (max-width: 1240px) {
  .kop__midden { display: none; }
  .kop__menu { display: block; }
}

.taal { position: relative; flex: none; }
.taal__knop {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: var(--r);
  list-style: none; cursor: pointer; user-select: none;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em;
  transition: background-color 0.2s ease;
}
.taal__knop::-webkit-details-marker { display: none; }
.taal__knop:hover, .taal[open] .taal__knop { background: rgb(0 0 0 / 0.05); }
.kop[data-toon="donker"] .taal__knop:hover,
.kop[data-toon="donker"] .taal[open] .taal__knop { background: rgb(255 255 255 / 0.12); }
.taal__knop:focus-visible, .taal__optie:focus-visible { outline: 2px solid var(--blauw); outline-offset: 2px; }
.taal__vlag { display: block; width: 18px; height: 13px; object-fit: cover; border-radius: 1px; }
.taal__pijl { font-size: 0.65rem; opacity: 0.7; }

.taal__menu {
  position: absolute; top: calc(100% + 6px); inset-inline-end: 0;
  min-width: 12rem; margin: 0; padding: 6px;
  list-style: none;
  background: var(--grond); color: var(--inkt);
  border: 1px solid var(--lijn); border-radius: var(--r);
  box-shadow: 0 12px 32px rgb(0 0 0 / 0.1);
}
.taal__optie {
  display: flex; align-items: center; gap: 10px;
  min-height: 40px; padding: 8px 10px; border-radius: var(--r);
  font-size: 0.9375rem; font-weight: 500; text-decoration: none;
}
.taal__optie:hover { background: var(--licht); }
.taal__optie.is-actief { color: var(--blauw); }
.taal__optie .taal__code { margin-inline-start: auto; font-size: 0.75rem; opacity: 0.65; }
