/* 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; grid-template-columns: minmax(0, 1fr); gap: 1rem; }   /* minmax(0, …): one wide child (the tabs) must not stretch every card beyond the screen */
.narrow { max-width: 26rem; display: grid; grid-template-columns: minmax(0, 1fr); 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="date"] { -webkit-text-fill-color: var(--ink); text-align: left; }
input[type="date"]::-webkit-date-and-time-value { text-align: left; }
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; }
.btn[data-armed="1"] { background: var(--danger); border-color: var(--danger); color: #fff; }   /* a button that asks "Zeker weten?" is red while it waits for the second tap */

.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; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { padding: .6rem 1rem; text-decoration: none; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -2px; font-weight: 600; white-space: nowrap; flex: none; }
.tabelrand .trash { width: auto; min-width: 2.75rem; padding: 0 .6rem; white-space: nowrap; font: inherit; }
.tabelrand td form { margin: 0; }
.regels-bij { margin-top: .35rem; }
.regels-bij ul { margin: .35rem 0 0; padding-left: 1rem; }
.tabelrand td.breed { white-space: normal; min-width: 14rem; }
.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.kaart-rij { display: flex; }
.leaflet-bar.kaart-rij a { border-bottom: 0; }
.leaflet-bar a[hidden] { display: none; }
.leaflet-bar.kaart-rij a.kaart-zoom { border-right: 1px solid #ccc; }
.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; }

/* The map tiles lie above the coloured street lines and blend with them (multiply), so the street names stay readable over a line.
   Behind them the map is white, whatever the theme: the tiles are light in both themes. */
.kaart { background: #fff; isolation: isolate; }   /* the blending of the tiles (multiply) stays inside the map: it must not take the rest of the page (the buttons under the map) into its blending group */
.leaflet-tegels-pane { mix-blend-mode: multiply; }
.leaflet-tegels-pane, .leaflet-tegels-pane * { pointer-events: none !important; }

.midden { text-align: center; }

/* "Hoeveel wil je prikken?": the number and the unit next to the button on a wide screen, below each other on a narrow one. */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.kies-rij { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .6rem .75rem; }
.kies-rij .amount { flex: 0 0 auto; }
.kies-rij .amount input { flex: 0 0 5.5rem; width: 5.5rem; }
.kies-rij .amount select { min-width: 6.5rem; }
.kies-knop { flex: 1 1 12rem; }
#voorstel-top { scroll-margin-top: .5rem; }
.akkoord-onder { margin: 1rem 0 0; }
.datum-rij { display: flex; gap: .6rem; }
.datum-rij input, .datum-rij .btn { flex: 1 1 0; min-width: 0; }
.knoppen-rij { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .6rem; }
.knoppen-naast { display: flex; gap: .6rem; }
.knoppen-naast form { flex: 1 1 0; display: flex; }
.knoppen-naast .btn { flex: 1 1 0; }
.akkoord-onder .btn { display: flex; width: 100%; }
.kies-vraag { margin: 0; font-size: 1.2rem; font-weight: 400; }
.kies-blok { display: grid; gap: .5rem; margin-top: .5rem; }
.kies-blok p { margin: 0; }
.kies-blok + form { margin-top: .5rem; }
.kies-ouder { margin: .75rem 0 0; display: grid; }

/* The head of a group: name and state on the left, "Bewerken" on the right; below it "Straten en beheren" with the buttons on the right. */
.groep-kop-links { display: flex; align-items: center; flex-wrap: wrap; gap: .1rem .9rem; min-width: 0; }
.groep-kop-links .groep-info { font-size: .9rem; }
.groep-rij { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: .5rem .75rem; }
.groep-rij .groep-uitklappen { flex: 1 1 16rem; min-width: 0; display: flex; flex-wrap: wrap; gap: .5rem; align-items: flex-start; }   /* the street list (a grey button) and "Koppel vrijwilligers" */
.groep-rij .groep-details { min-width: 0; }
.groep-rij .groep-details[open] { flex: 1 1 100%; }
.groep-acties { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: flex-end; margin-left: auto; }
.groep-acties form { margin: 0; }
/* the buttons on a card, left and right, have the normal size of .btn */

/* Start choice of a volunteer: the groups to join (streets on request) and "alone", as radio buttons below each other. */
.keuze { display: grid; gap: .2rem; padding-bottom: .5rem; border-bottom: 1px solid var(--line); }
.keuze:last-of-type { border-bottom: 0; }
.keuze-uitleg { margin: 0 0 0 1.8rem; }
.keuze-straten { margin-left: 0; margin-bottom: 1.25rem; }   /* the triangle on the margin line; room below, so the button underneath is not tapped by accident */
.keuze-straten > summary { cursor: pointer; }

/* Starting and wrapping up a group: green. Deleting stays red. */
.btn-groen { background: #1f7a4a; border-color: #1f7a4a; color: #fff; }
.btn-grijs { background: #6b6f80; border-color: #6b6f80; color: #fff; }

/* A bit more room between "Nog iets laten weten" and the button that wraps the walk up. */
.finish > .btn { margin-top: 1.25rem; }

/* Room around the button that cancels a walk, inside "Nog iets laten weten". */
.finish details .btn-danger { margin-top: 1.1rem; margin-bottom: .75rem; }

/* "Ronde uit het verleden toevoegen": date, who and the button next to each other; below each other on a narrow screen. */
.verleden-rij { display: flex; flex-wrap: wrap; gap: .75rem; align-items: flex-end; }
.verleden-rij > div { flex: 1 1 11rem; display: grid; gap: .3rem; }
.verleden-rij .btn { flex: 0 0 auto; }

/* The volunteer form: fields in pairs next to each other (one under the other on a phone), with a light tint so they stand out from the card. */
.velden { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem 1.25rem; }
.veld { display: grid; gap: .3rem; align-content: start; }
.velden input { background: color-mix(in srgb, var(--ink) 4%, var(--card)); }

/* Favorites: a small heart in the corner of a card opens a window with the favorites and the recent prikacties. */
.kaart-kop { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.kaart-kop h2 { margin: 0; }
.hartje { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; }
.hartje:hover, .hartje:focus-visible { color: var(--ink); }
dialog.modal { width: min(36rem, calc(100% - 2rem)); max-height: calc(100% - 2rem); padding: 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); overflow: auto; }
dialog.modal::backdrop { background: rgba(0, 0, 0, .55); }
.fav-inhoud { display: grid; gap: .75rem; }
.fav-inhoud h2, .fav-inhoud h3 { margin: 0; }
.fav-kop { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.fav-sluit-x { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; }
.fav-sluit-x:hover, .fav-sluit-x:focus-visible { color: var(--ink); }
.fav-onder { margin-top: .25rem; }
.fav-lijst { display: grid; gap: .75rem; }
.fav { display: grid; gap: .25rem; padding-bottom: .75rem; border-bottom: 1px solid var(--line); }
.fav p { margin: 0; }
.fav-rij { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.fav-rij input[name="naam"] { flex: 1 1 auto; min-width: 0; }
.fav-aan { flex: 1 1 auto; }
.fav-acties { flex: none; display: flex; align-items: center; gap: .4rem; }
.fav-acties form { margin: 0; }
a.trash { text-decoration: none; color: inherit; }
.fav-tel { margin: 0; }
.kaart-icoon { display: inline-flex; vertical-align: middle; margin-left: .35rem; padding: .15rem; color: var(--muted); }
.kaart-icoon:hover, .kaart-icoon:focus-visible { color: var(--ink); }
.hart { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--muted); cursor: pointer; }
.hart[aria-pressed="true"] { color: var(--primary); border-color: var(--primary); }
.hart[aria-pressed="true"] svg { fill: currentColor; }
.hart:disabled { cursor: default; opacity: 0.55; }

/* The page keeps room for the vertical scrollbar, so a page that is just as tall as the window cannot make the scrollbar come and go and move everything by its width. */
html { scrollbar-gutter: stable; }

/* The thank-you after a prikactie (the screen with the last prikactie). */
.dank { margin: .25rem 0 1rem; }
.dank-baten { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; font-weight: 600; font-size: inherit; }
.dank-baten li { display: flex; align-items: center; gap: .4rem; }
.dank-pijl { flex: none; }
.dank-op { color: #2a9a5a; }
.dank-neer { color: #d9342b; }
.dank-zin { font-size: inherit; line-height: inherit; }

/* The coordinator's Prikken tab: real buttons instead of fold-outs, and the card with the ways to choose streets for the group being edited */
.kies-acties { display: grid; gap: .35rem; }
.kies-acties form { display: grid; }
.kies-acties p { margin: 0; }
.kies-co { border: 1px solid var(--line); border-radius: 10px; padding: .85rem; }
.kies-co h3 { margin: 0; }
details.knop-uitklap > summary { list-style: none; display: inline-flex; }
details.knop-uitklap > summary::-webkit-details-marker { display: none; }
.knop-regel { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem; }
.knop-regel > details[open] { flex: 1 1 100%; }

#bevestig-tekst { white-space: pre-line; }   /* the question before a form goes through may have a blank line in it */
/* The waiting room: "Kies:", the list, "Koppelen" (yellow) and a loose "Negeren" (grey) */
.koppel-rij { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; }
.koppel-rij form { margin: 0; }
.koppel-vorm { display: contents; }   /* the list, Koppelen and (next to it) Negeren are items of .koppel-rij */
.koppel-kies { display: flex; align-items: center; gap: .5rem; }
.koppel-kies select { flex: 1 1 auto; min-width: 0; }
.koppel-vorm select { width: auto; min-width: 7rem; }

/* Tab Kaart, Hotspots: the heart button that saves the hotspots as the favorite "Hotspots", on the row of the buttons, at the right */
.hotspot-fav { margin: 0 0 0 auto; }
.hotspot-fav .btn { gap: .4rem; }

/* Instellingen, Overige instellingen: a label and a number with its unit on one row */
.tijd-rij { display: grid; gap: .25rem; }
.tijd-rij .amount input { flex: 0 0 6rem; width: 6rem; }
.tijd-rij .amount select { min-width: 6.5rem; }
.tijd-rood { margin: 0; }
.tijd-getal { width: 6rem; }

/* Phones: the four tabs fit next to each other, the tile "Wijzigingen" sits at the bottom instead of over the title, and the buttons of a row go under each other */
@media (max-width: 40rem) {
  .tabs a { padding: .6rem .55rem; font-size: .95rem; }
  /* Waiting room: the list on its own row, then Koppelen left and Negeren right */
  .koppel-rij { display: grid; grid-template-columns: 1fr 1fr; }
  .koppel-kies { grid-column: 1 / -1; }
  .koppel-rij .btn { width: 100%; }
  .koppel-rij > form:not(.koppel-vorm) { display: grid; }   /* Negeren; the form with the list stays display: contents */
  .koppel-rij > * { min-width: 0; }
  .koppel-kies select { width: 100%; }
  /* Narrow view: hardly any margin, the map takes the whole width and most of the height */
  .page { padding-left: max(.5rem, env(safe-area-inset-left)); padding-right: max(.5rem, env(safe-area-inset-right)); padding-top: .75rem; }
  .card { padding: .6rem; }
  .card > .kaart { margin-inline: -1.1rem; }
  .page > .kaart, .narrow > .kaart { margin-inline: -.5rem; }
  .kaart { height: 78vh; height: 78dvh; min-height: 24rem; border-radius: 0; border-left: 0; border-right: 0; }
  .tegel { top: auto; bottom: .75rem; }
  /* The actions of a group card (Groep starten left, Groep verwijderen right) share one row at full width */
  /* The buttons of a card share the width: two next to each other when they fit (Stratenlijst left, Koppel vrijwilligers right), else under each other, all full width */
  .groep-rij .groep-uitklappen { flex: 1 1 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: .5rem; }
  .groep-uitklappen .btn, .groep-uitklappen details > summary.btn { width: 100%; display: flex; }
  .groep-rij .groep-details[open] { grid-column: 1 / -1; }
  .groep-acties { width: 100%; margin-left: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: .5rem; }
  .groep-acties form { display: grid; }
  .groep-acties .btn { width: 100%; }
  .kies-co .knoppen-naast { flex-direction: column; }
  .kies-co .knoppen-naast form { display: grid; }
  /* While streets are chosen the bar with "Klaar met selecteren" stays in view above the map, short: no title, no explanation */
  [data-kies-klaar-blok]:not([hidden]) { position: sticky; top: .5rem; z-index: 1100; background: var(--card); box-shadow: 0 4px 14px rgba(0, 0, 0, .25); padding: .6rem; gap: .5rem; }
  [data-kies-klaar-blok] .kaart-kop, [data-kies-klaar-blok] > p.muted:last-child { display: none; }
  [data-kies-klaar-blok] > p.muted { margin: 0; font-size: .9rem; }
  [data-kies-klaar-blok] .knoppen-naast { flex-direction: row; flex-wrap: wrap; }
  [data-kies-klaar-blok] .knoppen-naast > .btn, [data-kies-klaar-blok] .knoppen-naast > form { flex: 1 1 9rem; }
  [data-kies-klaar-blok] .knoppen-naast .btn { width: 100%; }
}

/* On a group card the grey buttons (Stratenlijst, Groep verwijderen) are just a thin outline, nothing more */
.groep .btn-secondary, .groep summary.btn-secondary { border-width: 1px; border-color: var(--muted); background: transparent; }
