:root {
  color-scheme: light;
  --ink: #162923;
  --muted: #50635c;
  --green: #126a57;
  --deep: #15493d;
  --line: #dce7e2;
  --wash: #f4f8f5;
  --paper: #fff;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background: #fcfdfa;
  line-height: 1.6;
}

a { color: var(--green); text-underline-offset: 0.22em; }
a:hover { color: var(--deep); }
a:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 4px;
  border-radius: 3px;
}

h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { line-height: 1.1; text-wrap: balance; }

.frame {
  width: min(100% - 3.5rem, 72rem);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  z-index: 1;
  inset: 0.5rem auto auto 0.5rem;
  padding: 0.65rem 1rem;
  background: var(--paper);
  transform: translateY(-160%);
}

.skip-link:focus { transform: none; }

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.header-row, .footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem 1rem;
}

.header-row { min-height: 4.75rem; padding-block: 0.75rem; }

.brand {
  display: inline-flex;
  gap: 0.65rem;
  align-items: center;
  color: var(--ink);
  font-size: 1.12rem;
  font-weight: 760;
  letter-spacing: -0.035em;
  text-decoration: none;
}

.brand img { display: block; flex: none; }

.main-nav, .site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem clamp(0.9rem, 3vw, 2.25rem);
}

.main-nav a, .site-footer nav a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
}

.main-nav a:hover, .main-nav [aria-current], .site-footer nav a:hover {
  color: var(--green);
  text-decoration: underline;
}

.hero {
  display: grid;
  grid-template-columns: 1fr minmax(0, 1fr);
  align-items: center;
  gap: clamp(2.25rem, 6.5vw, 6rem);
  padding-block: clamp(3.6rem, 8.5vw, 8rem);
}

.hero-copy { min-width: 0; }

.status {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  border: 1px solid #cde2d8;
  border-radius: 999px;
  padding: 0.23rem 0.65rem;
  background: #eaf4ee;
  color: var(--deep);
  font-size: 0.76rem;
  font-weight: 710;
}

.status span, .chart-label span {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--green);
}

h1 {
  margin-top: 1rem;
  font-size: clamp(2.75rem, 5.65vw, 4.85rem);
  font-weight: 750;
  letter-spacing: -0.065em;
}

.lead {
  margin-top: 1.25rem;
  max-width: 40rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.16rem);
  line-height: 1.68;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1.75rem;
  border-radius: 0.55rem;
  padding: 0.68rem 0.92rem;
  background: var(--deep);
  color: var(--paper);
  font-size: 0.92rem;
  font-weight: 670;
  text-decoration: none;
}

.button:hover { background: var(--green); color: var(--paper); }

.hero-note {
  margin-top: 0.65rem;
  color: var(--muted);
  font-size: 0.84rem;
}

.preview {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  padding: clamp(0.95rem, 3vw, 1.75rem);
  background: var(--paper);
  box-shadow: 0 1.2rem 2.8rem -1rem rgb(24 68 51 / 18%), 0 0.25rem 0.75rem rgb(24 68 51 / 4%);
}

.preview-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: start;
  gap: 0.65rem 0.5rem;
}

.eyebrow {
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 780;
  letter-spacing: 0.095em;
  text-transform: uppercase;
}

.preview h2 {
  margin-top: 0.3rem;
  font-size: clamp(1.22rem, 2.2vw, 1.6rem);
  letter-spacing: -0.04em;
}

.sample-badge {
  border-radius: 0.35rem;
  padding: 0.17rem 0.45rem;
  background: var(--wash);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 710;
  white-space: nowrap;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.45rem, 1.25vw, 0.8rem);
  margin-top: 1.25rem;
}

.metrics div {
  border: 1px solid var(--line);
  border-radius: 0.58rem;
  padding: 0.5rem clamp(0.45rem, 1.3vw, 0.8rem);
  background: #fcfdfa;
}

.metrics dt {
  color: var(--muted);
  font-size: clamp(0.67rem, 1.2vw, 0.76rem);
  font-weight: 570;
}

.metrics dd {
  font-size: clamp(1.04rem, 2vw, 1.48rem);
  font-variant-numeric: tabular-nums;
  font-weight: 760;
  letter-spacing: -0.045em;
}

.chart { margin-top: 1.25rem; }
.chart-label {
  display: flex;
  gap: 0.42rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 650;
}
.chart-graphic { display: block; width: 100%; height: auto; }
.chart-axis {
  display: flex;
  justify-content: space-between;
  padding-inline: 0.1rem;
  color: var(--muted);
  font-size: 0.68rem;
}

figcaption {
  margin-top: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 0.7rem;
  color: var(--muted);
  font-size: 0.75rem;
}

.workflow {
  border-block: 1px solid var(--line);
  padding-block: clamp(2.9rem, 6vw, 5rem);
  background: var(--wash);
}

.workflow h2 {
  max-width: 39rem;
  margin-top: 0.5rem;
  font-size: clamp(1.95rem, 4vw, 3.15rem);
  font-weight: 750;
  letter-spacing: -0.055em;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 1.6rem 0 0;
  padding: 0;
  list-style-type: "";
}

.steps li {
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: clamp(1rem, 2.5vw, 1.45rem);
  background: var(--paper);
}

.step-number {
  display: inline-grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 0.48rem;
  background: #eaf4ee;
  color: var(--deep);
  font-size: 0.75rem;
  font-weight: 760;
}

.steps h3, .data-note h3 {
  margin-top: 0.8rem;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.steps p, .data-note p {
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.data-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  margin-top: 1.1rem;
  border: 1px solid #cfe1d9;
  border-radius: 0.75rem;
  padding: 1.1rem 1.35rem;
  background: #eaf4ee;
}

.data-note div { flex: 1 1 30rem; }
.data-note h3 { margin-top: 0; }
.data-note a { flex: none; font-size: 0.9rem; font-weight: 700; }

.site-footer { padding-block: 1.25rem; background: var(--paper); }

.policy-layout {
  max-width: 53rem;
  padding-block: clamp(2.75rem, 7vw, 6rem);
}

.policy-header {
  padding-bottom: clamp(1.5rem, 4vw, 2.5rem);
  border-bottom: 1px solid var(--line);
}

.policy h1 { margin-top: 0.4rem; font-size: clamp(2.65rem, 6vw, 4.5rem); }
.policy-date {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.87rem;
  font-weight: 610;
}

.policy section { margin-top: 2rem; }
.policy section h2 {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  letter-spacing: -0.03em;
}

.policy section p {
  margin-top: 0.75rem;
  max-width: 72ch;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.policy-layout + .site-footer { border-top: 1px solid var(--line); }

.dashboard-page { background: var(--wash); }

.dashboard {
  min-width: 0;
  padding-block: clamp(2.4rem, 6vw, 5rem);
}

.dashboard-header {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1.2rem 2rem;
  margin-bottom: 1.5rem;
}

.dashboard-header h1 {
  margin-top: 0.45rem;
  font-size: clamp(2.35rem, 5.3vw, 4.25rem);
}

.dashboard-header .lead { margin-top: 0.75rem; }

.dashboard-disclosure {
  max-width: 16rem;
  border: 1px solid #cfe1d9;
  border-radius: 0.75rem;
  padding: 0.8rem 1rem;
  background: #eaf4ee;
  color: var(--deep);
}

.dashboard-disclosure .sample-badge {
  display: inline-block;
  background: var(--deep);
  color: var(--paper);
  font-size: 0.74rem;
}

.dashboard-disclosure p {
  margin-top: 0.4rem;
  font-size: 0.82rem;
  line-height: 1.45;
}

.filter-panel, .report-card, .dashboard-notice {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  padding: clamp(0.9rem, 2vw, 1.4rem);
  background: var(--paper);
}

.filter-panel h2, .report-section h2 {
  font-size: clamp(1.22rem, 2.5vw, 1.6rem);
  letter-spacing: -0.035em;
}

.filter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 0.8fr auto;
  align-items: end;
  gap: 0.7rem;
  margin-top: 0.9rem;
}

.filter-grid label {
  min-width: 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 650;
}

.filter-grid select {
  display: block;
  width: 100%;
  margin-top: 0.25rem;
  border: 1px solid #b5c9c0;
  border-radius: 0.55rem;
  padding: 0.58rem;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}

.filter-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.filter-actions button {
  margin: 0;
  border: 1px solid transparent;
  padding: 0.58rem 0.72rem;
  font-family: inherit;
  line-height: 1.4;
  cursor: pointer;
}

.filter-actions .secondary-button {
  border-color: #b5c9c0;
  border-radius: 0.55rem;
  background: var(--paper);
  color: var(--deep);
  font-size: 0.87rem;
  font-weight: 650;
}

.secondary-button:hover { background: var(--wash); }

.dashboard :is(button, select, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}

.filter-help, .report-context, .dashboard-notice p {
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.report-section { margin-top: 1.65rem; }
.report-section .dashboard-notice { margin-top: 1rem; }
.dashboard-notice h3 { font-size: 1.15rem; }
.report-metrics { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.report-metrics div { padding-block: 0.7rem; background: var(--paper); }
.report-card { margin-top: 0.85rem; }

.report-card-header {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  justify-content: space-between;
  gap: 0.45rem 0.75rem;
}

.report-card-header h3 {
  margin-top: 0.35rem;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  letter-spacing: -0.035em;
}

.report-chart {
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr);
  column-gap: 0.55rem;
  margin-top: 1.25rem;
}

.chart-scale {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.71rem;
  text-align: right;
}

.trend-graphic {
  display: block;
  width: 100%;
  height: clamp(7rem, 19vw, 12rem);
  overflow: visible;
}

.trend-grid { stroke: var(--line); vector-effect: non-scaling-stroke; }
.trend-fill { fill: #e1f1e9; }
.trend-line {
  stroke: var(--green);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.report-chart .chart-axis { grid-column: 2; margin-top: 0.3rem; }

.daily-values {
  margin-top: 0.85rem;
  border-top: 1px solid var(--line);
  padding-top: 0.65rem;
}

.daily-values summary {
  width: fit-content;
  color: var(--green);
  font-size: 0.84rem;
  font-weight: 650;
  cursor: pointer;
}

.daily-values dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(5.4rem, 1fr));
  gap: 0.45rem;
  margin-top: 0.65rem;
  font-size: 0.78rem;
}

.daily-values dl div {
  border-radius: 0.35rem;
  padding: 0.3rem 0.45rem;
  background: var(--wash);
}

.daily-values dt { color: var(--muted); }
.daily-values dd { font-variant-numeric: tabular-nums; font-weight: 700; }

.table-scroll { overflow-x: auto; margin-top: 0.85rem; }

.report-table {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  font-size: 0.83rem;
  font-variant-numeric: tabular-nums;
}

.report-table :is(th, td) {
  padding: 0.6rem 0.55rem;
  border-bottom: 1px solid var(--line);
  text-align: right;
  white-space: nowrap;
}

.report-table :is(th, td):first-child { text-align: left; }
.report-table thead { background: var(--wash); color: var(--muted); }
.report-table tbody tr:last-child > * { border-bottom: 0; }
.dashboard-page .site-footer { border-top: 1px solid var(--line); }

@media (max-width: 53rem) {
  .hero { grid-template-columns: 1fr; }
  .hero h1 { max-width: 13ch; }
  .preview { width: min(100%, 34rem); }
  .filter-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .filter-actions { grid-column: 1 / -1; }
}

@media (max-width: 36rem) {
  .frame { width: calc(100% - 2rem); }
  .header-row { min-height: 4.25rem; }
  .desktop-nav { display: none; }
  .steps { grid-template-columns: 1fr; }
  .filter-grid { grid-template-columns: 1fr; }
  .report-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
