:root {
  color-scheme: light;
  --ink: #172b29;
  --green: #122d2b;
  --cream: #f5f0e5;
  --paper: #fffdf8;
  --gold: #d8ad69;
  --rust: #b65b42;
  --muted: #64716b;
  --line: #e7e1d5;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-size: 16px;
  line-height: 1.75;
}

a { color: #8d432f; text-underline-offset: 3px; }
a:hover { color: var(--green); }

.topbar {
  padding: 18px max(24px, calc((100% - 900px) / 2));
  color: var(--paper);
  background: var(--green);
}

.topbar a { color: var(--paper); font-weight: 700; text-decoration: none; }
.topbar a:hover { color: var(--gold); }

main {
  width: min(900px, calc(100% - 36px));
  margin: 42px auto 70px;
  padding: clamp(24px, 5vw, 58px);
  border: 1px solid rgba(23, 43, 41, .07);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: 0 16px 45px rgba(34, 43, 37, .06);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--rust);
  font-size: .78rem;
  font-weight: 750;
  letter-spacing: .13em;
  text-transform: uppercase;
}

h1, h2, h3 {
  color: var(--green);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.2;
}

h1 { margin: 0 0 24px; font-size: clamp(2.2rem, 6vw, 3.5rem); letter-spacing: -.04em; }
h2 { margin-top: 2rem; font-size: 1.65rem; }
h3 { font-family: inherit; font-size: 1.1rem; font-weight: 750; }
p { margin: 0 0 1.1em; }

figure { margin: 1.6rem 0; }
figure img { display: block; max-width: 100%; height: auto; border-radius: 10px; }
figcaption { margin-top: .5rem; color: var(--muted); font-size: .88rem; }

.source {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .9rem;
}

.report-table {
  width: 100%;
  margin: 1.25rem 0 2rem;
  border-collapse: collapse;
  font-size: .9rem;
}

.report-table th, .report-table td {
  padding: 7px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.report-table th { color: var(--green); background: #f4f1e9; }
.report-table tbody tr:nth-child(even) { background: #faf8f2; }

.results-scroll { overflow-x: auto; }
.results-scroll pre {
  overflow-x: auto;
  padding: 16px;
  border-radius: 10px;
  background: #f4f1e9;
  font: .82rem/1.5 Consolas, "Courier New", monospace;
}

.report-pdf {
  display: block;
  width: 100%;
  height: min(82vh, 1050px);
  margin-top: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f4f1e9;
}

footer {
  padding: 24px;
  color: #cbd6cf;
  background: var(--green);
  text-align: center;
  font-size: .85rem;
}

footer a { color: var(--paper); }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }

@media (max-width: 600px) {
  main { margin-block: 20px 36px; border-radius: 12px; }
  .report-table { font-size: .82rem; }
  .report-table th, .report-table td { padding: 6px 8px; }
  .report-pdf { height: 70vh; }
}
