/* generated by scripts/build_pages.py from site/assets/css/*.css; edit those files, not this one */

/* ==== css/00-base.css ==== */
/* NK15068 — the valley edition */
:root {
  --ground: #ffffff;
  --surface: #ffffff;
  --raised: #eeefeb;
  --tint: #ecf0f3;
  --ink: #191a1b;
  --ink-2: #3b3d40;
  --muted: #66696c;
  --line: #d5d6d2;
  --rule: #191a1b;
  --grid: #dcddd9;
  --press: #8a1c2b;
  --press-soft: #f1dcdf;
  --bar: #8a1c2b;
  --bar-ink: #ffffff;
  --ember: #8a1c2b;
  --ember-soft: #f1dcdf;
  --river: #2463a0;
  --river-soft: #a9c4de;
  --river-peak: #163f69;
  --green: #3f7a52;
  --route: #c0561c;
  --boundary: #3b3d40;
  --here: #191a1b;
  --map-bg: #e8ebe7;
  --map-land: #e4e7e2;
  --map-green: #cfdcc9;
  --map-bldg: #b7bcc2;
  --map-road: #ffffff;
  --map-road-edge: #c5cbd0;
  --map-major: #f0b27a;
  --map-major-edge: #b8733d;
  --map-secondary: #f6cf9f;
  --map-label: #1c232a;
  --map-street-label: #39434c;
  --map-park-label: #2f6b41;
  --map-halo: rgba(255, 255, 255, .9);
  --inc-violent: #eb6834;
  --inc-property: #2a78d6;
  --inc-police: #1baf7a;
  --pet-lost: #b42318;
  --pet-found: #2f7d4f;
  --pet-spotted: #8a5a00;
  --shadow: 0 1px 2px rgba(25, 26, 27, .10);
  --f-head: "Newsreader", Georgia, "Times New Roman", serif;
  --f-text: "Newsreader", Georgia, "Times New Roman", serif;
  --f-sans: "Radio Canada", "Helvetica Neue", Arial, sans-serif;
  /* legacy names read by the canvas map through getComputedStyle: literal stacks, not var() */
  --f-display: "Newsreader", Georgia, "Times New Roman", serif;
  --f-body: "Radio Canada", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "Radio Canada", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #17181a; --surface: #1e2022; --raised: #26282b; --tint: #1f2427;
    --ink: #e8e6e1; --ink-2: #c4c2bd; --muted: #9b9994; --line: #35383b; --rule: #e8e6e1; --grid: #2c2f32;
    --press: #e8848f; --press-soft: #3a1c20; --bar: #5c1621; --bar-ink: #f6eced;
    --ember: #e8848f; --ember-soft: #3a1c20;
    --river: #5b9bd8; --river-soft: #1b3552; --river-peak: #9cc4ec; --green: #6fae80;
    --route: #ee8f45; --boundary: #9b9994; --here: #f4f2ed;
    --map-bg: #0b0f13; --map-land: #0f1419; --map-green: #13201a; --map-bldg: #2b343d;
    --map-road: #3a454f; --map-road-edge: #0b0f13; --map-major: #ee8f45; --map-major-edge: #0b0f13; --map-secondary: #b77a47;
    --map-label: #d5dce2; --map-street-label: #aeb8c1; --map-park-label: #7fb48f; --map-halo: rgba(11, 15, 19, .85);
    --inc-violent: #d95926; --inc-property: #3987e5; --inc-police: #199e70;
    --pet-lost: #f07a6a; --pet-found: #5fbf85; --pet-spotted: #e0a93a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .45);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #17181a; --surface: #1e2022; --raised: #26282b; --tint: #1f2427;
  --ink: #e8e6e1; --ink-2: #c4c2bd; --muted: #9b9994; --line: #35383b; --rule: #e8e6e1; --grid: #2c2f32;
  --press: #e8848f; --press-soft: #3a1c20; --bar: #5c1621; --bar-ink: #f6eced;
  --ember: #e8848f; --ember-soft: #3a1c20;
  --river: #5b9bd8; --river-soft: #1b3552; --river-peak: #9cc4ec; --green: #6fae80;
  --route: #ee8f45; --boundary: #9b9994; --here: #f4f2ed;
  --map-bg: #0b0f13; --map-land: #0f1419; --map-green: #13201a; --map-bldg: #2b343d;
  --map-road: #3a454f; --map-road-edge: #0b0f13; --map-major: #ee8f45; --map-major-edge: #0b0f13; --map-secondary: #b77a47;
  --map-label: #d5dce2; --map-street-label: #aeb8c1; --map-park-label: #7fb48f; --map-halo: rgba(11, 15, 19, .85);
  --inc-violent: #d95926; --inc-property: #3987e5; --inc-police: #199e70;
  --pet-lost: #f07a6a; --pet-found: #5fbf85; --pet-spotted: #e0a93a;
  --shadow: 0 1px 2px rgba(0, 0, 0, .45);
  color-scheme: dark;
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font: 400 17px/1.55 var(--f-text); text-wrap: pretty;
  -webkit-font-smoothing: antialiased;
}
@media (max-width: 719px) { body { font-size: 16.5px; } }
a { color: inherit; text-decoration-color: var(--press); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
img { max-width: 100%; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
button { font: inherit; color: inherit; }
.num { font-family: var(--f-sans); font-variant-numeric: tabular-nums; }
.page { width: min(1240px, 100%); margin-inline: auto; padding-inline: 16px; }
@media (min-width: 720px) { .page { padding-inline: 28px; } }
[id] { scroll-margin-top: 56px; }
.sec { margin-top: clamp(48px, 6vw, 80px); }
footer.sec { padding-bottom: 40px; }
.empty { color: var(--muted); font: 14px/1.4 var(--f-sans); padding: 12px 0; }

/* ---------- heading voices ---------- */
h1 {
  font: 700 clamp(30px, 1.4vw + 22px, 46px)/1.06 var(--f-head); letter-spacing: -.015em; max-width: 22ch; margin-top: 22px;
}
.sec > h2:not(.lh), .h2 {
  font: 700 clamp(27px, 1.1vw + 20px, 36px)/1.1 var(--f-head); letter-spacing: -.012em;
  border-top: 4px solid var(--rule); padding-top: 12px;
}
.deck { font: 400 clamp(18px, .5vw + 15px, 21px)/1.38 var(--f-text); color: var(--ink-2); max-width: 60ch; margin: 10px 0 28px; }
h1 + .deck { max-width: 44ch; margin-bottom: 18px; }
.gh { font: 700 18px/1.2 var(--f-sans); margin: 0; }
.chatter { font: 400 14px/1.4 var(--f-sans); color: var(--ink-2); margin: 4px 0 14px; max-width: 72ch; }
.lh {
  font: 700 15px/1.1 var(--f-sans); font-stretch: 80%; text-transform: uppercase; letter-spacing: .02em;
  border-top: 3px solid var(--rule); padding-top: 8px; margin: 0 0 12px;
}
.lh.big { font-size: 22px; }
.kicker { font: 700 13px/1.3 var(--f-sans); color: var(--press); margin: 0 0 4px; }
.caption { font: 400 13.5px/1.4 var(--f-sans); color: var(--ink-2); margin-top: 8px; }
.credit, .caption .credit { font: 400 13px/1.45 var(--f-sans); color: var(--muted); }
.credit a, a.cr { color: var(--ink-2); }
.fine { font: 400 12.5px/1.45 var(--f-sans); color: var(--muted); margin-top: 10px; }
.sub-h { font: 700 22px/1.2 var(--f-head); margin: 40px 0 14px; }
.act { font: 700 15px/1.3 var(--f-sans); color: var(--press); text-decoration: none; white-space: nowrap; }
.act:hover { text-decoration: underline; }
.linkbtn { all: unset; cursor: pointer; font: 600 13px/1.3 var(--f-sans); color: var(--ink); text-decoration: underline; text-decoration-color: var(--press); text-underline-offset: 3px; }
.linkbtn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.text-btn { all: unset; cursor: pointer; font: 700 15px/1.3 var(--f-sans); color: var(--press); margin-top: 18px; display: inline-block; }
.text-btn:hover { text-decoration: underline; }
.text-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.btn-line {
  display: block; width: 100%; min-height: 44px; margin-top: 16px; padding: 10px 14px; cursor: pointer;
  font: 700 14px/1.2 var(--f-sans); color: var(--ink); background: var(--surface); border: 1px solid var(--rule); border-radius: 0; text-align: center; text-decoration: none;
}
.btn-line:hover { background: var(--raised); }
.btn-line.inline { display: inline-block; width: auto; }

/* ---------- masthead ---------- */
.utility { border-bottom: 1px solid var(--line); font: 400 13px/32px var(--f-sans); color: var(--ink-2); }
.utility .page { display: flex; gap: 28px; min-height: 32px; }
.utility .u-mid { display: none; }
@media (min-width: 720px) { .utility .u-mid { display: inline; } }
.flag { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: end; padding-block: 18px 14px; }
.nameplate {
  font: 800 clamp(34px, 5vw, 54px)/.9 var(--f-head); letter-spacing: -.025em; font-variation-settings: "opsz" 72;
  text-decoration: none; color: var(--ink);
}
.tagline { font: 400 14px/1.35 var(--f-sans); color: var(--ink-2); padding-bottom: 2px; }
.ear { border: 1px solid var(--line); padding: 8px 12px; font: 400 12.5px/1.4 var(--f-sans); color: var(--ink-2); max-width: 30ch; }
.ear b { display: block; color: var(--ink); font-weight: 700; }
@media (max-width: 719px) { .ear { display: none; } .flag { grid-template-columns: 1fr; gap: 6px; padding-block: 14px 12px; } }
.secbar { position: sticky; top: 0; z-index: 20; height: 44px; background: var(--bar); color: var(--bar-ink); }
.secbar .page { display: flex; align-items: stretch; height: 44px; gap: 8px; }
.secbar .links { display: flex; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; margin-left: -12px; }
.secbar .links::-webkit-scrollbar { display: none; }
.secbar a, .secbar button {
  font: 700 14.5px/44px var(--f-sans); font-stretch: 88%; letter-spacing: 0; color: var(--bar-ink);
  padding: 0 12px; text-decoration: none; white-space: nowrap;
}
.secbar a:hover { background: rgba(255, 255, 255, .1); }
.secbar a[aria-current="page"] { box-shadow: inset 0 -4px 0 var(--bar-ink); }
.secbar a:focus-visible, .secbar button:focus-visible { outline: 2px solid var(--bar-ink); outline-offset: -4px; }
.secbar button { background: none; border: 0; border-left: 1px solid rgba(255, 255, 255, .28); cursor: pointer; flex: none; }

/* ---------- grids ---------- */
.well-rail { display: grid; gap: 40px; }
.river { display: grid; gap: 32px; }
@media (min-width: 960px) {
  .well-rail { grid-template-columns: minmax(0, 7.2fr) minmax(0, 3.2fr); }
  .river { grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr); gap: 20px; }
  .river > * + * { border-left: 1px solid var(--line); padding-left: 20px; }
}
.runin { columns: 3 18rem; column-gap: 32px; column-fill: balance; }
.runin.few { columns: 1; max-width: 66ch; }
.runin > * { break-inside: avoid; margin: 0 0 16px; }
.runin .meta { font: 400 13px/1.45 var(--f-sans); color: var(--muted); margin-top: 4px; }
.runin .meta a { color: var(--ink-2); }
.box { background: var(--raised); padding: 16px 18px; }
.box + .box { margin-top: 20px; }
.well-rail > .rail, .safety-grid > .rail { align-self: start; }
.rail.sticky { position: sticky; top: 60px; align-self: start; }

/* ---------- route shields ---------- */
.ks { vertical-align: -6px; margin-left: 4px; }
.rt { font: 600 12.5px var(--f-sans); color: var(--ink-2); margin-left: 6px; white-space: nowrap; }

/* ---------- tables (agate, booktabs) ---------- */
.dir-table-wrap { overflow-x: auto; position: relative; }
.dir-table-wrap.fade { mask-image: linear-gradient(90deg, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); }
table.dir { width: 100%; border-collapse: collapse; font: 14px/1.3 var(--f-sans); border-top: 2px solid var(--rule); border-bottom: 2px solid var(--rule); }
table.dir th {
  text-align: left; font: 700 12.5px/1.25 var(--f-sans); color: var(--ink-2); padding: 9px 10px 7px 6px;
  border-bottom: 1px solid var(--rule); vertical-align: bottom; background: var(--ground);
}
table.dir td { padding: 7px 10px 7px 6px; vertical-align: top; }
table.dir tbody tr:nth-child(odd) td { background: color-mix(in srgb, var(--raised) 55%, transparent); }
table.dir td .sub { display: block; color: var(--muted); font-weight: 400; font-size: 12px; }
table.dir .num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
table.dir th.num { white-space: normal; }
table.dir tr[data-go] { cursor: pointer; }
table.dir tr[data-go]:hover td { background: var(--raised); }
table.dir a { color: var(--ink-2); }
.dot { display: inline-block; width: 10px; height: 10px; margin-right: 8px; vertical-align: 0; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- print ---------- */
@media print {
  .secbar, .utility, .explorer, .layers, .zoom, .filters, button, .skip, .site-foot #site-index, .adslot, .sitesearch, .no-print { display: none !important; }
  :root, :root[data-theme="dark"], :root:not([data-theme="light"]) {
    --ground: #fff; --surface: #fff; --raised: #eeefeb; --tint: #ecf0f3; --ink: #191a1b; --ink-2: #3b3d40; --muted: #66696c;
    --line: #d5d6d2; --rule: #191a1b; --grid: #dcddd9; --press: #8a1c2b; --river: #2463a0; --river-peak: #163f69;
    --inc-violent: #eb6834; --inc-property: #2a78d6; --inc-police: #1baf7a; color-scheme: light;
  }
  body { font: 11pt/1.45 var(--f-text); background: #fff; color: #000; }
  details::details-content { content-visibility: visible; display: contents; }
  details > summary { display: none; }
  a[href^="http"].cr::after { content: " (" attr(href) ")"; font-size: 9pt; word-break: break-all; }
  details > *:not(summary) { display: block !important; }
  .river, .well-rail, .safety-grid { display: block !important; }
  .river > * { border: 0 !important; padding-left: 0 !important; margin-bottom: 18px; }
  .rail.sticky, #safety-depts.sticky { position: static; }
}

/* ==== css/10-shell.css ==== */
/* ---------- shell: skip link, width helpers ---------- */
.skip { position: absolute; left: 8px; top: -64px; z-index: 100; background: var(--ink); color: var(--ground); padding: 10px 14px; font: 700 15px/1.2 var(--f-sans); text-decoration: none; }
.skip:focus { top: 8px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 719px) { .w720 { display: none !important; } }
@media (max-width: 959px) { .w960 { display: none !important; } }
@media (min-width: 720px) { .m-only { display: none !important; } }
@media (min-width: 960px) { .no960 { display: none !important; } }

/* ---------- masthead ---------- */
.utility .page { justify-content: space-between; gap: 16px; }
.utility a { color: var(--ink); }
.utility .u-right { white-space: nowrap; }
@media (max-width: 719px) { .utility .u-right { display: none; } }
.tel-inline { font-weight: 700; font-variant-numeric: tabular-nums; }
.flag .sitesearch { justify-self: end; }
.ear.sitesearch { border: 0; padding: 0; max-width: none; width: min(340px, 100%); }
.flag.compact { grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; padding-block: 10px; }
.flag.compact .nameplate { font-size: 34px; }
.flag.compact .tagline { font-size: 13.5px; padding: 0; }
.flag.compact .tagline span + span::before { content: "· "; }
.flag.compact .ear.sitesearch label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (max-width: 719px) {
  .flag.compact { grid-template-columns: auto 1fr; gap: 12px; min-height: 52px; padding-block: 6px; }
  .flag.compact .nameplate { font-size: 30px; }
  .flag.compact .tagline { font-size: 12.5px; line-height: 1.3; text-align: right; }
  .flag.compact .tagline span { display: block; }
  .flag.compact .tagline span + span::before { content: none; }
}

/* ---------- search forms ---------- */
.sitesearch label { display: block; font: 700 13.5px/1.3 var(--f-sans); color: var(--ink); margin-bottom: 4px; }
.sitesearch .sf-row { display: flex; }
.sitesearch input {
  flex: 1; min-width: 0; height: 44px; padding: 0 12px; font: 16px/1 var(--f-sans); color: var(--ink);
  background: var(--surface); border: 1px solid var(--rule); border-right: 0; border-radius: 0;
}
.sitesearch button {
  height: 44px; padding: 0 16px; font: 700 15px/1 var(--f-sans); color: var(--ground); background: var(--ink);
  border: 1px solid var(--ink); border-radius: 0; cursor: pointer;
}

/* ---------- section bar ---------- */
.secbar .links { margin-left: -9px; }
.secbar a { position: relative; }
.secbar .lw { display: none; }
@media (min-width: 720px) { .secbar .lw { display: inline; } .secbar .ln { display: none; } }
.badge {
  position: absolute; top: 3px; right: 0; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px;
  background: var(--bar-ink); color: var(--bar); font: 700 11px/16px var(--f-sans); text-align: center; pointer-events: none;
}
.secbar details.more { flex: none; }
.secbar summary {
  list-style: none; cursor: pointer; height: 44px; font: 700 14.5px/44px var(--f-sans); font-stretch: 88%; color: var(--bar-ink);
  padding: 0 12px; border-left: 1px solid rgba(255, 255, 255, .28); white-space: nowrap;
}
.secbar summary::-webkit-details-marker { display: none; }
.secbar summary:hover, .secbar details[open] > summary { background: rgba(255, 255, 255, .14); }
.secbar summary:focus-visible { outline: 2px solid var(--bar-ink); outline-offset: -4px; }
.more-sheet {
  position: absolute; left: 0; right: 0; top: 44px; z-index: 30; max-height: calc(100vh - 44px); overflow: auto;
  background: var(--ground); color: var(--ink); border-top: 3px solid var(--rule); box-shadow: 0 10px 28px rgba(0, 0, 0, .22);
}
@media (min-width: 720px) { .more-sheet { left: auto; right: max(16px, calc((100vw - 1240px) / 2 + 28px)); width: 320px; border: 1px solid var(--line); border-top: 3px solid var(--rule); } }
.more-sheet ul { list-style: none; margin: 0; padding: 4px 16px 10px; }
.more-sheet li { min-height: 48px; padding: 5px 0; border-bottom: 1px solid var(--line); font: 600 15.5px/1.35 var(--f-sans); }
.more-sheet li:last-child { border-bottom: 0; }
.more-sheet a { display: inline-block; color: var(--ink); padding: 7px 0; text-decoration-color: var(--line); }
.more-sheet a:hover { text-decoration-color: var(--ink); }
.more-sheet .sitesearch { width: 100%; padding: 8px 0 4px; }
.more-sheet .text-btn { margin: 0; color: var(--ink); padding: 10px 0; }
.secbar .theme-btn { flex: none; }
/* phone bar: "Lost pets · Call · Calendar · Crime · Map · More" must fit down to 360 px (measured with the real fonts) */
@media (max-width: 719px) {
  .secbar .page { gap: 0; }
  .secbar a, .secbar summary { padding: 0 10px; }
}
@media (max-width: 399px) {
  .secbar .page { padding-inline: 12px; }
  .secbar .links { margin-left: -8px; }
  .secbar a, .secbar summary { padding: 0 9px; }
}
@media (max-width: 369px) { .secbar a, .secbar summary { padding: 0 8px; } }

/* ---------- page furniture ---------- */
.crumbs { font: 400 13.5px/1.3 var(--f-sans); color: var(--ink-2); padding-top: 16px; }
.crumbs a { color: var(--ink-2); text-decoration-color: var(--line); display: inline-block; padding: 6px 0; }
.crumbs + .page > h1, .crumbs + * h1:first-child { margin-top: 6px; }
.dateline { font: 400 14px/1.4 var(--f-sans); color: var(--muted); margin-top: 8px; }
h1 + .dateline { margin-top: 10px; }
.dateline + .deck { margin-top: 12px; }
.credit a, a.cr { text-decoration-color: var(--line); }
.credit a:hover, a.cr:hover { text-decoration-color: var(--ink-2); }
.go { display: inline-block; padding: 10px 0; font: 700 15px/1.3 var(--f-sans); color: var(--ink); text-decoration: none; }
.go:hover { text-decoration: underline; text-decoration-color: var(--ink); }

/* ---------- tap-to-call ---------- */
a.tel {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; min-width: 44px;
  padding: 0 14px; border: 1px solid var(--rule); background: var(--surface); color: var(--ink); text-decoration: none;
  font: 700 16px/1.2 var(--f-sans); font-variant-numeric: tabular-nums; white-space: nowrap;
}
a.tel:hover { background: var(--raised); }
a.tel.primary { background: var(--bar); border-color: var(--bar); color: var(--bar-ink); }
a.tel.primary:hover { filter: brightness(1.08); }
a.tel.stack { flex-direction: column; align-items: flex-start; justify-content: center; padding: 6px 12px; gap: 0; white-space: normal; }
a.tel .small { display: block; font: 400 12.5px/1.25 var(--f-sans); color: inherit; }
a.tel.mine { outline: 2px solid var(--ink); outline-offset: -2px; }
.tel-alt { font: 400 13.5px/1.3 var(--f-sans); color: var(--ink-2); margin-left: 6px; white-space: nowrap; }
.tel-alt a { font-weight: 700; font-variant-numeric: tabular-nums; display: inline-block; padding: 12px 0; }
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.three a.tel { width: 100%; }

/* ---------- pickers and segmented toggles ---------- */
.picker { display: flex; flex-wrap: wrap; gap: 6px; }
.picker button, .seg {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 14px; cursor: pointer;
  border: 1px solid var(--rule); border-radius: 0; background: var(--surface); color: var(--ink);
  font: 700 14.5px/1.2 var(--f-sans); text-decoration: none;
}
.seg { min-height: 48px; }
.picker button[aria-pressed="true"], .seg[aria-pressed="true"], .seg[aria-current="true"] { background: var(--ink); color: var(--ground); }

/* ---------- ads (server-rendered only, never on help pages) ---------- */
.adslot { min-height: 280px; margin: 32px 0; }
.adslot-label { font: 400 11px/1.2 var(--f-sans); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 4px; }

/* ---------- footer ---------- */
.site-foot { margin-top: clamp(56px, 7vw, 96px); padding: 0 0 40px; font: 14px/1.5 var(--f-sans); color: var(--ink-2); }
.site-foot > .page { border-top: 4px solid var(--rule); padding-top: 18px; }
#site-index { display: grid; gap: 8px 24px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-bottom: 18px; }
#site-index .fh { font: 700 13px/1.2 var(--f-sans); text-transform: uppercase; letter-spacing: .03em; color: var(--ink); margin: 6px 0 2px; }
#site-index ul { list-style: none; margin: 0; padding: 0; }
#site-index a { display: inline-block; padding: 6px 0; color: var(--ink); text-decoration: none; }
#site-index a:hover { text-decoration: underline; }
.site-foot p { margin-top: 6px; }
.site-foot p a { color: var(--ink); }
.foot-links a { display: inline-block; padding: 6px 0; }
.foot-attrib { font-size: 12.5px; color: var(--muted); }

/* ==== css/20-crime.css ==== */
/* crime pages, blotter, crashes (owner: crime pages) */
.crime-hub .sec > p, .crime-dept .sec > p, .crashes-page .sec > p, .blotter-page > p, .about-data p { max-width: 70ch; }
.crime-hub .sec > p + p, .crime-dept .sec > p + p, .crashes-page .sec > p + p { margin-top: 12px; }
.sec > .credit, .sec > .fine { margin-top: 10px; }
.finding { font: 600 clamp(18px, .4vw + 16px, 20px)/1.38 var(--f-head); max-width: 62ch; margin: 16px 0 8px; }
.lead { font: 400 clamp(18px, .4vw + 16px, 20px)/1.5 var(--f-text); max-width: 66ch; margin-top: 22px; }
.lead + .credit { margin-top: 8px; }
.sources { margin-top: 48px; padding-top: 12px; border-top: 1px solid var(--line); max-width: 90ch; }
.gh { margin-top: 28px; margin-bottom: 8px; }
.sec > h2 + p, .sec > h2 + .chatter, .sec > h2 + .finding { margin-top: 14px; }
.multiples + p, .dir-table-wrap + p:not(.credit):not(.table-note), .blotter + p { margin-top: 14px; }
.crime-dept .sec .dir-table-wrap, .crashes-page .sec .dir-table-wrap, .crime-hub .sec .dir-table-wrap { max-width: 820px; }
.blotter { max-width: 760px; }
.crime-dept .sec .dir-table-wrap.narrow { max-width: 440px; }

/* ---------- desktop: numbers / contact box in a right rail beside the first answer ---------- */
@media (min-width: 960px) {
  .top-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 3.4fr); column-gap: 48px; align-items: start; }
  .top-grid > .top-rail { grid-column: 2; grid-row: 1; margin-top: 28px; }
  .top-grid > .top-main { grid-column: 1; grid-row: 1; margin-top: 28px; }
  .top-grid > .top-main > .lead:first-child { margin-top: 0; }
  .numline.top-rail { grid-template-columns: 1fr; }
  .numline.top-rail .three { grid-template-columns: 1fr; }
  .numline.top-rail .three a.tel.stack { flex-direction: row; justify-content: space-between; align-items: center; gap: 12px; }
  .numline.top-rail .three a.tel .small { font-size: 14px; font-weight: 700; }
}

/* ---------- numbers line (hub) and contact box (department pages) ---------- */
.numline { margin-top: 20px; display: grid; gap: 12px; border-top: 3px solid var(--rule); padding-top: 12px; }
.numline .nl-l { display: block; font: 700 13.5px/1.3 var(--f-sans); color: var(--ink-2); margin-bottom: 4px; }
.numline .nl-911 a.tel { min-width: 88px; font-size: 18px; }
.numline .three a.tel.stack { font: 700 15px/1.2 var(--f-sans); }
.numline .credit { margin-top: 0; }
@media (min-width: 720px) {
  .numline { grid-template-columns: auto minmax(0, 560px); justify-content: start; column-gap: 28px; align-items: end; }
  .numline .credit { grid-column: 1 / -1; }
}
.contact.box { margin-top: 20px; max-width: 640px; display: grid; gap: 10px; align-content: start; }
.contact .c-name { font: 400 15px/1.45 var(--f-sans); color: var(--ink-2); }
.contact .c-name b { color: var(--ink); font-size: 16px; }
.contact .c-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.contact .c-row a.tel { min-width: 88px; }
.contact .c-what { font: 400 14.5px/1.35 var(--f-sans); color: var(--ink-2); }
.contact .c-what a { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; display: inline-flex; align-items: center; min-height: 44px; }
.contact .credit { margin-top: 0; }

/* ---------- short answers and department links ---------- */
.answers { display: grid; gap: 18px; margin-top: 16px; }
.answers .ans p { font: 400 17.5px/1.55 var(--f-text); max-width: 68ch; }
.answers .ans .go { padding: 6px 0; }
.answers .ans.mine { box-shadow: inset 3px 0 0 var(--ink); padding-left: 14px; }
.dept-links { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 4px; max-width: 760px; }
.dept-links li { padding: 6px 0 10px; border-bottom: 1px solid var(--line); font: 400 15px/1.45 var(--f-sans); color: var(--ink-2); }
.dept-links li:last-child { border-bottom: 0; }
.dept-links .go { display: block; padding: 6px 0 2px; font: 700 18px/1.3 var(--f-head); }
.dept-links .dl-row b { color: var(--ink); }

/* ---------- about the data ---------- */
details.about-data { margin-top: clamp(40px, 5vw, 64px); border-top: 4px solid var(--rule); }
details.about-data > summary {
  cursor: pointer; list-style: none; font: 700 clamp(22px, .8vw + 18px, 28px)/1.2 var(--f-head); padding: 12px 0; min-height: 44px;
}
details.about-data > summary::-webkit-details-marker { display: none; }
details.about-data > summary::after { content: " ›"; color: var(--muted); }
details.about-data[open] > summary::after { content: ""; }
.about-data p { font: 400 15px/1.5 var(--f-sans); color: var(--ink-2); }
.about-data p + p { margin-top: 10px; }
.about-data p b { color: var(--ink); }
section.about-data { border-top: 0; }

/* ---------- box score ---------- */
table.box-score { width: 100%; max-width: 860px; border-collapse: collapse; font-family: var(--f-sans); border-top: 2px solid var(--rule); border-bottom: 2px solid var(--rule); margin-top: 14px; }
.box-score th { font: 700 12.5px/1.2 var(--f-sans); color: var(--ink-2); text-align: right; padding: 8px 8px 6px; border-bottom: 1px solid var(--rule); vertical-align: bottom; }
.box-score th:first-child { text-align: left; }
.box-score td { padding: 8px; text-align: right; vertical-align: top; }
.box-score tbody tr:nth-child(odd) td, .box-score tbody tr:nth-child(odd) th { background: color-mix(in srgb, var(--raised) 55%, transparent); }
.box-score tbody th { text-align: left; font: 700 16px/1.2 var(--f-head); border: 0; padding: 8px; color: var(--ink); vertical-align: top; }
.box-score tbody th a { text-decoration-color: var(--line); }
.box-score tbody th small { display: block; font: 400 12px/1.3 var(--f-sans); color: var(--muted); margin-top: 2px; }
.box-score b { display: block; font: 700 16px/1.2 var(--f-sans); font-variant-numeric: tabular-nums; }
.box-score small { display: block; font: 400 12px/1.3 var(--f-sans); color: var(--muted); }
.box-score + .credit, .dir-table-wrap + .credit { margin-top: 8px; }
@media (max-width: 479px) { .box-score td, .box-score th { padding-inline: 5px; } .box-score tbody th small { display: none; } }

/* ---------- small-multiple charts ---------- */
.multiples { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px 28px; margin-top: 14px; max-width: 1000px; }
.multiples.one { grid-template-columns: minmax(0, 460px); }
.multiples + .credit, .multiples + .fine { margin-top: 6px; }
.panel-chart { position: relative; }
.panel-chart h4 { font: 700 15px/1.3 var(--f-sans); margin: 0 0 4px; display: flex; align-items: center; gap: 8px; }
.panel-chart h4 i { width: 14px; height: 2px; display: inline-block; }
.panel-chart svg { display: block; width: 100%; height: auto; overflow: visible; touch-action: pan-y; }
.panel-chart svg:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.panel-chart .tip {
  position: absolute; pointer-events: none; background: var(--surface); border: 1px solid var(--rule); box-shadow: var(--shadow);
  padding: 6px 8px; font: 13px/1.35 var(--f-sans); white-space: nowrap; z-index: 3; transform: translate(-50%, -100%);
}
.panel-chart .tip b { font: 700 14px var(--f-sans); display: block; }
.panel-chart .tip span { color: var(--muted); font-size: 12px; }

/* ---------- tables in details ---------- */
details.tableview { margin-top: 24px; border-top: 1px solid var(--line); }
details.tableview > summary {
  cursor: pointer; list-style: none; font: 700 16px/1.3 var(--f-sans); color: var(--ink); padding: 12px 0; min-height: 44px;
}
details.tableview > summary::-webkit-details-marker { display: none; }
details.tableview > summary::after { content: " ›"; color: var(--muted); }
details.tableview[open] > summary { margin-bottom: 6px; }
details.tableview[open] > summary::after { content: ""; }
.sec details.tableview { margin-top: 18px; }
.table-note { font: 13px/1.45 var(--f-sans); color: var(--muted); margin-top: 8px; max-width: 80ch; }
.dir-table-wrap.narrow { max-width: 440px; }
table.dir tr.tot td { font-weight: 700; color: var(--ink); }
table.dir td small { font-size: 12px; margin-left: 0; }
.gap { margin-top: 20px; }

/* ---------- police blotter ---------- */
.note { background: var(--tint); padding: 14px 16px; font: 15.5px/1.5 var(--f-text); margin: 18px 0 0; max-width: 78ch; }
.note b { font: 700 13.5px/1 var(--f-sans); }
.blotter { margin-top: 8px; }
.blotter .entry { padding: 12px 0; }
.blotter .entry:not([hidden]) ~ .entry { border-top: 1px dotted var(--line); }
.bl { font: 16.5px/1.5 var(--f-text); max-width: 68ch; }
.bl .lead-in { font: 700 .88em var(--f-sans); }
.bl .what { font-weight: 700; }
.entry .inc-key, .inc-filters .inc-key { display: inline-block; width: 9px; height: 9px; margin-right: 6px; vertical-align: .05em; flex: none; }
.entry .inc-key.pi { transform: rotate(45deg) scale(.95); }
.blotter .meta { font: 13px/1.45 var(--f-sans); color: var(--muted); margin-top: 4px; }
.blotter .meta a { color: var(--ink-2); display: inline-block; padding: 4px 0; }
.blotter .xref { font: 13.5px/1.4 var(--f-sans); margin-top: 2px; }
.blotter .xref a { color: var(--ink); display: inline-block; padding: 8px 0; }
.blotter .entry.near { box-shadow: inset 3px 0 0 var(--line); padding-left: 12px; }
.wapo { font: 15px/1.5 var(--f-sans); color: var(--ink-2); margin-top: 16px; max-width: 70ch; }

.inc-filters { display: grid; gap: 12px; margin: 22px 0 6px; padding-top: 12px; border-top: 3px solid var(--rule); max-width: 900px; }
.inc-filters .cats button { gap: 6px; font-size: 14px; padding: 0 12px; }
.inc-filters .cats .n { font-weight: 400; font-variant-numeric: tabular-nums; }
.inc-filters .frow { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: end; }
.inc-filters .fl { display: grid; gap: 4px; font: 700 13.5px/1.3 var(--f-sans); color: var(--ink-2); }
.inc-filters .fl.st { flex: 1 1 220px; max-width: 380px; }
.inc-filters select, .inc-filters input[type="search"] {
  height: 44px; font: 16px/1 var(--f-sans); padding: 0 10px; border: 1px solid var(--rule); border-radius: 0; background: var(--surface); color: var(--ink);
  min-width: 0; width: 100%;
}
.inc-filters select { min-width: 140px; }
.inc-filters .near { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font: 400 15px/1.3 var(--f-sans); cursor: pointer; }
.inc-filters .near input { width: 20px; height: 20px; margin: 0; accent-color: var(--ink); flex: none; }
.inc-filters .near:has(input:disabled) { color: var(--muted); cursor: default; }
.count { font: 14px/1.4 var(--f-sans); color: var(--ink-2); font-variant-numeric: tabular-nums; margin-top: 10px; }
.inc-map-p { margin-top: 2px; }
.inc-yr { margin-top: 30px; }
.inc-yr .yr-h { font: 700 clamp(24px, .8vw + 20px, 30px)/1.1 var(--f-head); border-top: 2px solid var(--rule); padding-top: 10px; }
#inc-none { margin-top: 12px; }

@media print {
  .inc-filters, .inc-map-p, .blotter .meta a[href*="map/"] { display: none !important; }
  .answers .ans.mine { box-shadow: none; padding-left: 0; }
}

/* ==== css/30-pets.css ==== */
/* ---------- lost & found pets (owner: pets pages) ----------
   The board uses .board and .listing-* class names (ad blockers hide anything named like an ad). Status colours use the --pet-*
   tokens; maroon stays chrome. */

/* ---------- compact rows: home box, town pages, search ---------- */
.petrows { list-style: none; margin: 0; padding: 0; }
.listing-row + .listing-row { border-top: 1px solid var(--line); }
.listing-row a { display: block; padding: 8px 0; color: var(--ink); text-decoration: none; font: 400 15px/1.38 var(--f-sans); overflow-wrap: anywhere; }
.listing-row a:hover .listing-desc { text-decoration: underline; text-decoration-color: var(--ink-2); }
.listing-row .listing-st { font: 700 12.5px/1.2 var(--f-sans); text-transform: uppercase; letter-spacing: .03em; margin-right: 2px; }
.listing-row .listing-where { display: block; color: var(--ink-2); font-size: 13.5px; margin-top: 2px; }
[data-status="lost"] > .listing-st, [data-status="lost"] > a > .listing-st { color: var(--pet-lost); }
[data-status="found"] > .listing-st, [data-status="found"] > a > .listing-st { color: var(--pet-found); }
[data-status="spotted"] > .listing-st, [data-status="spotted"] > a > .listing-st { color: var(--pet-spotted); }

/* ---------- home pets box ---------- */
.pets-box { border: 2px solid var(--pet-lost); background: var(--surface); padding: 9px 12px 4px; }
.pets-box .listing-row a { padding: 6px 0; font-size: 14.5px; }
.pets-box .listing-row .listing-where { font-size: 13px; margin-top: 1px; }
.pets-box .lh { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-top: 0; padding-top: 0; margin-bottom: 4px; }
.pets-box .pb-count { font-weight: 400; font-stretch: 100%; text-transform: none; letter-spacing: 0; color: var(--ink-2); font-size: 14px; }
.pb-msg { font: 400 15px/1.45 var(--f-sans); color: var(--ink); margin: 4px 0; }
.pb-msg a.tel { vertical-align: middle; margin: 2px 0; }
.pb-acts { display: flex; flex-wrap: wrap; gap: 0 14px; margin-top: 2px; border-top: 1px solid var(--line); }
.pb-acts .act { display: inline-block; padding: 9px 0; font-size: 14px; }

/* ---------- town pages ---------- */
.pets-town .pt-lead { font: 400 17px/1.5 var(--f-text); margin: 12px 0 8px; }
.pets-town .pt-lead a { font-weight: 600; }
.pets-town .pt-live { max-width: 60ch; }
.pets-town .petrows { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 6px 0 4px; }
.pets-town .pt-next { font: 400 15px/1.5 var(--f-sans); margin: 14px 0 4px; display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; }
.pets-town .pt-next .act { display: inline-block; padding: 10px 0; }

/* ---------- /lost-pets/: head, toggles, board summary ---------- */
.lp { display: grid; gap: 0 40px; grid-template-columns: minmax(0, 1fr); }
.lp-head .deck { margin-bottom: 16px; }
.lp-toggles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 12px; max-width: 460px; }
.lp-toggles .seg { padding: 0 10px; text-align: center; }
.board-sum { border: 2px solid var(--pet-lost); padding: 9px 12px; margin: 0 0 16px; font: 400 15px/1.4 var(--f-sans); max-width: 60ch; }
.board-sum a { color: var(--ink); text-decoration: none; display: block; }
.board-sum .bs-go { font-weight: 700; white-space: nowrap; }
.board-sum a:hover .bs-go { text-decoration: underline; }
.board-sum[data-state="unknown"] a { display: inline; text-decoration: underline; font-weight: 700; }
main[data-mode="lost"] #found, main[data-mode="found"] #lost { display: none; }
.lp-toggles .seg[aria-current="true"] { background: var(--ink); color: var(--ground); }
@media (min-width: 960px) {
  .lp { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); grid-template-rows: auto 1fr; }
  .lp-head { grid-column: 1; grid-row: 1; }
  .lp > .callnow { grid-column: 2; grid-row: 1 / span 2; align-self: start; margin-top: 30px; }
  .lp-main { grid-column: 1; grid-row: 2; }
}

/* ---------- Call now card ---------- */
.callnow { padding: 12px 14px 10px; margin: 0 0 8px; }
.callnow .lh { margin-bottom: 6px; }
.cn-cap { font: 400 14px/1.4 var(--f-sans); color: var(--ink-2); margin: 0 0 8px; }
.callnow .picker { margin: 0 0 6px; flex-wrap: nowrap; }
.callnow .picker button { flex: 1 1 auto; padding: 0 8px; font-size: 14px; }
.cn-rows { list-style: none; margin: 0; padding: 0; }
.cn-row { padding: 8px 0; border-top: 1px solid var(--line); }
.cn-row:first-child { border-top: 0; padding-top: 4px; }
.cn-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 10px; }
.cn-name { font: 700 15px/1.25 var(--f-sans); }
.cn-btns { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.callnow a.tel { font-size: 15px; padding: 0 11px; }
.cn-desc { font: 400 13.5px/1.35 var(--f-sans); color: var(--ink-2); margin-top: 3px; }
.cn-desc .small { display: block; font-size: 12.5px; color: var(--muted); }
.cn-desc .tel-alt { display: block; margin-left: 0; font-size: 13px; }
.cn-desc .tel-alt a { padding: 4px 0; }
.cn-row[data-k="warden"] .cn-top { grid-template-columns: minmax(0, 1fr); }
.cn-row[data-k="warden"] .cn-btns { justify-content: flex-start; }
.callnow .credit { margin-top: 6px; font-size: 12.5px; }
.callnow.mini { margin-top: 0; }

/* ---------- the board ---------- */
.board-sec { margin-top: clamp(28px, 3vw, 40px); }
.board-h { display: flex; justify-content: space-between; align-items: baseline; font-size: 22px; }
.board-count { font-weight: 400; font-stretch: 100%; text-transform: none; letter-spacing: 0; font-size: 15px; color: var(--ink-2); }
#pets-status { font: 400 14.5px/1.45 var(--f-sans); color: var(--ink-2); margin: 4px 0 12px; max-width: 70ch; }
#pets-status a { color: var(--ink); font-weight: 600; }
#pets-status .tel-inline, .listing-empty .tel-inline { display: inline-block; padding: 8px 0; color: var(--ink); }
.corner { margin: 0 0 16px; max-width: 560px; }
.corner-l { display: block; font: 700 13.5px/1.3 var(--f-sans); margin-bottom: 4px; }
.corner-row { display: flex; }
.corner-row input {
  flex: 1; min-width: 0; height: 44px; padding: 0 12px; font: 16px/1 var(--f-sans); color: var(--ink);
  background: var(--surface); border: 1px solid var(--rule); border-right: 0; border-radius: 0;
}
.corner-row button {
  height: 44px; padding: 0 14px; font: 700 15px/1 var(--f-sans); color: var(--ground); background: var(--ink);
  border: 1px solid var(--ink); border-radius: 0; cursor: pointer; white-space: nowrap;
}
.corner-row2 { display: flex; flex-wrap: wrap; align-items: center; gap: 0 20px; min-height: 44px; }
.corner-row2 .linkbtn { font-size: 14.5px; padding: 12px 0; }
.remember { display: inline-flex; align-items: center; gap: 8px; font: 400 14.5px/1.3 var(--f-sans); min-height: 44px; cursor: pointer; }
.remember input { width: 18px; height: 18px; margin: 0; accent-color: var(--ink); }
.consent { border-left: 3px solid var(--rule); padding: 6px 0 4px 12px; margin: 4px 0 8px; font: 400 14.5px/1.45 var(--f-sans); }
.consent .btn-line { margin: 8px 8px 0 0; }
.corner-msg { font: 400 13.5px/1.4 var(--f-sans); color: var(--ink-2); min-height: 1em; }
.corner-msg:empty { display: none; }

.board { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15.5rem), 1fr)); gap: 14px; align-items: start; }
.listing {
  margin: 0; background: var(--surface); border: 1px solid var(--rule); padding: 10px 12px;
  font: 14.5px/1.42 var(--f-sans); display: grid; grid-template-columns: minmax(0, 1fr); gap: 5px; min-width: 0;
}
.listing img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: var(--raised); }
.listing .listing-st { font: 700 15px/1.1 var(--f-sans); font-stretch: 80%; text-transform: uppercase; letter-spacing: .02em; }
.listing h3 { font: 700 19px/1.2 var(--f-head); }
.listing-near { font-weight: 600; }
/* a pasted URL or other long word wraps instead of pushing the card (and the page) sideways */
.listing h3, .listing-desc, .listing-near { overflow-wrap: anywhere; }
.listing-dist { color: var(--ink); font-weight: 700; }
.listing-date { color: var(--ink-2); }
.listing-contact { font-weight: 600; overflow-wrap: anywhere; }
.listing-contact a.tel { font-size: 15px; margin: 2px 0; }
.listing-acts { display: flex; flex-wrap: wrap; gap: 0 14px; align-items: center; margin-top: 2px; }
.listing-acts a, .listing-acts .linkbtn { font: 600 13.5px/1.3 var(--f-sans); color: var(--ink); padding: 10px 0; display: inline-block; }
.listing-acts a { text-decoration: underline; text-decoration-color: var(--press); text-underline-offset: 3px; }
.listing.is-target { outline: 3px solid var(--pet-lost); outline-offset: 2px; }
.listing-empty { color: var(--ink-2); }
.listing-post { border: 2px dashed var(--rule); background: transparent; }
.listing-post h3 { font: 700 19px/1.2 var(--f-head); }
.listing-post .act { display: inline-block; padding: 8px 0; }
.listing-post .fine { margin-top: 0; }
.listing-post .fine a { color: var(--ink-2); }
.rss { margin-top: 12px; font: 400 14px/1.4 var(--f-sans); }
.rss a { color: var(--ink-2); display: inline-block; padding: 8px 0; }

/* ---------- checklists ---------- */
.ck-when { font: 700 15px/1.2 var(--f-sans); text-transform: uppercase; letter-spacing: .03em; color: var(--ink-2); margin: 22px 0 6px; }
.sec > h2 + .ck-when { margin-top: 16px; }
ol.checklist { list-style: none; margin: 0; padding: 0; max-width: 66ch; }
ol.checklist li { border-top: 1px solid var(--line); }
ol.checklist li:last-child { border-bottom: 1px solid var(--line); }
ol.checklist label { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; padding: 10px 0; cursor: pointer; font: 400 17px/1.45 var(--f-text); min-height: 44px; }
ol.checklist input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--ink); cursor: pointer; }
ol.checklist input:checked + span { color: var(--muted); }
ol.checklist a, ol.steps a { font-weight: 600; }
ol.steps { margin: 16px 0 0; padding: 0 0 0 1.5em; max-width: 66ch; font: 400 17px/1.5 var(--f-text); }
ol.steps li { margin: 0 0 12px; padding-left: 4px; }
ol.steps li::marker { font: 700 15px var(--f-sans); }
ol.steps a.tel { font-size: 15px; vertical-align: middle; }
#lost .credit, #found .credit { margin-top: 12px; }

/* ---------- Also useful ---------- */
details.also { margin-top: clamp(40px, 5vw, 64px); border-top: 4px solid var(--rule); max-width: 72ch; }
details.also > summary { cursor: pointer; font: 700 clamp(19px, .5vw + 16px, 22px)/1.25 var(--f-head); padding: 12px 0; list-style: none; }
details.also > summary::-webkit-details-marker { display: none; }
details.also > summary:hover { text-decoration: underline; }
.also-body { padding-bottom: 8px; }
.also-body .ck-when { margin-top: 18px; }
.au-item { padding: 8px 0 10px; border-top: 1px solid var(--line); }
.au-item p { font: 400 16px/1.45 var(--f-text); }
.au-item .au-meta { font: 400 13.5px/1.5 var(--f-sans); color: var(--ink-2); margin-top: 4px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.au-meta a:not(.tel) { color: var(--ink-2); display: inline-block; padding: 8px 0; }
.au-meta a.tel { font-size: 15px; }
.lp-sources { margin-top: 28px; max-width: 80ch; }

/* ---------- /lost-pets/post/ ---------- */
.post-grid { display: grid; gap: 28px; }
@media (min-width: 960px) { .post-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 48px; } }
.petform { display: grid; gap: 14px; max-width: 560px; }
.petform label { display: grid; gap: 5px; font: 700 14.5px/1.3 var(--f-sans); }
.petform input, .petform select, .petform textarea {
  width: 100%; min-height: 44px; padding: 8px 10px; font: 400 16px/1.3 var(--f-sans); color: var(--ink);
  background: var(--surface); border: 1px solid var(--rule); border-radius: 0;
}
.petform input[type="file"] { padding: 9px 10px; }
.petform textarea { min-height: 96px; resize: vertical; }
.petform .help { font: 400 13px/1.4 var(--f-sans); color: var(--muted); }
.post-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.post-btns .btn-line { margin: 0; }
.btn-line.primary { background: var(--ink); color: var(--ground); border-color: var(--ink); }
.btn-line.primary:hover { background: var(--ink-2); }
.form-msg { font: 600 14px/1.4 var(--f-sans); }
.form-msg:empty { display: none; }
.post-notes { font: 400 15.5px/1.5 var(--f-sans); color: var(--ink-2); display: grid; gap: 10px; align-content: start; max-width: 46ch; }
.post-notes a { color: var(--ink); font-weight: 600; }
@media (min-width: 960px) { .post-notes { border-left: 1px solid var(--line); padding-left: 24px; } }
.listing-post .petform { margin-top: 8px; }

/* ---------- /lost-pets/gh-N/ ---------- */
.lpg { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 20px; }
.listing-page h1 { overflow-wrap: anywhere; }
@media (min-width: 960px) { .lpg { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 40px; align-items: start; } }
.listing-one { font-size: 16px; padding: 14px 16px; max-width: 640px; }
.listing-one .listing-desc { font: 400 18px/1.45 var(--f-text); }
.listing-page .go { margin-right: 18px; }

/* ---------- /lost-pets/flyer/ ---------- */
.fl-tools { display: flex; gap: 8px; margin: 18px 0 10px; }
.fl-tools .btn-line { margin: 0; display: inline-flex; align-items: center; justify-content: center; min-width: 88px; }
.flyer .nw { white-space: nowrap; }
.fl-note { font: 400 16px/1.5 var(--f-sans); color: var(--ink-2); max-width: 60ch; margin: 0 0 8px; text-align: left; }
/* until a pet is filled in, the flyer is an ordinary page: the headline is the page's H1 */
.flyer-page:not(.filled) .flyer { background: none; color: var(--ink); border: 0; padding: 0; text-align: left; max-width: 60ch; }
.flyer-page:not(.filled) .flyer h1 { font: 700 clamp(30px, 1.4vw + 22px, 46px)/1.06 var(--f-head); text-transform: none; color: var(--ink); letter-spacing: -.015em; margin-top: 6px; }
.flyer-page:not(.filled) .fl-foot { color: var(--ink-2); font-size: 14px; }
.flyer-page:not(.filled) .fl-foot a { color: var(--ink); }
.flyer {
  page: flyer; max-width: 8.5in; background: #fff; color: #111; border: 1px solid var(--line);
  padding: .45in .5in .25in; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; text-align: center;
}
.flyer h1 {
  font: 800 72px/1 var(--f-head); letter-spacing: -.01em; text-transform: uppercase; max-width: none; margin: 0;
  color: #b42318;
}
.flyer[data-status="found"] h1 { color: #2f7d4f; }
.flyer[data-status="spotted"] h1 { color: #8a5a00; }
.fl-q { font: 700 34px/1.15 var(--f-head); }
.fl-q:empty, .fl-desc:empty, .fl-seen:empty, .fl-contact:empty, .fl-tabs:empty { display: none; }
.fl-photo { width: 100%; max-height: 3.9in; object-fit: contain; display: block; margin: 4px auto; }
.fl-desc { font: 400 21px/1.4 var(--f-text); max-width: 34em; margin: 0 auto; }
.fl-seen { font: 700 19px/1.35 var(--f-sans); }
.fl-q, .fl-desc, .fl-seen { overflow-wrap: anywhere; }
.fl-contact { font: 800 28px/1.2 var(--f-sans); overflow-wrap: anywhere; }
.fl-tabs { list-style: none; margin: 6px -.5in 0; padding: 0; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); border-top: 2px dashed #111; height: 1.6in; }
.fl-tabs li {
  writing-mode: vertical-rl; transform: rotate(180deg); border-left: 1px dashed #111; padding: 6px 4px;
  font: 700 11.5px/1.2 var(--f-sans); overflow: hidden; text-align: left;
}
.fl-tabs li:last-child { border-left: 0; }
.fl-foot { font: 400 12px/1.4 var(--f-sans); color: #333; }
.fl-foot a { color: #111; }
@media (max-width: 719px) {
  .flyer { padding: 18px 14px 10px; }
  .flyer h1 { font-size: 48px; }
  .fl-q { font-size: 24px; }
  .fl-desc { font-size: 18px; }
  .fl-contact { font-size: 22px; }
  .fl-tabs { margin-inline: -14px; height: 1.3in; }
}
@page flyer { size: letter; margin: .35in; }
@media print {
  html[data-page="lost-pets-flyer"] .masthead, html[data-page="lost-pets-flyer"] .secbar, html[data-page="lost-pets-flyer"] .site-foot,
  html[data-page="lost-pets-flyer"] .crumbs, .fl-tools, .fl-note, .skip { display: none !important; }
  html[data-page="lost-pets-flyer"] main, html[data-page="lost-pets-flyer"] .page { padding: 0; margin: 0; width: auto; }
  .flyer { border: 0; max-width: none; padding: 0; break-inside: avoid; }
  .flyer h1 { font-size: 72px; }
  .fl-q { font-size: 34px; }
  .fl-photo { max-height: 4.5in; }
  .fl-tabs { margin-inline: 0; }
  .fl-foot a[href^="tel:"] { text-decoration: none; }
  .corner, .listing-acts, .lp-toggles, .picker { display: none !important; }
  main[data-mode] #found, main[data-mode] #lost { display: block !important; }
}

/* ==== css/40-home.css ==== */
/* ---------- home, numbers, calendar (owner: home pages) ----------
   Maroon (--press) marks dates and the 911 button only, as on the old front page; never data marks. */

/* ---------- front page: column order and spacing ---------- */
.home { padding-top: 14px; }
.since {
  font: 400 14.5px/1.4 var(--f-sans); color: var(--ink); background: var(--raised); padding: 8px 12px; margin: 0 0 12px;
}
.since a { font-weight: 700; }
.home-grid > * + * { margin-top: 16px; }
.home-grid > .home-search { margin-top: 14px; }
.home-search input { font-size: 16px; }

/* the pets box (markup and states from nkpages/pets.py + pets.js): on the front page each listing is one line of
   description plus its place and date, so three listings stay on the first screen */
.home .pets-box { padding: 7px 12px 1px; }
.home .pets-box .lh { margin-bottom: 0; }
.home .pets-box .listing-row a { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 5px; padding: 5px 0; line-height: 1.32; }
.home .pets-box .listing-row .listing-st { flex: none; }
.home .pets-box .listing-row .listing-desc { flex: 1 1 0; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home .pets-box .listing-row .listing-where { flex: 1 0 100%; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 0; }
.home .pets-box .pb-acts .act { padding: 8px 0; }

/* ---------- this week (H1 + calendar rows) ---------- */
.week h1 {
  font: 700 30px/1.1 var(--f-head); letter-spacing: -.015em; max-width: none; margin: 0;
  border-top: 4px solid var(--rule); padding-top: 10px;
}
.week .dateline { margin-top: 6px; }
.cal { list-style: none; margin: 8px 0 0; padding: 0; border-bottom: 1px solid var(--line); }
.cal-row { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.cal-d { font: 700 13.5px/1.3 var(--f-sans); font-stretch: 92%; color: var(--press); white-space: nowrap; }
.cal-d time { display: block; }
.cal-rel { display: block; font-weight: 400; color: var(--ink-2); }
.cal-rel:empty { display: none; }
.cal-t { font: 600 17.5px/1.22 var(--f-head); }
.cal-t a { color: var(--ink); text-decoration: none; }
.cal-t a:hover { text-decoration: underline; text-decoration-color: var(--ink-2); }
.cal-m { display: block; font: 400 13.5px/1.38 var(--f-sans); color: var(--ink-2); margin-top: 2px; }
.exp { font: 400 13.5px/1.3 var(--f-sans); color: var(--muted); white-space: nowrap; }
.cal-none { padding: 10px 0; font: 400 15px/1.4 var(--f-sans); color: var(--ink-2); }
.go-line { margin: 0; }
.go-line .go { padding: 8px 0 0; }
.home .lh { margin-bottom: 8px; }

/* ---------- numbers to keep ---------- */
.nums .lh { margin-bottom: 4px; }
.nk-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 5px 0; border-top: 1px solid var(--line); }
.nk-row.nk-911 { border-top: 0; padding-top: 2px; }
.nk-l { font: 700 13px/1.25 var(--f-sans); font-stretch: 88%; color: var(--ink-2); }
.nk-row a.tel:not(.primary) { padding: 0 10px; font-size: 15.5px; }
p.nk-l { margin: 4px 0 6px; }
.nk-911 a.tel.primary { min-width: 96px; font-size: 18px; }
.nk-row a.tel { flex: none; }
.nums .three { margin-bottom: 8px; }
.nums .three a.tel.stack { padding: 5px 8px; font: 600 13px/1.2 var(--f-sans); font-stretch: 85%; }
.nums .three a.tel.stack .small { font: 700 15.5px/1.25 var(--f-sans); font-stretch: 85%; font-variant-numeric: tabular-nums; }
.nums .credit { margin-top: 2px; }
.nums .three a.tel.stack, .nums .three a.tel .small { white-space: nowrap; }
@media (max-width: 380px) {
  .nums .three { gap: 6px; }
  .nums .three a.tel.stack { padding: 5px 5px; font-size: 12.5px; font-stretch: 78%; }
  .nums .three a.tel.stack .small { font-size: 14.5px; font-stretch: 76%; }
}

/* ---------- where the three cities are ---------- */
.locbox { display: none; }
.loc-img { display: block; border: 1px solid var(--line); background: var(--surface); }
.loc-img img { display: block; width: 100%; height: auto; }
.loc-links { font: 600 14.5px/1.4 var(--f-sans); margin-top: 6px; }
.loc-links a { display: inline-block; padding: 8px 0; }

/* ---------- crime lead ---------- */
.crime-lead .hl {
  font: 700 24px/1.14 var(--f-head); letter-spacing: -.01em; border-top: 4px solid var(--rule); padding-top: 10px;
}
.crime-lead .dateline { margin-top: 6px; }
.lead-bs { list-style: none; margin: 8px 0 6px; padding: 0; border-bottom: 1px solid var(--line); }
.lead-bs li { padding: 6px 0; border-top: 1px solid var(--line); font: 400 14.5px/1.4 var(--f-sans); font-stretch: 93%; color: var(--ink-2); }
.lead-bs .bs-t { font-weight: 700; color: var(--ink); }
.lead-bs .bs-w { font-weight: 700; color: var(--ink); }
.lead-bs .sep { color: var(--muted); }

/* ---------- latest and inside ---------- */
.heads { list-style: none; margin: 0; padding: 0; }
.heads li { padding: 7px 0; border-top: 1px solid var(--line); font: 600 17px/1.2 var(--f-head); }
.heads li:first-child { border-top: 0; padding-top: 0; }
.hd-h { color: var(--ink); text-decoration: none; }
.hd-h:hover { text-decoration: underline; text-decoration-color: var(--ink-2); }
.hd-m { font: 400 13px/1.4 var(--f-sans); color: var(--muted); margin-top: 3px; }
.inside ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 12px; }
.inside li { border-top: 1px solid var(--line); }
.inside li:nth-child(-n+3) { border-top: 0; }
.inside a { display: flex; align-items: center; min-height: 44px; font: 600 14px/1.2 var(--f-sans); font-stretch: 92%; color: var(--ink); text-decoration: none; }
.inside a:hover { text-decoration: underline; }

@media (min-width: 720px) {
  .home { padding-top: 20px; }
  .home-rail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
  .locbox { display: block; }
  .week h1 { font-size: 36px; }
  .cal-row { grid-template-columns: 116px minmax(0, 1fr); gap: 16px; }
  .cal-t { font-size: 19px; }
  .crime-lead .hl { font-size: 30px; }
  .lead-bs li { display: grid; grid-template-columns: 150px 84px minmax(0, 1fr); align-items: baseline; font-size: 15px; font-stretch: 100%; }
  .lead-bs .sep { display: none; }
  .inside ul { column-gap: 24px; }
  .inside a { font-size: 15px; font-stretch: 100%; }
}
@media (min-width: 960px) {
  .home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; column-gap: 48px; row-gap: 30px; align-items: start; }
  .home-grid > * + * { margin-top: 0; }
  .home-grid > * { grid-column: 1; }
  .home-grid > .home-rail { grid-column: 2; grid-row: 1 / span 5; display: block; }
  .home-rail > .locbox { margin-top: 26px; }
  .week h1 { font-size: 38px; }
  .home { padding-top: 14px; }
  .home .pets-box .listing-row .listing-where { flex: none; max-width: 55%; font-size: 13.5px; }
}

/* ---------- /numbers/ ---------- */
.numbers-page h1 { max-width: 26ch; }
.numbers-page .deck { margin-bottom: 16px; }
.nine11 {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 560px;
  background: var(--raised); padding: 10px 14px; border-top: 3px solid var(--rule);
}
.n9-t { font: 700 21px/1.2 var(--f-head); }
.nine11 a.tel.primary { min-width: 120px; font-size: 18px; }
.ntools { margin: 22px 0 0; }
.nt-l { font: 700 13.5px/1.3 var(--f-sans); color: var(--ink-2); margin-bottom: 6px; }
.ntools .picker button { padding: 0 12px; }
@media (max-width: 719px) {
  .n9-t { font-size: 19px; white-space: nowrap; }
  .nine11 a.tel.primary { min-width: 104px; }
  .ntools .picker { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
#n-remember { padding: 12px 0; font-size: 14px; }
#n-remember[disabled] { cursor: default; text-decoration: none; color: var(--ink-2); }
.ncards { margin-top: 30px; }
.ncard { margin: 0 0 34px; break-inside: avoid; }
.ncard > h2 { font: 700 27px/1.1 var(--f-head); letter-spacing: -.01em; border-top: 4px solid var(--rule); padding-top: 10px; }
.nrows { list-style: none; margin: 6px 0 0; padding: 0; }
.nrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.nrow:first-child { border-top: 0; }
.nr-t { font: 400 14px/1.4 var(--f-sans); color: var(--ink-2); }
.nr-n { display: block; font: 700 16px/1.3 var(--f-sans); color: var(--ink); }
.nr-a, .nr-note { display: block; }
.nr-note a { color: var(--ink); font-weight: 600; }
.nr-c { display: flex; flex-direction: column; align-items: flex-end; }
.nr-c .tel-alt { margin: 0; }
.nr-c .tel-alt a { padding: 8px 0 0; }
.nr-none { font: 400 13.5px/1.35 var(--f-sans); color: var(--ink-2); text-align: right; max-width: 15ch; }
.nr-none a { display: inline-block; padding: 6px 0; color: var(--ink); font-weight: 600; }
.nr-x { grid-column: 1 / -1; font: 400 12.5px/1.4 var(--f-sans); color: var(--muted); margin-top: 3px; }
.nr-x > a:not(.cr) { color: var(--ink-2); font-weight: 600; }
.gapline { font: 400 15.5px/1.45 var(--f-sans); max-width: 62ch; padding-top: 12px; border-top: 1px solid var(--line); }
.n-print { margin-top: 4px; }
@media (min-width: 960px) {
  .ncards { columns: 2; column-gap: 56px; }
  .numbers-page .gapline, .numbers-page .n-print { max-width: 62ch; }
}

/* ---------- /calendar/ ---------- */
.calendar-page > .sec, .calendar-page > .dateline { max-width: 780px; }
.cal-item { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); }
.cal-group > h2 + .cal-item { border-top: 0; }
.cal-item h3 { font: 700 21px/1.2 var(--f-head); }
.cal-item .cal-m { font-size: 14.5px; margin-top: 4px; }
.cal-x { font: 400 16.5px/1.5 var(--f-text); margin-top: 8px; max-width: 62ch; }
.cal-item .credit { margin-top: 6px; }
.cal-acts .linkbtn { font-size: 14px; padding: 12px 0 4px; }
.cal-item.yearly { display: block; }
.cal-when { font: 700 13.5px/1.3 var(--f-sans); color: var(--press); margin-bottom: 4px; }
#public-meetings .cal-x a { font-weight: 600; }
#public-meetings .credit { margin-top: 4px; }
#public-meetings .cal-x + .credit + .cal-x { margin-top: 16px; }
@media (max-width: 719px) {
  .cal-item { display: block; }
  .cal-item .cal-d { margin-bottom: 4px; }
  .cal-item .cal-d time, .cal-item .cal-rel { display: inline; }
  .cal-item .cal-rel:not(:empty)::before { content: " · "; }
}
@media (min-width: 720px) {
  .cal-item { grid-template-columns: 124px minmax(0, 1fr); gap: 18px; }
}

/* ---------- print: the numbers fit two Letter pages ---------- */
@media print {
  .numbers-page h1 { font-size: 17pt; margin-top: 0; max-width: none; }
  .numbers-page .deck, .numbers-page .ntools, .numbers-page .n-print { display: none !important; }
  .nine11 { background: none; border: 1.5pt solid #000; padding: 4px 8px; max-width: none; margin-top: 6px; }
  .n9-t { font-size: 12pt; }
  .ncards { columns: 2; column-gap: 20px; margin-top: 10px; }
  .ncard { margin: 0 0 10px; }
  .ncard > h2 { font-size: 13pt; border-top-width: 2pt; padding-top: 3px; }
  .nrows { margin-top: 2px; }
  .nrow { padding: 3px 0; }
  .nr-t, .nr-x, .nr-none { font-size: 8.5pt; line-height: 1.3; }
  .nr-n { font-size: 9.5pt; }
  .numbers-page a.tel, .numbers-page a.tel.primary { min-height: 0; min-width: 0; padding: 0; border: 0; background: none; color: #000; font-size: 10pt; }
  .numbers-page .tel-alt, .numbers-page .tel-alt a { font-size: 8.5pt; padding: 0; }
  .numbers-page a[href^="http"].cr::after { content: none; }
  .gapline { font-size: 9pt; }
}

/* ==== css/50-towns.css ==== */
/* towns hub, town pages, news, history, notable people, eat & drink, poster, what's new, about, privacy,
   contact, sources and 404 (owner: towns pages) */

/* ---------- shared bits ---------- */
.town-page .sec > p, .towns-hub .sec > p, .history-page .sec > p, .about-page .sec p, .privacy-page .sec p,
.contact-page .sec p, .sources-page .sec p, .poster-page .sec p, .wn-page p, .lede-p { max-width: 68ch; }
.town-page .sec > p + p, .history-page .sec > p + p, .about-page .sec p + p, .privacy-page .sec p + p,
.sources-page .sec p + p, .contact-page .sec p + p { margin-top: 12px; }
.sec > h2 + p, .sec > h2 + .runin, .sec > h2 + .chron, .sec > h2 + ul, .sec > h2 + dl, .sec > h2 + div { margin-top: 14px; }
.lede-p { font: 400 clamp(18px, .4vw + 16px, 20px)/1.5 var(--f-text); margin-top: 18px; }
.lede-p + .lede-p, .lede-p + p { margin-top: 12px; }
p.links { display: flex; flex-wrap: wrap; gap: 0 22px; margin-top: 10px; }
.sec .credit { margin-top: 8px; }
.sec .sub-h { margin: 26px 0 10px; }
.sec .sub-h:first-of-type { margin-top: 18px; }
details.more-list { margin-top: 10px; border-top: 1px solid var(--line); }
details.more-list > summary {
  cursor: pointer; list-style: none; font: 700 15.5px/1.3 var(--f-sans); padding: 12px 0; min-height: 44px; color: var(--ink);
}
details.more-list > summary::-webkit-details-marker { display: none; }
details.more-list > summary::after { content: " ›"; color: var(--muted); }
details.more-list[open] > summary::after { content: ""; }
details.more-list[open] > summary { margin-bottom: 6px; }
.runin .entry p:not(.meta) { font: 16px/1.5 var(--f-text); }
.runin .meta a { display: inline-block; padding: 3px 0; }
dl.agate { margin: 14px 0 0; display: grid; font: 14px/1.3 var(--f-sans); max-width: 520px; border-top: 1px solid var(--rule); }
dl.agate div { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 6px 6px; }
dl.agate div:nth-child(odd) { background: color-mix(in srgb, var(--raised) 60%, transparent); }
dl.agate dt { color: var(--ink-2); }
dl.agate dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
figure.locator { margin: 0; }
figure.locator img { display: block; width: 100%; height: auto; max-width: 480px; }
.chips-row { margin: 6px 0 4px; display: grid; gap: 6px; }
.chips-row .picker button { min-height: 44px; font-size: 14px; }
@media (max-width: 419px) { .chips-row .picker { gap: 5px; } .chips-row .picker button { padding: 0 10px; font-size: 13.5px; } }
.street-alt .linkbtn { font-size: 13.5px; padding: 8px 0; }
.chip-count { font: 13.5px/1.4 var(--f-sans); color: var(--ink-2); min-height: 1.4em; }

/* ---------- a town page ---------- */
.tw-top { display: grid; gap: 0 48px; }
.tw-rail { display: grid; gap: 24px; align-content: start; margin-top: 22px; }
.tw-main > .sec:first-child { margin-top: clamp(40px, 5vw, 56px); }
@media (min-width: 960px) {
  .tw-top { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); align-items: start; }
  .tw-rail { grid-column: 2; grid-row: 1; margin-top: 28px; }
  .tw-main { grid-column: 1; grid-row: 1; }
  .tw-main > .sec:first-child { margin-top: 28px; }
}
.callcity { display: grid; gap: 12px; align-content: start; }
.callcity .lh { margin-bottom: 2px; }
.cc-row { display: grid; gap: 6px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.cc-what { font: 400 15px/1.4 var(--f-sans); color: var(--ink-2); }
.cc-what b { color: var(--ink); }
.cc-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.cc-btns .act { display: inline-flex; align-items: center; min-height: 44px; }
.cc-btns .tel-alt { margin-left: 0; }
.cc-btns a.tel.primary { min-width: 64px; }
.cc-none { font: 400 14.5px/1.3 var(--f-sans); color: var(--ink-2); }
.cc-note { font: 400 15px/1.45 var(--f-sans); color: var(--ink-2); }
.cc-note b { color: var(--ink); }
.cc-note .act { display: inline-block; padding: 4px 0; }
.cc-mine .btn-line { margin-top: 0; }
.cc-mine .btn-line[aria-pressed="true"] { background: var(--ink); color: var(--ground); border-color: var(--ink); }
.callcity .credit { margin-top: 0; }
.edge-note { margin-top: 16px; font: 400 15px/1.5 var(--f-sans); color: var(--ink-2); background: var(--tint); padding: 12px 14px; max-width: 68ch; }
ul.heads { list-style: none; margin: 14px 0 0; padding: 0; max-width: 760px; }
ul.heads li { padding: 10px 0; border-bottom: 1px solid var(--line); display: grid; gap: 3px; }
ul.heads li:first-child { border-top: 1px solid var(--line); }
ul.heads a { font: 600 18px/1.3 var(--f-head); text-decoration-color: var(--line); }
ul.heads a:hover { text-decoration-color: var(--ink); }
.hl-meta { font: 13px/1.4 var(--f-sans); color: var(--muted); }
.town-page #whats-here p a { font-weight: 600; }

/* ---------- timeline (history page and town pages) ---------- */
.chron { display: grid; gap: 0; max-width: 820px; }
.tl-item { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 18px; padding: 14px 0; border-top: 1px solid var(--line); }
.chron > .tl-item:first-child { border-top: 0; }
.tl-item .yr { font: 700 20px/1.3 var(--f-head); color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }
.tl-h { font: 700 18.5px/1.3 var(--f-head); }
.tl-t { font: 17px/1.5 var(--f-text); margin-top: 3px; }
.tl-note { font: 14.5px/1.45 var(--f-sans); color: var(--ink-2); margin-top: 6px; }
.tl-body .credit { margin-top: 4px; }
@media (max-width: 599px) {
  .tl-item { grid-template-columns: 1fr; gap: 2px; }
  .tl-item .yr { text-align: left; font-size: 17px; color: var(--ink-2); }
}

/* ---------- towns hub ---------- */
.hub-top { display: grid; gap: 28px; margin-top: 8px; }
@media (min-width: 960px) {
  .hub-top { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 40px; align-items: start; }
  .hub-top > .locator { position: sticky; top: 64px; }
}
.hub-grid { display: grid; gap: 28px; }
@media (min-width: 720px) and (max-width: 959px) { .hub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hub-grid .tw-card:first-child { grid-column: 1 / -1; } }
@media (min-width: 1100px) { .hub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hub-grid .tw-card:first-child { grid-column: 1 / -1; } }
.tw-card { border-top: 4px solid var(--rule); padding-top: 10px; display: grid; gap: 8px; align-content: start; }
.tw-card.mine { box-shadow: inset 0 4px 0 var(--ink); }
.tw-name { font: 700 clamp(26px, 1vw + 20px, 32px)/1.1 var(--f-head); }
.tw-name a { text-decoration: none; }
.tw-name a:hover { text-decoration: underline; text-decoration-color: var(--ink); }
.tw-inc { font: 700 13.5px/1.3 var(--f-sans); color: var(--ink-2); }
.tw-desc { font: 17px/1.5 var(--f-text); max-width: 60ch; }
.tw-card dl.agate { margin-top: 4px; }
.tw-crime { font: 14.5px/1.45 var(--f-sans); color: var(--ink-2); max-width: 64ch; }
.tw-crime b { color: var(--ink); }
.tw-tels { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 8px; max-width: 520px; }
.tw-tels a.tel.stack { width: 100%; }
.tw-card .go { padding: 4px 0 8px; }
dl.facts { margin: 14px 0 0; display: grid; max-width: 520px; border-top: 1px solid var(--rule); }
dl.facts div { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 6px 6px; }
dl.facts div:nth-child(odd) { background: color-mix(in srgb, var(--raised) 60%, transparent); }
dl.facts dt { font: 400 14.5px/1.3 var(--f-sans); color: var(--ink-2); }
dl.facts dd { margin: 0; font: 700 14.5px/1.3 var(--f-sans); font-variant-numeric: tabular-nums; text-align: right; }
.ledger-cols > p { margin-top: 20px; font: 17px/1.5 var(--f-text); max-width: 60ch; }
@media (min-width: 960px) { .ledger-cols { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; align-items: start; } .ledger-cols > p { margin-top: 14px; } }

/* ---------- news ---------- */
.briefs { max-width: 760px; margin-top: 18px; }
.brief { padding: 18px 0 20px; border-top: 1px solid var(--line); }
.briefs > .brief:first-child { border-top: 3px solid var(--rule); }
.brief-h { font: 700 clamp(21px, .5vw + 18px, 25px)/1.2 var(--f-head); letter-spacing: -.005em; }
.brief .dateline { margin-top: 6px; }
.brief-t { font: 17px/1.5 var(--f-text); margin-top: 8px; }
.brief .credit { margin-top: 6px; }
.new-tag { font-weight: 700; color: var(--press); }
details.earlier { margin-top: 12px; border-top: 3px solid var(--rule); }
details.earlier > summary {
  cursor: pointer; list-style: none; font: 700 clamp(20px, .5vw + 17px, 24px)/1.2 var(--f-head); padding: 14px 0; min-height: 44px;
}
details.earlier > summary::-webkit-details-marker { display: none; }
details.earlier > summary::after { content: " ›"; color: var(--muted); }
details.earlier[open] > summary::after { content: ""; }
.brief[hidden] { display: none; }

/* ---------- history ---------- */
.era-jump { font: 400 15px/1.5 var(--f-sans); display: flex; flex-wrap: wrap; align-items: center; gap: 0 16px; margin: 4px 0 8px; }
.era-jump a { display: inline-block; padding: 10px 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.lh-inline { font: 700 13px/1.1 var(--f-sans); font-stretch: 80%; text-transform: uppercase; letter-spacing: .03em; color: var(--ink-2); }
.history-page .era { margin-top: clamp(40px, 5vw, 64px); }
.pop-chart { max-width: 420px; }
.pop-chart svg { display: block; width: 100%; height: auto; }
.pop-chart + p { margin-top: 12px; }

/* ---------- notable people ---------- */
.people { columns: 3 17rem; column-gap: 36px; margin-top: 20px; }
.person { break-inside: avoid; margin: 0 0 22px; padding-top: 10px; border-top: 1px solid var(--line); }
.p-name { font: 700 20px/1.2 var(--f-head); }
.person .kf { font: 16.5px/1.45 var(--f-text); margin-top: 3px; }
.person .conn { font: italic 15.5px/1.45 var(--f-text); color: var(--ink-2); margin-top: 3px; }
.person .credit { font-size: 12.5px; margin-top: 3px; }

/* ---------- eat & drink ---------- */
.eat-page .eat-sec { margin-top: clamp(40px, 5vw, 60px); }
.bucket { columns: 2 20rem; column-gap: 40px; margin-top: 16px; }
.bucket.few { columns: 1; max-width: 640px; }
.dine { break-inside: avoid; margin: 0 0 20px; }
.dine .l1 { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: baseline; border-bottom: 1.5px dotted var(--line); padding-bottom: 3px; }
.dine .l1 b { font: 700 17.5px/1.25 var(--f-head); }
.dine .l1 .addr { font: 600 13.5px/1.25 var(--f-sans); font-variant-numeric: tabular-nums; text-align: right; color: var(--ink-2); max-width: 16ch; }
.dine .l2 { font: 16px/1.45 var(--f-text); margin-top: 5px; }
.dine .l2 i { font-size: 15px; color: var(--ink-2); }
.dine .l3 { font: 13px/1.4 var(--f-sans); color: var(--muted); margin-top: 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.dine .l3 a { color: var(--ink-2); }
.dine .l3 a.tel { color: var(--ink); min-height: 44px; font-size: 15px; }
.dine .l3 span a { display: inline-block; padding: 4px 0; }
@media (max-width: 419px) { .dine .l1 { grid-template-columns: 1fr; } .dine .l1 .addr { text-align: left; max-width: none; } }

/* ---------- poster ---------- */
.poster-grid { display: grid; gap: 28px; margin-top: 8px; }
@media (min-width: 960px) { .poster-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; align-items: start; } }
.poster-fig { margin: 0; }
.poster-fig img, .poster-fig svg { display: block; width: 100%; height: auto; max-width: 620px; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--surface); }
.poster-btns { display: grid; gap: 10px; max-width: 460px; margin-top: 0; }
.poster-btns .btn-line { margin-top: 0; }
.poster-btns .btn-line[hidden] { display: none; }
.poster-side > .sec:first-of-type { margin-top: 36px; }
.street-form { margin-top: 14px; max-width: 460px; }
#street-out { margin-top: 18px; display: grid; gap: 14px; }
#street-out .poster-fig svg { max-width: 460px; }

/* ---------- what's new ---------- */
.wn-list { max-width: 760px; margin-top: 18px; }
.wn-entry { padding: 14px 0; border-top: 1px solid var(--line); }
.wn-list > .wn-entry:first-child { border-top: 3px solid var(--rule); }
.wn-date { font: 700 20px/1.25 var(--f-head); }
.wn-items { font: 17px/1.5 var(--f-text); margin-top: 4px; }
.wn-none { font: 17px/1.5 var(--f-text); margin-top: 18px; padding: 14px 16px; background: var(--tint); max-width: 68ch; }

/* ---------- about, privacy, contact, sources ---------- */
.about-list, ul.keys, ul.hosts, .src-list { margin: 12px 0 0; padding-left: 20px; max-width: 72ch; font: 16.5px/1.5 var(--f-text); }
.about-list li, ul.keys li, ul.hosts li, .src-list li { margin: 6px 0; }
.about-list a { font-weight: 600; }
ul.keys code, .privacy-page code { font: 600 14px/1 var(--f-sans); background: var(--raised); padding: 2px 5px; white-space: nowrap; }
.privacy-page #forget .btn-line { margin-top: 0; }
.outlets { list-style: none; margin: 14px 0 0; padding: 0; columns: 3 14rem; column-gap: 32px; font: 14.5px/1.35 var(--f-sans); max-width: 1000px; }
.outlets li { break-inside: avoid; display: flex; justify-content: space-between; gap: 10px; padding: 5px 4px; border-bottom: 1px solid var(--line); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.outlets li b { color: var(--ink); font-weight: 600; }

/* ---------- 404 ---------- */
.nf-links { list-style: none; margin: 8px 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 0 24px; }
.nf-search { max-width: 460px; }

@media print {
  .chips-row, .era-jump, .cc-mine, .poster-btns, .street-form, #street-out, #forget, .cc-mine-note { display: none !important; }
  .tw-top, .hub-top, .poster-grid { display: block !important; }
  .people, .bucket, .outlets { columns: 2; }
}

/* ==== css/60-map.css ==== */
/* map, 3D, directory, search (owner: map pages) */

/* ---------- the highlight colour for streets on the map and the poster (never maroon, which is chrome) ---------- */
:root { --map-focus: #0b63c4; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --map-focus: #7db7ff; } }
:root[data-theme="dark"] { --map-focus: #7db7ff; }

/* ---------- /map/ and /map/3d/: the page never scrolls; the map fills what the bar leaves ---------- */
html[data-page="map"], html[data-page="map3d"] { height: 100%; scroll-behavior: auto; }
html[data-page="map"] body, html[data-page="map3d"] body { display: flex; flex-direction: column; height: 100vh; height: 100dvh; overflow: hidden; }
html[data-page="map"] main, html[data-page="map3d"] main { flex: 1; min-height: 0; position: relative; }
html[data-page="map"] .masthead, html[data-page="map3d"] .masthead { flex: none; }
html[data-page^="map"] .more-sheet { max-height: calc(100dvh - 110px); }
.explorer {
  position: relative; height: 100%; background: var(--map-bg); overflow: hidden; border-top: 1px solid var(--rule);
  font-family: var(--f-sans); --sheet: 0px;
}
.explorer canvas.stage { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: grab; display: block; }
.explorer canvas.stage.drag { cursor: grabbing; }
.explorer canvas.stage:focus-visible { outline: 2px solid var(--ink); outline-offset: -3px; }
.explorer .gl { position: absolute; inset: 0; }
.explorer .gl canvas { width: 100% !important; height: 100% !important; display: block; touch-action: none; }
.explorer .panel { position: absolute; z-index: 5; background: var(--surface); border: 1px solid var(--rule); box-shadow: var(--shadow); border-radius: 0; }
:root[data-theme="dark"] .explorer .panel { border-color: var(--line); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .explorer .panel { border-color: var(--line); } }

/* the figure shown while the map is drawn */
.explorer .loading {
  position: absolute; inset: 0; z-index: 3; margin: 0; display: grid; place-content: center; justify-items: center; gap: 12px;
  background: var(--map-bg); pointer-events: none; padding: 24px;
}
.explorer .loading img { width: min(300px, 62vw); height: auto; display: block; opacity: .9; }
.explorer .loading figcaption { font: 500 15px/1.4 var(--f-sans); color: var(--ink-2); text-align: center; max-width: 34ch; }

/* no JavaScript: the poster and the text-only pages over the map */
.explorer .nojs { position: absolute; inset: 0; z-index: 12; overflow: auto; background: var(--ground); }
.explorer .nojs-in { max-width: 760px; margin: 0 auto; padding: 20px 16px 48px; }
.explorer .nojs-h { font: 700 30px/1.1 var(--f-head); margin: 4px 0 10px; }
.explorer .nojs-t { font: 400 17px/1.5 var(--f-text); color: var(--ink); max-width: 60ch; }
.explorer .nojs-links { margin: 10px 0 16px; display: flex; flex-wrap: wrap; gap: 0 18px; }
.explorer .nojs-poster { width: 100%; height: auto; display: block; border: 1px solid var(--line); }

/* ---------- search panel ---------- */
.explorer .search-panel { z-index: 7; }
.search-panel { top: 14px; left: 14px; width: min(390px, calc(100% - 28px)); padding: 12px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
#map-h { font: 700 21px/1.15 var(--f-head); letter-spacing: -.01em; margin: 0; max-width: none; }
.sp-row { display: flex; gap: 6px; min-width: 0; }
.search-panel input {
  flex: 1; min-width: 0; height: 44px; font: 16px/1.2 var(--f-sans); padding: 0 12px; border: 1px solid var(--rule); border-radius: 0;
  background: var(--ground); color: var(--ink);
}
.search-panel input::placeholder { color: var(--muted); }
.filter-btn, .layers-btn {
  height: 44px; min-width: 44px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center;
  font: 700 14.5px/1 var(--f-sans); color: var(--ink); background: var(--surface); border: 1px solid var(--rule); border-radius: 0; cursor: pointer;
}
.filter-btn[aria-expanded="true"], .layers-btn[aria-expanded="true"] { background: var(--ink); color: var(--ground); }
@media (min-width: 720px) { .filter-btn { display: none; } }
.results { max-height: min(52vh, 440px); overflow: auto; display: grid; margin: 0 -4px; }
.results:empty { display: none; }
.res { display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--line); padding-right: 4px; }
.res-go {
  all: unset; box-sizing: border-box; cursor: pointer; flex: 1; min-width: 0; min-height: 48px; padding: 7px 6px;
  display: grid; grid-template-columns: 12px 1fr; gap: 1px 10px; align-items: center;
}
a.res-go { color: var(--ink); text-decoration: none; }
.res-go:hover, .res-go:focus-visible { background: var(--raised); }
.res-go:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.res-go i { width: 10px; height: 10px; display: block; }
.res-go i.loc-i { border: 2px solid var(--here); border-radius: 50%; width: 12px; height: 12px; box-sizing: border-box; }
.res-go i.call-i { background: var(--ink); }
.res-go b { font: 600 15px/1.25 var(--f-sans); overflow-wrap: anywhere; }
.res-go b small { font-size: 72%; }
.res-go small { grid-column: 2; color: var(--muted); font: 12.5px/1.3 var(--f-sans); }
.res .res-tel { flex: none; font-size: 14px; padding: 0 12px; }
.results .none { padding: 10px 6px; color: var(--ink-2); font: 14px/1.4 var(--f-sans); border-top: 1px solid var(--line); }
.res-all { all: unset; cursor: pointer; padding: 12px 6px; font: 700 14px/1.2 var(--f-sans); border-top: 1px solid var(--line); text-decoration: underline; text-underline-offset: 3px; }
.results .consent { padding: 10px 6px; font: 14.5px/1.45 var(--f-sans); border-top: 1px solid var(--line); display: grid; gap: 8px; }
.results .consent .btn-line { margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; }
.chip {
  font: 600 12.5px/1 var(--f-sans); padding: 6px 8px; border-radius: 0; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); cursor: pointer;
  display: inline-flex; gap: 6px; align-items: center; min-height: 32px;
}
.chip i { width: 10px; height: 10px; flex: none; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--ground); border-color: var(--ink); }

/* ---------- layers ---------- */
.explorer .layers { position: absolute; top: 14px; right: 14px; z-index: 6; }
.layers .layers-btn { position: static; }
.layers-pop { top: 50px; right: 0; width: 256px; padding: 6px 0; max-height: min(460px, calc(100dvh - 190px)); overflow: auto; }
.explorer .layers-pop { position: absolute; }
.layers-pop button, .layers-pop a {
  all: unset; box-sizing: border-box; cursor: pointer; width: 100%; min-height: 44px; padding: 8px 14px; display: flex; align-items: center; gap: 10px;
  font: 600 14.5px/1.25 var(--f-sans); color: var(--ink);
}
.layers-pop a { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.layers-pop button:hover, .layers-pop button:focus-visible, .layers-pop a:hover, .layers-pop a:focus-visible { background: var(--raised); }
.layers-pop button[aria-pressed]::before {
  content: ""; flex: none; width: 14px; height: 14px; border: 1.5px solid var(--ink); box-sizing: border-box; background: var(--surface);
}
.layers-pop button[aria-pressed="true"]::before {
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3 7.2l2.6 2.6L11 4.4' fill='none' stroke='white' stroke-width='2'/%3E%3C/svg%3E") center / 12px no-repeat;
}
:root[data-theme="dark"] .layers-pop button[aria-pressed="true"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3 7.2l2.6 2.6L11 4.4' fill='none' stroke='%2317181a' stroke-width='2'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .layers-pop button[aria-pressed="true"]::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3 7.2l2.6 2.6L11 4.4' fill='none' stroke='%2317181a' stroke-width='2'/%3E%3C/svg%3E");
  }
}
.layers-pop hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }
.layers-pop .lp-h { font: 700 12px/1.2 var(--f-sans); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 6px 14px 2px; }

/* ---------- zoom, scale, credit ---------- */
.explorer .zoom { right: 14px; bottom: calc(var(--sheet) + 58px); display: grid; }
.zoom button { all: unset; cursor: pointer; width: 44px; height: 44px; display: grid; place-items: center; font: 700 20px/1 var(--f-sans); color: var(--ink); }
.zoom button + button { border-top: 1px solid var(--line); }
.zoom button:hover, .zoom button:focus-visible { background: var(--raised); }
.zoom button:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.explorer .scale { position: absolute; right: 14px; bottom: calc(var(--sheet) + 26px); z-index: 4; font: 12px/1 var(--f-sans); color: var(--ink-2); display: grid; gap: 4px; justify-items: end; pointer-events: none; }
.scale span { background: color-mix(in srgb, var(--map-bg) 70%, transparent); padding: 1px 3px; }
.scale i { display: block; height: 6px; border: 2px solid var(--ink-2); border-top: 0; }
.explorer .attrib {
  position: absolute; right: 14px; bottom: 6px; z-index: 4; margin: 0; font: 11px/1.3 var(--f-sans); color: var(--ink-2); text-align: right; max-width: 42%;
  pointer-events: none; background: color-mix(in srgb, var(--map-bg) 72%, transparent); padding: 1px 4px;
}

/* ---------- the card ---------- */
.explorer .card {
  bottom: 14px; left: 14px; width: min(390px, calc(100% - 84px)); max-height: calc(100% - 240px); overflow: auto; padding: 12px 16px 14px;
  border-top: 4px solid var(--card-top, var(--ink));
}
.card-in { display: flex; flex-direction: column; gap: 6px; }
.card .sheet-grip { display: none; }
.card .kicker { color: var(--ink-2); display: flex; align-items: center; gap: 6px; padding-right: 30px; margin: 0; }
.card .sw { width: 10px; height: 10px; display: inline-block; flex: none; }
.card .kicker .tri-key { transform: scale(.9); }
.card h3 { font: 700 24px/1.12 var(--f-head); padding-right: 26px; overflow-wrap: anywhere; }
.card h3 small { font-size: 72%; font-weight: 700; }
.card .c-addr, .card .c-where { font: 14px/1.4 var(--f-sans); color: var(--ink-2); }
.card .c-line { font: 14px/1.45 var(--f-sans); }
.card .c-line a { overflow-wrap: anywhere; }
.card .c-line .tel { min-height: 36px; padding: 0 10px; font-size: 14.5px; }
.card .c-acts { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0; }
.card .c-acts a.tel { font-size: 15px; }
.cbtn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 12px; cursor: pointer;
  border: 1px solid var(--rule); border-radius: 0; background: var(--surface); color: var(--ink); text-decoration: none;
  font: 700 14.5px/1.2 var(--f-sans); white-space: nowrap;
}
.cbtn:hover { background: var(--raised); }
.card .txt { font: 15.5px/1.45 var(--f-text); }
.card .meta { font: 12.5px/1.45 var(--f-sans); color: var(--muted); }
.card .meta a { color: var(--ink-2); }
.card .credit { font-size: 12.5px; }
.card .msg { font: 15px/1.45 var(--f-sans); padding-right: 22px; }
.card .close { position: absolute; top: 4px; right: 4px; width: 40px; height: 40px; background: none; border: 0; color: var(--muted); font: 24px/1 var(--f-sans); cursor: pointer; }
.card .close:hover { color: var(--ink); }
.card .go { padding: 6px 0; font-size: 14.5px; }
.near { display: grid; gap: 6px; border-top: 1px solid var(--line); padding-top: 8px; margin-top: 2px; }
.near-l { font: 14px/1.45 var(--f-sans); }
.near-h { font: 700 12.5px/1.2 var(--f-sans); text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); margin-top: 4px; }
.near-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; font: 13.5px/1.4 var(--f-sans); }
.near-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; }
.near-list .linkbtn { font-size: 13.5px; font-weight: 500; text-align: left; padding: 6px 0; }
.near-list .nb-k { font-weight: 700; min-width: 5.2em; }
.near-list .nb-p { flex: 1 1 auto; min-width: 0; }
.near-list .tel { min-height: 36px; padding: 0 10px; font-size: 13.5px; }
.near .tel-inline { display: inline-block; padding: 6px 0; }
.card .remember { font: 14px/1.3 var(--f-sans); display: flex; align-items: center; gap: 8px; min-height: 44px; }
.card .remember input { width: 20px; height: 20px; margin: 0; }

/* ---------- legend ---------- */
.explorer .map-legend { right: 70px; bottom: calc(var(--sheet) + 58px); z-index: 4; padding: 8px 10px; display: grid; gap: 4px; font: 12.5px/1.3 var(--f-sans); }
.map-legend div { display: flex; align-items: center; gap: 6px; }
.map-legend small { color: var(--muted); font: 12px/1.3 var(--f-sans); max-width: 24ch; }
.map-legend [hidden] { display: none !important; }
.map-legend .lg-filter { font: 12.5px/1.35 var(--f-sans); max-width: 26ch; border-top: 1px solid var(--line); padding-top: 4px; }
.map-legend .lg-filter .linkbtn { font-size: 12.5px; padding: 4px 0; }
.inc-key { display: inline-block; width: 9px; height: 9px; margin-right: 2px; vertical-align: 0; flex: none; }
.inc-key.pi { transform: rotate(45deg) scale(.95); }
.tri-key { display: inline-block; width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-bottom: 10px solid var(--ink); position: relative; flex: none; }
.tri-key.hollow::after { content: ""; position: absolute; left: -3px; top: 4px; border-left: 3px solid transparent; border-right: 3px solid transparent; border-bottom: 5px solid var(--surface); }
.ring-key { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 1.5px dashed var(--muted); flex: none; }
.pet-key { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; font: 700 10px/1 var(--f-sans); color: var(--surface); flex: none; }
.pet-key.found { background: var(--surface) !important; color: var(--pet-found); box-shadow: inset 0 0 0 2px var(--pet-found); }

/* ---------- phone: search on top with Filter and Layers, the card as a bottom sheet ---------- */
@media (max-width: 719px) {
  #map-h { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .search-panel { top: 8px; left: 8px; right: 92px; width: auto; padding: 6px; gap: 6px; }
  .search-panel .chips:not([data-open]) { display: none; }
  .search-panel:has(.results:not([hidden]):not(:empty)) { right: 8px; }
  .search-panel .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .search-panel .chips::-webkit-scrollbar { display: none; }
  .search-panel .chip { flex: none; }
  .filter-btn { padding: 0 10px; }
  .results { max-height: 46vh; }
  .explorer .layers { top: 8px; right: 8px; }
  .layers .layers-btn { height: 58px; padding: 0 12px; }
  .layers-pop { top: 64px; width: min(270px, calc(100vw - 16px)); }
  .explorer .zoom { right: 8px; bottom: calc(var(--sheet) + 40px); }
  .explorer .scale { right: 8px; bottom: calc(var(--sheet) + 10px); }
  .explorer .attrib { left: 8px; right: auto; bottom: 6px; max-width: calc(100% - 170px); text-align: left; font-size: 10px; }
  .explorer:has(.card:not([hidden])) .attrib { display: none; }
  .explorer:has(.card[data-sheet="full"]:not([hidden])) :is(.zoom, .scale) { display: none; }
  .explorer .map-legend { top: 74px; right: 8px; bottom: auto; left: auto; padding: 6px 8px; font-size: 12px; }
  .map-legend small { display: none; }
  .explorer .card {
    left: 0; right: 0; bottom: 0; width: auto; max-height: 70%; padding: 22px 16px 14px; border-left: 0; border-right: 0; border-bottom: 0;
    box-shadow: 0 -6px 20px rgba(0, 0, 0, .18); overscroll-behavior: contain;
  }
  .explorer .card[data-sheet="peek"] { height: 140px; overflow: hidden; }
  .card[data-sheet="peek"] h3 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .card h3 { font-size: 22px; }
  .card .sheet-grip {
    display: block; position: absolute; top: 0; left: 0; right: 48px; height: 22px; padding: 0; border: 0; background: none; cursor: grab; touch-action: none;
  }
  .card .sheet-grip span { display: block; width: 40px; height: 4px; margin: 8px auto 0; background: var(--line); border-radius: 2px; transform: translateX(24px); }
  /* a place's peek shows kicker, name and [Call] [Directions]; the address follows when the sheet opens */
  .card[data-kind="place"] .card-in > * { order: 5; }
  .card[data-kind="place"] .card-in > .kicker { order: 1; }
  .card[data-kind="place"] .card-in > h3 { order: 2; }
  .card[data-kind="place"] .card-in > .c-acts { order: 3; }
  .card[data-kind="place"] .card-in > .c-addr { order: 4; }
}

/* ---------- /map/3d/ ---------- */
.explorer3d .p3-head { top: 14px; left: 14px; max-width: min(420px, calc(100% - 28px)); padding: 10px 14px 12px; }
.explorer3d .p3-head h1 { font: 700 24px/1.1 var(--f-head); margin: 0; max-width: none; }
.p3-deck { font: 14.5px/1.4 var(--f-sans); color: var(--ink-2); margin-top: 4px; }
.explorer3d .p3-ctl { left: 14px; bottom: 14px; padding: 10px; display: grid; gap: 8px; max-width: calc(100% - 28px); }
.p3-row { display: flex; flex-wrap: wrap; gap: 6px; }
.p3-row button {
  min-height: 44px; padding: 0 12px; border: 1px solid var(--rule); border-radius: 0; background: var(--surface); color: var(--ink);
  font: 700 14px/1.2 var(--f-sans); cursor: pointer;
}
.p3-row button:hover { background: var(--raised); }
.p3-row button[aria-pressed="true"] { background: var(--ink); color: var(--ground); }
.p3-row button:disabled { opacity: .6; cursor: progress; }
.p3-back { font: 600 14px/1.3 var(--f-sans); }
.p3-back a { display: inline-block; padding: 6px 0; }
.p3-msg { font: 13px/1.35 var(--f-sans); color: var(--ink-2); }
.p3-msg:empty { display: none; }
.p3-labels { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.p3-labels span {
  position: absolute; left: 0; top: 0; font: 800 15px/1 var(--f-head); letter-spacing: .04em; color: var(--map-label); white-space: nowrap; visibility: hidden;
  text-shadow: 0 0 2px var(--map-halo), 0 0 4px var(--map-halo), 0 0 7px var(--map-halo), 0 0 10px var(--map-halo);
}
.p3-title { position: absolute; left: 50%; bottom: 36px; transform: translateX(-50%); z-index: 4; text-align: center; color: var(--map-label); pointer-events: none; }
.p3-title .p3-t1 { font: 800 40px/1 var(--f-head); letter-spacing: -.02em; }
.p3-title .p3-t2 { font: 600 17px/1.3 var(--f-sans); margin-top: 6px; }
.p3-title p { text-shadow: 0 0 3px var(--map-halo), 0 0 8px var(--map-halo), 0 0 14px var(--map-halo); }
.explorer3d .p3-exit { top: 14px; right: 14px; min-height: 44px; padding: 0 14px; font: 700 14px/1 var(--f-sans); color: var(--ink); cursor: pointer; opacity: .85; }
.explorer3d .p3-exit:hover { opacity: 1; }
.explorer3d .attrib { display: block; }
@media (max-width: 719px) {
  .explorer3d .p3-head { top: 8px; left: 8px; right: 8px; max-width: none; padding: 8px 12px 10px; }
  .explorer3d .p3-head h1 { font-size: 20px; }
  .explorer3d .p3-ctl { left: 0; right: 0; bottom: 0; max-width: none; border-left: 0; border-right: 0; border-bottom: 0; padding: 8px; }
  .p3-row button { flex: 1 1 auto; padding: 0 8px; font-size: 13.5px; }
  .explorer3d .attrib { display: none; }
  .p3-back { display: none; }
  .explorer3d[data-poster] .attrib { display: block; left: 8px; right: 8px; max-width: none; text-align: center; font-size: 10px; }
  .p3-title { bottom: 30px; width: calc(100% - 24px); }
  .p3-title .p3-t1 { font-size: 32px; }
  .p3-title .p3-t2 { font-size: 15px; }
  .explorer3d .p3-exit { top: 8px; right: 8px; }
}

/* ---------- /directory/ ---------- */
.dir-page .deck { margin-bottom: 18px; }
.tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); margin: 6px 0 14px; overflow-x: auto; scrollbar-width: none; }
.tab { all: unset; cursor: pointer; font: 700 15px/1 var(--f-sans); color: var(--ink-2); padding: 14px 0; white-space: nowrap; }
.tab[aria-selected="true"] { color: var(--ink); box-shadow: inset 0 -4px 0 var(--ink); }
.tab:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.dir-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; margin-bottom: 10px; }
.dir-controls input, .dir-controls select {
  height: 46px; font: 16px var(--f-sans); padding: 0 12px; border: 1px solid var(--rule); background: var(--surface); color: var(--ink); border-radius: 0; min-width: 0;
}
.dir-controls select { padding-right: 8px; max-width: 220px; }
.dir-count { font: 14px/1.4 var(--f-sans); color: var(--ink-2); margin: 4px 0 10px; }
.dir-page table.dir { font-size: 14.5px; }
.dir-page table.dir th { position: sticky; top: 0; z-index: 1; border-bottom-width: 2px; }
.dir-page .dir-table-wrap { max-height: 72vh; overflow: auto; }
.dir-page td.dn { font-weight: 600; }
.dir-page td.dn a { color: var(--ink); text-decoration-color: var(--line); }
.dir-page td.dn a:hover { text-decoration-color: var(--ink); }
.dir-page td.dp { white-space: nowrap; font-variant-numeric: tabular-nums; }
.dir-page td.dt { white-space: nowrap; }
.dir-page .ph-u { display: none; }
@media (max-width: 719px) { .dir-page .ph-u { display: inline; } .dir-page td.dt { white-space: normal; } }
.dir-page .dtel { color: var(--ink); font-weight: 600; text-decoration-color: var(--line); }
.dir-page #dir-more { max-width: 320px; }
@media (max-width: 719px) {
  .dir-controls { grid-template-columns: 1fr 1fr; }
  .dir-controls input { grid-column: 1 / -1; }
  .dir-controls select { max-width: none; }
  .dir-page .dir-table-wrap { max-height: none; overflow: visible; }
  .dir-page table.dir { display: block; border: 0; border-top: 2px solid var(--rule); }
  .dir-page table.dir thead { display: none; }
  .dir-page table.dir tbody { display: block; }
  .dir-page table.dir tr { display: block; position: relative; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .dir-page table.dir tr:has(.dtel) { padding-right: 148px; min-height: 66px; }
  .dir-page table.dir td { display: inline; padding: 0; background: none !important; font-size: 13.5px; color: var(--ink-2); }
  .dir-page table.dir td.dn { display: block; font-size: 16px; color: var(--ink); margin-bottom: 1px; }
  .dir-page table.dir td.dn .sub { display: none; }
  .dir-page table.dir td.dc:not(:empty) + td.dt::before, .dir-page table.dir td.dl::before, .dir-page table.dir td.dd::before { content: " · "; }
  .dir-page table.dir td.da { display: block; }
  .dir-page table.dir td.dp { position: absolute; right: 0; top: 50%; transform: translateY(-50%); }
  .dir-page table.dir td.dp:empty { display: none; }
  .dir-page table.dir td.dd.none { display: none; }
  .dir-page table.dir td.empty { display: block; }
  .dir-page .dtel {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border: 1px solid var(--rule); background: var(--surface);
    text-decoration: none; font-size: 15px;
  }
}

/* ---------- /search/ ---------- */
.search-page .s-form { max-width: 640px; margin-top: 18px; }
.search-page .s-form label { font-size: 14.5px; margin-bottom: 6px; }
.sresults { max-width: 820px; margin-top: 8px; }
.sgroup { margin-top: 30px; }
.sgroup > .lh { margin-bottom: 4px; }
.slist { list-style: none; margin: 0; padding: 0; }
.srow { display: flex; align-items: center; justify-content: space-between; gap: 6px 16px; padding: 10px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.srow:last-child { border-bottom: 0; }
.sr-t { min-width: 0; flex: 1 1 280px; font: 600 16.5px/1.35 var(--f-sans); }
.sr-t a { color: var(--ink); text-decoration-color: var(--line); }
.sr-t a:hover { text-decoration-color: var(--ink); }
.sr-t a small { font-size: 72%; }
.sr-t > small { display: block; font: 400 13.5px/1.4 var(--f-sans); color: var(--muted); margin-top: 1px; }
.sr-c { flex: none; display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.sr-c .go { padding: 6px 0; font-size: 14.5px; }
.sgroup .btn-line.inline { margin-top: 12px; }
.sgroup .petrows { margin-top: 6px; }
.s-gapline { font: 14.5px/1.45 var(--f-sans); background: var(--raised); padding: 10px 12px; margin-top: 10px; }
.s-empty, .s-hint, .s-nojs { font: 16px/1.5 var(--f-sans); color: var(--ink-2); margin-top: 24px; max-width: 62ch; }
.s-hint a { color: var(--ink); }
