@font-face { font-family: "NeutrifPro"; src: url("/fonts/NeutrifPro-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "NeutrifPro"; src: url("/fonts/NeutrifPro-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "NeutrifPro"; src: url("/fonts/NeutrifPro-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "NeutrifPro"; src: url("/fonts/NeutrifPro-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --paper: #ffffff;
  --surface: #f1eefb;
  --surface-line: #e1dbf5;
  --ink: #17171b;
  --muted: #6e6e78;
  --line: #e7e5ee;
  --accent: #4a3adc;
  --accent-deep: #2a1e7a;
  --accent-ink: #ffffff;
  --ok: #1e7f4f;
  --warn: #a35e12;
  --bad: #c2261b;
  --info: #9a9aa4;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0a0a0a;
    --surface: #17151f;
    --surface-line: #2c2840;
    --ink: #edebf5;
    --muted: #9a9aa4;
    --line: #26242e;
    --accent: #9c92f5;
    --accent-deep: #2a1e7a;
    --accent-ink: #0a0a0a;
    --ok: #5cc48d;
    --warn: #e3a266;
    --bad: #f2766b;
    --info: #6e6e78;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.5 "NeutrifPro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

main, .top { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.top { padding-top: 28px; padding-bottom: 4px; }
.logo { display: block; height: 30px; width: auto; }

h1, h2 { line-height: 1.15; margin: 0; }
h1 { font-size: clamp(1.75rem, 4.2vw, 2.5rem); font-weight: 600; letter-spacing: -0.015em; }
h2 { font-size: 1.05rem; font-weight: 600; }

/* ---------- Bovenste deel ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  align-items: start;
  padding: 24px 0 36px;
}

.verdict { padding-top: 12px; }
.verdict[data-state="pending"] h1 { color: var(--muted); }
.verdict[data-state="ok"] h1 { color: var(--accent); }
.verdict[data-state="warn"] h1 { color: var(--warn); }
.verdict[data-state="bad"] h1 { color: var(--bad); }

.issues { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; max-width: 60ch; }
.issues li { padding-left: 14px; border-left: 3px solid var(--info); }
.issues li[data-tone="bad"] { border-color: var(--bad); }
.issues li[data-tone="warn"] { border-color: var(--warn); }

/* De supportcode staat op de Steets-sphere, zoals de titel op het voorblad */
.stub { display: grid; justify-items: center; text-align: center; }
.sphere {
  width: 100%;
  max-width: 300px;
  aspect-ratio: 1;
  display: grid;
  place-content: center;
  background: url("/img/sphere.webp") center / contain no-repeat;
  color: var(--accent-deep);
}
.stub-label { margin: 0; font-size: 0.95rem; font-weight: 500; opacity: 0.75; }
.stub-code {
  margin: 2px 0 0;
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.stub-code[data-empty] { opacity: 0.3; }
.stub-help { margin: 14px 0 16px; color: var(--muted); font-size: 0.92rem; max-width: 34ch; }

.actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }

button {
  font: inherit;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--surface-line);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}
button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
button.danger { color: var(--bad); }
button:disabled { opacity: 0.5; cursor: default; }
button:focus-visible, input:focus-visible, tr:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---------- Gegevens ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 32px 36px;
  padding-bottom: 28px;
}
.grid .wide { grid-column: 1 / -1; }

.block h2 { padding-bottom: 8px; border-bottom: 2px solid var(--accent); }

dl { margin: 0; }
.row {
  display: grid;
  grid-template-columns: minmax(9.5em, 2fr) minmax(0, 3fr);
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
dt { color: var(--muted); overflow-wrap: anywhere; hyphens: auto; }
dd { margin: 0; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
dd.wrap { font-size: 0.88rem; }
dd[data-tone="ok"] { color: var(--ok); font-weight: 600; }
dd[data-tone="warn"] { color: var(--warn); font-weight: 600; }
dd[data-tone="bad"] { color: var(--bad); font-weight: 600; }
dd[data-tone="pending"] { color: var(--muted); }

.privacy, .muted { color: var(--muted); font-size: 0.9rem; max-width: 70ch; }
.privacy { padding-bottom: 40px; }

/* ---------- Beheerpagina ---------- */
.admin-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; padding: 24px 0; }
.admin-form label { display: grid; gap: 4px; font-size: 0.9rem; color: var(--muted); }
input {
  font: inherit;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--surface-line);
  background: var(--paper);
  color: var(--ink);
  min-width: 0;
}

.list-head {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0 18px;
}
.list-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.list-tools input { width: 260px; max-width: 100%; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 24px; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font-weight: 600; font-size: 0.88rem; color: var(--muted); background: var(--surface); }
tbody tr { cursor: pointer; }
tbody tr:hover { background: var(--surface); }
tbody tr:last-child td { border-bottom: 0; }
td.code { font-weight: 700; color: var(--accent); letter-spacing: 0.04em; }
td[data-tone="bad"] { color: var(--bad); font-weight: 600; }
td[data-tone="warn"] { color: var(--warn); font-weight: 600; }
td[data-tone="ok"] { color: var(--ok); }

.error { color: var(--bad); font-weight: 600; }
pre {
  background: var(--surface);
  border: 1px solid var(--surface-line);
  border-radius: 8px;
  padding: 12px;
  overflow-x: auto;
  font-size: 0.82rem;
}
summary { cursor: pointer; font-weight: 600; padding: 8px 0; }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; gap: 20px; }
  .sphere { max-width: 260px; }
  .row { grid-template-columns: 1fr; gap: 0; }
}

[hidden] { display: none !important; }
