:root {
  color-scheme: light;
  --ink: #1a1d27;
  --ink-muted: #5c5f6b;
  --paper: #f1ede1;
  --paper-raised: #faf8f2;
  --line: #d9d2bf;
  --accent: #a1732f;
  --accent-soft: #efe3c8;
  /* Darker than --accent specifically for text on --paper/--accent-soft —
     --accent alone is 3.58:1 / 3.29:1 against them, below WCAG AA's 4.5:1
     for body text. --accent stays as-is for borders/fills, which only need
     3:1 (non-text UI contrast). */
  --accent-text: #7a5a26;
  --navy: #14161f;
  --navy-raised: #1e212d;
  --map-ink: #2c4356;
  --warn: #7a3b1e;
  --warn-soft: #f2e0d0;
  --radius: 2px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
}

h1, h2, h3, .brand {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.wrap {
  max-width: 880px;
  margin: 0 auto;
  padding-inline: 20px;
}

a { color: var(--accent-text); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(20, 22, 31, 0.72);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
  transition: background-color 0.2s ease;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-block: 18px;
}
.brand {
  font-size: 1.3rem;
  text-decoration: none;
  color: #f1ede1;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.brand-mark { border-radius: 4px; position: relative; top: 2px; }
.site-header nav a {
  margin-left: 22px;
  text-decoration: none;
  color: #9ea2b3;
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.site-header nav a:hover { color: #e0c88c; }
.site-header nav a.nav-cta {
  margin-left: 22px;
  color: var(--navy);
  background: #d4a24c;
  padding: 7px 14px;
  border-radius: 999px;
  text-transform: none;
  letter-spacing: 0.01em;
  font-weight: 600;
}
.site-header nav a.nav-cta:hover { color: var(--navy); background: #e0c88c; }

main { padding-block: 40px; }
body.map-home main { padding: 0; }

/* Map homepage */
.map-hero {
  position: relative;
  height: calc(100vh - 65px);
  min-height: 480px;
}
#zoneMap { position: absolute; inset: 0; z-index: 1; }
#zoneMap .leaflet-interactive:focus { outline: none; }
/* Tint Esri's stock street-map colors (bright orange/yellow roads, blue
   water) toward the site's own ink-and-brass palette so the basemap reads
   as considered, not a generic embedded map. Pushed further than the first
   pass — the data (pins, zone borders) is the product, so the base needs to
   recede further behind it while roads/labels stay legible for orientation. */
#zoneMap .leaflet-tile-pane {
  filter: grayscale(0.72) sepia(0.16) saturate(0.85) brightness(0.98) hue-rotate(-6deg);
}
/* Soft vignette so the eye settles on the city centre (where the data is)
   rather than the map's edges. Decorative only — inset shadows never
   intercept clicks, so pan/zoom/marker interaction is untouched. */
.map-hero::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  box-shadow: inset 0 0 140px rgba(10, 11, 16, 0.35);
}

/* Zone polygons: a faint default fill plus a smooth hover transition so
   they read as tappable regions at rest, not just on discovery. Leaflet
   sets fill-opacity/stroke-width as SVG presentation attributes, which
   this transition still animates. Scoped to .zone-poly specifically (set
   via the layer's `className` style option) — NOT the broader
   .leaflet-interactive, which also matches marker icons and caused the
   transition to be evaluated on every marker reposition (pan/zoom/resize),
   producing a visible jump/fade instead of an instant, correct move. */
#zoneMap .zone-poly {
  cursor: pointer;
  transition: fill-opacity 0.15s ease, stroke-width 0.15s ease, opacity 0.15s ease;
}

.map-count-chip {
  position: absolute; z-index: 500; top: 16px; right: 16px;
  background: var(--navy); border: 1px solid #33384a; border-radius: 999px;
  padding: 8px 16px; font-size: 0.8rem; color: #c7cad6;
  display: flex; align-items: center; gap: 7px;
}
.map-count-chip strong {
  font-family: var(--serif); color: #d4a24c; font-size: 0.95rem; font-variant-numeric: tabular-nums;
}
@media (max-width: 640px) {
  .map-count-chip { top: auto; bottom: 18px; right: 18px; font-size: 0.74rem; padding: 6px 12px; }
}

/* The map is the whole homepage, so the page's headline has to live on it
   rather than below the fold — but it must not black out the busiest part
   of the map underneath it (the city centre, where pins cluster densest).
   Frosted glass, same treatment as .site-header, instead of a solid navy
   block: the map stays legible through it, not hidden behind it. */
.map-masthead {
  position: absolute; z-index: 500; top: 16px; left: 50%; transform: translateX(-50%);
  width: 520px; max-width: 90%; background: rgba(20, 22, 31, 0.78);
  backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, 0.08); border-radius: var(--radius);
  padding: 13px 40px 15px 20px; text-align: center;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.map-masthead.is-dismissed {
  opacity: 0; transform: translateX(-50%) translateY(-8px); pointer-events: none;
}
.map-masthead h1 {
  margin: 0; font-family: var(--serif); font-size: 1.25rem; font-weight: 600;
  line-height: 1.15; color: #f1ede1; letter-spacing: -0.01em;
}
.map-valueprop {
  margin: 7px 0 0; font-size: 0.8rem; line-height: 1.4; color: #c7cad6;
}
.map-close {
  position: absolute; top: 10px; right: 10px; width: 22px; height: 22px;
  border: none; border-radius: 50%; background: rgba(255, 255, 255, 0.08);
  color: #c7cad6; font-size: 0.9rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.map-close:hover { background: rgba(255, 255, 255, 0.16); color: #f1ede1; }

.map-legend {
  position: absolute; z-index: 500; bottom: 18px; left: 18px;
  background: var(--navy); border: 1px solid #33384a; border-radius: var(--radius);
  padding: 12px 16px; font-size: 0.8rem; max-width: 260px;
}
.map-legend .row { display: flex; align-items: center; gap: 9px; margin-bottom: 6px; color: #c7cad6; }
.map-legend .row:last-child { margin-bottom: 0; }
.map-legend .dot { width: 10px; height: 10px; flex-shrink: 0; display: inline-block; }
/* Baseline: every row here is already "verified" (status_basis=observed_by_us).
   Each tier gets its own color — same two-axis matrix (our own angle photo ×
   fully documented) the map's own pin icons use, see landing.html's
   PIN_COLORS. Keep these hex values in sync with that object. */
.map-legend .dot.verified {
  border-radius: 50%; border: 2px solid var(--navy-raised);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.map-legend .dot.verified.tier-1-1 { background: #d4a24c; }
.map-legend .dot.verified.tier-1-0 { background: #4f7f96; }
.map-legend .dot.verified.tier-0-1 { background: #b8622f; }
.map-legend .dot.verified.tier-0-0 { background: #8b8f9c; }
/* Overrides the documentation-tier color above regardless of photo/full_data
   — see landing.html's PIN_COLOR_OVERDUE for why it's a distinct hue, not
   just a shade of the terracotta tier. */
.map-legend .dot.verified.tier-overdue { background: #8b2e2e; }
/* A plain triangle swatch — the map's own triangle pins vary in color the
   same way the circles above do; this row just explains the shape. */
.map-legend .dot-triangle {
  width: 0; height: 0; flex-shrink: 0; display: inline-block;
  border-left: 5px solid transparent; border-right: 5px solid transparent;
  border-bottom: 9px solid #8b8f9c;
}
/* An outlined square with a faint fill, not a circle — a zone is an area,
   and the swatch should look like the thing it stands for. */
.map-legend .dot.zone {
  border-radius: 1px; background: rgba(44, 67, 86, 0.18); border: 1.5px solid var(--map-ink);
}

/* Leaflet popup photo — a small preview of the latest site photo we have,
   shown only when one exists (see landing.html's photo_url). Kept narrow
   enough to fit Leaflet's default popup max-width without widening it. */
.popup-photo { display: block; width: 100%; max-width: 220px; height: auto; border-radius: 1px; margin-bottom: 4px; }
.popup-photo-date { font-size: 0.7rem; color: var(--ink-muted); margin-bottom: 6px; }

.stats-band { background: var(--navy); }
.stats-grid { display: flex; flex-wrap: wrap; }
.stat {
  flex: 1 1 160px; padding: 24px 22px; border-right: 1px solid #262b3a;
  display: flex; flex-direction: column; gap: 4px;
}
.stat:last-child { border-right: none; }
.stat-n {
  font-family: var(--serif); font-size: 2rem; font-weight: 600; color: #d4a24c;
  font-variant-numeric: tabular-nums; line-height: 1;
}
.stat-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: #9ea2b3; }
.stats-caption { padding: 0 22px 16px; font-size: 0.76rem; color: #767a8a; }

@media (max-width: 640px) {
  .stat { flex: 1 1 50%; border-bottom: 1px solid #262b3a; }
  .stat:nth-child(odd) { border-right: 1px solid #262b3a; }
}

.map-below { padding: 40px 20px; max-width: 880px; margin: 0 auto; }
.map-below h1 { font-size: 1.7rem; }
.map-below h2 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-muted); font-weight: 600; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.zone-chip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1px; margin: 14px 0 28px; background: var(--line); border: 1px solid var(--line); }
.zone-chip {
  display: block; text-decoration: none; padding: 12px 14px;
  background: var(--paper-raised); color: var(--ink);
  font-size: 0.88rem;
}
.zone-chip:hover { background: var(--accent-soft); }
.zone-chip .n { color: var(--ink-muted); font-size: 0.76rem; }
.zone-chip.grayed {
  background: var(--paper); color: var(--ink-muted); cursor: default;
  pointer-events: none;
}

@media (max-width: 640px) {
  /* The masthead is taller than the old bare disclaimer, so the hero grows
     with it rather than squeezing the map to a sliver under a wall of text. */
  .map-hero { height: 78vh; min-height: 460px; }
  .map-legend { max-width: 200px; font-size: 0.76rem; }
  .map-masthead { padding: 12px 34px 10px 15px; top: 10px; }
  .map-masthead h1 { font-size: 1.12rem; }
  .map-valueprop { font-size: 0.79rem; margin-top: 6px; }
  .map-disclaimer { font-size: 0.7rem; margin-top: 9px; padding-top: 8px; }
}

/* Leaflet's default popup (white rounded card, heavy shadow) clashes with
   the site's flat, hairline-bordered system elsewhere — restyle it to match
   rather than let the map's most-clicked surface look like a generic embed. */
#zoneMap .leaflet-popup-content-wrapper {
  background: var(--paper-raised); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: 0 8px 28px rgba(10, 11, 16, 0.28);
}
#zoneMap .leaflet-popup-content { margin: 13px 16px; font-family: var(--sans); font-size: 0.88rem; line-height: 1.5; }
#zoneMap .leaflet-popup-content strong { font-family: var(--serif); font-size: 1rem; color: var(--ink); }
#zoneMap .leaflet-popup-content a { color: var(--accent-text); font-weight: 600; }
#zoneMap .leaflet-popup-tip { background: var(--paper-raised); box-shadow: none; border: 1px solid var(--line); }
#zoneMap .leaflet-popup-close-button { color: var(--ink-muted) !important; }

/* Attribution is a licensing requirement, not clutter — style it to match
   instead of leaving Leaflet's default white pill on a tinted basemap. */
#zoneMap .leaflet-control-attribution {
  background: rgba(20, 22, 31, 0.72); backdrop-filter: blur(6px);
  color: #9ea2b3; border-radius: var(--radius) 0 0 0; padding: 2px 8px;
}
#zoneMap .leaflet-control-attribution a { color: #c7cad6; }

.flash {
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 10px 14px;
  margin-top: 16px;
}

.site-footer {
  background: var(--navy);
  color: #8d90a0;
  font-size: 0.85rem;
  padding-block: 26px;
  margin-top: 40px;
}
.site-footer a { color: #c7cad6; }
.footer-grid {
  display: flex; justify-content: space-between; align-items: center;
  gap: 20px; flex-wrap: wrap; padding-bottom: 18px; margin-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-brand {
  font-family: var(--serif); font-size: 1.05rem; color: #f1ede1; margin: 0 0 4px;
  display: flex; align-items: center; gap: 8px;
}
.footer-brand .brand-mark { border-radius: 3px; }
.footer-about p:nth-child(2) { margin: 0; max-width: 380px; }
.footer-contact { margin: 4px 0 0; font-size: 0.85rem; }
.footer-nav { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-nav a { white-space: nowrap; }
.footer-legal p { margin: 0; }

/* Landing */
.hero { text-align: center; padding-block: 20px 10px; }
.hero h1 { font-size: 2rem; margin-bottom: 10px; }
.hero p.lede { color: var(--ink-muted); font-size: 1.1rem; max-width: 640px; margin: 0 auto 28px; }

.lookup-form { display: flex; gap: 8px; max-width: 560px; margin: 0 auto 8px; }
.lookup-form input[type="text"] {
  flex: 1;
  padding: 12px 14px;
  font-size: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-raised);
}
.lookup-form button {
  padding: 12px 20px;
  font-size: 1rem;
  border: none;
  border-radius: var(--radius);
  background: var(--accent);
  color: white;
  cursor: pointer;
}
.lookup-form button:hover { opacity: 0.92; }
.hero .hint { color: var(--ink-muted); font-size: 0.85rem; }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
@media (max-width: 640px) { .pillars { grid-template-columns: 1fr; } }
.pillar { background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.pillar h3 { margin-top: 0; font-size: 1rem; }
.pillar p { color: var(--ink-muted); font-size: 0.92rem; margin-bottom: 0; }

/* Stats page */
.stats-page h1 { margin-bottom: 6px; }
.stats-page section.block { margin-bottom: 44px; }
.stats-page h3.sub { font-size: 0.95rem; margin-bottom: 4px; }

.big-stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 20px;
}
.big-stat {
  background: var(--navy); color: #f1ede1; padding: 20px 18px;
  display: flex; flex-direction: column; gap: 4px;
}
.big-stat .n { font-family: var(--serif); font-size: 2rem; font-weight: 600; color: #d4a24c; font-variant-numeric: tabular-nums; line-height: 1; }
.big-stat .l { font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.04em; color: #9ea2b3; }
.big-stat.warn .n { color: #c25b3f; }

/* Shared "panel" frame so every data section on the stats page reads as
   the same system as the navy big-stat band above it, instead of tables
   and lists floating loose on the page background. */
.panel { background: var(--paper-raised); border: 1px solid var(--line); padding: 2px 18px; margin-top: 14px; }
.panel .fact-table { margin: 10px 0; }
.panel .fact-table tr:last-child th, .panel .fact-table tr:last-child td { border-bottom: none; }

/* Per-zone stat tiles — same navy/brass visual language as .big-stats-grid
   above, scoped per district; each tile links to its own zone page. */
.zone-stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 14px; }
.zone-stat-tile { display: block; background: var(--navy); color: #f1ede1; padding: 14px 16px; text-decoration: none; }
.zone-stat-tile:hover { background: var(--navy-raised); }
.zone-name { display: block; font-family: var(--serif); font-size: 0.98rem; color: #f1ede1; margin-bottom: 10px; }
.zone-metrics { display: flex; gap: 16px; }
.zone-metrics .zm { display: flex; flex-direction: column; gap: 2px; }
.zone-metrics .n { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; color: #d4a24c; font-variant-numeric: tabular-nums; line-height: 1; }
.zone-metrics .l { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.03em; color: #9ea2b3; }

.table-scroll { overflow-x: auto; }
.stats-table th, .stats-table td { font-variant-numeric: tabular-nums; }
/* Override .fact-table's 220px key-value th width — this is a real 4-column
   data table, not a label/value pair, so the first column should size to
   its content and the numeric columns should be narrow and right-aligned. */
.stats-table th, .stats-table td { width: auto; }
.stats-table th:not(:first-child), .stats-table td:not(:first-child) { width: 96px; text-align: right; }
.stats-table thead th {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--ink-muted); font-weight: 600; border-bottom: 2px solid var(--line);
}
.stats-table td.num { font-family: var(--serif); font-weight: 600; color: var(--accent-text); }

/* Recurring "name + brass-serif number" row, used for the professional
   leaderboard and developer registry — the same numeric visual language as
   .big-stat, in a flat mosaic grid matching .zone-chip-grid below it. */
.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 14px; }
.tile { background: var(--paper-raised); padding: 12px 14px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; text-decoration: none; color: var(--ink); }
.tile:hover { background: var(--accent-soft); }
.tile-left { display: flex; flex-direction: column; gap: 3px; }
.tile-name { font-family: var(--serif); font-size: 0.92rem; line-height: 1.3; color: var(--accent-text); }
.tile-tag { display: block; font-size: 0.7rem; color: var(--ink-muted); text-transform: uppercase; letter-spacing: 0.03em; }
.tile-n { font-family: var(--serif); font-weight: 600; color: var(--accent-text); font-variant-numeric: tabular-nums; white-space: nowrap; flex-shrink: 0; }

/* Project / developer detail */
.detail-header { margin-bottom: 8px; }
.detail-header h1 { margin-bottom: 4px; }
.meta-row { color: var(--ink-muted); font-size: 0.95rem; }
.badge-status {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  background: var(--accent-soft);
  color: var(--accent-text);
  border: 1px solid var(--accent);
}
/* Second provenance variant, deliberately quieter than the brass one but
   equally positive in tone: "we stood there" vs. "the board says so" are
   both real, checkable bases — neither is a warning, so neither uses --warn.
   Parchment/line tokens only, no new colors. */
.badge-source {
  background: var(--paper-raised);
  color: var(--ink-muted);
  border-color: var(--line);
}

.frame-strip { display: flex; gap: 12px; overflow-x: auto; padding: 16px 0; }
.frame-strip figure { margin: 0; flex: 0 0 auto; width: 220px; }
.frame-strip img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); display: block; }
.frame-strip figcaption { font-size: 0.8rem; color: var(--ink-muted); margin-top: 6px; }

.fact-table { width: 100%; border-collapse: collapse; margin: 12px 0 28px; }
.fact-table th, .fact-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.fact-table th { width: 220px; color: var(--ink-muted); font-weight: 500; }

.evidence-list { list-style: none; padding: 0; }
.evidence-list li { border-bottom: 1px solid var(--line); padding: 10px 0; font-size: 0.92rem; }
.evidence-list .ev-kind { color: var(--ink-muted); text-transform: uppercase; font-size: 0.72rem; letter-spacing: 0.04em; }

/* Neutral disclosure captions ("N projects located", "no imagery yet") —
   these are routine methodology statements, not warnings. Using --warn's
   alarm-orange here contradicted the site's own stated principle that
   absence of data isn't evidence of anything bad. --warn/--warn-soft stay
   reserved for genuinely attention-worthy stats (e.g. .big-stat.warn). */
.disclosure { background: var(--paper-raised); border: 1px solid var(--line); color: var(--ink-muted); padding: 12px 16px; border-radius: var(--radius); }

section.block { margin-bottom: 36px; }
section.block h2 { font-size: 1.15rem; border-bottom: 1px solid var(--line); padding-bottom: 6px; }

/* Forms */
/* A single centered column for form-style pages, so the heading/callout
   above the form share its width instead of spanning the full .wrap while
   only the form itself sits centered underneath. */
.narrow-page { max-width: 560px; margin-inline: auto; }

form.stacked { display: grid; gap: 14px; }
form.stacked label { font-size: 0.9rem; color: var(--ink-muted); display: block; margin-bottom: 4px; }
form.stacked input, form.stacked select, form.stacked textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.98rem;
  font-family: inherit;
  background: var(--paper-raised);
}
form.stacked textarea { min-height: 100px; }
form.stacked button {
  justify-self: start;
  padding: 12px 22px;
  border: none;
  border-radius: var(--radius);
  background: var(--accent);
  color: white;
  font-size: 1rem;
  cursor: pointer;
}
.honeypot { position: absolute; left: -9999px; }

.match-list { list-style: none; padding: 0; }
.match-list li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.match-list .kind-tag { font-size: 0.75rem; color: var(--ink-muted); text-transform: uppercase; margin-right: 8px; }

.pricing-note { background: var(--accent-soft); border: 1px solid var(--accent); border-radius: var(--radius); padding: 14px 18px; font-size: 0.92rem; }

/* ---------------------------------------------------------------------------
   Professional detail (/pro/<slug>/) — the recurrence page. Additive classes
   only; everything structural here reuses .big-stats-grid / .big-stat,
   .badge-status, .fact-table, .tile-grid and .evidence-list so this page
   reads as the same archive as the rest of the site.
   --------------------------------------------------------------------------- */

/* The headline fact, set at display weight: the recurrence count is the whole
   point of the page, so it gets stated as a sentence before any table. */
.pro-lede {
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin: 18px 0 0;
  max-width: 34em;
}
.pro-lede strong { font-weight: 600; color: var(--accent-text); white-space: nowrap; }

/* A year span ("2023–2025") in a .big-stat tile is far wider than a 1–2 digit
   count, so it steps down rather than overflowing the 160px tile. */
.big-stat .n.n-span { font-size: 1.35rem; padding-block: 5px; }

.pro-caption {
  color: var(--ink-muted);
  font-size: 0.86rem;
  line-height: 1.55;
  max-width: 62ch;
  margin: 12px 0 0;
}
section.block .pro-caption { margin-bottom: 14px; }

/* Board list — a numbered record of appearances. The leading index is the
   argument the page is making, so it's set in brass serif like every other
   number on the site, not as a browser list marker. */
.board-list {
  list-style: none;
  counter-reset: board;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}
.board-item {
  counter-increment: board;
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 0 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.board-item::before {
  content: counter(board, decimal-leading-zero);
  grid-row: 1 / span 3;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--accent-text);
  font-variant-numeric: tabular-nums;
  line-height: 1.35;
}
.board-name {
  font-family: var(--serif);
  font-size: 1.02rem;
  line-height: 1.35;
  /* Project names here are raw 78-character permit strings — wrap them
     anywhere rather than letting one push the page into a sideways scroll. */
  overflow-wrap: anywhere;
}
.board-meta {
  color: var(--ink-muted);
  font-size: 0.85rem;
  margin: 3px 0 0;
  overflow-wrap: anywhere;
}
.board-chips { margin: 7px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.board-chips .badge-status { font-size: 0.74rem; }

.pro-note { margin-top: 8px; font-size: 0.86rem; line-height: 1.6; }

@media (max-width: 640px) {
  .pro-lede { font-size: 1.2rem; }
  .board-item { grid-template-columns: 32px 1fr; gap: 0 8px; }
  .board-item::before { font-size: 0.95rem; }
}
