/* 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: #1b1537;
  --ink-2: #3a3363;
  --ink-3: #635c8f;
  --paper: #f8f5ff;
  --news: #ebe5ff;
  --soft: #d6cdf6;
  --v: #6a3df5;
  --v-2: #8a66ff;
  --b: #2f6bff;
  --sky: #5ec8ff;
  --hi: #cfc1ff;
  --y: #ffd21a;
  --r: #ff3b5c;
  --cy: var(--sky);
  --k-new: #ff3b5c;
  --k-add: #ff3b5c;
  --k-demo: #ffd21a;
  --k-ren: #8b84b8;
  --k-other: #b9b2da;
  --plot: #1b1537;
  --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: "Fira Sans Extra Condensed", "Arial Narrow", "Helvetica Neue", sans-serif;
  --mono: "Fira Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --hard: 4px 4px 0 var(--ink);
  --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%; }
body { margin: 0; background: var(--news); color: var(--ink); font: 400 15px/1.5 var(--text); 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 { text-decoration: none; font-weight: 700; font-size: 14px; padding: 6px 10px; border: 3px solid var(--ink); background: var(--paper); box-shadow: 3px 3px 0 var(--ink); }
.top-nav a:hover { background: var(--paper); transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.donate { background: var(--b) !important; color: var(--paper) !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);
  box-shadow: 7px 7px 0 var(--ink); display: flex; flex-direction: column; min-height: 0; overflow: hidden; z-index: 10; }
.grab { display: none; }

/* Bob and his balloon */
.hero { display: none; grid-template-columns: 116px 1fr; gap: 6px; align-items: center; padding: 16px 16px 2px; position: relative; }
.panel.at-intro .hero { display: grid; }
.hero-bob { position: relative; width: 116px; height: 116px; padding: 0; border: 0; background: none; cursor: pointer; }
.hero-bob::before { content: ""; position: absolute; inset: 4px -4px -2px 2px; border-radius: 50%; border: 3px solid var(--ink);
  background: radial-gradient(circle, var(--b) 1.7px, transparent 2px) 0 0 / 8px 8px, var(--sky); }
.hero-bob > span:first-child svg { position: relative; width: 116px; height: 116px; }
.balloon { position: relative; background: #fff; border: 3px solid var(--ink); border-radius: 22px; padding: 11px 14px 12px; font-size: 14.5px; line-height: 1.35; }
.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: 0; background: #fff; font-size: 16px; font-weight: 400;
  box-shadow: 3px 3px 0 var(--ink); }
.search input::placeholder { color: #8a8478; }
.search input:focus { outline: none; background: #fff; box-shadow: 3px 3px 0 var(--b); }
.btn-icon { width: 50px; height: 50px; display: grid; place-items: center; border: 3px solid var(--ink); border-radius: 0; background: var(--b); color: #fff;
  flex-shrink: 0; box-shadow: 3px 3px 0 var(--ink); }
.btn-icon svg { width: 22px; height: 22px; stroke-width: 2.6; }
.btn-icon:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.btn-icon:active, .btn:active, .leads button:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.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: 32px; padding: 0; border: 0; background: none; 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: 32px; 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; }
.filter-toggle { display: none; }

/* filters: radius as a map scale bar, kinds as the drawing legend, period as words */
.filters { display: grid; gap: 12px; padding: 14px 16px; border-bottom: 3px solid var(--ink); margin-top: 12px; }
.panel.at-intro .filters, .panel.in-detail .filters { 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 { gap: 14px; }
#period button { border: 0; background: none; padding: 0; font-size: 14px; color: var(--ink-3); }
#period button[aria-pressed="true"] { color: var(--ink); font-weight: 700; text-decoration: underline 3px var(--v); text-underline-offset: 5px; }
.kinds { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 3px solid var(--ink); width: 100%; background: #fff; }
.lg { display: grid; grid-template-columns: 16px 1fr auto; align-items: center; gap: 9px; padding: 7px 10px; border: 0; background: transparent; text-align: left;
  font-size: 13.5px; color: var(--ink-3); }
.lg:nth-child(odd) { border-right: 2px solid var(--ink); }
.lg:nth-child(n+3) { border-top: 2px solid var(--ink); }
.lg:hover { background: var(--news); }
.lg[aria-pressed="true"] { color: var(--ink); font-weight: 700; }
.lg b { font: 500 13px/1 var(--mono); }
.lg:focus-visible { outline-offset: -4px; }
.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; }
.panel.at-intro .status, .panel.in-detail .status { display: none; }
.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; scrollbar-color: var(--ink) var(--news); }
.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 { display: inline-block; background: var(--hi); border: 3px solid var(--ink); padding: 5px 10px 6px; font-weight: 700; font-size: 13.5px; line-height: 1.3;
  box-shadow: 3px 3px 0 var(--ink); }

/* intro: three panels of a strip, each a real finding */
.intro { padding: 18px 16px 4px; display: grid; gap: 14px; }
.leads { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.leads button { display: grid; grid-template-columns: 118px 1fr; gap: 12px; align-items: center; width: 100%; padding: 8px 12px 8px 8px; border: 3px solid var(--ink);
  background: #fff; text-align: left; color: var(--ink); box-shadow: var(--hard); font-size: 14px; line-height: 1.4; }
.leads button:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.leads button:hover .go { background: var(--hi); }
.leads .art { border-right: 3px solid var(--ink); margin: -8px 0 -8px -8px; padding: 6px; background: var(--news); align-self: stretch; display: grid; place-items: center; }
.leads .art svg { width: 100%; height: auto; }
.leads em { font-style: normal; font-weight: 700; }
.leads strong { font-weight: 700; background: linear-gradient(transparent 55%, color-mix(in srgb, var(--sky) 60%, transparent) 55%); }
.leads .go { display: inline-block; margin-top: 4px; font-weight: 700; font-size: 13px; border-bottom: 2px solid var(--ink); }
.fine { font-size: 12.5px; color: var(--ink-3); }

/* Bob's summary above the list */
.bob-line { display: grid; gap: 10px; padding: 10px 16px 14px; border-bottom: 3px solid var(--ink); }
.bob-line p { font-size: 14px; color: var(--ink-2); }
.bob-line .row-end { display: grid; gap: 12px; justify-items: start; }
.bob-line .btn { flex-shrink: 0; min-height: 36px; }

/* 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: 2px solid var(--soft); background: transparent; padding: 12px 16px; color: var(--ink); }
.item:hover, .item[aria-current="true"] { background: #e6ddff; }
.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 10px; }
.item .d { font: 500 12.5px/1.6 var(--mono); 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 15px; border-radius: 0;
  border: 3px solid var(--ink); background: #fff; color: var(--ink); font-weight: 700; font-size: 14px; text-decoration: none; box-shadow: 3px 3px 0 var(--ink); }
.btn:hover { background: #fff; transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.btn.primary, .btn.primary:hover { background: var(--v); color: #fff; }
.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 */
.detail { padding: 8px 16px 18px; display: grid; gap: 16px; }
.back { justify-self: start; border: 0; background: none; font-weight: 700; padding: 8px 0 0; }
.back:hover { text-decoration: underline 2px var(--v); text-underline-offset: 4px; }
.where { font-size: 14px; color: var(--ink-2); }
.block h3 { font: 700 14px/1.2 var(--text); margin-bottom: 8px; }
.block h3::before { content: ""; display: inline-block; width: 10px; height: 10px; background: var(--v); border: 2px solid var(--ink); margin-right: 8px; vertical-align: 0; }
.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: 3px 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: -9px; 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: 500 12.5px var(--mono); color: var(--ink-3); margin-right: 8px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* the permit as the sign on the site fence */
.sign { position: relative; background: #fff; color: var(--ink); border: 4px solid var(--ink); padding: 16px 18px 14px 24px; box-shadow: 6px 6px 0 var(--ink); }
.sign::before, .sign::after { content: ""; position: absolute; top: 6px; width: 7px; height: 7px; border-radius: 50%; background: #b0b0aa; border: 1.5px solid var(--ink); }
.sign::before { left: 14px; } .sign::after { right: 6px; }
.sign .stripe { position: absolute; left: 0; top: 0; bottom: 0; width: 9px; background: var(--c); border-right: 3px solid var(--ink); }
.sign-title { font: 800 24px/1.02 var(--sign); text-transform: uppercase; letter-spacing: .02em; padding: 4px 0 9px; border-bottom: 4px solid var(--ink); margin-bottom: 10px; }
.sign dl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; margin: 0; }
.sign dl > div { display: grid; gap: 1px; }
.sign dl > .wide { grid-column: 1 / -1; }
.sign dt { font: 700 11px/1.2 var(--sign); text-transform: uppercase; letter-spacing: .08em; color: #5d5a54; }
.sign dd { font: 700 16.5px/1.2 var(--sign); text-transform: uppercase; letter-spacing: .015em; overflow-wrap: anywhere; }
.sign dd.mono { font: 500 14px/1.3 var(--mono); text-transform: none; letter-spacing: 0; }
.sign dd small { font: 600 11px/1 var(--sign); color: #5d5a54; margin-left: 6px; vertical-align: 2px; }
.redact { display: inline-block; width: 9.5em; height: .95em; background: var(--ink); vertical-align: -1px; }

/* the coverage table, as on the permit */
.cover { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; border: 3px solid var(--ink); }
.cover caption { text-align: left; font-weight: 700; font-size: 14px; padding-bottom: 8px; }
.cover th, .cover td { border-top: 2px solid var(--soft); padding: 8px 10px; }
.cover th { text-align: left; font-weight: 400; color: var(--ink-2); }
.cover td { text-align: right; font: 500 15px/1.2 var(--mono); white-space: nowrap; }

/* map furniture */
.map-ctl { position: absolute; top: 124px; right: 10px; display: grid; gap: 8px; }
.map-btn { width: 36px; height: 36px; border: 3px solid var(--ink); background: #fff; color: var(--ink); font: 400 13px/1 var(--display); box-shadow: 3px 3px 0 var(--ink); }
.map-btn[aria-pressed="true"] { background: var(--hi); }
.maplibregl-ctrl-group { background: #fff !important; border: 3px solid var(--ink); border-radius: 0 !important; box-shadow: 3px 3px 0 var(--ink) !important; }
.maplibregl-ctrl-group button + button { border-top: 2px solid var(--ink) !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: #fff; border: 3px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); padding: 7px 12px; font-weight: 700; font-size: 13px; }
.legend span { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }

/* Bob the hedgehog. art.js sets --lx/--ly (where he looks) on each drawing and his mood as a class on <html>. */
.bob-svg .h-happy, .bob-svg .h-shut, .bob-svg .h-glass { display: none; }
.bob-svg .h-eyes { transform: translate(calc(var(--lx, 0) * 6px), calc(var(--ly, 0) * 5px)); transition: transform .15s ease-out; }
.bob-svg .h-face { transform: translate(calc(var(--lx, 0) * 3px), calc(var(--ly, 0) * 2.5px)); transition: transform .2s ease-out; }
.bob-svg .h-eye { transform-box: fill-box; transform-origin: center; transition: transform .15s; }
.bob-svg .h-all, .bob-svg .h-spines, .bob-svg .h-tools { transform-box: view-box; transform-origin: 100px 196px; }
.bob-svg .h-spines, .bob-svg .h-tools { transform-origin: 100px 120px; }
.bob-svg .h-all { transition: transform .3s ease; }
.bob-svg .h-snout { transform-box: fill-box; transform-origin: 50% 100%; }
.bob-blink .bob-svg .h-eyes { display: none; }
.bob-blink .bob-svg .h-shut { display: inline; }
.bob-happy .bob-svg .h-eyes, .bob-happy .bob-svg .h-shut { display: none; }
.bob-happy .bob-svg .h-happy { display: inline; }
.bob-happy .bob-svg .h-all { animation: bob-hop .42s ease-out 2; }
.bob-wow .bob-svg .h-spines, .bob-wow .bob-svg .h-tools { animation: bob-bristle .5s ease-out both; }
.bob-wow .bob-svg .h-eye { transform: scale(1.2); }
.bob-hmm .bob-svg .h-all { transform: rotate(-9deg); }
.bob-sniff .bob-svg .h-snout { animation: bob-sniff .16s ease-in-out 6 alternate; }
.bob-glass .bob-svg .h-roll { display: none; }
.bob-glass .bob-svg .h-glass { display: inline; }
.bob-glass .bob-svg .h-eye:last-child { transform: scale(1.4); }
@keyframes bob-hop { 0%, 100% { transform: none; } 40% { transform: translateY(-16px) scale(.95, 1.05); } 75% { transform: scale(1.06, .94); } }
@keyframes bob-bristle { 0% { transform: scale(1); } 45% { transform: scale(1.13) rotate(2deg); } 100% { transform: scale(1.07); } }
@keyframes bob-sniff { to { transform: translateY(-3px) scale(1.08); } }
.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 three panels of the intro act out what they say: the crane brings a beam, the ball hits the wall, the stamp comes down */
.leads .art svg * { transform-box: view-box; }
.leads .a-swing { transform-origin: 180px 42px; }
.leads .a-ball { transform-origin: 155px 22px; }
.leads .a-boom { transform-origin: 214px 116px; }
.leads .a-stamp { transform-origin: 170px 97px; }
.leads .play .a-load { animation: a-load 1.3s cubic-bezier(.3, .7, .3, 1) var(--d, 0s) both; }
.leads .play .a-swing { animation: a-swing 1.3s ease-out var(--d, 0s) both; }
.leads .play .a-ball { animation: a-ball 1.1s cubic-bezier(.45, 0, .3, 1) var(--d, 0s) both; }
.leads .play .a-boom { animation: a-boom 1.1s ease-out var(--d, 0s) both; }
.leads .play .a-stamp { animation: a-stamp .9s cubic-bezier(.3, 0, .3, 1) var(--d, 0s) both; }
.leads .play .a-marks { animation: a-marks 1.3s ease-out var(--d, 0s) both; }
.leads .wait * { animation-play-state: paused !important; }
@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: a comic burst under its own dot, a flag with its kind, a slow pulse */
.sel-mark { position: relative; width: 0; height: 0; pointer-events: none; }
.sel-mark > * { position: absolute; }
.sel-mark .burst { left: -38px; top: -38px; width: 76px; height: 76px; animation: burst-in .45s cubic-bezier(.2, 1.5, .4, 1) both; }
.sel-mark .burst svg { width: 100%; height: 100%; animation: turn 14s linear infinite; }
.sel-mark .pulse { left: -16px; top: -16px; width: 32px; height: 32px; border-radius: 50%; border: 3px solid var(--ink); animation: pulse 1.8s ease-out .4s infinite; }
.sel-mark .dot { left: -12px; top: -12px; width: 24px; height: 24px; border-radius: 50%; background: var(--c); border: 4px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); }
.sel-mark .dot.addition { background: #fff; border-color: var(--c); outline: 3px solid var(--ink); }
.sel-mark .dot.demolition { border-radius: 2px; background: repeating-linear-gradient(45deg, var(--c) 0 4px, var(--ink) 4px 6px); }
.sel-mark .flag { left: 0; bottom: 40px; transform: translateX(-50%); white-space: nowrap; padding: 4px 9px 5px; background: #fff; border: 3px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink); font: 400 13px/1 var(--display); letter-spacing: .02em; animation: flag-in .5s cubic-bezier(.2, 1.4, .4, 1) .1s both; }
.sel-mark .flag::after { content: ""; position: absolute; left: 50%; bottom: -12px; margin-left: -8px; border: 8px solid transparent; border-top: 9px solid var(--ink); border-bottom: 0; }
.sel-mark .flag i { display: inline-block; width: 10px; height: 10px; margin-right: 6px; background: var(--c); border: 2px solid var(--ink); border-radius: 50%; vertical-align: -1px; }
@keyframes burst-in { from { transform: scale(0) rotate(-40deg); } }
@keyframes flag-in { from { transform: translate(-50%, 14px) scale(.4); opacity: 0; } }
@keyframes turn { to { transform: rotate(360deg); } }
@keyframes pulse { from { transform: scale(1); opacity: .9; } to { transform: scale(2.8); 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 8px 5px; background: #fff; border: 2.5px solid var(--ink); box-shadow: 2px 2px 0 var(--ink);
  font: 700 12.5px/1.2 var(--text); white-space: nowrap; transform: translate(-50%, calc(-100% - 14px)); }
.tip small { font: 500 11.5px var(--mono); color: var(--ink-3); margin-left: 6px; }
@media (prefers-reduced-motion: reduce) {
  .bob-svg *, .leads .play *, .sel-mark *, .hover-mark span, .squeak { animation: none !important; transition: none !important; }
}

/* the chosen point: a survey cross in ink */
.center-pin { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--ink); background: rgba(94, 200, 255, .6); position: relative; }
.center-pin::before, .center-pin::after { content: ""; position: absolute; background: var(--ink); }
.center-pin::before { left: 50%; top: -9px; bottom: -9px; width: 3px; margin-left: -1.5px; }
.center-pin::after { top: 50%; left: -9px; right: -9px; height: 3px; margin-top: -1.5px; }

/* phones: map under the masthead, panel as a bottom sheet with three heights */
@media (max-width: 860px) {
  :root { --top-h: 52px; --peek: 180px; --gap: 0px; }
  .brand-face { width: 40px; height: 40px; }
  .brand-name { font-size: 27px; }
  .brand-sub { display: none; }
  .top-nav a { font-size: 13px; padding: 4px 8px; }
  .panel { position: fixed; top: auto; left: 0; right: 0; bottom: 0; width: auto; border: 0; border-top: 3px solid var(--ink); border-radius: 18px 18px 0 0;
    box-shadow: 0 -6px 0 rgba(20, 20, 20, .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); }
  @media (prefers-reduced-motion: reduce) { .panel { transition: none; } }
  .grab { display: grid; place-items: center; width: 100%; height: 22px; border: 0; background: transparent; flex-shrink: 0; order: 0; }
  .grab span { width: 46px; height: 5px; border-radius: 3px; background: var(--ink); }
  .hero { order: 1; padding: 4px 14px 0; grid-template-columns: 92px 1fr; }
  .hero-bob, .hero-bob > span:first-child svg { width: 92px; height: 92px; }
  .ask { font-size: 20px; }
  .balloon { font-size: 14px; padding: 9px 12px 10px; }
  .status { order: 1; padding: 0 14px 4px; }
  .search { order: 2; margin: 12px 14px 0; }
  .tools { order: 3; margin: 10px 14px 0; }
  .filters { order: 4; display: none; padding: 12px 14px; }
  .panel.show-filters:not(.at-intro):not(.in-detail) .filters { display: grid; }
  .content { order: 5; margin-top: 12px; border-top: 3px solid var(--ink); }
  .panel[data-sheet="peek"] .content, .panel[data-sheet="peek"] .filters { display: none; }
  .filter-toggle { display: inline-flex; margin-left: auto; }
  .filter-toggle[aria-expanded="true"] { background: var(--hi); padding: 0 6px; }
  .panel.at-intro .filter-toggle { display: none; }
  .intro, .detail, .bob-line, .item, .content-foot, .empty { padding-left: 14px; padding-right: 14px; }
  .leads button { grid-template-columns: 100px 1fr; }
  .map-ctl { top: 120px; }
  .legend { display: none; }
  .panel.in-detail .search, .panel.in-detail .tools, .panel.in-detail .filters, .panel.in-detail .status { display: none; }
  .panel.in-detail .content { margin-top: 0; border-top: 0; }
}
