@font-face { font-family: "DM Sans"; src: url("DMSans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("DMSans-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("DMSans-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("DMSans-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "DM Serif Display"; src: url("DMSerifDisplay-400.woff2") format("woff2"); font-display: swap; }

:root {
  --navy: #0D2B5E; --navy-mid: #1A4080; --accent: #1A5DC8; --blue-light: #E8F0FC;
  --gray-50: #F8F9FB; --gray-100: #F0F2F6; --gray-200: #E2E6EE; --gray-400: #9AA3B4; --muted: #5A6478;
  --ink: #1A1E2E; --transit: #C2621B; --white: #fff; --radius: 6px; --gutter: 48px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; font-family: "DM Sans", system-ui, sans-serif; color: var(--ink); background: var(--white);
       font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
h1, h2 { font-family: "DM Serif Display", Georgia, serif; font-weight: 400; color: var(--navy); line-height: 1.12; margin: 0 0 14px; }
h1 { font-size: clamp(32px, 4.4vw, 50px); letter-spacing: -0.01em; }
h2 { font-size: clamp(26px, 3vw, 34px); }
h3 { font-size: 16px; color: var(--navy); margin: 22px 0 8px; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); }
.kicker { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin: 0 0 12px; }
.sub { color: var(--muted); max-width: 820px; margin: 0 0 22px; }
.note { font-size: 13px; color: var(--muted); line-height: 1.5; }

.top { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,0.96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--gray-200); }
.top-inner { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand img { height: 28px; width: auto; }
.top nav { display: flex; gap: 22px; margin-left: auto; }
.top nav a { color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 500; }
.top nav a:hover { color: var(--accent); }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 11px 18px; border-radius: var(--radius); font-weight: 600;
       font-size: 15px; text-decoration: none; border: 1.5px solid transparent; transition: background .15s, color .15s; }
.btn-sm { padding: 8px 14px; font-size: 14px; }
.btn-primary { background: var(--navy); color: white; }
.btn-primary:hover { background: var(--navy-mid); }
.btn-ghost { border-color: var(--gray-200); color: var(--navy); background: white; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.hero { padding: 48px 0 40px; background: linear-gradient(180deg, var(--gray-50), white); }
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: 48px; align-items: start; }
.q { background: var(--navy); color: white; border-radius: var(--radius); padding: 16px 20px; font-size: 17px; line-height: 1.5; margin: 18px 0; }
.q span { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #9FBBEA; margin-bottom: 4px; }
.answer { border-left: 3px solid var(--accent); padding-left: 16px; font-size: 16.5px; margin: 0 0 22px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.periods { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 14px; margin: 0; border-top: 1px solid var(--gray-200); padding-top: 14px; }
.periods dt { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.periods dd { margin: 2px 0 0; font-size: 13.5px; line-height: 1.4; }
.hero-fig { margin: 0; background: white; border: 1px solid var(--gray-200); border-radius: 10px; padding: 12px; box-shadow: 0 4px 16px rgba(13,43,94,0.08); }
.hero-fig figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }

.band { background: var(--navy); color: white; padding: 44px 0; }
.band h2 { color: white; }
.findings { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 32px; counter-reset: f; }
.findings li { counter-increment: f; position: relative; padding-left: 38px; font-size: 15px; line-height: 1.55; color: #DCE6F7; }
.findings li::before { content: counter(f); position: absolute; left: 0; top: 1px; width: 26px; height: 26px; border-radius: 50%; background: var(--accent);
                       color: white; font-weight: 700; font-size: 13px; text-align: center; line-height: 26px; }
.findings b { color: white; }

.mapsec { padding: 52px 0 30px; }
.map-grid { display: grid; grid-template-columns: 300px 1fr; gap: 20px; }
.panel { border: 1px solid var(--gray-200); border-radius: 10px; padding: 4px 16px 14px; background: var(--gray-50); max-height: 640px; overflow: auto; }
.ctl h3 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 14px 0 8px; }
.ctl label { display: flex; gap: 8px; align-items: center; font-size: 14px; margin: 5px 0; cursor: pointer; }
.ctl input { accent-color: var(--navy); width: 16px; height: 16px; }
.ctl select { width: 100%; margin-top: 6px; padding: 7px 8px; border: 1px solid var(--gray-200); border-radius: var(--radius); font: inherit; font-size: 14px; background: white; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button { font: inherit; font-size: 13px; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--gray-200); background: white; color: var(--navy); cursor: pointer; }
.seg button.on { background: var(--navy); color: white; border-color: var(--navy); }
.seg-sm { margin: 6px 0 4px; }
.geostats { margin-top: 12px; background: white; border: 1px solid var(--gray-200); border-radius: 8px; padding: 10px 12px; font-size: 13.5px; }
.geostats .gt { font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.geostats dl { display: grid; grid-template-columns: 1fr auto; gap: 3px 10px; margin: 0; }
.geostats dt { color: var(--muted); }
.geostats dd { margin: 0; text-align: right; font-weight: 600; }
.geostats p { margin: 8px 0 0; font-size: 12px; color: var(--muted); line-height: 1.4; }
.mapwrap { position: relative; }
#mapview { height: 640px; border-radius: 10px; border: 1px solid var(--gray-200); overflow: hidden; background: #F6F7F9; }
.mapnote { font-size: 13px; color: var(--transit); margin: 6px 0 0; }
#legend { font-size: 13px; }
.lg-row { display: flex; align-items: center; gap: 8px; margin: 4px 0; }
.lg-sw { width: 16px; height: 12px; border-radius: 2px; flex: none; }
.lg-line { width: 18px; height: 0; border-top: 3px solid; flex: none; }
.lg-dot { width: 12px; height: 12px; border-radius: 50%; flex: none; border: 2px solid white; box-shadow: 0 0 0 1px var(--gray-400); }
.lg-title { font-weight: 600; margin-top: 8px; font-size: 12.5px; color: var(--navy); }
.maplibregl-popup-content { font-family: "DM Sans", sans-serif; font-size: 13px; line-height: 1.45; padding: 10px 12px; border-radius: 8px; max-width: 280px; }
.pp-t { font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.pp-n { color: var(--muted); font-size: 12px; margin-top: 4px; }

.sec { padding: 56px 0; }
.sec.alt { background: var(--gray-50); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.chart { width: 100%; min-height: 220px; }
.chart svg { width: 100%; height: auto; display: block; font-family: "DM Sans", sans-serif; }
.alert { background: #FDF6F2; border: 1px solid #F1D6C8; border-radius: 8px; padding: 10px 14px; font-size: 14px; margin-top: 12px; }
.tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); border-bottom: 2px solid var(--navy); padding: 8px 10px 8px 0; vertical-align: bottom; }
td { border-bottom: 1px solid var(--gray-200); padding: 8px 10px 8px 0; vertical-align: top; }
.num { text-align: right; white-space: nowrap; }
tr.grp td { font-size: 12px; font-weight: 700; color: var(--muted); padding-top: 14px; border-bottom: 2px solid var(--navy); }
.moe { color: var(--muted); font-size: 12px; font-weight: 400; }
.st { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 4px; white-space: nowrap; }
.st-not { background: #FBE9E2; color: #9A3B12; }
.st-obtained { background: var(--blue-light); color: var(--navy); }
.st-context { background: #F3EEE6; color: #7A5A2E; }
.ctxfor { display: block; font-size: 11px; color: var(--muted, #5A6478); }
table.cov td:first-child, table.zones td:first-child { min-width: 150px; }
figure { margin: 0; }
figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; }
details { border-top: 1px solid var(--gray-200); padding: 10px 0; }
summary { cursor: pointer; font-weight: 600; color: var(--navy); }
details p { font-size: 15px; }
.sources ul { columns: 2; column-gap: 32px; font-size: 13.5px; padding-left: 18px; }
.sources li { break-inside: avoid; margin-bottom: 4px; }
.dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.dl a { display: block; border: 1px solid var(--gray-200); background: white; border-radius: 8px; padding: 14px 16px; text-decoration: none; color: var(--ink); }
.dl a:hover { border-color: var(--accent); }
.dl b { display: block; color: var(--navy); }
.dl span { font-size: 13px; color: var(--muted); }
.foot { background: var(--navy); color: #C9D8F2; padding: 36px 0; font-size: 14px; }
.foot-inner { display: grid; grid-template-columns: 1fr 2fr; gap: 32px; }
.foot img { height: 26px; width: auto; margin-bottom: 8px; }
.foot a { color: white; }
.foot p { margin: 0 0 6px; }

@media (max-width: 1080px) {
  .hero-grid, .two { grid-template-columns: 1fr; }
  .findings { grid-template-columns: 1fr 1fr; }
  .top nav { display: none; }
  .top-inner .btn { margin-left: auto; }
}
@media (max-width: 760px) {
  :root { --gutter: 16px; }
  body { font-size: 15px; }
  .hero { padding: 28px 0; }
  .findings { grid-template-columns: 1fr; }
  .map-grid { grid-template-columns: 1fr; }
  .panel { order: 2; max-height: none; }
  #mapview { height: 70vh; min-height: 420px; }
  .periods { grid-template-columns: 1fr 1fr; }
  .dl { grid-template-columns: 1fr; }
  .sources ul { columns: 1; }
  .foot-inner { grid-template-columns: 1fr; }
  table { font-size: 13px; }
  .q { font-size: 16px; }
}
/* popup close control: a touch sized target (at least 32 px) */
.maplibregl-popup-close-button { width: 32px; height: 32px; font-size: 22px; line-height: 30px; padding: 0; color: var(--navy); }
.maplibregl-popup-content { padding-right: 34px; }
/* wide evidence tables scroll sideways on phones instead of collapsing into unreadable columns */
@media (max-width: 760px) { table.cov, table.zones { min-width: 900px; } table.cov td, table.zones td { font-size: 13px; } }
