/* --- Tokens and base --- */
:root {
  color-scheme: light;
  --ink: #171918;
  --muted: #68706b;
  --line: #cbd2cd;
  --line-strong: var(--line);
  --surface: #fff;
  --surface-2: #f5f7f5;
  --surface-3: #ecefeb;
  --green: #198754;
  --green-dark: #116b41;
  --map-control-border: var(--line-strong);
  --completion-recent: #7c3aed;
  --completion-earlier: #2563eb;
  --completion-under-construction: #16a34a;
  --completion-not-verified: #d97706;
  --searched-location: #db2777;
  --control-height: 34px;
  --control-radius: 8px;
  --control-surface: rgb(255 255 255 / 96%);
  --control-shadow: 0 2px 10px rgb(20 30 24 / 12%);
  --control-focus: 0 0 0 3px rgb(57 116 214 / 20%);
  --chevron-size: 8px;
  --chevron-right: 10px;
  --chevron-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10' fill='none'%3E%3Cpath d='M2 3.5 5 6.5 8 3.5' stroke='%2368706b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --filter-label-weight: 600;
  --filter-control-weight: 450;
  --shadow: 0 14px 40px rgb(24 32 27 / 15%);
  --wash: #fafcfb;
  --radius: 12px;
  --sidebar-width: 374px;
  --detail-width: clamp(340px, 36vw, 470px);
  --motion: 180ms cubic-bezier(.23, 1, .32, 1);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; overflow: hidden; }
body { color: var(--ink); background: var(--surface-2); font-size: 14px; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
button { transition: scale var(--motion), background-color var(--motion), border-color var(--motion), color var(--motion); }
button:not(:disabled):active { scale: .97; }
@media (prefers-reduced-motion: reduce) { button:not(:disabled):active { scale: none; } }
/* Quick repeat taps on controls act as taps, not a page double-tap zoom; pinch zoom still works. */
button, a, input, select, label, summary, [role="button"] { touch-action: manipulation; }
a { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 0; box-shadow: var(--control-focus); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.chevron-icon { display: block; flex: none; fill: none; stroke: currentColor; stroke-width: 2.25px; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; pointer-events: none; }
/* --- Header and view navigation --- */
.topbar {
  height: 58px;
  padding: 0 18px;
  display: grid;
  grid-template-columns: minmax(310px, 1fr) minmax(300px, 600px) minmax(150px, 1fr);
  align-items: center;
  gap: 20px;
  background: #111312;
  color: #fff;
  border-bottom: 1px solid var(--line-strong);
}
.topbar-start { display: flex; align-items: center; gap: 10px; min-width: 0; }
.topbar-home {
  height: 32px; display: inline-flex; align-items: center; gap: 5px; flex: 0 0 auto; padding: 0 10px;
  border: 1px solid var(--line-strong); border-radius: var(--control-radius); color: #c9d0cb;
  font-size: 12px; font-weight: 750; white-space: nowrap; text-decoration: none;
}
@media (hover: hover) { .topbar-home:hover { background: rgb(255 255 255 / 7%); color: #fff; } }
.brand-block { display: flex; align-items: center; gap: 11px; min-width: 0; color: inherit; text-decoration: none; }
.brand-block > div { min-width: 0; }
.brand-logo {
  width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto;
  border: 1px solid var(--line-strong); border-radius: 12px; background: var(--green); color: white; font-weight: 750; font-size: 19px; object-fit: cover;
}
.brand-block :is(h1, .brand-title) { margin: 0; font-size: 16px; line-height: 1.2; letter-spacing: -.01em; }
.brand-title { display: block; font-weight: 700; }
.brand-block p { display: -webkit-box; margin: 3px 0 0; color: #9fa7a2; font-size: 11px; line-height: 1.25; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.brand-subtitle { display: block; margin-top: 2px; color: #7f8983; font-size: 11px; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.global-search { height: 38px; display: flex; align-items: center; gap: 9px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: #202320; }
.global-search:focus-within { border-color: var(--line-strong); box-shadow: 0 0 0 3px rgb(104 112 107 / 18%); }
.global-search svg { width: 17px; fill: none; stroke: #9fa7a2; stroke-width: 1.8; }
.global-search input { width: 100%; min-width: 0; border: 0; outline: 0; color: #fff; background: transparent; }
.global-search input::placeholder { color: #929994; }
.topbar-actions { display: flex; align-items: center; justify-self: end; gap: 8px; }
.topbar-actions .ghost-button { white-space: nowrap; }
.ghost-button { min-height: var(--control-height); justify-self: end; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line-strong); border-radius: var(--control-radius); background: var(--control-surface); color: var(--ink); padding: 0 11px; text-decoration: none; box-shadow: var(--control-shadow); font-size: 11px; font-weight: 700; }
@media (hover: hover) { .ghost-button:hover { border-color: var(--line-strong); background: #f4f8f4; color: var(--green-dark); } }
.topbar .ghost-button, .viewer .ghost-button { border-color: var(--line-strong); background: transparent; color: inherit; box-shadow: none; }
@media (hover: hover) { .topbar .ghost-button:hover, .viewer .ghost-button:hover { border-color: var(--line-strong); background: rgb(255 255 255 / 7%); color: inherit; } }
/* While Weekly recap is on, its page link floats at the top of the view. */
.weekly-recap-info-button {
  position: fixed; left: 50%; top: 70px; z-index: 1200; transform: translateX(-50%);
  display: inline-flex; align-items: center; height: var(--control-height); padding: 0 18px;
  border: 1px solid var(--green); border-radius: 8px;
  background: var(--green); color: #fff; box-shadow: var(--control-shadow);
  font-size: 14px; font-weight: 700; white-space: nowrap; text-decoration: none;
}
@media (hover: hover) { .weekly-recap-info-button:hover { border-color: var(--green-dark); background: var(--green-dark); color: #fff; } }
html[data-theme="dark"] .weekly-recap-info-button { color: #172027; }
.weekly-recap-info-button[hidden] { display: none !important; }
/* Below a neighborhood focus chip, which shares the top of the map. */
body:has(#neighborhoodFocus:not([hidden])) .weekly-recap-info-button { top: calc(70px + var(--control-height) + 8px); }
.leaflet-container { font-family: inherit; }
.mobile-menu-toggle, .mobile-tabbar, .mobile-panel-header, .mobile-scrim, .mobile-map-menu { display: none; }
.mobile-scrim[hidden] { display: none !important; }
.leaflet-tooltip.census-tract-tooltip { text-align: left; }

.workspace { height: calc(100% - 58px); display: block; position: relative; }
.map-workspace { position: absolute; inset: 0; display: flex; }
.map-workspace[hidden] { display: none !important; }
.view-tab { min-height: 30px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); padding: 0 14px; font-size: 11px; font-weight: 750; }
@media (hover: hover) { .view-tab:hover { color: var(--ink); } }
.view-tab.is-active { background: var(--green); color: #fff; }
/* --- Sidebar filters --- */
.sidebar { width: var(--sidebar-width, 374px); flex: 0 0 var(--sidebar-width, 374px); display: flex; flex-direction: column; background: var(--surface); border-right: 1px solid var(--line); z-index: 500; }
.sidebar-collapse-toggle { position: absolute; z-index: 710; top: 50%; left: calc(var(--sidebar-width, 374px) - 13px); width: 27px; height: 52px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 0 8px 8px 0; background: var(--control-surface); color: var(--green-dark); padding: 0; box-shadow: var(--control-shadow); font-family: Arial, sans-serif; font-size: 27px; line-height: 1; transform: translateY(-50%); transition: left var(--motion), background-color var(--motion); }
@media (hover: hover) { .sidebar-collapse-toggle:hover { background: var(--surface-3); } }
.sidebar-collapse-toggle .chevron-icon { width: 18px; height: 18px; }
.map-workspace.sidebar-collapsed { --sidebar-width: 0px; }
.map-workspace.sidebar-collapsed .sidebar { overflow: hidden; width: 0; flex-basis: 0; border-right-color: transparent; }
.map-workspace.sidebar-collapsed .sidebar-collapse-toggle { left: 0; border-left: 0; }
.filters { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 14px 16px 15px; border-bottom: 1px solid var(--line); }
.section-heading { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-bottom: 2px; }
.section-heading :is(h2, .panel-title) { margin: 0; font-size: 14px; font-weight: 700; }
.filter-grid { container-type: inline-size; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 11px; }
.filter-grid-normal { margin-top: 8px; }
.filter-grid label { display: grid; min-width: 0; gap: 4px; color: var(--muted); font-size: 12px; font-weight: var(--filter-label-weight); text-align: left; }
.filter-help { color: var(--muted); font-size: 11px; font-weight: 500; text-transform: none; letter-spacing: 0; }
.site-intro { margin: 16px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.advanced-filter-toggle { width: 100%; min-height: var(--control-height); position: relative; display: flex; align-items: center; justify-content: flex-start; gap: 10px; margin-top: 12px; padding: 0 28px 0 8px; border: 1px solid var(--line-strong); border-radius: var(--control-radius); background-color: var(--surface-2); color: var(--green-dark); font-size: 11px; font-weight: var(--filter-label-weight); text-align: left; }
@media (hover: hover) { .advanced-filter-toggle:hover { border-color: var(--line-strong); background-color: #f4f8f4; } }
.filter-chevron { width: var(--chevron-size); height: var(--chevron-size); position: absolute; top: 50%; right: var(--chevron-right); border: 0; background: var(--chevron-icon) center / contain no-repeat; transform: translateY(-50%); transform-origin: center; transition: transform var(--motion); }
.advanced-filter-toggle[aria-expanded="true"] .filter-chevron { transform: translateY(-50%) rotate(180deg); }
.advanced-filters { margin-top: 11px; padding-top: 1px; border-top: 1px solid var(--line); }
.advanced-filters .filter-grid { margin-top: 8px; }
.viewport-pin-counts { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12px; }
.viewport-pin-counts h2 { margin: 0 0 8px; font-size: inherit; font-weight: 750; }
.viewport-pin-counts dl { display: grid; gap: 5px; margin: 0; }
.viewport-pin-counts dl > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.viewport-pin-counts dt { color: var(--muted); }
.viewport-pin-counts dt .legend-swatch { margin-inline-end: 7px; }
.viewport-pin-counts dd { margin: 0; font-variant-numeric: tabular-nums; font-weight: 650; }
.viewport-pin-counts p { margin: 0; }
.pin-count-area-toggle { display: flex; align-items: center; gap: 6px; margin-bottom: 9px; cursor: pointer; }
.pin-count-area-toggle input { margin: 0; }
.viewport-pin-counts .pin-count-area-total { padding-top: 5px; border-top: 1px solid var(--line); font-weight: 750; }
.redfin-filter-disclosure { margin-top: 10px; }
.redfin-filter-toggle { width: 100%; min-height: var(--control-height); position: relative; display: flex; align-items: center; gap: 8px; padding: 0 28px 0 8px; border: 1px solid var(--line-strong); border-radius: var(--control-radius); background: var(--surface-2); color: var(--green-dark); font-size: 11px; font-weight: var(--filter-label-weight); text-align: left; }
@media (hover: hover) { .redfin-filter-toggle:hover { border-color: var(--line-strong); background: #f4f8f4; } }
.redfin-filter-toggle[aria-expanded="true"] .filter-chevron { transform: translateY(-50%) rotate(180deg); }
.redfin-filter-toggle .filter-subsummary { min-width: 0; margin-left: auto; overflow: hidden; color: var(--muted); font-size: 11px; font-weight: 500; text-overflow: ellipsis; text-transform: none; letter-spacing: 0; white-space: nowrap; }
.redfin-advanced-filters { margin-top: 8px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); }
.redfin-advanced-filters .filter-grid { margin-top: 0; }
[data-redfin-filter-status]:empty { display: none; }
.redfin-filter-help { display: block; margin-top: 8px; line-height: 1.35; }
.filter-scope { display: flex; align-items: center; gap: 4px; margin: 0 0 12px; }
/* Sized so the two-line note fits beside both buttons in the full sidebar. */
.filter-scope-note { flex: 1 1 0; min-width: 0; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.35; }
.filter-scope-note span { display: block; }
.scope-actions { display: flex; flex: none; gap: 4px; }
.scope-button { flex: none; min-height: 32px; padding: 0 5px; border: 1px solid var(--green); border-radius: var(--control-radius); background: var(--surface-2); color: var(--green-dark); font-size: 12px; font-weight: 700; cursor: pointer; }
@media (hover: hover) { .scope-button:hover { background: var(--surface-3); } }
.scope-button.weekly-recap-button { white-space: nowrap; }
.scope-button.weekly-recap-button.is-active { background: var(--green); color: var(--surface); }
@media (hover: hover) { .scope-button.weekly-recap-button.is-active:hover { border-color: var(--green-dark); background: var(--green-dark); } }
.overlay-heading { margin-top: 12px; color: var(--muted); font-size: 12px; font-weight: 750; text-align: left; }
.overlay-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-top: 8px; }
.bubble-size-switch { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; color: var(--muted); font-size: 12px; font-weight: var(--filter-label-weight); cursor: pointer; }
.bubble-size-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.bubble-size-switch .switch-track { position: relative; flex: none; width: 34px; height: 20px; border-radius: 999px; background: var(--line); transition: background 0.15s ease; }
.bubble-size-switch .switch-track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25); transition: transform 0.15s ease; }
.bubble-size-switch input:checked + .switch-track { background: var(--green); }
.bubble-size-switch input:checked + .switch-track::after { transform: translateX(14px); }
.bubble-size-switch input:focus-visible + .switch-track { outline: 2px solid var(--green); outline-offset: 2px; }
.overlay-toggle { width: 100%; min-height: var(--control-height); padding-inline: 7px; text-align: left; white-space: normal; line-height: 1.15; }
select { width: 100%; min-height: var(--control-height); appearance: none; -webkit-appearance: none; border: 1px solid var(--line-strong); border-radius: 8px; background-color: #fff; background-image: var(--chevron-icon); background-repeat: no-repeat; background-position: right var(--chevron-right) center; background-size: var(--chevron-size) var(--chevron-size); color: var(--ink); padding: 0 28px 0 8px; font-size: 12px; text-transform: none; letter-spacing: 0; font-weight: var(--filter-control-weight); text-align: left; text-align-last: left; }
.homes-filter, .lot-size-filter { min-width: 0; display: flex !important; flex-direction: column; }
/* Bottom-align controls under two-line labels. The sidebar's unit count is
   exempt: it shares a row with Redfin listing, whose help line would drop
   the boxes below the Redfin select. */
.lot-size-filter > .range-boxes { margin-top: auto; }
.range-text { width: 100%; height: var(--control-height); box-sizing: border-box; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; color: var(--ink); padding: 5px 7px; font-size: 11px; font-weight: var(--filter-control-weight); text-transform: none; letter-spacing: 0; text-align: left; }
.range-boxes { display: flex; min-width: 0; align-items: center; gap: 5px; }
.range-boxes > .range-text { min-width: 0; flex: 1 1 0; }
.range-boxes > span { color: var(--muted); font-size: 11px; text-align: left; }
.zone-filter { min-width: 0; }
.zone-picker { position: relative; display: block; }
.zone-filter-button { width: 100%; min-height: var(--control-height); position: relative; border: 1px solid var(--line-strong); border-radius: var(--control-radius); background-color: var(--control-surface); color: var(--ink); padding: 0 28px 0 8px; text-align: left; font-size: 12px; font-weight: var(--filter-control-weight); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: var(--control-shadow); }
.zone-filter-button::after, .activity-filter-button::after { content: ""; width: var(--chevron-size); height: var(--chevron-size); position: absolute; top: 50%; right: var(--chevron-right); border: 0; background: var(--chevron-icon) center / contain no-repeat; transform: translateY(-50%); }
.zone-filter-menu { position: absolute; z-index: 900; top: calc(100% + 4px); left: 0; width: max-content; min-width: 100%; max-width: 100cqw; max-height: 280px; overflow: auto; padding: 6px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; box-shadow: 0 8px 22px rgb(20 30 24 / 16%); }
.activity-picker { position: relative; display: block; min-width: 0; }
.activity-filter-button { width: 100%; min-width: 0; min-height: var(--control-height); position: relative; border: 1px solid var(--line-strong); border-radius: var(--control-radius); background-color: var(--control-surface); color: var(--ink); padding: 0 28px 0 8px; text-align: left; font-size: 12px; font-weight: var(--filter-control-weight); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: var(--control-shadow); }
.activity-filter-menu { position: absolute; z-index: 900; top: calc(100% + 4px); right: 0; min-width: 180px; overflow: auto; padding: 6px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; box-shadow: 0 8px 22px rgb(20 30 24 / 16%); }
.last-activity-filter-menu { max-height: min(280px, 50vh); }
.activity-filter-item { width: 100%; display: flex; align-items: center; gap: 7px; padding: 6px 5px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); font-size: 11px; font-weight: 500; line-height: 1.2; text-align: left; }
@media (hover: hover) { .activity-filter-item:hover { background: var(--wash); } }
.activity-filter-item .completion-check { flex: 0 0 18px; }
.activity-filter-item[aria-pressed="true"] .completion-check { border-color: var(--green); background: var(--green); color: #fff; }
.activity-filter-item[aria-pressed="false"] .completion-check { background: transparent; }
.zone-check { display: flex !important; grid-template-columns: none !important; align-items: center; gap: 7px !important; padding: 5px 4px; color: var(--ink) !important; font-size: 11px !important; font-weight: 500 !important; text-transform: none !important; letter-spacing: 0 !important; }
@media (hover: hover) { .zone-check:hover { background: var(--wash); } }
.zone-check input { margin: 0; accent-color: var(--green); }
.zone-check small { color: var(--muted); font-size: 11px; }
.zone-all { margin-bottom: 4px; padding-bottom: 7px; border-bottom: 1px solid var(--line); font-weight: 450 !important; }
.completion-dot { width: 8px; height: 8px; display: inline-block; flex: 0 0 8px; margin: 0 7px 1px 0; border-radius: 50%; background: var(--completion-not-verified); box-shadow: 0 0 0 1px rgb(255 255 255 / 80%); }
.completion-dot.completed-recent { background: var(--completion-recent); }
.completion-dot.completed-earlier { background: var(--completion-earlier); }
.completion-dot.under-construction { background: var(--completion-under-construction); }
.completion-dot.not-completed { background: var(--completion-not-verified); }
.empty { padding: 30px 18px; color: var(--muted); text-align: center; line-height: 1.5; }
/* --- Map, controls, and pins --- */
.map-region { flex: 1; min-width: 0; position: relative; }
#map { position: absolute; inset: 0; z-index: 1; background: transparent; }
.map-basemap-status { position: absolute; z-index: 675; top: 50%; left: 50%; max-width: min(260px, calc(100% - 28px)); padding: 9px 12px; transform: translate(-50%, -50%); border: 1px solid var(--line-strong); border-radius: 8px; background: color-mix(in srgb, var(--control-surface) 94%, transparent); box-shadow: var(--control-shadow); color: var(--muted); font-size: 12px; font-weight: 700; text-align: center; pointer-events: none; }
.map-basemap-status[hidden] { display: none; }
.map-neighborhood-focus { position: absolute; z-index: 460; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 2px; min-height: var(--control-height); max-width: calc(100% - 24px); padding: 0 2px 0 12px; border: 1px solid var(--map-control-border); border-radius: var(--control-radius); background: var(--control-surface); box-shadow: var(--control-shadow); color: var(--ink); font-size: 12px; font-weight: 700; }
.map-neighborhood-focus[hidden] { display: none; }
.map-neighborhood-focus span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.map-neighborhood-focus button { width: 30px; height: 30px; flex: 0 0 auto; padding: 0; border: 0; background: none; color: var(--muted); font-size: 18px; line-height: 1; cursor: pointer; }
@media (hover: hover) { .map-neighborhood-focus button:hover { color: var(--ink); } }
.leaflet-gl-layer, .leaflet-gl-layer canvas { pointer-events: none; }
/* Cold start: hold the map content and any opened panel until the first
   basemap view has drawn, then fade them in together (basemaps.js). A panel
   the server already painted is left visible. */
html.map-startup-pending #map .leaflet-map-pane,
html.map-startup-pending:not(.map-startup-panel-painted) #detailPanel,
html.map-startup-pending #detailScrim { opacity: 0; }
html.map-startup-revealing #map .leaflet-map-pane,
html.map-startup-revealing:not(.map-startup-panel-painted) #detailPanel,
html.map-startup-revealing #detailScrim { animation: map-startup-fade-in .45s ease-out both; }
@keyframes map-startup-fade-in { from { opacity: 0; } }
/* Dense pins arriving after core hydration fade in over the linked address's
   own startup pins (map-pins.js). */
.leaflet-projectPinsPane-pane canvas.is-arriving { animation: map-startup-fade-in .4s ease-out both; }
@media (prefers-reduced-motion: reduce) {
  html.map-startup-revealing #map .leaflet-map-pane,
  html.map-startup-revealing #detailPanel,
  html.map-startup-revealing #detailScrim,
  .leaflet-projectPinsPane-pane canvas.is-arriving { animation: none; }
}
#map3d { position: absolute; inset: 0; z-index: 2; visibility: hidden; background: #f8f4f0; pointer-events: none; }
/* Keep the 2D map composited under the opaque 3D overlay: iOS WebKit can leave
   a WebGL canvas blank after its parent is hidden and shown again. */
.map-region.is-3d #map { pointer-events: none; }
.map-region.is-3d #map3d { visibility: visible; pointer-events: auto; }
.pin-count-area-tools { position: absolute; z-index: 560; top: 12px; left: 50%; transform: translateX(-50%); padding: 8px; border: 1px solid var(--line); border-radius: var(--control-radius); background: var(--control-surface); box-shadow: var(--control-shadow); text-align: center; }
.pin-count-area-tools p { margin: 0 0 6px; font-size: 12px; white-space: nowrap; }
.pin-count-area-tools > div { display: flex; gap: 5px; }
.pin-count-area-tools .map-tool:disabled { opacity: 0.45; cursor: default; }
.is-area-drawing :is(#map, #map3d canvas) { cursor: crosshair !important; }
.is-area-drawing #map :is(.leaflet-interactive, .leaflet-marker-icon, .leaflet-pane canvas) { pointer-events: none !important; }
@media (max-width: 720px) { .pin-count-area-tools { top: var(--mobile-chrome-top, 68px); } }
.map-basemap-control-host { position: absolute; z-index: 5; right: 10px; bottom: 10px; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; pointer-events: none; }
.map-basemap-control-host > * { pointer-events: auto; }
.map-basemap-control-host > .leaflet-control { float: none; margin: 0; }
.map-basemap-control-host .leaflet-control-layers { order: 2; }
.map-3d-button { order: 3; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--control-surface); color: var(--ink); font: inherit; font-size: 13px; font-weight: 650; white-space: nowrap; box-shadow: 0 2px 8px rgb(0 0 0 / 18%); cursor: pointer; }
.map-3d-button svg { width: 16px; height: 16px; fill: currentColor; }
html:root .map-3d-button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--control-surface); }
.map-3d-button[hidden] { display: none; }
.map-3d-button:focus-visible { outline: 0; box-shadow: var(--control-focus); }
#map3d .maplibregl-canvas { outline: none; }
#map3d .maplibregl-ctrl-group { overflow: hidden; border: 1px solid var(--map-control-border); border-radius: var(--control-radius); background: var(--control-surface); box-shadow: var(--control-shadow); }
#map3d .maplibregl-ctrl-group button { width: 32px; height: 32px; background-color: var(--control-surface); }
@media (hover: hover) { #map3d .maplibregl-ctrl-group button:hover { background-color: var(--wash); } }
#map3d .maplibregl-ctrl-attrib { margin: 0 5px 5px 0; border: 1px solid var(--line-strong); border-radius: 8px; background: color-mix(in srgb, var(--control-surface) 92%, transparent); box-shadow: var(--control-shadow); color: var(--muted); font-size: 11px; }
#map3d .maplibregl-ctrl-attrib a { color: var(--green-dark); }
#map3d .maplibregl-ctrl-bottom-right { right: 10px; bottom: 150px; }
.map-fallback { position: absolute; inset: 0; display: grid; place-content: center; gap: 8px; padding: 32px; background: linear-gradient(145deg, #eef2ed, #dfe7df); color: var(--ink); text-align: center; }
.map-fallback strong { font-size: 15px; }
.map-fallback span { max-width: 310px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.map-control-stack { position: absolute; z-index: 450; left: 12px; bottom: 10px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; max-width: calc(100% - 24px); pointer-events: none; }
.map-control-stack > * { pointer-events: auto; }
.map-tools { display: flex; align-items: center; gap: 6px; }
.map-control-stack .map-tools { order: -1; }
.map-tool { min-height: var(--control-height); border: 1px solid var(--map-control-border); border-radius: var(--control-radius); background: var(--control-surface); color: var(--ink); padding: 0 10px; box-shadow: var(--control-shadow); font-size: 11px; font-weight: 700; }
@media (hover: hover) { .map-tool:hover { border-color: var(--map-control-border); background: #f4f8f4; color: var(--green-dark); } }
.map-tool[aria-busy="true"] { cursor: wait; }
.construction-control { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.construction-control:not(:has(.construction-legend:not([hidden]))) { display: none; }
.construction-legend { display: flex; flex-direction: column; gap: 4px; padding: 7px 9px; color: var(--ink); font-size: 11px; }
.construction-legend[hidden] { display: none; }
.legend-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; align-self: stretch; }
.mobile-legend-hide, .mobile-legend-show { display: none; }
.construction-legend-title { color: var(--muted); font-size: 12px; font-weight: 700; white-space: nowrap; }
.completion-legend .construction-legend-title { max-width: 290px; white-space: normal; text-wrap: balance; }
.construction-legend-item[hidden] { display: none; }
.construction-legend-item { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.construction-legend .legend-swatch { box-shadow: 0 0 0 1.5px #fff; }
.completion-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 11px; color: var(--muted); font-size: 11px; line-height: 1.2; }
.completion-legend-item { display: inline-flex; align-items: center; gap: 8px; min-height: 28px; padding: 2px 6px; border: 0; border-radius: 8px; background: transparent; color: inherit; font: inherit; line-height: inherit; text-align: left; white-space: nowrap; }
.completion-legend-item[hidden] { display: none; }
.map-region:not(.is-3d) .map3d-colored-only { display: none; }
.map3d-colored-only { margin-top: 4px; }
@media (hover: hover) { .completion-legend-item:hover { background: var(--surface-3); color: var(--ink); } }
.completion-check { width: 18px; height: 18px; display: inline-grid; flex: 0 0 18px; place-items: center; border: 2px solid color-mix(in srgb, var(--muted) 72%, transparent); border-radius: 4px; color: transparent; font-size: 12px; font-weight: 800; line-height: 1; }
.completion-legend-item[aria-pressed="true"] .completion-check { border-color: var(--green); background: var(--green); color: #fff; }
.legend-swatch { width: 9px; height: 9px; display: inline-block; border-radius: 50%; background: var(--completion-not-verified); }
.legend-swatch.completed-recent { background: var(--completion-recent); }
.legend-swatch.completed-earlier { background: var(--completion-earlier); }
.legend-swatch.under-construction { background: var(--completion-under-construction); }
.legend-swatch.not-completed { background: var(--completion-not-verified); }
.legend-swatch.construction-waiting, .project-pin.construction-waiting { background: #e5e7eb; }
.legend-swatch.construction-0, .project-pin.construction-0 { background: #dcfce7; }
.legend-swatch.construction-1, .project-pin.construction-1 { background: #86efac; }
.legend-swatch.construction-2, .project-pin.construction-2 { background: #22c55e; }
.legend-swatch.construction-3, .project-pin.construction-3 { background: #15803d; }
.legend-swatch.construction-4, .project-pin.construction-4 { background: #052e16; }
.legend-swatch.construction-final, .project-pin.construction-final { background: #facc15; }
.legend-swatch.recap-applied, .project-pin.recap-applied { background: #fed7aa; }
.legend-swatch.recap-issued, .project-pin.recap-issued { background: #fb923c; }
.legend-swatch.recap-completed, .project-pin.recap-completed { background: #dc2626; }
.legend-swatch.recap-certificate, .project-pin.recap-certificate { background: #7f1d1d; }
.legend-swatch.recap-other, .project-pin.recap-other { background: #94a3b8; }
.map-legend { max-width: min(420px, 100%); padding: 5px 7px; border: 1px solid var(--map-control-border); border-radius: var(--control-radius); background: var(--control-surface); box-shadow: var(--control-shadow); }
.map-legend.completion-legend { flex-direction: column; align-items: flex-start; gap: 4px; color: var(--ink); font-size: 11px; }
.map-legend.completion-legend[hidden] { display: none; }
.completion-legend-row { display: flex; align-items: center; gap: 8px; }
.construction-detail-button { padding: 1px 6px; border: 1px solid var(--line-strong); border-radius: 8px; background: transparent; color: var(--muted); font: inherit; font-size: 11px; font-weight: 600; line-height: 1.4; cursor: pointer; }
@media (hover: hover) { .construction-detail-button:hover { border-color: var(--green); color: var(--ink); } }
.construction-detail-button[aria-expanded="true"] { border-color: var(--green); background: var(--green); color: #fff; }
html[data-theme="dark"] .construction-detail-button[aria-expanded="true"] { color: #172027; }
.construction-detail-button[aria-busy="true"] { cursor: wait; }
.construction-detail-button:focus-visible { outline: 0; box-shadow: var(--control-focus); }
.construction-detail { display: flex; flex-direction: column; gap: 4px; margin: 0 0 2px 7px; padding-left: 12px; border-left: 1px solid var(--line-strong); }
.construction-detail[hidden] { display: none; }
.construction-detail .legend-swatch { box-shadow: 0 0 0 1.5px #fff; }
.map-control-stack .completion-legend-item { min-height: 0; margin: 0; padding: 0; gap: 7px; border-radius: 0; font-size: 11px; }
@media (hover: hover) { :root .map-control-stack .completion-legend-item:hover { background: transparent; color: inherit; } }
.map-control-stack .completion-check { width: 12px; height: 12px; flex-basis: 12px; border-width: 1.5px; border-radius: 4px; font-size: 11px; }
.leaflet-control-zoom, .leaflet-control-layers { border: 1px solid var(--map-control-border); border-color: var(--map-control-border) !important; border-radius: var(--control-radius); box-shadow: var(--control-shadow); overflow: hidden; }
.leaflet-control-zoom a { width: 32px; height: 32px; border: 0; background: var(--control-surface); color: var(--ink); font-size: 18px; line-height: 32px; }
.leaflet-control-zoom.leaflet-bar a { width: 32px; height: 32px; border-radius: 0; line-height: 32px; }
.leaflet-control-zoom a + a { border-top: 1px solid var(--map-control-border); }
@media (hover: hover) { .leaflet-control-zoom a:hover { background: #f4f8f4; color: var(--green-dark); } }
.leaflet-control-layers-expanded { padding: 5px 7px; background: var(--control-surface); }
.map-basemap-control-host .leaflet-control-layers:not(.leaflet-control-layers-expanded) { width: 64px; height: 64px; border-radius: 12px; }
.leaflet-control-layers-toggle { position: relative; width: 64px; height: 64px; padding: 0; overflow: hidden; background-color: var(--control-surface) !important; background-image: none !important; }
.map-layer-thumbnail { position: absolute; inset: 0; display: block; overflow: hidden; border-radius: 8px; background: #dfe8df; box-shadow: inset 0 0 0 1px rgb(0 0 0 / 14%); }
.map-layer-thumbnail > svg { width: 100%; height: 100%; display: block; }
.map-thumb-satellite, .map-thumb-3d { display: none; }
.leaflet-control-layers-toggle[data-map-basemap="satellite"] .map-thumb-street,
.leaflet-control-layers-toggle[data-map-basemap="3d"] .map-thumb-street { display: none; }
.leaflet-control-layers-toggle[data-map-basemap="satellite"] .map-thumb-satellite,
.leaflet-control-layers-toggle[data-map-basemap="3d"] .map-thumb-3d { display: block; }
.map-layers-glyph { position: absolute; z-index: 2; top: 6px; right: 6px; width: 23px; height: 23px; display: grid; place-items: center; border: 1px solid rgb(255 255 255 / 92%); border-radius: 8px; background: rgb(255 255 255 / 94%); box-shadow: 0 1px 3px rgb(0 0 0 / 28%); color: #4f5b55; pointer-events: none; }
.map-layers-glyph svg { width: 16px; height: 16px; display: block; fill: currentColor; }
.map-layers-label { position: absolute; z-index: 2; right: 0; bottom: 4px; left: 0; height: 17px; display: grid; place-items: center; background: transparent; color: #fff; font-size: 11px; font-weight: 800; line-height: 1; letter-spacing: .01em; text-shadow: 0 1px 3px rgb(0 0 0 / 84%); }
.map-layers-collapse-button { display: none; }
.leaflet-control-layers-toggle:focus-visible { outline: 0; box-shadow: var(--control-focus); }
.leaflet-control-layers-overlays { display: none; }
.leaflet-control-layers-base label, .leaflet-control-layers-overlays label { display: flex; align-items: center; gap: 0; min-height: 28px; margin: 1px 0; padding: 2px 6px; border-radius: 8px; color: var(--ink); font-size: 11px; cursor: pointer; }
@media (hover: hover) { .leaflet-control-layers-base label:hover { background: var(--surface-3); } }
.leaflet-control-layers-base label > span { display: inline-flex; align-items: center; gap: 8px; min-height: 18px; }
.leaflet-control-layers-base label > span > span { line-height: 1.2; }
.leaflet-control-layers-base input.leaflet-control-layers-selector { width: 18px; height: 18px; flex: 0 0 18px; appearance: none; -webkit-appearance: none; margin: 0; position: static; border: 2px solid color-mix(in srgb, var(--muted) 72%, transparent); border-radius: 50%; background: var(--control-surface); }
.leaflet-control-layers-base input.leaflet-control-layers-selector:checked { border-color: var(--green); background: radial-gradient(circle, var(--green) 0 4px, var(--control-surface) 4.5px); }
.leaflet-control-layers-base input.leaflet-control-layers-selector:focus-visible, .completion-legend-item:focus-visible { outline: 0; box-shadow: var(--control-focus); }
.map-zoning-option { gap: 8px !important; }
.map-layer-checkbox { position: relative; width: 18px; height: 18px; display: block !important; flex: 0 0 18px; min-height: 18px !important; }
.map-layer-checkbox input { position: absolute; inset: 0; z-index: 1; width: 18px; height: 18px; margin: 0; opacity: 0; cursor: pointer; }
.map-layer-checkbox-mark { width: 18px; height: 18px; display: grid !important; place-items: center; border: 2px solid color-mix(in srgb, var(--muted) 72%, transparent); border-radius: 4px; color: transparent; font-size: 12px; font-weight: 800; line-height: 1; }
.map-layer-checkbox input:checked + .map-layer-checkbox-mark { border-color: var(--green); background: var(--green); color: #fff; }
.map-layer-checkbox input:focus-visible + .map-layer-checkbox-mark { outline: 0; box-shadow: var(--control-focus); }
.map-mode-label { white-space: nowrap; }
.detail-open .leaflet-control-zoom { display: none; }
.project-pin { width: var(--pin-size, 20px); height: var(--pin-size, 20px); border-radius: 50% 50% 50% 0; transform: translate(var(--pin-offset-x, 0px), var(--pin-offset-y, 0px)) rotate(-45deg); border: 2.5px solid #fff; background: var(--completion-not-verified); box-shadow: 0 2px 6px rgb(0 0 0 / 35%); transition: transform var(--motion), box-shadow var(--motion); }
.project-pin.is-selected { transform: translate(var(--pin-offset-x, 0px), var(--pin-offset-y, 0px)) rotate(-45deg) scale(var(--pin-selected-scale, 1)); border: 3px solid #fff; box-shadow: 0 0 0 2.5px #172019, 0 4px 14px rgb(0 0 0 / 55%); filter: saturate(1.08) brightness(1.05); }
.project-pin.is-selected::after { content: ""; position: absolute; inset: 27%; border-radius: 50%; background: #fff; }
.project-pin-halo { position: absolute; left: calc(var(--pin-size) / 2 + var(--pin-offset-x, 0px)); top: calc(var(--pin-size) / 2 + var(--pin-offset-y, 0px)); width: calc(var(--pin-size) * 2.4); height: calc(var(--pin-size) * 2.4); border-radius: 50%; opacity: .3; transform: translate(-50%, -50%); pointer-events: none; animation: pin-halo 1.8s ease-out 3; }
@keyframes pin-halo { 0% { transform: translate(-50%, -50%) scale(1); opacity: .3; } 55% { transform: translate(-50%, -50%) scale(1.7); opacity: 0; } 56% { transform: translate(-50%, -50%) scale(.5); opacity: .5; } 100% { transform: translate(-50%, -50%) scale(1); opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .project-pin-halo { animation: none; } }
.project-pin.completed-recent { background: var(--completion-recent); }
.project-pin.completed-earlier { background: var(--completion-earlier); }
.project-pin.under-construction { background: var(--completion-under-construction); }
.project-pin.not-completed { background: var(--completion-not-verified); }
.project-pin.searched-location-pin { background: var(--searched-location); box-shadow: 0 0 0 2px #fff, 0 2px 8px rgb(0 0 0 / 42%); }
.project-pin.is-searched { box-shadow: 0 0 0 3.5px var(--searched-location), 0 2px 8px rgb(0 0 0 / 42%) !important; }
.single-cluster-icon { background: transparent; }
.single-cluster-bubble { width: 42px; height: 42px; display: grid; place-items: center; border: 3px solid #fff; border-radius: 50%; background: #23332a; box-shadow: 0 2px 8px rgb(0 0 0 / 28%); color: #fff; font-size: 12px; font-weight: 800; }
.single-cluster-icon.is-selected { z-index: 900 !important; }
.single-cluster-bubble.is-selected { width: 56px; height: 56px; border-width: 4px; background: var(--green); box-shadow: 0 3px 14px rgb(0 0 0 / 42%); font-size: 14px; }
.pin-hover-tooltip { position: absolute; z-index: 800; left: 0; top: 0; display: flex; flex-direction: column; gap: 1px; padding: 6px 9px; border: 1px solid var(--line); border-radius: var(--control-radius); background: var(--control-surface); box-shadow: var(--control-shadow); color: var(--ink); font-size: 12px; line-height: 1.3; white-space: nowrap; pointer-events: none; opacity: 0; transform: translate(-50%, calc(-100% - 6px)); transition: opacity var(--motion); }
.pin-hover-tooltip.is-visible { opacity: 1; }
.pin-hover-tooltip strong { font-weight: 700; }
.pin-hover-tooltip span { color: var(--muted); }
@media (max-width: 720px), (hover: none) { .pin-hover-tooltip { display: none; } }
/* Mobile first-load note on the 100+ unit default. Taps pass through to the
   map and dismiss it. */
.mobile-scope-toast { position: fixed; z-index: 702; top: calc(env(safe-area-inset-top, 0px) + 68px); left: 10px; right: 64px; margin: 0; padding: 10px 14px; border: 1px solid var(--drawer-edge, var(--line)); border-radius: 12px; background: var(--mobile-glass, var(--surface)); box-shadow: var(--mobile-shadow, var(--control-shadow)); color: var(--ink); font-size: 14px; line-height: 1.35; pointer-events: none; transition: opacity var(--motion); }
.mobile-scope-toast.is-leaving { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .mobile-scope-toast { transition: none; } }
/* --- Detail panel and document viewer --- */
.detail-panel { width: var(--detail-width); flex: 0 0 var(--detail-width); position: relative; overflow-x: hidden; overflow-y: auto; background: #fff; border-left: 1px solid var(--line); box-shadow: -10px 0 30px rgb(21 29 24 / 9%); z-index: 600; }
@media (min-width: 721px) { .detail-panel { overflow-y: scroll; scrollbar-gutter: stable; } }
.detail-scrim { display: none; }
.detail-sheet-handle { display: none; }
.detail-close { position: absolute; right: 14px; top: 12px; z-index: 2; }
.detail-pop-toggle { position: absolute; right: 66px; top: 12px; z-index: 2; }
.detail-pop-toggle svg { width: 20px; height: 20px; }
@media (max-width: 720px) { .detail-panel .detail-pop-toggle.icon-button { display: none; } }
/* An address link opens the detail as a centered popup over a dimmed map. */
@media (min-width: 721px) {
  body.detail-popup .detail-scrim { display: block; position: fixed; inset: 0; z-index: 1300; padding: 0; border: 0; background: rgb(12 18 15 / 40%); backdrop-filter: blur(2px); cursor: default; }
  html:root body.detail-popup .detail-panel { position: fixed; top: 50%; left: 50%; right: auto; bottom: auto; width: min(720px, calc(100vw - 48px)); height: min(860px, calc(100dvh - 64px)); max-height: none; flex: none; -webkit-backdrop-filter: none; backdrop-filter: none; contain: paint; transform: translate(-50%, -50%); border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: 0 24px 80px rgb(0 0 0 / 30%); z-index: 1301; }
  body.detail-popup.detail-open .map-basemap-control-host { right: 10px; }
}
.icon-button { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: var(--control-radius); background: var(--control-surface); color: var(--muted); padding: 0; box-shadow: var(--control-shadow); font-family: Arial, sans-serif; font-size: 27px; font-weight: 500; line-height: .9; }
@media (hover: hover) { .icon-button:hover { border-color: var(--line-strong); color: var(--green-dark); } }
.detail-header { padding: 24px 52px 18px 22px; border-bottom: 1px solid var(--line); }
/* A shared link's panel before the project loads (map-detail.html): the
   address and Google Maps button stay, the rest waits as placeholder bars. */
.detail-panel.is-ghost .project-route-fallback > :not(header),
.detail-panel.is-ghost .project-route-fallback header > :not(.detail-address-heading) { display: none; }
.detail-panel.is-ghost .detail-header { padding-bottom: 0; border-bottom: 0; }
.detail-panel.is-ghost .detail-ghost-title,
.detail-panel.is-ghost #detailContent::after { --ghost: color-mix(in srgb, var(--line) 50%, transparent); content: ""; display: block; animation: detail-ghost-pulse 1.1s ease-in-out infinite alternate; }
.detail-panel.is-ghost .detail-ghost-title { width: 70%; height: 26px; border-radius: 8px; background: var(--ghost); }
.detail-panel.is-ghost #detailContent::after { height: 352px; margin: 14px 22px 0; background: linear-gradient(var(--ghost) 0 0) 0 0 / 45% 18px no-repeat, linear-gradient(var(--ghost) 0 0) 0 44px / 100% 220px no-repeat, linear-gradient(var(--ghost) 0 0) 0 288px / 100% 12px no-repeat, linear-gradient(var(--ghost) 0 0) 0 312px / 92% 12px no-repeat, linear-gradient(var(--ghost) 0 0) 0 336px / 70% 12px no-repeat; }
@keyframes detail-ghost-pulse { to { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .detail-panel.is-ghost .detail-ghost-title, .detail-panel.is-ghost #detailContent::after { animation: none; } }
.detail-panel > #detailContent .detail-header { position: relative; padding-right: 168px; }
.detail-address-heading { display: flex; align-items: flex-start; gap: 8px; min-width: 0; }
.eyebrow { margin: 0 0 8px; color: var(--green-dark); font-size: 12px; font-weight: 750; }
.detail-header :is(h1, h2) { flex: 1 1 auto; min-width: 0; margin: 0; font-size: 22px; line-height: 1.2; letter-spacing: -.025em; overflow-wrap: anywhere; }
.address-maps-button { flex: 0 0 auto; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 3px; margin-top: -2px; border: 1px solid var(--line-strong); border-radius: var(--control-radius); background: var(--control-surface); color: var(--green-dark); text-decoration: none; box-shadow: var(--control-shadow); }
.detail-panel > #detailContent .address-maps-button { position: absolute; top: 12px; right: 118px; margin-top: 0; }
.address-maps-button .google-maps-mark { display: block; width: 18px; height: 18px; flex: 0 0 18px; background: conic-gradient(from -20deg at 50% 38%, #ea4335 0deg, #4285f4 40deg, #4285f4 115deg, #34a853 175deg, #34a853 215deg, #fbbc04 275deg, #ea4335 325deg, #ea4335 360deg); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M12 1.5a7.6 7.6 0 0 0-7.6 7.6c0 4.7 4.4 9.6 6.5 12.4a1.4 1.4 0 0 0 2.2 0c2.1-2.8 6.5-7.7 6.5-12.4A7.6 7.6 0 0 0 12 1.5Zm0 4.2a3.4 3.4 0 1 0 0 6.8a3.4 3.4 0 1 0 0-6.8Z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M12 1.5a7.6 7.6 0 0 0-7.6 7.6c0 4.7 4.4 9.6 6.5 12.4a1.4 1.4 0 0 0 2.2 0c2.1-2.8 6.5-7.7 6.5-12.4A7.6 7.6 0 0 0 12 1.5Zm0 4.2a3.4 3.4 0 1 0 0 6.8a3.4 3.4 0 1 0 0-6.8Z'/%3E%3C/svg%3E") center / contain no-repeat; }
.address-maps-button .address-maps-arrow { width: 14px; height: 14px; flex: 0 0 14px; }
@media (hover: hover) { .address-maps-button:hover { background: var(--surface-3); color: var(--green); } }
.detail-primary-row { display: flex; align-items: end; justify-content: flex-start; gap: 18px; margin-top: 11px; white-space: nowrap; }
/* Units and status stay on one line; the row may run beneath the header actions, which sit above it. */
@media (min-width: 721px) { .detail-panel > #detailContent .detail-header:not(.address-record .detail-header) .detail-primary-row { margin-right: -146px; } }
.detail-unit-count strong, .detail-completion-status > strong { display: block; font-size: 17px; line-height: 1.1; }
.detail-record-count span, .fact-grid span { display: block; color: var(--muted); font-size: 12px; font-weight: 700; }
.detail-record-count strong { display: block; margin-top: 2px; font-size: 17px; line-height: 1.1; }
/* The history row continues the header; ID-scoped panel padding must not reopen the gap. */
.detail-header.has-record-history, .detail-panel > #detailContent .detail-header.has-record-history { padding-bottom: 0; border-bottom: 0; }
.record-history-section { padding: 0 22px; }
.record-history-section + .image-set-section { padding-top: 0; }
/* The record row sits between two full-width dividers: the summary's bottom
   edge and its own section edge. The image card below drops its top edge so
   no two lines stack. */
.record-history-section { border-bottom: 1px solid var(--line); }
.detail-summary-section:has(+ .record-history-section) { border-bottom-color: var(--line); }
.record-history-section + .image-set-section .document-card:first-of-type { border-top-color: transparent; }
html[data-theme="dark"] :is(.record-history-section, .detail-summary-section:has(+ .record-history-section)) { border-bottom-color: rgb(255 255 255 / 28%); }
.record-history summary { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; padding: 11px 0; cursor: pointer; list-style: none; }
.record-history summary::-webkit-details-marker { display: none; }
.record-history-summary { flex: 1; min-width: 0; color: var(--ink); font-size: 12px; line-height: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.record-history-chevron { flex: 0 0 auto; width: 7px; height: 7px; margin: -4px 2px 0 0; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); transition: transform var(--motion); }
.record-history[open] .record-history-chevron { margin-top: 3px; transform: rotate(-135deg); }
.record-history-list { margin: 0; padding: 2px 0 8px; list-style: none; border-top: 1px solid var(--line); }
.record-history-row { position: relative; display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; align-items: start; gap: 8px; padding: 8px 0; }
.record-history-row:not(:last-child)::after { content: ""; position: absolute; left: 4px; top: 22px; bottom: -8px; width: 1px; background: var(--line); }
.record-history-dot { width: 9px; height: 9px; margin-top: 4px; border: 1.5px solid var(--muted); border-radius: 50%; background: var(--surface); }
.record-history-row.is-completion .record-history-dot { border-color: var(--ink); background: var(--ink); }
.record-history-main { display: block; min-width: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; }
.record-history-main[data-record-history-jump], a.record-history-main { cursor: pointer; text-decoration: none; }
@media (hover: hover) { .record-history-main[data-record-history-jump]:hover .record-history-type, a.record-history-main:hover .record-history-type { text-decoration: underline; } }
.record-history-main:disabled { cursor: default; }
.record-history-type { display: block; font-size: 12px; font-weight: 700; }
.record-history-meta { display: block; margin-top: 1px; color: var(--muted); font-size: 11px; }
.record-history-id { padding-top: 1px; color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
a.record-history-id { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 2px; }
a.record-history-id:focus-visible { color: var(--ink); text-decoration-color: currentColor; }
@media (hover: hover) { a.record-history-id:hover { color: var(--ink); text-decoration-color: currentColor; } }
.record-history-status { font-weight: 700; }
.detail-completion-status.completed-recent > strong, .record-history-status.completed-recent { color: #5b21b6; }
.detail-completion-status.completed-earlier > strong, .record-history-status.completed-earlier { color: #1d4ed8; }
.detail-completion-status.under-construction > strong, .record-history-status.under-construction { color: #15803d; }
.detail-completion-status.not-completed > strong, .record-history-status.not-completed { color: #9a3412; }
html[data-theme="dark"] .detail-completion-status.under-construction > strong, html[data-theme="dark"] .record-history-status.under-construction { color: #6ee7a0; }
html[data-theme="dark"] .detail-completion-status.not-completed > strong, html[data-theme="dark"] .record-history-status.not-completed { color: #ffb76b; }
html[data-theme="dark"] .detail-completion-status.completed-earlier > strong, html[data-theme="dark"] .record-history-status.completed-earlier { color: #91b8ff; }
html[data-theme="dark"] .detail-completion-status.completed-recent > strong, html[data-theme="dark"] .record-history-status.completed-recent { color: #c6abff; }
.detail-section { padding: 18px 22px; border-bottom: 1px solid var(--line); }
.address-record-list { background: var(--surface); }
.address-record + .address-record { border-top: 1px solid var(--line-strong); }
.record-cards { border-top: 1px solid var(--line-strong); }
.record-cards-heading { margin: 0; padding: 18px 22px 0; color: var(--ink); font-size: 16px; font-weight: 800; }
/* One record reads as one block: no dividers inside it, a heavy rule between records. */
.record-cards > .address-record > :is(.detail-header, .detail-section) { border-bottom: 0; }
.record-cards > .address-record > .detail-section:not(.image-set-section) { padding-top: 0; }
.record-cards > .address-record > .detail-section.image-set-section { padding-block: 0 18px; }
.record-cards > .address-record + .address-record { border-top: 6px solid var(--line-strong); }
.image-set-section { padding-inline: 0; }
.image-set-section .document-card { border-inline: 0; border-radius: 0; }
.detail-section :is(h2, h3) { margin: 0 0 10px; font-size: 12px; }
.detail-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.detail-section-heading h3 { margin: 0; }
.detail-nearby { border-bottom: 0; }
.detail-nearby-list { display: grid; margin: 0; padding: 0; list-style: none; }
.detail-nearby-list li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.detail-nearby-list li:last-child { border-bottom: 0; }
.detail-nearby-name { display: block; color: var(--muted); font-size: 11px; font-weight: 500; }
.detail-nearby-list a { min-width: 0; color: var(--green-dark); font-size: 12px; font-weight: 700; overflow-wrap: anywhere; }
@media (hover: hover) { .detail-nearby-list a:hover { color: var(--green); } }
.detail-nearby-list span { flex: 0 0 auto; color: var(--muted); font-size: 11px; white-space: nowrap; }
.detail-assessor-link, .detail-activity-link { flex: 0 0 auto; color: var(--green-dark); font-size: 11px; font-weight: 700; line-height: 1.3; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
@media (hover: hover) { .detail-assessor-link:hover, .detail-activity-link:hover { color: var(--green); } }
.is-record-card .detail-header { padding-right: 22px; }
.detail-panel > #detailContent .is-record-card .detail-header { padding-right: 22px; }
.is-record-card .detail-header :is(h1, h2) { font-size: 16px; }
.is-record-card .detail-header h2 a { color: inherit; text-underline-offset: 3px; }
.detail-record-label { margin: 3px 0 0; color: var(--muted); font-size: 14px; }
.detail-site-summary { margin: 0; line-height: 1.5; font-weight: 600; }
.detail-site-summary a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.detail-description { margin: 0; line-height: 1.55; color: #434945; }
.fact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px; }
.fact-grid div { min-width: 0; }
.fact-grid-group { display: contents; }
.fact-grid strong { display: block; margin-top: 3px; font-size: 14px; overflow-wrap: anywhere; }
.fact-source { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.3; }
.fact-source a { color: var(--green-dark); }
.document-card { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.document-preview { position: relative; width: 100%; aspect-ratio: 16 / 10; display: grid; place-items: center; overflow: hidden; cursor: pointer; background: #000; border: 0; padding: 0; color: inherit; }
.document-preview img { width: 100%; height: 100%; object-fit: contain; }
.document-preview-image { transition: opacity var(--motion), transform var(--motion); }
@media (hover: hover) { .document-preview:hover .document-preview-image { transform: scale(1.015); } }
.document-preview-placeholder { position: absolute; inset: 0; z-index: 0; filter: blur(8px) saturate(.9); transform: scale(1.08); transition: opacity var(--motion); pointer-events: none; }
.document-preview.has-preview-placeholder .document-preview-image { position: relative; z-index: 0; opacity: 0; }
.document-preview.has-preview-placeholder.is-preview-loaded .document-preview-image { opacity: 1; }
.document-preview.has-preview-placeholder.is-preview-loaded .document-preview-placeholder { opacity: 0; }
.document-preview::after { content: ""; position: absolute; inset: auto 0 0; height: 46%; background: linear-gradient(transparent, rgb(12 20 15 / 72%)); pointer-events: none; }
.document-preview-hint { position: absolute; right: 10px; bottom: 9px; z-index: 1; display: inline-flex; align-items: center; gap: 5px; padding: 6px 8px; border: 1px solid var(--line-strong); border-radius: 8px; background: rgb(14 25 18 / 78%); color: #fff; font-size: 11px; font-weight: 750; letter-spacing: .01em; text-shadow: 0 1px 2px rgb(0 0 0 / 30%); }
.document-preview:focus-visible .document-preview-hint { background: var(--green); border-color: var(--line-strong); }
@media (hover: hover) { .document-preview:hover .document-preview-hint { background: var(--green); border-color: var(--line-strong); } }
.document-preview:focus-visible { outline: 3px solid var(--green); outline-offset: -3px; }
.mobile-inline-gallery { cursor: default; touch-action: pan-y; }
.mobile-inline-gallery.is-gallery-zoomed { touch-action: none; }
/* The image stays hit-testable so a long press opens the browser's own Copy/Save image menu. */
.mobile-inline-gallery .document-preview-image { -webkit-touch-callout: default; transform-origin: center center; user-select: none; -webkit-user-drag: none; }
.mobile-inline-gallery.is-gallery-dragging .document-preview-image { transition: none; }
.mobile-gallery-expand { position: absolute; z-index: 4; top: 10px; right: 10px; width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgb(255 255 255 / 60%); border-radius: 8px; background: rgb(17 19 18 / 76%); color: #fff; padding: 0; box-shadow: 0 2px 10px rgb(0 0 0 / 28%); font-family: Arial, sans-serif; font-size: 18px; line-height: 1; }
.mobile-gallery-expand > span { width: 1em; height: 1em; display: grid; place-items: center; line-height: 1; }
.mobile-gallery-expand:active { background: rgb(17 19 18 / 94%); }
.mobile-gallery-arrow { position: absolute; z-index: 3; top: 50%; width: 38px; height: 48px; display: grid; place-items: center; border: 1px solid rgb(255 255 255 / 60%); border-radius: 8px; background: rgb(17 19 18 / 76%); color: #fff; padding: 0; box-shadow: 0 2px 10px rgb(0 0 0 / 28%); transform: translateY(-50%); }
.mobile-gallery-arrow .chevron-icon { width: 24px; height: 24px; }
.mobile-gallery-arrow.prev { left: 10px; }
.mobile-gallery-arrow.next { right: 10px; }
.mobile-gallery-arrow:disabled { opacity: .28; pointer-events: none; }
.mobile-gallery-arrow:not(:disabled):active { background: rgb(17 19 18 / 94%); }
.mobile-gallery-counter { position: absolute; z-index: 3; right: 50%; bottom: 10px; display: inline-flex; min-width: 42px; justify-content: center; padding: 4px 7px; border: 1px solid rgb(255 255 255 / 50%); border-radius: 8px; background: rgb(17 19 18 / 74%); color: #fff; font-size: 11px; font-weight: 750; line-height: 1.1; transform: translateX(50%); }
.mobile-gallery-set-label { position: absolute; z-index: 3; top: 10px; left: 10px; max-width: calc(100% - 58px); overflow: hidden; padding: 6px 9px; border: 1px solid rgb(255 255 255 / 50%); border-radius: 8px; background: rgb(17 19 18 / 78%); color: #fff; font-size: 11px; font-weight: 750; line-height: 1.1; text-overflow: ellipsis; white-space: nowrap; }
.document-preview-fallback { color: var(--green-dark); font-size: 12px; font-weight: 700; }
.document-placeholder { padding: 28px; text-align: center; color: var(--muted); line-height: 1.45; }
.document-placeholder strong { display: block; color: var(--ink); margin-bottom: 4px; }
.document-actions { display: flex; gap: 8px; margin-top: 11px; }
.primary-button, .secondary-button { min-height: var(--control-height); display: inline-flex; align-items: center; justify-content: center; padding: 0 10px; border-radius: var(--control-radius); text-decoration: none; font-size: 11px; font-weight: 700; box-shadow: var(--control-shadow); }
.primary-button { border: 1px solid var(--line-strong); background: var(--green); color: white; }
.secondary-button { border: 1px solid var(--line-strong); background: #fff; color: var(--ink); }
@media (hover: hover) { .primary-button:hover, .secondary-button:hover { border-color: var(--line-strong); background: #f4f8f4; color: var(--green-dark); } }
@media (hover: hover) { .primary-button:hover { background: var(--green-dark); color: white; } }
.viewer { position: fixed; inset: 0; z-index: 2000; background: #000; color: #fff; }
.viewer-bar { height: 62px; display: grid; grid-template-columns: 1fr minmax(240px, auto) 1fr; align-items: center; gap: 18px; padding: 0 16px; border-bottom: 1px solid var(--line-strong); background: #111312; }
.viewer-back { width: auto; min-width: 72px; height: 36px; justify-self: start; display: inline-flex; align-items: center; justify-content: center; gap: 4px; border-color: rgb(255 255 255 / 42%); border-radius: 8px; background: transparent; color: #d6dad7; padding: 0 9px; box-shadow: none; font-size: 11px; font-weight: 700; }
@media (hover: hover) { .viewer-back:hover { border-color: #fff; background: rgb(255 255 255 / 9%); color: #fff; } }
.viewer-back .chevron-icon { width: 16px; height: 16px; margin-left: -3px; }
.viewer-back-label { line-height: 1; }
.viewer-title { min-width: 0; text-align: center; }
.viewer-title strong, .viewer-title span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.viewer-title span { margin-top: 2px; color: #939a95; font-size: 12px; }
.viewer-actions { justify-self: end; display: flex; align-items: center; gap: 12px; color: #b4bbb6; font-size: 11px; }
.viewer-zoom-controls { display: inline-flex; align-items: stretch; border: 1px solid rgb(255 255 255 / 42%); border-radius: 8px; overflow: hidden; }
.viewer-zoom-button { min-width: 30px; height: 29px; border: 0; border-right: 1px solid rgb(255 255 255 / 24%); background: transparent; color: #fff; padding: 0 7px; font-size: 14px; font-weight: 700; line-height: 1; }
.viewer-zoom-button:last-child { border-right: 0; }
@media (hover: hover) { .viewer-zoom-button:hover { background: rgb(255 255 255 / 12%); } }
.viewer-zoom-button:disabled { opacity: .35; cursor: default; }
.viewer-zoom-reset { min-width: 48px; color: #c8cfca; font-size: 11px; }
.viewer-stage { position: absolute; inset: 62px 0 0; overflow: hidden; display: flex; align-items: center; justify-content: center; padding: 20px 70px 30px; background: #000; }
.viewer-stage img { display: block; width: auto; max-width: min(1400px, 100%); max-height: calc(100vh - 104px); height: auto; object-fit: contain; background: white; box-shadow: 0 12px 40px rgb(0 0 0 / 35%); transform-origin: center center; transition: transform var(--motion); user-select: none; -webkit-user-drag: none; }
.viewer-stage.is-viewer-zoomed img { cursor: grab; }
.viewer-stage.is-viewer-dragging img { cursor: grabbing; transition: none; }
.viewer-actions .viewer-close { position: static; flex: 0 0 44px; border-color: rgb(255 255 255 / 48%); background: rgb(17 19 18 / 90%); color: #fff; }
@media (hover: hover) { .viewer-close:hover { border-color: #fff; background: rgb(17 19 18 / 98%); color: #fff; } }
.page-arrow { position: fixed; z-index: 2; top: 50%; width: 40px; height: 52px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: var(--control-radius); background: rgb(17 19 18 / 84%); color: white; padding: 0; box-shadow: 0 2px 10px rgb(0 0 0 / 22%); font-family: Arial, sans-serif; font-size: 30px; line-height: 1; }
.page-arrow .chevron-icon { width: 24px; height: 24px; }
.page-arrow:disabled { opacity: .25; cursor: default; }
.page-arrow.prev { left: 14px; }
.page-arrow.next { right: 14px; }
/* --- Optional Redfin listing sidecar --- */
.redfin-section-summary { margin-right: auto; color: #0f766e; font-size: 11px; font-weight: 750; white-space: nowrap; }
.redfin-listing-list { display: grid; gap: 13px; }
.redfin-listing-card + .redfin-listing-card { padding-top: 13px; border-top: 1px solid var(--line); }
.redfin-listing-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.redfin-listing-heading strong { color: var(--muted); font-size: 12px; font-weight: 700; }
.redfin-listing-heading span { color: var(--muted); font-size: 11px; text-align: right; }
.redfin-listing-address { margin: 3px 0 0; font-size: 14px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.redfin-listing-facts { margin: 3px 0 0; color: var(--muted); font-size: 12px; line-height: 1.35; }
.redfin-listing-link { display: inline-block; margin-top: 4px; color: var(--green-dark); font-size: 11px; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
@media (hover: hover) { .redfin-listing-link:hover { color: var(--green); } }
.project-pin.has-redfin:not(.is-selected) { box-shadow: 0 0 0 2px #0f766e, 0 2px 6px rgb(0 0 0 / 35%); }

@media (max-width: 720px) {
  .redfin-section-summary { font-size: 11px; }
  .redfin-listing-heading { align-items: flex-start; flex-direction: column; gap: 2px; }
  .redfin-listing-heading span { text-align: left; }
}
/* --- About page --- */
html.about-document, html.weekly-recap-document { min-height: 100%; height: auto; overflow-x: hidden; overflow-y: auto; }
.about-page, .weekly-recap-page { min-height: 100vh; height: auto; overflow: visible; background: var(--surface-2); }
.about-topbar, .weekly-recap-topbar { display: flex; height: auto; min-height: 58px; justify-content: space-between; }
.about-topbar .brand-block, .weekly-recap-topbar .brand-block { min-width: 0; }
.about-topbar .brand-block p, .weekly-recap-topbar .brand-block p { margin: 3px 0 0; color: #9fa7a2; font-size: 11px; }
.topbar-seo { flex: 0 1 540px; min-width: 0; margin: 0 auto 0 24px; overflow: hidden; color: #9fa7a2; font-size: 14px; line-height: 1.35; text-align: left; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
@media (max-width: 720px) { .topbar-seo { display: none; } }
.about-main { width: min(1200px, 100%); margin: 0 auto; padding: clamp(16px, 3vw, 28px) 18px 64px; }
.about-plain > p, .about-plain > ul { max-width: 90ch; }
.about-plain h1 { font-size: clamp(30px, 6vw, 42px); line-height: 1.05; letter-spacing: -.035em; }
.about-plain .about-lede { color: var(--ink); font-size: 17px; line-height: 1.55; }
.about-plain h3 { margin-top: 32px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 15px; }
.about-card { padding: clamp(22px, 5vw, 40px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.about-card h2, .about-plain h1 { margin: 0 0 18px; font-size: clamp(25px, 5vw, 34px); letter-spacing: -.03em; }
.about-card h3, .about-plain h3 { margin: 22px 0 6px; color: var(--ink); font-size: 14px; letter-spacing: .01em; }
.about-card p, .about-plain p { color: #4f5652; line-height: 1.6; }
.about-card .eyebrow { margin: 0 0 8px; color: var(--green-dark); font-size: 12px; font-weight: 750; }
.about-card a, .about-plain a, .nh-plain a { color: var(--green-dark); }
.about-defs { margin-top: 10px; }
.about-defs + h3 { margin-top: 24px; }
.about-defs tbody th { width: 11em; padding-right: 14px; color: var(--ink); font-weight: 650; }
.about-defs td { color: var(--muted); line-height: 1.5; }
.about-zones { font-size: 14px; }
.about-zones tbody th { width: 8em; padding-right: 12px; color: var(--ink); font-weight: 650; }
.about-zones td { color: var(--muted); line-height: 1.45; }
.about-zones td > a { color: inherit; text-decoration: underline dotted; text-underline-offset: 2px; }
@media (hover: hover) { .about-zones td > a:hover { color: var(--ink); } }
.about-zones tr:has(+ .about-zone-examples, + .about-zone-more, + .about-zone-note) > * { border-bottom: 0; padding-bottom: 4px; }
.about-zones .about-zone-examples td, .about-zones .about-zone-more > td { padding: 0 0 10px; }
.about-zone-more p { margin: 10px 0 0; font-size: 14px; }
.about-zones .about-zone-note td { padding: 0 0 10px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.about-zone-more table { margin-top: 10px; }
.about-zone-examples summary, .about-zone-more summary { width: max-content; color: var(--green-dark); font-size: 12px; font-weight: 600; cursor: pointer; }
.about-zone-examples ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 10px 0 4px; padding: 0; list-style: none; }
.about-zone-examples a { display: block; color: var(--ink); text-decoration: none; }
.about-zone-examples img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.about-zone-examples strong { display: block; margin-top: 6px; font-size: 14px; font-weight: 650; line-height: 1.3; }
@media (hover: hover) { .about-zone-examples a:hover strong { color: var(--green-dark); text-decoration: underline; text-underline-offset: 3px; } }
.about-zone-examples span { display: block; color: var(--muted); font-size: 12px; line-height: 1.35; }
.about-list { margin: 8px 0 0; padding-left: 18px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.about-list li + li { margin-top: 6px; }
.about-faq h4 { margin: 18px 0 2px; color: var(--ink); font-size: 14px; }
.about-faq h4 + p { margin-top: 0; }
.about-hint { margin: 18px 0 0; color: var(--muted); font-size: 14px; }
.about-empty { margin: 28px 0 0; color: var(--muted); }
.about-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 10px 0 0; color: var(--muted); font-size: 12px; }
.about-legend span { display: inline-flex; align-items: center; gap: 5px; }
.about-legend i, .nh-legend i { width: 10px; height: 10px; border-radius: 4px; }
.about-legend button { display: inline-flex; align-items: center; gap: 5px; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.about-legend button[aria-pressed="true"] { color: var(--ink); }
@media (hover: hover) { .about-legend button:hover { color: var(--ink); } }
.about-legend button[aria-pressed="true"] { font-weight: 650; }
.about-bars { display: grid; gap: 7px; margin: 12px 0 0; padding: 0; list-style: none; font-size: 14px; font-variant-numeric: tabular-nums; }
.about-bars li { display: grid; grid-template-columns: 15.5em minmax(0, 1fr) 7.5em; align-items: center; gap: 10px; }
.about-bar-label { color: var(--ink); }
/* Column charts in one row: titles and legends line up across them, and
   each chart's width follows its number of columns. */
.about-trio { display: grid; grid-template-columns: 11fr 9fr 7fr; grid-template-rows: auto auto auto; gap: 0 36px; }
.about-trio.is-pair { grid-template-columns: 11fr 6fr; }
.about-trio > div { display: grid; grid-row: span 3; grid-template-rows: subgrid; align-content: start; }
.about-trio .about-legend:empty { margin: 0; }
.about-trio .about-bars { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); grid-template-rows: auto 150px auto; gap: 4px 5px; font-size: 11px; }
.about-trio .about-bars li { display: grid; grid-row: span 3; grid-template-rows: subgrid; grid-template-columns: minmax(0, 1fr); gap: 4px 0; min-width: 0; text-align: center; }
.about-trio .about-bar-value { order: 1; align-self: end; text-align: center; line-height: 1.25; }
.about-trio .about-bar-value b { display: block; }
/* Three year charts share one row, so their columns run narrow. */
#by-type .about-trio .about-bars { column-gap: 3px; font-size: 10px; }
.about-trio .about-bar-track { order: 2; flex-direction: column-reverse; height: 150px; }
.about-trio .about-bar-track i { width: 100%; height: var(--v); border-radius: 0; }
.about-trio .about-bar-track i:last-of-type { border-radius: 4px 4px 0 0; }
.about-trio .about-bar-label { order: 3; align-self: start; line-height: 1.2; }
@media (max-width: 900px) {
  .about-trio, .about-trio.is-pair { grid-template-columns: minmax(0, 1fr); }
  .about-trio > div { display: block; }
  .about-trio > div + div { margin-top: 28px; }
  .about-trio > div:first-child .about-bars { column-gap: 3px; font-size: 10px; }
}
.about-bar-track { position: relative; display: flex; height: 14px; }
.about-bar-track i { display: block; width: var(--v); height: 100%; background: var(--completion-earlier); }
.about-bar-track i:first-of-type { border-radius: 4px 0 0 4px; }
.about-bar-track i:last-of-type { border-radius: 0 4px 4px 0; }
.about-bar-track i:only-of-type { border-radius: 4px; }
.about-range { position: absolute; top: 0; bottom: 0; border-inline: 2px solid var(--ink); background: linear-gradient(var(--ink), var(--ink)) center / 100% 2px no-repeat; }
.about-plain .about-legend i.is-range { height: 2px; border-radius: 0; background: var(--ink); }
.about-legend b { color: var(--ink); font-weight: 650; }
.about-pipeline .about-bar-track { height: 18px; }
.about-plain i.is-proposed { background: #f9a8d4; }
.about-bar-value { color: var(--muted); text-align: right; white-space: nowrap; }
.about-bar-value b { color: var(--ink); font-weight: 650; }
.about-plain i.is-permit { background: #db2777; }
.about-plain i.is-build { background: var(--completion-under-construction); }
.about-plain i.is-completed { background: var(--completion-earlier); }
.about-plain i.is-construction { background: var(--completion-under-construction); }
.about-plain i.is-permitted { background: #db2777; }
.about-plain i.is-unbuilt { background: var(--muted); }
/* Completed homes by building type, in shades of the completed blue. */
.about-plain i.is-apartment { background: var(--completion-earlier); }
.about-plain i.is-townhouse { background: #60a5fa; }
.about-plain i.is-aadu { background: #93c5fd; }
.about-plain i.is-dadu { background: #bfdbfe; }
.about-plain i.is-duplex { background: #7dd3fc; }
.about-plain i.is-house { background: #e0f2fe; }

.about-tip { position: fixed; z-index: 50; left: 0; top: 0; display: flex; flex-direction: column; gap: 1px; padding: 6px 9px; border: 1px solid var(--line); border-radius: var(--control-radius); background: var(--control-surface); box-shadow: var(--control-shadow); color: var(--ink); font-size: 12px; line-height: 1.3; white-space: nowrap; pointer-events: none; opacity: 0; transform: translate(-50%, -100%); transition: opacity var(--motion); }
.about-tip.is-visible { opacity: 1; }
.about-tip.is-touch { pointer-events: auto; }
.about-tip-map { margin-top: 6px; padding: 5px 10px; border: 1px solid var(--line); border-radius: var(--control-radius); background: var(--ink); color: var(--control-surface); font: inherit; font-weight: 650; cursor: pointer; }
.about-tip strong { font-weight: 700; }
.about-tip span { color: var(--muted); }
@media (max-width: 520px) {
  .about-bars li { grid-template-columns: 6.5em minmax(0, 1fr) 6em; gap: 8px; font-size: 12px; }
  .about-defs tbody th { width: 7.5em; padding-right: 10px; }
  .about-zones tbody th { width: 4.5em; padding-right: 8px; }
  .about-zone-examples ul { grid-template-columns: minmax(0, 1fr); }
  .about-trio .about-bars li { font-size: inherit; }
  /* Five-digit totals over eleven columns. */
  .about-trio .about-bars, .about-trio > div:first-child .about-bars, #by-type .about-trio .about-bars { column-gap: 1px; font-size: 9px; letter-spacing: -0.02em; }
}
.project-route-fallback { background: var(--surface); }
.project-route-history ol { display: grid; gap: 12px; margin: 0; padding-left: 22px; }
.project-route-history li { padding-left: 3px; }
.project-route-history li > strong, .project-route-history li > span { display: block; }
.project-route-history li > strong { color: var(--ink); font-size: 12px; }
.project-route-image img { display: block; width: 100%; max-height: 320px; object-fit: contain; border-radius: 8px; background: var(--surface-2); }
.project-route-history li > p { margin: 4px 0 0; color: var(--ink); font-size: 12px; line-height: 1.45; }
.project-route-history li > span { margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.project-route-record-links { display: flex !important; flex-wrap: wrap; gap: 8px; }
.project-route-record-links a { color: var(--green-dark); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.neighborhood-card h2 .nh-count { margin-left: 6px; color: var(--muted); font-size: 14px; font-weight: 400; letter-spacing: 0; }
.neighborhood-card .nh-lede + h2, .neighborhood-card .nh-table + h2 { margin-top: 28px; }
.weekly-recap-archive-nav { margin-top: 20px; }
:is(.neighborhood-card, .nh-hub) h1 { margin: 6px 0 0; font-size: clamp(30px, 6vw, 42px); letter-spacing: -.035em; line-height: 1.05; }
:is(.neighborhood-card, .nh-hub) .nh-crumbs { margin: 0; color: var(--muted); font-size: 14px; }
:is(.neighborhood-card, .nh-hub) .nh-crumbs a { color: inherit; }
:is(.neighborhood-card, .nh-hub) .nh-aka { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
:is(.neighborhood-card, .nh-hub) .nh-lede { max-width: 58ch; margin: 14px 0 0; color: var(--ink); font-size: 16px; line-height: 1.55; }
.nh-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 28px 0 0; }
.nh-controls[hidden] { display: none; }
.nh-controls input, .nh-controls select { width: auto; height: 34px; min-height: 34px; min-width: 0; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; }
.nh-controls input { flex: 1 1 220px; }
.nh-controls select { flex: 0 1 auto; padding-right: 26px; appearance: none; background: var(--surface) var(--chevron-icon) no-repeat right var(--chevron-right) center / var(--chevron-size); }
.about-multi { position: relative; flex: 0 1 auto; }
.about-multi summary { display: flex; align-items: center; height: 34px; padding: 0 26px 0 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface) var(--chevron-icon) no-repeat right var(--chevron-right) center / var(--chevron-size); color: var(--ink); font-size: 14px; white-space: nowrap; list-style: none; cursor: pointer; }
.about-multi summary::-webkit-details-marker { display: none; }
.about-multi-menu { position: absolute; z-index: 20; top: calc(100% + 4px); left: 0; min-width: 100%; max-height: 280px; overflow-y: auto; padding: 4px 0; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: 0 8px 24px rgb(0 0 0 / 14%); }
.about-multi-menu.is-flipped { right: 0; left: auto; }
.about-multi-menu label { display: flex; align-items: center; gap: 8px; padding: 6px 12px; font-size: 14px; white-space: nowrap; cursor: pointer; }
@media (hover: hover) { .about-multi-menu label:hover { background: var(--line); } }
.about-multi .about-multi-menu input { width: auto; height: auto; min-height: 0; flex: none; margin: 0; padding: 0; accent-color: var(--green); }
.nh-controls :focus-visible { outline: 2px solid var(--green); outline-offset: 1px; }
.nh-count:empty { display: none; }
.nh-count { margin-left: auto; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.nh-table { width: 100%; margin-top: 16px; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.nh-table th, .nh-table td { padding: 8px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: baseline; }
.nh-table th + th, .nh-table th + td, .nh-table td + td { padding-left: 14px; }
.nh-name { display: block; color: var(--muted); font-size: 12px; font-weight: 400; }
.nh-table thead th { padding-top: 0; padding-bottom: 6px; border-bottom-color: var(--ink); color: var(--muted); font-size: 12px; font-weight: 500; white-space: nowrap; }
.nh-table thead button { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.nh-table th[aria-sort] button { color: var(--ink); }
@media (hover: hover) { .nh-table thead button:hover { color: var(--ink); } }
.nh-table th[aria-sort="descending"] button::after { content: " \2193"; }
.nh-table th[aria-sort="ascending"] button::after { content: " \2191"; }
.nh-table tbody th { font-weight: 500; }
.nh-table .nh-city-row th, .nh-table .nh-city-row td, .nh-table .nh-pin-row th, .nh-table .nh-pin-row td { border-bottom-color: var(--muted); }
.nh-table tbody th a { color: var(--ink); text-decoration: none; }
@media (hover: hover) { .nh-table tbody th a:hover { color: var(--green-dark); text-decoration: underline; text-underline-offset: 3px; } }
.nh-table tr[hidden] { display: none; }
.nh-table .nh-num { text-align: right; white-space: nowrap; }
.nh-table td.nh-num { font-weight: 600; }
.nh-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:is(.neighborhood-card, .nh-hub) .nh-empty { margin: 20px 0 0; color: var(--muted); font-size: 14px; }
@media (max-width: 520px) {
  .nh-controls input, .nh-controls select { height: 40px; min-height: 40px; font-size: 16px; }
  .nh-controls input { flex-basis: 100%; }
  .nh-controls select { flex: 1 1 40%; }
  .about-multi { flex: 1 1 40%; }
  .about-multi summary { height: 40px; font-size: 16px; }
  .about-multi-menu { max-width: calc(100vw - 32px); }
  .about-multi-menu label { padding: 9px 12px; font-size: 16px; white-space: normal; }
  .nh-count { flex-basis: 100%; margin-left: 0; }
  .nh-table { font-size: 14px; }
  .nh-table th + th, .nh-table th + td, .nh-table td + td { padding-left: 10px; }
}
.nh-hub [hidden] { display: none !important; }
.nh-hub.weekly-recap-main { width: min(1360px, 100%); }
.nh-top { padding: 22px 0 16px; }
.nh-hub > .nh-chart { margin: 0 0 24px; padding: 12px 0 0; border-top: 2px solid var(--ink); }
.nh-plot { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 8px; }
.nh-plot .nh-axis { grid-column: 2; }
.nh-y { position: relative; min-width: 3ch; height: 140px; margin: 10px 0 6px; color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; text-align: right; }
.nh-y span { position: absolute; right: 0; transform: translateY(-50%); }
.nh-y span:nth-child(1) { top: 3.33%; }
.nh-y span:nth-child(2) { top: 51.67%; }
.nh-y span:nth-child(3) { top: 100%; }
.nh-plot svg { height: 140px; }
.nh-chart .nh-grid { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.nh-hub i:is(.is-applied, .is-construction, .is-completed) { display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 4px; vertical-align: baseline; }
.nh-hub i.is-applied { background: var(--completion-not-verified); }
.nh-hub i.is-construction { background: var(--completion-under-construction); }
.nh-hub i.is-completed { background: var(--completion-earlier); }
.nh-main { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); grid-template-areas: "side stage"; gap: 28px; align-items: start; margin-top: 22px; }
.nh-hub:not(.has-map) .nh-main { grid-template-columns: minmax(0, 704px); grid-template-areas: "side"; }
.nh-stage { grid-area: stage; position: sticky; top: 12px; }
.nh-side { grid-area: side; min-width: 0; }
.nh-mapbox { position: relative; height: clamp(420px, calc(100svh - 320px), 640px); overflow: hidden; border: 1px solid var(--line); border-radius: 4px; background: #f2efe9; }
.nh-canvas { width: 100%; height: 100%; }
.nh-fallback { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; }
.nh-fallback svg { width: 100%; height: 100%; }
.nh-fallback path { fill: rgb(31 41 51 / 4%); stroke: #1f2933; stroke-width: 1; stroke-linejoin: round; }
.nh-fallback circle { fill: var(--completion-not-verified); stroke: #fff; stroke-width: .6; }
.nh-fallback circle.is-recent { fill: var(--completion-recent); }
.nh-fallback circle.is-earlier { fill: var(--completion-earlier); }
.nh-mapbox.is-ready .nh-fallback { display: none; }
.nh-zoom { position: absolute; top: 10px; right: 10px; z-index: 2; display: grid; overflow: hidden; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); }
.nh-mapbox:not(.is-ready) .nh-zoom { display: none; }
.nh-zoom button { width: 32px; height: 32px; padding: 0; border: 0; background: none; color: var(--ink); font: inherit; font-size: 17px; line-height: 1; cursor: pointer; }
.nh-zoom button + button { border-top: 1px solid var(--line); }
.nh-zoom button[hidden] { display: none; }
@media (hover: hover) { .nh-zoom button:hover { background: var(--surface-2); } }
html .nh-mapbox .map-control-stack { z-index: 2; top: auto; right: auto; bottom: 10px; left: 10px; }
.nh-mapbox:not(.is-ready) .map-control-stack { display: none; }
/* Title on two lines so the legend stays narrow over the map. */
.nh-mapbox .completion-legend .construction-legend-title { max-width: 150px; }
.nh-tip { position: absolute; top: 0; left: 0; z-index: 3; width: 260px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); box-shadow: 0 6px 20px rgb(0 0 0 / 28%); color: var(--ink); pointer-events: none; }
.nh-tip p { margin: 0; }
.nh-tip .t { margin-bottom: 4px; font-size: 14px; font-weight: 700; }
.nh-tip .m { color: var(--muted); font-size: 12px; }
.nh-tip .vals { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; font-variant-numeric: tabular-nums; }
.nh-tip .vals b { font-weight: 600; }
.nh-chart-tip { width: auto; min-width: 180px; }
.nh-side > * + * { margin-top: 24px; }
.nh-hubs h2 { margin: 0 0 6px; font-size: 20px; }
.nh-hubs-scroll { max-height: 420px; overflow: auto; border-bottom: 1px solid var(--line); }
.nh-hubs .nh-table { margin: 0; font-size: 14px; }
.nh-hubs thead th { position: sticky; top: 0; z-index: 1; background: var(--surface); color: var(--muted); font-size: 11px; font-weight: 600; vertical-align: bottom; white-space: normal; }
.nh-hubs thead th.nh-num { white-space: normal; }
.nh-hubs thead i { width: 8px; height: 8px; margin-right: 4px; }
.nh-hubs tbody th { font-weight: 400; }
.nh-hubs tbody a { color: var(--ink); font-weight: 500; }
.nh-hubs tr[aria-current] th, .nh-hubs tr[aria-current] td { background: var(--surface-2); font-weight: 700; }
@media (hover: hover) { .nh-hubs tbody tr:hover th, .nh-hubs tbody tr:hover td { background: var(--surface-2); } }
.nh-view { position: absolute; top: 10px; left: 50%; z-index: 2; transform: translateX(-50%); padding: 7px 12px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); color: var(--ink); font-family: var(--sans, inherit); font-size: 14px; font-weight: 600; line-height: 1.2; text-decoration: none; white-space: nowrap; box-shadow: 0 1px 4px rgb(0 0 0 / 22%); }
.nh-view[hidden] { display: none; }
@media (hover: hover) { .nh-view:hover { background: var(--surface-2); } }
@media (min-width: 901px) {
  .nh-hub.has-map .nh-side { display: flex; flex-direction: column; height: clamp(420px, calc(100svh - 320px), 640px); }
  .nh-hub.has-map .nh-hubs { display: flex; flex: 1; flex-direction: column; min-height: 0; }
  .nh-hub.has-map .nh-hubs-scroll { flex: 1; max-height: none; min-height: 0; }
}
.nh-bottom { margin-top: 36px; }
.nh-bottom .nh-cards { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
@media (max-width: 900px) {
  .nh-main { grid-template-columns: minmax(0, 1fr); grid-template-areas: "stage" "side"; }
  .nh-stage { position: static; }
  .nh-mapbox { height: 62svh; min-height: 360px; }
}
.nh-hub .nh-controls { margin: 14px 0 0; }
.nh-chart svg { display: block; width: 100%; height: 120px; margin: 10px 0 6px; overflow: visible; }
.nh-chart rect { transition: y var(--motion), height var(--motion); }
.nh-chart .nh-hit { fill: transparent; }
.nh-chart rect.is-applied { fill: var(--completion-not-verified); }
.nh-chart rect.is-construction { fill: var(--nh-permitted); }
.nh-chart rect.is-completed { fill: var(--completion-earlier); }
.nh-chart svg.hide-applied .is-applied, .nh-chart svg.hide-construction .is-construction, .nh-chart svg.hide-completed .is-completed { display: none; }
@media (hover: hover) { .nh-chart g:hover .nh-hit { fill: color-mix(in srgb, var(--ink) 8%, transparent); } }
.nh-chart { --nh-permitted: #db2777; }
.nh-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.nh-legend button, .nh-more { padding: 0; border: 0; background: none; color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; }
.nh-plot > .nh-legend { grid-column: 1 / -1; }
.nh-legend button, .nh-legend span { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.nh-legend button[aria-pressed="false"] { color: var(--muted); }
.nh-legend button[aria-pressed="false"] i { opacity: .25; }
.nh-legend i.is-applied { background: var(--completion-not-verified); }
.nh-legend i.is-construction { background: var(--nh-permitted); }
.nh-legend i.is-building { background: var(--completion-under-construction); }
.nh-legend i.is-completed { background: var(--completion-earlier); }
.nh-legend b { font-weight: 600; font-variant-numeric: tabular-nums; }
.nh-chart:not(.is-interactive) .nh-legend button { pointer-events: none; }
.nh-axis { display: grid; grid-template-columns: repeat(var(--years), minmax(0, 1fr)); }
.nh-axis > * { padding: 0; border: 0; background: none; color: var(--muted); font: inherit; font-size: 11px; text-align: center; font-variant-numeric: tabular-nums; }
.nh-chart.is-interactive .nh-axis button, .nh-chart.is-interactive rect[data-v], .nh-chart.is-interactive g[data-ym] { cursor: pointer; }
.nh-chart g[data-ym].is-on .nh-hit { fill: color-mix(in srgb, var(--ink) 14%, transparent); }
.nh-chart:not(.is-interactive) .nh-axis button { pointer-events: none; }
.nh-axis button[aria-pressed="true"] { color: var(--ink); font-weight: 700; }
.nh-chart.is-picked rect[data-v]:not(.is-on) { opacity: .25; }
.nh-picked { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; padding: 2px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.nh-picked[hidden] { display: none; }
.nh-picked span { color: var(--muted); font-size: 14px; line-height: 1; }
@media (hover: hover) { .nh-picked:hover span { color: var(--ink); } }
.nh-hub .nh-list { margin-top: 28px; padding-left: 12px; border-left: 4px solid var(--nh-series); }
.nh-hub .nh-list h3 { position: sticky; top: 0; z-index: 1; margin: 0 0 10px; padding: 10px 0; background: var(--surface-2); color: var(--ink); font-size: 24px; font-weight: 650; letter-spacing: -.01em; text-transform: none; }
.nh-list[data-list="applied"] { --nh-series: var(--completion-not-verified); }
.nh-list[data-list="construction"] { --nh-series: var(--completion-under-construction); }
.nh-list[data-list="completed"] { --nh-series: var(--completion-earlier); }
.nh-list h3 .nh-list-count { margin-left: 8px; color: var(--muted); font-size: 14px; font-weight: 400; letter-spacing: 0; }
.nh-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; margin: 0 0 16px; }
.nh-cards .weekly-recap-card { flex-direction: column; gap: 8px; padding: 0; border-top: 0; }
.nh-hub .nh-cards .weekly-recap-thumb { width: 100%; height: auto; aspect-ratio: 3 / 2; }
/* The hub lists every site; skip layout and paint for cards off screen. */
.nh-hub .nh-cards .weekly-recap-card { content-visibility: auto; contain-intrinsic-size: auto 330px; }
.nh-hub .weekly-recap-row.nh-row { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
.nh-sentence { color: var(--ink); font-size: 14px; }
.nh-plots { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
.nh-chart polyline { fill: none; stroke-width: 2; stroke-linejoin: round; vector-effect: non-scaling-stroke; transition: all var(--motion); }
.nh-chart polyline.is-applied { stroke: var(--completion-not-verified); }
.nh-chart polyline.is-building { stroke: var(--completion-under-construction); }
.nh-chart polyline.is-completed { stroke: var(--completion-earlier); }
@media (max-width: 900px) {
  .nh-plots { grid-template-columns: minmax(0, 1fr); }
}
.nh-more { display: block; margin: 8px 0 0; color: var(--green-dark); font-weight: 600; }
.nh-hub .weekly-recap-thumb { width: 128px; height: 83px; }
.nh-hub .nh-entries .weekly-recap-row:first-child { border-top: 0; }
.nh-hub .weekly-recap-thumb img { object-fit: contain; }
@media (max-width: 720px) {
  .nh-hub .weekly-recap-row.nh-row { grid-template-columns: minmax(0, 1fr); row-gap: 2px; }
  .nh-hub .weekly-recap-row.nh-row > .nh-sentence { display: block; color: var(--muted); }
}
.about-bars [data-map] { cursor: pointer; }
/* --- Weekly recap page --- */
/* Shared with the neighborhood hubs. */
.weekly-recap-main { width: min(704px, 100%); margin: 0 auto; padding: 0 32px 40px; background: var(--surface); color: var(--ink); font-size: 15px; line-height: 1.45; }
.weekly-recap-main a { color: var(--green-dark); font-weight: 600; text-decoration: none; }
@media (hover: hover) { .weekly-recap-main a:hover { text-decoration: underline; text-underline-offset: 3px; } }
.weekly-recap-main :is(h1, h2) { font-family: "Source Serif 4", Georgia, serif; font-weight: 700; letter-spacing: 0; }
.weekly-recap-block { padding: 24px 0; border-bottom: 1px solid var(--line); }
.weekly-recap-block h2 { margin: 0 0 4px; font-size: 21px; line-height: 1.15; }
.weekly-recap-block h2 a { color: var(--ink); }
.weekly-recap-meta { display: block; margin: 0; color: var(--muted); font-size: 14px; }
.weekly-recap-all > h2 { margin: 0; padding: 30px 0 6px; border-bottom: 2px solid var(--ink); font-size: 20px; }
.weekly-recap-category { padding: 18px 0 8px; }
.weekly-recap-category h3 { margin: 0 0 6px; color: var(--green-dark); font-size: 12px; font-weight: 600; }
.weekly-recap-card { display: flex; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.weekly-recap-thumb { flex: none; width: 84px; height: 84px; overflow: hidden; border: 1px solid var(--line); border-radius: 4px; background: var(--surface-3); }
.weekly-recap-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; background: #fff; }
.weekly-recap-card > div { min-width: 0; }
.weekly-recap-main .weekly-recap-card-title { display: block; color: var(--ink); overflow-wrap: anywhere; }
.weekly-recap-main .weekly-recap-row { display: grid; grid-template-columns: minmax(0, 1fr) 150px 80px 52px; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; font-weight: 400; }
.weekly-recap-row-address { color: var(--ink); font-weight: 500; overflow-wrap: anywhere; }
.weekly-recap-empty { margin: 0; padding: 24px 0; color: var(--muted); font-size: 14px; }
@media (max-width: 720px) {
  .weekly-recap-main { padding: 0 16px 32px; }
  .weekly-recap-main .weekly-recap-row { grid-template-columns: minmax(0, 1fr) auto auto; }
  .weekly-recap-row > span:nth-child(2) { display: none; }
}

/* The recap, in the About page's frame. */
.weekly-recap-view .about-lede { margin: 0; }
.weekly-recap-status { margin: 14px 0 0; }
.weekly-recap-status:empty { display: none; }
.weekly-recap-view i[class^="is-"] { display: inline-block; flex: none; width: 10px; height: 10px; margin-right: 8px; border-radius: 4px; }
.weekly-recap-totals { margin-top: 0; }
.weekly-recap-totals th[scope="row"] { font-weight: 500; }
.weekly-recap-totals tfoot :is(th, td) { border-bottom: 0; font-weight: 500; }
.weekly-recap-lead-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 14px; }
.weekly-recap-lead { min-width: 0; }
.weekly-recap-lead-image { display: block; margin: 0 0 10px; }
.weekly-recap-lead-image img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: contain; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.weekly-recap-view .weekly-recap-label { display: flex; align-items: center; margin: 0; color: var(--muted); font-size: 12px; }
.weekly-recap-view .weekly-recap-lead-title { display: block; margin-top: 2px; color: var(--ink); font-size: 14px; font-weight: 500; text-decoration: none; overflow-wrap: anywhere; }
@media (hover: hover) { .weekly-recap-view .weekly-recap-lead-title:hover { color: var(--green-dark); text-decoration: underline; text-underline-offset: 3px; } }
.weekly-recap-view .weekly-recap-meta { margin: 2px 0 0; font-size: 12px; }
.weekly-recap-section h3 { display: flex; align-items: center; gap: 0 8px; }
.weekly-recap-section h3 .nh-count { font-weight: 400; }
.weekly-recap-section[hidden], .weekly-recap-leads[hidden] { display: none; }
.weekly-recap-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin: 10px 0 0; padding: 0; list-style: none; }
.weekly-recap-list > li { display: flex; gap: 16px; align-items: flex-start; min-width: 0; padding: 16px 0; border-top: 1px solid var(--line); }
.weekly-recap-list > li[hidden] { display: none; }
.weekly-recap-entry { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.weekly-recap-view .weekly-recap-entry-title { color: var(--ink); font-size: 14px; font-weight: 500; text-decoration: none; overflow-wrap: anywhere; }
@media (hover: hover) { .weekly-recap-view .weekly-recap-entry-title:hover { color: var(--green-dark); text-decoration: underline; text-underline-offset: 3px; } }
.weekly-recap-view .weekly-recap-thumb { width: 240px; height: 180px; border-radius: 8px; }
.weekly-recap-view .weekly-recap-thumb img { object-fit: contain; }
.weekly-recap-description { display: -webkit-box; overflow: hidden; color: var(--muted); font-size: 12px; font-weight: 400; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.weekly-recap-facts { margin-top: 4px; color: var(--muted); font-size: 12px; }
.weekly-recap-view .weekly-recap-facts a { color: var(--ink); font-weight: 400; text-decoration: underline; text-underline-offset: 3px; }
.weekly-recap-view .nh-table td { vertical-align: baseline; }
.weekly-recap-view .nh-table td.nh-num, .weekly-recap-view .nh-table thead th { font-weight: 400; }
.weekly-recap-footer { margin-top: 40px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.weekly-recap-footer a { color: var(--muted) !important; }
@media (max-width: 720px) {
  .weekly-recap-lead-row { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .weekly-recap-list { grid-template-columns: minmax(0, 1fr); }
  .weekly-recap-view .weekly-recap-thumb { width: 120px; height: 90px; }
}
@media (max-width: 520px) {
  .weekly-recap-view .nh-controls select { flex-basis: 100%; }
}
/* --- Responsive layout --- */
@media (max-width: 1000px) {
  :root { --sidebar-width: 335px; }
  .topbar { grid-template-columns: minmax(160px, 1fr) minmax(200px, 1.2fr) auto; gap: 8px; padding-inline: 10px; }
  .topbar .brand-block :is(h1, .brand-title) { font-size: 15px; }
  .topbar-actions { display: flex; gap: 6px; }
  .topbar-actions .ghost-button { padding-inline: 8px; font-size: 11px; }
  .sidebar { width: var(--sidebar-width, 335px); flex-basis: var(--sidebar-width, 335px); }
  .detail-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(var(--detail-width), calc(100% - 80px)); }
}

@media (min-width: 721px) and (max-width: 860px) {
  .topbar { grid-template-columns: minmax(120px, 1fr) minmax(160px, 1.2fr) auto; }
}

/* Narrow desktop: the panels drop to one column so the map keeps its middle. */
@media (min-width: 721px) and (max-width: 1200px) {
  :root { --sidebar-width: 230px; }
  .sidebar { width: var(--sidebar-width, 230px); flex-basis: var(--sidebar-width, 230px); }
  /* The narrow sidebar stacks the two buttons so the note keeps some width. */
  .scope-actions { flex-direction: column; }
  .sidebar .filter-grid { grid-template-columns: minmax(0, 1fr); }
  .brand-block p { display: none; }
}

@media (min-width: 721px) and (max-width: 1000px) {
  :root { --detail-width: 290px; }
  .detail-panel .fact-grid { grid-template-columns: minmax(0, 1fr); }
}


@media (min-width: 1001px) and (max-width: 1279px) {
  .topbar { grid-template-columns: minmax(250px, 1fr) minmax(240px, 1fr) auto; gap: 12px; padding-inline: 12px; }
  .topbar-actions { gap: 6px; }
  .topbar-actions .ghost-button { padding-inline: 8px; font-size: 11px; }
}

@media (max-width: 720px) {
  html, body { overflow: hidden; }
  :is(.about-page, .weekly-recap-page) { overflow: auto; }
  :is(.about-page, .weekly-recap-page) .topbar { position: static; height: auto; min-height: 58px; display: flex; padding: 9px 14px; border-bottom: 1px solid var(--line-strong); background: #111312; pointer-events: auto; }
  :is(.about-page, .weekly-recap-page) .brand-block { display: flex; gap: 8px; }
  :is(.about-page, .weekly-recap-page) .brand-logo { width: 36px; height: 36px; }
  :is(.about-page, .weekly-recap-page) .brand-block :is(h1, .brand-title) { font-size: 14px; }
  :is(.about-page, .weekly-recap-page) .brand-block p { font-size: 11px; }
  .topbar { position: fixed; inset: 0; z-index: 710; height: 0; min-height: 0; display: block; padding: 0; border: 0; background: transparent; pointer-events: none; }
  .brand-block, .topbar-actions, .topbar-home { display: none; }
  /* Redfin-style chrome: one search pill with Filters inside it on top, a
     column of round map controls on the right, and a site tab bar at the bottom. */
  :root { --mobile-bottom-control-clearance: 16px; --mobile-tabbar-space: calc(var(--mobile-bottom-control-clearance) + 62px); --mobile-chrome-top: calc(env(safe-area-inset-top, 0px) + 68px); }
  .global-search { position: fixed; z-index: 701; top: calc(env(safe-area-inset-top, 0px) + 10px); left: 10px; right: 10px; height: 48px; gap: 6px; padding: 0 90px 0 12px; pointer-events: auto; }
  .global-search input:focus-visible { box-shadow: none; }
  /* The input stays 16px so iOS does not zoom on focus; only the hint shrinks to fit. */
  .global-search input::placeholder { font-size: 15px; }
  /* The face logo keeps its top-left spot, beside the search pill. */
  body:not(.about-page, .weekly-recap-page) .topbar .brand-block { position: fixed; z-index: 702; top: calc(env(safe-area-inset-top, 0px) + 10px); left: 10px; display: block; width: 46px; height: 46px; margin-top: 1px; pointer-events: auto; }
  body:not(.about-page, .weekly-recap-page) .topbar .brand-block > div { display: none; }
  body:not(.about-page, .weekly-recap-page) .topbar .brand-logo { width: 46px; height: 46px; border-radius: 50%; box-shadow: 0 4px 14px rgb(0 0 0 / 35%); }
  body:not(.about-page, .weekly-recap-page) .global-search { left: 62px; }
  .mobile-menu-toggle { position: fixed; z-index: 702; top: calc(env(safe-area-inset-top, 0px) + 14px); right: 14px; height: 40px; display: flex; align-items: center; gap: 4px; padding: 0 8px; border: 0; border-radius: 8px; color: var(--ink); font-size: 13px; font-weight: 650; line-height: 1; pointer-events: auto; cursor: pointer; }
  .mobile-menu-toggle svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; }
  .mobile-menu-open :is(.mobile-menu-toggle, .global-search, .mobile-tabbar, .topbar .brand-block) { opacity: 0; pointer-events: none; }
  body.detail-open .mobile-tabbar { opacity: 0; pointer-events: none; }
  .mobile-tabbar { position: fixed; z-index: 705; left: 10px; right: 10px; bottom: calc(env(safe-area-inset-bottom, 0px) + var(--mobile-bottom-control-clearance) - 6px); height: 60px; display: flex; padding: 4px; border-radius: 30px; }
  .mobile-tabbar a { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border-radius: 26px; color: var(--muted); font-size: 11px; font-weight: 650; line-height: 1; text-decoration: none; }
  .mobile-tabbar a[aria-current="page"] { color: var(--ink); }
  .mobile-tabbar span { white-space: nowrap; }
  .mobile-tabbar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  :is(.about-page, .weekly-recap-page) { padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 92px); }
  :is(.about-page, .weekly-recap-page) .topbar-actions { display: none; }
  .leaflet-tooltip.census-tract-tooltip {
    width: min(350px, calc(100vw - 20px));
    max-width: calc(100vw - 20px);
    padding: 7px 8px;
    font-size: 11px;
    line-height: 1.35;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .leaflet-control-zoom { display: none !important; }
  /*
   * 100vh can describe Safari's larger layout viewport, not the visible
   * viewport between its address and bottom browser bars. Prefer the small
   * and dynamic viewport units; app.js measures any remaining occlusion for
   * browsers that do not fully apply those units.
   */
  .workspace { height: 100vh; height: 100svh; height: 100dvh; display: block; }
  /* The map root needs its own definite height before Leaflet starts, even
     when an embedded browser has not resolved the nested inset layout. JS
     then synchronizes pixel dimensions with the actual containing region. */
  #map { width: 100vw; height: 100vh; height: 100svh; height: 100dvh; }
  .map-region { position: absolute; inset: 0; z-index: 0; height: auto; min-height: 0; }
  /* Toolbar scroll (map-ui.js): the page is a little taller than the screen
     and the map stays fixed, so the first vertical swipe scrolls the page and the
     browser toolbar collapses. Until then the map lets vertical swipes through. */
  html.toolbar-scroll, html.toolbar-scroll body { height: auto; overflow: visible; overscroll-behavior: none; }
  html.toolbar-scroll body { min-height: calc(100vh + 12px); min-height: max(calc(100lvh + 12px), var(--toolbar-scroll-min, 0px)); }
  html.toolbar-scroll .workspace { position: fixed; inset: 0 0 auto; }
  /* Only the map layer stays at the tallest the screen gets (Brave's collapsed
     screen can pass 100lvh), so the bar sliding away never resizes and blanks
     it. The region and its controls still follow the visible screen. */
  html.toolbar-scroll #map { height: max(100lvh, 100dvh); }
  html.toolbar-scroll:not(.toolbar-scrolled) #map, html.toolbar-scroll:not(.toolbar-scrolled) #map * { touch-action: pan-y !important; }
  /* Once tucked (or locked after an upward swipe) a map touch never scrolls the page, even one that lands while it still coasts. */
  html.toolbar-scroll.toolbar-scrolled #map, html.toolbar-scroll.toolbar-scrolled #map * { touch-action: none !important; }
  html.toolbar-scroll.toolbar-scrolled, html.toolbar-scroll.toolbar-scrolled body { overflow: hidden; }
  /* Room past the lift point lets the coast stop short of the page end, where
     Safari would rubber-band the fixed map and snap it back. */
  html.toolbar-scroll.toolbar-scrolled body { min-height: 0; height: calc(var(--toolbar-lock-top, 0px) + 150lvh); }
  html.toolbar-scroll .sidebar { overscroll-behavior: contain; }
  .sidebar { position: fixed; inset: 0 auto 0 0; z-index: 1100; width: min(92vw, 390px); transform: translate3d(-102%, 0, 0); transition: transform var(--motion); border-right: 1px solid var(--line); border-top: 0; box-shadow: 12px 0 28px rgb(16 24 18 / 18%); overflow-y: auto; }
  /* A desktop sidebar-collapse preference must not zero out the mobile drawer. */
  .map-workspace.sidebar-collapsed .sidebar { width: min(92vw, 390px); flex-basis: auto; overflow-y: auto; border-right-color: var(--line); }
  .mobile-menu-open .sidebar, .sidebar.is-mobile-open { transform: translate3d(0, 0, 0); }
  .mobile-panel-header { position: static; min-height: 54px; display: flex; align-items: center; justify-content: space-between; padding: 8px 12px 8px 16px; border-bottom: 1px solid var(--line); background: rgb(255 255 255 / 96%); }
  .mobile-chevron { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: var(--control-radius); background: var(--control-surface); color: var(--ink); padding: 0; box-shadow: var(--control-shadow); font-family: Arial, sans-serif; font-size: 28px; font-weight: 500; line-height: .9; }
  .mobile-panel-title { display: flex; align-items: flex-start; gap: 9px; min-width: 0; }
  .mobile-panel-heading { display: grid; gap: 2px; min-width: 0; padding-top: 1px; }
  .mobile-panel-heading small { color: var(--muted); font-size: 14px; font-weight: 650; line-height: 1.25; overflow-wrap: anywhere; }
  .mobile-panel-heading .mobile-panel-subtitle { color: var(--green-dark); font-size: 11px; }
  .mobile-scrim { position: fixed; inset: 0; z-index: 1000; display: block; border: 0; background: rgb(7 12 9 / 38%); }
  .filters { flex: none; overflow: visible; padding: 12px 14px 15px; }
  .filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; overflow: visible; padding-right: 2px; }
  .filter-grid label { display: grid; }
  /* Keep iOS Safari from zooming the page when a form control receives focus. */
  input:not([type="range"]), select, textarea { font-size: 16px; }
  select, .zone-filter-button, .activity-filter-button, .advanced-filter-toggle, .redfin-filter-toggle { height: var(--control-height); min-height: var(--control-height); box-sizing: border-box; padding-top: 0; padding-bottom: 0; font-size: 16px; font-weight: var(--filter-control-weight); }
  select, .zone-filter-button, .activity-filter-button { background-position: right var(--chevron-right) center; background-size: var(--chevron-size) var(--chevron-size); }
  .filter-chevron, .zone-filter-button::after, .activity-filter-button::after { width: var(--chevron-size); height: var(--chevron-size); top: 50%; right: var(--chevron-right); }
  .filter-chevron { transform: translateY(-50%); }
  .advanced-filter-toggle[aria-expanded="true"] .filter-chevron { transform: translateY(-50%) rotate(180deg); }
  .range-text { font-size: 16px; font-weight: var(--filter-control-weight); }
  .zone-filter { position: relative; z-index: 10; }
  .zone-filter-menu { z-index: 1000; }
  .activity-picker { position: relative; z-index: 10; }
  .activity-filter-menu { z-index: 1000; }
  .zone-filter:has(.zone-filter-menu:not([hidden])), .activity-picker:has(.activity-filter-menu:not([hidden])) { z-index: 20; }
  .last-activity-filter-menu { left: 0; right: auto; width: min(260px, calc(100vw - 28px)); min-width: 0; box-sizing: border-box; }
  .sidebar-collapse-toggle { display: none; }
  /* Peeking, the sheet is a floating preview card: the clip shows only its
     image and title. Expanded, it is the full page under the status bar. */
  .detail-panel { --sheet-offset: 100%; --sheet-peek-height: 60%; --sheet-action-top: 10px; position: fixed; top: 0; right: 0; bottom: 0; left: 0; width: auto; max-height: none; z-index: 1200; overflow-y: hidden; transform: translate3d(0, var(--sheet-offset), 0); clip-path: inset(0 10px calc(100% - var(--sheet-peek-height)) 10px round 20px); transition: transform var(--motion), clip-path var(--motion); border: 0; border-radius: 0; box-shadow: none; overscroll-behavior: contain; will-change: transform; scroll-padding-bottom: calc(env(safe-area-inset-bottom, 0px) + var(--mobile-bottom-control-clearance)); }
  .detail-panel.is-sheet-expanded { --sheet-action-top: calc(env(safe-area-inset-top, 0px) + 8px); clip-path: inset(0 0 0 0 round 0); }
  /* iOS sends a tap to the card only from elements it sees as tappable. */
  .detail-panel:not(.is-sheet-expanded), .detail-panel:not(.is-sheet-expanded) .mobile-inline-gallery { cursor: pointer; }
  /* The first card opens the full page on a tap; expand lives there. */
  .detail-panel:not(.is-sheet-expanded) .mobile-gallery-expand { display: none; }
  .detail-panel.is-sheet-expanded .mobile-gallery-expand { top: auto; bottom: 10px; }
  /* The full page covers the screen, search bar included. */
  html:has(#detailPanel.is-sheet-expanded:not([hidden])) .topbar { visibility: hidden; }
  .detail-panel:not(.is-sheet-expanded) { touch-action: none; }
  .detail-panel.is-sheet-expanded { overflow-y: auto; touch-action: pan-y; -webkit-overflow-scrolling: touch; }
  .detail-panel.is-sheet-dragging, .detail-panel.is-sheet-no-transition { transition: none; }
  .detail-panel.is-sheet-dragging { cursor: grabbing; user-select: none; }
  .detail-sheet-handle { position: absolute; top: 0; left: 0; z-index: 4; width: 100%; height: 22px; display: grid; place-items: center; border: 0; background: transparent; padding: 0; cursor: grab; touch-action: none; }
  .detail-sheet-grabber { visibility: hidden; }
  .detail-sheet-handle:active { cursor: grabbing; }
  .detail-sheet-handle:focus-visible { outline: 3px solid var(--green); outline-offset: -3px; }
  .detail-sheet-grabber { width: 42px; height: 5px; border-radius: 999px; background: var(--line-strong); }
  .detail-panel .detail-close { position: fixed; top: var(--sheet-action-top); right: 20px; z-index: 5; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgb(18 22 28 / 58%); color: #fff; font-size: 24px; line-height: 1; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: top var(--motion), right var(--motion); }
  .detail-panel.is-sheet-expanded .detail-close { right: 10px; }
  .detail-panel .detail-header { padding: 4px 58px 14px 16px; }
  .detail-panel > #detailContent .address-record:not(.is-record-card) > .detail-header { padding: 14px 26px 4px; }
  .detail-panel > #detailContent .address-record:not(.is-record-card) > .detail-summary-section { padding-inline: 26px; }
  .detail-panel.is-sheet-expanded > #detailContent .address-record:not(.is-record-card) > :is(.detail-header, .detail-summary-section) { padding-inline: 16px; }
  /* The sheet peeks at a one-line title, so a long address ends in an ellipsis. */
  .detail-panel .detail-header :is(h1, h2) { font-size: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  /* Keep Google Maps on the same sheet-header baseline as the close control.
     The header starts below the 22px drag handle, so absolute positioning
     there put this control visibly lower than the fixed close button. */
  .detail-panel > #detailContent .address-maps-button { position: fixed; top: var(--sheet-action-top); right: 68px; z-index: 5; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgb(18 22 28 / 58%); color: #fff; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: top var(--motion), right var(--motion); }
  .detail-panel.is-sheet-expanded > #detailContent .address-maps-button { right: 58px; }
  /* Keep the three header facts aligned from the same top baseline on narrow
     sheets. The desktop auto margin previously pushed status onto a second
     row, while bottom alignment let the record note pull unit count down. */
  .detail-panel .detail-primary-row { width: min(calc(100vw - 32px), calc(100% + 160px)); display: grid; grid-template-columns: max-content max-content minmax(0, 1fr); align-items: start; gap: 12px; margin-top: 8px; }
  /* Sections start on the title's left edge; the image stays full width. */
  .detail-panel .detail-section:not(.image-set-section) { padding-inline: 16px; }
  .detail-panel .record-history-section { padding: 0 16px; }
  /* Match the image-to-history gap below the history row too. */
  .detail-panel .record-history-section + .detail-section { padding-top: 12px; }
  .detail-panel .record-history summary { padding-block: 7px; }
  .detail-panel .detail-completion-status { min-width: 0; margin: 0; }
  .detail-panel .detail-completion-status > strong { overflow-wrap: anywhere; }
  .detail-panel #detailContent .record-cards > .address-record:last-child > .detail-section:last-child { padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px)); }
  .detail-panel .record-cards-heading { padding-inline: 16px; }
  .detail-panel #detailContent .detail-nearby:not([hidden]) { padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px)); }
  .detail-scrim { display: none !important; }
  .image-set-section { padding-block: 0; }
  /*
   * Mobile browser navigation can overlay the layout viewport without
   * contributing to safe-area-inset-bottom. app.js raises this shared
   * 16px baseline only when VisualViewport reports additional occlusion.
   * Keep the value shared by the custom legend and Leaflet's layer picker;
   * do not replace the measured inset with a larger fixed guess.
   */
  .map-control-stack { top: auto; right: auto; bottom: calc(env(safe-area-inset-bottom, 0px) + var(--mobile-tabbar-space)); left: 10px; width: max-content; max-width: calc(100% - 20px); align-items: flex-start; }
  .map-tools { display: none; }
  /* Hide folds the legend into a Legend button; the choice is remembered. */
  .mobile-legend-hide { display: inline-block; }
  /* Title on two lines with Hide legend beside it. */
  .completion-legend .legend-head .construction-legend-title { max-width: 130px; }
  .completion-legend .mobile-legend-hide { flex-shrink: 0; }
  .map-control-stack.legend-collapsed .mobile-legend-show { display: inline-block; }
  .map-control-stack.legend-collapsed .map-legend, .map-control-stack.legend-collapsed .construction-control { display: none; }
  .map-legend { width: max-content; max-width: calc(100vw - 20px); padding: 7px 8px; }
  .weekly-recap-info-button { top: var(--mobile-chrome-top); }
  body:has(#neighborhoodFocus:not([hidden])) .weekly-recap-info-button { top: calc(var(--mobile-chrome-top) + var(--control-height) + 8px); }
  .map-neighborhood-focus { top: var(--mobile-chrome-top); left: 10px; max-width: calc(100% - 74px); }
  /* Layers sits on top and opens in place over the 3D button below it. */
  .map-basemap-control-host { top: var(--mobile-chrome-top); right: 10px; bottom: auto; flex-direction: column; align-items: flex-end; gap: 8px; padding-top: 52px; }
  .map-basemap-control-host .leaflet-control-layers { position: absolute; z-index: 2; top: 0; right: 0; }
  .map-3d-button { width: 44px; height: 44px; min-height: 44px; justify-content: center; padding: 0; border-radius: 50%; }
  /* A plain "3D" label reads better than a cube icon at this size. */
  .map-3d-button svg { display: none; }
  .map-3d-button::after { content: "3D"; font-size: 15px; font-weight: 700; letter-spacing: 0.02em; line-height: 1; }
  .map-3d-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  #map3d .maplibregl-ctrl-bottom-right { right: 10px; bottom: calc(env(safe-area-inset-bottom, 0px) + var(--mobile-tabbar-space) + 140px); }
  .map-basemap-control-host > * { margin: 0 !important; }
  .map-basemap-control-host .leaflet-control-layers:not(.leaflet-control-layers-expanded) { width: 38px; height: 38px; border-radius: 50%; }
  .map-basemap-control-host .leaflet-control-layers-toggle { width: 38px; height: 38px; border-radius: 50%; background: #fff !important; box-shadow: 0 1px 4px rgb(60 64 67 / 30%); }
  .map-layer-thumbnail { display: none; }
  .map-layers-glyph { inset: auto; top: 50%; left: 50%; width: 21px; height: 21px; transform: translate(-50%, -50%); border: 0; border-radius: 0; background: transparent; box-shadow: none; color: #5f6368; }
  /* Center the stacked mark's rendered ink, not just its SVG box. */
  .map-layers-glyph svg { width: 21px; height: 21px; transform: translate(-1px, -.1px); }
  .map-layers-label { display: none; }
  html[data-theme="dark"] .map-basemap-control-host .leaflet-control-layers-toggle { background: var(--control-surface) !important; box-shadow: 0 1px 4px rgb(0 0 0 / 48%); }
  html[data-theme="dark"] .map-basemap-control-host .map-layers-glyph { color: #d8e0e5; }
  .leaflet-control-layers-expanded { padding: 5px 7px; }
  .map-layers-collapse-button { width: calc(100% + 14px); height: 28px; display: none; align-items: center; justify-content: flex-end; margin: -5px -7px 5px; padding: 0 7px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; }
  .leaflet-control-layers-expanded .map-layers-collapse-button { display: flex; }
  @media (hover: hover) { .map-layers-collapse-button:hover { background: var(--surface-3); color: var(--ink); } }
  .map-layers-collapse-button:focus-visible { outline: 0; box-shadow: var(--control-focus); }
  .map-layers-collapse-button svg { width: 18px; height: 18px; display: block; fill: currentColor; }
  .leaflet-control-layers-base label { font-size: 11px; }
  .mobile-menu-open .map-region { pointer-events: none; }
  .viewer-bar { height: 64px; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; padding: 6px 8px; }
  .viewer-back { display: none; }
  .viewer-title { grid-row: auto; grid-column: auto; min-width: 0; text-align: center; padding: 0 3px; }
  .viewer-title strong { font-size: 12px; }
  .viewer-title span { font-size: 11px; }
  .viewer-actions { min-width: 0; gap: 4px; font-size: 11px; }
  .viewer-stage { inset-block-start: 64px; overflow: hidden; padding: 8px 0 24px; background: #000; }
  .viewer-stage img { width: auto; max-width: 100vw; max-height: calc(100vh - 88px); height: auto; object-fit: contain; box-shadow: none; }
  .viewer-actions .viewer-close { flex: 0 0 44px; }
  .viewer-actions .ghost-button { display: none; }
  .viewer-zoom-controls { display: none; }
  .page-arrow { width: 36px; height: 50px; }
  .page-arrow.prev { left: 4px; }
  .page-arrow.next { right: 4px; }
}

/* Phones too narrow for the two-line note beside both buttons put the buttons in a row under it. */
@media (max-width: 409px) {
  .filter-scope { flex-wrap: wrap; gap: 8px; }
  .filter-scope-note { flex-basis: 100%; }
  .scope-actions { flex: 1 1 100%; gap: 8px; }
  .scope-button { flex: 1 1 0; }
}

@media (max-width: 360px) {
  .mobile-tabbar a { flex: 1 1 auto; }
}
/* --- Dark theme --- */
html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #edf1f4;
  --muted: #a5afb8;
  --line: #424943;
  --surface: #111312;
  --surface-2: #111312;
  --surface-3: #1b201d;
  --green: #8fa7b7;
  --green-dark: #c0ced7;
  --control-surface: #111312;
  --control-shadow: 0 2px 10px rgb(0 0 0 / 27%);
  --control-focus: 0 0 0 3px rgb(143 167 183 / 30%);
  --shadow: 0 14px 40px rgb(0 0 0 / 38%);
  --wash: #1c211e;
}

html[data-theme="dark"] .view-tab.is-active { color: #172027; }

html[data-theme="dark"] .global-search { border-color: var(--line-strong); background: #111312; }
html[data-theme="dark"] .global-search:focus-within { border-color: var(--line-strong); box-shadow: 0 0 0 3px rgb(66 73 67 / 28%); }
html[data-theme="dark"] .global-search svg { stroke: #adb7c0; }
html[data-theme="dark"] .global-search input::placeholder { color: #a5afb8; }

html[data-theme="dark"] body,
html[data-theme="dark"] .sidebar,
html[data-theme="dark"] .detail-panel { background: var(--surface); color: var(--ink); }
html[data-theme="dark"] .fact-source a { color: var(--green-dark); }
html[data-theme="dark"] .detail-description { color: var(--muted); }
html[data-theme="dark"] select,
html[data-theme="dark"] .range-text,
html[data-theme="dark"] .zone-filter-menu,
html[data-theme="dark"] .activity-filter-menu,
html[data-theme="dark"] .secondary-button { background-color: var(--control-surface); color: var(--ink); }
/* Native popup lists cannot inherit a translucent field background. */
html[data-theme="dark"] select option,
html[data-theme="dark"] select optgroup { background-color: #1c222a; color: #edf1f4; }
@media (hover: hover) {
html[data-theme="dark"] .zone-check:hover,
html[data-theme="dark"] .activity-filter-item:hover,
html[data-theme="dark"] .advanced-filter-toggle:hover,
html[data-theme="dark"] .map-tool:hover,
html[data-theme="dark"] .completion-legend-item:hover,
html[data-theme="dark"] .ghost-button:hover,
html[data-theme="dark"] .leaflet-control-zoom a:hover { background-color: #1c211e; color: var(--ink); }
}
html[data-theme="dark"] .completion-legend-item[aria-pressed="true"] .completion-check { border-color: var(--green); background: var(--green); color: #fff; }
html[data-theme="dark"] .completion-legend-item[aria-pressed="false"] .completion-check { border-color: var(--line-strong); background: transparent; }
html[data-theme="dark"] .activity-filter-item[aria-pressed="true"] .completion-check { border-color: var(--green); background: var(--green); color: #fff; }
html[data-theme="dark"] .activity-filter-item[aria-pressed="false"] .completion-check { border-color: var(--line-strong); background: transparent; }
html[data-theme="dark"] #map { background: #171b20; }
html[data-theme="dark"] .map-fallback { background: linear-gradient(145deg, #252c33, #171b20); }
html[data-theme="dark"] .detail-panel { box-shadow: 0 10px 30px rgb(0 0 0 / 40%); }
html[data-theme="dark"] .document-preview { background: #30363d; }
html[data-theme="dark"] .document-placeholder strong { color: var(--ink); }
html[data-theme="dark"] .mobile-panel-header { background: #111312; }
html[data-theme="dark"] .mobile-menu-toggle { background: #111312; }
html[data-theme="dark"] :is(.about-card, .about-plain) p { color: var(--muted); }
/* Desktop glass uses one backdrop per surface, with unblurred inner controls. */
@media (min-width: 721px) {
  :root {
    --desktop-glass: rgb(249 252 255 / 62%);
    --desktop-edge: rgb(255 255 255 / 76%);
    --desktop-highlight: rgb(255 255 255 / 65%);
    --desktop-field: rgb(255 255 255 / 38%);
    --desktop-canvas: #e5edf4;
    --control-radius: 8px;
    --desktop-shadow: inset 0 1px 0 var(--desktop-highlight), 0 8px 28px rgb(25 42 62 / 13%);
  }
  html[data-theme="dark"] {
    --muted: #d2dce5;
    --desktop-glass: rgb(28 34 42 / 68%);
    --desktop-edge: rgb(222 239 229 / 22%);
    --desktop-highlight: rgb(255 255 255 / 12%);
    --desktop-field: rgb(255 255 255 / 7%);
    --desktop-canvas: #121923;
    --desktop-shadow: inset 0 1px 0 var(--desktop-highlight), 0 8px 28px rgb(0 0 0 / 24%);
  }
  body { background: linear-gradient(135deg, var(--desktop-canvas), var(--surface-2)); }
  html:root :is(.topbar, .sidebar, .detail-panel, .viewer-bar,
    .leaflet-control-layers,
    .leaflet-control-zoom) {
    background: var(--surface);
    color: var(--ink);
    border-color: var(--desktop-edge);
    box-shadow: var(--desktop-shadow);
  }
  html:root .topbar { border-radius: 0; }
  /* The basemap must continue behind the sheets for backdrop blur to sample it. */
  .map-workspace > .map-region { position: absolute; inset: 0; }
  html:root .sidebar { position: absolute; top: 0; bottom: 0; left: 0; border-right: 1px solid var(--desktop-edge); border-radius: 0; }
  html[data-theme="dark"] :is(.sidebar, .detail-panel) { --desktop-glass: rgb(28 34 42 / 90%); }
  html:root .detail-panel { position: absolute; top: 0; bottom: 0; right: 0; border-left: 1px solid var(--desktop-edge); border-radius: 0; }
  .map-workspace.sidebar-collapsed .sidebar { visibility: hidden; }
  .map-workspace:not(.sidebar-collapsed) .sidebar-collapse-toggle { left: calc(var(--sidebar-width, 374px) - 13px); }
  .map-control-stack { left: calc(var(--sidebar-width, 374px) + 12px); }
  .map-neighborhood-focus { left: calc(var(--sidebar-width, 374px) + 12px); }
  .map-region .leaflet-top.leaflet-left { left: var(--sidebar-width, 374px); }
  body.detail-open .map-basemap-control-host { right: calc(var(--detail-width) + 10px); }
  .view-tab { border-radius: 12px; }
  html:root .brand-block p { color: var(--muted); }
  html:root .global-search { background: var(--desktop-field); border-color: var(--desktop-edge); border-radius: 12px; box-shadow: inset 0 1px 0 var(--desktop-highlight); }
  html:root .global-search input { color: var(--ink); }
  html:root .global-search input::placeholder { color: var(--muted); }
  html:root .range-text::placeholder { color: var(--muted); opacity: 1; }
  html:root .global-search svg { stroke: var(--muted); }
  html:root :is(.sidebar, .topbar) :is(select, .range-text,
    .zone-filter-button, .activity-filter-button, .advanced-filter-toggle, .redfin-filter-toggle, .ghost-button, .map-tool) {
    background: var(--desktop-field); border-color: var(--line); box-shadow: inset 0 1px 0 var(--desktop-highlight); color: var(--ink);
  }
  html:root .topbar .ghost-button.is-active { background: var(--green); color: #fff; }
  html:root :is(.zone-filter-menu, .activity-filter-menu) { background: var(--surface); border-radius: 12px; }
  html:root .detail-panel .address-record-list { background: transparent; }
  html:root :is(.about-page, .weekly-recap-page) { background: linear-gradient(135deg, var(--desktop-canvas), var(--surface-2)); }
  html:root :is(.about-card) {
    background: var(--desktop-glass); border-color: var(--desktop-edge); border-radius: 12px; box-shadow: var(--desktop-shadow);
  }
  @supports ((backdrop-filter: blur(16px)) or (-webkit-backdrop-filter: blur(16px))) {
    html:root :is(.topbar, .sidebar, .detail-panel, .viewer-bar,
      .leaflet-control-layers,
      .leaflet-control-zoom) {
      background: linear-gradient(135deg, var(--desktop-highlight), transparent 42%), var(--desktop-glass);
      -webkit-backdrop-filter: blur(20px) saturate(165%);
      backdrop-filter: blur(20px) saturate(165%);
    }
    html:root .leaflet-control-zoom a { background: transparent; }
  }
  /* Desktop glass is explicitly requested even when Windows disables transparency.
     High-contrast mode still uses opaque system-friendly surfaces. */
  @media (forced-colors: active) {
    html:root { --desktop-glass: var(--surface); --desktop-field: var(--surface); }
    html:root :is(.topbar, .sidebar, .detail-panel, .viewer-bar,
      .leaflet-control-layers,
      .leaflet-control-zoom) {
      background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none;
    }
  }
}

/* Mobile glass sheets: one backdrop per drawer, never per field or record.
   Opaque defaults also cover browsers without backdrop-filter support. */
@media (max-width: 720px) {
  :root {
    --control-height: 44px;
    --control-radius: 8px;
    --radius: 12px;
    --mobile-glass: rgb(250 253 255 / 88%);
    --mobile-field: rgb(255 255 255 / 70%);
    --mobile-canvas: #e9eff5;
    --mobile-shadow: inset 0 1px 0 rgb(255 255 255 / 65%), 0 4px 16px rgb(25 42 62 / 14%);
    --drawer-glass: rgb(249 252 250 / 87%);
    --drawer-edge: rgb(255 255 255 / 78%);
    --drawer-highlight: rgb(255 255 255 / 42%);
  }
  html[data-theme="dark"] {
    --mobile-glass: rgb(28 34 42 / 91%);
    --mobile-field: rgb(255 255 255 / 7%);
    --mobile-canvas: #121923;
    --mobile-shadow: inset 0 1px 0 rgb(255 255 255 / 13%), 0 4px 16px rgb(0 0 0 / 24%);
    --drawer-glass: rgb(20 25 23 / 89%);
    --drawer-edge: rgb(222 239 229 / 22%);
    --drawer-highlight: rgb(255 255 255 / 9%);
  }
  html:root .sidebar, html:root .detail-panel {
    background: var(--surface);
    border-color: var(--drawer-edge);
    box-shadow: inset 0 1px 0 var(--drawer-highlight), 0 12px 36px rgb(0 0 0 / 23%);
  }
  html:root .sidebar { border-radius: 0 12px 12px 0; }
  html:root .detail-panel { border-radius: 0; box-shadow: none; }
  .detail-panel .address-record-list { background: transparent; }
  html:root .mobile-panel-header, html:root .detail-sheet-handle { background: transparent; }
  html[data-theme="dark"] .mobile-panel-header { background: transparent; }
  /* The map remains the canvas. Glass belongs to floating chrome, not tiles,
     markers, chart contents, or hundreds of individually blurred rows. */
  html:root :is(.global-search, .mobile-tabbar, .map-3d-button, .leaflet-control-layers,
    .viewer-bar, .map-legend, .mobile-legend-show) {
    background: var(--mobile-glass);
    color: var(--ink);
    border: 1px solid var(--drawer-edge);
    box-shadow: var(--mobile-shadow);
    border-radius: 12px;
  }
  html:root .global-search { opacity: 1; border-radius: 24px; }
  html:root .mobile-tabbar { border-radius: 30px; }
  html:root :is(.map-3d-button, .map-basemap-control-host .leaflet-control-layers:not(.leaflet-control-layers-expanded)) { border-radius: 50%; }
  html:root .global-search input { color: var(--ink); }
  html:root .global-search input::placeholder { color: var(--muted); }
  html:root .global-search svg { stroke: var(--muted); }
  html:root .mobile-menu-toggle { background: var(--mobile-field); border-radius: 20px; box-shadow: inset 0 0 0 1px var(--line); }
  html:root .mobile-menu-open .global-search { opacity: 0; }
  html:root .map-basemap-control-host .leaflet-control-layers-toggle {
    width: 44px; height: 44px; background: transparent !important; box-shadow: none;
  }
  html:root .map-basemap-control-host .leaflet-control-layers:not(.leaflet-control-layers-expanded) {
    width: 44px; height: 44px;
  }
  .leaflet-control-layers-expanded { padding: 9px 12px; }
  .leaflet-control-layers-base label, .leaflet-control-layers-overlays label { min-height: 44px; font-size: 14px; }
  .map-layers-collapse-button { min-height: 40px; width: 100%; margin: -5px 0 4px; padding: 0; }
  @media (hover: hover) { html:root .map-layers-collapse-button:hover { border-radius: 12px; background: var(--mobile-field); } }
  html:root :is(.sidebar, .map-basemap-control-host) :is(select, .range-text, .zone-filter-button,
    .activity-filter-button, .advanced-filter-toggle, .redfin-filter-toggle, .map-tool) {
    background-color: var(--mobile-field); border-color: var(--line); box-shadow: none;
  }
  /* These actions sit directly over the basemap. Keep their surface opaque
     enough for dark-theme text to remain readable over light map tiles. */
  html:root .map-neighborhood-focus {
    background: var(--mobile-glass);
    border-color: var(--drawer-edge);
    box-shadow: var(--mobile-shadow);
  }
  html:root .sidebar .weekly-recap-button.is-active { background: var(--green); color: var(--surface); }
  .filter-grid { gap: 12px 9px; }
  .mobile-chevron, .icon-button { border-radius: 50%; }
  .mobile-chevron { width: 44px; height: 44px; }
  .detail-panel .detail-header { padding-bottom: 18px; }
  .detail-panel .detail-section { padding-block: 20px; }
  .detail-panel .image-set-section { padding-block: 0; }
  .detail-panel .image-set-section .document-card { border: 0; }
  .detail-panel .detail-header:has(+ .detail-summary-section) { padding-bottom: 6px; border-bottom: 0; }
  .detail-panel .detail-section.detail-summary-section { padding-block: 0 12px; }
  .detail-description { font-size: 16px; }
  .fact-grid { gap: 18px 14px; }
  .fact-grid span { font-size: 11px; }
  .fact-grid strong { font-size: 14px; }
  html:root :is(.about-page, .weekly-recap-page) {
    background: linear-gradient(155deg, var(--mobile-canvas), var(--surface-2));
  }
  html:root :is(.about-card) {
    background: var(--mobile-glass); border-color: var(--drawer-edge);
    border-radius: 12px; box-shadow: var(--mobile-shadow);
  }
  .about-main { padding: 20px 12px 40px; }
  .about-card { padding: 24px 20px; }
  :is(.about-card, .about-plain) p { font-size: 16px; }
  html:root .about-topbar { border-radius: 0 0 12px 12px; background: var(--mobile-glass); color: var(--ink); border-color: var(--drawer-edge); box-shadow: var(--mobile-shadow); }
  .about-topbar .ghost-button { color: var(--ink); border-radius: 12px; min-height: 44px; display: inline-flex; align-items: center; }
  html:root .viewer-bar { border-radius: 0 0 12px 12px; }
  .viewer-title strong { font-size: 14px; }
  .viewer-title span, .viewer-actions { font-size: 12px; }
  .viewer-title span, .viewer-actions { color: var(--ink); }
  .page-arrow { width: 44px; height: 54px; border-radius: 12px; }
  :is(button, a, input, select) { -webkit-tap-highlight-color: transparent; }
  :is(button, a):focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
  .mobile-scrim { background: rgb(7 12 9 / 24%); }
  @supports ((backdrop-filter: blur(12px)) or (-webkit-backdrop-filter: blur(12px))) {
    html:root :is(.global-search, .mobile-tabbar, .map-3d-button, .leaflet-control-layers, .viewer-bar, .map-legend, .mobile-legend-show) {
      -webkit-backdrop-filter: blur(12px) saturate(125%);
      backdrop-filter: blur(12px) saturate(125%);
    }
    html:root .sidebar, html:root .detail-panel,
    html[data-theme="dark"] .sidebar, html[data-theme="dark"] .detail-panel {
      background: linear-gradient(135deg, var(--drawer-highlight), transparent 38%), var(--drawer-glass);
      -webkit-backdrop-filter: blur(12px) saturate(125%);
      backdrop-filter: blur(12px) saturate(125%);
    }
  }
  @media (prefers-reduced-transparency: reduce), (forced-colors: active) {
    :root, html[data-theme="dark"] { --mobile-glass: var(--surface); --mobile-field: var(--surface); }
    html:root :is(.global-search, .mobile-tabbar, .map-3d-button, .leaflet-control-layers, .viewer-bar, .map-legend, .mobile-legend-show) {
      -webkit-backdrop-filter: none; backdrop-filter: none;
    }
    html:root .sidebar, html:root .detail-panel,
    html[data-theme="dark"] .sidebar, html[data-theme="dark"] .detail-panel {
      background: var(--surface);
      -webkit-backdrop-filter: none;
      backdrop-filter: none;
    }
  }
  @media (prefers-reduced-motion: reduce) {
    .sidebar, .detail-panel { transition: none; }
  }
}
/* NR middle-housing fork: the mix legend replaces the filter controls. */
.filters > :not(.nr-legend), .topbar-actions > :not(#mapResetButton), .mobile-view-tabs,
#mapCompletionFilterMenu, #mobileMapActions, .mobile-map-action-controls, #mobileScopeToast { display: none !important; }
.nr-legend { font-variant-numeric: tabular-nums; }
.nr-head { display: flex; gap: 6px; align-items: center; margin-bottom: 8px; }
.nr-all, .nr-theme { white-space: nowrap; flex: none; }
#nrHb, #nrStack { flex: 1; min-width: 0; height: auto; min-height: 0; padding: 4px 6px; }
.nr-all, .nr-theme { border: 1px solid var(--line, #d8dcd9); background: none; color: inherit; border-radius: 6px;
  padding: 4px 10px; font: inherit; font-size: 12px; cursor: pointer; }
.nr-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.nr-table th { text-align: right; font-weight: 500; opacity: .65; font-size: 12px; padding: 0 0 4px; }
.nr-table th:first-child { text-align: left; }
.nr-table td { padding: 3px 0; }
.nr-table td.n { text-align: right; width: 56px; padding-left: 8px; opacity: .8; }
.nr-table tr.row { cursor: pointer; }
.nr-table tr.off td { opacity: .38; }
.nr-table tr.sub td { font-size: 12px; padding: 2px 0; }
.nr-table tr.sub td:first-child { padding-left: 18px; }
.nr-table tfoot td { border-top: 1px solid var(--line, #d8dcd9); padding-top: 5px; font-weight: 600; }
.nr-sw { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; vertical-align: -1px; }
.nr-chev { border: 0; background: none; color: inherit; opacity: .7; cursor: pointer; padding: 0 6px; margin-left: 2px;
  font: inherit; font-size: 20px; line-height: 1; vertical-align: -2px; }
.nr-chev:hover { opacity: 1; }
.nr-cb { margin: 0 6px 0 0; vertical-align: -2px; cursor: pointer; }
.nr-stage-table { margin-bottom: 12px; }
.nr-other-toggle { border: 0; background: none; color: inherit; opacity: .65; cursor: pointer; padding: 0; font: inherit; text-decoration: underline; text-underline-offset: 2px; }
.nr-other-toggle:hover { opacity: 1; }
.nr-table tr.part td:first-child { opacity: .7; }
.nr-check { display: flex; align-items: center; gap: 6px; font-size: 12px; margin-bottom: 8px; cursor: pointer; }
.project-pin.nr-units-0 { background: #a8a7a0; }
:root[data-theme="dark"] .project-pin.nr-units-0 { background: #6f6e68; }
.project-pin.nr-units-1 { background: #173f80; }
:root[data-theme="dark"] .project-pin.nr-units-1 { background: #2a68cc; }
.project-pin.nr-units-2 { background: #3a86cc; }
:root[data-theme="dark"] .project-pin.nr-units-2 { background: #5ca0ee; }
.project-pin.nr-units-3 { background: #9ccaf0; }
:root[data-theme="dark"] .project-pin.nr-units-3 { background: #acd4f7; }
.project-pin.nr-units-4 { background: #f7ae94; }
:root[data-theme="dark"] .project-pin.nr-units-4 { background: #f9ad92; }
.project-pin.nr-units-5 { background: #e0573a; }
:root[data-theme="dark"] .project-pin.nr-units-5 { background: #ea6a48; }
.project-pin.nr-units-6 { background: #a3122b; }
:root[data-theme="dark"] .project-pin.nr-units-6 { background: #b8142c; }
