/* stadsindex: station wayfinding. Yellow enamel signs, dark-blue hall, two inks for text. */

@font-face {
  font-family: "Overpass";
  src: url("../fonts/overpass-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue: #0B1F4D;
  --yellow: #FFC917;
  --yellow-2: #FFD84F;
  --white: #FFFFFF;
  --mist: #E8EBF2;
  --red: #DB0029;
  --rule-on-white: #D5DAE6;
  --blue-lift: #142B63;
  --placeholder: #5A6788;

  /* The "head": top bar, hall, footer and the header band of text pages. */
  --head-bg: var(--blue);
  --head-ink: var(--white);
  --head-accent: var(--yellow);
  --head-muted: rgb(255 255 255 / .6);
  --head-line: rgb(255 255 255 / .18);
  --search-border: transparent;
  /* Text on the accent (plates, buttons) and the accent as text on dark chips (group strips, highlights). */
  --on-accent: var(--blue);
  --chip-ink: var(--yellow);
  /* Number plates; follow the accent unless a palette keeps them neutral. */
  --plate-bg: var(--yellow);
  --plate-ink: var(--on-accent);
  /* Outline around each sign; only palettes with a pale page need it. */
  --sign-border: transparent;

  --gutter: clamp(16px, 3vw, 40px);
  --radius: 6px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  color-scheme: light;
  accent-color: var(--blue);
  scrollbar-color: var(--blue) var(--mist);
}

/* Calmer alternatives: the same design with softer colours. Preview with ?palet=<name>; Site:Palette sets the default. */
/* Leisteen: slate blue with soft ochre. */
:root[data-palette="leisteen"] {
  --blue: #2F4156;
  --yellow: #E3B65B;
  --yellow-2: #EAC67F;
  --mist: #EEF0F2;
  --red: #B5473A;
  --rule-on-white: #E0E4E8;
  --blue-lift: #3A4E66;
  --placeholder: #6B7A89;
}
/* Dennengroen: deep green with sand, like the parks along the singel. */
:root[data-palette="dennengroen"] {
  --blue: #2D4A3E;
  --yellow: #DDB57A;
  --yellow-2: #E6C694;
  --mist: #EDF0EC;
  --red: #B04A3C;
  --rule-on-white: #DFE5DF;
  --blue-lift: #385A4C;
  --placeholder: #6C7D74;
}
/* Light heads: the top section, footer and header bands turn light; text there goes dark. */
/* Ochtend: pale blue-grey with navy text and ochre plates. */
:root[data-palette="ochtend"] {
  --blue: #1F3550;
  --yellow: #E4B04A;
  --yellow-2: #EBC170;
  --mist: #F4F6F8;
  --red: #B5473A;
  --rule-on-white: #E1E6EC;
  --blue-lift: #2C4566;
  --placeholder: #677789;
  --head-bg: #E6EDF4;
  --head-ink: #1F3550;
  --head-accent: #8A5D12;
  --head-muted: rgb(31 53 80 / .5);
  --head-line: rgb(31 53 80 / .14);
  --search-border: rgb(31 53 80 / .2);
}
/* Ochtend variants without yellow: the same light blue-grey top and navy text, another accent. */
/* Ochtend blauw: all blue, a clear mid-blue for plates and rules. */
:root[data-palette="ochtend-blauw"] {
  --blue: #1F3550;
  --yellow: #4A7DB8;
  --yellow-2: #5D8DC4;
  --on-accent: #FFFFFF;
  --chip-ink: #C9DCF0;
  --mist: #F4F6F9;
  --red: #B5473A;
  --rule-on-white: #E1E6EC;
  --blue-lift: #2C4566;
  --placeholder: #677789;
  --head-bg: #E6EDF4;
  --head-ink: #1F3550;
  --head-accent: #2F5F96;
  --head-muted: rgb(31 53 80 / .5);
  --head-line: rgb(31 53 80 / .14);
  --search-border: rgb(31 53 80 / .2);
}
/* Ochtend koraal: navy and blue-grey warmed up by soft coral. */
:root[data-palette="ochtend-koraal"] {
  --blue: #1F3550;
  --yellow: #EC9A80;
  --yellow-2: #F1AE98;
  --on-accent: #1F3550;
  --chip-ink: #F6C3B2;
  --mist: #F4F6F8;
  --red: #B5473A;
  --rule-on-white: #E1E6EC;
  --blue-lift: #2C4566;
  --placeholder: #677789;
  --head-bg: #E6EDF4;
  --head-ink: #1F3550;
  --head-accent: #A84E33;
  --head-muted: rgb(31 53 80 / .5);
  --head-line: rgb(31 53 80 / .14);
  --search-border: rgb(31 53 80 / .2);
}
/* Ochtend mint: navy with a fresh sea-green accent. */
:root[data-palette="ochtend-mint"] {
  --blue: #1F3550;
  --yellow: #74C2B6;
  --yellow-2: #8ACDC2;
  --on-accent: #1F3550;
  --chip-ink: #A8DCD4;
  --mist: #F3F7F7;
  --red: #B5473A;
  --rule-on-white: #E0E7EA;
  --blue-lift: #2C4566;
  --placeholder: #677789;
  --head-bg: #E4EEF2;
  --head-ink: #1F3550;
  --head-accent: #23766B;
  --head-muted: rgb(31 53 80 / .5);
  --head-line: rgb(31 53 80 / .14);
  --search-border: rgb(31 53 80 / .2);
}
/* Grijs: greyscale, with one dusty blue in the rules, the logo and the Zoek button, a pale blue tint on the plates. */
:root[data-palette="grijs"] {
  --blue: #2A2D31;
  --yellow: #5F8FB4;
  --yellow-2: #719DC0;
  --on-accent: #FFFFFF;
  --chip-ink: #C9D9E6;
  --plate-bg: #D3E1EC;
  --plate-ink: #22303D;
  --sign-border: #DCDEE2;
  --mist: #F3F3F4;
  --red: #B4473F;
  --rule-on-white: #E3E4E6;
  --blue-lift: #3A3E44;
  --placeholder: #73777D;
  --head-bg: #EBECEE;
  --head-ink: #2A2D31;
  --head-accent: #46739A;
  --head-muted: rgb(42 45 49 / .5);
  --head-line: rgb(42 45 49 / .14);
  --search-border: rgb(42 45 49 / .2);
}
/* Grijs rood: the same greyscale, with a dusty red instead of the blue (hover goes darker, so white text stays readable). */
:root[data-palette="grijs-rood"] {
  --blue: #2A2D31;
  --yellow: #B65A52;
  --yellow-2: #A14740;
  --on-accent: #FFFFFF;
  --chip-ink: #F1C7C2;
  --plate-bg: #F0DCD9;
  --plate-ink: #2E2524;
  --sign-border: #DCDEE2;
  --mist: #F3F3F4;
  --red: #A3262A;
  --rule-on-white: #E3E4E6;
  --blue-lift: #3A3E44;
  --placeholder: #666A70;
  --head-bg: #EBECEE;
  --head-ink: #2A2D31;
  --head-accent: #97423A;
  --head-muted: rgb(42 45 49 / .5);
  --head-line: rgb(42 45 49 / .14);
  --search-border: rgb(42 45 49 / .2);
}
/* Zand: light sand with dark green-grey text and warm ochre. */
:root[data-palette="zand"] {
  --blue: #2F3B35;
  --yellow: #D7AE63;
  --yellow-2: #E0BF82;
  --mist: #F6F4EF;
  --red: #A9473B;
  --rule-on-white: #E6E2D9;
  --blue-lift: #3D4B44;
  --placeholder: #6F756E;
  --head-bg: #EFE9DD;
  --head-ink: #2F3B35;
  --head-accent: #7C5A1E;
  --head-muted: rgb(47 59 53 / .5);
  --head-line: rgb(47 59 53 / .14);
  --search-border: rgb(47 59 53 / .2);
}
/* Salie: light sage with deep green text and soft coral plates. */
:root[data-palette="salie"] {
  --blue: #24433A;
  --yellow: #E8A684;
  --yellow-2: #EEB99D;
  --mist: #F3F6F3;
  --red: #B04A3C;
  --rule-on-white: #DFE7E1;
  --blue-lift: #315649;
  --placeholder: #66796F;
  --head-bg: #E2ECE5;
  --head-ink: #24433A;
  --head-accent: #9B4E30;
  --head-muted: rgb(36 67 58 / .5);
  --head-line: rgb(36 67 58 / .14);
  --search-border: rgb(36 67 58 / .2);
}
/* Petrol: blue-green with soft coral. */
:root[data-palette="petrol"] {
  --blue: #1F4B59;
  --yellow: #EDAE92;
  --yellow-2: #F2C0A9;
  --mist: #ECF0F1;
  --red: #B4473F;
  --rule-on-white: #DCE3E6;
  --blue-lift: #2A5A6A;
  --placeholder: #66808A;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  font-family: "Overpass", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.4;
  background: var(--mist);
  color: var(--blue);
  caret-color: var(--blue);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  /* Keep the footer at the bottom of the window on short pages. */
  display: flex; flex-direction: column; min-height: 100vh;
}

::selection { background: var(--blue); color: var(--chip-ink); }

a { color: inherit; }
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px var(--yellow);
  border-radius: 2px;
}

svg { display: block; flex: none; }

.skip {
  position: absolute; left: var(--gutter); top: -60px; z-index: 10;
  background: var(--yellow); color: var(--on-accent); font-weight: 800;
  padding: 10px 14px; border-radius: 4px; text-decoration: none;
}
.skip:focus { top: 10px; }

/* Number plate: the one module every category carries everywhere */
.plate {
  display: inline-grid; place-items: center;
  min-width: 1.75em; height: 1.75em; padding: .12em .3em 0;
  border-radius: 3px;
  background: var(--plate-bg); color: var(--plate-ink);
  font-weight: 900; line-height: 1;
  font-variant-numeric: tabular-nums;
}

/* Overhead bar */
.bar {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 12px var(--gutter);
  background: var(--head-bg); color: var(--head-ink);
  border-bottom: 6px solid var(--yellow);
}
.wordmark {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--head-ink);
  font-size: 26px; font-weight: 900; letter-spacing: -.02em; line-height: 1;
}
.wordmark a { text-decoration: none; }
.wordmark-home { display: flex; align-items: center; gap: 10px; color: inherit; }
.wordmark-plate { width: 36px; height: 36px; }
.wordmark-name { padding-top: .12em; }
.wordmark-city { padding-top: .12em; color: var(--head-accent); font-weight: 600; }
.wordmark-city::before { content: "/"; margin: 0 .3em 0 .1em; font-weight: 400; }
.bar-note { margin-left: auto; font-size: 15px; font-weight: 600; color: var(--head-ink); opacity: .86; }

/* Hall: city name + search */
.hall {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 24px 48px; align-items: end;
  padding: 30px var(--gutter) 26px;
  background: var(--head-bg); color: var(--head-ink);
}
.hall h1 {
  font-size: clamp(56px, 8.5vw, 96px); font-weight: 900;
  line-height: .9; letter-spacing: -.035em;
  padding-top: .1em;
  overflow-wrap: anywhere;
}
/* A city's name is never broken over two lines: as large as above where it fits, smaller when the
   column is narrow or the name long (--chars is its length; a letter is about .6em wide here). */
.hall-name { container-type: inline-size; }
.hall h1.city-title {
  white-space: nowrap; overflow-wrap: normal;
  font-size: min(clamp(56px, 8.5vw, 96px), calc(100cqi / (var(--chars) * .6)));
}
.hall-sub { margin-top: 14px; font-size: 19px; font-weight: 600; color: var(--head-accent); max-width: 44ch; }

.search {
  display: flex; align-items: stretch;
  height: 72px; background: var(--white); border-radius: 4px; overflow: hidden;
  border: 1px solid var(--search-border);
}
.search:focus-within { box-shadow: 0 0 0 4px var(--yellow); }
.search-label {
  display: flex; align-items: center; padding: 3px 0 0 22px;
  font-size: 14px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  white-space: nowrap; color: var(--blue);
}
.search-input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: none;
  padding: 4px 18px 0; font: 600 24px/1 "Overpass", system-ui, sans-serif; color: var(--blue);
}
.search-input:focus-visible { box-shadow: none; outline: 0; }
.search-input::placeholder { color: var(--placeholder); opacity: 1; }
.search-input::-webkit-search-cancel-button { display: none; }
.search-go {
  border: 0; padding: 4px 30px 0; cursor: pointer;
  background: var(--yellow); color: var(--on-accent);
  font: 900 20px/1 "Overpass", system-ui, sans-serif;
  transition: background-color .15s;
}
.search-go:hover { background: var(--yellow-2); }
.search-go:focus-visible { outline-offset: -5px; box-shadow: none; }

.search-status { min-height: 1.4em; margin: 10px 0 -14px; font-size: 15px; font-weight: 600; color: var(--head-accent); }

/* The platform shortcuts run under the whole hall, like the platform index under a departures board. */
.platforms { grid-column: 1 / -1; min-width: 0; padding-top: 16px; border-top: 1px solid var(--head-line); }
/* One line, most relevant first: what doesn't fit is hidden (search.js), never squeezed or wrapped. */
.platforms ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; max-height: 30px; overflow: hidden; }
.platforms li[hidden] { display: none; }
/* The overview's city list exists for the phone picker only (see the 640px block). */
.platforms-phone { display: none; }
.platforms a {
  display: flex; align-items: center; gap: 7px;
  text-decoration: none; color: var(--head-ink);
  font-size: 14.5px; font-weight: 600; white-space: nowrap; padding: 2px 0;
}
.platforms a .plate { font-size: 14px; }
.platforms a .picto { width: 17px; height: 17px; margin: 0 -1px 0 0; }
.platforms a .sign-count { color: var(--head-accent); }
.platforms a:hover { color: var(--head-accent); }
.platforms a { transition: color .3s var(--ease-out); }
/* A platform with no hits goes dark like an unlit sign: outline plate, faded white, no blended colours. */
.platforms a.is-empty { color: var(--head-muted); }
.platforms a.is-empty .plate { background: transparent; color: var(--head-muted); box-shadow: inset 0 0 0 1px var(--head-muted); }
.platforms a.is-empty .sign-count { color: var(--head-muted); }

/* Signs */
main { padding: 22px var(--gutter) 8px; }

/* Fixed columns, filled server-side: folding rows never moves a sign to another column.
   Narrower screens drop the columns and show the signs in number order. */
.signs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: start; }

.sign {
  background: var(--white); border-radius: var(--radius); border: 1px solid var(--sign-border);
  padding: 16px 18px 12px;
  margin-bottom: 16px;
  scroll-margin-top: 16px; /* a card jumped to keeps a little air above it */
  transition: opacity .3s var(--ease-out);
}
/* Featured signs: a dark-blue header band over a white panel; yellow stays on the plate and rule only. */

.sign-head {
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 10px; border-bottom: 3px solid var(--yellow);
  font-size: 21px; font-weight: 900; line-height: 1.1; letter-spacing: -.01em;
}
.sign-head .plate { font-size: 18px; }
.sign-title { padding-top: .14em; min-width: 0; overflow-wrap: normal; }
.picto { width: 26px; height: 26px; margin-left: auto; }
.sign-count { font-size: 14px; font-weight: 800; padding-top: .2em; white-space: nowrap; }


.rows { list-style: none; padding: 0; }

/* Rows fold in place while searching, like a departure board updating. */
.row {
  display: grid; grid-template-rows: 1fr;
  break-inside: avoid;
  transition: grid-template-rows .32s var(--ease-out), opacity .24s var(--ease-out);
}
.row > a {
  min-height: 0; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 0 6px; margin: 0 -6px;
  text-decoration: none; color: var(--blue);
  border-bottom: 1px solid var(--rule-on-white);
  border-radius: 2px;
  transition: background-color .12s, color .12s;
}
.row-text { padding: 8px 0 6px; min-width: 0; }
.row-title { font-weight: 600; font-size: 16px; }
.row-note { display: block; font-size: 13.5px; font-weight: 400; line-height: 1.3; }
.arrow { width: 18px; height: 18px; transition: transform .2s var(--ease-out); }


.row > a:hover { background: var(--blue); color: var(--chip-ink); }
.row > a:hover .arrow { transform: translateX(3px); }
.row > a:focus-visible { outline-offset: 0; box-shadow: none; }

mark { background: var(--blue); color: var(--chip-ink); border-radius: 2px; padding: 0 .08em; }
.row > a:hover mark { background: var(--yellow); color: var(--on-accent); }

.more { margin-top: 10px; }
.more summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 10px 6px; border-radius: 3px; cursor: pointer; list-style: none;
  background: var(--plate-bg); color: var(--plate-ink); font-size: 15px; font-weight: 700;
}
.more summary::-webkit-details-marker { display: none; }
.more summary::after {
  content: ""; flex: none; width: 10px; height: 10px; margin-top: -4px;
  border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor;
  transform: rotate(45deg); transition: transform .2s var(--ease-out);
}
.more[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.more-label { min-width: 0; }
.more-count { margin-left: auto; font-weight: 600; white-space: nowrap; }
.more summary:hover { background: color-mix(in srgb, var(--plate-bg) 85%, var(--plate-ink)); }

/* Search state */
.row.is-out { grid-template-rows: 0fr; opacity: 0; }
.row.is-out > a { border-bottom-width: 0; }
/* While searching, cards without hits disappear; the others stay in their column. */
.sign.is-empty { display: none; }
.signs-col[hidden] { display: none; }

.empty {
  display: flex; align-items: center; gap: 16px;
  margin: 0 0 16px; padding: 20px 22px;
  background: var(--white); border-radius: var(--radius);
}
.empty[hidden] { display: none; }
.empty .picto { width: 38px; height: 38px; margin: 0; padding: 6px; border-radius: 3px; background: var(--red); color: var(--white); }
.empty button {
  font: inherit; font-weight: 800; color: var(--on-accent); cursor: pointer;
  background: var(--yellow); border: 0; border-radius: 3px; padding: 1px 7px 0;
}

/* About (SEO text) */
/* Same four columns as the signs above: the heading in the first, one paragraph per following column. */
.about {
  padding: 24px var(--gutter) 48px;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px;
  align-items: start;
}
.about h2 {
  padding: .1em 0 10px; border-bottom: 3px solid var(--yellow);
  font-size: 28px; font-weight: 900; letter-spacing: -.01em; line-height: 1.1;
}
.about p { font-size: 17px; line-height: 1.6; padding-top: 2px; }

.foot {
  margin-top: auto;
  display: flex; flex-wrap: wrap; gap: 6px 28px;
  padding: 18px var(--gutter);
  background: var(--head-bg); color: var(--head-ink);
  border-top: 6px solid var(--yellow); font-size: 15px;
}
.foot p:last-child { margin-left: auto; }

.foot-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot-links a { color: var(--head-ink); text-underline-offset: 3px; text-decoration-color: var(--head-muted); }
.foot-links a:hover { color: var(--head-accent); text-decoration-color: currentColor; }

/* Text pages (privacy, colofon, 404): one reading column on a white sign. */
.doc {
  width: calc(100% - 2 * var(--gutter)); max-width: 760px; align-self: center;
  margin: 32px 0 48px; padding: 0 32px 32px;
  background: var(--white); border-radius: var(--radius); overflow: hidden;
}
.doc h1 {
  margin: 0 -32px 24px; padding: 22px 32px 18px;
  background: var(--head-bg); color: var(--head-ink); border-bottom: 4px solid var(--yellow);
  font-size: 34px; font-weight: 900; line-height: 1.1; letter-spacing: -.01em;
}
.doc h2 { margin: 28px 0 8px; font-size: 21px; font-weight: 900; line-height: 1.2; }
.doc p, .doc li, .doc dd { font-size: 17px; line-height: 1.6; max-width: 65ch; }
.doc p + p { margin-top: 10px; }
.doc ul { margin: 8px 0 10px; padding-left: 1.2em; }
.doc a { text-underline-offset: 3px; }
.doc a:hover { background: var(--blue); color: var(--chip-ink); text-decoration: none; }
.doc-lead { font-size: 19px !important; font-weight: 600; }
.doc-facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 24px; }
.doc-facts dt { font-weight: 800; }
.doc-button {
  display: inline-block; margin-top: 8px; padding: 10px 16px 8px; border-radius: 4px;
  background: var(--yellow); color: var(--on-accent); font-weight: 900; text-decoration: none;
}
.doc .doc-button:hover { background: var(--yellow-2); color: var(--on-accent); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; }
}

/* Smaller screens */
/* Smaller desktops: three columns, so card titles keep room for one line; "Over Utrecht" follows. */
@media (min-width: 1101px) and (max-width: 1439px) {
  .signs, .about { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .about h2 { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 1100px) {
  .signs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
  .signs-col { display: contents; }
  .about { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about h2 { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 820px) {
  .hall { grid-template-columns: minmax(0, 1fr); padding-top: 28px; }
  .about { grid-template-columns: minmax(0, 1fr); gap: 8px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .bar { gap: 6px 16px; }
  .wordmark { font-size: 22px; }
  .wordmark-plate { width: 30px; height: 30px; }
  .bar-note { margin-left: 0; width: 100%; font-size: 13.5px; }
  .hall { padding-bottom: 24px; }
  .hall-sub { font-size: 17px; }
  .search { height: 60px; scroll-margin-top: 10px; }
  .sign { scroll-margin-top: 10px; }
  .search-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .search-input { font-size: 20px; padding-left: 16px; }
  .search-go { padding: 4px 20px 0; font-size: 18px; }
  /* Phones go straight from the search box to the signs; tapping the empty search box opens the
     full category list under it, in number order (search.js sets .is-picking). */
  .platforms { display: none; }
  .hall.is-picking .platforms { display: block; padding-top: 4px; border-top: 0; }
  .hall.is-picking .platforms ul {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px;
    max-height: none; overflow: visible;
  }
  .hall.is-picking .platforms li { order: var(--n); }
  .hall.is-picking .platforms a {
    min-height: 44px; padding: 6px 0; gap: 8px;
    white-space: normal; line-height: 1.2; font-size: 15px;
    border-bottom: 1px solid var(--head-line);
  }
  main { padding-top: 20px; }
  .signs { grid-template-columns: minmax(0, 1fr); }
  .foot p:last-child { margin-left: 0; }
  .signs { margin-top: 12px; }
  .sign { margin-bottom: 12px; }
  .doc { margin: 20px 0 32px; padding: 0 20px 24px; }
  .doc h1 { margin: 0 -20px 20px; padding: 18px 20px 14px; font-size: 28px; }
}

/* Forms (contact, beheer login) */
.form { display: grid; gap: 18px; margin-top: 8px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field label { font-weight: 800; font-size: 16px; }
.field-optional { font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 12px 9px; border: 1px solid var(--rule-on-white); border-radius: 4px;
  background: var(--white); color: var(--blue); font: 500 17px/1.4 "Overpass", system-ui, sans-serif;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 3px solid var(--blue); outline-offset: 0; box-shadow: 0 0 0 6px var(--yellow); border-radius: 4px;
}
.field input.input-validation-error, .field textarea.input-validation-error { border-color: var(--red); }
.field-error { color: var(--red); font-size: 15px; font-weight: 700; }
.field-error:empty { display: none; }
.field-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 15px !important; }
.form-alert { padding: 10px 14px 8px; border-radius: 4px; background: var(--red); color: var(--white); font-weight: 700; }
.form-ok { padding: 10px 14px 8px; border-radius: 4px; background: var(--plate-bg); color: var(--plate-ink); font-weight: 700; }
.form .doc-button { justify-self: start; border: 0; cursor: pointer; font-size: 17px; font-family: inherit; }

/* Beheer */
.admin-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; margin-left: auto; }
.admin-tabs a, .admin-tabs button {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 0 2px;
  color: var(--head-ink); font: 700 16px "Overpass", system-ui, sans-serif; text-decoration: none;
  background: none; border: 0; border-bottom: 3px solid transparent; cursor: pointer;
}
.admin-tabs a[aria-current="page"] { border-bottom-color: var(--yellow); }
.admin-tabs a:hover, .admin-tabs button:hover { color: var(--head-accent); }
.admin-tabs .plate { font-size: 13px; }
.admin-main { width: 100%; max-width: 1200px; margin: 0 auto; padding: 28px var(--gutter) 48px; }
.admin-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 18px; }
.admin-head h1 { font-size: 32px; font-weight: 900; line-height: 1.1; }
.admin-device { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: -6px 0 18px; font-size: 15px; color: var(--placeholder); }
.admin-device button {
  padding: 5px 12px 3px; border: 0; border-radius: 3px; background: var(--plate-bg); color: var(--plate-ink);
  font: 700 14px "Overpass", system-ui, sans-serif; cursor: pointer;
}
.admin-device button:hover { background: var(--yellow); color: var(--on-accent); }
.admin-periods { display: flex; flex-wrap: wrap; gap: 6px; }
.admin-periods a {
  padding: 6px 12px 4px; border-radius: 4px; background: var(--white); color: var(--blue);
  font-weight: 700; text-decoration: none; font-size: 15px;
}
.admin-periods a[aria-current="page"] { background: var(--blue); color: var(--white); }
.admin-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.tile { display: grid; gap: 2px; padding: 16px 18px 12px; background: var(--white); border-radius: var(--radius); border-top: 4px solid var(--yellow); color: var(--blue); text-decoration: none; }
.tile-value { font-size: 36px; font-weight: 900; line-height: 1; }
.tile-label { font-size: 15px; font-weight: 600; }
a.tile:hover { background: var(--blue); color: var(--white); }
.admin-panel { background: var(--white); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 16px; min-width: 0; }
.admin-panel--flush { padding: 0; overflow: hidden; }
.admin-panel h2 { font-size: 19px; font-weight: 900; padding-bottom: 8px; margin-bottom: 10px; border-bottom: 3px solid var(--yellow); }
.admin-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 16px; }
.admin-panel--wide { grid-column: span 2; grid-row: span 2; }
.admin-empty, .admin-note { font-size: 15px; color: var(--placeholder); }
.admin-foot { margin-top: 8px; }
.chart svg { display: block; width: 100%; height: 180px; }
.bar-views { fill: var(--rule-on-white); }
.bar-visitors { fill: var(--blue); }
.chart-base { stroke: var(--placeholder); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart-labels { display: grid; font-size: 12px; color: var(--placeholder); white-space: nowrap; margin-top: 4px; }
.chart-labels span { overflow: visible; }
.chart-legend { margin-top: 10px; font-size: 14px; color: var(--placeholder); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.key { display: inline-block; width: 12px; height: 12px; border-radius: 2px; }
.key-views { background: var(--rule-on-white); }
.key-visitors { background: var(--blue); margin-left: 10px; }
.count-list { list-style: none; padding: 0; display: grid; gap: 4px; }
.count-list li {
  display: flex; justify-content: space-between; gap: 12px; padding: 6px 8px 4px; border-radius: 3px;
  background: linear-gradient(to right, var(--mist) var(--share), transparent var(--share));
  font-size: 15px;
}
.count-label { min-width: 0; overflow-wrap: anywhere; font-weight: 600; }
.count-label small { display: block; font-weight: 400; font-size: 13px; color: var(--placeholder); }
.count-value { font-weight: 800; font-variant-numeric: tabular-nums; }
.message-list { list-style: none; padding: 0; }
.message-list li + li { border-top: 1px solid var(--rule-on-white); }
.message-list a { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; padding: 14px 18px 12px; color: var(--blue); text-decoration: none; }
.message-list a:hover { background: var(--mist); }
.message-subject { font-weight: 700; }
.message-list .is-unread .message-subject { font-weight: 900; }
.message-list .is-unread .message-subject::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 8px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 1px var(--blue); }
.message-from, .message-preview { grid-column: 1; font-size: 15px; }
.message-preview { color: var(--placeholder); }
.message-list time { grid-column: 2; grid-row: 1; font-size: 14px; color: var(--placeholder); white-space: nowrap; }
.admin-back { font-weight: 700; color: var(--blue); }
.admin-message { margin-top: 12px; }
.message-body { margin: 20px 0; padding: 16px; border-radius: 4px; background: var(--mist); white-space: pre-wrap; font-size: 17px; line-height: 1.6; overflow-wrap: anywhere; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.admin-button { padding: 9px 14px 7px; border: 0; border-radius: 4px; background: var(--mist); color: var(--blue); font: 700 15px "Overpass", system-ui, sans-serif; cursor: pointer; }
.admin-button:hover { background: var(--rule-on-white); }
.admin-button--danger { background: var(--red); color: var(--white); }
.admin-button--danger:hover { background: var(--red); filter: brightness(.9); }
.admin-login { max-width: 460px; }
.admin .doc { margin-top: 0; }
@media (max-width: 900px) {
  .admin-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-grid { grid-template-columns: minmax(0, 1fr); }
  .admin-panel--wide { grid-column: auto; grid-row: auto; }
}
@media (max-width: 640px) {
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .admin-tabs { margin-left: 0; width: 100%; }
}

/* Design variants: layered on top of the palette, previewed with ?design=<name>.
   alt1 ("less red"): the accent only marks the brand and what answers the visitor (logo, Zoek,
   search hits and counts, focus); structure is grey: card rules, plates, "Meer" strips, page bars. */
:root[data-design="alt1"] {
  --plate-bg: #E6E7E9;
  --plate-ink: #2A2D31;
}
[data-design="alt1"] .bar { border-bottom: 1px solid var(--head-line); }
[data-design="alt1"] .foot { border-top: 1px solid var(--head-line); }
[data-design="alt1"] .hall-sub { color: var(--head-ink); }
[data-design="alt1"] .sign-head { border-bottom: 2px solid var(--blue); }
[data-design="alt1"] .about h2 { border-bottom: 2px solid var(--blue); }
[data-design="alt1"] .doc h1 { border-bottom: 2px solid var(--blue); }
[data-design="alt1"] mark { background: var(--yellow); color: var(--on-accent); }
[data-design="alt1"] .sign-count { color: var(--head-accent); }
/* alt1: hovering a link lights it up in the accent (white on red), like the Zoek button. */
[data-design="alt1"] .row > a:hover { background: var(--yellow); color: var(--on-accent); }
[data-design="alt1"] .row > a:hover mark { background: var(--on-accent); color: var(--yellow); }
[data-design="alt1"] .doc a:hover { background: var(--yellow); color: var(--on-accent); }

/* Overview of cities ("/"): one card per city, the same sign as on the city pages. */
.cities { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; align-items: start; }
.city[hidden] { display: none; }
.city-name { color: inherit; text-decoration: none; }
.city-name:hover { text-decoration: underline; text-underline-offset: 4px; }
.city-facts { margin: 8px 0 2px; font-size: 14px; color: var(--placeholder); }
.city-all, .sign-link {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px;
  padding: 9px 10px 7px; border-radius: 3px; background: var(--plate-bg); color: var(--plate-ink);
  font-size: 15px; font-weight: 700; text-decoration: none;
}
.city-all:hover, .sign-link:hover { background: var(--yellow); color: var(--on-accent); }
/* A card's pointer to a related card further down (gemeente → Nood & storing), with that card's number. */
.sign-link-plate { margin-right: 8px; font-variant-numeric: tabular-nums; opacity: .75; }

/* Venue pages (/horeca, /winkelen): all venues of a city per category, filtered by district.
   The cards are the city page's signs; the district filter is a strip under the hall. */
.hall-venues h1 { font-size: clamp(40px, 6vw, 76px); }
.hall-venues .hall-sub { max-width: 52ch; }
.venue-also { display: inline-block; margin-top: 4px; color: var(--head-ink); text-underline-offset: 3px; }
.venue-also::after { content: " →"; }
.venue-also:hover { color: var(--head-accent); }
.districts {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding: 0 var(--gutter) 22px;
  background: var(--head-bg); color: var(--head-ink);
}
.districts-label { margin-right: 6px; font-size: 15px; font-weight: 800; white-space: nowrap; }
.districts a {
  display: inline-flex; align-items: baseline; gap: 6px; padding: 7px 12px 5px;
  border: 1px solid var(--search-border); border-radius: 3px; background: var(--white);
  font-size: 15px; font-weight: 700; text-decoration: none; white-space: nowrap;
}
.districts a:hover { border-color: var(--head-ink); }
.districts a[aria-current="page"] { background: var(--blue); border-color: var(--blue); color: var(--white); }
.districts-n { font-size: 13px; font-weight: 600; opacity: .7; }
.districts select {
  min-width: 0; max-width: 100%; height: 42px; padding: 0 10px;
  border: 1px solid var(--search-border); border-radius: 3px; background: var(--white); color: var(--blue);
  font: inherit; font-size: 16px; font-weight: 700;
}
.districts button {
  height: 42px; padding: 3px 16px 0; border: 0; border-radius: 3px; cursor: pointer;
  background: var(--yellow); color: var(--on-accent); font: inherit; font-weight: 800;
}
.districts button[hidden] { display: none; }
.venue-credit { font-size: 15px !important; }
.venue-credit a, .about a { text-underline-offset: 3px; }
@media (max-width: 640px) {
  .hall-venues h1 { font-size: 40px; }
  /* One swipeable line of district buttons instead of a tall block. */
  nav.districts { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 18px; scrollbar-width: none; }
  nav.districts::-webkit-scrollbar { display: none; }
  .districts select { flex: 1; }
}
