:root {
  --surface: #fcfcfb; --ink: #0b0b0b; --ink-2: #52514e; --muted: #898781; --hairline: #e1e0d9;
  --series: #2a78d6; --accent: #1f5fae; --card: #ffffff; --tint: #eef4fc;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --surface: #1a1a19; --ink: #f0efec; --ink-2: #c3c2b7; --hairline: #2c2c2a; --series: #5d9be6;
          --accent: #8db9f0; --card: #222221; --tint: #24364d; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--surface); color: var(--ink);
       font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
main, .site-header, .site-footer { max-width: 64rem; margin: 0 auto; padding: 0 1rem; }
.site-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem 1rem;
               padding-top: .9rem; padding-bottom: .9rem; border-bottom: 1px solid var(--hairline); }
.site-header nav { display: flex; flex-wrap: wrap; gap: 1rem; font-size: .95rem; }
.site-name { font-weight: 650; color: var(--ink); }
h1 { font-size: 2rem; line-height: 1.2; margin: .4rem 0 1rem; }
h2 { font-size: 1.25rem; margin: 2rem 0 .75rem; }
.hero h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); line-height: 1.15; margin: 2rem 0 .75rem; max-width: 22ch; }
.hero p { color: var(--ink-2); font-size: 1.1rem; max-width: 60ch; margin: 0 0 1.5rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1rem; }
.card { display: block; background: var(--card); border: 1px solid var(--hairline); border-radius: 12px; padding: 1.25rem;
        color: var(--ink); transition: box-shadow .15s; }
.card:hover { box-shadow: 0 4px 16px rgba(0, 0, 0, .08); text-decoration: none; }
.card h2 { margin: 0 0 .25rem; font-size: 1.25rem; }
.big { font-size: 2.75rem; font-weight: 700; line-height: 1; margin: .5rem 0 .25rem; }
.big span { font-size: 1.1rem; font-weight: 500; color: var(--ink-2); }
.sub { color: var(--ink-2); margin: 0 0 .5rem; }
.cta { display: inline-block; margin-top: .5rem; font-weight: 600; color: var(--accent); }
.crumb { margin: 1.25rem 0 0; font-size: .9rem; }
.summary { display: grid; grid-template-columns: 1fr 1.3fr; gap: 1rem; }
@media (max-width: 44rem) { .summary { grid-template-columns: 1fr; } }
.panel { background: var(--card); border: 1px solid var(--hairline); border-radius: 12px; padding: 1.25rem; }
.panel-title { font-size: 1rem; margin: 0 0 .5rem; }
.rule { color: var(--ink-2); margin: 0 0 .6rem; font-size: .95rem; }
.actions { display: flex; flex-wrap: wrap; gap: .5rem; margin: .75rem 0 0; }
.button { display: inline-block; padding: .5rem .9rem; border-radius: 8px; background: var(--accent); color: var(--surface);
          font-weight: 600; }
.button:hover { text-decoration: none; }
.button.ghost { background: none; color: var(--accent); border: 1px solid var(--hairline); }
.bars { display: grid; gap: .35rem; }
.bar-row { display: grid; grid-template-columns: minmax(10rem, 15rem) 1fr 3rem; align-items: center; gap: .75rem;
           color: var(--ink); padding: .2rem 0; }
.bar-row:hover { text-decoration: none; }
.bar-track { height: 14px; }
.bar { display: block; height: 14px; min-width: 3px; background: var(--series); border-radius: 0 4px 4px 0; }
.bar-value { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
@media (max-width: 35rem) { .bar-row { grid-template-columns: 1fr 2.5rem; } .bar-track { grid-column: 1 / -1; order: 3; } }
.map { width: 100%; height: 60vh; min-height: 20rem; border-radius: 12px; border: 1px solid var(--hairline); }
.dot-marker { width: 14px; height: 14px; border-radius: 50%; background: var(--series); border: 2px solid var(--surface);
              cursor: pointer; padding: 0; }
.group { background: var(--card); border: 1px solid var(--hairline); border-radius: 12px; margin: .6rem 0; padding: 0 1rem; }
.group summary { display: flex; justify-content: space-between; align-items: center; padding: .9rem 0; cursor: pointer;
                 font-weight: 600; list-style: none; }
.group summary::-webkit-details-marker { display: none; }
.count { background: var(--tint); color: var(--accent); border-radius: 999px; padding: 0 .65rem;
         font-variant-numeric: tabular-nums; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; margin-bottom: .5rem; }
th { text-align: left; font-weight: 600; color: var(--muted); font-size: .8rem; border-bottom: 1px solid var(--hairline);
     padding: .4rem .5rem .4rem 0; }
td { padding: .5rem .5rem .5rem 0; border-bottom: 1px solid var(--hairline); }
.num { text-align: right; }
.mono { font-family: ui-monospace, Menlo, monospace; font-size: .9rem; }
.show-all { font: inherit; color: var(--accent); background: none; border: 0; padding: .5rem 0 1rem; cursor: pointer; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.method { margin-top: 2rem; color: var(--ink-2); }
.method summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.lead { color: var(--ink-2); }
.report { display: grid; gap: .4rem; max-width: 34rem; }
.report input, .report textarea { font: inherit; padding: .5rem; border: 1px solid var(--muted); border-radius: 6px;
                                  background: var(--card); color: var(--ink); }
.report button { justify-self: start; margin-top: .75rem; font: inherit; padding: .45rem 1.2rem; border-radius: 6px;
                 border: 0; background: var(--accent); color: var(--surface); }
.hidden-field { position: absolute; left: -10000px; }
.site-footer { margin-top: 3rem; padding-top: 1rem; padding-bottom: 2rem; border-top: 1px solid var(--hairline);
               color: var(--muted); font-size: .9rem; }
.site-footer p { margin: .25rem 0; }
.map .maplibregl-popup-content { background: var(--card); color: var(--ink); font-size: .95rem; }
.map .maplibregl-popup-content p { margin: 0 0 .4rem; padding-right: 1rem; }
.map [class*="anchor-top"] .maplibregl-popup-tip { border-bottom-color: var(--card); }
.map [class*="anchor-bottom"] .maplibregl-popup-tip { border-top-color: var(--card); }
.map .maplibregl-popup-anchor-left .maplibregl-popup-tip { border-right-color: var(--card); }
.map .maplibregl-popup-anchor-right .maplibregl-popup-tip { border-left-color: var(--card); }
.map .maplibregl-popup-close-button { color: var(--ink-2); font-size: 1.2rem; padding: 0 .4rem; }
.trend { width: 100%; max-width: 28rem; height: auto; display: block; margin: .25rem 0 .5rem; }
.trend .grid { stroke: var(--hairline); stroke-width: 1; }
.trend .axis { fill: var(--muted); font-size: 15px; }
.trend .value { fill: var(--ink); font-size: 16px; font-weight: 700; }
.trend .series { fill: none; stroke: var(--series); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.trend .dot { fill: var(--series); stroke: var(--card); stroke-width: 2; }
.trend .hit { fill: transparent; }
.rules summary { cursor: pointer; color: var(--accent); margin-bottom: .5rem; }
.nowrap { white-space: nowrap; }
.mono { white-space: nowrap; }
/* On a phone, the page's own "Report a listing" button serves every row. */
@media (max-width: 35rem) { .report-column { display: none; } }
th { white-space: nowrap; }
.group table { table-layout: fixed; }
.group th:first-child { width: 7rem; }
.group th.how-long { width: 6rem; }
.group .report-column { width: 4.5rem; }
.map .maplibregl-ctrl-attrib, .map .maplibregl-ctrl-attrib.maplibregl-compact, .map .maplibregl-ctrl-group { background: var(--card) !important; color: var(--ink-2); }
.map .maplibregl-ctrl-attrib a { color: var(--ink-2); }
@media (prefers-color-scheme: dark) { .map .maplibregl-ctrl button .maplibregl-ctrl-icon { filter: invert(1); } }
