@font-face { font-family: "Plex"; src: url("fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex"; src: url("fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plex"; src: url("fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plex"; src: url("fonts/ibm-plex-sans-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  color-scheme: light;
  --ink: #0f1b2d;
  --ink-2: #1b2a40;
  --stone: #f1f2ee;
  --paper: #ffffff;
  --line: #dcded7;
  --text: #16202e;
  --text-2: #4b5563;
  --text-3: #6b7280;
  --teal: #127c73;
  --teal-bright: #2fb3a6;
  --signal: #2a78d6;
  --good: #0ca30c;
  --warning: #fab219;
  --serious: #ec835a;
  --critical: #d03b3b;
  --r-lg: 14px;
  --r-md: 8px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
body {
  margin: 0; background: var(--stone); color: var(--text);
  font-family: "Plex", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px; line-height: 1.55; font-feature-settings: "tnum" 1;
}
a { color: var(--teal); }
:focus-visible { outline: 2px solid var(--teal-bright); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }

/* ---------- Navigation ---------- */
.nav { background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 30; border-bottom: 1px solid rgba(255,255,255,0.08); }
.nav-inner { max-width: 1240px; margin: 0 auto; padding: 0 24px; height: 60px; display: flex; align-items: center; gap: 28px; }
.wordmark { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 600; font-size: 17px; letter-spacing: 0.1px; white-space: nowrap; }
.mark { width: 24px; height: 24px; color: #fff; }
.tabs { display: flex; gap: 4px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.tabs a { color: #c9d1dc; text-decoration: none; font-size: 14.5px; padding: 8px 12px; border-radius: 6px; white-space: nowrap; }
.tabs a:hover { color: #fff; background: rgba(255,255,255,0.06); }
.tabs a[aria-current="page"] { color: #fff; background: rgba(47,179,166,0.18); box-shadow: inset 0 -2px 0 var(--teal-bright); }
.demo-pill { font-size: 12.5px; color: #0f1b2d; background: #f5d78e; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
@media (max-width: 860px) { .demo-pill { display: none; } .nav-inner { gap: 14px; } .wordmark span { display: none; } }

/* ---------- Hero ---------- */
.hero { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.hero-grid {
  position: absolute; inset: 0; opacity: 0.5;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  mask-image: linear-gradient(90deg, #000 0%, #000 45%, transparent 85%);
}
.hero-inner { position: relative; max-width: 1240px; margin: 0 auto; padding: 64px 24px 72px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(34px, 4.4vw, 54px); line-height: 1.08; letter-spacing: -0.8px; font-weight: 600; margin: 0 0 20px; max-width: 14ch; }
.lede { font-size: 18.5px; color: #c9d1dc; max-width: 46ch; margin: 0 0 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 36px; }
.btn { display: inline-block; font: inherit; font-size: 15px; font-weight: 600; text-decoration: none; padding: 11px 18px; border-radius: var(--r-md); border: 1px solid transparent; cursor: pointer; }
.btn.primary { background: var(--teal-bright); color: var(--ink); }
.btn.primary:hover { background: #45c4b7; }
.btn.quiet { color: #fff; border-color: rgba(255,255,255,0.28); }
.btn.quiet:hover { border-color: #fff; }
.btn.solid { background: var(--ink); color: #fff; }
.btn.outline { background: var(--paper); color: var(--text); border-color: var(--line); }
.hero-facts { display: grid; grid-template-columns: repeat(3, auto); gap: 8px 32px; margin: 0; justify-content: start; }
.hero-facts div { border-left: 2px solid rgba(47,179,166,0.6); padding-left: 12px; }
.hero-facts dt { font-size: 13px; color: #9aa6b6; }
.hero-facts dd { margin: 0; font-size: 22px; font-weight: 600; }
.hero-map-frame { margin: 0; position: relative; }
.hero-map { height: 470px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid rgba(255,255,255,0.14); box-shadow: 0 30px 60px -20px rgba(0,0,0,0.55); background: #e8ebe6; }
.hero-map-frame figcaption { font-size: 13px; color: #9aa6b6; margin-top: 10px; }
.map-chip { position: absolute; z-index: 5; background: rgba(255,255,255,0.96); color: var(--text); border-radius: 10px; padding: 10px 12px; font-size: 13px; box-shadow: 0 8px 24px -8px rgba(15,27,45,0.35); max-width: 230px; }
.map-chip strong { display: block; font-size: 14px; }
.map-chip.bl { bottom: 12px; left: 12px; font-size: 12.5px; padding: 6px 10px; }
@media (max-width: 960px) { .hero-inner { grid-template-columns: 1fr; padding-top: 40px; } .hero-map { height: 360px; } .hero-facts { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Layout ---------- */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 760px; }
.block { padding: 56px 0 8px; }
.block h2 { font-size: 26px; font-weight: 600; letter-spacing: -0.3px; margin: 0 0 24px; max-width: 34ch; }
.page-head { padding: 36px 0 20px; }
.page-head h1 { font-size: 32px; font-weight: 600; letter-spacing: -0.4px; margin: 0 0 6px; }
.page-head p { color: var(--text-2); margin: 0; max-width: 75ch; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px; margin-bottom: 20px; }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.panel h2 { font-size: 17px; font-weight: 600; margin: 0; }
.hint { font-size: 13px; color: var(--text-3); }
.split { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; }
.split.even { grid-template-columns: 1fr 1fr; }
.split > .panel { margin-bottom: 20px; }
@media (max-width: 960px) { .split, .split.even { grid-template-columns: 1fr; } }
.body-copy { color: var(--text-2); max-width: 78ch; margin: 0 0 12px; }
.fineprint { font-size: 13px; color: var(--text-3); margin: 0 0 24px; }

/* ---------- Who (problems by buyer) ---------- */
.who { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.who-item { padding: 22px 24px 22px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr; gap: 6px; }
.who-item:nth-child(odd) { padding-right: 32px; border-right: 1px solid var(--line); }
.who-item:nth-child(even) { padding-left: 32px; }
.who-item h3 { margin: 0; font-size: 15px; font-weight: 600; color: var(--teal); }
.who-item .q { font-size: 19px; font-weight: 500; color: var(--text); margin: 0; line-height: 1.35; }
.who-item .a { color: var(--text-2); margin: 0; }
.who-item a { font-weight: 600; font-size: 14.5px; text-decoration: none; }
.who-item a:hover { text-decoration: underline; }
@media (max-width: 760px) { .who { grid-template-columns: 1fr; } .who-item:nth-child(odd), .who-item:nth-child(even) { padding: 20px 0; border-right: 0; } }

/* ---------- Previews ---------- */
.previews { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.preview { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; text-decoration: none; color: var(--text); display: flex; flex-direction: column; gap: 10px; }
.preview:hover { border-color: var(--teal); }
.preview h3 { margin: 0; font-size: 16px; font-weight: 600; }
.preview p { margin: 0; font-size: 14px; color: var(--text-2); }
.preview .viz { height: 92px; display: flex; align-items: flex-end; }
.preview .go { margin-top: auto; font-size: 14px; font-weight: 600; color: var(--teal); }
@media (max-width: 960px) { .previews { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .previews { grid-template-columns: 1fr; } }

/* ---------- Trust ---------- */
.trust { padding-bottom: 48px; }
.trust-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.trust-grid h3 { font-size: 16px; margin: 0 0 6px; font-weight: 600; }
.trust-grid p { margin: 0; color: var(--text-2); font-size: 15px; }
.trust-grid > div { border-top: 3px solid var(--ink); padding-top: 14px; }
@media (max-width: 960px) { .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .trust-grid { grid-template-columns: 1fr; } }

/* ---------- KPIs ---------- */
.kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); margin-bottom: 20px; overflow: hidden; }
.kpi { padding: 14px 18px; border-right: 1px solid var(--line); }
.kpi:last-child { border-right: 0; }
.kpi .label { font-size: 13.5px; color: var(--text-2); }
.kpi .value { font-size: 30px; font-weight: 600; line-height: 1.15; letter-spacing: -0.4px; }
.kpi .note { font-size: 12.5px; color: var(--text-3); }
@media (max-width: 960px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kpi { border-bottom: 1px solid var(--line); } }

/* ---------- Map + list ---------- */
.map { height: 500px; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); background: #e8ebe6; }
.map.small { height: 300px; }
.toggles { display: flex; gap: 16px; font-size: 14px; color: var(--text-2); flex-wrap: wrap; }
.toggles input { accent-color: var(--teal); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 13px; color: var(--text-2); }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
select { font: inherit; font-size: 14px; padding: 6px 10px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--paper); color: var(--text); }
.site-list { list-style: none; margin: 0; padding: 0; max-height: 520px; overflow: auto; }
.site-list li a { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 10px 8px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text); border-radius: 6px; }
.site-list li a:hover { background: #eef5f4; }
.s-name { font-weight: 600; font-size: 15px; }
.s-sub { font-size: 13px; color: var(--text-3); }
.s-score { text-align: right; font-weight: 600; font-size: 18px; }

.band { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; }
.band .dot { width: 10px; height: 10px; border-radius: 50%; }
.band .icon { font-size: 11px; width: 10px; text-align: center; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--text-2); font-weight: 600; font-size: 13px; }
td.num, th.num { text-align: right; }
tbody tr:hover { background: #f7f8f5; }
td a { color: var(--text); font-weight: 600; text-decoration: none; }
td a:hover { color: var(--teal); text-decoration: underline; }

/* ---------- Bars ---------- */
.bars { display: flex; flex-direction: column; gap: 7px; }
.bar-row { display: grid; grid-template-columns: minmax(120px, 190px) 1fr 44px; align-items: center; gap: 10px; font-size: 14px; }
.bar-row .b-label { color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-row .b-track { height: 16px; }
.bar-row .b-fill { display: block; height: 100%; border-radius: 0 4px 4px 0; min-width: 2px; }
.bar-row .b-value { text-align: right; color: var(--text); }
.bar-row:hover .b-label { color: var(--text); }

/* ---------- Heatmap ---------- */
.heatmap { overflow-x: auto; }
.heatmap table td, .heatmap table th { white-space: nowrap; }
.heatmap td.cell { padding: 0; border: 2px solid var(--paper); text-align: center; font-size: 13px; font-weight: 600; height: 34px; min-width: 110px; }
.heatmap th.col { text-align: center; }
.heatmap td.total { font-weight: 600; text-align: right; }

/* ---------- Martyn's Law ---------- */
.tier-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); margin-bottom: 20px; overflow: hidden; }
.tier { padding: 16px 20px; border-right: 1px solid var(--line); }
.tier:last-child { border-right: 0; }
.tier .t-count { font-size: 32px; font-weight: 600; line-height: 1.1; }
.tier .t-label { font-weight: 600; }
.tier .t-note { font-size: 13.5px; color: var(--text-2); }
.tier .t-sites { font-size: 13px; color: var(--text-3); margin-top: 6px; }
.readiness td.st { text-align: center; padding: 8px 6px; }
.readiness th { white-space: normal; vertical-align: bottom; }
.readiness th.st { text-align: center; min-width: 96px; }
.st-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; }
.st-done { background: #e3f4e3; color: #0a5c0a; }
.st-prog { background: #fdf0cf; color: #6b4a00; }
.st-todo { background: #fbe3e3; color: #8a1f1f; }
.st-na { color: var(--text-3); font-weight: 400; }
.meter { display: flex; align-items: center; gap: 8px; }
.meter .track { width: 90px; height: 8px; background: #eceee8; border-radius: 4px; overflow: hidden; }
.meter .fill { height: 100%; background: var(--teal); }
.grey-list { margin: 0; padding-left: 20px; }
.grey-list li { margin-bottom: 6px; }

/* ---------- Data checks ---------- */
.checks { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }
.check { background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--warning); border-radius: var(--r-lg); padding: 18px 20px; }
.check.serious { border-left-color: var(--serious); }
.check h2 { font-size: 17px; margin: 0 0 4px; }
.check .meta { font-size: 13.5px; color: var(--text-2); margin-bottom: 12px; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.compare > div { background: #f7f8f5; border-radius: var(--r-md); padding: 10px 12px; font-size: 14px; }
.compare .src { font-size: 12.5px; color: var(--text-3); }
.check .fix { margin: 12px 0 0; font-size: 14px; }
@media (max-width: 640px) { .compare { grid-template-columns: 1fr; } }

/* ---------- Site detail ---------- */
.crumbs { padding-top: 24px; font-size: 14px; }
.crumbs a { text-decoration: none; }
.site-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; padding: 8px 0 20px; }
.site-head h1 { font-size: 32px; font-weight: 600; letter-spacing: -0.4px; margin: 0; }
.site-head .sub { color: var(--text-2); }
.score-badge { display: flex; align-items: center; gap: 14px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 10px 16px; }
.score-badge .num { font-size: 36px; font-weight: 600; line-height: 1; }
.score-badge .of { font-size: 13px; color: var(--text-3); }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; font-size: 14.5px; }
.facts dt { color: var(--text-3); }
.facts dd { margin: 0; }
.actions { margin: 0; padding-left: 20px; }
.actions li { margin-bottom: 8px; }
.share-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.share-note { font-size: 14px; color: var(--text-2); background: #eef5f4; padding: 10px 12px; border-radius: var(--r-md); word-break: break-all; margin-top: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 960px) { .grid3 { grid-template-columns: 1fr; } }

/* ---------- Summary (shared) ---------- */
.summary { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 32px; margin: 40px 0; }
.assessed { display: inline-flex; align-items: center; gap: 8px; border: 2px solid var(--teal); color: var(--teal); border-radius: 999px; padding: 5px 14px; font-weight: 600; font-size: 14px; }
.summary h1 { font-size: 30px; font-weight: 600; margin: 18px 0 4px; letter-spacing: -0.3px; }
.summary .sub { color: var(--text-2); margin-bottom: 22px; }
.summary-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: 20px; }
.summary-stats > div { padding: 14px 16px; border-right: 1px solid var(--line); }
.summary-stats > div:last-child { border-right: 0; }
.summary-stats .label { font-size: 13.5px; color: var(--text-2); }
.summary-stats .value { font-size: 20px; font-weight: 600; margin-top: 4px; }
.summary-stats .value .band { font-size: 20px; }
.cta { margin-top: 22px; padding: 16px; background: #eef5f4; border-radius: var(--r-md); }
@media (max-width: 640px) { .summary-stats { grid-template-columns: 1fr; } .summary-stats > div { border-right: 0; border-bottom: 1px solid var(--line); } }

/* ---------- Footer, tooltip, map popups ---------- */
.foot { border-top: 1px solid var(--line); margin-top: 24px; padding: 20px 0 36px; font-size: 13px; color: var(--text-3); }
.foot p { margin: 4px 0; max-width: 110ch; }
.tooltip { position: fixed; z-index: 100; pointer-events: none; background: var(--ink); color: #fff; font-size: 13px; padding: 7px 9px; border-radius: 6px; max-width: 280px; box-shadow: 0 6px 18px rgba(15,27,45,0.25); }
.maplibregl-popup-content { font-family: inherit; font-size: 13.5px; padding: 8px 11px; border-radius: 8px; }
.maplibregl-ctrl-attrib { font-size: 11px; }

/* ---------- Hero map toolbar, tour card, legend ---------- */
.map-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.lenses { display: inline-flex; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.14); border-radius: 10px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.lenses button { font: inherit; font-size: 13.5px; color: #c9d1dc; background: transparent; border: 0; padding: 6px 11px; border-radius: 7px; cursor: pointer; }
.lenses button:hover { color: #fff; }
.lenses button[aria-checked="true"] { background: #fff; color: var(--ink); font-weight: 600; }
.tour-btn { font: inherit; font-size: 13px; color: #c9d1dc; background: transparent; border: 1px solid rgba(255,255,255,0.22); border-radius: 8px; padding: 5px 10px; cursor: pointer; }
.tour-btn:hover { color: #fff; border-color: #fff; }
.hero-map-wrap { position: relative; }
.hero-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: #c9d1dc; margin-top: 10px; min-height: 20px; }
.hero-legend .sw { border: 1px solid rgba(255,255,255,0.5); }
.site-card {
  position: absolute; top: 14px; right: 14px; z-index: 6; width: 260px; background: #fff; color: var(--text); text-decoration: none;
  border-radius: 12px; padding: 14px 16px; box-shadow: 0 18px 40px -16px rgba(15,27,45,0.55);
  transition: opacity .35s ease, transform .35s ease;
}
.site-card.out { opacity: 0; transform: translateY(-6px); }
.site-card .sc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.site-card .sc-name { font-weight: 600; font-size: 15px; line-height: 1.25; }
.site-card .sc-sub { font-size: 12.5px; color: var(--text-3); }
.site-card .sc-score { font-size: 30px; font-weight: 600; line-height: 1; text-align: right; }
.site-card .sc-band { margin: 6px 0 10px; }
.site-card .sc-row { display: grid; grid-template-columns: 96px 1fr 26px; gap: 8px; align-items: center; font-size: 12.5px; color: var(--text-2); margin-top: 5px; }
.site-card .sc-track { height: 6px; background: #eceee8; border-radius: 3px; overflow: hidden; }
.site-card .sc-fill { display: block; height: 100%; width: 0; background: var(--signal); border-radius: 3px; transition: width .9s cubic-bezier(.2,.7,.2,1); }
.site-card .sc-val { text-align: right; color: var(--text); }
.site-card .sc-open { display: block; margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--teal); }
@media (max-width: 560px) { .site-card { width: auto; left: 12px; right: 12px; top: auto; bottom: 48px; } }

/* ---------- Explorer ---------- */
.explorer h2 { margin-bottom: 6px; }
.ex-controls { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 16px 0; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips button { font: inherit; font-size: 14px; border: 1px solid var(--line); background: var(--paper); color: var(--text); padding: 6px 12px; border-radius: 999px; cursor: pointer; }
.chips button:hover { border-color: var(--teal); }
.chips button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.sort-label { font-size: 14px; color: var(--text-2); display: flex; align-items: center; gap: 8px; }
.ex-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; margin-bottom: 14px; }
.ex-kpis > div { padding: 12px 16px; border-right: 1px solid var(--line); }
.ex-kpis > div:last-child { border-right: 0; }
.ex-kpis .label { font-size: 13px; color: var(--text-2); }
.ex-kpis .value { font-size: 28px; font-weight: 600; line-height: 1.15; }
@media (max-width: 760px) { .ex-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ex-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--text-2); margin-bottom: 10px; }
.ex-legend .sq { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.ex-chart { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 10px 16px; transition: height .6s ease; }
.ex-row { position: absolute; left: 16px; right: 16px; height: 38px; display: grid; grid-template-columns: minmax(150px, 240px) 1fr 52px; gap: 12px; align-items: center;
  transition: transform .7s cubic-bezier(.2,.7,.2,1), opacity .45s ease; text-decoration: none; color: var(--text); border-radius: 6px; }
.ex-row:hover { background: #f4f6f2; }
.ex-row.gone { opacity: 0; pointer-events: none; }
.ex-row .ex-name { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ex-row .ex-name small { color: var(--text-3); font-size: 12px; margin-left: 6px; }
.ex-row .ex-bar { display: flex; height: 18px; gap: 2px; }
.ex-row .seg { height: 100%; transition: width .8s cubic-bezier(.2,.7,.2,1), opacity .4s; }
.ex-row .seg:first-child { border-radius: 0; }
.ex-row .seg:last-child { border-radius: 0 4px 4px 0; }
.ex-row .ex-val { text-align: right; font-weight: 600; }
.ex-row.dim .seg { opacity: 0.25; }
.ex-row.dim .seg.on { opacity: 1; }
.hero-cap { font-size: 13px; color: #9aa6b6; margin: 4px 0 0; min-height: 20px; }

/* ---------- Crime trend (site page) ---------- */
.trend { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; height: 190px; align-items: end; }
.t-col { display: grid; grid-template-rows: auto 1fr auto; height: 100%; text-align: center; gap: 4px; }
.t-col .t-val { font-size: 13px; font-weight: 600; }
.t-col .t-bar { align-self: end; background: var(--signal); border-radius: 4px 4px 0 0; transition: height .9s cubic-bezier(.2,.7,.2,1); }
.t-col .t-lab { font-size: 13px; color: var(--text-3); }
.trend > .hint { grid-column: 1 / -1; align-self: center; }
