/* Prikkaart: palette "Hesje" (donkerblauw met signaalgeel), licht en donker. System fonts, no external requests. */
:root {
  --bg: #f6f6f1;
  --card: #ffffff;
  --ink: #161d33;
  --muted: #5d6277;
  --line: #d9d9cf;
  --primary: #1c2757;
  --on-primary: #ffffff;
  --accent: #ffd400;
  --on-accent: #221c00;
  --ground: #ebebe0;
  --free: #9a9a92;
  --assigned: #2a78c9;
  --done: #2a9a5a;
  --dirty: #e8481c;
  --danger: #b3321a;
  --link: #1c2757;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #10142a;
    --card: #191f3d;
    --ink: #ececf5;
    --muted: #a2a6c0;
    --line: #2b3358;
    --primary: #ffd400;
    --on-primary: #191400;
    --accent: #ffd400;
    --on-accent: #191400;
    --ground: #151a34;
    --free: #80839c;
    --assigned: #6aaaf0;
    --done: #52cc86;
    --dirty: #ff7a50;
    --danger: #ff8a70;
    --link: #ffd400;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--font); }
a { color: var(--link); }
h1, h2 { line-height: 1.2; margin: 0 0 .5rem; text-wrap: balance; }
h1 { font-size: clamp(1.5rem, 4vw, 2rem); }
h2 { font-size: 1.15rem; }
p { margin: 0 0 .75rem; }
.muted { color: var(--muted); }

.top { background: var(--primary); color: var(--on-primary); }
.top-in { max-width: 62rem; margin: 0 auto; padding: .6rem max(1rem, env(safe-area-inset-right)) .6rem max(1rem, env(safe-area-inset-left)); display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.brand { font-weight: 800; font-size: 1.2rem; color: inherit; text-decoration: none; letter-spacing: .01em; }
.brand-sub { font-weight: 300; }
.top nav { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.top nav a, .top .linklike { color: inherit; text-decoration: none; padding: .35rem 0; border-bottom: 2px solid transparent; }
.top nav a[aria-current="page"] { border-bottom-color: currentColor; }
.top nav a:hover, .top .linklike:hover { border-bottom-color: currentColor; }
.top form { margin: 0; }
.linklike { background: none; border: 0; font: inherit; cursor: pointer; padding: 0; color: var(--link); text-decoration: underline; }

.page { max-width: 62rem; margin: 0 auto; padding: 1.25rem max(1rem, env(safe-area-inset-right)) 3rem max(1rem, env(safe-area-inset-left)); display: grid; gap: 1rem; }
.narrow { max-width: 26rem; display: grid; gap: .75rem; }
.head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; }
.head h1 { margin: 0; }
.crumb { margin: 0; font-size: .9rem; }
.actions { display: flex; gap: .6rem; flex-wrap: wrap; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 1rem; }
.stack { display: grid; gap: .6rem; }
/* `.stack` and the like set their own display; an element with the hidden attribute must stay hidden anyway. */
[hidden] { display: none !important; }
.stack > * { margin: 0; }
label { font-weight: 600; font-size: .95rem; }
label.check { display: flex; gap: .5rem; align-items: center; font-weight: 400; }
input:not([type="checkbox"]):not([type="radio"]), select, textarea { font: inherit; padding: .65rem .75rem; min-height: 2.75rem; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink); width: 100%; }
input[type="checkbox"], input[type="radio"] { width: 1.3rem; height: 1.3rem; flex: none; margin: 0; accent-color: var(--primary); }
:focus-visible { outline: 3px solid var(--assigned); outline-offset: 2px; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: .55rem 1.1rem; border-radius: 8px; border: 2px solid var(--primary); background: var(--primary); color: var(--on-primary); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.btn:hover { filter: brightness(1.1); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }

.flash { padding: .7rem .9rem; border-radius: 8px; border: 1px solid var(--line); background: var(--card); margin: 0; }
.flash-success { border-color: var(--done); }
.flash-danger { border-color: var(--dirty); }
.flash-warning { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 18%, var(--card)); }
.flash-info { border-color: var(--assigned); }

.list { list-style: none; margin: 0; padding: 0; background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
.list li { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: .7rem 1rem; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }

details.card summary, details summary { cursor: pointer; font-weight: 600; }
details[open] > summary { margin-bottom: .6rem; }

.kaart { height: 62vh; min-height: 22rem; border-radius: 10px; border: 1px solid var(--line); background: var(--ground); }
.qr { width: 15rem; max-width: 100%; background: #fff; padding: .5rem; border-radius: 8px; }
.qr svg { display: block; width: 100%; height: auto; }
.codes { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr)); gap: .4rem; }
code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }

.plain { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.person { display: flex; justify-content: space-between; align-items: center; gap: .5rem 1rem; flex-wrap: wrap; padding: .6rem 0; border-top: 1px solid var(--line); }
.person details { flex: 1 1 100%; }
.link-row { display: grid; gap: .5rem; padding: .75rem 0; border-top: 1px solid var(--line); }
.link-row.is-revoked { opacity: .6; }
.link-head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.copy { display: flex; gap: .5rem; }
.copy input { flex: 1; min-width: 0; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .85rem; }
code.big { font-size: 1.15rem; padding: .25rem .5rem; background: var(--ground); border-radius: 6px; overflow-wrap: anywhere; }

.narrow.wide { max-width: 34rem; }
.streets { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.streets li { display: flex; flex-direction: column; padding: .55rem 0; border-top: 1px solid var(--line); }
.streets li:first-child { border-top: 0; }
.amount { display: flex; gap: .5rem; }
.amount input { flex: 1; min-width: 0; }
.amount select { width: auto; min-width: 7rem; }
.mine + .mine { border-top: 1px solid var(--line); padding-top: .75rem; }

.street-row { flex-direction: row !important; align-items: center; justify-content: space-between; gap: .5rem; }
.street-text { display: flex; flex-direction: column; min-width: 0; }
.trash { flex: none; width: 2.75rem; height: 2.75rem; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink); cursor: pointer; }
.trash:hover { border-color: var(--danger); color: var(--danger); }
.names { border: 0; padding: 0; margin: 0; display: grid; gap: .25rem; }
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem 1rem; font-size: .85rem; color: var(--muted); margin: 0; padding: 0; }
.legend .legend-pin { vertical-align: middle; margin-right: .3rem; }
.legend i { display: inline-block; width: 1.2rem; height: .4rem; border-radius: 2px; margin-right: .3rem; vertical-align: middle; }
.k-rood { background: #d9342b; } .k-oranje { background: #f08a24; } .k-geel { background: #f2c230; } .k-groen { background: #2a9a5a; }
.k-bezet { background: repeating-linear-gradient(90deg, #6b6f80 0 4px, transparent 4px 7px); } .k-keuze { background: #2a78c9; height: .5rem; }
.dot { display: inline-block; width: .65rem; height: .65rem; border-radius: 50%; background: var(--line); margin-right: .4rem; }
.is-actief .dot { background: var(--done); box-shadow: 0 0 0 3px color-mix(in srgb, var(--done) 30%, transparent); }
.actief-tekst { display: none; font-size: .85rem; color: var(--done); margin-left: .4rem; }
.is-actief .actief-tekst { display: inline; }
.k-aan { background: #2a78c9; } .k-uit { background: #b9b9b2; }
.contact { flex: 1 1 100%; font-size: .85rem; }
.contact.is-soon { color: var(--dirty); }
.legend i.k-stip { width: 1.6rem; height: .5rem; border-radius: 0; background: radial-gradient(circle, #2a78c9 0 1.6px, transparent 2px) 0 50% / 5px 100% repeat-x; }

.stuk { display: grid !important; gap: .5rem; }
.stuk.is-gedaan .street-text > span:first-child { text-decoration: line-through; text-decoration-color: var(--done); }
.stuk.flash { animation: flash 1.6s ease-out; }
@keyframes flash { 0%, 40% { background: color-mix(in srgb, var(--accent) 45%, transparent); } 100% { background: transparent; } }
.acties { display: flex; flex-wrap: wrap; gap: .4rem; }
form.inline { display: contents; }
.chip-btn { min-height: 2.75rem; padding: .4rem .8rem; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-size: .9rem; cursor: pointer; }
.chip-btn[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.melden { display: flex; gap: .4rem; margin-top: .3rem; }
.melden .chip-btn { flex: 1 1 0; }
.chip-warn { color: var(--danger); }
.finish { border-top: 1px solid var(--line); padding-top: .75rem; }
.blad { border-color: var(--assigned); }
.k-keuze-blauw { background: #2a78c9; } .k-grijs { background: #b5b5ae; }

.touch-hint { display: none; margin: 0; font-size: .85rem; }
@media (pointer: coarse) { .touch-hint { display: block; } }
details.lijst { padding: .75rem 1rem; }
details.lijst > summary { min-height: 2.25rem; display: flex; align-items: center; gap: .6rem; list-style: none; }
details.lijst > summary::-webkit-details-marker { display: none; }
details.lijst > summary::before { content: ""; flex: none; width: 0; height: 0; border-left: .5rem solid currentColor; border-top: .35rem solid transparent; border-bottom: .35rem solid transparent; transition: transform .15s; }
details.lijst[open] > summary::before { transform: rotate(90deg); }
@media (prefers-reduced-motion: reduce) { details.lijst > summary::before { transition: none; } }

.tabs { display: flex; gap: .25rem; border-bottom: 2px solid var(--line); margin-bottom: .25rem; }
.tabs a { padding: .6rem 1rem; text-decoration: none; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -2px; font-weight: 600; }
.tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
.tabs a:hover { color: var(--ink); }
.straten-inhoud { margin-top: .75rem; }
.names legend { font-weight: 600; font-size: .95rem; padding: 0; margin-bottom: .25rem; }


label.check { min-height: 2.75rem; }
.finish fieldset.names { gap: 0; }

.groepen { gap: .6rem; }
.groep { display: grid; gap: .35rem; padding: .7rem .8rem; border-radius: 8px; border-left: .45rem solid var(--kleur); background: color-mix(in srgb, var(--kleur) 22%, var(--card)); border-top: 0 !important; }
.groep-vink { min-height: 2.25rem; }
.groep-kleur { width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--kleur); flex: none; box-shadow: 0 0 0 2px var(--card); }
.groep-bewerk { min-height: 2.25rem; }
.groep-knop { width: 100%; justify-content: space-between; gap: .75rem; text-align: left; }
.k-lichtblauw { background: #7db7f0; }

.groep-kop { display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap; }
.groep-bewerk { flex: none; font-size: .9rem; }

.groep-details > summary { font-weight: 600; }
.groep-details > summary .groep-info { font-weight: 400; font-size: .9rem; margin-left: .75rem; }
.legend i + i { margin-left: -.3rem; }
.leaflet-bar a.kaart-home { display: flex; align-items: center; justify-content: center; color: #1c2757; }

.kaartmodus { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; align-items: center; }
.kaartmodus legend { padding: 0; margin-right: .75rem; float: left; }
#samenvoeg-melding:empty { display: none; }

.k-blauw { background: #2a78c9; } .k-gekozen { background: #ffb000; }
#plek-melding:empty { display: none; }
.tabelrand { overflow-x: auto; }
.tabelrand table { border-collapse: collapse; width: 100%; font-size: .9rem; }
.tabelrand th, .tabelrand td { text-align: left; padding: .45rem .6rem; border-top: 1px solid var(--line); white-space: nowrap; }
.tabelrand thead th { border-top: 0; }

/* Mobile first, not mobile only: the volunteer screens grow with the screen (tablet, laptop). */
@media (min-width: 40rem) {
  .narrow.wide { max-width: 46rem; }
  .kaart { height: 66vh; min-height: 26rem; }
}
@media (min-width: 64rem) {
  .narrow.wide { max-width: 56rem; }
  .kaart { height: 70vh; min-height: 30rem; }
}


/* A message box that has no message yet stays out of the way (the map's status lines fill them in). */
.flash:empty { display: none; }

/* The tile at the top right of the coordinator pages: what volunteers did, and a button to bring the page up to date.
   Small, it shrinks (with an animation) to just the word and the count of what is new; a tap opens it again. */
.tegel { position: fixed; top: 3.6rem; right: .75rem; z-index: 2500; width: min(21rem, calc(100vw - 1.5rem)); overflow: hidden; background: var(--card); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 4px 18px rgba(0, 0, 0, .18); font-size: .9rem; transition: width .25s ease, border-color .2s; }
.tegel.nieuw { border-color: var(--accent); }
.tegel.klein { width: 9.5rem; }
.tegel-kop { display: flex; align-items: center; gap: .5rem; padding: .45rem .6rem; white-space: nowrap; }
.tegel.klein .tegel-kop { cursor: pointer; }
.tegel-kop strong { flex: 1; }
.tegel-aantal { background: var(--primary); color: var(--on-primary); border-radius: 999px; padding: 0 .55rem; font-weight: 700; }
.tegel-klein { min-width: 2rem; min-height: 2rem; border: 1px solid var(--line); background: transparent; color: inherit; border-radius: 6px; cursor: pointer; font: inherit; overflow: hidden; transition: min-width .25s ease, width .25s ease, opacity .2s, border-width .25s, padding .25s; }
.tegel.klein .tegel-klein { min-width: 0; width: 0; padding: 0; border-width: 0; opacity: 0; pointer-events: none; }
.tegel-lijf { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .25s ease, opacity .2s ease; }
.tegel.klein .tegel-lijf { grid-template-rows: 0fr; opacity: 0; }
.tegel-binnen { overflow: hidden; min-height: 0; padding: 0 .6rem .6rem; display: grid; gap: .45rem; }
.tegel.klein .tegel-binnen { padding-bottom: 0; }
.tegel-lijst { max-height: 14rem; overflow: auto; display: grid; gap: .1rem; }
.tegel-lijst li { display: flex; justify-content: space-between; gap: .6rem; padding: .25rem 0; border-top: 1px solid var(--line); }
.tegel-lijst li:first-child { border-top: 0; }
.tegel-lijst li.nieuw { font-weight: 600; }
.tegel-leeg { margin: 0; }
.tegel-knop { width: 100%; }
@media (prefers-reduced-motion: reduce) { .tegel, .tegel-klein, .tegel-lijf { transition: none; } }

/* Map "Bekijken": how often done, and the lines about what was done last. */
.k-keer1 { background: #a8d5b5; } .k-keer2 { background: #5fb27c; } .k-keer4 { background: #1f7a4a; }
.kaart-samenvatting { display: grid; gap: .15rem; }
