:root {
  --bg: #F4F6F7;
  --surface: #FFFFFF;
  --ink: #14202B;
  --ink-2: #3A4A56;
  --ink-3: #4A5A66;
  --line: #DDE3E7;
  --line-soft: #EDF0F2;
  --accent: #0D5670;
  --accent-dark: #08384A;
  --pro-bg: #E3EEF2;
  --pro-ink: #0A4458;
  --con-bg: #FBEEE6;
  --con-ink: #8E3D0F;
  --orange: #C2571A;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: Inter, system-ui, sans-serif; line-height: 1.5; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
h1, h2, h3 { font-family: 'Space Grotesk', Inter, sans-serif; margin: 0; }
p { margin: 0; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
@media (max-width: 600px) { .wrap { padding-left: 16px; padding-right: 16px; } }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: 'Space Grotesk', Inter, sans-serif; font-weight: 700; font-size: 21px; }
.brand .accent { color: var(--accent); }
.main-nav { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 15px; font-weight: 500; }
.main-nav a { text-decoration: none; padding: 10px 0; }

/* Layout */
.main { padding-top: 40px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 40px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-sm { display: flex; flex-direction: column; gap: 4px; }
.stack-xs { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.row { display: flex; flex-wrap: wrap; gap: 16px; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; }
.section-head h2 { font-size: 26px; }
.more { font-weight: 600; font-size: 15px; }
.muted { font-size: 14px; color: var(--ink-3); }
.muted-lg { font-size: 15px; color: var(--ink-2); }
.small { font-size: 13px; color: var(--ink-3); line-height: 1.5; }
.h-sm { font-size: 22px; }
.h-md { font-size: 24px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }

/* Hero */
.hero { display: flex; flex-direction: column; gap: 14px; max-width: 760px; }
.hero h1 { font-size: 44px; line-height: 1.1; }
@media (max-width: 600px) { .hero h1 { font-size: 32px; } }
.lede { font-size: 18px; line-height: 1.55; color: var(--ink-2); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 6px; }
.btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 6px; font-weight: 600; text-decoration: none; }
.btn-primary { background: var(--accent); color: #FFFFFF; }
.btn-primary:hover { background: var(--accent-dark); color: #FFFFFF; }
.btn-secondary { background: var(--surface); color: var(--ink); border: 1px solid #B9C4CB; }

/* Cards */
.cards { display: flex; flex-wrap: wrap; gap: 16px; }
.card { flex: 1 1 300px; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.card.tradeoff { flex-basis: 480px; gap: 14px; }
.card.tradeoff h3 { font-size: 20px; }
.sides { display: flex; flex-wrap: wrap; gap: 12px; flex: 1 1 auto; }
.side { flex: 1 1 200px; min-width: 0; border-radius: 8px; padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.side.pro { background: var(--pro-bg); }
.side.con { background: var(--con-bg); }
.side.big { flex-basis: 320px; padding: 20px; }
.side.big p { font-size: 15px; line-height: 1.55; }
.side-label { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.pro .side-label { color: var(--pro-ink); }
.con .side-label { color: var(--con-ink); }
.side-stat { font-family: 'Space Grotesk', Inter, sans-serif; font-size: 24px; font-weight: 700; line-height: 1.15; }
.side-body { font-size: 14px; line-height: 1.5; color: #22323E; }
.side-src { margin-top: auto; padding-top: 6px; font-size: 12px; color: #3E4E5A; }

/* Panels */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 24px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.panel.grow { flex: 999 1 560px; }
.panel.side-panel { flex: 1 1 320px; }
.panel.col3 { flex: 1 1 340px; }
.panel.debate { padding: 28px; }

/* Bar chart */
.bars { display: flex; flex-direction: column; gap: 14px; }
.bar-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.bar-label { flex: 0 0 210px; font-size: 14px; font-weight: 500; }
.bar-track-wrap { flex: 1 1 240px; display: flex; align-items: center; gap: 10px; min-width: 0; }
.bar-track { flex: 1 1 auto; height: 24px; background: var(--line-soft); border-radius: 4px; overflow: hidden; }
.bar { height: 100%; background: var(--orange); border-radius: 4px; min-width: 2%; }
.bar.dc { background: var(--accent); }
.bar-val { flex: 0 0 64px; text-align: right; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* Tables */
.scroll-x { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
th, td { text-align: left; }
.noise thead th { padding: 8px 6px; border-bottom: 1px solid var(--line); color: var(--ink-3); font-weight: 600; }
.noise tbody th, .noise td { padding: 9px 6px; border-bottom: 1px solid var(--line-soft); }
.noise tbody th { font-weight: 500; }
.noise tr.hi th { font-weight: 700; color: var(--accent); }
.table-box { border: 1px solid var(--line-soft); border-radius: 8px; }
.tracker { min-width: 920px; }
.tracker thead tr { background: var(--bg); color: #3E4E5A; }
.tracker thead th { padding: 10px 12px; font-weight: 600; }
.tracker tbody th, .tracker td { padding: 11px 12px; border-top: 1px solid var(--line-soft); }
.tracker tbody th { font-weight: 600; }

/* Lists */
.list-item { display: flex; flex-direction: column; gap: 4px; padding-bottom: 12px; border-bottom: 1px solid var(--line-soft); }
.flex-between { flex-direction: row; justify-content: space-between; align-items: center; gap: 12px; }
.item-title { font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--ink); text-decoration: none; }
a.item-title:hover { color: var(--accent); }
.tag { flex: 0 0 auto; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--pro-bg); color: var(--pro-ink); }
.event { flex-direction: row; align-items: center; gap: 14px; }
.date-chip { flex: 0 0 56px; height: 56px; border-radius: 8px; background: var(--con-bg); color: var(--con-ink); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.date-chip span { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; }
.date-chip b { font-size: 20px; line-height: 1; }

/* Tracker tiles and pills */
.tiles { display: flex; flex-wrap: wrap; gap: 12px; }
.tile { flex: 1 1 150px; min-width: 0; border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.tile b { font-family: 'Space Grotesk', Inter, sans-serif; font-size: 26px; }
.tile span:last-child { font-size: 13px; color: #3E4E5A; }
.dot { width: 10px; height: 10px; border-radius: 999px; }
.s-operating { background: #1E5A32; } .s-building { background: #0A4458; } .s-proposed { background: #4B2E78; } .s-stopped { background: #8E3D0F; } .s-closed { background: #2E3A44; }
.pill { display: inline-block; white-space: nowrap; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.p-operating { background: #DDEFE3; color: #1E5A32; } .p-building { background: #E3EEF2; color: #0A4458; } .p-proposed { background: #EEE8F6; color: #4B2E78; } .p-stopped { background: #FBEEE6; color: #8E3D0F; } .p-closed { background: #E6E8EA; color: #2E3A44; }

/* Opinion */
.op-tag { align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--ink); color: #FFFFFF; }
.op-title { font-size: 18px; font-weight: 600; line-height: 1.35; text-decoration: none; color: var(--ink); }
.op-title:hover { color: var(--accent); }

/* Footer */
.site-footer { background: var(--ink); color: #DCE3E8; }
.footer-row { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; padding-top: 36px; padding-bottom: 36px; }
.footer-text { flex: 1 1 360px; }
.footer-text p { font-size: 14px; line-height: 1.6; }
.footer-title { font-family: 'Space Grotesk', Inter, sans-serif; font-weight: 700; font-size: 18px; color: #FFFFFF; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 24px; font-size: 14px; }
.footer-nav a { color: #DCE3E8; padding: 10px 0; }
.footer-nav a:hover { color: #FFFFFF; }
