.site-header .brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.site-header .brand-logo {
  width: auto;
  height: 64px;
  object-fit: contain;
}

.language-switcher {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  padding: 4px;
  border: 1px solid rgba(103, 184, 255, .18);
  border-radius: 999px;
  background: rgba(3, 12, 24, .72);
  box-shadow: inset 0 1px rgba(255,255,255,.04);
}

.site-header > .header-actions {
  margin-left: 0;
}

.language-switcher button {
  min-width: 48px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 4px 8px;
  border: 0;
  border-radius: 999px;
  color: #9fb3c8;
  background: transparent;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  transition: color .16s ease, background .16s ease, box-shadow .16s ease;
}

.language-switcher button:hover,
.language-switcher button:focus-visible {
  color: #fff;
  background: rgba(91, 200, 255, .10);
  outline: none;
}

.language-switcher button[aria-pressed="true"] {
  color: #fff;
  background: linear-gradient(135deg, rgba(23, 155, 255, .95), rgba(8, 120, 237, .95));
  box-shadow: 0 7px 18px rgba(0, 119, 205, .28), inset 0 1px rgba(255,255,255,.22);
}

.language-flag {
  display: inline-block;
  width: 26px;
  height: 18px;
  flex: 0 0 26px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .38);
  border-radius: 3px;
  color: transparent;
  font-size: 0;
  line-height: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
}

.language-switcher [data-locale="nl"] .language-flag {
  background: linear-gradient(
    to bottom,
    #ae1c28 0 33.333%,
    #fff 33.333% 66.666%,
    #21468b 66.666% 100%
  );
}

.language-switcher [data-locale="en"] .language-flag {
  background:
    linear-gradient(to right, transparent 46%, #c8102e 46% 54%, transparent 54%),
    linear-gradient(to bottom, transparent 42%, #c8102e 42% 58%, transparent 58%),
    linear-gradient(29deg, transparent 47%, #c8102e 47% 53%, transparent 53%),
    linear-gradient(-29deg, transparent 47%, #c8102e 47% 53%, transparent 53%),
    linear-gradient(to right, transparent 39%, #fff 39% 61%, transparent 61%),
    linear-gradient(to bottom, transparent 32%, #fff 32% 68%, transparent 68%),
    linear-gradient(29deg, transparent 41%, #fff 41% 59%, transparent 59%),
    linear-gradient(-29deg, transparent 41%, #fff 41% 59%, transparent 59%),
    #012169;
}

.language-code {
  line-height: 1;
}

@media (max-width: 1050px) {
  .site-header .brand-logo {
    height: 56px;
  }
  .language-switcher {
    order: 2;
    margin-left: auto;
  }
  .site-header > .header-actions {
    order: 3;
    margin-left: 0;
  }
  .site-header > .nav-toggle {
    order: 4;
  }
}

@media (max-width: 520px) {
  .site-header .brand-logo {
    height: 50px;
  }
  .language-switcher {
    gap: 2px;
    padding: 3px;
  }
  .language-switcher button {
    min-width: 35px;
    min-height: 34px;
    padding: 3px 6px;
  }
  .language-code {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}

@media (max-width: 390px) {
  .site-header > .header-actions .header-login {
    display: none;
  }
}
