
/* ============================= */
/* RESET & BASIS */
/* ============================= */

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  font-family: "PostNL", Inter, Arial, Helvetica, sans-serif;
  color: #17212b;
  background: #f4f6f8;
}

/* ============================= */
/* POSTNL DESIGN TOKENS */
/* ============================= */

:root {
  /* PostNL brand */
  --postnl-orange: #ff6200;
  --postnl-blue: #003a8f;

  /* Surfaces */
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-soft: #f9fafb;

  /* Borders & text */
  --border: #d0d7e2;
  --text: #17212b;
  --muted: #5f6b7a;

  /* Status */
  --ok: #157a3d;
  --no: #8b95a3;

  /* Effects */
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  --radius: 16px;
}

/* ============================= */
/* LAYOUT */
/* ============================= */

.page {
  max-width: 100vw;
  padding: 24px 20px 40px;
  margin: 0 auto;
}

/* ============================= */
/* HERO */
/* ============================= */

.hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-end;
  margin-bottom: 20px;
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--postnl-orange);
}

h1 {
  margin: 0 0 8px;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.1;
  color: var(--postnl-blue);
}

.intro {
  margin: 0;
  color: var(--muted);
}

/* ============================= */
/* LEGEND */
/* ============================= */

.legend {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-size: 0.9rem;
  white-space: nowrap;
}

.legend strong {
  color: var(--postnl-blue);
}

/* ============================= */
/* TABEL WRAPPER */
/* ============================= */

.table-wrap {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden; /* bewust GEEN horizontale scroll */
}

/* ============================= */
/* TABEL */
/* ============================= */

table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 12px;
  line-height: 1.4;
}

/* ============================= */
/* TABLE HEADER */
/* ============================= */

thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--surface-soft);
  color: var(--postnl-blue);
  font-weight: 700;
  padding: 10px 8px;
  border-bottom: 2px solid var(--postnl-orange);
}

/* ============================= */
/* TABLE BODY */
/* ============================= */

th,
td {
  padding: 8px;
  vertical-align: top;
  word-break: break-word;
  overflow-wrap: break-word;
}

tbody td {
  border-bottom: 1px solid var(--border);
}

/* Groep kolom */
th.group {
  background: #fff5ef; /* subtiel PostNL-oranje */
  color: var(--postnl-blue);
  font-weight: 700;
  border-right: 1px solid var(--border);
}

/* Tekstkolommen */
td.text {
  color: var(--text);
  font-weight: 400; /* normaal (niet vet) */
}

td.empty {
  color: var(--no);
}

/* ============================= */
/* KOLOMBREEDTES */
/* ============================= */

th:nth-child(1) { width: 10%; }
th:nth-child(2) { width: 18%; }
th:nth-child(3) { width: 22%; }

/* Platform kolommen */
th.platform,
td[data-platform] {
  width: 5%;
  text-align: center;
  font-weight: 700;
}

/* Status */
td.yes {
  color: var(--ok);
}

td.no,
td.empty {
  color: var(--no);
}

/* ============================= */
/* HOVER */
/* ============================= */

tbody tr:hover td,
tbody tr:hover th.group {
  background: rgba(255, 98, 0, 0.04);
}

/* ============================= */
/* RESPONSIVE */
/* ============================= */

@media (max-width: 900px) {
  .page {
    padding: 16px 12px 24px;
  }

  .hero {
    flex-direction: column;
    align-items: stretch;
  }

  .legend {
    white-space: normal;
  }
}

.legend {
  display: flex;
  flex-wrap: nowrap;     /* voorkomt afbreken */
  align-items: center;
  gap: 16px;
  white-space: nowrap;   /* extra zekerheid */
}
