.nx-header .nx-language {
  position: relative;
  flex: 0 0 auto;
}

.nx-header .nx-language summary {
  list-style: none;
  cursor: pointer;
}

.nx-header .nx-language summary::-webkit-details-marker {
  display: none;
}

.nx-language summary .nx-flag {
  position: relative;
}

.nx-flag {
  display: inline-block;
  width: 18px;
  height: 12px;
  flex: none;
  border-radius: 2px;
  background-size: cover;
  box-shadow: 0 0 0 1px rgb(0 0 0 / 16%);
}

.nx-flag-nl { background-image: url("./nl.svg"); }
.nx-flag-en { background-image: url("./en.svg"); }
html[lang="en"] .nx-language summary .nx-flag { background-image: url("./en.svg"); }

.nx-language-options {
  position: absolute;
  inset-block-start: 100%;
  inset-inline-end: 0;
  z-index: 1;
  min-width: max-content;
  padding: 4px;
  border: 1px solid var(--turbo-control-border, #cbd1dc);
  border-radius: 12px;
  background: var(--dm-surface, var(--fn-face, #f1f4f8));
  box-shadow: var(--fn-small, 0 4px 16px rgb(0 0 0 / 12%));
}

.nx-language-options a {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 36px;
  padding-inline: 10px;
  border-radius: 8px;
  color: inherit;
  font-size: 13px;
  text-decoration: none;
}

.nx-language-options a[aria-current="page"] { font-weight: 750; }
.nx-language-options a:hover { text-decoration: underline; }
.nx-language-options a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: -2px;
}

@media (max-width: 390px) {
  .nx-header .nx-header-settings { gap: 0; }
}

@media (forced-colors: active) {
  .nx-flag { forced-color-adjust: none; }
  .nx-language-options { background: Canvas; }
}

.site-head .nx-language { position: relative; }
.site-head .nx-language summary {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  list-style: none;
  border-radius: 50%;
  cursor: pointer;
}
.site-head .nx-language summary::-webkit-details-marker { display: none; }
.site-head .nx-language summary:focus-visible { outline: 2px solid currentColor; }
.site-head .nx-language-options { color: var(--ink, #26303c); }

.nx-header .nx-header-settings .nx-language { order: 3; }

@media (max-width: 410px) {
  .nx-header .nx-header-inner { column-gap: 6px; }
  .nx-header .nx-brand { width: 96px; }
  .nx-header .nx-menu-toggle {
    display: inline-grid;
    place-items: center;
    flex: 0 0 44px;
    width: 44px;
    padding-inline: 0;
  }
  .nx-header .nx-menu-toggle span { display: none; }
}

.site-head .nx-language-options {
  background: var(--paper);
  border-color: var(--line);
}

@media (max-width: 410px) {
  .site-head, .site-head nav { gap: 10px; }
}

@media (max-width: 335px) {
  .nx-header .nx-header-inner { column-gap: 4px; }
  .nx-header .nx-brand { width: 80px; }
}
