/* Bob, drawn as a printed comic: newsprint paper, ink outlines, flat red / yellow / cyan, Ben-Day dots, speech balloons.
   Permit colours keep the drafting convention of Greek building drawings: red for what is new, yellow for what comes down.
   The permit itself stays a real object, the printed site sign (πινακίδα έργου), drawn into the page. */
:root {
  --ink: #24193f;
  --ink-2: #3d2f5e;
  --ink-3: #6b5d86;
  --paper: #fffaf1;
  --news: #f7ecdc;
  --soft: #e9d8c0;
  --v: #6a3df5;
  --v-2: #8a66ff;
  --b: #2f6bff;
  --sky: #5ec8ff;
  --hi: #e4d9ff;
  --y: #ffd21a;
  --r: #ff3b5c;
  --cy: var(--sky);
  --k-new: #6a3df5;
  --k-add: #2f8cff;
  --k-demo: #ff8a1f;
  --k-ren: #9a8db5;
  --k-other: #c9bfd6;
  --plot: #24193f;
  --focus: #2f6bff;
  --bg: var(--news); --surface: var(--paper); --rule: var(--soft); --wash: var(--news); --blue: var(--ink);
  --text: "Playpen Sans", "Comic Sans MS", "Segoe Print", system-ui, sans-serif;
  --display: "Dela Gothic One", "Arial Black", Impact, sans-serif;
  --sign: var(--display);
  --mono: var(--text);
  --hard: 4px 4px 0 var(--ink);
  --r-lg: 18px;
  --r-md: 12px;
  --top-h: 56px;
  --panel-w: 410px;
  --gap: 14px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
html { -webkit-text-size-adjust: 100%; }
/* an app, not a document: the page itself never bounces or pinch-zooms; the map takes the gestures, the panel only scrolls */
html, body { overscroll-behavior: none; }
.top, .panel { touch-action: pan-x pan-y; }
button, a, input, select, label { touch-action: manipulation; }
body { margin: 0; background: var(--news); color: var(--ink); font: 400 15px/1.5 var(--text); font-variant-numeric: tabular-nums; overflow: hidden; }
a { color: var(--ink); text-underline-offset: .2em; text-decoration-thickness: 2px; text-decoration-color: var(--v); }
a:hover { background: var(--hi); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p, ul, ol, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
svg { display: block; }
[hidden] { display: none !important; }
::selection { background: var(--hi); color: var(--ink); }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -3rem; background: var(--hi); border: 3px solid var(--ink); padding: .4rem .8rem; z-index: 50; }
.skip:focus { top: 8px; }

/* masthead, like the title strip of a comic */
.top { height: calc(var(--top-h) + env(safe-area-inset-top, 0px)); padding: env(safe-area-inset-top, 0px) 16px 0; display: flex; align-items: center;
  justify-content: space-between; gap: 12px; background: radial-gradient(circle, var(--v-2) 1.7px, transparent 2.1px) 0 0 / 8px 8px, var(--v); border-bottom: 3px solid var(--ink); position: relative; z-index: 20; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; min-width: 0; }
.brand:hover { background: none; }
.brand-face { width: 44px; height: 44px; flex: none; margin-top: 6px; }
.brand-name { font: 400 30px/1 var(--display); letter-spacing: .02em; color: var(--paper); -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill;
  text-shadow: 3px 3px 0 var(--sky); }
.brand-sub { font: 700 14px/1.1 var(--text); color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-nav { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.top-nav a { display: inline-flex; align-items: center; min-height: 40px; text-decoration: none; font-weight: 700; font-size: 14.5px; padding: 0 2px; color: #fff; }
.top-nav a:hover { background: none; text-decoration: underline 3px var(--sky); text-underline-offset: 6px; }
.donate { padding: 6px 12px !important; border-radius: 999px; background: var(--paper); color: var(--ink) !important; }

/* layout: the map fills the window, the panel is a comic panel floating over it */
.app { height: calc(100% - var(--top-h) - env(safe-area-inset-top, 0px)); position: relative; }
.map-wrap { position: absolute; inset: 0; }
#map { position: absolute; inset: 0; background: var(--news); }
.panel { position: absolute; top: var(--gap); left: var(--gap); bottom: var(--gap); width: var(--panel-w); background: var(--paper); border: 3px solid var(--ink);
  border-radius: var(--r-lg); box-shadow: 6px 6px 0 var(--ink); display: flex; flex-direction: column; min-height: 0; overflow: hidden; z-index: 10; }
.grab { display: none; }

/* Bob and his balloon */
.balloon::before, .balloon::after { content: ""; position: absolute; left: -17px; bottom: 16px; border: 10px solid transparent; border-right: 16px solid var(--ink); border-left: 0; }
.balloon::after { left: -11px; bottom: 18px; border-width: 8px 13px 8px 0; border-right-color: #fff; }
.ask { font: 400 23px/1.05 var(--display); margin-bottom: 5px; }
.ask span { color: var(--v); }

/* search: one field */
.search { display: flex; gap: 8px; margin: 14px 16px 0; }
.search input { flex: 1; min-width: 0; height: 50px; padding: 0 14px; border: 3px solid var(--ink); border-radius: var(--r-md); background: #fff; font-size: 16px; font-weight: 400; }
.search input::placeholder { color: #8a8478; }
.search input:focus { outline: none; border-color: var(--b); }
.btn-icon { width: 50px; height: 50px; display: grid; place-items: center; border: 3px solid var(--ink); border-radius: var(--r-md); background: var(--b); color: #fff; flex-shrink: 0; }
.btn-icon svg { width: 22px; height: 22px; stroke-width: 2.6; }
.btn-icon:hover { background: var(--v); }
.tools { display: flex; align-items: center; gap: 6px 16px; margin: 12px 16px 0; flex-wrap: wrap; }
.chip-btn { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 14px; border: 2.5px solid var(--ink); border-radius: 999px; background: var(--paper); font-size: 14px; font-weight: 700; white-space: nowrap; }
.chip-btn:hover { text-decoration: underline 2px var(--v); text-underline-offset: 4px; }
.select { flex: 1; min-width: 0; height: 44px; padding: 0 22px 0 2px; border: 0; border-bottom: 3px solid var(--ink); border-radius: 0; background: transparent
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M0 0l6 8 6-8z' fill='%23141414'/%3E%3C/svg%3E") right 4px center no-repeat;
  appearance: none; -webkit-appearance: none; font-size: 14px; font-weight: 700; }
/* «Πότε»: the period as words, always in view, and the months since 2022 as a timeline to tap or drag; kinds as the legend */
.when-box { padding: 12px 16px 0; }
.panel.in-projects .when-box { display: none; }
.tl { margin-top: 8px; touch-action: none; cursor: pointer; border-radius: 4px; }
.tl:focus-visible { outline: 3px solid var(--v); outline-offset: 3px; }
.tl svg { display: block; width: 100%; height: 42px; overflow: visible; }
.tl-years { position: relative; height: 16px; margin-top: 3px; }
.tl-years span { position: absolute; top: 0; font: 700 11px/16px var(--text); color: var(--ink-3); }
.tl .off { opacity: .22; }
.tl .wait { fill: var(--soft); }
.tl .pick { fill: none; stroke: var(--ink); stroke-width: 2; }
.tl .axis { stroke: var(--soft); }
.tl-read { margin: 6px 0 0; font-size: 14px; }
.tl-read .link { margin-left: 6px; }
.kindbar { padding: 12px 16px 0; }
.panel.in-projects .kindbar { display: none; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.row-label { font-weight: 700; font-size: 13px; min-width: 56px; }
.seg { display: inline-flex; }
#radius { display: grid; grid-template-columns: repeat(3, minmax(50px, auto)) minmax(66px, auto); gap: 0; }
#radius button { position: relative; height: 34px; padding: 0; border: 0; background: transparent; font: 700 12.5px/1 var(--text); color: var(--ink-3); }
#radius button::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 9px; border: 2.5px solid var(--ink); background: #fff; }
#radius button + button::after { border-left-width: 0; }
#radius button.on::after { background: var(--ink); }
#radius button:nth-child(even).on::after { background: repeating-linear-gradient(90deg, var(--ink) 0 6px, #fff 6px 8px); }
#radius button span { position: absolute; right: -7px; top: 1px; }
#radius button:last-child span { right: 0; }
#radius button[aria-pressed="true"] { color: var(--ink); }
#radius button[aria-pressed="true"] span { background: var(--hi); padding: 0 3px; }
#period { display: flex; gap: 6px; flex-wrap: wrap; }
#period button { flex: none; white-space: nowrap; min-height: 36px; padding: 0 9px; border: 2px solid var(--ink); border-radius: 999px; background: var(--paper); font-size: 14px; color: var(--ink); }
#period button[aria-pressed="true"] { background: var(--v); border-color: var(--v); color: #fff; font-weight: 700; text-decoration: none; box-shadow: 0 2px 0 var(--ink); }
#period button:not([aria-pressed="true"]):hover { background: color-mix(in srgb, var(--v) 10%, var(--paper)); }
.kinds { display: flex; flex-wrap: wrap; gap: 6px; }
.lg { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 11px 0 9px; border: 2px solid var(--soft); border-radius: 999px; background: transparent;
  font-size: 13.5px; color: var(--ink-3); white-space: nowrap; }
.lg:hover { border-color: var(--ink-3); }
.lg[aria-pressed="true"] { color: var(--ink); font-weight: 700; border-color: var(--ink); background: #fff; }
.lg b { font-weight: 700; font-size: 12.5px; color: var(--ink-3); }
.lg[aria-pressed="false"] .sym { opacity: .3; }

/* permit symbols, the same on the map, in the legend and in the list */
.sym { display: inline-block; width: 13px; height: 13px; border-radius: 50%; background: var(--c); border: 2px solid var(--ink); }
.sym.addition { background: #fff; border: 3px solid var(--c); box-shadow: 0 0 0 1.5px var(--ink); width: 12px; height: 12px; }
.sym.demolition { border-radius: 0; background: repeating-linear-gradient(45deg, var(--c) 0 3px, var(--ink) 3px 4px); }
.sym.renovation { width: 10px; height: 10px; margin: 1.5px; }
.sym.other { background: #fff; }
.sym.plot { border-radius: 0; background: transparent; border: 2px dashed var(--ink); }

/* Bob talking: a small Bob and his balloon */
.status { display: none; grid-template-columns: 52px 1fr; gap: 10px; align-items: end; padding: 14px 16px 2px; }
.status.on { display: grid; }
.status .mini { position: relative; width: 52px; height: 52px; padding: 0; border: 0; background: none; cursor: pointer; }
.status .mini-face { display: block; width: 52px; height: 52px; border-radius: 50%; border: 3px solid var(--ink); background: var(--sky); overflow: hidden; }
.status .mini-face svg { width: 70px; height: 70px; margin: -4px 0 0 -12px; }
.status .balloon { font-size: 15px; padding: 9px 13px 10px; }
.status .balloon::before { bottom: 10px; } .status .balloon::after { bottom: 12px; }
.status strong { font-weight: 700; background: var(--hi); padding: 0 3px; }
.content { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 0 0 12px; margin-top: 12px; border-top: 2px solid var(--soft); scrollbar-color: var(--soft) transparent; }
.content-foot { padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px)); font-size: 12.5px; color: var(--ink-3); }

/* narration caption, the yellow box of a comic */
.cap { font-weight: 700; font-size: 14px; line-height: 1.35; }

/* intro: three panels of a strip, each a real finding */
.fine { font-size: 12.5px; color: var(--ink-3); }

/* Bob's summary above the list */
.link { display: inline; padding: 0; border: 0; background: none; font-weight: 700; color: var(--ink); text-decoration: underline 2px var(--v); text-underline-offset: .2em; }
.link:hover { color: var(--v); }
.status .link { display: block; margin-top: 4px; font-size: 13px; }

/* result list */
.list { display: grid; }
.item { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; gap: 3px 12px; align-items: start; width: 100%; text-align: left;
  border: 0; border-bottom: 1.5px solid var(--soft); background: transparent; padding: 12px 16px; color: var(--ink); }
.item:hover { background: color-mix(in srgb, var(--v) 9%, var(--paper)); }
.item[aria-current="true"] { background: color-mix(in srgb, var(--v) 16%, var(--paper)); box-shadow: inset 5px 0 0 var(--v); }
.item .dot { margin-top: 4px; }
.item .t { font-weight: 700; line-height: 1.35; }
.item .m { grid-column: 2 / 4; font-size: 13px; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 2px 6px; }
.item .m > span + span::before { content: '·'; margin-right: 6px; }
.item .d { font-size: 12.5px; line-height: 1.6; color: var(--ink-3); white-space: nowrap; }
.item .co { grid-column: 2 / 4; font-size: 12.5px; color: var(--ink-2); font-weight: 700; overflow-wrap: anywhere; }
.more { margin: 14px 16px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 42px; padding: 0 16px; border-radius: var(--r-md);
  border: 2.5px solid var(--ink); background: #fff; color: var(--ink); font-weight: 700; font-size: 14px; text-decoration: none; }
.btn:hover { background: var(--news); }
.btn.primary { background: var(--v); color: #fff; box-shadow: 3px 3px 0 var(--ink); }
.btn.primary:hover { background: color-mix(in srgb, var(--v) 88%, #000); }
.empty { padding: 16px; display: grid; gap: 14px; }
.empty .scene { display: grid; grid-template-columns: 96px 1fr; gap: 8px; align-items: center; }
.empty .scene .who { position: relative; }
.empty .scene .who svg:first-child { width: 96px; height: 96px; }
.empty .scene .who svg + svg { position: absolute; width: 46px; right: -10px; bottom: -4px; transform: rotate(-8deg); }

/* loading: Bob reading */
.loading { padding: 24px 16px; display: grid; grid-template-columns: 72px 1fr; gap: 12px; align-items: center; font-weight: 700; }
.loading svg { width: 72px; height: 72px; }
.spinner { width: 16px; height: 16px; border: 3px solid var(--soft); border-top-color: var(--ink); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }

/* detail: the scene, a plain heading, a few big numbers, the actions; the paperwork folded away */
.detail { padding: 8px 16px 18px; display: grid; gap: 14px; }
.back { justify-self: start; border: 0; background: none; font-weight: 700; min-height: 44px; padding: 0; }
.back:hover { text-decoration: underline 2px var(--v); text-underline-offset: 4px; }
.where { font-size: 14px; color: var(--ink-2); }
.d-head { display: grid; gap: 5px; }
.kicker { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--ink-3); }
.d-head h2 { font: 400 21px/1.2 var(--display); letter-spacing: .01em; text-wrap: pretty; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 8px; margin: 0; }
.facts div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 2px; padding: 9px 10px 8px; border-radius: var(--r-md); background: var(--news); }
.facts dd { font: 400 22px/1 var(--display); }
.facts dt { font-size: 12.5px; color: var(--ink-2); line-height: 1.2; }
/* a plot that is part of wider land the permit gives (drawn dashed on the map) */
.plot-note { margin: 10px 0 0; font-size: 14.5px; line-height: 1.35; color: var(--ink-2); }
.block h3 { font: 700 13px/1.2 var(--text); color: var(--ink-3); margin-bottom: 6px; }
.block > p { margin-top: 6px; }
.company { display: grid; gap: 3px; font-size: 14px; }
.company b { font-weight: 700; overflow-wrap: anywhere; }
.company span { color: var(--ink-2); overflow-wrap: anywhere; }
.timeline { display: grid; border-left: 2.5px solid var(--ink); margin-left: 6px; }
.timeline li { position: relative; padding: 0 0 12px 16px; font-size: 14px; }
.timeline li::before { content: ""; position: absolute; left: -8.5px; top: 5px; width: 11px; height: 11px; border-radius: 50%; background: var(--c); border: 2.5px solid var(--ink); }
.timeline li[aria-current="true"] { font-weight: 700; }
.timeline button { border: 0; background: none; padding: 0; text-align: left; text-decoration: underline 2px var(--v); text-underline-offset: .2em; }
.timeline .when { font-size: 12.5px; color: var(--ink-3); margin-right: 8px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.detail .actions .btn { flex: 1 1 auto; }
.detail .actions .btn.primary { flex-basis: 100%; }
.more { border-top: 1.5px solid var(--soft); padding-top: 10px; }
.more summary { cursor: pointer; font-weight: 700; font-size: 14px; color: var(--ink-2); }
.more[open] summary { margin-bottom: 10px; }
.specs { display: grid; gap: 0; margin: 0 0 10px; font-size: 13.5px; }
.specs div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--soft); }
.specs dt { color: var(--ink-2); }
.specs dd { font-weight: 700; text-align: right; white-space: nowrap; flex: none; }
.specs dd.wrap { white-space: normal; flex: 1 1 0; min-width: 55%; }
.specs dt { min-width: 0; flex: 0 1 auto; }
.links { font-size: 14px; margin-bottom: 8px; }
.redact { display: inline-block; width: 9.5em; height: .95em; background: var(--ink); vertical-align: -1px; }

/* map furniture */
.maplibregl-ctrl-group { background: #fff !important; border: 2.5px solid var(--ink); border-radius: 10px !important; box-shadow: none !important; overflow: hidden; }
.maplibregl-ctrl-group button + button { border-top: 1.5px solid var(--soft) !important; }
.maplibregl-ctrl-attrib { font: 11px/1.4 system-ui, sans-serif; }
.legend { position: absolute; left: calc(var(--panel-w) + var(--gap) * 2 + 10px); bottom: 26px; display: flex; flex-wrap: wrap; gap: 6px 16px; pointer-events: none;
  background: rgba(255, 255, 255, .92); border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: 12.5px; }
.legend span { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }

/* Bob the kitten. art.js sets --lx/--ly (where he looks) on each drawing and his mood as a class on <html>. */
.bob-svg * { transform-box: view-box; }
.bob-svg .c-happy, .bob-svg .c-shut { display: none; }
.bob-svg .c-eyes { transform: translate(calc(var(--lx, 0) * 7px), calc(var(--ly, 0) * 5px)); transition: transform .15s ease-out; }
.bob-svg .c-face { transform: translate(calc(var(--lx, 0) * 4px), calc(var(--ly, 0) * 3px)); transition: transform .2s ease-out; }
.bob-svg .c-eye, .bob-svg .c-nose, .bob-svg .c-whisk { transform-box: fill-box; transform-origin: center; transition: transform .15s; }
.bob-svg .c-all { transform-origin: 100px 198px; }
.bob-svg .c-head { transform-origin: 100px 148px; transition: transform .3s ease; }
.bob-svg .c-ear-l { transform-origin: 54px 78px; transition: transform .15s; }
.bob-svg .c-ear-r { transform-origin: 146px 78px; transition: transform .15s; }
.bob-svg .c-tail { transform-origin: 130px 184px; animation: bob-tail 3.2s ease-in-out infinite alternate; }
.bob-svg .c-tail path { transition: stroke-width .2s; }
.bob-svg .c-paw-l { transform-origin: 84px 166px; transition: transform .2s; }
.bob-svg .c-tape { transform-origin: 88px 176px; transition: transform .3s; }
.bob-blink .bob-svg .c-eyes, .bob-sleep .bob-svg .c-eyes { display: none; }
.bob-blink .bob-svg .c-shut, .bob-sleep .bob-svg .c-shut { display: inline; }
.bob-happy .bob-svg .c-eyes, .bob-purr .bob-svg .c-eyes, .bob-happy .bob-svg .c-shut, .bob-purr .bob-svg .c-shut { display: none; }
.bob-happy .bob-svg .c-happy, .bob-purr .bob-svg .c-happy { display: inline; }
.bob-happy .bob-svg .c-all { animation: bob-hop .42s ease-out 2; }
.bob-happy .bob-svg .c-tape { transform: scaleX(1.4); }
.bob-happy .bob-svg .c-tail { animation-duration: .45s; }
.bob-twitch .bob-svg .c-ear-r { transform: rotate(16deg); }
.bob-wow .bob-svg .c-eye { transform: scale(1.2); }
.bob-wow .bob-svg .c-ear-l { transform: rotate(-16deg); }
.bob-wow .bob-svg .c-ear-r { transform: rotate(16deg); }
.bob-wow .bob-svg .c-tail { animation: bob-slap .3s ease-out 2; }
.bob-wow .bob-svg .c-all { animation: bob-jump .4s ease-out; }
.bob-hmm .bob-svg .c-head { transform: rotate(-12deg); }
.bob-sniff .bob-svg .c-nose { animation: bob-sniff .16s ease-in-out 6 alternate; }
.bob-sniff .bob-svg .c-whisk { animation: bob-whisk .16s ease-in-out 6 alternate; }
.bob-purr .bob-svg .c-all { animation: bob-purr .07s linear infinite alternate; }
.bob-purr .bob-svg .c-head { transform: rotate(6deg); }
.bob-search .bob-svg .c-paw-l { animation: bob-bat .55s ease-in-out infinite alternate; }
.bob-search .bob-svg .c-eyes { transform: translate(-4px, 5px); }
.bob-sleep .bob-svg .c-head { transform: rotate(7deg) translateY(5px); }
.bob-sleep .bob-svg .c-tail { animation-play-state: paused; }
.bob-sleep @keyframes bob-tail { from { transform: rotate(-4deg); } to { transform: rotate(6deg); } }
@keyframes bob-slap { 50% { transform: rotate(-22deg); } }
@keyframes bob-hop { 0%, 100% { transform: none; } 40% { transform: translateY(-16px) scale(.95, 1.05); } 75% { transform: scale(1.06, .94); } }
@keyframes bob-jump { 40% { transform: translateY(-12px); } }
@keyframes bob-sniff { to { transform: translateY(-1.5px) scale(1.15); } }
@keyframes bob-whisk { to { transform: rotate(4deg); } }
@keyframes bob-purr { from { transform: translate(-.6px, 0); } to { transform: translate(.6px, .4px); } }
@keyframes bob-bat { to { transform: translate(-18px, -12px) rotate(-35deg); } }
@keyframes bob-zz { 50% { transform: translateY(-5px); opacity: .55; } }
.squeak.purr b { color: var(--r); }
.squeak { position: absolute; left: 62%; top: 72%; z-index: 6; width: max-content; max-width: 190px; padding: 6px 10px 7px; background: #fff; border: 3px solid var(--ink);
  border-radius: 14px; box-shadow: 3px 3px 0 var(--ink); font: 700 13px/1.25 var(--text); color: var(--ink); text-align: left; pointer-events: none;
  animation: pop .25s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes pop { from { transform: scale(.3); opacity: 0; } }

/* the work scene at the top of a permit: Bob's ant crew acts it out once (art.js work()). Static styles are the finished scene;
   the keyframes start from the empty site, so reduced motion simply shows the result. */
.stage { position: relative; display: block; width: 100%; padding: 0; border: 3px solid var(--ink); border-radius: 16px; overflow: hidden; background: #f6f2ff; cursor: pointer; }
.stage svg { width: 100%; height: auto; }
.stage .replay { position: absolute; right: 8px; top: 7px; font-size: 12px; font-weight: 700; color: var(--ink-3); opacity: 0; transition: opacity .2s; }
.stage:hover .replay, .stage:focus-visible .replay { opacity: 1; }
.work * { transform-box: view-box; }
.work .kc { fill: var(--c); }
.w-crew { transform: translate(var(--dx), 0px) scale(-1, 1); }
.w-crew.last { transform: translate(var(--aside, 40px), 0px); }
.w-rubble { transform-origin: 0 0; }
.w-house, .w-roof, .w-dust, .w-wreck, .w-chunk { opacity: 0; }
.w-wreck { transform: translate(var(--dx), 0px); }
.w-crack { stroke-dasharray: 1; }
.w-painter { transform: translateX(var(--W)); }
.w-mark { transform-origin: 0 0; }
.legs { transform-origin: 0 -8px; }
.w-swing { transform-origin: 0 -11px; }
.play .w-dig { animation: w-dig .4s ease-out both; }
.play .w-grow { animation: w-grow .3s cubic-bezier(.3, 1.4, .5, 1) var(--w) both; }
.play .w-floor { animation: w-carry 1.1s cubic-bezier(.35, .6, .35, 1) var(--w) both; }
.play .w-crew { animation: w-crew 1.7s linear var(--w) both; }
.play .w-crew.last { animation: w-crew-last 1.1s linear var(--w) both, w-hop .3s ease-out var(--end) 2; }
.play .w-crew .legs { animation: w-legs .16s ease-in-out var(--w) 8 alternate; }
.play .w-drop { animation: w-drop .35s cubic-bezier(.3, 1.5, .5, 1) var(--w) both; }
.play .w-pop { animation: w-pop .3s cubic-bezier(.2, 1.6, .4, 1) var(--w) both; }
@keyframes w-dig { from { transform: scaleY(0); } }
@keyframes w-grow { from { transform: scaleY(0); } }
@keyframes w-carry { 0% { transform: translate(var(--dx), var(--dy)); } 50% { transform: translate(0px, var(--dy)); } 72% { transform: translate(0px, -6px); } 100% { transform: none; } }
@keyframes w-crew { 0% { transform: translate(var(--dx), 0px); } 32% { transform: translate(0px, 0px); } 40% { transform: translate(0px, -3px); }
  46% { transform: translate(0px, 0px) scale(1, 1); } 50% { transform: translate(0px, 0px) scale(-1, 1); } 100% { transform: translate(var(--dx), 0px) scale(-1, 1); } }
@keyframes w-crew-last { 0% { transform: translate(var(--dx), 0px); } 50% { transform: translate(0px, 0px); } 62% { transform: translate(0px, -3px); }
  70% { transform: translate(0px, 0px); } 100% { transform: translate(var(--aside, 40px), 0px); } }
@keyframes w-hop { 50% { translate: 0 -7px; } }
@keyframes w-legs { from { transform: skewX(20deg); } to { transform: skewX(-20deg); } }
@keyframes w-drop { from { transform: translateY(-30px); opacity: 0; } }
@keyframes w-pop { from { transform: scale(0); } }
/* demolition: the crew walks in with hammers, two blows, the house folds into rubble, the dust settles, they carry the pieces away */
.play .w-wreck { animation: w-wreck 3s linear var(--w) both; }
.play .w-wreck .legs { animation: w-legs .16s ease-in-out var(--w) 4 alternate, w-legs .16s ease-in-out calc(var(--w) + 1.7s) 8 alternate; }
.play .w-swing { animation: w-swing .8s ease-in-out calc(var(--w) + .55s) both; }
.play .w-chunk { animation: w-chunk 3s steps(1) var(--w) both; }
.play .w-crack { animation: w-crack .15s ease-out .8s both; }
.play .w-house { animation: w-shake .25s linear .8s, w-fold .5s ease-in 1.2s both; }
.play .w-roof { animation: w-roof .5s ease-in 1.2s both; }
.play .w-rubble { animation: w-grow .3s cubic-bezier(.3, 1.4, .5, 1) 1.45s both; }
.play .w-dust { animation: w-dust 1s ease-out 1.3s both; }
@keyframes w-wreck { 0% { transform: translate(var(--dx), 0px); opacity: 1; } 17% { transform: translate(0px, 0px); } 56% { transform: translate(0px, 0px) scale(1, 1); }
  60% { transform: translate(0px, 0px) scale(-1, 1); } 99% { opacity: 1; } 100% { transform: translate(var(--dx), 0px) scale(-1, 1); opacity: 0; } }
@keyframes w-swing { 0% { transform: rotate(25deg); } 30% { transform: rotate(-75deg); } 50% { transform: rotate(25deg); } 80% { transform: rotate(-75deg); } 100% { transform: none; } }
@keyframes w-chunk { 0% { opacity: 0; } 58% { opacity: 1; } }
@keyframes w-crack { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes w-shake { 0%, 100% { translate: 0; } 25% { translate: -3px 0; } 50% { translate: 3px 0; } 75% { translate: -2px 0; } }
@keyframes w-fold { from { transform: none; opacity: 1; } 75% { transform: scaleY(.18) skewX(-8deg); opacity: 1; } to { transform: scaleY(.1); opacity: 0; } }
@keyframes w-roof { from { transform: none; opacity: 1; } 75% { transform: translate(14px, 36px) rotate(24deg); opacity: 1; } to { transform: translate(16px, 40px) rotate(28deg); opacity: 0; } }
@keyframes w-dust { from { transform: translate(0px, 0px) scale(.2); opacity: 0; } 12% { opacity: 1; } 45% { opacity: .95; } to { transform: translate(var(--a), -18px) scale(1.5); opacity: 0; } }
/* works: the painter rolls fresh paint across the front, then it sparkles */
.play .w-paint { animation: w-paint 1.5s linear .3s both; }
.play .w-painter { animation: w-painter 1.5s linear .3s both; }
.play .w-painter .legs { animation: w-legs .16s ease-in-out .3s 9 alternate; }
.play .w-roll { animation: w-roll .25s ease-in-out .3s 6 alternate; }
.w-paint { transform-origin: 0 0; }
@keyframes w-paint { from { transform: scaleX(0); } }
@keyframes w-painter { from { transform: translateX(0px); } }
@keyframes w-roll { to { transform: translateY(14px); } }
/* any other act: the stamp comes down on the document */
.play .w-press { animation: w-press .9s cubic-bezier(.3, 0, .3, 1) .85s both; }
.play .w-mark { animation: w-pop .25s cubic-bezier(.2, 1.6, .4, 1) 1.35s both; }
@keyframes w-press { 0% { transform: none; } 40% { transform: translateY(-60px); } 60% { transform: translateY(5px) scale(1.06, .9); } 100% { transform: none; } }
/* the ride scenes (art.js ride()): the train or bus pulls in and its doors open, an ant steps out; the tunnel gets bored; guests arrive */
.work .r-wheel { transform-box: fill-box; transform-origin: center; }
.r-bus { transform-origin: 160px 128px; }
.r-bore { transform-origin: 360px 0; }
.play .r-train { animation: r-in 1.6s cubic-bezier(.2, .75, .3, 1) both; }
.play .r-bus { animation: r-bus 1.5s cubic-bezier(.2, .75, .3, 1) both; }
.play .r-wheel { animation: r-spin 1.5s cubic-bezier(.2, .75, .3, 1) both; }
.play .r-door-l, .play .r-door-r { animation: r-door .35s ease-out 1.6s both; }
.play .r-exit { animation: r-exit .7s ease-out 1.9s both; }
.play .r-exit .legs { animation: w-legs .16s ease-in-out 1.9s 5 alternate; }
.play .r-tbm, .play .r-bore { animation: r-tbm 2.6s cubic-bezier(.35, .45, .45, 1) both; }
.play .r-bore { animation-name: r-bore; }
.play .r-teeth { animation: r-teeth .14s linear 18; }
.play .r-walk { animation: r-walk 1.6s linear var(--w) both; }
.play .r-walk .legs { animation: w-legs .16s ease-in-out var(--w) 10 alternate; }
@keyframes r-in { 0% { transform: translateX(300px); } 88% { transform: translateX(-3px); } 100% { transform: none; } }
@keyframes r-bus { 0% { transform: translateX(260px); } 82% { transform: translateX(-3px) rotate(-1.2deg); } 100% { transform: none; } }
@keyframes r-spin { from { transform: rotate(720deg); } }
@keyframes r-door { from { transform: translateX(var(--dd)); } }
@keyframes r-exit { 0% { transform: translate(var(--ex), -6px); opacity: 0; } 25% { opacity: 1; } 100% { transform: none; opacity: 1; } }
@keyframes r-tbm { from { transform: translateX(220px); } }
@keyframes r-bore { from { transform: scaleX(0); } }
@keyframes r-teeth { to { stroke-dashoffset: 7; } }
@keyframes r-walk { from { transform: translateX(130px); } }
/* on the map: the little train running along its line, rattling while it moves */
.ride-token { width: 0; height: 0; pointer-events: none; }
.ride-token svg { position: absolute; left: -19px; top: -19px; filter: drop-shadow(2px 2px 0 rgba(36, 25, 63, .9)); }
.ride-token.moving svg { animation: r-rattle .16s ease-in-out infinite alternate; }
.ride-token.arrived svg { animation: r-arrive .45s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes r-rattle { to { transform: translateY(-1.5px) rotate(2deg); } }
@keyframes r-arrive { 40% { transform: scale(1.25); } }
/* Bob at the end: pleased with the crew */
.play .work .bob-svg .c-all { animation: bob-hop .42s ease-out var(--end) 2; }

/* the three panels of the intro act out what they say: the crane brings a beam, the ball hits the wall, the stamp comes down */
@keyframes a-load { 0% { transform: translateX(-100px); } 55%, 100% { transform: none; } }
@keyframes a-swing { 0%, 50% { transform: none; } 64% { transform: rotate(11deg); } 78% { transform: rotate(-6deg); } 90% { transform: rotate(2.5deg); } 100% { transform: none; } }
@keyframes a-ball { 0% { transform: none; } 38% { transform: rotate(42deg); } 62% { transform: rotate(-5deg); } 76% { transform: rotate(3deg); } 100% { transform: none; } }
@keyframes a-boom { 0%, 58% { transform: scale(0); } 70% { transform: scale(1.35); } 100% { transform: none; } }
@keyframes a-stamp { 0% { transform: translateY(-70px) scale(1.8); opacity: 0; } 55% { transform: none; opacity: 1; } 68% { transform: scale(1.12); } 100% { transform: none; } }
@keyframes a-marks { 0%, 55% { opacity: 0; } 100% { opacity: 1; } }

/* the chosen permit on the map: a yellow disc under its dot and one ring going out */
.sel-mark { width: 0; height: 0; pointer-events: none; } /* MapLibre positions the marker itself (absolute); overriding that shifts it */
.sel-mark > * { position: absolute; }
.sel-mark .halo { left: -21px; top: -21px; width: 42px; height: 42px; border-radius: 50%; background: var(--y); border: 3px solid var(--ink);
  animation: halo-in .4s cubic-bezier(.2, 1.6, .4, 1) both; }
.sel-mark .dot { left: -10px; top: -10px; width: 20px; height: 20px; border-radius: 50%; background: var(--c); border: 3px solid var(--ink); }
.sel-mark .dot.addition { background: #fff; border-color: var(--c); outline: 3px solid var(--ink); }
.sel-mark .dot.demolition { border-radius: 3px; background: repeating-linear-gradient(45deg, var(--c) 0 4px, var(--ink) 4px 6px); }
.sel-mark .ring { left: -21px; top: -21px; width: 42px; height: 42px; border-radius: 50%; border: 3px solid var(--ink); opacity: 0; animation: fx-ring .9s ease-out .25s; }
@keyframes halo-in { from { transform: scale(0); } }
@keyframes fx-ring { from { transform: scale(1); opacity: .9; } to { transform: scale(2.4); opacity: 0; } }
/* the row under the pointer, shown on the map */
.hover-mark { width: 0; height: 0; pointer-events: none; }
.hover-mark span { position: absolute; left: -18px; top: -18px; width: 36px; height: 36px; border-radius: 50%; border: 4px solid var(--ink); background: rgba(94, 200, 255, .55);
  box-shadow: 0 0 0 3px #fff; animation: pop .2s ease-out both; }
/* hovering a dot: what it is and when */
.tip { position: absolute; z-index: 5; pointer-events: none; padding: 4px 9px 5px; background: #fff; border: 2px solid var(--ink); border-radius: 10px;
  font: 700 12.5px/1.2 var(--text); white-space: nowrap; transform: translate(-50%, calc(-100% - 14px)); }
.tip small { font-size: 11.5px; color: var(--ink-3); margin-left: 6px; }
@media (prefers-reduced-motion: reduce) {
  .bob-svg *, .bob-sleep .hero-bob::after, .bob-sleep .status .mini::after, .leads .play *, .sel-mark *, .work *, .hover-mark span, .squeak, .ride-token svg { animation: none !important; transition: none !important; }
}

/* the chosen point: a survey cross in ink */

/* phones: map under the masthead, panel as a bottom sheet with three heights */
/* phone held upright: map under the masthead, panel as a bottom sheet that can be dragged between three heights */
@media (max-width: 860px) and (min-height: 501px) {
  :root { --top-h: 52px; --peek: 300px; --gap: 0px; }
  .brand-face { width: 40px; height: 40px; }
  .brand-name { font-size: 27px; }
  .brand-sub { display: none; }
  .top-nav { gap: 12px; }
  .top-nav a { font-size: 14px; }
  .panel { position: fixed; top: auto; left: 0; right: 0; bottom: 0; width: auto; border: 0; border-top: 3px solid var(--ink); border-radius: 20px 20px 0 0;
    box-shadow: 0 -4px 0 rgba(27, 21, 55, .12); height: var(--peek); transition: height .22s ease; }
  .panel[data-sheet="half"] { height: 57dvh; }
  .panel[data-sheet="full"] { height: calc(100dvh - var(--top-h) - env(safe-area-inset-top, 0px) - 8px); }
  .panel.dragging { transition: none; }
  @media (prefers-reduced-motion: reduce) { .panel { transition: none; } }
  .grab { display: grid; place-items: center; width: 100%; height: 44px; min-height: 44px; padding: 0; border: 0; background: transparent; flex-shrink: 0; order: 0; cursor: grab; }
  .grab span { display: block; width: 46px; height: 5px; border-radius: 3px; background: var(--ink); }
  /* the list is below: say so while the sheet is low */
  .panel[data-sheet="peek"] .grab { align-content: center; gap: 3px; }
  .panel[data-sheet="peek"] .grab::after { content: "▲ Λίστα"; font-size: 12px; font-weight: 700; line-height: 1; color: var(--ink-2); }
      .ask { font-size: 20px; }
  .balloon { font-size: 14px; padding: 9px 12px 10px; }
  .status { order: 1; padding: 0 14px 4px; }
  .when-box { order: 2; padding: 10px 14px 0; }
  .tools { order: 3; margin: 10px 14px 0; }
  .search { order: 4; margin: 10px 14px 0; }
  /* five short chips share the row's width, so «Όλα» is never pushed off the screen */
  #period { gap: 6px; flex-wrap: nowrap; }
  #period button { flex: 1 1 auto; min-height: 40px; padding: 0 8px; }
  .kinds .lg, .top-nav a { min-height: 40px; }
  #period::-webkit-scrollbar { display: none; }
  .kindbar { order: 5; padding: 10px 0 0; }
  .kinds { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 0 14px 2px; }
  .kinds::-webkit-scrollbar { display: none; }
  .lg { flex: none; }
  .content { order: 6; }
  .card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 28px; pointer-events: none; background: linear-gradient(rgba(255, 250, 241, 0), var(--paper)); }
  .panel[data-sheet="peek"] .content, .panel[data-sheet="peek"] .tl, .panel[data-sheet="peek"] .tl-read, .panel[data-sheet="peek"] .kindbar { display: none; }
  .intro, .detail, .item, .content-foot, .empty { padding-left: 14px; padding-right: 14px; }
  .legend { top: 8px; left: 8px; bottom: auto; right: 64px; border-radius: 14px; padding: 4px 10px; gap: 2px 12px; font-size: 11.5px; }
}

/* phone on its side: the side panel stays, narrower and tighter, so the map keeps most of the screen */
@media (max-height: 500px) {
  :root { --top-h: 46px; --panel-w: 330px; --gap: 8px; }
  .brand-face { width: 36px; height: 36px; margin-top: 4px; }
  .brand-name { font-size: 24px; }
  .brand-sub { display: none; }
  .top-nav a { font-size: 13px; padding: 0 8px; }
      .ask { font-size: 18px; }
  .balloon { font-size: 13px; padding: 7px 10px 8px; }
  .status { padding: 10px 12px 2px; }
  .search { margin: 10px 12px 0; }
  .search input, .btn-icon { height: 42px; }
  .btn-icon { width: 42px; }
  .tools { margin: 8px 12px 0; }
    .legend { display: none; }
  }

/* ---------- the card on the map: one box, standing on the chosen building ---------- */
.card-wrap { z-index: 4; filter: drop-shadow(4px 5px 0 rgba(36, 25, 63, .9)); }
.card-wrap::after { content: ""; position: absolute; left: 50%; bottom: -12px; width: 20px; height: 20px; margin-left: -10px; background: var(--paper);
  border-right: 3px solid var(--ink); border-bottom: 3px solid var(--ink); transform: rotate(45deg); z-index: -1; }
/* beside its outline (desktop): the card is anchored at the pin's height, so the tail leaves the side that faces the pin, half way down */
.card-wrap.beside::after { left: auto; right: -12px; bottom: auto; top: 50%; margin: -10px 0 0; border-bottom: 0; border-top: 3px solid var(--ink); }
.card { position: relative; width: min(350px, calc(100vw - 28px)); display: flex; flex-direction: column; overflow: hidden; background: var(--paper);
  border: 3px solid var(--ink); border-radius: var(--r-lg); color: var(--ink); font: 400 15px/1.45 var(--text); cursor: auto;
  animation: card-in .32s cubic-bezier(.2, .9, .3, 1.2) both; transform-origin: 50% 100%; }
@keyframes card-in { from { transform: translateY(14px) scale(.92); opacity: 0; } }
.card .stage { flex: none; border: 0; border-bottom: 3px solid var(--ink); border-radius: 0; background: var(--news); cursor: pointer; }
/* a 44px tap target, drawn as the 34px round button */
.card-x { position: absolute; top: 3px; right: 3px; z-index: 2; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: var(--ink); font: 700 20px/1 var(--text); }
.card-x::before { content: ""; position: absolute; inset: 5px; z-index: -1; border-radius: 50%; border: 2.5px solid var(--ink); background: var(--paper); }
.card-x:hover::before { background: var(--y); }
.card-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 12px 14px 14px; display: grid; gap: 12px; scrollbar-color: var(--soft) transparent;
  /* scroll cue: a soft shadow on the edge that still has more content behind it */
  background:
    linear-gradient(var(--paper) 30%, rgba(255, 250, 241, 0)) top / 100% 24px no-repeat local,
    linear-gradient(rgba(255, 250, 241, 0), var(--paper) 70%) bottom / 100% 24px no-repeat local,
    radial-gradient(farthest-side at 50% 0, rgba(36, 25, 63, .22), rgba(36, 25, 63, 0)) top / 100% 10px no-repeat scroll,
    radial-gradient(farthest-side at 50% 100%, rgba(36, 25, 63, .22), rgba(36, 25, 63, 0)) bottom / 100% 10px no-repeat scroll;
  background-color: var(--paper); }
.card .d-head h2 { font-size: 19px; }
.card .facts { grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); }
.card .facts dd { font-size: 20px; }
.card .facts:has(div:nth-child(4)) { grid-template-columns: repeat(2, 1fr); }   /* four numbers sit as two and two, none orphaned */
.facts dd.long, .card .facts dd.long { font-size: 15.5px; line-height: 1.25; }
.card .actions .btn { flex: 1 1 auto; }
.card .actions .btn.primary { flex-basis: 100%; }
/* more below: a fade over the bottom edge of the scrolling body */
.card:has(.card-body.more-below)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 34px; pointer-events: none; background: linear-gradient(rgba(255, 250, 241, 0), var(--paper) 85%); }
.card:has(.card-body.more-below)::before { content: "▼"; position: absolute; left: 50%; bottom: 3px; z-index: 1; transform: translateX(-50%); font-size: 11px; line-height: 1; color: var(--ink-2); pointer-events: none; }
@media (max-width: 759px) {
  /* on a phone the way to the document comes right after the heading, above the numbers */
  .card-body > .d-head { order: -2; }
  .card-body > .actions { order: -1; }
}
/* where copying is not allowed, the link waits in a box to copy by hand */
.share-url { flex: 1 1 100%; min-width: 0; padding: 9px 12px; border: 2.5px solid var(--ink); border-radius: var(--r-md); font: 14px var(--text); color: var(--ink); background: #fff; }
@media (prefers-reduced-motion: reduce) { .card { animation: none; } }
/* short screens (a phone on its side): a smaller scene leaves room to read */
@media (max-height: 560px) { .card .stage svg { display: block; width: auto; height: 84px; margin: 0 auto; } .card-x { top: 1px; right: 1px; } }

/* the house pin where an address or "my location" put the map */
.home-pin { width: 0; height: 0; pointer-events: none; }
.home-pin span { position: absolute; left: -15px; top: -36px; width: 30px; height: 30px; background: var(--sky); border: 3px solid var(--ink);
  border-radius: 50% 50% 50% 0; transform: rotate(-45deg); box-shadow: 2px 2px 0 var(--ink); }
.home-pin span::after { content: ""; position: absolute; left: 7px; top: 7px; width: 10px; height: 10px; border-radius: 50%; background: var(--paper); border: 2.5px solid var(--ink); }

/* ---------- map layers: the button, its panel; public transport: the day bar, the card's lines ---------- */
.map-tools { position: absolute; top: 84px; right: 10px; z-index: 4; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.map-btn { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 12px 0 10px; border: 2.5px solid var(--ink); border-radius: 12px;
  background: var(--paper); color: var(--ink); font: 700 14px/1 var(--text); box-shadow: 3px 3px 0 var(--ink); }
.map-btn:hover { background: var(--news); }
.map-btn[aria-pressed="true"], .map-btn[aria-expanded="true"] { background: var(--ink); color: var(--paper); }
.layers { width: 272px; max-height: calc(100dvh - 190px); overflow-y: auto; overscroll-behavior: contain; padding: 10px 12px 12px;
  background: var(--paper); border: 3px solid var(--ink); border-radius: var(--r-lg); box-shadow: var(--hard); }
.layers[hidden] { display: none; }
.layers-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 2px; }
.layers-head b { font: 700 15px/1.2 var(--text); }
.layers-open .map-tools { z-index: 12; }   /* above the list while open */
.layers-x { width: 30px; height: 30px; border: 2px solid var(--ink); border-radius: 50%; background: var(--paper); color: var(--ink); font: 700 18px/1 var(--text); padding: 0; }
.layers fieldset { border: 0; margin: 0; padding: 6px 0 0; }
.layers fieldset + fieldset { border-top: 2px solid var(--soft); margin-top: 6px; }
.layers legend { float: left; width: 100%; font: 700 11.5px/1 var(--text); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); padding: 4px 0 2px; }
.layers legend + .lr { clear: both; }
.lr { display: grid; grid-template-columns: auto 26px 1fr; align-items: center; gap: 9px; padding: 5px 0; cursor: pointer; font: 700 13.5px/1.25 var(--text); }
.lr small { display: block; font-weight: 400; font-size: 11.5px; color: var(--ink-3); }
.lr input { -webkit-appearance: none; appearance: none; margin: 0; width: 36px; height: 22px; border: 2.5px solid var(--ink); border-radius: 12px;
  background: var(--news); position: relative; cursor: pointer; transition: background .15s; }
.lr input::before { content: ""; position: absolute; top: 2px; left: 2px; width: 13px; height: 13px; border-radius: 50%; background: var(--paper);
  border: 2px solid var(--ink); transition: transform .15s; }
.lr input:checked { background: var(--v); }
.lr input:checked::before { transform: translateX(14px); }
.lr input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.sw { display: block; width: 26px; height: 18px; border-radius: 5px; font-style: normal; }
.sw-dots { background: radial-gradient(circle at 25% 35%, var(--k-new) 0 3px, transparent 3.5px), radial-gradient(circle at 60% 65%, var(--k-demo) 0 3px, transparent 3.5px),
  radial-gradient(circle at 85% 30%, var(--k-add) 0 3px, transparent 3.5px); }
.sw-plot { border: 2px dashed var(--plot); background: color-mix(in srgb, var(--k-new) 22%, transparent); }
.sw-rail { background: linear-gradient(var(--ink), var(--ink)) 0 50% / 100% 6px no-repeat; position: relative; }
.sw-rail::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 3px; margin-top: -1.5px; background: linear-gradient(90deg, #00a651 33%, #e2231a 33% 66%, #0071bc 66%); }
/* the swatches look like what the map draws: flat colour, ink outline, the hard ink shadow of the bigger marks */
.sw-bus { width: 22px; height: 22px; margin-left: 2px; border-radius: 0; background: center / contain no-repeat; }   /* art.js's bus, set by app.js */
.sw-m4 { width: 16px; height: 16px; margin-left: 5px; border-radius: 50%; border: 2px solid var(--ink); box-shadow: 1.5px 1.5px 0 var(--ink); background: #ffe27a; }
.sw-bnb { border: 2px solid var(--ink); border-radius: 3px; background: conic-gradient(#0e9f9a 0 25%, #9adfd7 0 50%, #4cc1b6 0 75%, #d3f1ed 0) 0 0 / 100% 100%; }
.sw-names { font: 700 14px/18px var(--text); text-align: center; color: var(--ink-2); }
.sw-bld { background: linear-gradient(#e6cba6, #e6cba6) 2px 6px / 9px 10px no-repeat, linear-gradient(#e6cba6, #e6cba6) 14px 2px / 10px 14px no-repeat; }
.no-permits .legend { display: none; }
.card .transit p + p { margin-top: 4px; }
.tr-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tr-lines { display: inline-flex; gap: 4px; }
.tr-lines i { font: 700 12px/1 var(--text); color: #fff; background: var(--lc); border: 2px solid var(--ink); border-radius: 6px; padding: 3px 5px 2px; }
@media (max-width: 860px) and (min-height: 501px) {
  .map-tools { top: 10px; }
  .layers { position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); width: auto; max-height: 74dvh; }
  .card-open .map-tools { display: none; }   /* one box at a time: the card's own close button sits there */
  /* a card is open: the sheet drops to a low strip (handle and Bob's line) so the card gets the map; the handle brings the list back (sheetHeight in app.js says 122) */
  body:has(.map-wrap.card-open) .panel[data-sheet="peek"] { height: 122px; }
  body:has(.map-wrap.card-open) .panel[data-sheet="peek"] :is(.when-box, .tools, .search) { display: none; }
  /* short screens: no scene on the card (the title, place, facts and the Diavgeia button come first); the × then sits over the first lines */
  @media (max-height: 759px) {
    .card:not(.spot) .stage { display: none; }
    .card:not(.spot) .d-head :is(.kicker, h2) { padding-right: 36px; }
  }
  .card:not(.spot) .stage svg { display: block; width: auto; height: 90px; margin: 0 auto; }   /* a smaller scene: the card leaves the pin and plot in view */
  .map-btn span { display: none; }
  .map-btn { padding: 0 8px; }
}

/* ---------- for developers: the municipality's years, the plot's neighbourhood ---------- */
.trend { margin: 4px 16px 10px; padding: 10px 12px 8px; border: 2px solid var(--soft); border-radius: var(--r-md); background: var(--paper); display: grid; gap: 4px; }
.trend figcaption { font-size: 13.5px; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.trend .key { display: inline-flex; gap: 6px; align-items: center; font-size: 12.5px; color: var(--ink-2); }
.trend .key i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--c); margin-left: 4px; }
.trend svg { width: 100%; height: auto; display: block; overflow: visible; }
.trend .axis { stroke: var(--soft); stroke-width: 1; }
.trend text { font: 700 11px var(--text); fill: var(--ink-2); text-anchor: middle; }
.trend text.y { font-weight: 400; fill: var(--ink-3); }
.trend .more { border-top: 0; padding-top: 0; }
.trend .price { font-size: 13.5px; line-height: 1.4; margin-top: 6px; padding-top: 8px; border-top: 2px solid var(--soft); }
.t-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.t-table th, .t-table td { padding: 4px 6px; text-align: right; border-bottom: 1px solid var(--soft); }
.t-table th:first-child, .t-table td:first-child { text-align: left; }
.card .hood p + p { margin-top: 4px; }
.card .ll { font-variant-numeric: tabular-nums; user-select: all; background: var(--news); padding: 0 4px; border-radius: 4px; }
.tr-lines i.m4 { color: var(--ink); background: var(--paper); border-style: dashed; }
/* the cards of the map's other layers: line chips that open their line, the hours of a typical Wednesday, a line's stations */
.tr-lines button { font: 700 12px/1 var(--text); color: #fff; background: var(--lc); border: 2px solid var(--ink); border-radius: 6px; padding: 3px 5px 2px; cursor: pointer; }
.tr-lines button:hover { box-shadow: 2px 2px 0 var(--ink); transform: translate(-1px, -1px); }
.card.spot .kicker { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bus-lines { display: flex; flex-wrap: wrap; gap: 4px; }
.bus-lines i { font: 700 12px/1 var(--text); font-style: normal; color: var(--ink); background: var(--paper); border: 2px solid var(--ink); border-radius: 6px; padding: 3px 5px 2px; }
.hours-read { font-size: 13.5px; }
.hours-read b { font: 400 18px/1 var(--display); margin-right: 2px; }
.hours { display: grid; grid-template-columns: repeat(24, 1fr); height: 72px; margin-top: 6px; }
.hc { height: 100%; padding: 0 1px; border: 0; background: none; display: flex; align-items: flex-end; cursor: pointer; border-radius: 0; }
.hc i { display: block; width: 100%; height: var(--v); background: var(--lc); border-radius: 3px 3px 0 0; opacity: .45; transition: opacity .12s; }
.hc[aria-pressed="true"] i, .hc:hover i { opacity: 1; }
.hc:focus-visible { outline: 2px solid var(--focus); outline-offset: 0; }
.hours-axis { display: grid; grid-template-columns: repeat(6, 1fr); border-top: 2px solid var(--soft); padding-top: 3px; font: 700 11px/1 var(--text); color: var(--ink-3); }
.route { list-style: none; margin: 2px 0 0; padding: 0; }
.route li { position: relative; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; min-height: 30px; padding: 3px 0 3px 26px; }
.route li::before { content: ""; position: absolute; left: 8px; top: 0; bottom: 0; width: 6px; background: var(--lc); }
.route li:first-child::before { top: 50%; }
.route li:last-child::before { bottom: 50%; }
.route li::after { content: ""; position: absolute; left: 4px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: #fff; border: 2.5px solid var(--ink); }
.route .link { font-size: 13.5px; text-align: left; }


/* The first screen: Bob asks what you are after and four comic panels answer. No map and no figures until you pick one. */
.home { position: fixed; top: calc(var(--top-h) + env(safe-area-inset-top, 0px)); left: 0; right: 0; bottom: 0; z-index: 15; overflow-y: auto;
  overscroll-behavior: contain; touch-action: pan-y; background: radial-gradient(circle, rgba(106, 61, 245, .1) 1.6px, transparent 2px) 0 0 / 12px 12px, var(--news); }
.home-in { max-width: 1000px; margin: 0 auto; padding: 40px 24px 48px; }
.home-hero { display: flex; align-items: center; gap: 26px; }
.home-bob { width: 168px; height: 168px; flex: none; }
.home-bob svg { width: 100%; height: 100%; }
.home-say { position: relative; flex: 1; background: #fff; border: 3px solid var(--ink); border-radius: 24px; padding: 20px 24px 22px; box-shadow: 6px 6px 0 var(--ink); }
.home-say::before, .home-say::after { content: ""; position: absolute; left: -24px; top: 50%; margin-top: -14px; border: 14px solid transparent; border-right: 22px solid var(--ink); border-left: 0; }
.home-say::after { left: -16px; margin-top: -11px; border-width: 11px 18px 11px 0; border-right-color: #fff; }
.home-say h1 { font: 400 40px/1.06 var(--display); }
.home-say p { margin-top: 8px; font-size: 19px; line-height: 1.4; }
.home-go { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 30px; }
.go { display: flex; flex-direction: column; align-items: stretch; gap: 3px; padding: 0 0 16px; text-align: left; border: 3px solid var(--ink); border-radius: var(--r-lg);
  background: var(--paper); box-shadow: 5px 5px 0 var(--ink); overflow: hidden; transition: transform .12s ease, box-shadow .12s ease; }
.go:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.go:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--ink); }
.go-art { display: block; aspect-ratio: 6 / 5; padding: 12px 12px 0; background: #fff; border-bottom: 3px solid var(--ink); }
.go-art svg { width: 100%; height: 100%; }
.go b { padding: 12px 14px 0; font: 400 19px/1.15 var(--display); }
.go > span:last-child { padding: 0 14px; font-size: 14px; line-height: 1.35; color: var(--ink-2); }
.top-nav .nav-sm { display: none; }
.top-nav a[aria-current="page"] { text-decoration: underline 3px var(--sky); text-underline-offset: 6px; }
/* phones: short labels so all four links fit */
@media (max-width: 480px) { .top-nav .nav-lg { display: none; } .top-nav .nav-sm { display: inline; } }
.near-in .build-head { margin-bottom: 24px; }
.near-me { min-height: 54px; padding: 0 24px; font-size: 17px; margin-bottom: 18px; }
.near-in .have { max-width: 640px; }   /* the first screen has its own «Νέα έργα» panel */
@media (prefers-reduced-motion: reduce) { .go { transition: none; } .go:hover, .go:active { transform: none; } }
@media (max-width: 860px) and (min-height: 501px) {
  .home-in { padding: 20px 16px 32px; }
  .home-hero { gap: 14px; }
  .home-bob { width: 92px; height: 92px; }
  .home-say { padding: 12px 14px 14px; border-radius: 18px; box-shadow: 4px 4px 0 var(--ink); }
  .home-say::before { left: -18px; margin-top: -10px; border-width: 10px 16px 10px 0; }
  .home-say::after { left: -12px; margin-top: -8px; border-width: 8px 13px 8px 0; }
  .home-say h1 { font-size: 23px; }
  .home-say p { font-size: 15px; margin-top: 4px; }
  .home-go { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
  .go { padding-bottom: 12px; box-shadow: 4px 4px 0 var(--ink); }
  .go-art { aspect-ratio: 4 / 3; padding: 8px 8px 0; }
  .go b { padding: 9px 11px 0; font-size: 16px; }
  .go > span:last-child { padding: 0 11px; font-size: 12.5px; }
}
@media (max-height: 500px) {
  .home-in { padding: 14px 18px 24px; }
  .home-bob { width: 72px; height: 72px; }
  .home-say { padding: 10px 14px 12px; }
  .home-say h1 { font-size: 22px; }
  .home-say p { font-size: 14px; margin-top: 2px; }
  .home-go { gap: 12px; margin-top: 14px; }
  .go-art { aspect-ratio: 16 / 10; }
  .go b { font-size: 15px; }
  .go > span:last-child { display: none; }
}

/* The feed under the first screen's panels: the tabs stay at the top while it scrolls; days as headings, then comic cards,
   each with its permit's crew scene. Figures stay out: what, where, when, and how far from you. */
.feed { margin-top: 44px; }
.feed-head { position: sticky; top: 0; z-index: 3; display: flex; justify-content: center; padding: 10px 0 14px;
  background: linear-gradient(var(--news) 75%, rgba(247, 236, 220, 0)); }
.feed-tabs { display: inline-flex; max-width: 100%; border: 3px solid var(--ink); border-radius: 999px; overflow-x: auto; scrollbar-width: none; background: #fff; box-shadow: 4px 4px 0 var(--ink); }
.feed-tabs::-webkit-scrollbar { display: none; }
.feed-tabs button { flex: none; white-space: nowrap; border: 0; background: none; padding: 10px 20px; font: 700 16px/1 var(--text); color: var(--ink); }
.feed-tabs button + button { border-left: 3px solid var(--ink); }
.feed-tabs button[aria-selected="true"] { background: var(--v); color: #fff; }
.feed-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; align-items: start; }
.feed-day, .feed-place, .feed-ask, .feed-wait, .feed-mode { grid-column: 1 / -1; }
/* «Σε εξέλιξη»: now or the plots gone quiet, with a line on what each shows */
.feed-mode { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.feed-mode span { flex: 1 1 260px; font-size: 14px; color: var(--ink-3); }
.feed-day h3 { margin-top: 16px; font: 400 24px/1.1 var(--display); }
.feed-day:first-child h3 { margin-top: 0; }
.feed-wait { display: grid; place-items: center; padding: 40px 0; }
.fc-hit { display: flex; flex-direction: column; width: 100%; padding: 0; text-align: left; color: var(--ink); background: var(--paper);
  border: 3px solid var(--ink); border-radius: var(--r-lg); box-shadow: 5px 5px 0 var(--ink); overflow: hidden; transition: transform .12s, box-shadow .12s; }
.fc-hit:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.fc-hit:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--ink); }
.fc-art { display: block; background: #f6f2ff; border-bottom: 3px solid var(--ink); }
.fc-art svg { display: block; width: 100%; height: auto; }
.fc-body { display: grid; gap: 5px; padding: 11px 14px 14px; }
.fc-kicker { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; color: var(--ink-3); }
.fc-t { font: 400 17px/1.22 var(--display); text-wrap: pretty; }
.fc-near { font-weight: 700; color: var(--v); }
.fc-co { font-size: 13.5px; color: var(--ink-2); }
.feed-end { display: grid; place-items: center; min-height: 60px; padding: 20px 0 10px; color: var(--ink-3); }
.feed-place { display: flex; align-items: center; gap: 14px; font-weight: 700; }
.feed-ask { display: flex; gap: 18px; align-items: flex-start; padding: 18px; background: #fff; border: 3px solid var(--ink); border-radius: var(--r-lg); box-shadow: 5px 5px 0 var(--ink); }
.ask-bob { width: 96px; flex: none; }
.ask-bob svg { width: 100%; height: auto; }
.ask-in { flex: 1; display: grid; gap: 10px; justify-items: start; }
.ask-in h3 { font: 400 26px/1.1 var(--display); }
.ask-in p { font-size: 16px; max-width: 52ch; }
.ask-in .have { width: 100%; max-width: 560px; margin: 4px 0 0; }
/* your feed, your way: the choices sit under the tabs, folded until asked for */
.feed-bar { display: flex; justify-content: flex-end; margin: -4px 0 14px; }
.feed-cfg { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 14px; border: 3px solid var(--ink); border-radius: 999px;
  background: #fff; color: var(--ink); font-weight: 700; font-size: 15px; box-shadow: 3px 3px 0 var(--ink); }
.feed-cfg.custom::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--r); border: 2px solid var(--ink); }
.feed-cfg[aria-expanded="true"] { background: var(--y); }
.feed-prefs { display: grid; gap: 14px; margin: 0 0 22px; padding: 16px; background: #fff; border: 3px solid var(--ink); border-radius: var(--r-lg); box-shadow: 5px 5px 0 var(--ink); }
.feed-prefs fieldset { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 0; border: 0; }
.feed-prefs legend { width: 100%; margin-bottom: 6px; font: 400 17px/1.1 var(--display); }
.pref { padding: 7px 13px; border: 2.5px solid var(--ink); border-radius: 999px; background: #fff; color: var(--ink-3); font-weight: 700; font-size: 14px; }
.pref[aria-pressed="true"] { background: var(--v); color: #fff; }
.pref-regions { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; margin: 0 0 6px; }
.pref-add { flex: 0 1 auto; width: auto; max-width: 100%; height: 38px; font-size: 14.5px; }
.prefs-end { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px 16px; }
.prefs-end .fine { margin-right: auto; }
@media (prefers-reduced-motion: reduce) { .fc-hit { transition: none; } .fc-hit:hover, .fc-hit:active { transform: none; } }
@media (max-width: 860px) and (min-height: 501px) {
  .feed { margin-top: 26px; }
  /* three tabs across a phone: equal columns, a long region name wraps */
  .feed-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; width: 100%; overflow: hidden; border-radius: 22px; }
  .feed-tabs button { white-space: normal; padding: 8px 6px; font-size: 14px; line-height: 1.2; }
  .feed-list { grid-template-columns: 1fr; gap: 14px; }
  .feed-day h3 { font-size: 20px; }
  .fc-hit { box-shadow: 4px 4px 0 var(--ink); }
  .feed-ask { flex-direction: column; padding: 14px; }
  .ask-bob { width: 72px; }
}

/* «Πού να χτίσω»: the question, then the areas as small comic panels, each with its typical new building drawn on its plot */
.build-in { max-width: 1000px; margin: 0 auto; padding: 22px 24px 48px; }
.build-wait { display: grid; place-items: center; padding: 60px 0; }
.build-head { display: flex; align-items: center; gap: 20px; margin-top: 10px; }
.build-art { width: 150px; flex: none; }
.build-art svg { width: 100%; height: auto; }
.build-head h2 { font: 400 34px/1.08 var(--display); }
.build-head p { margin-top: 6px; font-size: 17px; max-width: 46ch; }
.build-ask { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin: 22px 0 18px; padding: 14px 16px; background: var(--paper);
  border: 3px solid var(--ink); border-radius: var(--r-lg); box-shadow: 4px 4px 0 var(--ink); }
.goal { border: 3px solid var(--ink); border-radius: 999px; overflow: hidden; background: #fff; }
.goal button { border: 0; background: none; padding: 8px 18px; font-weight: 700; font-size: 15.5px; }
.goal button + button { border-left: 3px solid var(--ink); }
.goal button[aria-pressed="true"] { background: var(--v); color: #fff; }
.near { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.near input { width: 20px; height: 20px; accent-color: var(--v); }
.plot-size { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.plot-size input { width: 116px; height: 40px; padding: 0 10px; border: 3px solid var(--ink); border-radius: var(--r-md); background: #fff; font-size: 16px; }
.plot-size input:focus { outline: none; border-color: var(--b); }
.areas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.area { display: flex; gap: 14px; height: 100%; padding: 14px; background: #fff; border: 3px solid var(--ink); border-radius: var(--r-lg); }
.area-art { width: 118px; flex: none; align-self: start; }
.area-art svg { width: 100%; height: auto; }
.area h3 { font: 400 20px/1.15 var(--display); }
.area-txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.area-txt > p:not(.where) { font-size: 15px; line-height: 1.4; }
.area-est { padding: 6px 10px; background: var(--hi); border-radius: 10px; }
.area-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.area-tags span { padding: 2px 9px; border: 2px solid var(--ink); border-radius: 999px; font-size: 12.5px; font-weight: 700; background: var(--paper); }
.area .link { align-self: start; margin-top: 4px; font-size: 14.5px; }
.build-none { padding: 18px 0; font-size: 16px; }
.build-in .fine { margin-top: 20px; max-width: 80ch; line-height: 1.5; }
@media (max-width: 860px) and (min-height: 501px) {
  .build-in { padding: 14px 16px 32px; }
  .build-head { gap: 12px; }
  .build-art { width: 92px; }
  .build-head h2 { font-size: 25px; }
  .build-head p { font-size: 14.5px; }
  .build-ask { gap: 10px 16px; padding: 12px; margin: 16px 0 14px; }
  .areas { grid-template-columns: 1fr; gap: 12px; }
  .area { padding: 12px; gap: 12px; }
  .area-art { width: 92px; }
  .area h3 { font-size: 18px; }
}
@media (max-height: 500px) {
  .build-art { width: 80px; }
  .build-head h2 { font-size: 24px; }
  .build-head p { font-size: 14px; }
}
.build-ask .select { flex: none; width: auto; max-width: 100%; height: 40px; font-size: 15.5px; padding-right: 26px; }
.have { display: grid; gap: 8px; margin: 0 0 22px; padding: 14px 16px; background: #fff; border: 3px dashed var(--v); border-radius: var(--r-lg); }
.have label { font-size: 15.5px; line-height: 1.4; }
.have-row { display: flex; gap: 10px; }
.have-row input { flex: 1; min-width: 0; height: 44px; padding: 0 12px; border: 3px solid var(--ink); border-radius: var(--r-md); background: #fff; font-size: 16px; }
.have-row input:focus { outline: none; border-color: var(--b); }
.have-msg:empty { display: none; }
.build-more { display: flex; justify-content: center; margin-top: 18px; }
@media (max-width: 860px) and (min-height: 501px) { .have { padding: 12px; margin-bottom: 16px; } .have label { font-size: 14.5px; } }
.have-msg { line-height: 1.5; }

/* from a municipality's chart to its own page */
.muni-page { margin-top: 10px; font-weight: 700; }
@media (max-width: 379px) { #period { gap: 4px; } #period button { font-size: 13px; padding: 0 6px; } }

/* «← Πίσω» stays reachable while a long card scrolls */
.back-sticky { position: sticky; top: 0; z-index: 2; background: var(--paper); }

/* small phones: keep clear space between the logo and the first menu link */
@media (max-width: 380px) { .brand-name { font-size: 22px; } .brand-face { width: 34px; height: 34px; } .top-nav { gap: 8px; } .top-nav a { font-size: 13px; padding: 0 1px; } }

/* interest doors (public/interest.js) */
.interest-link { margin-top: 10px; }
.interest-form { display: grid; gap: 10px; margin: 10px 0; padding: 12px 14px; background: var(--paper); border: 2.5px solid var(--ink); border-radius: var(--r-md); max-width: 34rem; }
.interest-form label { display: grid; gap: 4px; font-size: 14px; font-weight: 700; }
.interest-form label.chk { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; }
.interest-form input[type=email], .interest-form select { min-height: 42px; font: inherit; padding: 0 10px; border: 2.5px solid var(--ink); border-radius: var(--r-md); background: #fff; color: var(--ink); }
.interest-form input[type=checkbox] { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; }
.interest-form .msg { font-size: 14px; color: var(--ink-2); }
.interest-form p { margin: 0; }
button.link-door { background: none; border: 0; padding: 4px 0; font: inherit; font-size: 14px; color: var(--ink-2); text-decoration: underline; cursor: pointer; }

/* transit only (permits layer off): the permit filters and list step aside */
.panel.transit-only .when-box, .panel.transit-only .kindbar, .panel.transit-only .content .item, .panel.transit-only .content-foot, .panel.transit-only .more { display: none; }
/* Δήμοι index: a search box and rows a thumb can hit */
.muni-find { display: block; width: 100%; max-width: 28rem; min-height: 44px; margin-top: 16px; padding: 0 14px; font: inherit; color: var(--ink); background: var(--paper); border: 3px solid var(--ink); border-radius: var(--r-md); }
.cols.muni-list a { display: flex; align-items: center; min-height: 44px; }
.trend-head { font-weight: 700; color: var(--ink); margin: 2px 0 8px; }
.near-why { color: var(--ink-2); max-width: 46ch; margin: 0 0 16px; font-size: 15px; }


@media (max-width: 860px) { .card-open .legend { display: none; } }

/* free CSV download and the price question after it (public/ask.js) */
.dl { margin: 10px 0 4px; }
.csv-ask { margin: 10px 0; padding: 12px 14px; background: var(--paper); border: 2.5px solid var(--ink); border-radius: var(--r-md); display: grid; gap: 10px; }
.csv-ask p { margin: 0; }
.csv-ask p:not(.fine) { color: var(--ink-2); font-size: 15px; }
.csv-dl + .csv-ask { margin: 10px 14px; }
.csv-ask .row { display: flex; flex-wrap: wrap; gap: 8px; }
.csv-ask .btn { min-height: 44px; }
.csv-dl { padding: 4px 14px 0; }
