/* The language choice (taalkeuze() in src/site/shell.ts, taalKeuze() in public/app/lib/taalkeuze.js), shared by the site and the app's sign-in screen. */
.taal { position: relative; flex: none; }
.taal__knop {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 44px; min-height: 44px; padding: 6px 10px; border-radius: var(--r, var(--r-s, 6px));
  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[open] .taal__knop { background: rgb(0 0 0 / 0.05); }
.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, var(--r-s, 6px));
  box-shadow: 0 12px 32px rgb(0 0 0 / 0.1);
}
.taal__optie {
  display: flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 8px 10px; border-radius: var(--r, var(--r-s, 6px));
  font-size: 0.9375rem; font-weight: 500; text-decoration: none;
}
.taal__optie.is-actief { color: var(--blauw); }
.taal__optie .taal__code { margin-inline-start: auto; font-size: 0.75rem; opacity: 0.65; }

@media (hover: hover) and (pointer: fine) {
  .taal__knop:hover { background: rgb(0 0 0 / 0.05); }
  .taal__optie:hover { background: var(--licht); }
}

/* The app's sign-in screen uses buttons where the site bar has links. */
button.taal__optie { width: 100%; border: 0; background: none; color: inherit; font-family: inherit; text-align: start; cursor: pointer; }
