/* Montelbaan B.V. — locked brand tokens (WEBSITE-INSTRUCTIE / handboek D2)
   Visual alignment: approved mockups mockup-01-home / 02-diensten / 03-werkwijze */
:root {
  --color-teal: #00a99d;
  --color-gray: #bcbec0;
  --color-ink: #333333;
  --color-white: #ffffff;
  --color-charcoal: #2a2a2a;

  /* Aliassen */
  --teal: var(--color-teal);
  --gray: var(--color-gray);
  --white: var(--color-white);
  --charcoal: var(--color-charcoal);
  --text: var(--color-ink);

  /* Typografie D2 */
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: Inter, system-ui, sans-serif;
  --tracking-display: -0.035em;
  --tracking-body: -0.005em;
  --weight-display: 600;

  --max: 1120px;
  --pad: 48px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  letter-spacing: var(--tracking-body);
  color: var(--color-ink);
  background: var(--color-white);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  letter-spacing: var(--tracking-display);
  color: var(--color-ink);
  line-height: 1.15;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ——— Nav ——— */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
  gap: 32px;
}

.nav-logo-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  cursor: pointer;
  line-height: 0;
}
.nav-logo-link:focus-visible {
  outline: 3px solid var(--color-teal);
  outline-offset: 4px;
  border-radius: 4px;
}
.nav-logo {
  height: 56px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: var(--tracking-body);
}

.nav-links a:hover { color: var(--color-teal); }

/* CyMon dropdown */
.nav-item-dropdown {
  position: relative;
}
.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: var(--tracking-body);
  color: inherit;
  cursor: pointer;
}
.nav-dropdown-toggle:hover,
.nav-dropdown-toggle[aria-expanded="true"] {
  color: var(--color-teal);
}
.nav-dropdown-caret {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.7;
}
.nav-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  padding: 10px;
  background: var(--color-white);
  border: 1px solid var(--color-gray);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(42, 42, 42, 0.12);
  display: none;
  flex-direction: column;
  gap: 8px;
  z-index: 40;
}
.nav-item-dropdown.is-open .nav-dropdown {
  display: flex;
}
.nav-dropdown .btn {
  width: 100%;
  justify-content: flex-start;
  text-align: left;
  padding: 10px 14px;
  font-size: 14px;
}

/* CyMon dropdown entries with optional sense subtitle */
.nav-dd-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  padding: 10px 14px;
  border-radius: 6px;
  border: 1.5px solid var(--color-gray);
  background: transparent;
  text-decoration: none;
  color: var(--color-ink);
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.nav-dd-item:hover {
  border-color: var(--color-teal);
  color: var(--color-teal);
}
.nav-dd-item.is-current,
.nav-dd-item[aria-current="page"] {
  background: var(--color-teal);
  border-color: var(--color-teal);
  color: var(--color-white);
}
.nav-dd-item.is-current:hover,
.nav-dd-item[aria-current="page"]:hover {
  background: #00958b;
  color: var(--color-white);
}
.nav-dd-label {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
}
.nav-dd-sense {
  font-size: 12px;
  font-weight: 400;
  opacity: 0.75;
  letter-spacing: var(--tracking-body);
  text-transform: lowercase;
}
.nav-dd-item.is-current .nav-dd-sense,
.nav-dd-item[aria-current="page"] .nav-dd-sense {
  opacity: 0.9;
}

.nav-toggle-label { margin-right: 6px; }
.nav-toggle-icon {
  font-size: 16px;
  line-height: 1;
  font-weight: 400;
}


/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: var(--tracking-body);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  text-decoration: none;
}

.btn-primary {
  background: var(--color-teal);
  color: var(--color-white);
}
.btn-primary:hover { background: #00958b; color: var(--color-white); }

.btn-outline {
  background: transparent;
  color: var(--color-ink);
  border-color: var(--color-gray);
}
.btn-outline:hover {
  border-color: var(--color-teal);
  color: var(--color-teal);
}

/* ——— Hero ——— */
.hero {
  padding: 96px 0 120px;
}

.hero-accent {
  width: 64px;
  height: 3px;
  background: var(--color-teal);
  margin-bottom: 32px;
  border-radius: 2px;
}

.hero h1 {
  font-size: 52px;
  line-height: 1.12;
  max-width: 18ch;
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 18px;
  font-weight: 400;
  letter-spacing: var(--tracking-body);
  color: var(--color-ink);
  max-width: 42ch;
  margin-bottom: 40px;
  opacity: 0.92;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ——— Sections ——— */
.section {
  padding: 64px 0 96px;
}

.section-accent {
  width: 48px;
  height: 3px;
  background: var(--color-teal);
  margin-bottom: 20px;
  border-radius: 2px;
}

.section h2 {
  font-size: 40px;
  line-height: 1.15;
  margin-bottom: 12px;
}

.section-lead {
  font-size: 17px;
  max-width: 52ch;
  margin-bottom: 48px;
  color: var(--color-ink);
}

.section-head {
  padding: 56px 0 40px;
}

.section-head .section-lead {
  margin-bottom: 0;
  max-width: 54ch;
}

.section-contact .section-lead {
  margin-bottom: 32px;
}

.contact-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ——— Service cards ——— */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--color-white);
  border: 1px solid #e8e8e9;
  border-top: 3px solid var(--color-teal);
  border-radius: 4px;
  padding: 28px 24px 32px;
  min-height: 180px;
}

.card h3 {
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  letter-spacing: var(--tracking-display);
  font-size: 20px;
  line-height: 1.25;
  margin-bottom: 12px;
  color: var(--color-ink);
}

.card p {
  font-size: 15px;
  font-weight: 400;
  letter-spacing: var(--tracking-body);
  color: var(--color-ink);
  opacity: 0.9;
}

/* ——— Werkwijze charcoal strip ——— */
.werkwijze-strip {
  background: var(--color-charcoal);
  padding: 64px 0 72px;
}

.columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.col {
  text-align: center;
  color: var(--color-white);
}

.col-figure {
  height: 200px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin-bottom: 28px;
}

.col-figure img {
  max-height: 190px;
  width: auto;
  max-width: 100%;
  display: block;
  background: transparent;
}

.col h3 {
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  letter-spacing: var(--tracking-display);
  font-size: 28px;
  color: var(--color-teal);
  margin-bottom: 14px;
}

.col p {
  font-size: 15px;
  font-weight: 400;
  letter-spacing: var(--tracking-body);
  color: var(--color-white);
  line-height: 1.5;
  max-width: 28ch;
  margin: 0 auto;
  opacity: 0.95;
}

/* ——— Light footer (mockup) ——— */
.footer-strip {
  border-top: 1px solid #ececed;
  padding: 40px 0 48px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: var(--tracking-display);
  font-size: 16px;
  color: var(--color-ink);
  margin-bottom: 8px;
}

.footer-meta {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
}

.footer-meta a { color: var(--color-teal); }
.footer-meta a:hover { text-decoration: underline; }

.footer-site-extra {
  margin-top: 12px;
}
.footer-site-number,
.footer-site-handle {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
}
.footer-site-handle {
  margin-top: 2px;
}

.footer-logo img {
  height: 48px;
  width: auto;
  opacity: 0.9;
}

/* ——— Responsive ——— */
@media (max-width: 900px) {
  :root { --pad: 32px; }

  .hero h1 { font-size: 40px; }
  .section h2 { font-size: 32px; }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .columns {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .col-figure { height: 160px; }
  .col-figure img { max-height: 150px; }
}

@media (max-width: 700px) {
  :root { --pad: 24px; }

  .nav {
    flex-wrap: wrap;
    padding: 20px 0;
    gap: 16px;
  }

  .nav-logo { height: 44px; }

  .nav-links {
    gap: 16px 20px;
    flex-wrap: wrap;
    font-size: 14px;
  }

  .hero {
    padding: 56px 0 72px;
  }

  .hero h1 {
    font-size: 32px;
    max-width: none;
  }

  .hero-sub { font-size: 16px; }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 48px 0 64px;
  }

  .section-head {
    padding: 40px 0 28px;
  }

  .werkwijze-strip {
    padding: 48px 0 56px;
  }
}

/* ——— Mobile Menu ——— */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 6px;
  border: 1.5px solid var(--color-gray);
  background: var(--color-white);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-ink);
  cursor: pointer;
}
.nav-toggle:hover,
.nav-toggle[aria-expanded="true"] {
  border-color: var(--color-teal);
  color: var(--color-teal);
}
.nav-collapse {
  display: flex;
  align-items: center;
}

/* ——— Role cards (Says / Achter) ——— */
.role-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.role-card {
  background: var(--color-white);
  border: 1px solid #e8e8e9;
  border-top: 3px solid var(--color-teal);
  border-radius: 4px;
  padding: 24px 22px 28px;
}
.role-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.role-card-head h3 {
  font-size: 24px;
  color: var(--color-teal);
  margin: 0;
}
.role-card .role-pop {
  height: 72px;
  width: auto;
  flex-shrink: 0;
}
.role-card > p {
  font-size: 15px;
  line-height: 1.55;
  margin-bottom: 12px;
}
.role-card > p:last-child { margin-bottom: 0; }

/* Badges HITL / MACHINE */
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.3;
}
.chip-human {
  background: rgba(0, 169, 157, 0.12);
  color: #007a72;
  border: 1px solid rgba(0, 169, 157, 0.35);
}
.chip-machine {
  background: var(--color-charcoal);
  color: var(--color-white);
  border: 1px solid var(--color-charcoal);
}
.chip-object {
  background: var(--color-white);
  color: var(--color-ink);
  border: 1px solid var(--color-gray);
}
.chip-role {
  background: var(--color-charcoal);
  color: var(--color-white);
  border: 1px solid var(--color-charcoal);
}

/* Soft HITL chip — Says v2 (Achter keeps .chip-human) */
.chip-soft {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.03em;
  line-height: 1.4;
  text-transform: none;
  background: rgba(0, 169, 157, 0.08);
  color: #007a72;
  border: 1px solid rgba(0, 169, 157, 0.18);
  margin-bottom: 10px;
}

/* Process strip (30s overview) */
.process-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 32px 0;
}
.process-step {
  background: var(--color-white);
  border: 1px solid #e8e8e9;
  border-radius: 6px;
  padding: 20px 16px;
  position: relative;
}
.process-step .step-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  color: var(--color-teal);
  margin-bottom: 8px;
  letter-spacing: var(--tracking-display);
}
.process-step strong {
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
  margin-bottom: 8px;
  letter-spacing: var(--tracking-display);
}
.process-step p {
  font-size: 14px;
  opacity: 0.92;
  margin: 0;
}

/* Local TOC — document outline (NOT a second menubar / NOT chips/tabs/pills) */
.page-toc {
  background: #f7f7f8;
  border: 1px solid #e8e8e9;
  border-radius: 8px;
  padding: 0;
  margin: 28px 0 40px;
  max-width: 100%;
}
.page-toc-summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--color-charcoal);
  user-select: none;
}
.page-toc-summary::-webkit-details-marker { display: none; }
.page-toc-body {
  padding: 0 18px 20px;
  border-top: 1px solid #e8e8e9;
}
.toc-groups {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding-top: 16px;
}
.toc-group h3 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-teal);
  margin-bottom: 10px;
  font-family: var(--font-body);
  font-weight: 600;
}
.toc-group ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.toc-group li {
  margin-bottom: 6px;
  padding-left: 0;
}
.toc-group a {
  font-size: 14px;
  color: var(--color-ink);
  line-height: 1.4;
}
.toc-group a:hover { color: var(--color-teal); }

/* Callouts */
.callout {
  border-left: 3px solid var(--color-teal);
  background: rgba(0, 169, 157, 0.06);
  padding: 14px 18px;
  border-radius: 0 6px 6px 0;
  margin: 20px 0;
  font-size: 15px;
}
.callout-warn {
  border-left-color: var(--color-charcoal);
  background: rgba(42, 42, 42, 0.05);
}
.callout strong { color: var(--color-ink); }
.callout-stack {
  display: grid;
  gap: 12px;
  margin: 24px 0;
}

/* Details / progressive disclosure */
.cymon-details {
  border: 1px solid #e8e8e9;
  border-radius: 6px;
  margin: 12px 0;
  background: var(--color-white);
}
.cymon-details > summary {
  cursor: pointer;
  padding: 16px 20px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: var(--tracking-display);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.cymon-details > summary::-webkit-details-marker { display: none; }
.cymon-details > summary::after {
  content: "+";
  color: var(--color-teal);
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
}
.cymon-details[open] > summary::after { content: "−"; }
.cymon-details > summary:hover { color: var(--color-teal); }
.cymon-details .details-body {
  padding: 0 20px 20px;
  font-size: 15px;
}
.cymon-details .details-body p { margin-bottom: 12px; }
.cymon-details .details-body ul {
  margin: 0 0 12px 1.2em;
}
.cymon-details .details-body li { margin-bottom: 6px; }

/* CyMon page helpers */
.cymon-kicker {
  margin-bottom: 8px;
  color: #007a72;
  font-weight: 600;
  font-size: 15px;
}
.cymon-page-title {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 16px;
}
.cymon-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 8px;
}

/* Quiet subnav — action links as on-brand outline buttons (was underlined text) */
.quiet-nav {
  margin: 22px 0 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  font-size: 0.9375rem;
  color: var(--color-muted, #656565);
  line-height: 1.7;
}
.quiet-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: var(--tracking-body);
  border: 1.5px solid var(--color-gray);
  background: transparent;
  color: var(--color-ink);
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.quiet-nav a:hover {
  border-color: var(--color-teal);
  color: var(--color-teal);
}
.quiet-nav .sep {
  display: none; /* separator replaced by button gap */
}
/* Soft teal CTA (default). Dark variant: .cta-banner.cta-dark */
.cta-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(0, 169, 157, 0.08);
  border: 1px solid rgba(0, 169, 157, 0.25);
  color: var(--color-ink);
  border-radius: 8px;
  padding: 28px 32px;
  margin: 48px 0;
}
.cta-banner p {
  margin: 0;
  font-size: 17px;
  max-width: 40ch;
  color: var(--color-ink);
}
.cta-banner strong {
  color: var(--color-charcoal);
}
.cta-banner .btn-primary { flex-shrink: 0; }
.cta-banner.cta-dark {
  background: var(--color-charcoal);
  border-color: transparent;
  color: var(--color-white);
}
.cta-banner.cta-dark p,
.cta-banner.cta-dark strong {
  color: var(--color-white);
}

.flow-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 20px 0;
}
.flow-pill {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  background: #f0f1f2;
  border: 1px solid #e0e1e2;
  font-size: 13px;
  font-weight: 500;
}
.flow-pill.accent {
  background: rgba(0, 169, 157, 0.12);
  border-color: rgba(0, 169, 157, 0.4);
  color: #007a72;
}
.flow-arrow {
  color: var(--color-gray);
  font-size: 14px;
}

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 24px 0;
}
.compare-card {
  border: 1px solid #e8e8e9;
  border-radius: 6px;
  overflow: hidden;
}
.compare-card .band {
  padding: 12px 18px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: var(--tracking-display);
  color: var(--color-white);
}
.compare-card .band-teal { background: var(--color-teal); }
.compare-card .band-charcoal { background: var(--color-charcoal); }
.compare-card .body {
  padding: 18px;
  font-size: 14px;
}
.compare-card .body ul {
  margin: 0 0 0 1.1em;
}
.compare-card .body li { margin-bottom: 6px; }

/* Readable flashcards on Says — v2: stacked, fluid, no per-card downloads */
.says-deck-wrap {
  overflow-x: clip;
  background: #e9eaeb;
  padding: 48px 24px 72px;
  margin-top: 32px;
}
.says-deck-wrap .page-title {
  font-family: var(--font-display);
  font-size: 28px;
  text-align: center;
  margin-bottom: 8px;
  letter-spacing: var(--tracking-display);
}
.says-deck-wrap .lede {
  text-align: center;
  margin-bottom: 32px;
  font-size: 16px;
  opacity: 0.9;
}
.says-deck {
  display: flex;
  flex-direction: column;
  gap: 56px;
  align-items: stretch;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  min-width: 0;
  overflow-x: clip;
}
.says-deck .flashcard {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: auto;
  min-height: 0;
  box-shadow: 0 10px 32px rgba(42, 42, 42, 0.1);
}
.says-deck .flashcard-body {
  overflow: visible;
}
.says-deck .logo-combi {
  height: 48px;
}

/* Single download strip after deck — text links only */
.download-strip {
  max-width: 1200px;
  margin: 48px auto 0;
  padding: 22px 26px;
  background: var(--color-white);
  border: 1px solid #e4e6e7;
  border-radius: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 28px;
}
.download-strip .dl-label {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: var(--tracking-display);
  font-size: 1rem;
  color: var(--color-charcoal);
}
.download-strip .dl-links {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  font-size: 0.9375rem;
  color: var(--color-muted, #656565);
  line-height: 1.7;
}
.download-strip .dl-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: var(--tracking-body);
  border: 1.5px solid var(--color-gray);
  background: transparent;
  color: var(--color-ink);
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.download-strip .dl-links a:hover {
  border-color: var(--color-teal);
  color: var(--color-teal);
}
.download-strip .dl-links .sep {
  display: none;
}

/* ZoneOut embed */
.cymon-embed {
  border: 1px solid #e8e8e9;
  border-radius: 8px;
  overflow: hidden;
  background: #0d3d3a;
}
.cymon-iframe {
  display: block;
  width: 100%;
  height: min(720px, 85vh);
  border: 0;
}

/* Achter layout with side TOC on wide screens */
.achter-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 1100px) {
  .achter-layout.has-sticky-toc {
    grid-template-columns: 240px 1fr;
    align-items: start;
  }
  .achter-toc-sticky {
    position: sticky;
    top: 24px;
  }
  .achter-toc-sticky .page-toc {
    margin-top: 0;
  }
}

/* ——— Responsive: mobile menu ——— */
@media (max-width: 800px) {
  .nav {
    flex-wrap: wrap;
    position: relative;
  }
  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }
  .nav-collapse {
    display: none;
    width: 100%;
    flex-basis: 100%;
    order: 3;
    padding: 8px 0 16px;
  }
  .nav.is-open .nav-collapse {
    display: block;
  }
  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    width: 100%;
  }
  .nav-links > li {
    width: 100%;
  }
  .nav-links > li > a,
  .nav-links > li > .nav-dropdown-toggle {
    display: flex;
    width: 100%;
    padding: 12px 4px;
    font-size: 16px;
  }
  .nav-links > li > .btn {
    justify-content: center;
    margin-top: 8px;
  }
  .nav-item-dropdown {
    width: 100%;
  }
  .nav-dropdown {
    position: static;
    transform: none;
    left: auto;
    top: auto;
    min-width: 0;
    width: 100%;
    box-shadow: none;
    border: none;
    border-left: 3px solid var(--color-teal);
    border-radius: 0;
    padding: 4px 0 4px 12px;
    margin: 0 0 8px;
    background: #f7f7f8;
  }
  .nav-item-dropdown.is-open .nav-dropdown,
  .nav-dropdown:not([hidden]) {
    display: flex;
  }
  .nav-dropdown[hidden] {
    display: none !important;
  }

  .role-grid {
    grid-template-columns: 1fr;
  }
  .process-strip {
    grid-template-columns: 1fr;
  }
  .toc-groups {
    grid-template-columns: 1fr 1fr;
  }
  .compare-grid {
    grid-template-columns: 1fr;
  }
  .says-deck-wrap {
    padding: 32px 12px 56px;
    overflow-x: clip;
    max-width: 100%;
  }
  .wrap {
    max-width: 100%;
    overflow-x: clip;
  }
  .nav {
    max-width: 100%;
    min-width: 0;
  }
}

@media (max-width: 520px) {
  .toc-groups {
    grid-template-columns: 1fr;
  }
}


/* ——— CyMon Achter: wireframe process + depth (borrowed from Huisstijl mockup) ——— */
.cymon-block {
  margin-top: 48px;
  padding-top: 8px;
  scroll-margin-top: 24px;
}
.cymon-block > h2 {
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  letter-spacing: var(--tracking-display);
  font-size: 28px;
  color: var(--color-charcoal);
  margin-bottom: 12px;
}
.cymon-block > h2 + .section-lead { margin-top: 0; }
.cymon-block h4 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--color-charcoal);
  margin: 14px 0 6px;
}
.hero-tagline {
  margin: 0 0 28px;
  font-size: 15px;
  color: var(--color-ink);
}

/* Vertical alternating process timeline (9 steps) */
.timeline-process {
  list-style: none;
  padding: 16px 0 8px;
  margin: 24px 0;
  position: relative;
  max-width: 820px;
}
.timeline-process::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-teal), var(--color-gray));
  transform: translateX(-50%);
}
.timeline-process > li {
  position: relative;
  width: calc(50% - 28px);
  margin-bottom: 28px;
  background: var(--color-white);
  border: 1px solid #e8e8e9;
  border-radius: 6px;
  padding: 16px 18px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.timeline-process > li:nth-child(odd) { margin-right: auto; }
.timeline-process > li:nth-child(even) { margin-left: auto; }
.timeline-process > li::before {
  content: "";
  position: absolute;
  top: 22px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-teal);
  border: 3px solid var(--color-white);
  box-shadow: 0 0 0 2px var(--color-teal);
  z-index: 1;
}
.timeline-process > li:nth-child(odd)::before { right: -35px; }
.timeline-process > li:nth-child(even)::before { left: -35px; }
.timeline-process > li.step-machine::before {
  background: var(--color-charcoal);
  box-shadow: 0 0 0 2px var(--color-charcoal);
}
.step-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}
.step-title {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: var(--tracking-display);
  font-size: 1.05rem;
  color: var(--color-charcoal);
  margin-bottom: 4px;
}
.timeline-process p { margin: 0; font-size: 0.9rem; color: var(--color-ink); }

.link-roles {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 8px 0 16px;
  padding: 12px 22px;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: var(--tracking-body);
  border: 1.5px solid var(--color-gray);
  background: transparent;
  color: var(--color-ink);
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.link-roles:hover {
  border-color: var(--color-teal);
  color: var(--color-teal);
  text-decoration: none;
}

/* Accordion / details */
details.mb-toggle {
  border: 1px solid #e8e8e9;
  border-radius: 6px;
  background: #f7f8f8;
  margin: 16px 0;
  overflow: hidden;
}
details.mb-toggle > summary {
  cursor: pointer;
  font-weight: 600;
  padding: 14px 18px;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--color-charcoal);
}
details.mb-toggle > summary::-webkit-details-marker { display: none; }
details.mb-toggle > summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--color-teal);
  font-weight: 600;
  line-height: 1;
}
details.mb-toggle[open] > summary::after { content: "−"; }
details.mb-toggle .toggle-body {
  padding: 0 18px 16px;
  border-top: 1px solid #e8e8e9;
  padding-top: 14px;
}
details.mb-toggle .toggle-body ul {
  margin: 0 0 8px 1.1em;
  padding: 0;
}
details.mb-toggle .toggle-body li { margin-bottom: 4px; }
details.mb-toggle.nested {
  background: var(--color-white);
  margin: 8px 0 0;
  border: none;
  border-radius: 0;
  border-top: 1px dashed #e0e0e0;
}
details.mb-toggle.nested > summary {
  padding: 12px 0;
  font-size: 0.9rem;
}
details.mb-toggle.nested .toggle-body {
  border-top: none;
  padding: 0 0 12px;
}

/* Says v2: details as underlined text expanders (Achter keeps mb-toggle bars) */
details.role-more {
  margin-top: 4px;
  border: none;
  background: transparent;
  padding: 0;
  overflow: visible;
}
details.role-more > summary {
  list-style: none;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  color: #007a72;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 4px 0;
  user-select: none;
  display: inline;
}
details.role-more > summary::-webkit-details-marker { display: none; }
details.role-more > summary::after {
  content: " ▾";
  text-decoration: none;
  font-size: 0.75em;
  opacity: 0.7;
}
details.role-more[open] > summary::after { content: " ▴"; }
details.role-more .role-more-body {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #e4e6e7;
  font-size: 0.875rem;
  color: var(--color-ink);
}
details.role-more .role-more-body h4 {
  margin: 12px 0 6px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: var(--tracking-body, -0.005em);
  color: var(--color-charcoal);
  text-transform: none;
}
details.role-more .role-more-body h4:first-child { margin-top: 0; }
details.role-more .role-more-body ul {
  margin: 0 0 0.5em;
  padding-left: 1.15em;
}
details.role-more .role-more-body li { margin: 0.2em 0; }

/* Soft callout on Says */
.soft-callout {
  background: #eef8f7;
  border: 1px solid #d7ebe8;
  border-radius: 10px;
  max-width: 68ch;
}

.callout-notice {
  background: rgba(0, 169, 157, 0.08);
  border-left: 3px solid var(--color-teal);
}
.callout-wel-niet {
  display: grid;
  gap: 8px;
  background: var(--color-white);
  border: 1px solid #e8e8e9;
  border-radius: 8px;
  padding: 12px 14px;
  margin-top: 10px;
  font-size: 0.9rem;
}
.callout-wel-niet .wel { color: var(--color-charcoal); }
.callout-wel-niet .niet { color: #656565; }
.callout-wel-niet strong {
  display: inline-block;
  min-width: 2.5rem;
  color: var(--color-teal);
}

/* Cycle / wisselwerking */
.cycle-panel {
  margin: 32px 0 8px;
  padding: 22px 24px;
  background: #f7f8f8;
  border: 1px solid #e8e8e9;
  border-radius: 8px;
}
.cycle-panel h3 {
  font-size: 1.1rem;
  margin: 0 0 14px;
  color: var(--color-charcoal);
}
.cycle-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 6px;
}
.cycle-node {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  background: var(--color-white);
  border: 1px solid #e0e0e0;
}
.cycle-node.human {
  background: rgba(0, 169, 157, 0.1);
  border-color: rgba(0, 169, 157, 0.35);
  color: #007a72;
  font-weight: 500;
}
.cycle-node.machine {
  background: rgba(42, 42, 42, 0.06);
  border-color: var(--color-gray);
}
.cycle-arrow { color: #888; font-size: 1.1rem; }
.cycle-loop { margin: 14px 0 0; font-size: 0.95rem; }

/* Soft panels & flow chains */
.soft-panel {
  background: #f7f8f8;
  border: 1px solid #e8e8e9;
  border-radius: 8px;
  padding: 18px 20px;
  margin: 18px 0;
}
.flow-chain {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 4px;
}
.flow-connector {
  color: #888;
  font-size: 0.95rem;
  padding: 0 2px;
}

/* Relation diagrams */
.rel-diagram {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 16px;
  margin: 20px 0;
  padding: 18px;
  border: 1px solid #e8e8e9;
  border-radius: 8px;
  background: var(--color-white);
}
.rel-node {
  border: 1px solid var(--color-gray);
  border-radius: 6px;
  padding: 12px 16px;
  font-weight: 600;
  background: #f7f8f8;
  white-space: nowrap;
}
.rel-node.charcoal {
  background: var(--color-charcoal);
  color: var(--color-white);
  border-color: var(--color-charcoal);
}
.rel-arrow { color: #888; font-size: 1.2rem; }
.rel-list {
  margin: 0;
  padding-left: 22px;
  border-left: 2px solid var(--color-teal);
}
.rel-list li { margin-bottom: 4px; }

.stack-flow {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  font-weight: 500;
}
.stack-flow .arrow-down { color: var(--color-teal); font-weight: 600; }

/* Views hub */
.views-hub { margin: 20px 0; text-align: center; }
.views-hub .hub-label {
  display: inline-block;
  font-weight: 600;
  padding: 10px 18px;
  background: var(--color-charcoal);
  color: var(--color-white);
  border-radius: 6px;
}
.views-hub .hub-stem {
  display: block;
  margin: 8px 0;
  color: var(--color-teal);
  font-size: 1.25rem;
}
.views-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 8px;
  text-align: left;
}
.view-card {
  border: 1px solid #e8e8e9;
  border-radius: 6px;
  padding: 18px;
  background: var(--color-white);
}
.view-card h3 {
  font-size: 1rem;
  color: var(--color-teal);
  margin: 0 0 8px;
}
.view-card p { margin: 0; font-size: 0.9rem; }

/* Historie timeline */
.hist-timeline {
  list-style: none;
  margin: 20px 0;
  padding: 0 0 0 20px;
  border-left: 2px solid var(--color-teal);
  position: relative;
}
.hist-timeline li {
  position: relative;
  padding: 8px 0 8px 16px;
  font-weight: 500;
}
.hist-timeline li::before {
  content: "";
  position: absolute;
  left: -26px;
  top: 14px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-teal);
  border: 2px solid var(--color-white);
  box-shadow: 0 0 0 1px var(--color-teal);
}

/* Layers compare */
.layers-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 20px 0;
}
.layer-col {
  border: 1px solid #e8e8e9;
  border-radius: 6px;
  overflow: hidden;
  background: var(--color-white);
}
.layer-col .band {
  padding: 12px 16px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-white);
}
.layer-col.user .band { background: var(--color-teal); }
.layer-col.system .band { background: var(--color-charcoal); }
.layer-col ul {
  margin: 0;
  padding: 14px 18px 18px 32px;
}
.layer-col li { margin-bottom: 4px; }
.layer-exchange {
  margin: 16px 0 8px;
  padding: 14px 16px;
  background: #f7f8f8;
  border-radius: 6px;
  border: 1px solid #e8e8e9;
  font-size: 0.95rem;
}
.layer-exchange p { margin: 0.4em 0; }
.layer-exchange .dir { color: var(--color-teal); font-weight: 600; }

@media (max-width: 800px) {
  .timeline-process::before { left: 11px; transform: none; }
  .timeline-process > li {
    width: calc(100% - 36px);
    margin-left: 36px !important;
    margin-right: 0 !important;
  }
  .timeline-process > li::before,
  .timeline-process > li:nth-child(odd)::before,
  .timeline-process > li:nth-child(even)::before {
    left: -31px;
    right: auto;
  }
  .views-grid,
  .layers-compare {
    grid-template-columns: 1fr;
  }
  .rel-diagram {
    flex-direction: column;
    align-items: stretch;
  }
  .rel-node { white-space: normal; }
}

/* Utility bands used in compare cards on Achter */
.band {
  padding: 10px 14px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-white);
}
.band-teal { background: var(--color-teal); }
.band-charcoal { background: var(--color-charcoal); }

.callout-notice {
  background: rgba(0, 169, 157, 0.1);
  border-left: 3px solid var(--color-teal);
}
.callout-warn {
  background: #f7f3e8;
  border-left: 3px solid #c4a35a;
}

.flow-connector {
  color: #888;
  padding: 0 2px;
}

/* Achter spacing tweak for inline CTAs */
.cta-banner {
  margin: 28px 0;
  padding: 20px 22px;
}
.cta-banner p { font-size: 1.05rem; max-width: none; }

.bento-roles { margin-top: 8px; }


/* ——— Visual language (Mirjam UX-slag Achter)
   .vl-human / .chip-human  = turquoise/light border → menselijke interventie
   .vl-machine / .chip-machine = dark → machinehandeling
   .vl-object / .chip-object = white/neutral → informatie/object/document
   .vl-process-arrow        = volle pijl → volgende processtap (tijd/volgorde)
   .vl-relation             = dunne lijn → relatie (geen volgorde)
   .vl-history              = verticale lijn → historie/tijd
   Proces ≠ datamodel: gebruik nooit procespijlen voor relationele samenhang.
——— */
.vl-human {
  border-color: rgba(0, 169, 157, 0.4);
}
.role-card.vl-human {
  border-top-color: var(--color-teal);
}
.timeline-process > li.vl-human {
  border-left: 3px solid var(--color-teal);
}
.timeline-process > li.vl-machine {
  border-left: 3px solid var(--color-charcoal);
  background: #f3f3f3;
}
.startplaat-step.vl-human {
  border: 1.5px solid rgba(0, 169, 157, 0.45);
  background: rgba(0, 169, 157, 0.06);
}
.startplaat-step.vl-machine {
  border: 1.5px solid var(--color-charcoal);
  background: rgba(42, 42, 42, 0.06);
}
.startplaat-step.vl-object {
  border: 1.5px solid var(--color-gray);
  background: var(--color-white);
}
.flow-pill.vl-human,
.flow-pill.accent.vl-human {
  border-color: rgba(0, 169, 157, 0.5);
  background: rgba(0, 169, 157, 0.1);
  color: #007a72;
}
.flow-pill.vl-machine {
  border-color: var(--color-charcoal);
  background: rgba(42, 42, 42, 0.08);
  color: var(--color-charcoal);
}
.flow-pill.vl-object {
  border-color: var(--color-gray);
  background: var(--color-white);
}

/* Volle procespijl */
.vl-process-arrow,
.process-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-charcoal);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1;
  padding: 0 4px;
}
.process-arrow-down {
  display: block;
  text-align: center;
  width: 100%;
  padding: 2px 0;
}

/* Dunne relatielijn (horizontaal) */
.vl-relation {
  display: inline-block;
  width: 18px;
  height: 0;
  border-top: 1px solid var(--color-gray);
  vertical-align: middle;
  flex-shrink: 0;
  margin: 0 2px;
}
.vl-relation-vert {
  display: block;
  width: 0;
  height: 14px;
  border-left: 1px solid var(--color-gray);
  margin: 2px 0 2px 12px;
}
.vl-relation-sample {
  display: inline-block;
  width: 24px;
  height: 0;
  border-top: 1px solid var(--color-gray);
  vertical-align: middle;
  margin-right: 6px;
}
.vl-legend {
  margin: 12px 0 0;
  font-size: 12px;
  color: #666;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

/* Historie = verticale tijdlijn */
.vl-history,
.hist-timeline.vl-history {
  border-left: 2px solid var(--color-teal);
}

/* Flow pills base (if not already strong) */
.flow-pill {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
  background: var(--color-white);
  font-size: 0.85rem;
  font-weight: 500;
}
.flow-pill.accent {
  border-color: rgba(0, 169, 157, 0.45);
  background: rgba(0, 169, 157, 0.08);
}

/* ——— Startplaat (30 seconden) ——— */
.startplaat {
  margin: 8px 0 24px;
}
.startplaat-flow {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: flex-start;
  gap: 8px 4px;
  margin: 0 0 20px;
  padding: 0;
}
.startplaat-flow > .startplaat-step,
.startplaat-flow > .vl-process-arrow {
  display: flex;
  align-items: center;
}
.startplaat-step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 8px;
  min-width: 120px;
}
.startplaat-step strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: var(--tracking-display);
  color: var(--color-charcoal);
}
.startplaat-roles {
  margin: 0 0 16px;
  padding-top: 12px;
  border-top: 1px solid #e8e8e9;
}
.startplaat-roles-lead {
  margin: 0 0 10px;
  font-size: 0.95rem;
}
.startplaat-badges {
  margin-bottom: 0;
}
.startplaat-copy {
  margin: 0 0 16px;
  font-size: 1rem;
  line-height: 1.55;
  max-width: 62ch;
}
.startplaat-cta {
  margin: 0;
}

/* ——— Progressive disclosure depth labels ——— */
.depth-label {
  display: inline-block;
  margin: 32px 0 0;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-teal);
  background: rgba(0, 169, 157, 0.08);
  border-radius: 4px;
}
.depth-layer .depth-label,
.depth-region > .depth-label {
  margin-top: 8px;
}
.depth-region {
  scroll-margin-top: 24px;
}
.depth-jump {
  margin: 20px 0 8px;
}
.depth-jump a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: var(--tracking-body);
  border: 1.5px solid var(--color-gray);
  background: transparent;
  color: var(--color-ink);
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.depth-jump a:hover {
  border-color: var(--color-teal);
  color: var(--color-teal);
  text-decoration: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.status-note {
  margin-top: 10px;
  font-size: 0.85rem;
  color: #666;
  font-style: italic;
}

/* Views hub relation stem */
.views-hub .hub-stem.vl-relation-vert {
  margin: 8px auto;
  height: 18px;
  border-left-color: var(--color-teal);
}

/* Review mode: anchors only when ?review=1 or localStorage review=1 */
.review-anchor {
  display: none;
  font-size: 11px;
  font-family: ui-monospace, monospace;
  color: #888;
  margin-left: 6px;
}
body.is-review .review-anchor {
  display: inline;
}

/* Mobile startplaat: stack vertically with process arrows down */
@media (max-width: 700px) {
  .startplaat-flow {
    flex-direction: column;
    align-items: stretch;
  }
  .startplaat-flow > .vl-process-arrow {
    justify-content: center;
    transform: rotate(90deg);
    padding: 2px 0;
  }
  .startplaat-step {
    width: 100%;
  }
}

@media (max-width: 900px) {
  .toc-groups {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .toc-groups {
    grid-template-columns: 1fr;
  }
}

/* Mobile header: designed mobile nav (Logo …… Menu ☰) — reinforce touch targets */
@media (max-width: 800px) {
  .nav {
    flex-wrap: wrap;
    align-items: center;
    padding: 16px 0;
    gap: 12px;
  }
  .nav > a {
    flex: 0 0 auto;
  }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    min-height: 44px;
    min-width: 44px;
    padding: 10px 14px;
  }
  .nav-collapse {
    display: none;
    width: 100%;
    flex-basis: 100%;
    order: 3;
    padding: 4px 0 12px;
    border-top: 1px solid #e8e8e9;
    margin-top: 4px;
  }
  .nav.is-open .nav-collapse {
    display: block;
  }
  .nav-links > li > a,
  .nav-links > li > .nav-dropdown-toggle {
    min-height: 44px;
    align-items: center;
  }
  .nav-dd-item {
    min-height: 48px;
    justify-content: center;
  }
}

/* ——— Lang toggle ——— */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: var(--tracking-body);
  line-height: 1;
}
.lang-toggle-btn {
  color: var(--color-ink);
  opacity: 0.55;
  padding: 4px 2px;
  border-radius: 4px;
}
.lang-toggle-btn:hover {
  color: var(--color-teal);
  opacity: 1;
}
.lang-toggle-btn.is-active {
  color: var(--color-teal);
  opacity: 1;
}
.lang-toggle-sep {
  color: var(--color-gray);
  opacity: 0.9;
  user-select: none;
}
.nav.secure-header .lang-toggle {
  margin-left: 12px;
}
@media (max-width: 800px) {
  .lang-toggle {
    margin-left: auto;
    order: 2;
  }
  .nav-toggle { order: 3; }
  .nav > a:first-child,
  .nav .secure-brand { order: 1; }
}

