@font-face {
  font-family: Inter;
  src: url("./inter-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: light;
  --page: #f4f7f5;
  --surface: #fff;
  --ink: #142723;
  --muted: #445952;
  --line: #cedad3;
  --soft: #e8f1eb;
  --brand: #17623f;
  --brand-hover: #10472f;
  --focus: #0759ac;
  --width: 76rem;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  line-height: 1.55;
  color: var(--ink);
  background: var(--page);
}
*, ::before, ::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
::selection { color: #0a3121; background: #bbecb7; }
:focus-visible { outline: .2rem solid var(--focus); outline-offset: .19rem; }
a { color: var(--brand); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--brand-hover); }
.brandbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem 1.25rem;
  min-height: 4.25rem;
  padding: .85rem max(1.1rem, calc((100% - var(--width)) / 2));
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.brandbar a { display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; font-weight: 750; }
.brandbar img { display: block; width: auto; height: 1.7rem; }
.brandbar span {
  padding-left: 1.2rem;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: .875rem;
  font-weight: 550;
}
main { width: min(var(--width), calc(100% - 2.2rem)); margin: 0 auto; padding: 2.3rem 0 5rem; }
main > :first-child { margin-top: 0; }
h1,h2,h3 { color: var(--ink); line-height: 1.17; text-wrap: balance; overflow-wrap: anywhere; }
h1 { margin: 1.7rem 0 1rem; font-size: clamp(2rem, 4vw, 3.35rem); font-weight: 670; letter-spacing: -.055em; }
h2 { margin: 2.2rem 0 1rem; font-size: clamp(1.35rem, 2.1vw, 1.8rem); font-weight: 650; letter-spacing: -.035em; }
h3 { margin: 1.5rem 0 .6rem; font-size: 1.13rem; }
p { max-width: 72ch; margin: .8rem 0 1.1rem; overflow-wrap: anywhere; }
p, li, dd { color: var(--muted); }
strong { color: var(--ink); }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .55rem; margin: 1rem 0; }
nav[aria-label="Platformbeheer"], nav[aria-label="Overzicht"] {
  padding-bottom: .8rem;
  border-bottom: 1px solid var(--line);
  font-size: 0;
}
nav a { display: inline-flex; align-items: center; padding: .35rem .6rem; font-size: 1rem; }
nav[aria-label="Platformbeheer"] a, nav[aria-label="Overzicht"] a {
  border-radius: .4rem;
  color: var(--ink);
  font-size: .95rem;
  font-weight: 585;
  text-decoration: none;
}
nav a:hover, nav [aria-current="page"] { color: var(--brand); background-color: var(--soft); }

form {
  display: grid;
  align-items: end;
  gap: .95rem 1.1rem;
  max-width: 50rem;
  margin: 1rem 0 1.5rem;
  padding: clamp(1rem, 2vw, 1.6rem);
  border: 1px solid var(--line);
  border-radius: .75rem;
  background: var(--surface);
}
form > * { min-width: 0; }
form > p, form > h2, form > h3 { margin: .2rem 0; }
label { display: block; font-size: .95rem; font-weight: 600; color: var(--ink); }
input:not([type="hidden"]), textarea, select {
  display: block;
  min-height: 2.65rem;
  width: 100%;
  min-width: 0;
  padding: .6rem .75rem;
  border: 1px solid #80978b;
  border-radius: .43rem;
  background-color: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}
label > :is(input,select,textarea) { margin-top: .35rem; font-weight: 400; }
textarea { min-height: 6rem; resize: vertical; }
input[readonly] { font-variant-numeric: tabular-nums; background: #f3f6f4; }
input:is([type="checkbox"],[type="radio"]) { display: inline; width: 1.15rem; min-height: 1rem; vertical-align: middle; accent-color: var(--brand); }
[hidden], input[type="hidden"] { display: none !important; }
select { padding-right: 1.4rem; }
input[type="file"] { padding: .4rem; font-size: .9rem; }
input::file-selector-button { border: 0; padding: .4rem .65rem; border-radius: .25rem; background: var(--soft); color: var(--brand); font: inherit; }
button, .entry-action {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  justify-self: start;
  width: fit-content;
  min-height: 2.65rem;
  padding: .55rem 1.05rem;
  border-radius: .42rem;
  border: 1px solid transparent;
  background: var(--brand);
  color: white;
  font: inherit;
  font-size: .96rem;
  line-height: 1.3;
  font-weight: 650;
  text-align: center;
}
button { cursor: pointer; }
button:hover { background: var(--brand-hover); }
button:disabled { background: #dce4df; color: #506159; cursor: not-allowed; }
form[action$="/request"] { max-width: 32rem; }
form[action$="/request"] label + input { margin-top: -.55rem; }
form[action$="/logout"], form#redeem, td > form { display: inline-flex; margin: .3rem .4rem .3rem 0; padding: 0; border: 0; background: none; }
form[action$="/logout"] { margin-top: 1.5rem; }
form[action$="/logout"] button, td > form button {
  min-height: 2.25rem;
  border-color: var(--line);
  background: var(--surface);
  color: var(--brand);
  font-size: .9rem;
}
form[action$="/logout"] button:hover, td > form button:hover { background: var(--soft); }
fieldset { min-width: 0; margin: 0; padding: 1rem; border: 1px solid var(--line); border-radius: .5rem; }
legend { font-weight: 650; }
output { color: var(--muted); }
[role="alert"] { padding: .8rem 1rem; border-left: .22rem solid #ac4b23; background: #fff7ee; color: #683719; }

details {
  max-width: var(--width);
  margin: .65rem 0;
  padding: 0 1.1rem;
  border: 1px solid var(--line);
  border-radius: .55rem;
  background: var(--surface);
}
summary { padding: .9rem 0; color: var(--ink); font-weight: 600; cursor: pointer; }
summary::marker { color: var(--brand); }
details[open] > summary { border-bottom: 1px solid var(--line); }
details > form { max-width: none; padding: .2rem 0; border: 0; }
.table-scroll, .table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  margin: 1rem 0;
  border: 1px solid var(--line);
  border-radius: .65rem;
  background: var(--surface);
}
table { width: 100%; border-collapse: collapse; border-spacing: 0; background: var(--surface); font-size: .94rem; text-align: left; }
thead { background: #eaf0ec; }
th, td { padding: .78rem .9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: #2d463c; font-size: .88rem; font-weight: 670; }
td { font-variant-numeric: tabular-nums; }
th:not(:last-child), td:not(:last-child) { padding-right: .65rem; }
tbody tr:last-child > * { border-bottom: 0; }
tbody tr:hover { background: #f7faf8; }
caption { padding: .75rem .9rem; color: var(--muted); font-size: .9rem; font-weight: 550; text-align: left; }
dl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .65fr); max-width: 52rem; margin: 1rem 0; border-top: 1px solid var(--line); }
dt, dd { min-width: 0; margin: 0; padding: .65rem 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
dt { padding-right: 1.2rem; font-weight: 600; }
dd { font-variant-numeric: tabular-nums; }

.welcome { max-width: 63rem; margin: clamp(1.5rem, 7vh, 5rem) auto 2rem; }
.welcome-intro h1 { max-width: 18ch; margin: 0; font-size: clamp(2.4rem, 6vw, 4.45rem); letter-spacing: -.065em; }
.welcome-intro p { margin: 1.1rem 0 0; max-width: 43rem; font-size: clamp(1rem, 2vw, 1.17rem); }
.entry-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.2rem; margin: 2.4rem 0 0; }
.entry-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding: clamp(1.5rem, 3.4vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
}
.entry-card h2 { margin: 0; font-size: clamp(1.55rem, 3.2vw, 2.15rem); }
.entry-card p { margin: .9rem 0 2.15rem; max-width: 37ch; }
.entry-action { margin-top: auto; }
.partner-entry { border-color: #193f31; background: #193f31; }
.partner-entry h2 { color: #fff; }
.partner-entry p { color: #e0ebe4; }
.partner-entry .entry-action { color: #123723; background: #d6efb3; }
.entry-card:hover .entry-action { text-decoration: underline; text-underline-offset: .18em; }
.admin-entry:hover { border-color: var(--brand); }
@media (min-width: 48rem) {
  details > form:has(label:nth-of-type(2)), form[action="/admin/demos"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  details > form > :is(button,p,h2,h3,fieldset), form[action="/admin/demos"] > button { grid-column: 1/-1; }
}
@media (max-width: 40rem) {
  main { padding-top: 1.5rem; }
  .entry-grid { grid-template-columns: minmax(0,1fr); gap: .85rem; margin-top: 1.5rem; }
  .entry-card p { margin-bottom: 1.3rem; }
  .table-scroll table, .table-wrap table { min-width: 33rem; }
  th, td { padding: .65rem .7rem; }
  nav { gap: .2rem .35rem; }
  dl { grid-template-columns: minmax(0,1fr); }
  dt { border-bottom: 0; padding-bottom: .1rem; }
  dd { padding-top: 0; }
}
@media print {
  :root { background: white; color: black; }
  body, main { width: 100%; max-width: none; margin: 0; padding: 0; }
  .brandbar { min-height: 0; padding: 0 0 .5rem; }
  nav, form, button, .entry-action { display: none !important; }
  .table-wrap, .table-scroll { overflow: visible; border: 0; }
  table { min-width: 0 !important; font-size: 9pt; }
  th,td { padding: .28rem; }
  tr { break-inside: avoid; }
  h1,h2,h3 { break-after: avoid; }
  a { color: inherit; }
}
