/* Zoekbeheer: Ergowerken colours (skill ergowerken-design), system fonts (no external requests: CSP 'self'). */
:root {
  --ink: #1d1d28;
  --text: #3a3a45;
  --muted: #6b6b78;
  --line: #e4e7ef;
  --line-soft: #eef1f7;
  --surface: #ffffff;
  --surface-alt: #f7f9fc;
  --indigo: #2e3192;
  --indigo-deep: #26146c;
  --blue: #0d86d6;
  --danger: #b42318;
  --notice-bg: #eaf6ea;
  --notice-ink: #1f5f1e;
  --alert-bg: #fdecea;
  --radius: 8px;
  --space: 1rem;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--surface-alt);
}

* { box-sizing: border-box; }
body { margin: 0; line-height: 1.45; }
h1, h2 { color: var(--ink); line-height: 1.2; }
h1 { font-size: 1.6rem; margin: 0 0 var(--space); }
h2 { font-size: 1.05rem; margin: 0 0 .75rem; }
a { color: var(--indigo); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid var(--blue); outline-offset: 2px;
}

.bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.5rem;
  padding: .75rem 1.5rem; background: var(--indigo); color: #fff;
}
.bar a, .bar .link { color: #fff; text-decoration: none; }
.bar .brand { font-weight: 700; font-size: 1.1rem; letter-spacing: .01em; }
.bar nav { display: flex; gap: 1.25rem; align-items: center; }
.bar nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: .35em; text-decoration-thickness: 2px; }
.bar .who { margin-left: auto; font-size: .85rem; opacity: .85; }

main { max-width: 1240px; margin: 0 auto; padding: 1.75rem 1.5rem 3rem; }
.narrow { max-width: 440px; margin: 2rem auto; background: var(--surface); padding: 1.75rem; border-radius: var(--radius); border: 1px solid var(--line); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1.25rem; }
.columns { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); align-items: start; }
.columns .card { margin-bottom: 0; }
.columns.terms { grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr)); }
.columns + .columns, .columns + .card, .card + .columns { margin-top: 1.25rem; }

.heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .5rem; }
.heading h1 { margin: 0; }
.filters { display: flex; gap: 1rem; align-items: center; }
.segmented { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius); padding: 2px; margin: 0; background: var(--surface); }
.segmented button { background: transparent; color: var(--text); border: 0; padding: .4rem .8rem; border-radius: 6px; font-weight: 500; }
.segmented button[aria-pressed="true"] { background: var(--indigo); color: #fff; }
.segmented button:hover:not([aria-pressed="true"]) { background: var(--line-soft); }

.tiles { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 1rem 0 1.25rem; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.25rem; display: flex; flex-direction: column; gap: .15rem; }
.tile .label { font-size: .85rem; color: var(--muted); }
.tile .value { font-size: 2rem; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.tile .sub { font-size: .85rem; color: var(--muted); }

table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: .45rem .5rem; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
th { color: var(--muted); font-weight: 600; font-size: .8rem; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td.term { color: var(--ink); font-weight: 500; overflow-wrap: break-word; }
td.actions { text-align: right; white-space: nowrap; }
tbody tr:hover { background: var(--surface-alt); }

details { margin-top: .75rem; }
summary { cursor: pointer; color: var(--indigo); font-size: .9rem; }

.chart { margin: 0; }
.chart svg { width: 100%; height: auto; display: block; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .tick { fill: var(--muted); font-size: 11px; font-family: inherit; }
.chart .mark { fill: var(--blue); }
.chart .hit { fill: transparent; }
.chart .bar:hover .mark { fill: var(--indigo); }
.chart .bar:hover .hit { fill: var(--line-soft); }
.chart .reference { stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 5 4; }
.chart figcaption { font-size: .85rem; color: var(--muted); margin-top: .35rem; display: flex; align-items: center; gap: .4rem; }
.key-reference { display: inline-block; width: 22px; border-top: 2px dashed var(--ink); }

form.stack, .stack { display: flex; flex-direction: column; gap: .9rem; }
form.row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: flex-end; }
form.inline { display: inline-flex; gap: .4rem; align-items: center; margin: 0; }
label { display: flex; flex-direction: column; gap: .3rem; font-size: .9rem; color: var(--ink); font-weight: 500; }
input, select { font: inherit; padding: .5rem .6rem; border: 1px solid #c9cedb; border-radius: 6px; background: #fff; color: var(--ink); min-width: 0; }
input.mono { font-family: ui-monospace, Consolas, monospace; font-size: .85rem; width: 100%; }

button { font: inherit; cursor: pointer; border-radius: 6px; border: 1px solid var(--indigo); background: var(--indigo); color: #fff; padding: .5rem 1rem; font-weight: 600; }
button:hover { background: var(--indigo-deep); border-color: var(--indigo-deep); }
button.small { padding: .25rem .6rem; font-size: .85rem; }
button.secondary { background: #fff; color: var(--indigo); }
button.secondary:hover { background: var(--line-soft); }
button.danger { background: #fff; color: var(--danger); border-color: var(--danger); }
button.danger:hover { background: var(--alert-bg); }
button.link { background: none; border: 0; padding: 0; font-weight: 400; text-decoration: none; }
button.link:hover { text-decoration: underline; background: none; }

.alert { background: var(--alert-bg); color: var(--danger); padding: .6rem .8rem; border-radius: 6px; }
.notice { background: var(--notice-bg); color: var(--notice-ink); padding: .6rem .8rem; border-radius: 6px; }
.muted { color: var(--muted); font-size: .9rem; }
.notes { margin-top: 2rem; font-size: .88rem; color: var(--muted); }
.notes h2 { font-size: .95rem; }
.notes ul { padding-left: 1.2rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 640px) {
  main { padding: 1rem; }
  .bar .who { margin-left: 0; width: 100%; }
  .columns { grid-template-columns: 1fr; }
  /* The least important column goes first on a phone; every figure stays in the other columns. */
  .optional { display: none; }
  /* The SVG scales down about three times on a phone: larger type in viewBox units keeps the axis readable. */
  .chart .tick { font-size: 18px; }
}
