/* Oakland Crime Watch — the data-desk look. Light canvas, white cards, a serif for headlines and
   Inter for everything else, tabular figures. One stylesheet, no build step.

   Hierarchy rules the stylesheet enforces:
   - one headline per page, set in the serif, large; everything else is quiet
   - labels are sentence case, never tracked capitals; the number carries the emphasis
   - body text is 15px minimum, secondary text 13px, nothing below 12px
   - photos are a quiet background band behind the page title, desaturated and washed toward the
     canvas so the text column always sits on solid ground; never a hero, never behind a chart */

@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(assets/fonts/inter-variable.woff2) format('woff2'); }

:root {
  --canvas: #eef1f3;
  --card: #ffffff;
  --tint: #f5f7f8;
  --ink: #14181b;
  --ink-2: #2f3a43;
  --dim: #5a656e;
  --line: #e2e7ea;
  --line-2: #cfd7dc;
  --teal: #0e7c86;
  --teal-d: #0a5b63;
  --teal-tint: #e3f1f2;
  --crit: #c2412d;
  --crit-tint: #fbeae6;
  --warn: #b9791a;
  --warn-tint: #f7efdd;
  --disc: #6f4bb0;
  --ok: #157a52;
  --ok-tint: #e2f1ea;
  --shadow: 0 1px 2px rgba(20, 24, 27, 0.04), 0 4px 16px rgba(20, 24, 27, 0.05);
  --serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', 'Cascadia Code', Menlo, Consolas, monospace;
  --wrap: 1240px;
  --radius: 10px;
  --gap: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 15px; line-height: 1.6; color: var(--ink); background: var(--canvas); }
img, svg { max-width: 100%; }
a { color: var(--teal-d); text-decoration: none; }
a:hover { color: var(--teal); text-decoration: underline; text-underline-offset: 2px; }
p a:not(.btn), .prose li a, .fambar a, .table a, .dek a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; text-decoration-color: var(--line-2); }
p a:not(.btn):hover, .dek a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
h1, h2, h3 { margin: 0 0 8px; line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-family: var(--serif); font-weight: 500; font-size: 34px; line-height: 1.15; max-width: 22ch; }
h2 { font-size: 16px; font-weight: 600; }
h3 { font-size: 14px; font-weight: 600; }
p { margin: 0 0 1em; }
code { font-family: var(--mono); font-size: 0.9em; background: var(--tint); padding: 1px 5px; border-radius: 4px; }
pre { background: var(--tint); padding: 12px 14px; border-radius: 6px; overflow-x: auto; font-size: 13px; }
pre code { background: none; padding: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--dim); }
.mono { font-family: var(--mono); font-size: 0.92em; }
.num { font-variant-numeric: tabular-nums; }
.plain { list-style: none; padding: 0; margin: 0; }
.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; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* ---- topbar ---------------------------------------------------------------------------------- */
.topbar { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.topbar__row { display: flex; align-items: center; gap: 22px; height: 54px; }
.brand { display: inline-flex; align-items: baseline; gap: 10px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand:hover { text-decoration: none; color: var(--ink); }
.brand__name { font-family: var(--serif); font-weight: 600; font-size: 20px; letter-spacing: -0.01em; }
.nav-toggle { display: none; margin-left: auto; align-items: center; gap: 7px; font: inherit; font-size: 13px; font-weight: 600; color: var(--ink); background: var(--card); border: 1px solid var(--line-2); border-radius: 6px; padding: 7px 10px; cursor: pointer; }
.nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; flex: 1 1 auto; min-width: 0; }
.nav::-webkit-scrollbar { display: none; }
.nav a { font-size: 13.5px; font-weight: 500; color: var(--ink-2); padding: 6px 10px; border-radius: 6px; white-space: nowrap; }
.nav a:hover { background: var(--tint); color: var(--ink); text-decoration: none; }
.nav a[aria-current] { background: var(--teal-tint); color: var(--teal-d); font-weight: 600; }

/* ---- page head ------------------------------------------------------------------------------- */
.pagehead { position: relative; padding: 30px 0 18px; }
.pagehead--photo { padding: 40px 0 30px; min-height: 240px; overflow: hidden; }
.pagehead__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px 40px; align-items: center; }
.pagehead__content { min-width: 0; max-width: 72ch; }
/* The photo occupies the right 58% of the band, greyed down and washed with the canvas colour from
   its left edge, so it reads as texture rather than a picture competing with the headline. */
.pagehead__bg { position: absolute; top: 0; right: 0; bottom: 0; width: 58%; pointer-events: none; }
.pagehead__bg img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; filter: grayscale(0.45) contrast(0.9); }
.pagehead__bg::after { content: ''; position: absolute; inset: 0; background:
  linear-gradient(90deg, var(--canvas) 0%, rgba(238, 241, 243, 0.92) 18%, rgba(238, 241, 243, 0.5) 48%, rgba(238, 241, 243, 0.22) 100%),
  linear-gradient(180deg, rgba(238, 241, 243, 0.15) 0%, rgba(238, 241, 243, 0) 40%, var(--canvas) 100%); }
.pagehead__credit { position: absolute; right: 20px; bottom: 6px; margin: 0; font-size: 9px; letter-spacing: 0.01em; color: var(--dim); opacity: 0.8; }
.pagehead__credit a { color: var(--dim); }
.kicker { font-size: 13.5px; color: var(--dim); margin: 0 0 8px; }
.kicker strong { color: var(--ink-2); font-weight: 600; }
.dek { font-size: 17px; line-height: 1.55; color: var(--ink-2); margin: 10px 0 0; max-width: 68ch; }
.dek strong { color: var(--ink); font-weight: 600; }
.dek--small { font-size: 15.5px; }
.pagehead--lede h1 { font-size: 44px; max-width: 24ch; }
.pagehead__note { margin: 10px 0 0; font-size: 13.5px; max-width: 70ch; }
.pagehead__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.pagehead__body { margin-top: 18px; }
.btn { appearance: none; -webkit-appearance: none; display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 14px; font-weight: 600; padding: 9px 16px; border-radius: 7px; background: var(--teal); color: #fff; border: 1px solid var(--teal); cursor: pointer; line-height: 1.2; text-decoration: none; }
.btn:hover { background: var(--teal-d); border-color: var(--teal-d); color: #fff; text-decoration: none; }
.btn--ghost { background: var(--card); color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { background: var(--tint); color: var(--ink); border-color: var(--line-2); }
.btn[disabled] { opacity: 0.55; cursor: default; }

/* ---- stat tiles ------------------------------------------------------------------------------ */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: var(--gap); margin: 0 0 var(--gap); padding: 0; }
.stats--stack { grid-template-columns: 1fr; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px 14px; }
.stat dt { font-size: 14px; font-weight: 500; color: var(--ink-2); }
.stat dd { margin: 4px 0 0; }
.stat__value { display: block; font-size: 32px; font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--ink); }
.stat--crit .stat__value { color: var(--crit); }
.stat--ok .stat__value { color: var(--ok); }
.stat--teal .stat__value { color: var(--teal); }
.stat--disc .stat__value { color: var(--disc); }
.stat--warn .stat__value { color: var(--warn); }
.stat__sub { display: block; margin-top: 6px; font-size: 13px; line-height: 1.45; color: var(--dim); }
.delta { font-weight: 600; font-size: 13.5px; white-space: nowrap; }
.delta--better { color: var(--ok); }
.delta--worse { color: var(--crit); }
.delta--flat { color: var(--dim); }
.delta__label { font-weight: 400; color: var(--dim); white-space: normal; }

/* ---- cards + grid ---------------------------------------------------------------------------- */
.grid { display: grid; gap: var(--gap); margin-bottom: var(--gap); }
.grid--2 { grid-template-columns: 1fr 1fr; }
.grid--3 { grid-template-columns: 1fr 1fr 1fr; }
.grid--main { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; }
.grid--lead { grid-template-columns: minmax(240px, 300px) minmax(0, 1fr); align-items: stretch; }
.grid--rows { align-items: stretch; }
.grid--rows > .stack { display: flex; }
.grid--rows > .stack > .card { flex: 1; }
.card { container-type: inline-size; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px 16px; min-width: 0; }
.card--flush { padding: 0; overflow: hidden; }
.card__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.card__head h2 { min-width: 0; margin: 0; }
.card__note { max-width: 40ch; font-size: 13px; line-height: 1.45; color: var(--dim); text-align: right; }
.card__lead { font-size: 14px; color: var(--dim); margin: -4px 0 12px; max-width: 70ch; }
.card + .card { margin-top: var(--gap); }
.card + .grid { margin-top: var(--gap); }
.card--prose { padding: 24px 28px; }
.card--flush .embed__head { padding: 16px 20px 0; }
.stack, .grid > * { min-width: 0; }
.stack > * + * { margin-top: var(--gap); }
.section { margin: 0 0 var(--gap); }
.section__title { font-family: var(--serif); font-weight: 500; font-size: 22px; margin: 6px 0 12px; }
.section__title .muted { font-family: var(--sans); font-size: 14px; font-weight: 400; margin-left: 10px; }

@container (max-width: 520px) {
  .card__head { grid-template-columns: 1fr; gap: 4px; }
  .card__note { max-width: none; text-align: left; }
}

/* ---- composition bar ------------------------------------------------------------------------- */
.fambar__track { display: flex; height: 12px; border-radius: 999px; overflow: hidden; background: var(--tint); }
.fambar__seg { display: block; height: 100%; }
.fambar__legend { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 18px; padding: 0; margin: 10px 0 0; font-size: 13.5px; color: var(--ink-2); }
.fambar__legend b { font-variant-numeric: tabular-nums; color: var(--ink); }
.swatch { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.swatch--dashed { background: transparent !important; border: 2px dashed currentColor; width: 10px; height: 2px; vertical-align: 3px; }

/* ---- the blotter ----------------------------------------------------------------------------- */
.blotter { font-size: 14px; }
.blotter__date { font-size: 13px; font-weight: 600; color: var(--ink-2); margin: 18px 0 2px; padding-bottom: 6px; border-bottom: 1px solid var(--line-2); }
.blotter__day:first-child .blotter__date { margin-top: 0; }
.blotter__date .muted { font-weight: 400; }
.blotter__list { list-style: none; margin: 0; padding: 0; }
.blotter__row { display: grid; grid-template-columns: 8px 64px minmax(120px, 0.9fr) minmax(0, 1.2fr) minmax(0, 200px); gap: 10px; align-items: baseline; padding: 7px 0; border-bottom: 1px solid var(--line); }
.blotter__row:last-child { border-bottom: 0; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.blotter__time { font-variant-numeric: tabular-nums; font-size: 13px; color: var(--dim); white-space: nowrap; }
.blotter__type { font-weight: 600; color: var(--ink); }
.blotter__addr { color: var(--ink-2); }
.blotter__beat { font-size: 13px; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---- charts ---------------------------------------------------------------------------------- */
.chart { margin: 4px 0 0; }
.chart svg { width: 100%; height: auto; display: block; }
.chart figcaption, .rank figcaption, .map figcaption { font-size: 13px; color: var(--dim); margin-bottom: 6px; }
svg .grid { stroke: var(--line); stroke-width: 1; }
.tick { font-size: 12px; fill: var(--dim); font-family: var(--sans); }
.tick--value { fill: var(--ink); font-weight: 600; }
.tick--note { font-size: 12px; fill: var(--dim); font-style: italic; }
.lagband { fill: var(--tint); }
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 0; margin: 8px 0 0; font-size: 13px; color: var(--dim); }
.rank { margin: 0; }
.rank__list { list-style: none; padding: 0; margin: 0; }
.rank__row { display: grid; grid-template-columns: minmax(130px, 0.9fr) 2fr 60px; gap: 12px; align-items: center; padding: 6px 0; font-size: 14px; }
.rank__label { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank__label a { color: var(--ink-2); }
.rank__label a:hover { color: var(--teal); }
.rank__bar { height: 12px; background: var(--tint); border-radius: 3px; overflow: hidden; }
.rank__bar span { display: block; height: 100%; border-radius: 3px; }
.rank__value { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.mini-rank { list-style: none; padding: 0; margin: 0; counter-reset: rank; }
.mini-rank__head { margin: 0 0 4px; color: var(--ink-2); font-size: 14px; font-weight: 600; }
.mini-rank li { display: flex; gap: 10px; align-items: baseline; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.mini-rank li::before { counter-increment: rank; content: counter(rank); flex: none; width: 18px; font-variant-numeric: tabular-nums; color: var(--dim); font-size: 13px; }
.mini-rank li:last-child { border-bottom: 0; }
.mini-rank b { margin-left: auto; font-variant-numeric: tabular-nums; }
.mini-rank .muted { font-size: 13px; }

/* ---- beat map -------------------------------------------------------------------------------- */
.map { margin: 0; }
.map svg { width: min(100%, 720px); height: auto; display: block; margin: 0 auto; }
.map--compact svg { width: min(100%, 400px); }
.beat path { stroke: #fff; stroke-width: 1.4; transition: stroke 0.12s, stroke-width 0.12s; }
.beat:hover path, .beat:focus path { stroke: var(--warn); stroke-width: 4; }
.beat--hi path { stroke: var(--crit); stroke-width: 4; }
.beat__label { font-family: var(--sans); font-size: 12px; font-weight: 600; fill: #fff; text-anchor: middle; dominant-baseline: middle; pointer-events: none; }
.beat__label--dark { fill: var(--ink-2); }
.map--compact .beat path { stroke-width: 0.9; }
.map__metric { display: block; font-size: 13px; color: var(--dim); margin: 8px 0 4px; }
.legend--ramp { gap: 4px 10px; font-size: 12px; align-items: center; }
.legend--ramp .swatch { width: 16px; }

/* ---- embeds ---------------------------------------------------------------------------------- */
.embed__band { display: flex; align-items: center; gap: 10px; padding: 9px 20px; background: var(--teal-tint); color: var(--teal-d); font-size: 13px; font-weight: 500; border-bottom: 1px solid var(--line); }
.embed__band::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.embed__head { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: start; margin-bottom: 14px; }
.embed__head h2 { margin: 0; grid-column: 1; font-family: var(--serif); font-weight: 500; font-size: 22px; }
.embed__head p { grid-column: 1; margin: 0; font-size: 14px; color: var(--dim); max-width: 80ch; }
.embed__head .embed__applied { margin-top: 5px; color: var(--ink); font-weight: 600; }
.embed__head .btn { grid-column: 2; grid-row: 1 / span 2; align-self: start; }
.embed__legend { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px; padding: 9px 20px; border-top: 1px solid var(--line); background: var(--tint); color: var(--ink-2); font-size: 12.5px; }
.embed__legend > span { display: inline-flex; align-items: center; gap: 6px; }
.map-pin { display: inline-grid; place-items: center; flex: none; width: 16px; height: 16px; font-style: normal; }
.map-pin--single { width: 10px; height: 15px; border-radius: 8px 8px 8px 2px; background: #2b7dbc; transform: rotate(-45deg); }
.map-pin--cluster { width: 19px; height: 19px; border: 3px solid #c4eb9b; border-radius: 50%; background: #70bd35; color: #173a13; font-size: 8px; font-weight: 700; }
.cluster-ramp i { width: 74px; height: 8px; border-radius: 99px; background: linear-gradient(90deg, #70bd35, #eda53a 56%, #d6513c); }
.cluster-ramp em { color: var(--dim); font-size: 11px; font-style: normal; }
.embed__frame { height: var(--embed-h, 900px); background: #fff; border-top: 1px solid var(--line); }
.card:not(.card--flush) .embed__frame { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.embed__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.embed__mobile { display: none; }
.embed--focused .embed__frame { overflow: hidden; }
.embed--focused .embed__frame iframe { height: calc(100% + 34px); transform: translateY(-34px); }
.video { aspect-ratio: 16 / 9; background: var(--ink); border-radius: 8px; overflow: hidden; }
.video iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---- question links, tables, prose ----------------------------------------------------------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: var(--gap); }
.question-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); margin-bottom: var(--gap); }
.qcard { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; border-left: 4px solid var(--teal); }
.qcard:hover { text-decoration: none; color: var(--ink); box-shadow: 0 1px 2px rgba(20, 24, 27, 0.06), 0 10px 26px rgba(20, 24, 27, 0.09); }
.qcard:hover .qcard__title { color: var(--teal-d); }
.qcard--violent { border-left-color: var(--crit); }
.qcard--burglary { border-left-color: var(--teal); }
.qcard--vehicle { border-left-color: var(--disc); }
.qcard__kicker { font-size: 13px; color: var(--dim); }
.qcard__title { font-family: var(--serif); font-size: 18px; font-weight: 500; line-height: 1.3; }
.qcard__foot { font-size: 13px; color: var(--dim); margin-top: auto; }
.qcard__foot b { color: var(--ink); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 13px; font-weight: 600; color: var(--ink-2); padding: 6px 8px; border-bottom: 1px solid var(--line-2); }
.table td { padding: 8px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table-scroll { max-width: 100%; overflow-x: auto; scrollbar-gutter: stable; }
.table-scroll .table { min-width: 640px; }
.prose { font-size: 15.5px; max-width: 72ch; }
.prose, .card__lead, .foot, .contacts, pre, code { overflow-wrap: anywhere; }
.prose h2 { font-family: var(--serif); font-weight: 500; font-size: 24px; margin-top: 30px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 15.5px; margin-top: 20px; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 6px; }
.prose--cols { max-width: none; columns: 2; column-gap: 40px; }
.prose--cols h2 { break-after: avoid; margin-top: 0; font-size: 16px; font-family: var(--sans); font-weight: 600; }
.prose--cols p { break-inside: avoid; }
.callout { background: var(--warn-tint); border-left: 3px solid var(--warn); padding: 12px 18px; border-radius: 6px; font-size: 14px; }
.callout p:last-child { margin: 0; }
.crumbs { padding: 12px 0 0; font-size: 13px; color: var(--dim); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 auto; }
.crumbs li + li::before { content: '›'; margin-right: 6px; color: var(--dim); }
.contacts dt { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.contacts dd { margin: 2px 0 12px; word-break: break-word; font-size: 14px; }
.area-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px 28px; }
@media (min-width: 1160px) { .area-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.area-col h3 { font-size: 14px; margin-bottom: 4px; }
.area-col li { padding: 3px 0; font-size: 13.5px; }
.addr { display: grid; grid-template-columns: minmax(340px, 1.6fr) minmax(170px, auto) auto auto; gap: 10px 12px; align-items: end; max-width: 1100px; }
.field label { display: block; font-size: 13px; font-weight: 500; color: var(--ink-2); margin-bottom: 5px; }
.field input, .field select { font: inherit; font-size: 16px; color: var(--ink); background: var(--card); border: 1px solid var(--line-2); border-radius: 7px; padding: 10px 12px; width: 100%; min-height: 44px; }
.field input:focus, .field select:focus { border-color: var(--teal); outline: 2px solid var(--teal-tint); }
.field--btn .btn { min-height: 44px; white-space: nowrap; }
.addr__status { grid-column: 1 / -1; margin: 2px 0 0; font-size: 13.5px; max-width: 70ch; }
.addr__status--error { color: var(--crit); }
.addr__clear { grid-column: 1 / -1; margin-top: -4px; font-size: 13.5px; }
.addr__clear .btn { min-height: 0; padding: 0; border: 0; background: none; color: var(--teal-d); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.addr__clear .btn:hover { background: none; color: var(--teal); }
.locate__result { margin: 18px 0 0; }
.locate__card { border-top: 1px solid var(--line); padding-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; }
.locate__card h3 { grid-column: 1 / -1; font-family: var(--serif); font-weight: 500; font-size: 22px; margin: 0; }
.locate__card .stat__value { font-size: 30px; }
.diagram svg { width: 100%; height: auto; }
.diagram-list { display: none; }
.diagram__t { font-family: var(--sans); font-weight: 600; font-size: 17px; fill: var(--ink); }
.diagram__s { font-size: 12px; fill: var(--dim); }
.photo-card { padding: 0; overflow: hidden; }
.photo-card img { display: block; width: 100%; height: 180px; object-fit: cover; }
.photo-card__body { padding: 12px 16px 14px; font-size: 13.5px; color: var(--dim); }
.photo-card__body b { color: var(--ink); }
/* Map on the left; ranked list above the legend on the right. The map is sized so the card ends
   level with the stat tiles beside it. */
.home-map { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 0.75fr); grid-template-rows: 1fr auto; gap: 8px 20px; align-items: start; }
.home-map .map { display: contents; }
.home-map .map svg { grid-column: 1; grid-row: 1 / 3; width: min(100%, 392px); align-self: center; }
.home-map__detail { grid-column: 2; grid-row: 1; min-width: 0; }
.home-map figcaption { grid-column: 2; grid-row: 2; align-self: end; margin: 0; }
.outcomes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.outcomes h3 { font-size: 15px; margin-bottom: 5px; }
.outcomes p { color: var(--dim); margin: 0; }
.sales-cta { margin-top: var(--gap); background: var(--ink); border-color: var(--ink); color: #fff; }
.sales-cta h2 { color: #fff; }
.sales-cta p { max-width: 78ch; color: #dce2e5; }
.sales-cta .btn--ghost { background: transparent; border-color: #849198; color: #fff; }
.sales-cta .btn--ghost:hover { background: #293137; border-color: #aab3b8; }

/* ---- footer ---------------------------------------------------------------------------------- */
.foot { padding: 28px 0 40px; font-size: 13px; color: var(--dim); }
.foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; border-top: 1px solid var(--line-2); padding-top: 20px; }
.foot__brand { font-family: var(--serif); font-weight: 600; font-size: 16px; color: var(--ink); margin-bottom: 6px; }
.foot__head { font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.foot div > a { display: block; margin: 4px 0; }
.foot__credits { margin-top: 10px; }

/* ---- responsive ------------------------------------------------------------------------------ */
@media (min-width: 901px) {
  .grid--2 .card__head, .grid--main .card__head { min-height: 38px; }
}
@media (max-width: 1100px) {
  .pagehead--lede h1 { font-size: 38px; }
  .grid--lead { grid-template-columns: 1fr; }
  .grid--lead .stats--stack { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
}
@media (max-width: 900px) {
  .grid--2, .grid--3, .grid--main { grid-template-columns: 1fr; }
  .pagehead__bg { width: 100%; }
  .pagehead__bg::after { background: linear-gradient(180deg, rgba(238, 241, 243, 0.86) 0%, rgba(238, 241, 243, 0.9) 60%, var(--canvas) 100%); }
  .pagehead__credit { position: static; text-align: right; margin-top: 10px; }
  .prose--cols { columns: 1; }
  .foot__grid { grid-template-columns: 1fr; gap: 18px; }
  .topbar__row { height: auto; flex-wrap: wrap; padding: 8px 20px; gap: 6px 14px; }
  .nav-toggle { display: inline-flex; }
  .nav { flex: 1 0 100%; margin: 0; padding: 6px 0 2px; flex-wrap: wrap; overflow: visible; }
  .nav.nav--ready:not([data-open="true"]) { display: none; }
  .nav[data-open="true"] { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nav a { padding: 8px 8px; }
  .embed__head { grid-template-columns: 1fr; }
  .embed__head .btn { grid-column: 1; grid-row: auto; justify-self: start; }
  .outcomes { grid-template-columns: 1fr; gap: 14px; }
  .addr { grid-template-columns: 1fr 1fr; }
  .addr .field--grow { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  h1 { font-size: 28px; }
  .pagehead { padding-top: 22px; }
  .pagehead--lede h1 { font-size: 30px; }
  .dek { font-size: 15.5px; }
  .btn, .nav-toggle, .field input, .field select, .field--btn .btn { min-height: 44px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .addr { grid-template-columns: 1fr 1fr; }
  .addr .field--btn .btn { width: 100%; justify-content: center; }
  .stat__value { font-size: 26px; }
  .card { padding: 16px; }
  .card__head { grid-template-columns: 1fr; gap: 4px; }
  .card__note { max-width: none; text-align: left; }
  .blotter__row { grid-template-columns: 8px 60px 1fr; gap: 4px 8px; }
  .blotter__addr { grid-column: 3; }
  .blotter__beat { grid-column: 3; text-align: left; }
  .rank__row { grid-template-columns: 1fr 52px; }
  .rank__bar { grid-column: 1 / -1; order: 3; }
  .table { max-width: 100%; font-size: 13px; }
  .table th, .table td { padding-left: 5px; padding-right: 5px; overflow-wrap: anywhere; }
  .locate__card { grid-template-columns: 1fr; }
  .card--prose { padding: 18px; }
  .card--flush .embed__head { padding-bottom: 10px; }
  .diagram svg { display: none; }
  .diagram-list { display: grid; list-style: none; margin: 0; padding: 0; gap: 0; counter-reset: path; }
  .diagram-list li { position: relative; display: grid; gap: 1px; padding: 10px 12px 10px 42px; border-left: 2px solid var(--teal-tint); }
  .diagram-list li::before { counter-increment: path; content: counter(path); position: absolute; left: 8px; top: 9px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--teal-tint); color: var(--teal-d); font-weight: 700; }
  .diagram-list span { color: var(--dim); font-size: 13px; }
  .home-map { grid-template-columns: 1fr; grid-template-rows: none; gap: 10px; }
  .home-map .map svg, .home-map__detail, .home-map figcaption { grid-column: 1; grid-row: auto; }
}
@media (max-width: 380px) {
  .stats, .addr { grid-template-columns: 1fr; }
  .addr .field--grow { grid-column: auto; }
  .nav[data-open="true"] { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .beat path { transition: none; }
}
@media print {
  .topbar, .foot, .embed, .pagehead__actions { display: none; }
  body { background: #fff; }
  .card { box-shadow: none; }
  .pagehead__bg, .pagehead__credit { display: none; }
}

/* Home hero address search */
.hero-search { display: flex; gap: 8px; flex-wrap: nowrap; width: 100%; max-width: 860px; margin-top: 18px; }
.hero-search input { flex: 1 1 0; min-width: 0; max-width: 440px; font: inherit; font-size: 16px; color: var(--ink); background: var(--card); border: 1px solid var(--line-2); border-radius: 7px; padding: 10px 12px; min-height: 44px; }
.hero-search input:focus { border-color: var(--teal); outline: 2px solid var(--teal-tint); }
.hero-search .btn { min-height: 44px; flex: 0 0 auto; white-space: nowrap; }
.hero-search__alt { margin: 8px 0 0; font-size: 13.5px; color: var(--dim); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Recent-report lists: a header row so the columns read at a glance */
.blotter__head { display: grid; grid-template-columns: 8px 64px minmax(120px, 0.9fr) minmax(0, 1.2fr) minmax(0, 200px); gap: 10px; font-size: 12px; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; color: var(--dim); padding: 0 0 6px; border-bottom: 1px solid var(--line); }
@media (max-width: 640px) {
  .blotter__head { display: none; }
  .addr { grid-template-columns: 1fr; }
  .addr .field--grow { grid-column: auto; }
  .hero-search { flex-wrap: wrap; }
  .hero-search input { flex-basis: 100%; }
  .hero-search .btn { width: 100%; justify-content: center; }
}
