/* Verkoopportaal MP Collectibles. Huisstijl: donkerblauw #12205E en rood #D7263D, Luckiest Guy voor koppen, Onest voor tekst.
   Kleurregels (6 nov 2026): rood alleen voor de belangrijkste actie en voor fouten; navy voor koppen, labels, keuzes en voortgang;
   holo goud als enige warme accent, spaarzaam (tagline, badge Volgende beurs); papier voor persoonlijke blokken; holo lijn één keer, onder de hero.
   Donkere modus op basis van navy, niet zwart.
   Zelfde regels als Kaartscan (UX audit 3 nov 2026): alles via tokens, lopende tekst 16 px, tikvlak 44 px, randen van velden 3:1.
   Lettertypes staan in /fonts (zelf gehost, zie fonts/LICENSES.txt). Licht en donker. */
@font-face { font-family: "Onest"; font-weight: 400; font-display: swap; src: url(/fonts/onest-400.woff2) format("woff2"); }
@font-face { font-family: "Onest"; font-weight: 500; font-display: swap; src: url(/fonts/onest-500.woff2) format("woff2"); }
@font-face { font-family: "Onest"; font-weight: 600; font-display: swap; src: url(/fonts/onest-600.woff2) format("woff2"); }
@font-face { font-family: "Onest"; font-weight: 700; font-display: swap; src: url(/fonts/onest-700.woff2) format("woff2"); }
@font-face { font-family: "Onest"; font-weight: 800; font-display: swap; src: url(/fonts/onest-800.woff2) format("woff2"); }
@font-face { font-family: "Luckiest Guy"; font-weight: 400; font-display: swap; src: url(/fonts/luckiest-guy.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-display: swap; src: url(/fonts/plex-mono-500.woff2) format("woff2"); }

:root {
  --navy: #12205E; --navy-2: #1b2c78; --red: #D7263D; --red-ink: #b81d32;
  --bg: #f4f5f9; --surface: #ffffff; --surface-2: #eef0f6; --ink: #11141b; --muted: #5b6475; --line: #e2e5ee;
  --accent: var(--navy); --accent-soft: #e6e9f6; --ok: #138a4b; --warn: #a85b00; --bad-soft: #fdecee;
  --field-line: #7d8696;                         /* rand van invoervelden, 3:1 tegen de achtergrond */
  --on-solid: #ffffff;                           /* tekst op donkerblauw of rood */
  --on-navy-muted: #dfe4ff;
  --head: var(--navy);                           /* koppen op de pagina */
  --solid: var(--navy);                          /* gevulde navy vlakken: datum, stapnummer, gekozen chip, telling */
  --sel: var(--navy);                            /* gekozen kaart of optie, voortgang */
  --red-text: #D7263D;                           /* rode tekst bij een fout (4,5:1) */
  --gold: #F2B33D; --gold-soft: #fff4da; --gold-ink: #8a5a00;   /* holo goud: alleen als vlak of kop op navy, nooit lopende tekst op wit */
  --paper: #fbf8f2; --paper-line: #efe7d8;       /* warm papier voor persoonlijke blokken */
  --ok-soft: #e7f4ec;
  --holo: linear-gradient(90deg, #9fb0ff, #a8e8da, #f6de96, #f4b6c7, #9fb0ff);
  --shadow: 0 1px 2px rgba(17, 20, 27, .06), 0 6px 24px rgba(17, 20, 27, .06);
  --f-ui: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-head: "Luckiest Guy", "Onest", system-ui, sans-serif;
  --f-code: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --fs-xs: 12px; --fs-sm: 13px; --fs-ui: 14px; --fs-body: 16px; --fs-lg: 18px; --fs-xl: 20px; --fs-2xl: 24px; --fs-3xl: 28px;
  --fs-h1: clamp(32px, 7vw, 54px); --fs-h1s: clamp(28px, 6vw, 40px); --fs-h2: clamp(24px, 5vw, 34px);
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 20px; --sp-6: 24px; --sp-8: 32px; --sp-10: 40px; --sp-11: 44px; --sp-14: 56px;
  --r-xs: 4px; --r-sm: 8px; --r-md: 12px; --r-lg: 14px; --r-xl: 16px; --r-pill: 999px;
  --tap: 44px;
  --dur: 120ms;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1233; --surface: #131c4a; --surface-2: #1a2456; --ink: #eef1ff; --muted: #a9b1d6; --line: #26306a;
    --accent: #dfe4ff; --accent-soft: #1f2a5e; --ok: #4ad08a; --warn: #f0a640; --bad-soft: #3a1520; --field-line: #6b76a8;
    --head: #ffffff; --solid: #2a3a8f; --sel: #dfe4ff; --red-text: #ff6b7d;
    --gold-soft: #3a2e12; --gold-ink: #f6c866; --paper: #182152; --paper-line: #2e3770; --ok-soft: #12352a; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1233; --surface: #131c4a; --surface-2: #1a2456; --ink: #eef1ff; --muted: #a9b1d6; --line: #26306a;
  --accent: #dfe4ff; --accent-soft: #1f2a5e; --ok: #4ad08a; --warn: #f0a640; --bad-soft: #3a1520; --field-line: #6b76a8;
  --head: #ffffff; --solid: #2a3a8f; --sel: #dfe4ff; --red-text: #ff6b7d;
  --gold-soft: #3a2e12; --gold-ink: #f6c866; --paper: #182152; --paper-line: #2e3770; --ok-soft: #12352a; color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: var(--fs-body)/1.55 var(--f-ui); }
img { max-width: 100%; display: block; }
a { color: var(--accent); }
h1, h2, h3, .brand { font-family: var(--f-head); font-weight: 400; letter-spacing: .02em; line-height: 1.1; }
h1 { font-size: var(--fs-h1); margin: 0 0 var(--sp-3); }
h1.s { font-size: var(--fs-h1s); }
h2 { font-size: var(--fs-h2); margin: 0 0 var(--sp-3); color: var(--head); }
h3 { font-size: var(--fs-xl); margin: 0 0 var(--sp-2); }
h3.gap { margin-top: var(--sp-6); }
p { margin: 0 0 var(--sp-3); }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 var(--sp-4); }
.narrow { max-width: 760px; }
.center { text-align: center; }
.fine { color: var(--muted); font-size: var(--fs-body); }
.mt { margin-top: var(--sp-3); } .mt-l { margin-top: var(--sp-5); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* kop en voet */
.top { background: var(--navy); color: var(--on-solid); }
.top .wrap { display: flex; align-items: center; gap: var(--sp-3); min-height: 60px; }
.brand { color: var(--on-solid); text-decoration: none; font-size: var(--fs-xl); gap: var(--sp-2); white-space: nowrap; display: inline-flex; align-items: center; min-height: var(--tap); }
.brand .logo { width: 48px; height: 48px; flex: none; margin: -2px 2px -2px -4px; }   /* logo van Mees en Plien, links van de naam */
.top nav { margin-left: auto; display: flex; gap: 2px; flex-wrap: nowrap; justify-content: flex-end; }
.top nav a { color: var(--on-navy-muted); text-decoration: none; font-weight: 600; font-size: var(--fs-ui); padding: 0 var(--sp-2); min-height: var(--tap);
  display: inline-flex; align-items: center; border-radius: var(--r-sm); white-space: nowrap; }
.top nav a:hover, .top nav a[aria-current="page"] { background: rgba(255, 255, 255, .1); color: var(--on-solid); }
@media (max-width: 640px) { .top nav .hide-s { display: none; } }
@media (max-width: 520px) {   /* telefoon: menu op een eigen regel onder de naam, zodat niets wegvalt */
  .top .wrap { flex-wrap: wrap; row-gap: 0; padding-bottom: var(--sp-1); }
  .top nav { width: 100%; margin-left: calc(-1 * var(--sp-2)); justify-content: flex-start; }
}
.foot { margin-top: var(--sp-14); padding: var(--sp-6) 0 var(--sp-10); border-top: 1px solid var(--line); color: var(--muted); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 0 var(--sp-5); align-items: center; }
.foot a { min-height: var(--tap); display: inline-flex; align-items: center; }
.foot .legal { flex-basis: 100%; font-size: var(--fs-ui); margin-top: var(--sp-2); }

/* knoppen en velden */
.btn { appearance: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2); min-height: 48px;
  padding: 0 var(--sp-5); border-radius: var(--r-lg); font: 700 var(--fs-body)/1 var(--f-ui); text-decoration: none; background: var(--surface-2); color: var(--ink); }
.btn.primary { background: var(--red); color: var(--on-solid); }
.btn.primary:hover { background: var(--red-ink); }
.btn.navy { background: var(--solid); color: var(--on-solid); }
.btn.ghost { background: transparent; box-shadow: inset 0 0 0 1.5px var(--field-line); }
.btn.small { min-height: var(--tap); padding: 0 var(--sp-4); border-radius: var(--r-md); }
.btn:disabled { opacity: .5; cursor: default; }
.btn:focus-visible, .field:focus-visible, .chip:focus-visible, .card:focus-visible, .tabs button:focus-visible { outline: 3px solid color-mix(in srgb, var(--red) 60%, transparent); outline-offset: 2px; }
label.lbl, .lbl { display: block; font-weight: 600; font-size: var(--fs-body); margin: 0 0 6px; }
.lbl .fine { font-weight: 500; }
.field { width: 100%; min-height: 48px; border-radius: var(--r-md); border: 1.5px solid var(--field-line); background: var(--surface); color: var(--ink);
  padding: 10px 14px; font: var(--fs-body)/1.4 var(--f-ui); }
.field.short { max-width: 340px; }
.field[aria-invalid="true"] { border-color: var(--red); }
textarea.field { min-height: 96px; resize: vertical; }
select.field { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-body); margin: var(--sp-2) 0; min-height: var(--tap); padding-top: 10px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--sel); flex: none; }

/* blokken */
.hero { background: var(--navy); color: var(--on-solid); padding: var(--sp-8) 0 52px; position: relative; overflow: hidden; }
.hero p { color: var(--on-navy-muted); font-size: var(--fs-lg); max-width: 560px; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--holo); }   /* holo lijn, één keer per pagina */
.hero .dots { color: var(--gold); font-family: var(--f-head); letter-spacing: .08em; font-size: var(--fs-body); margin-bottom: 10px; }
.hero .cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.hero .btn.ghost { color: var(--on-solid); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .45); }
.sec { padding: var(--sp-11) 0 0; }
.panel { background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--shadow); padding: var(--sp-5); }
.panel + .panel { margin-top: var(--sp-3); }
.grid { display: grid; gap: 14px; }
@media (min-width: 720px) { .grid.c2 { grid-template-columns: 1fr 1fr; } .grid.c3 { grid-template-columns: repeat(3, 1fr); } .grid.c4 { grid-template-columns: repeat(4, 1fr); } }
.step { display: grid; gap: 6px; }
.step .n { width: 34px; height: 34px; border-radius: 50%; background: var(--solid); color: var(--on-solid); display: grid; place-items: center; font-family: var(--f-head); font-size: var(--fs-lg); }
.step b { font-size: var(--fs-lg); }
.tick { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-2); }
.tick li { padding-left: 28px; position: relative; }
.tick li::before { content: ""; position: absolute; left: 4px; top: 7px; width: 12px; height: 7px; border-left: 3px solid var(--ok); border-bottom: 3px solid var(--ok); transform: rotate(-45deg); }
details.faq { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: var(--sp-1) var(--sp-4); }
details.faq + details.faq { margin-top: 10px; }
details.faq summary { cursor: pointer; font-weight: 700; padding: var(--sp-3) 0; min-height: var(--tap); list-style: none; display: flex; justify-content: space-between; gap: var(--sp-3); }
details.faq summary::after { content: "+"; color: var(--accent); font-size: var(--fs-2xl); line-height: 1; }
details.faq[open] summary::after { content: "−"; }
details.faq p { color: var(--muted); }
.agenda { display: grid; gap: 10px; }
.beurs { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: var(--sp-3) 14px; }
.beurs .d { background: var(--solid); color: var(--on-solid); border-radius: var(--r-md); text-align: center; padding: var(--sp-2) 0; line-height: 1.1; }
.beurs .d b { display: block; font-family: var(--f-head); font-size: var(--fs-2xl); font-weight: 400; }
.beurs .d small { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .06em; }
.beurs a { display: inline-flex; min-height: var(--tap); align-items: center; }
.notice { background: var(--accent-soft); border-radius: var(--r-md); padding: var(--sp-3) 14px; }
.err { background: var(--bad-soft); color: var(--ink); border-radius: var(--r-md); padding: var(--sp-3) 14px; border-left: 4px solid var(--red); }
.condgrid { display: grid; gap: var(--sp-3); }
.cond { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 14px var(--sp-4); display: grid; grid-template-columns: 54px 1fr; gap: var(--sp-3); }
.cond .tag { background: var(--solid); color: var(--on-solid); border-radius: 10px; display: grid; place-items: center; font-weight: 800; height: 40px; }

/* verkopen: stappen, kaarten, selectie */
.steps { display: flex; gap: 6px; margin: 18px 0 var(--sp-4); padding: 0; list-style: none; }
.steps li { flex: 1; display: grid; gap: 4px; font-size: var(--fs-sm); font-weight: 600; color: var(--muted); }
.steps li::before { content: ""; height: 5px; border-radius: 3px; background: var(--line); }
.steps li.on::before { background: var(--sel); }
.steps li[aria-current="step"] { color: var(--ink); }
.tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; background: var(--surface-2); padding: 5px; border-radius: var(--r-lg); margin-bottom: 14px; }
.tabs button { appearance: none; border: 0; background: transparent; color: var(--muted); font: 700 var(--fs-ui)/1.2 var(--f-ui); padding: 6px; min-height: var(--tap); border-radius: 10px; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.setbar { display: grid; gap: 10px; grid-template-columns: 1fr; margin-bottom: var(--sp-3); }
@media (min-width: 720px) { .setbar { grid-template-columns: 1fr 1fr; } }
.chips { display: flex; gap: var(--sp-2); flex-wrap: wrap; align-items: center; margin: var(--sp-1) 0 var(--sp-3); }
.chip { appearance: none; border: 1.5px solid var(--field-line); background: var(--surface); color: var(--ink); border-radius: var(--r-pill); padding: 0 14px; min-height: var(--tap);
  font: 600 var(--fs-ui)/1 var(--f-ui); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--solid); border-color: var(--solid); color: var(--on-solid); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 560px) { .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 900px) { .cards { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.card { appearance: none; border: 0; padding: 0; background: none; text-align: left; cursor: pointer; color: var(--ink); position: relative; font: inherit; }
.card .im { aspect-ratio: 63 / 88; border-radius: var(--r-sm); background: var(--surface-2); overflow: hidden; box-shadow: 0 0 0 1px var(--line); transition: transform var(--dur), box-shadow var(--dur); }
.card .im img { width: 100%; height: 100%; object-fit: cover; }
/* tekstkaart: als er geen plaatje is (geen toestemming of geen scan) */
.card .im .noimg { height: 100%; display: flex; flex-direction: column; justify-content: center; gap: var(--sp-1); text-align: center; padding: var(--sp-2);
  background: linear-gradient(160deg, var(--accent-soft), var(--surface-2)); }
.noimg .nn { font-weight: 700; font-size: var(--fs-sm); line-height: 1.25; overflow-wrap: anywhere; }
.noimg .nr { font-family: var(--f-code); font-size: var(--fs-xs); color: var(--muted); }
.card b { display: block; font-size: var(--fs-sm); font-weight: 600; margin-top: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card small { display: block; font-size: var(--fs-xs); color: var(--muted); font-family: var(--f-code); }
.card.sel .im { box-shadow: 0 0 0 3px var(--sel); transform: scale(.97); }
.card .badge { position: absolute; top: -6px; right: -6px; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 13px; background: var(--solid); color: var(--on-solid);
  font-weight: 800; font-size: var(--fs-ui); display: grid; place-items: center; box-shadow: 0 0 0 2px var(--bg); }
.empty { text-align: center; padding: 28px var(--sp-3); color: var(--muted); }
.drop { border: 2px dashed var(--field-line); border-radius: var(--r-xl); padding: 22px var(--sp-4); text-align: center; background: var(--surface); }
.files { display: grid; gap: var(--sp-2); margin-top: var(--sp-3); }
.file { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: var(--sp-3); align-items: center; background: var(--surface); border-radius: var(--r-md); padding: var(--sp-2) 10px; box-shadow: var(--shadow); }
.file .th { width: 48px; height: 48px; border-radius: var(--r-sm); background: var(--surface-2); object-fit: cover; display: grid; place-items: center; font-size: var(--fs-xs); font-weight: 700; color: var(--muted); }
.file .fn { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file small { color: var(--muted); font-size: var(--fs-ui); }
.xbtn { appearance: none; border: 0; background: var(--surface-2); color: var(--muted); width: var(--tap); height: var(--tap); border-radius: 10px; cursor: pointer; font-size: var(--fs-lg); }
/* stap 2: compacte rijen per set */
.selall { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-4); align-items: center; justify-content: space-between; padding-bottom: var(--sp-3); }
.selall label { display: inline-flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-ui); font-weight: 600; color: var(--muted); }
.selall select { width: auto; min-height: 40px; padding: 4px 34px 4px var(--sp-3); font-size: var(--fs-ui); }
.selset + .selset { margin-top: var(--sp-3); }
.selhd { position: sticky; top: 0; z-index: 1; display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-3); margin: 0 calc(-1 * var(--sp-5)); padding: var(--sp-2) var(--sp-5);
  background: var(--surface-2); font: 700 var(--fs-ui)/1.3 var(--f-ui); letter-spacing: 0; color: var(--ink); }
.selhd small { font: 500 var(--fs-sm) var(--f-code); color: var(--muted); white-space: nowrap; }
.selrow { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; grid-template-areas: "im nm qty" "im ctl ctl"; gap: 0 var(--sp-3); align-items: center;
  padding: 6px 0; border-top: 1px solid var(--line); }
.selhd + .selrow { border-top: 0; }
.selrow img, .selrow .ph { grid-area: im; align-self: start; width: 30px; height: 42px; border-radius: 3px; object-fit: cover; background: var(--surface-2); }
.selrow .nm { grid-area: nm; min-width: 0; display: flex; align-items: baseline; gap: var(--sp-2); }
.selrow .nm b { font-size: var(--fs-ui); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.selrow .nm small { color: var(--muted); font: 500 var(--fs-sm) var(--f-code); white-space: nowrap; }
.selrow .qty { grid-area: qty; }
.selctl { grid-area: ctl; display: flex; flex-wrap: wrap; gap: 2px var(--sp-3); align-items: center; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--field-line); border-radius: var(--r-sm); }
.qty button { position: relative; appearance: none; border: 0; background: var(--surface-2); color: var(--ink); width: 32px; height: 30px; font-size: var(--fs-body); cursor: pointer; }
.qty button:first-child { border-radius: 6px 0 0 6px; } .qty button:last-child { border-radius: 0 6px 6px 0; }
.qty button::after { content: ""; position: absolute; inset: -6px -2px; }      /* tikvlak van 44 px hoog */
.qty span { min-width: 28px; text-align: center; font-weight: 700; font-size: var(--fs-ui); }
.selctl select { min-height: 32px; height: 32px; width: auto; padding: 2px 30px 2px 10px; font-size: var(--fs-ui); border-width: 1px; background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%; }
.selctl .check { margin: 0; padding-top: 0; min-height: 32px; align-items: center; font-size: var(--fs-ui); color: var(--muted); }
.selctl .check input { width: 18px; height: 18px; margin: 0; }
@media (min-width: 640px) {
  .selrow { grid-template-columns: 30px minmax(0, 1fr) auto auto; grid-template-areas: "im nm ctl qty"; }
}
.bar { position: sticky; bottom: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--line); padding: var(--sp-3) 0 calc(var(--sp-3) + env(safe-area-inset-bottom)); margin-top: var(--sp-5); }
.bar .wrap { display: flex; align-items: center; gap: var(--sp-3); }
.bar .sum { flex: 1; min-width: 0; font-weight: 700; line-height: 1.3; }
.bar .sum small { display: block; font-weight: 500; color: var(--muted); font-size: var(--fs-sm); }
@media (max-width: 480px) { .bar .sum { font-size: var(--fs-ui); } .bar.later .sum small { display: none; } }
.opts { display: grid; gap: 10px; }
.opt { display: grid; grid-template-columns: 24px 1fr; gap: var(--sp-3); align-items: start; padding: 14px; border-radius: var(--r-lg); border: 1.5px solid var(--field-line); background: var(--surface); cursor: pointer; }
.opt:has(input:checked) { border-color: var(--sel); box-shadow: 0 0 0 1px var(--sel); }
.opt input { width: 20px; height: 20px; accent-color: var(--sel); margin: 2px 0 0; }
.opt small { color: var(--muted); display: block; font-size: var(--fs-ui); }
.opts.row { grid-template-columns: 1fr 1fr; }
.ouder { border-left: 4px solid var(--accent); padding-left: var(--sp-3); }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.timeline li { position: relative; padding: 0 0 var(--sp-4) 28px; }
.timeline li::before { content: ""; position: absolute; left: 6px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--sel); }
.timeline li::after { content: ""; position: absolute; left: 10px; top: 18px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.big { font-family: var(--f-head); font-size: var(--fs-3xl); color: var(--accent); }
.m0 { margin: 0; }
.tabs button:disabled { opacity: .45; cursor: default; }
.mb { margin-bottom: var(--sp-3); }

/* knop Kaarten aanbieden die onderin meeloopt op de telefoon (beginpagina) en landt bij "Klaar om te beginnen?" */
.stickcta { padding: var(--sp-4) 0 0; }
@media (max-width: 719px) {
  .stickcta { position: sticky; bottom: 0; z-index: 6; padding: var(--sp-4) 0 calc(var(--sp-3) + env(safe-area-inset-bottom));
    transition: transform 260ms cubic-bezier(.2, .8, .2, 1), opacity 200ms ease, visibility 0s; }
  .stickcta .btn { width: 100%; transition: box-shadow 260ms ease; }
  .stickcta.vast .btn { box-shadow: 0 8px 24px rgba(17, 20, 27, .28), 0 0 0 4px color-mix(in srgb, var(--bg) 70%, transparent); }
  .stickcta.uit { transform: translateY(calc(100% + 12px)); opacity: 0; visibility: hidden; pointer-events: none;
    transition: transform 220ms ease, opacity 180ms ease, visibility 0s 220ms; }
}
@media (prefers-reduced-motion: reduce) { .stickcta, .stickcta.uit, .stickcta .btn { transition: none; } }

/* set zoeken (combobox) */
.combo { position: relative; }
.combo .field { padding-right: 48px; }
.combox { position: absolute; right: 2px; bottom: 2px; width: var(--tap); height: var(--tap); border: 0; background: none; color: var(--muted); font-size: var(--fs-2xl); line-height: 1; cursor: pointer; border-radius: var(--r-md); }
.combolist { position: absolute; z-index: 8; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: var(--sp-1) 0; list-style: none; max-height: min(380px, 52vh); overflow: auto;
  overscroll-behavior: contain; background: var(--surface); border-radius: var(--r-md); box-shadow: 0 12px 32px rgba(17, 20, 27, .18), 0 0 0 1px var(--line); }
.combolist li[role="option"] { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); min-height: var(--tap); padding: var(--sp-2) var(--sp-4); cursor: pointer; }
.combolist li[role="option"] small { color: var(--muted); font: 500 var(--fs-sm) var(--f-code); white-space: nowrap; }
.combolist li[role="option"]:hover, .combolist li.act { background: var(--accent-soft); }
.combolist li[aria-selected="true"] span { font-weight: 700; color: var(--accent); }
.combolist .cgrp { position: sticky; top: calc(-1 * var(--sp-1)); background: var(--surface); padding: var(--sp-3) var(--sp-4) var(--sp-1); font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.combolist .cnone { padding: var(--sp-3) var(--sp-4); color: var(--muted); }

/* snelkeuzes per soort en minder kiezen op de kaart */
.chips[hidden] { display: none; }
.chip.grp { display: inline-flex; align-items: center; gap: var(--sp-2); }
.chip .cnt { min-width: 22px; height: 22px; padding: 0 6px; border-radius: var(--r-pill); background: var(--surface-2); color: var(--muted); font-size: var(--fs-xs); display: inline-grid; place-items: center; }
.chip[aria-pressed="true"] .cnt { background: rgba(255, 255, 255, .2); color: var(--on-solid); }
.cw { position: relative; }
.cw .card { width: 100%; }
.minus { position: absolute; top: 6px; left: 6px; z-index: 2; width: 30px; height: 30px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  background: var(--surface); color: var(--ink); font: 700 var(--fs-lg)/1 var(--f-ui); display: grid; place-items: center;
  box-shadow: 0 0 0 2px var(--bg), 0 2px 6px rgba(17, 20, 27, .25), inset 0 0 0 1.5px var(--field-line); }
.minus::after { content: ""; position: absolute; inset: -8px; }               /* tikvlak van 46 px */
.minus:focus-visible { outline: 3px solid color-mix(in srgb, var(--red) 60%, transparent); outline-offset: 2px; }

/* foto van ons op de beurs in de kop van de beginpagina: telefoon breed onder de knoppen, laptop staand rechts als polaroid.
   Verschillende scherptes via srcset, zodat ook een Retina scherm of iPhone een scherpe versie krijgt. */
.hero .wrap { position: relative; }
.hero-foto { margin: var(--sp-6) 0 0; max-width: 568px; }
.hero-foto img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r-lg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
@media (min-width: 860px) {
  .hero-foto { position: absolute; right: var(--sp-6); top: 50%; margin: 0; width: 300px; max-width: none; transform: translateY(-50%) rotate(2.5deg);
    background: #fff; padding: 10px 10px 30px; border-radius: var(--r-md); box-shadow: 0 18px 40px rgba(0, 0, 0, .4); }
  .hero-foto img { aspect-ratio: 4 / 5; border-radius: 4px; box-shadow: none; }
  .hero h1, .hero p { max-width: 560px; } }
@media (min-width: 860px) and (max-width: 1020px) { .hero-foto { width: 240px; } .hero h1, .hero p { max-width: 480px; } }

/* beurzen in de agenda en bij de overdracht, met logo */
.beurs.met-logo { grid-template-columns: 64px 1fr auto; }
.beurs .d b i { font-style: normal; font-size: var(--fs-body); }
.blogo { width: 112px; height: 64px; object-fit: contain; flex: none; border-radius: var(--r-sm); }
.opt small.tip { color: var(--ok); font-weight: 600; }
@media (max-width: 400px) { .blogo { width: 84px; height: 52px; } }
/* keuze uit de beurzen, onder "Op een beurs" (compact via bpeek.js, zie onder) */
.beurskeus { padding-left: var(--sp-6); margin-top: calc(-1 * var(--sp-1)); }
.beurslijst { display: grid; gap: var(--sp-2); padding: var(--sp-1); }
.bopt { display: grid; grid-template-columns: 20px auto minmax(0, 1fr); gap: var(--sp-3); align-items: center; padding: var(--sp-2) var(--sp-3); border-radius: var(--r-md);
  border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; min-height: 72px; }
.bopt:has(input:checked) { border-color: var(--sel); box-shadow: 0 0 0 1px var(--sel); }
.bopt input { width: 20px; height: 20px; accent-color: var(--sel); margin: 0; }
.bopt .blogo { width: 72px; height: 48px; }
.bopt .blogo.leeg { background: var(--surface-2); }
.bopt b { display: block; }
.bopt small { color: var(--muted); display: block; font-size: var(--fs-ui); }

/* waardering, klaar scherm en foutmelding bij het veld */
.panel.warm { background: var(--paper); box-shadow: none; border: 1px solid var(--paper-line); }
.statusbox { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-4); }
#beursKeus[aria-invalid="true"], .opts[aria-invalid="true"] { outline: 2px solid var(--red); outline-offset: 4px; border-radius: var(--r-lg); }
.check:has(input[aria-invalid="true"]) { color: var(--red-text); }
/* status: aanvragen op dit apparaat, link opnieuw mailen, voortgang */
.aanvlijst { display: grid; gap: var(--sp-2); margin-bottom: var(--sp-4); }
.panel.aanv { display: grid; grid-template-columns: 1fr auto; gap: 2px var(--sp-3); text-decoration: none; color: var(--ink); }
.panel.aanv + .panel.aanv { margin-top: 0; }
.panel.aanv .fine { grid-column: 1; }
.panel.aanv .pijl { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--accent); font-size: var(--fs-xl); }
.zoekform { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.zoekform .field { flex: 1 1 220px; }
.voortgang { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; padding: 0; margin: var(--sp-3) 0 0; list-style: none; }
.voortgang li { display: grid; gap: 4px; font-size: var(--fs-xs); color: var(--muted); text-align: center; }
.voortgang li::before { content: ""; height: 5px; border-radius: 3px; background: var(--line); }
.voortgang li.klaar::before, .voortgang li.nu::before { background: var(--sel); }
.voortgang li.nu { color: var(--ink); font-weight: 700; }

/* slabs: uitleg die openklapt in stap 1, en de keuzes per kaart in stap 2 */
.hulp { margin: 0 0 var(--sp-4); }
.hulp summary { display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap, 44px); cursor: pointer; font-weight: 700; color: var(--accent); list-style: none; }
.hulp summary::-webkit-details-marker { display: none; }
.hulp summary::before { content: "?"; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--surface-2); color: var(--ink); font-size: var(--fs-sm); }
.hulp[open] summary::before { content: "×"; }
.hulpbox { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 0 var(--r-md) var(--r-md) 0; padding: var(--sp-3) var(--sp-4); }
.hulpbox p { margin: 0 0 var(--sp-2); } .hulpbox p:last-child { margin: 0; }
.selctl .slabnote, .selctl .fielderr { flex-basis: 100%; margin: var(--sp-1) 0 var(--sp-2); font-size: var(--fs-ui); }
.selctl .slabnote { color: var(--gold-ink); background: var(--gold-soft); border-radius: var(--r-sm); padding: var(--sp-2) var(--sp-3); }
.selctl .fielderr { color: var(--red-text); font-weight: 600; }
.selctl select[aria-invalid] { border-color: var(--red); box-shadow: 0 0 0 1px var(--red); }

/* badge Volgende beurs: alleen bij de eerstvolgende beurs in de agenda */
.nextb { display: inline-block; margin-left: var(--sp-2); padding: 2px 10px; border-radius: var(--r-pill); background: var(--gold-soft); color: var(--gold-ink);
  font: 600 var(--fs-xs)/1.6 var(--f-ui); vertical-align: 2px; white-space: nowrap; }
@media (max-width: 480px) { .nextb { display: table; margin: 2px 0 2px; } }   /* telefoon: badge op een eigen regel onder de naam */

/* pop-up na Afronden (stap 2): condities nalopen, dan door naar de gegevens */
.dlg { border: 1px solid var(--line); padding: var(--sp-6); border-radius: var(--r-xl); background: var(--surface); color: var(--ink); box-shadow: var(--shadow);
  width: min(440px, calc(100vw - 2 * var(--sp-4))); max-height: calc(100dvh - 2 * var(--sp-4)); overflow: auto; }
.dlg::backdrop { background: color-mix(in srgb, var(--navy) 60%, transparent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .dlg::backdrop { background: rgb(0 0 0 / .6); } }
:root[data-theme="dark"] .dlg::backdrop { background: rgb(0 0 0 / .6); }
.dlg h2 { font-size: var(--fs-2xl); }
.dlg p { margin: 0 0 var(--sp-3); }
.dlg .hulpbox { margin-top: var(--sp-4); }
.dlgknop { display: flex; gap: var(--sp-2); justify-content: flex-end; flex-wrap: wrap; margin-top: var(--sp-5); }
@media (max-width: 480px) { .dlgknop { flex-direction: column-reverse; } .dlgknop .btn { width: 100%; } }

/* ---------- beurzen compact (bpeek.js): eerste beurs helemaal, van de tweede naam en datum die naar beneden vervagen.
   --peek-h en --peek-fade zet het script (gemeten); de rest zit achter "Toon alle beurzen" in een venster. */
.bpeek.dicht { max-height: var(--peek-h, 150px); overflow: hidden; cursor: pointer;
  -webkit-mask-image: linear-gradient(to bottom, #000 var(--peek-fade, 70%), transparent);
          mask-image: linear-gradient(to bottom, #000 var(--peek-fade, 70%), transparent); }
.bpeek.dicht > [inert] { pointer-events: none; }
.bpeek.dicht > .bopt:has(input:checked) { order: -1; }                       /* gekozen beurs staat bovenaan */
.bpeek-meer { appearance: none; display: flex; align-items: center; justify-content: center; gap: var(--sp-2); width: 100%; min-height: var(--tap);
  margin-top: var(--sp-1); padding: 0 var(--sp-4); border: 1.5px solid var(--field-line); border-radius: var(--r-pill); background: var(--surface);
  color: var(--ink); font: 600 var(--fs-ui) var(--f-ui); cursor: pointer; }
.bpeek-meer:hover { border-color: var(--sel); }
.bpeek-meer:focus-visible, .bsheet-x:focus-visible { outline: 3px solid color-mix(in srgb, var(--red) 60%, transparent); outline-offset: 2px; }
.bpeek-n { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 var(--sp-2); border-radius: var(--r-pill);
  background: var(--solid); color: var(--on-solid); font-size: var(--fs-xs); }

/* het venster: in het midden op een groot scherm, als vel van onderen op een telefoon */
.bsheet { border: 0; padding: 0; width: min(560px, calc(100vw - 32px)); max-height: min(80vh, 760px); border-radius: var(--r-xl);
  background: var(--bg); color: var(--ink); box-shadow: 0 24px 64px rgba(11, 18, 51, .35); overflow: hidden; }
.bsheet[open] { display: flex; flex-direction: column; }
.bsheet::backdrop { background: rgba(11, 18, 51, .55); }
.bsheet-greep { display: none; }
.bsheet-kop { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); padding: var(--sp-4) var(--sp-4) var(--sp-2) var(--sp-5); }
.bsheet-kop h2 { margin: 0; font-size: var(--fs-xl); }
.bsheet-x { appearance: none; flex: none; display: grid; place-items: center; width: var(--tap); height: var(--tap); border: 0; border-radius: 50%;
  background: var(--surface-2); color: var(--ink); cursor: pointer; }
.bsheet-uitleg { margin: 0; padding: 0 var(--sp-5) var(--sp-2); color: var(--muted); font-size: var(--fs-ui); }
.bsheet-body { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: var(--sp-2) var(--sp-4) var(--sp-4); }
.bsheet-body .agenda, .bsheet-body .beurslijst { padding: var(--sp-1); }
.bsheet-voet { display: flex; justify-content: flex-end; padding: var(--sp-3) var(--sp-4) calc(var(--sp-3) + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); }
html:has(.bsheet[open]) { overflow: hidden; }
@media (max-width: 719px) {
  .bsheet { width: 100%; max-width: 100%; max-height: 86vh; margin: auto 0 0; border-radius: var(--r-xl) var(--r-xl) 0 0; }
  .bsheet[open] { animation: bsheet-op 220ms ease-out; }
  .bsheet-greep { display: block; width: 40px; height: 4px; margin: var(--sp-2) auto 0; border-radius: var(--r-pill); background: var(--field-line); }
  .bsheet-kop { padding-top: var(--sp-2); }
  .bsheet-voet .btn { width: 100%; }
}
@keyframes bsheet-op { from { transform: translateY(40px); opacity: .4; } }
@media (prefers-reduced-motion: reduce) { .bsheet[open] { animation: none; } }
