:root {
  --ink: #263d48;
  --ink-soft: #4c4c4c;
  --forest: #005470;
  --forest-deep: #003f55;
  --green: #1c66a6;
  --bright-green: #f5b335;
  --mint: #dae6ea;
  --cream: #f8f8f8;
  --sand: #e8eff2;
  --white: #ffffff;
  --line: #d6e0e4;
  --muted: #687c86;
  --coral: #ea6852;
  --shadow: 0 18px 48px rgba(0, 84, 112, 0.11);
  --radius-lg: 24px;
  --radius-md: 16px;
  --container: 1180px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 150px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Avenir Next", Avenir, "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

button,
input,
select { font: inherit; }

button,
a { -webkit-tap-highlight-color: transparent; }

a { color: inherit; }

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 10px 16px;
  background: var(--white);
  color: var(--forest-deep);
  border-radius: 8px;
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(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;
}

.site-header {
  height: 78px;
  padding: 0 max(24px, calc((100vw - var(--container)) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  color: var(--white);
  background: var(--forest-deep);
  border-bottom: 6px solid var(--bright-green);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--bright-green);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px;
}

.brand-mark svg {
  width: 27px;
  fill: currentColor;
  stroke: none;
}

.brand-mark .mark-gold { fill: var(--bright-green); }
.brand-mark .mark-light { fill: var(--white); }

.brand span:last-child {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand strong {
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  font-size: 17px;
  letter-spacing: .01em;
}

.brand small {
  margin-top: 5px;
  color: #b9c9bf;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.primary-nav {
  height: 100%;
  display: flex;
  align-items: stretch;
  gap: 32px;
}

.primary-nav a {
  position: relative;
  display: flex;
  align-items: center;
  color: #bdcbc2;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.primary-nav a:hover,
.primary-nav a.active { color: var(--white); }

.primary-nav a.active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--bright-green);
  border-radius: 3px 3px 0 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-button,
.menu-button {
  min-width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 10px;
  cursor: pointer;
}

.icon-button:hover,
.menu-button:hover { background: rgba(255,255,255,.12); }

.icon-button svg { width: 21px; }
.menu-button { display: none; padding-inline: 14px; font-size: 14px; }

.mobile-nav {
  display: none;
  padding: 10px 24px 18px;
  color: var(--white);
  background: var(--forest-deep);
}

.mobile-nav a { display: block; padding: 9px 0; text-decoration: none; }

.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(115deg, rgba(0,63,85,.98), rgba(0,84,112,.93)),
    radial-gradient(circle at 80% 20%, rgba(28,102,166,.52), transparent 36%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .18;
  background-image:
    linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(90deg, transparent 30%, black);
}

.hero-glow {
  position: absolute;
  width: 360px;
  height: 360px;
  right: 6%;
  top: -190px;
  border-radius: 50%;
  background: rgba(28,102,166,.34);
  filter: blur(15px);
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding-block: 64px 70px;
}

.eyebrow {
  margin: 0 0 14px;
  color: #d7e8ee;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.eyebrow span { margin-inline: 7px; color: var(--bright-green); }
.eyebrow.green { color: var(--green); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(340px, .6fr);
  gap: 80px;
  align-items: end;
}

h1,
h2 {
  margin: 0;
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  line-height: 1.08;
  letter-spacing: -.045em;
}

h1 { max-width: 700px; font-size: clamp(42px, 6vw, 74px); }
h2 { font-size: clamp(30px, 4vw, 44px); }

.hero-summary {
  max-width: 700px;
  margin: 22px 0 0;
  color: #cfdbd3;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.55;
}

.filter-grid {
  max-width: 760px;
  margin-top: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 14px;
  align-items: start;
}

.geography-picker,
.year-picker { margin: 0; }

.geography-picker label,
.year-picker label {
  display: block;
  margin-bottom: 8px;
  color: #dbe8df;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.geography-input-wrap {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 15px;
  color: var(--forest);
  background: var(--white);
  border: 2px solid transparent;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0,0,0,.16);
}

.geography-input-wrap:focus-within {
  border-color: #ffc56d;
  box-shadow: 0 0 0 3px rgba(255,197,109,.2), 0 12px 30px rgba(0,0,0,.16);
}

.geography-input-wrap svg {
  width: 21px;
  flex: 0 0 auto;
  color: var(--green);
}

.geography-input-wrap input {
  width: 100%;
  min-width: 0;
  padding: 13px 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
  font: inherit;
  font-size: 16px;
  font-weight: 650;
}

.geography-picker small,
.year-picker small {
  display: block;
  margin-top: 8px;
  color: #c9dbd0;
  font-size: 11px;
}

.year-picker select {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  color: var(--ink);
  background: var(--white);
  border: 2px solid transparent;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0,0,0,.16);
  outline: 0;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
}

.year-picker select:focus {
  border-color: #ffc56d;
  box-shadow: 0 0 0 3px rgba(255,197,109,.2), 0 12px 30px rgba(0,0,0,.16);
}

.data-state {
  width: fit-content;
  margin: 18px 0 0;
  padding: 6px 10px;
  color: #e8f2f5;
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
}

.data-state.ready { color: #fff3d1; border-color: rgba(245,179,53,.5); }
.data-state.error { color: #fff; background: rgba(171,47,38,.72); border-color: rgba(255,255,255,.25); }

.hero-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 28px;
  padding: 22px 24px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 16px;
  backdrop-filter: blur(12px);
}

.hero-meta div:first-child { grid-column: 1 / -1; }
.hero-meta div { display: flex; flex-direction: column; gap: 2px; }
.hero-meta span { color: #aabcb1; font-size: 12px; }
.hero-meta strong { font-size: 14px; font-weight: 600; }

.sticky-tabs {
  position: sticky;
  z-index: 20;
  top: 0;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(16,36,27,.04);
  backdrop-filter: blur(12px);
}

.tabs-inner {
  min-height: 70px;
  display: flex;
  align-items: stretch;
  gap: 28px;
}

.tab {
  position: relative;
  display: flex;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.tab:hover,
.tab.active { color: var(--ink); }

.tab.active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  background: var(--green);
}

.tab-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 9px;
}

.button {
  height: 42px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 10px;
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.button svg { width: 17px; }
.button-ghost { color: var(--ink); background: var(--white); }
.button-dark { color: var(--white); background: var(--forest); border-color: var(--forest); }
.button:hover { transform: translateY(-1px); }

.section { padding-block: 92px; }
.tinted { background: var(--cream); }

.section-heading {
  margin-bottom: 36px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
}

.section-heading > div > p:not(.eyebrow) { margin: 12px 0 0; color: var(--muted); }

.segmented-control {
  padding: 4px;
  display: flex;
  background: #eef1ee;
  border: 1px solid #e3e8e4;
  border-radius: 12px;
}

.segmented-control button {
  min-width: 72px;
  padding: 8px 14px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.segmented-control button.selected {
  color: var(--forest);
  background: var(--white);
  box-shadow: 0 2px 7px rgba(16,36,27,.09);
}

.dimension-singleton {
  padding: 8px 14px;
  color: var(--forest);
  background: var(--white);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 2px 7px rgba(16,36,27,.09);
}

.segmented-control.compact button { min-width: 65px; padding: 6px 11px; }

.metric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.08fr;
  gap: 18px;
}

.metric-card {
  min-height: 238px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(16,36,27,.04);
}

.metric-card.primary-card {
  border-top: 4px solid var(--bright-green);
  padding-top: 25px;
}

.metric-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 700;
}

.info-button {
  width: 23px;
  height: 23px;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 1px solid #bdc8c0;
  border-radius: 50%;
  font-family: serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.metric-value {
  margin-top: 20px;
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  font-size: clamp(38px, 4vw, 52px);
  line-height: 1;
  letter-spacing: -.05em;
}

.metric-unit { margin-top: 7px; color: var(--muted); font-size: 13px; }

.benchmark-row {
  margin-top: auto;
  display: grid;
  grid-template-columns: auto 70px;
  align-items: center;
  gap: 12px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 600;
}

.benchmark-track {
  height: 5px;
  overflow: hidden;
  background: #e4e9e5;
  border-radius: 10px;
}

.benchmark-track i {
  width: 88%;
  height: 100%;
  display: block;
  background: var(--bright-green);
  border-radius: inherit;
  transition: width .3s ease;
}

.insight-card {
  flex-direction: row;
  gap: 20px;
  color: var(--white);
  background: var(--forest);
  border-color: var(--forest);
}

.insight-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: #b5f0c9;
  background: rgba(255,255,255,.08);
  border-radius: 14px;
}

.insight-icon svg { width: 25px; }
.metric-kicker { color: #a9d3b7; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.insight-card p { margin: 17px 0 0; color: #dbe8df; font-size: 17px; line-height: 1.6; }
.insight-card p strong { color: var(--white); }

.population-note {
  margin-top: 18px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f2f7f3;
  border: 1px solid #deebe1;
  border-radius: 14px;
}

.population-note svg { width: 23px; color: var(--green); flex: 0 0 auto; }
.population-note p { margin: 0; color: var(--ink-soft); font-size: 14px; }

.chart-heading { align-items: end; }
.chart-card {
  padding: 30px 32px 24px;
  background: var(--white);
  border: 1px solid #e0ded4;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.chart-summary {
  margin-bottom: 30px;
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--line);
}

.chart-summary > div {
  min-width: 180px;
  margin-bottom: 20px;
  padding-right: 34px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
}

.chart-summary > div + div { padding-left: 34px; }
.chart-summary > div:last-child { border-right: 0; }
.chart-summary span { color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
.chart-summary strong { margin-top: 5px; font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif; font-size: 21px; }

.chart-wrap {
  height: 360px;
  display: grid;
  grid-template-columns: 45px 1fr;
  gap: 10px;
}

.y-axis {
  height: 296px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: end;
  color: var(--muted);
  font-size: 11px;
}

.bar-chart {
  height: 100%;
  display: grid;
  grid-template-columns: repeat(11, minmax(34px, 1fr));
  gap: clamp(6px, 1.2vw, 16px);
  background-image: linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 100% 74px;
}

.bar-item {
  height: 100%;
  min-width: 0;
  display: grid;
  grid-template-rows: 24px 272px 52px;
  text-align: center;
}

.bar-value { color: var(--muted); font-size: 10px; font-weight: 700; }
.bar-track { display: flex; align-items: flex-end; justify-content: center; }
.bar {
  width: min(42px, 75%);
  min-height: 4px;
  background: linear-gradient(180deg, var(--green), var(--forest));
  border-radius: 6px 6px 2px 2px;
  transition: height .35s ease, filter .2s ease;
  cursor: default;
}

.bar:hover,
.bar:focus { filter: brightness(.82); outline: 3px solid rgba(0,169,79,.18); outline-offset: 2px; }
.bar-label { padding-top: 10px; color: var(--ink-soft); font-size: 10px; font-weight: 700; line-height: 1.3; }
.chart-footnote { margin: 15px 0 0 55px; color: var(--muted); font-size: 11px; }

.comparison-section { background: var(--forest-deep); color: var(--white); }
.comparison-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 90px; align-items: center; }
.section-copy { max-width: 480px; margin: 20px 0 0; color: #adbbb2; }
.comparison-table-wrap { overflow: hidden; border: 1px solid rgba(255,255,255,.12); border-radius: 18px; }
.comparison-table { width: 100%; border-collapse: collapse; }
.comparison-table th,
.comparison-table td { padding: 17px 22px; text-align: right; border-bottom: 1px solid rgba(255,255,255,.1); }
.comparison-table thead th { color: #91a69a; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.comparison-table th:first-child { text-align: left; }
.comparison-table tbody th span,
.comparison-table tbody th small { display: block; }
.comparison-table tbody th span { font-size: 14px; }
.comparison-table tbody th small { margin-top: 2px; color: #8ea095; font-size: 11px; font-weight: 500; }
.comparison-table tbody td { font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif; font-size: 16px; font-weight: 700; }
.comparison-table tbody tr:last-child th,
.comparison-table tbody tr:last-child td { border-bottom: 0; }
.comparison-table .primary-row { background: rgba(0,180,81,.12); }
.comparison-table .primary-row th { position: relative; }
.comparison-table .primary-row th::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--bright-green); }

.methodology-section { background: var(--white); }
.methodology-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: 110px; }
.methodology-content details { border-top: 1px solid var(--line); }
.methodology-content details:last-of-type { border-bottom: 1px solid var(--line); }
.methodology-content summary { position: relative; padding: 21px 42px 21px 0; font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif; font-weight: 700; cursor: pointer; list-style: none; }
.methodology-content summary::-webkit-details-marker { display: none; }
.methodology-content summary::after { content: "+"; position: absolute; right: 8px; color: var(--green); font-size: 22px; font-weight: 400; }
.methodology-content details[open] summary::after { content: "−"; }
.methodology-content details p { margin: -3px 42px 22px 0; color: var(--muted); font-size: 14px; }
.observation-quality { margin: -3px 42px 22px 0; display: grid; grid-template-columns: minmax(150px, .7fr) minmax(0, 1.3fr); gap: 8px 18px; color: var(--muted); font-size: 14px; }
.observation-quality div { display: contents; }
.observation-quality dt { color: var(--ink-soft); font-weight: 800; }
.observation-quality dd { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.source-card { margin-top: 28px; padding: 20px; display: flex; gap: 16px; background: var(--cream); border-radius: 16px; }
.source-mark { width: 48px; height: 48px; flex: 0 0 auto; display: grid; place-items: center; color: var(--white); background: #d52b1e; border-radius: 8px; font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif; font-weight: 800; }
.source-card > div:last-child { display: flex; flex-direction: column; }
.source-card span { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.source-card strong { margin: 2px 0 7px; font-size: 14px; }
.source-card small { margin: 0 0 8px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.source-card a { display: inline-flex; align-items: center; gap: 5px; color: var(--green); font-size: 13px; font-weight: 700; }
.source-card a svg { width: 15px; }

.about-strip { padding-block: 30px; background: var(--mint); border-top: 1px solid #cce5d5; }
.about-inner { display: flex; justify-content: space-between; align-items: center; gap: 25px; }
.about-inner > div { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 10px; }
.about-inner p { grid-column: 2; margin: 1px 0 0; color: var(--ink-soft); font-size: 12px; }
.status-dot { width: 9px; height: 9px; grid-row: 1 / 3; background: var(--bright-green); border-radius: 50%; box-shadow: 0 0 0 5px rgba(0,169,79,.12); }
.about-inner a { color: var(--green); font-size: 13px; font-weight: 700; text-decoration: none; }

.site-footer { padding-block: 46px; color: #bdc9c1; background: #071c12; }
.footer-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 40px; }
.footer-brand { color: var(--white); }
.footer-inner > p { margin: 0; font-size: 12px; }
.footer-meta { text-align: right; }

.search-dialog {
  width: min(660px, calc(100% - 32px));
  padding: 0;
  border: 0;
  border-radius: 18px;
  box-shadow: 0 28px 90px rgba(0,0,0,.28);
}

.search-dialog::backdrop { background: rgba(7,28,18,.72); backdrop-filter: blur(4px); }
.search-panel { padding: 12px; }
.search-field { display: flex; align-items: center; gap: 12px; padding: 8px 10px 8px 16px; border: 1px solid var(--line); border-radius: 12px; }
.search-field svg { width: 22px; color: var(--muted); }
.search-field input { min-width: 0; flex: 1; padding: 8px 0; border: 0; outline: 0; font-size: 18px; }
.search-field button { padding: 5px 8px; color: var(--muted); background: var(--cream); border: 1px solid var(--line); border-radius: 7px; font-size: 11px; }
.search-results { padding: 17px 5px 5px; }
.search-results > p { margin: 0 8px 8px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.search-results a { padding: 13px; display: grid; grid-template-columns: 42px 1fr auto; gap: 12px; align-items: center; border-radius: 11px; text-decoration: none; }
.search-results a:hover { background: var(--cream); }
.result-icon { width: 42px; height: 42px; display: grid; place-items: center; color: var(--white); background: var(--green); border-radius: 10px; font-weight: 800; }
.search-results a span:nth-child(2) { display: flex; flex-direction: column; }
.search-results small { color: var(--muted); }

.toast {
  position: fixed;
  z-index: 200;
  left: 50%;
  bottom: 26px;
  max-width: min(480px, calc(100% - 30px));
  padding: 12px 18px;
  color: var(--white);
  background: var(--forest-deep);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 10px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 20px);
  transition: opacity .2s ease, transform .2s ease;
  font-size: 13px;
}

.toast.visible { opacity: 1; transform: translate(-50%, 0); }

:focus-visible { outline: 3px solid #ffc56d; outline-offset: 3px; }

@media (max-width: 980px) {
  .primary-nav { display: none; }
  .menu-button { display: grid; }
  .mobile-nav:not([hidden]) { display: block; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-meta { max-width: 520px; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .insight-card { grid-column: 1 / -1; min-height: 180px; }
  .comparison-grid { grid-template-columns: 1fr; gap: 44px; }
  .methodology-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { grid-template-columns: 1fr; gap: 18px; }
  .footer-meta { text-align: left; }
}

@media (max-width: 760px) {
  .container { width: min(100% - 32px, var(--container)); }
  .site-header { height: 68px; padding-inline: 16px; }
  .brand-mark { width: 36px; height: 36px; }
  .hero-inner { padding-block: 48px 52px; }
  .hero-meta { grid-template-columns: 1fr; gap: 14px; }
  .hero-meta div:first-child { grid-column: auto; }
  .filter-grid { grid-template-columns: 1fr; }
  .tabs-inner { min-height: 58px; gap: 20px; overflow-x: auto; }
  .tab { flex: 0 0 auto; }
  .tab-actions { display: none; }
  .section { padding-block: 68px; }
  .section-heading { align-items: stretch; flex-direction: column; }
  .segmented-control { align-self: flex-start; }
  .metric-grid { grid-template-columns: 1fr; }
  .insight-card { grid-column: auto; }
  .chart-card { padding: 24px 14px 18px; overflow: hidden; }
  .chart-summary { overflow-x: auto; }
  .chart-summary > div { min-width: 150px; padding-right: 18px; }
  .chart-summary > div + div { padding-left: 18px; }
  .chart-wrap { min-width: 700px; }
  .chart-card { overflow-x: auto; }
  .chart-footnote { min-width: 650px; margin-left: 55px; }
  .comparison-table th, .comparison-table td { padding: 14px 13px; }
  .methodology-grid { gap: 28px; }
  .about-inner { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 440px) {
  .brand strong { font-size: 15px; }
  .brand small { font-size: 9px; }
  .header-actions .icon-button { display: none; }
  .metric-card { padding: 23px; }
  .insight-card { flex-direction: column; }
  .segmented-control { width: 100%; }
  .segmented-control button { min-width: 0; flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

@media print {
  .site-header, .sticky-tabs, .tab-actions, .segmented-control, .about-strip, .site-footer { display: none !important; }
  .hero { color: var(--ink); background: var(--white); }
  .hero-summary, .hero-meta span { color: var(--ink-soft); }
  .hero-meta { border-color: var(--line); }
  .section { padding-block: 35px; break-inside: avoid; }
  .comparison-section { color: var(--ink); background: var(--white); }
  .comparison-table-wrap, .comparison-table th, .comparison-table td { border-color: var(--line); }
}

/* Configurable catalogue and generic indicator workspace */
.portal-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(120deg, var(--forest-deep), var(--forest));
}

.portal-hero-grid {
  position: relative;
  z-index: 1;
  min-height: 530px;
  padding-block: 78px;
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  align-items: center;
  gap: 80px;
}

.portal-hero h1 {
  max-width: 800px;
  margin: 18px 0;
  font-size: clamp(48px, 7vw, 82px);
  line-height: 1.02;
  letter-spacing: -.055em;
}

.portal-hero .hero-summary { max-width: 760px; }
.catalogue-stats { margin-top: 42px; display: flex; gap: 45px; }
.catalogue-stats div { display: flex; flex-direction: column; }
.catalogue-stats strong { color: var(--bright-green); font-size: 25px; }
.catalogue-stats span { color: #c6d8df; font-size: 12px; font-weight: 700; }
.hero-callout { padding: 30px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius-lg); backdrop-filter: blur(8px); }
.hero-callout h2 { margin: 20px 0 12px; font-size: 28px; line-height: 1.2; }
.hero-callout p { color: #d4e1e5; }
.hero-callout .button { margin-top: 10px; background: var(--bright-green); color: var(--forest-deep); }
.status-pill, .published-badge { display: inline-flex; padding: 5px 10px; color: var(--forest-deep); background: #ffe0a3; border-radius: 99px; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }

.catalogue-section { background: #f4f7f8; }
.catalogue-heading { align-items: end; }
.catalogue-heading > div > p:last-child { max-width: 720px; color: var(--muted); }
.catalogue-search { width: min(340px, 100%); display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.catalogue-search input { width: 100%; padding: 12px 14px; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 10px; text-transform: none; letter-spacing: 0; }
.catalogue-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.catalogue-card { min-height: 430px; padding: 27px; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-top: 5px solid var(--green); border-radius: 18px; box-shadow: 0 12px 35px rgba(0,63,85,.06); }
.catalogue-card.accent-gold { border-top-color: var(--bright-green); }
.catalogue-card.accent-blue { border-top-color: #1c66a6; }
.catalogue-card.accent-green { border-top-color: #2a9d72; }
.catalogue-card-top { display: flex; align-items: center; justify-content: space-between; }
.catalogue-icon { width: 44px; height: 44px; display: grid; place-items: center; color: var(--white); background: var(--forest); border-radius: 12px; font-size: 18px; font-weight: 900; }
.published-badge { color: #176246; background: #e0f3e9; }
.catalogue-theme { margin: 25px 0 6px !important; color: var(--green) !important; font-size: 11px !important; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.catalogue-card h3 { margin: 0; font-size: 24px; line-height: 1.25; }
.catalogue-card > p { color: var(--muted); font-size: 14px; }
.catalogue-card dl { margin: auto 0 23px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.catalogue-card dl div { min-width: 0; }
.catalogue-card dt { color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.catalogue-card dd { margin: 2px 0 0; font-size: 13px; font-weight: 800; }
.catalogue-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.compare-toggle { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 700; }
.compare-toggle input { width: 18px; height: 18px; accent-color: var(--forest); }

.indicator-workspace { scroll-margin-top: 0; }
.workspace-header { color: var(--white); background: linear-gradient(120deg, var(--forest-deep), #0b6b82); }
.workspace-header .container { padding-block: 60px 50px; }
.workspace-header h2 { margin: 10px 0 4px; font-size: clamp(40px, 5.5vw, 66px); line-height: 1.05; letter-spacing: -.045em; }
.workspace-header h2 + p { max-width: 820px; color: #d2e1e5; }
.workspace-filters { margin-top: 34px; display: grid; grid-template-columns: 1.1fr 1.5fr .65fr .9fr; gap: 13px; }
.workspace-filters label { min-width: 0; }
.workspace-filters label > span { display: block; margin-bottom: 7px; color: #c2d9df; font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.workspace-filters select { width: 100%; height: 52px; padding: 0 38px 0 14px; color: var(--ink); background: var(--white); border: 0; border-radius: 10px; font-weight: 700; }
.workspace-meta { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; }
.workspace-meta span { padding: 5px 9px; color: #d2e1e5; background: rgba(255,255,255,.08); border-radius: 7px; font-size: 11px; }
.workspace-meta .ready { color: #dff8e7; border: 1px solid rgba(129,222,160,.35); }
.workspace-meta .error { color: #ffd1c8; }

.metric-grid { grid-template-columns: repeat(3, 1fr); }
.metric-card { min-height: 210px; }
.unit-chip { padding: 3px 7px; color: var(--muted); background: var(--cream); border-radius: 6px; font-size: 9px; text-transform: uppercase; }
.insight-banner { margin-top: 18px; padding: 22px 25px; display: flex; align-items: flex-start; gap: 16px; color: var(--white); background: var(--forest); border-radius: 16px; }
.insight-banner > span { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; color: var(--forest); background: var(--bright-green); border-radius: 50%; font-family: serif; font-weight: 900; }
.insight-banner strong { color: #c5f1d5; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.insight-banner p { margin: 5px 0 0; color: #ecf4f6; }

.generic-chart-card { min-width: 0; max-width: 100%; padding: 28px; overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.chart-legend { min-height: 30px; display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; font-weight: 700; }
.chart-legend span { display: flex; align-items: center; gap: 7px; }
.legend-swatch { width: 22px; height: 4px; background: var(--green); border-radius: 5px; }
.generic-chart { width: 100%; min-width: 0; max-width: 100%; min-height: 380px; overflow-x: auto; }
.line-chart { width: 100%; min-width: 720px; height: 380px; }
.line-chart text { fill: var(--muted); font-size: 12px; }
.line-chart .grid-line { stroke: var(--line); stroke-width: 1; }
.trend-line { fill: none; stroke: var(--green); stroke-width: 5; stroke-linejoin: round; stroke-linecap: round; }
.trend-area { fill: none; stroke: rgba(28,102,166,.10); stroke-width: 22; }
.line-chart circle { fill: var(--white); stroke: var(--green); stroke-width: 4; }
.line-chart circle:focus { outline: none; fill: var(--bright-green); }
.breakdown-chart { width: 100%; min-width: 760px; height: 380px; }
.breakdown-chart .grid-line { stroke: var(--line); stroke-width: 1; }
.breakdown-bar { fill: var(--green); stroke: var(--forest); stroke-width: 1; }
.breakdown-bar:hover,
.breakdown-bar:focus { fill: var(--forest); stroke: var(--bright-green); stroke-width: 3; outline: none; }
.breakdown-chart text { fill: var(--muted); stroke: none; font-size: 10px; }
.breakdown-chart .bar-value-label { font-weight: 800; }
.breakdown-chart .bar-category-label { fill: var(--ink-soft); font-weight: 700; }
.generic-bars { --bar-count: 5; min-width: max(680px, calc(var(--bar-count) * 75px)); height: 370px; padding: 20px 10px 0; display: grid; grid-template-columns: repeat(var(--bar-count), minmax(50px, 1fr)); gap: 10px; align-items: end; background-image: linear-gradient(to bottom, var(--line) 1px, transparent 1px); background-size: 100% 75px; }
.generic-bar-item { height: 100%; display: grid; grid-template-rows: 28px 285px 55px; text-align: center; }
.generic-bar-item > strong { color: var(--muted); font-size: 10px; }
.generic-bar-track { display: flex; align-items: flex-end; justify-content: center; }
.generic-bar-track span { width: min(48px, 78%); min-height: 4px; background: linear-gradient(var(--green), var(--forest)); border-radius: 7px 7px 2px 2px; }
.generic-bar-track span:focus { outline: 3px solid #ffc56d; outline-offset: 2px; }
.generic-bar-item small { padding-top: 9px; font-size: 10px; font-weight: 700; line-height: 1.2; }
.generic-chart-card .chart-footnote { margin-left: 0; }

.drilldown-section { background: var(--white); }
.drilldown-grid { display: grid; grid-template-columns: .65fr 1.35fr; gap: 70px; align-items: start; }
.drilldown-grid > div:first-child p:last-child { color: var(--muted); }
.drilldown-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; }
.drilldown-table { width: 100%; border-collapse: collapse; }
.drilldown-table th, .drilldown-table td { padding: 13px 16px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.drilldown-table th:first-child { text-align: left; }
.drilldown-table thead { color: var(--white); background: var(--forest); }
.drilldown-table thead th { font-size: 11px; letter-spacing: .04em; }
.drilldown-table tbody th { font-size: 12px; }
.drilldown-table tbody td { font-variant-numeric: tabular-nums; }
.drilldown-table tbody tr:last-child > * { border-bottom: 0; }
.methodology-content ul { margin: -4px 0 24px; padding-left: 20px; color: var(--muted); font-size: 14px; }

.compare-section { background: #edf3f5; }
.comparison-workspace { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.compare-card { min-height: 310px; padding: 24px; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: 18px; }
.compare-card-head { display: flex; justify-content: space-between; }
.compare-card-head button { width: 32px; height: 32px; color: var(--muted); background: var(--cream); border: 1px solid var(--line); border-radius: 8px; cursor: pointer; font-size: 19px; }
.compare-card > p { margin: 18px 0 2px; color: var(--green); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.compare-card h3 { margin: 0 0 17px; font-size: 22px; }
.compare-card > strong { font-size: 36px; line-height: 1; }
.compare-card > span { margin-top: 7px; color: var(--muted); font-size: 12px; }
.mini-sparkline { width: 100%; height: 72px; margin-top: auto; }
.mini-sparkline path { fill: none; stroke: var(--green); stroke-width: 4; }
.mini-sparkline circle { fill: var(--bright-green); stroke: var(--forest); stroke-width: 2; }
.compare-card > small { color: var(--muted); font-size: 10px; }
.compare-card.unavailable { border-style: dashed; }
.unavailable-message { margin: auto 0; display: flex; flex-direction: column; color: var(--muted); }
.empty-comparison, .loading-comparison { grid-column: 1 / -1; padding: 50px; text-align: center; background: var(--white); border: 1px dashed var(--line); border-radius: 18px; }

.search-results button { width: 100%; padding: 13px; display: grid; grid-template-columns: 42px 1fr auto; gap: 12px; align-items: center; color: var(--ink); background: transparent; border: 0; border-radius: 11px; text-align: left; cursor: pointer; }
.search-results button:hover { background: var(--cream); }
.search-results button > span:nth-child(2) { display: flex; flex-direction: column; }
.search-results button > span:last-child { color: var(--green); font-size: 12px; font-weight: 700; }
.empty-state { grid-column: 1 / -1; padding: 40px; text-align: center; color: var(--muted); background: var(--white); border-radius: 14px; }

@media (max-width: 980px) {
  .portal-hero-grid { grid-template-columns: 1fr; gap: 35px; }
  .hero-callout { max-width: 620px; }
  .catalogue-grid, .comparison-workspace { grid-template-columns: 1fr 1fr; }
  .workspace-filters { grid-template-columns: 1fr 1fr; }
  .drilldown-grid { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 760px) {
  .portal-hero-grid { min-height: auto; padding-block: 55px; }
  .portal-hero h1 { font-size: 48px; }
  .catalogue-stats { gap: 18px; justify-content: space-between; }
  .catalogue-grid, .comparison-workspace { grid-template-columns: 1fr; }
  .catalogue-heading { align-items: stretch; }
  .catalogue-search { width: 100%; }
  .workspace-filters { grid-template-columns: 1fr; }
  .workspace-header h2 { font-size: 42px; }
  .metric-grid { grid-template-columns: 1fr; }
  .generic-chart-card { padding: 18px 12px; }
  .drilldown-table th, .drilldown-table td { padding: 11px 12px; }
}

/* Stage 3: map, reports and portable outputs */
.output-panel {
  margin-top: 22px;
  padding: 24px;
  display: grid;
  grid-template-columns: minmax(260px, .72fr) minmax(0, 1.28fr);
  gap: 30px;
  align-items: center;
  background: #f4f7f8;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.output-copy .eyebrow { margin-bottom: 5px; }
.output-copy h3 { margin: 0; font-size: 22px; }
.output-copy > p:last-child { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.output-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.output-button {
  min-height: 82px;
  padding: 13px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 9px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
}
.output-button:hover { border-color: var(--forest); transform: translateY(-1px); }
.output-button span { padding: 3px 6px; color: var(--forest); background: var(--mint); border-radius: 5px; font-size: 9px; font-weight: 900; letter-spacing: .07em; }
.output-button strong { font-size: 12px; line-height: 1.25; }

.map-section { background: #eaf1f4; }
.map-heading { align-items: end; }
.map-heading > div > p:last-child { max-width: 700px; }
.map-coverage { padding: 7px 11px; color: var(--forest); background: var(--white); border: 1px solid var(--line); border-radius: 99px; font-size: 11px; font-weight: 800; white-space: nowrap; }
.map-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(270px, .45fr); gap: 20px; align-items: stretch; }
.map-card,
.map-detail { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: 0 14px 40px rgba(0,63,85,.07); }
.map-card { min-width: 0; padding: 20px; }
.map-legend { min-height: 32px; display: flex; flex-wrap: wrap; gap: 18px; color: var(--muted); font-size: 11px; font-weight: 700; }
.map-legend span { display: inline-flex; align-items: center; gap: 7px; }
.map-dot { width: 9px; height: 9px; display: inline-block; background: #8db2bf; border: 2px solid var(--white); border-radius: 50%; box-shadow: 0 0 0 1px #6a94a2; }
.map-dot.selected { width: 12px; height: 12px; background: var(--bright-green); box-shadow: 0 0 0 2px var(--forest); }
.geography-map { width: 100%; min-height: 470px; overflow: hidden; color: var(--forest); background: linear-gradient(180deg, #eef7fa, #f8fbfc); border: 1px solid #d9e7eb; border-radius: 16px; }
.geography-map svg { width: 100%; height: auto; min-height: 470px; }
.map-grid-line { stroke: #d3e3e8; stroke-width: 1; stroke-dasharray: 3 7; }
.map-land { fill: #dfecef; stroke: #bdd2d9; stroke-width: 1.4; }
.map-boundary { fill: #dce9ed; stroke: #83a9b5; stroke-width: .65; cursor: pointer; transition: fill .15s ease, stroke-width .15s ease; vector-effect: non-scaling-stroke; }
.map-boundary:hover,
.map-boundary:focus { fill: #bcd5dd; stroke: var(--forest); stroke-width: 1.5; outline: none; }
.map-boundary.selected { fill: #f5b335; stroke: var(--forest-deep); stroke-width: 2.2; }
.map-label { fill: #66818b; stroke: none; font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.map-point { fill: #5f93a4; stroke: var(--white); stroke-width: 1.5; cursor: pointer; transition: r .16s ease, fill .16s ease; }
.map-point:hover,
.map-point:focus { fill: var(--forest); r: 6; outline: none; }
.map-point.selected { fill: var(--bright-green); stroke: var(--forest-deep); stroke-width: 2.5; r: 7; }
.map-selected-ring { fill: none; stroke: rgba(245,179,53,.38); stroke-width: 10; pointer-events: none; }
.map-callout { fill: var(--white); stroke: #b9ced5; stroke-width: 1; }
.map-callout-text { fill: var(--ink); stroke: none; font-size: 11px; font-weight: 800; }
.map-note { margin: 12px 2px 0; color: var(--muted); font-size: 11px; }
.map-detail { padding: 28px; display: flex; flex-direction: column; }
.map-detail-kicker { color: var(--green); font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.map-detail h3 { margin: 8px 0 22px; font-size: 29px; line-height: 1.12; }
.map-detail > strong { font-family: "Avenir Next", Avenir, "Segoe UI", system-ui, sans-serif; font-size: 40px; line-height: 1; letter-spacing: -.045em; }
.map-detail > span:not(.map-detail-kicker) { margin-top: 7px; color: var(--muted); font-size: 12px; }
.map-detail p { margin: 26px 0; color: var(--ink-soft); font-size: 14px; }
.map-detail .button { width: fit-content; margin-top: auto; }
.map-empty { min-height: 470px; padding: 40px; display: grid; place-items: center; color: var(--muted); text-align: center; }

.report-dialog,
.share-dialog {
  width: min(920px, calc(100% - 32px));
  max-height: min(880px, calc(100vh - 32px));
  padding: 0;
  color: var(--ink);
  background: var(--white);
  border: 0;
  border-radius: 20px;
  box-shadow: 0 28px 100px rgba(0,31,43,.34);
}
.share-dialog { width: min(650px, calc(100% - 32px)); }
.report-dialog::backdrop,
.share-dialog::backdrop { background: rgba(0,31,43,.76); backdrop-filter: blur(5px); }
.report-shell { max-height: min(880px, calc(100vh - 32px)); display: flex; flex-direction: column; }
.report-dialog-header,
.share-shell > header { padding: 22px 26px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.report-dialog-header span,
.share-shell header span { color: var(--green); font-size: 10px; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.report-dialog-header h2,
.share-shell h2 { margin-top: 3px; font-size: 27px; }
.dialog-close { width: 39px; height: 39px; flex: 0 0 auto; color: var(--muted); background: var(--cream); border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-size: 24px; line-height: 1; }
.report-preview { padding: 28px; overflow-y: auto; background: #f4f7f8; }
.report-page { min-width: 0; padding: clamp(24px, 5vw, 52px); overflow: hidden; background: var(--white); border: 1px solid var(--line); box-shadow: 0 12px 38px rgba(0,63,85,.08); }
.report-brand { padding-bottom: 18px; display: flex; justify-content: space-between; gap: 18px; border-bottom: 4px solid var(--bright-green); }
.report-brand strong { color: var(--forest-deep); font-size: 15px; }
.report-brand span { color: var(--muted); font-size: 11px; }
.report-heading { margin: 34px 0 28px; }
.report-heading .eyebrow { color: var(--green); }
.report-heading h1 { max-width: none; color: var(--ink); font-size: clamp(31px, 5vw, 50px); }
.report-heading > p:last-child { margin: 10px 0 0; color: var(--muted); }
.report-context { margin: 0 0 26px; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 12px; }
.report-context div { padding: 13px 15px; border-right: 1px solid var(--line); }
.report-context div:last-child { border-right: 0; }
.report-context dt { color: var(--muted); font-size: 9px; font-weight: 900; text-transform: uppercase; }
.report-context dd { margin: 3px 0 0; font-size: 12px; font-weight: 800; }
.report-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.report-metric { padding: 17px; background: #f4f7f8; border-radius: 11px; }
.report-metric span { display: block; color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.report-metric strong { display: block; margin-top: 7px; font-size: 25px; }
.report-quality { margin: 20px 0 0; padding: 16px 18px; background: #f4f7f8; border: 1px solid var(--line); border-radius: 11px; }
.report-quality > strong { color: var(--forest); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.report-quality dl { margin: 10px 0 0; display: grid; grid-template-columns: minmax(145px, .65fr) minmax(0, 1.35fr); gap: 6px 14px; font-size: 10px; }
.report-quality dl div { display: contents; }
.report-quality dt { color: var(--muted); font-weight: 800; }
.report-quality dd { margin: 0; overflow-wrap: anywhere; }
.report-insight { margin: 20px 0; padding: 18px; color: var(--white); background: var(--forest); border-radius: 11px; }
.report-insight strong { color: #ffe0a3; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.report-insight p { margin: 5px 0 0; }
.report-table-wrap { width: 100%; max-width: 100%; overflow-x: auto; }
.report-table { width: 100%; min-width: 500px; margin-top: 22px; border-collapse: collapse; font-size: 11px; }
.report-table caption { padding-bottom: 8px; color: var(--ink); font-size: 14px; font-weight: 800; text-align: left; }
.report-table th,
.report-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: right; }
.report-table th:first-child { text-align: left; }
.report-source { margin: 22px 0 0; padding-top: 14px; overflow-wrap: anywhere; color: var(--muted); border-top: 1px solid var(--line); font-size: 10px; }
.report-dialog-footer { padding: 16px 25px; display: flex; justify-content: flex-end; gap: 9px; border-top: 1px solid var(--line); }

.share-shell { padding-bottom: 24px; }
.share-shell > p,
.share-shell > label,
.share-shell > .share-field,
.share-shell > .native-share-button { margin-right: 26px; margin-left: 26px; }
.share-shell > p { margin-top: 24px; color: var(--muted); }
.share-shell > label { display: block; color: var(--ink); font-size: 11px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
.share-field { margin-top: 7px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.share-field input { min-width: 0; padding: 11px 12px; color: var(--ink); background: var(--cream); border: 1px solid var(--line); border-radius: 9px; }
.native-share-button { margin-top: 12px; }
.print-report { display: none; }

@media (max-width: 980px) {
  .output-panel { grid-template-columns: 1fr; }
  .map-layout { grid-template-columns: 1fr; }
  .map-detail { min-height: 300px; }
}

@media (max-width: 760px) {
  .output-actions { grid-template-columns: 1fr 1fr; }
  .map-heading { align-items: flex-start; }
  .map-coverage { white-space: normal; }
  .map-card { padding: 11px; }
  .geography-map,
  .geography-map svg,
  .map-empty { min-height: 380px; }
  .report-dialog-footer { flex-wrap: wrap; }
  .report-dialog-footer .button { flex: 1 1 135px; justify-content: center; }
  .report-context { grid-template-columns: 1fr 1fr; }
  .report-context div:nth-child(2) { border-right: 0; }
  .report-context div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .report-metrics { grid-template-columns: 1fr; }
  .share-field { grid-template-columns: 1fr; }
}

@media (max-width: 440px) {
  .output-panel { padding: 18px; }
  .output-actions { grid-template-columns: 1fr; }
  .output-button { min-height: 68px; }
  .report-preview { padding: 10px; }
  .report-page { padding: 22px 18px; }
  .report-context { grid-template-columns: 1fr; }
  .report-context div { border-right: 0; border-bottom: 1px solid var(--line); }
  .report-context div:last-child { border-bottom: 0; }
  .observation-quality,
  .report-quality dl { grid-template-columns: 1fr; gap: 4px; }
  .observation-quality dd,
  .report-quality dd { margin-bottom: 8px; }
}

@media print {
  @page { size: letter; margin: 14mm; }
  body { color: #172a33; background: #fff; font-size: 10pt; }
  body > *:not(.print-report) { display: none !important; }
  .print-report { display: block !important; }
  .print-report .report-page { padding: 0; border: 0; box-shadow: none; }
  .print-report .report-heading { margin: 22px 0 18px; }
  .print-report .report-heading h1 { font-size: 28pt; }
  .print-report .report-context,
  .print-report .report-metrics,
  .print-report .report-insight,
  .print-report .report-quality,
  .print-report .report-table { break-inside: avoid; }
  .print-report .report-source { font-size: 8pt; }
}
