@font-face {
  font-family: "Host Grotesk";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("fonts/host-grotesk-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Titillium Web";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/titillium-web-400-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Titillium Web";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/titillium-web-600-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Titillium Web";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/titillium-web-700-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Titillium Web";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("fonts/titillium-web-900-latin.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --font-body: "Host Grotesk", Aptos, "Segoe UI", Arial, sans-serif;
  --font-heading: "Titillium Web", Aptos, "Segoe UI", Arial, sans-serif;
  --ink: #111;
  --muted: #555;
  --paper: #fff;
  --surface: #fff;
  --line: #d4d4cc;
  --green: #16a34a;
  --yellow: #eab308;
  --red: #dc2626;
  --gray: #7b827f;
  --brand-green: #367c2b;
  --brand-yellow: #ffde00;
  --navy: #111;
  --lime: var(--brand-yellow);
  --shadow: 0 14px 36px rgba(0, 0, 0, 0.1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.4;
}

a { color: inherit; }

p, li, td, a { overflow-wrap: anywhere; }

button, select { font: inherit; }

h1, h2, h3 { font-family: var(--font-heading); }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(240px, 430px);
  gap: 18px;
  align-items: center;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 60px);
  color: #fff;
  background: rgba(17, 17, 17, 0.98);
  border-bottom: 3px solid var(--lime);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--navy);
  background: var(--lime);
  border-radius: 50%;
  font: 900 12px/1 ui-monospace, Consolas, monospace;
}

.view-picker {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 10px 38px 10px 13px;
  color: #fff;
  background: var(--brand-green);
  border: 1px solid var(--brand-yellow);
  border-radius: 8px;
}

.page-shell {
  width: min(1480px, calc(100% - 36px));
  margin: 0 auto;
  padding: 34px 0 64px;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 34px;
  align-items: end;
  overflow: hidden;
  padding: clamp(26px, 5vw, 62px);
  color: #fff;
  background: var(--brand-green);
  border-radius: 2px 2px 28px 2px;
  box-shadow: var(--shadow);
}

.hero > *, .section, .panel, .status-card { min-width: 0; }

.national-hero { grid-template-columns: minmax(0, 1fr); }

.hero::after {
  position: absolute;
  right: -90px;
  bottom: -130px;
  width: 330px;
  height: 330px;
  border: 1px solid rgba(205, 232, 91, 0.32);
  border-radius: 50%;
  box-shadow: 0 0 0 38px rgba(205, 232, 91, 0.05), 0 0 0 76px rgba(205, 232, 91, 0.035);
  content: "";
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--lime);
  font: 800 12px/1.2 ui-monospace, Consolas, monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 900px;
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(32px, 5.5vw, 62px);
  font-weight: 600;
  line-height: 0.96;
  letter-spacing: -0.045em;
}

.hero-summary {
  max-width: 850px;
  margin: 22px 0 0;
  color: #fff;
  font-size: clamp(14px, 1.6vw, 16px);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 29px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #eaf0ed;
  font-size: 12px;
  font-weight: 700;
}

.notice {
  display: flex;
  gap: 12px;
  margin: 18px 0 0;
  padding: 14px 16px;
  background: #fff8d8;
  border: 1px solid #dec968;
  border-left: 5px solid var(--yellow);
  border-radius: 4px;
  font-size: 13px;
}

.notice strong { white-space: nowrap; }

.section {
  margin-top: 42px;
  scroll-margin-top: 100px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ink);
}

.section-heading h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(23px, 3.2vw, 34px);
  font-weight: 600;
  letter-spacing: -0.035em;
}

.section-heading p {
  max-width: 600px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.status-card {
  position: relative;
  display: flex;
  min-height: 270px;
  flex-direction: column;
  padding: 20px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 6px solid var(--tone, var(--gray));
  border-radius: 4px 4px 18px 4px;
  box-shadow: 0 7px 20px rgba(20, 37, 31, 0.04);
}

.status-card::after {
  position: absolute;
  right: -22px;
  top: -28px;
  width: 100px;
  height: 100px;
  background: color-mix(in srgb, var(--tone, var(--gray)) 11%, transparent);
  border-radius: 50%;
  content: "";
}

.card-head {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
}

.card-head h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.15;
}

.status-label {
  align-self: flex-start;
  margin: 10px 0 14px;
  padding: 4px 8px;
  color: #fff;
  background: var(--tone, var(--gray));
  border-radius: 3px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.evidence {
  margin: 0 0 14px;
  color: #34413c;
  font-size: 12px;
}

.card-meta {
  display: grid;
  gap: 7px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-size: 11px;
}

.card-meta b { color: var(--ink); }

.source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.source-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--brand-green);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.source-note {
  color: var(--muted);
  text-decoration: none;
}

.coverage-grid, .split-grid, .metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.panel, .metric {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px 4px 16px 4px;
  box-shadow: 0 7px 20px rgba(20, 37, 31, 0.04);
}

.panel { padding: 20px; }

.panel h3 { margin: 0 0 12px; font-size: 17px; }

.coverage-list, .signal-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.coverage-list li {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.coverage-list li:last-child { border-bottom: 0; }

.coverage-list b { font-family: ui-monospace, Consolas, monospace; }

.signal-list li {
  position: relative;
  padding: 0 0 10px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.signal-list li::before {
  position: absolute;
  left: 0;
  top: 8px;
  width: 7px;
  height: 7px;
  background: var(--lime);
  border: 1px solid var(--ink);
  border-radius: 50%;
  content: "";
}

.risk-list li::before { background: #f6a38f; }

.metric { padding: 18px; }

.metric-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.metric-value {
  display: block;
  margin: 8px 0;
  font: 900 clamp(22px, 3.2vw, 32px)/1 ui-monospace, Consolas, monospace;
  letter-spacing: -0.06em;
}

.metric p { margin: 0; color: var(--muted); font-size: 11px; }

.visual-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.visual-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  margin: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px 4px 16px 4px;
  box-shadow: 0 7px 20px rgba(20, 37, 31, 0.04);
}

.visual-card h3 { margin: 0; padding: 14px 16px; font-size: 16px; }

.visual-link { display: block; background: #fff; }

.visual-card img {
  display: block;
  width: 100%;
  height: clamp(260px, 38vw, 520px);
  object-fit: contain;
  background: #fff;
}

.visual-card figcaption {
  display: grid;
  gap: 9px;
  padding: 14px 16px 16px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 12px;
}

.visual-card figcaption p { margin: 0; }

.visual-stats {
  display: grid;
  gap: 0;
  margin: 2px 0;
}

.visual-stats > div {
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.visual-stats dt {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--ink);
  font-weight: 800;
}

.visual-stats dt strong {
  color: var(--brand-green);
  font: 900 16px/1 ui-monospace, Consolas, monospace;
}

.visual-stats dd { margin: 4px 0 0; }

.climate-table { margin-top: 16px; }

.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); }

table { width: 100%; border-collapse: collapse; }

th, td { padding: 13px 15px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }

th {
  color: #fff;
  background: var(--navy);
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

td { font-size: 12px; }
tr:last-child td { border-bottom: 0; }

.confidence {
  display: inline-flex;
  padding: 3px 7px;
  color: var(--ink);
  background: #e8e5da;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.method-box {
  padding: 18px;
  color: #d9e3df;
  background: var(--navy);
  border-radius: 4px;
  font-size: 12px;
}

.method-box summary { cursor: pointer; color: #fff; font-weight: 800; }
.method-box p { max-width: 950px; }

.page-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 40px;
  padding-top: 18px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 11px;
}

/* Hub */
.hub-body { height: 100vh; overflow: hidden; background: var(--navy); }

.hub {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  height: 100vh;
}

.hub-sidebar {
  display: flex;
  min-height: 0;
  flex-direction: column;
  padding: 28px 22px;
  color: #fff;
  background: var(--navy);
  border-right: 1px solid #365148;
}

.hub-logo {
  display: block;
  width: 100%;
  max-width: 275px;
  height: auto;
  margin: 4px 0 18px;
}

.hub-sidebar > p { margin: 0 0 18px; color: #aebfba; font-size: 12px; }

.hub-nav {
  display: grid;
  min-height: 0;
  gap: 5px;
  overflow-y: auto;
  padding-right: 5px;
}

.hub-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  color: #d6e0dc;
  border: 1px solid transparent;
  border-radius: 5px;
  font-size: 12px;
  text-decoration: none;
}

.hub-link::before { width: 7px; height: 7px; background: #668078; border-radius: 50%; content: ""; }
.hub-link:hover, .hub-link.active { color: #fff; background: var(--brand-green); border-color: var(--brand-yellow); }
.hub-link.active::before { background: var(--lime); }

.hub-bottom { margin-top: 14px; padding-top: 14px; border-top: 1px solid #365148; }

.hub-open {
  display: block;
  padding: 10px;
  color: var(--navy);
  background: var(--lime);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

.hub-frame-wrap { position: relative; min-width: 0; background: var(--paper); }
.hub-frame { width: 100%; height: 100%; border: 0; background: var(--paper); }

.hub-mobile-bar { display: none; }

@media (max-width: 980px) {
  .status-grid, .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { grid-template-columns: 1fr; align-items: start; }
  .hub { grid-template-columns: 260px minmax(0, 1fr); }
}

@media (max-width: 720px) {
  .topbar { position: relative; grid-template-columns: 1fr; gap: 9px; padding: 12px 18px; }
  .page-shell { width: min(100% - 22px, 1480px); padding-top: 12px; }
  .hero { padding: 28px 22px; border-radius: 2px 2px 18px 2px; }
  .hero h1 { font-size: 36px; }
  .status-grid, .coverage-grid, .split-grid, .metric-grid, .visual-grid { grid-template-columns: 1fr; }
  .visual-card img { height: auto; max-height: 520px; }
  .section { margin-top: 30px; }
  .section-heading { display: block; }
  .section-heading p { margin-top: 8px; text-align: left; }
  .notice { display: block; }
  .notice strong, .notice span { display: block; }
  .notice span { margin-top: 5px; }
  .page-footer { display: block; }
  .hub-body { height: auto; overflow: auto; }
  .hub { display: block; height: auto; }
  .hub-sidebar { min-height: auto; padding: 15px; border-right: 0; }
  .hub-logo, .hub-sidebar > p { display: none; }
  .hub-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 38vh; }
  .hub-link { padding: 7px 8px; font-size: 11px; }
  .hub-bottom { margin-top: 10px; padding-top: 10px; }
  .hub-frame-wrap { height: 72vh; }
}

@media print {
  .topbar { position: static; }
  .page-shell { width: 100%; padding: 0; }
  .hero { box-shadow: none; }
  .status-grid { grid-template-columns: repeat(2, 1fr); }
  .status-card, .panel, .metric { break-inside: avoid; box-shadow: none; }
}
