:root {
  /* Netherlands foundation palette */
  --color-navy-900: #12263f;
  --color-navy-700: #1d3d5f;
  --color-orange-600: #f26a21;
  --color-white: #ffffff;
  --color-background: #f7f8fa;
  --color-surface-subtle: #e7eef4;
  --color-text: #1c2835;
  --color-text-muted: #626d78;
  --color-border: #d8dfe5;
  --color-success: #23745a;

  /* Semantic tokens */
  --color-brand-primary: var(--color-navy-900);
  --color-brand-secondary: var(--color-navy-700);
  --color-accent: var(--color-orange-600);
  --color-accent-hover: #ea611c;
  --color-accent-active: #ea611c;
  --color-accent-disabled: #e3a17e;
  --color-page-background: var(--color-background);
  --color-surface: var(--color-white);
  --color-surface-muted: var(--color-surface-subtle);
  --color-text-primary: var(--color-text);
  --color-text-secondary: var(--color-text-muted);
  --color-text-on-dark: var(--color-white);
  --color-border-default: var(--color-border);
  --color-focus: var(--color-orange-600);
  --color-positive: var(--color-success);
  --color-text-on-dark-muted: rgba(255, 255, 255, 0.78);
  --color-border-on-dark: rgba(255, 255, 255, 0.25);
  --color-brand-shadow: rgba(18, 38, 63, 0.17);

  /* Compatibility aliases for the existing Sweden components. */
  --navy: var(--color-brand-primary);
  --blue: var(--color-brand-secondary);
  --yellow: var(--color-accent);
  --orange: var(--color-accent);
  --sky: var(--color-surface-muted);
  --paper: var(--color-page-background);
  --cream: var(--color-surface-muted);
  --white: var(--color-surface);
  --ink: var(--color-text-primary);
  --muted: var(--color-text-secondary);
  --line: var(--color-border-default);
  --green: var(--color-positive);
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: clip;
}

body {
  color: var(--color-text-primary);
  background-color: var(--color-page-background);
  font-family: Arial, "Noto Sans", sans-serif;
}

/* Keep shared chrome dimensions independent from browser box-model defaults. */
.site-announcement,
.site-announcement::before,
.site-header,
.site-header *,
.site-service-name,
.site-primary-navigation,
.site-primary-navigation *,
.site-navigation-backdrop {
  box-sizing: border-box;
}

.site-announcement,
.site-header,
.site-service-name,
.site-primary-navigation {
  font-family: Arial, "Noto Sans", sans-serif;
}

/* Large decorative shapes stay within the restrained brand surfaces. */
.hero::before,
.hero::after,
.visual::before {
  background-color: var(--color-brand-secondary);
}

:where(a, button, input, select, textarea, summary):focus-visible {
  outline-color: var(--color-focus);
}

/* Existing primary actions are the controlled conversion accent. */
.button.primary,
.button[href*="inschrijven"],
.button[href*="create-profile"],
.profile-link,
.header-profile,
.footer-cta,
button.primary,
.next,
.submit {
  color: var(--color-brand-primary);
  background-color: var(--color-accent);
  border-color: var(--color-accent);
}

.button.primary:hover,
.button[href*="inschrijven"]:hover,
.button[href*="create-profile"]:hover,
.profile-link:hover,
.header-profile:hover,
.footer-cta:hover,
button.primary:hover,
.next:hover,
.submit:hover {
  background-color: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
}

.button.primary:active,
.button[href*="inschrijven"]:active,
.button[href*="create-profile"]:active,
.profile-link:active,
.header-profile:active,
.footer-cta:active,
button.primary:active,
.next:active,
.submit:active {
  color: var(--color-brand-primary);
  background-color: var(--color-accent-active);
  border-color: var(--color-accent-active);
  box-shadow: inset 0 0 0 2px var(--color-brand-primary);
}

:where(button, .button, .profile-link, .header-profile):disabled,
:where(button, .button, .profile-link, .header-profile)[aria-disabled="true"] {
  color: var(--color-brand-primary);
  background-color: var(--color-accent-disabled);
  border-color: var(--color-accent-disabled);
  cursor: not-allowed;
  opacity: 1;
}

.button.blue,
.home-link {
  color: var(--color-text-on-dark);
  background-color: var(--color-brand-secondary);
  border-color: var(--color-brand-secondary);
}

.button.blue:hover,
.home-link:hover {
  background-color: var(--color-brand-primary);
  border-color: var(--color-brand-primary);
}

input,
select,
textarea,
.card,
.form-card,
.faq-item,
.toc {
  background-color: var(--color-surface);
}

/* Global header v2: namespaced so legacy page CSS cannot alter its layout. */
.site-announcement {
  min-height: 20px;
  padding: 3px max(20px, calc((100vw - 1180px) / 2));
  color: #30343c;
  background: #eceef1;
  border-bottom: 1px solid #d8dbe0;
  font-size: 11px;
  line-height: 14px;
}

.site-announcement::before {
  content: "i";
  width: 14px;
  height: 14px;
  margin-right: 8px;
  display: inline-grid;
  place-items: center;
  color: var(--color-text-on-dark);
  background: var(--color-brand-secondary);
  font-weight: 700;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 66px;
  background: var(--color-surface);
  border-bottom: 1px solid #e5e6e9;
}

.site-header-inner {
  width: min(1180px, calc(100% - 40px));
  height: 66px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

.site-header-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: inherit;
  text-decoration: none;
}

.site-header-brand-mark {
  width: 40px;
  height: 40px;
  position: relative;
  display: block;
  flex: none;
}

.site-header-brand-mark::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 7px solid var(--color-accent);
  border-right-color: transparent;
  border-radius: 50%;
  transform: rotate(-20deg);
}

.site-header-brand-mark::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  right: 0;
  top: 0;
  border-radius: 50%;
  background: var(--color-brand-primary);
}

.site-header-brand-name {
  color: var(--color-brand-primary);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.08;
}

.site-header-brand-name small {
  display: block;
  margin-top: 3px;
  font-size: 9px;
  letter-spacing: .12em;
}

.site-header-brand-image {
  width: 170px;
  height: auto;
  display: block;
}

.footer .brand-logo {
  width: min(220px, 100%);
  height: auto;
  display: block;
}

.site-header-actions {
  width: auto;
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex: 0 0 auto;
  gap: 10px;
}

.site-language-selector {
  position: relative;
  flex: 0 0 auto;
}

.site-language-toggle {
  min-height: 36px;
  margin: 0;
  padding: 8px 9px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-brand-primary);
  background: transparent;
  border: 0;
  border-radius: 4px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
  cursor: pointer;
}

.site-language-toggle::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform .18s ease;
}

.site-language-toggle[aria-expanded="true"]::after {
  margin-top: 3px;
  transform: rotate(225deg);
}

.site-language-toggle:hover,
.site-language-toggle[aria-expanded="true"] {
  color: var(--color-brand-secondary);
  background: var(--color-surface-muted);
}

.site-language-menu {
  width: 164px;
  position: absolute;
  top: calc(100% + 7px);
  right: 0;
  z-index: 60;
  padding: 4px 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border-default);
  border-radius: 4px;
  box-shadow: 0 8px 22px rgba(18, 38, 63, .12);
}

.site-language-menu[hidden] {
  display: none;
}

.site-language-option {
  min-height: 42px;
  padding: 12px 15px;
  display: flex;
  align-items: center;
  color: var(--color-text-primary);
  background: transparent;
  font-size: 13px;
  font-weight: 400;
  line-height: 18px;
  text-decoration: none;
  white-space: nowrap;
}

.site-language-option:hover,
.site-language-option:focus-visible {
  background: var(--color-surface-muted);
}

.site-language-option.is-active {
  color: var(--color-brand-primary);
  background: #f2f7fb;
  font-weight: 600;
}

.site-language-option.is-active::before {
  content: "✓";
  width: 18px;
  margin-right: 5px;
  color: var(--color-brand-secondary);
  font-weight: 700;
}

.site-header-cta {
  min-height: 38px;
  margin: 0;
  padding: 9px 15px;
  display: inline-flex;
  align-items: center;
  color: var(--color-brand-primary);
  background: var(--color-accent);
  border: 1px solid var(--color-accent);
  border-radius: 3px;
  font-size: 12px;
  font-weight: 700;
  line-height: 18px;
  text-decoration: none;
}

.site-service-name {
  min-height: 36px;
  padding: 7px max(20px, calc((100vw - 1180px) / 2));
  color: var(--color-text-primary);
  background: var(--color-surface);
  border-top: 1px solid #e5e7ea;
  font-size: 18px;
  line-height: 21px;
}

.site-primary-navigation {
  position: sticky;
  top: 66px;
  z-index: 39;
  min-height: 38px;
  color: var(--color-text-on-dark);
  background: var(--color-brand-secondary);
}

.site-primary-navigation-inner {
  width: min(1180px, 100%);
  margin-inline: auto;
  display: flex;
}

.site-primary-navigation a {
  min-height: 38px;
  margin: 0;
  padding: 0 16px;
  display: flex;
  align-items: center;
  color: inherit;
  background: transparent;
  border-right: 1px solid var(--color-border-on-dark);
  font-size: 13px;
  font-weight: 400;
  line-height: 18px;
  text-decoration: none;
}

.site-primary-navigation a[aria-current="page"] {
  color: var(--color-brand-primary);
  background: var(--color-surface);
}

.site-header-menu-button {
  width: 42px;
  height: 42px;
  margin: 0;
  padding: 0;
  display: none;
  place-content: center;
  gap: 3px;
  flex: none;
  color: var(--color-brand-primary);
  background: var(--color-surface);
  border: 1px solid var(--color-border-default);
  border-radius: 50%;
  font-size: 0;
}

.site-header-menu-button span {
  width: 18px;
  height: 1px;
  display: block;
  background: currentColor;
}

.site-navigation-close,
.site-navigation-mobile-action,
.site-navigation-cta {
  display: none;
}

.site-navigation-backdrop {
  display: none;
}

@media (max-width: 1050px) {
  body.site-navigation-open {
    overflow: hidden;
  }

  .site-header-menu-button {
    display: grid;
  }

  .site-header-cta {
    display: none;
  }

  .site-primary-navigation {
    min-height: 0;
    position: fixed;
    inset: 0 0 0 auto;
    width: min(380px, 88vw);
    height: 100dvh;
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    transform: translateX(100%);
    transition: transform .28s ease, opacity .2s ease, visibility .28s;
  }

  .site-primary-navigation.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
  }

  .site-primary-navigation-inner {
    width: 100%;
    padding: 16px 22px 28px;
    display: flex;
    flex-direction: column;
  }

  .site-navigation-mobile-action {
    padding: 72px 22px 0;
    display: block;
  }

  .site-navigation-close {
    width: 38px;
    height: 38px;
    position: absolute;
    top: 16px;
    right: 18px;
    z-index: 51;
    display: grid;
    place-items: center;
    padding: 0;
    color: var(--color-text-on-dark);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .32);
    border-radius: 50%;
    cursor: pointer;
  }

  .site-navigation-close::before,
  .site-navigation-close::after {
    content: "";
    width: 16px;
    height: 1px;
    position: absolute;
    background: currentColor;
  }

  .site-navigation-close::before {
    transform: rotate(45deg);
  }

  .site-navigation-close::after {
    transform: rotate(-45deg);
  }

  .site-primary-navigation a {
    min-height: 52px;
    padding: 0 12px;
    border-right: 0;
    border-bottom: 1px solid var(--color-border-on-dark);
    color: var(--color-text-on-dark);
    background: transparent;
    font-size: 15px;
    font-weight: 600;
  }

  .site-primary-navigation a[aria-current="page"] {
    color: var(--color-accent);
    background: transparent;
  }

  .site-primary-navigation .site-navigation-cta {
    min-height: 42px;
    margin: 0 0 16px;
    padding: 10px 14px;
    display: flex;
    justify-content: center;
    color: var(--color-brand-primary);
    background: var(--color-accent);
    border: 1px solid var(--color-accent);
    border-radius: 3px;
    font-size: 13px;
    font-weight: 700;
    line-height: 20px;
    text-decoration: none;
  }

  .site-navigation-backdrop {
    position: fixed;
    inset: 0;
    z-index: 49;
    display: block;
    padding: 0;
    border: 0;
    background: rgba(18, 38, 63, .58);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s;
  }

  .site-navigation-backdrop.is-open {
    opacity: 1;
    visibility: visible;
  }
}

@media (max-width: 600px) {
  .site-header,
  .site-header-inner {
    height: 68px;
  }

  .site-header-inner {
    width: calc(100% - 28px);
    gap: 8px;
  }

  .site-header-brand-mark {
    width: 36px;
    height: 36px;
  }

  .site-header-brand-name {
    font-size: 15px;
  }

  .site-header-brand-name small {
    display: none;
  }

  .site-header-brand-image {
    width: 125px;
  }

  .site-header-actions {
    gap: 4px;
  }

  .site-language-toggle {
    min-height: 34px;
    padding: 7px 5px;
    font-size: 12px;
  }

  .site-service-name {
    min-height: 36px;
    padding: 7px 16px;
    font-size: 18px;
  }

  .site-primary-navigation {
    width: min(340px, 90vw);
  }

  .site-primary-navigation-inner {
    padding: 14px 18px 24px;
  }

  .site-navigation-mobile-action {
    padding: 66px 18px 0;
  }

  .site-header-cta {
    min-height: 36px;
    padding: 8px 7px;
    font-size: 11px;
  }

  .site-primary-navigation a {
    min-height: 48px;
    font-size: 14px;
  }

  .site-header-menu-button[aria-expanded="true"] {
    top: 13px;
    right: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-primary-navigation,
  .site-navigation-backdrop {
    transition: none;
  }
}

/* Dutch-only MVP and one shared footer across all NL pages. */
html[lang="nl"] .site-language-selector {
  display: none;
}

.site-footer {
  padding: 0;
  color: var(--color-text-on-dark);
  background: var(--color-brand-primary);
  font-family: Arial, "Noto Sans", sans-serif;
}

.site-footer .footer-main {
  padding: 54px 20px 38px;
}

.site-footer .footer-inner {
  width: min(1180px, 100%);
  margin: auto;
  display: grid;
  grid-template-columns: 1.45fr .8fr 1.1fr;
  gap: 48px;
}

.site-footer .footer-brand {
  display: inline-flex;
  margin: 0 0 16px;
}

.site-footer .brand-logo {
  width: min(220px, 100%);
  height: auto;
  display: block;
}

.site-footer h2 {
  margin: 4px 0 15px;
  color: var(--color-accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.site-footer p {
  max-width: 440px;
  margin: 0 0 10px;
  color: var(--color-text-on-dark-muted);
  font-size: 14px;
  line-height: 1.55;
}

.site-footer p strong {
  color: var(--color-text-on-dark);
  font-size: 15px;
}

.site-footer .footer-links {
  display: grid;
  gap: 9px;
}

.site-footer .footer-links a,
.site-footer .footer-bottom a {
  width: fit-content;
  color: var(--color-text-on-dark-muted);
  font-size: 14px;
  text-decoration: none;
}

.site-footer .footer-links a:hover,
.site-footer .footer-bottom a:hover {
  color: var(--color-text-on-dark);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-footer-trust {
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  gap: 7px;
  color: var(--color-text-on-dark);
  font-size: 14px;
  list-style: none;
}

.site-footer-trust li::before {
  content: "✓";
  margin-right: 8px;
  color: var(--color-accent);
  font-weight: 700;
}

.site-footer .footer-bottom {
  padding: 18px 20px;
  border-top: 1px solid var(--color-border-on-dark);
}

.site-footer .footer-bottom-inner {
  width: min(1180px, 100%);
  margin: auto;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--color-text-on-dark-muted);
  font-size: 12px;
}

.site-footer .footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.site-footer .footer-bottom-links span[aria-disabled="true"] {
  color: var(--color-text-on-dark-muted);
  cursor: default;
}

@media (max-width: 800px) {
  .site-footer .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 34px;
  }

  .site-footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .site-footer .footer-main {
    padding: 44px 20px 30px;
  }

  .site-footer .footer-inner {
    grid-template-columns: 1fr;
  }

  .site-footer-brand {
    grid-column: auto;
  }

  .site-footer .footer-bottom-inner {
    flex-direction: column;
  }
}
