/* Handleiding Sellow — één stylesheet, geen build nodig. */

@font-face {
  font-family: "Inter";
  src: url("fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #14152d;          /* Sellow navy, uit het logo */
  --ink-2: #3a4160;
  --muted: #5f6880;
  --blue: #215cff;         /* Sellow blauw, uit het logo */
  --blue-ink: #1743c4;
  --blue-wash: #edf2ff;
  --paper: #ffffff;
  --mist: #f5f7fb;         /* achtergrond van de Sellow-app */
  --line: #e2e7f0;
  --line-strong: #cfd6e4;
  --tip: #0d7a52;
  --tip-wash: #e8f6ef;
  --warn: #935400;
  --warn-wash: #fff4de;
  --radius: 10px;
  --topbar: 64px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--topbar) + 24px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  font-feature-settings: "cv11" 1, "ss03" 1;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-ink); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
kbd {
  font: 600 12px/1 var(--font);
  color: var(--muted);
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 5px;
  padding: 3px 6px;
  background: var(--paper);
}
.icon { flex: none; }

.skip {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px;
}
.skip:focus { top: 12px; }

/* ---------- Bovenbalk ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner {
  max-width: 1440px; margin: 0 auto;
  height: var(--topbar);
  display: flex; align-items: center; gap: 20px;
  padding: 0 24px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex: none; }
.brand img { display: block; }
.brand__label {
  font-weight: 600; font-size: 15px; color: var(--muted);
  padding-left: 12px; border-left: 1px solid var(--line-strong); line-height: 22px;
}
/* De onderdelen-schakelaar: dezelfde vorm als in de Sellow-app */
.tabs {
  display: flex; gap: 2px; padding: 4px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--paper);
  margin-left: 8px; overflow-x: auto; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  padding: 7px 14px; border-radius: 999px;
  font-size: 14.5px; font-weight: 600; color: var(--ink); text-decoration: none;
}
.tab .icon { width: 17px; height: 17px; color: var(--muted); }
.tab:hover { background: var(--mist); color: var(--ink); }
.tab[aria-current="true"] { background: var(--blue); color: #fff; }
.tab[aria-current="true"] .icon { color: #fff; }
.searchbtn {
  margin-left: auto; display: inline-flex; align-items: center; gap: 10px;
  min-width: 220px; height: 40px; padding: 0 10px 0 12px;
  border: 1px solid var(--line-strong); border-radius: 10px; background: var(--paper);
  color: var(--muted); font: 500 14.5px var(--font); cursor: pointer;
}
.searchbtn:hover { border-color: var(--blue); color: var(--ink); }
.searchbtn__text { flex: 1; text-align: left; }
/* Taalkeuze NL/EN: naar dezelfde pagina in de andere taal */
.lang {
  display: inline-flex; flex: none; gap: 2px; padding: 3px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--paper);
}
.lang a {
  display: inline-grid; place-items: center; min-width: 34px; height: 30px; padding: 0 9px;
  border-radius: 999px; font: 600 13px/1 var(--font); letter-spacing: .03em;
  color: var(--muted); text-decoration: none;
}
.lang a:hover { color: var(--ink); background: var(--mist); }
.lang a[aria-current="true"] { background: var(--ink); color: #fff; }
.lang a:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.notfound__en { margin-top: 28px; color: var(--muted); }
.iconbtn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none;
  border: 0; border-radius: 10px; background: transparent; color: var(--ink); cursor: pointer;
}
.iconbtn:hover { background: var(--mist); }
.menu-btn { display: none; }

/* ---------- Indeling ---------- */
.layout {
  max-width: 1440px; margin: 0 auto;
  display: grid; grid-template-columns: 272px minmax(0, 1fr) 232px;
}
.sidebar {
  position: sticky; top: var(--topbar); align-self: start;
  height: calc(100vh - var(--topbar)); overflow-y: auto;
  padding: 28px 16px 24px 24px;
  display: flex; flex-direction: column;
  border-right: 1px solid var(--line);
}
.sidebar nav { flex: 1; }
.sidebar__title { font-weight: 700; font-size: 15px; margin: 0 0 10px 10px; }
.sidebar__group { font-size: 13px; font-weight: 600; color: var(--muted); margin: 20px 0 6px 10px; }
.sidebar__list { list-style: none; margin: 0; padding: 0; }
.sidebar__list a {
  display: block; padding: 6px 10px; border-radius: 8px;
  color: var(--ink-2); text-decoration: none; font-size: 15px; line-height: 1.4;
}
.sidebar__list a:hover { background: var(--mist); color: var(--ink); }
.sidebar__list a[aria-current="page"] { background: var(--blue-wash); color: var(--blue-ink); font-weight: 600; }
.sidebar__app {
  display: flex; align-items: center; gap: 8px; margin: 24px 0 0 10px;
  font-size: 14px; font-weight: 600; color: var(--muted); text-decoration: none;
}
.sidebar__app:hover { color: var(--blue); }
.sidebar__app .icon { width: 17px; height: 17px; }

.main { padding: 32px 56px 56px; min-width: 0; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--blue); text-decoration: underline; }
.crumbs__sep { margin: 0 8px; color: var(--line-strong); }

/* ---------- Artikel ---------- */
.doc { max-width: 760px; }
.doc h1 {
  font-size: 2.375rem; line-height: 1.12; font-weight: 750; letter-spacing: -0.028em;
  margin: 0 0 14px;
}
.lead { font-size: 1.1875rem; line-height: 1.55; color: var(--ink-2); margin: 0 0 32px; max-width: 64ch; }
.doc h2 {
  font-size: 1.5rem; line-height: 1.25; font-weight: 700; letter-spacing: -0.018em;
  margin: 2.6em 0 .6em;
}
.doc h3 { font-size: 1.125rem; line-height: 1.35; font-weight: 650; margin: 2em 0 .5em; }
.doc p, .doc li { max-width: 70ch; }
.doc p { margin: 0 0 1em; }
.doc ul, .doc ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.doc li { margin: .3em 0; }
.doc li > ul, .doc li > ol { margin: .3em 0 .4em; }
.doc strong { font-weight: 650; }
.doc code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .86em;
  background: var(--mist); border: 1px solid var(--line); border-radius: 6px; padding: .1em .4em;
  overflow-wrap: anywhere;
}
.doc pre {
  background: var(--ink); color: #e9ecf6; border-radius: var(--radius);
  padding: 16px 18px; overflow-x: auto; font-size: 13.5px; line-height: 1.55; margin: 0 0 1.4em;
}
.doc pre code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; }

/* Stappen: genummerde lijsten zijn altijd een volgorde */
.doc ol { list-style: none; padding-left: 0; counter-reset: stap; }
.doc ol > li {
  counter-increment: stap; position: relative; padding-left: 42px; margin: .7em 0;
}
.doc ol > li::before {
  content: counter(stap);
  position: absolute; left: 0; top: .05em;
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 14px; font-weight: 700; color: var(--blue-ink); background: var(--blue-wash);
}

/* Tabellen */
.doc table {
  width: 100%; border-collapse: collapse; margin: 1em 0 1.8em;
  font-size: 15px; line-height: 1.5; font-variant-numeric: tabular-nums;
}
.doc th {
  text-align: left; font-weight: 650; background: var(--mist);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 10px 14px;
}
.doc td { border-bottom: 1px solid var(--line); padding: 10px 14px; vertical-align: top; }
.doc td:first-child { font-weight: 600; white-space: nowrap; }
.doc td p { margin: 0; }

/* Schermafbeeldingen */
.shot { margin: 28px 0 32px; }
.shot__link { display: block; cursor: zoom-in; border-radius: var(--radius); }
.shot img {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(20, 21, 45, .05), 0 12px 32px -18px rgba(20, 21, 45, .35);
}
.shot figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; }

/* Opmerkingen: tip, goed om te weten, let op */
.admonition {
  margin: 1.4em 0; padding: 14px 18px; border-radius: var(--radius);
  background: var(--blue-wash); border-left: 3px solid var(--blue);
}
.admonition > p { margin: 0 0 .5em; }
.admonition > p:last-child, .admonition > ul:last-child { margin-bottom: 0; }
.admonition-title { font-weight: 700; color: var(--blue-ink); }
.admonition.tip { background: var(--tip-wash); border-color: var(--tip); }
.admonition.tip .admonition-title { color: var(--tip); }
.admonition.warning { background: var(--warn-wash); border-color: #d08a1f; }
.admonition.warning .admonition-title { color: var(--warn); }

.updated { font-size: 14px; color: var(--muted); margin: 56px 0 16px; max-width: 760px; }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 760px; }
.pager__link {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: var(--ink); font-weight: 600; line-height: 1.35;
}
.pager__link small { display: block; font-size: 13px; font-weight: 500; color: var(--muted); }
.pager__link:hover { border-color: var(--blue); color: var(--blue-ink); }
.pager__link .icon { color: var(--muted); }
.pager__link--next { grid-column: 2; justify-content: flex-end; text-align: right; }

/* Op deze pagina */
.toc { position: sticky; top: var(--topbar); align-self: start; padding: 40px 24px 24px 8px; }
.toc__title { font-size: 14px; font-weight: 700; margin: 0 0 8px; }
.toc ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc a {
  display: block; padding: 4px 0 4px 14px; margin-left: -1px; border-left: 2px solid transparent;
  font-size: 14px; line-height: 1.4; color: var(--muted); text-decoration: none;
}
.toc a:hover { color: var(--ink); }
.toc a.is-active { color: var(--blue-ink); border-left-color: var(--blue); font-weight: 600; }

/* Voettekst */
.footer { border-top: 1px solid var(--line); background: var(--mist); }
.footer__inner {
  max-width: 1440px; margin: 0 auto; padding: 32px 24px 40px;
  display: grid; gap: 6px; font-size: 14.5px; color: var(--ink-2);
}
.footer__inner p { margin: 0; }
.footer__inner img { margin-bottom: 8px; }
.footer__muted { color: var(--muted); }

/* ---------- Zoeken ---------- */
.search[hidden], .zoom[hidden] { display: none; }
.search { position: fixed; inset: 0; z-index: 60; }
.search__backdrop { position: absolute; inset: 0; background: rgba(20, 21, 45, .45); }
.search__panel {
  position: relative; margin: 10vh auto 0; width: min(680px, calc(100vw - 32px));
  max-height: 78vh; display: flex; flex-direction: column;
  background: var(--paper); border-radius: 14px; overflow: hidden;
  box-shadow: 0 24px 64px -16px rgba(20, 21, 45, .45);
}
.search__bar { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 18px; border-bottom: 1px solid var(--line); color: var(--muted); }
.search__input { flex: 1; border: 0; outline: 0; font: 500 18px var(--font); color: var(--ink); padding: 10px 0; background: transparent; }
.search__input::-webkit-search-cancel-button { display: none; }
.search__results { list-style: none; margin: 0; padding: 8px; overflow-y: auto; }
.search__results:empty { display: none; }
.search__results a {
  display: block; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--ink);
}
.search__results a.is-active, .search__results a:hover { background: var(--blue-wash); }
.search__title { font-weight: 650; }
.search__section { font-size: 13px; color: var(--muted); margin-left: 8px; font-weight: 500; }
.search__snippet { display: block; font-size: 14px; color: var(--ink-2); margin-top: 2px; line-height: 1.5; }
.search__snippet mark, .search__title mark { background: #fff1a8; color: inherit; border-radius: 3px; padding: 0 1px; }
.search__empty { padding: 18px 12px; color: var(--muted); }
.search__hint { margin: 0; padding: 10px 18px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); background: var(--mist); }

/* Vergroten van schermafbeeldingen */
.zoom {
  position: fixed; inset: 0; z-index: 70; background: rgba(20, 21, 45, .9);
  display: grid; place-items: center; padding: 56px 24px 24px; cursor: zoom-out;
}
.zoom img { max-width: min(1400px, 96vw); max-height: 82vh; border-radius: 8px; background: #fff; }
.zoom__caption { color: #e7eaf4; font-size: 15px; margin: 12px 0 0; text-align: center; }
.zoom__close { position: absolute; top: 12px; right: 12px; color: #fff; }
.zoom__close:hover { background: rgba(255, 255, 255, .12); }

/* ---------- Startpagina ---------- */
.home__main { max-width: 1280px; margin: 0 auto; padding: 0 24px 72px; }
.hero { padding: 64px 0 40px; max-width: 760px; }
.hero h1 { font-size: 3.25rem; line-height: 1.05; font-weight: 780; letter-spacing: -0.035em; margin: 0 0 16px; }
.hero__lead { font-size: 1.25rem; line-height: 1.55; color: var(--ink-2); margin: 0 0 28px; max-width: 58ch; }
.hero__search {
  display: flex; align-items: center; gap: 12px; width: 100%; max-width: 640px; height: 56px;
  padding: 0 14px 0 18px; border: 1px solid var(--line-strong); border-radius: 12px;
  background: var(--paper); color: var(--muted); font: 500 16.5px var(--font); text-align: left; cursor: text;
  box-shadow: 0 1px 2px rgba(20, 21, 45, .04), 0 8px 24px -16px rgba(20, 21, 45, .3);
}
.hero__search span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero__search:hover { border-color: var(--blue); }
.icon--lg { width: 22px; height: 22px; color: var(--blue); }

.map { padding: 32px 0 8px; border-top: 1px solid var(--line); }
.map__intro { max-width: 760px; margin-bottom: 24px; }
.map__intro h2, .firststeps h2 { font-size: 1.625rem; letter-spacing: -0.02em; margin: 0 0 6px; }
.map__intro p, .firststeps__intro p { margin: 0; color: var(--ink-2); }
.map__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
/* Elke kolom lijkt op de zijbalk van dat onderdeel in de app */
.map__col { background: var(--mist); border-radius: 14px; padding: 18px 12px 14px; }
.map__head { margin: 0 0 8px; font-size: 1rem; }
.map__head a {
  display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 8px;
  color: var(--ink); text-decoration: none; font-weight: 700;
}
.map__head a:hover { color: var(--blue-ink); }
.map__head .icon {
  width: 34px; height: 34px; padding: 7px; border-radius: 9px; background: var(--paper); color: var(--blue);
  box-shadow: inset 0 0 0 1px var(--line);
}
.map__list { list-style: none; margin: 0; padding: 0; }
.map__list a {
  display: block; padding: 5px 10px; border-radius: 8px; font-size: 15px;
  color: var(--ink-2); text-decoration: none;
}
.map__list a:hover { background: var(--paper); color: var(--blue-ink); }
.map__group { font-size: 13px; font-weight: 600; color: var(--muted); padding: 14px 10px 4px; }

.firststeps {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 48px;
  margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--line);
}
.firststeps__more { display: inline-block; margin-top: 16px; font-weight: 600; }
.firststeps__steps ol { list-style: none; counter-reset: stap; margin: 0; padding: 0; }
.firststeps__steps li {
  counter-increment: stap; position: relative; padding: 0 0 18px 52px; margin: 0;
}
.firststeps__steps li::before {
  content: counter(stap); position: absolute; left: 0; top: -2px;
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 700; color: #fff; background: var(--blue);
}
.firststeps__steps li:not(:last-child)::after {
  content: ""; position: absolute; left: 16px; top: 36px; bottom: 2px; width: 2px; background: var(--blue-wash);
}
.firststeps__steps p { margin: 0; color: var(--ink-2); }
.firststeps__steps strong { display: block; color: var(--ink); font-size: 1.0625rem; }
.button {
  display: inline-block; padding: 11px 18px; border-radius: 10px; background: var(--blue);
  color: #fff; font-weight: 650; text-decoration: none;
}
.button:hover { background: var(--blue-ink); color: #fff; }

/* ---------- Kleinere schermen ---------- */
@media (max-width: 1240px) {
  .layout { grid-template-columns: 260px minmax(0, 1fr); }
  .toc { display: none; }
  .main { padding: 32px 40px 56px; }
}
@media (max-width: 1100px) {
  .map__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .searchbtn { min-width: 0; }
  .searchbtn__text, .searchbtn kbd { display: none; }
  .searchbtn { width: 40px; height: 40px; padding: 0; justify-content: center; border-color: transparent; }
}
@media (max-width: 960px) {
  :root { --topbar: 112px; }
  .topbar__inner { height: auto; flex-wrap: wrap; row-gap: 0; padding: 8px 12px 0; }
  .menu-btn { display: inline-grid; }
  .brand__label { display: none; }
  .tabs {
    order: 3; width: calc(100% + 24px); margin: 8px -12px 0; padding: 6px 12px;
    border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent;
  }
  .layout { display: block; }
  .sidebar {
    position: fixed; z-index: 50; left: 0; top: 0; bottom: 0; width: min(320px, 86vw); height: 100vh;
    background: var(--paper); border-right: 1px solid var(--line);
    transform: translateX(-102%); transition: transform .2s ease;
    padding-top: 24px;
  }
  .nav-open .sidebar { transform: none; box-shadow: 0 0 48px rgba(20, 21, 45, .25); }
  .nav-open::after {
    content: ""; position: fixed; inset: 0; z-index: 45; background: rgba(20, 21, 45, .4);
  }
  .main { padding: 24px 20px 48px; }
  .doc h1 { font-size: 2rem; }
  .lead { font-size: 1.0625rem; }
  .doc table { display: block; overflow-x: auto; }
  .doc td:first-child { white-space: normal; }
  .firststeps { grid-template-columns: 1fr; gap: 24px; }
  .hero { padding-top: 40px; }
  .hero h1 { font-size: 2.5rem; }
}
@media (max-width: 600px) {
  .map__grid { grid-template-columns: 1fr; }
  .pager { grid-template-columns: 1fr; }
  .pager__link--next { grid-column: 1; }
  .hero__search span { font-size: 15px; }
  .shot { margin-left: -4px; margin-right: -4px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .topbar, .sidebar, .toc, .pager, .footer, .search, .zoom { display: none !important; }
  .layout { display: block; }
  .main { padding: 0; }
  .shot img { box-shadow: none; }
}
