:root {
  --ink: #172126;
  --muted: #53616a;
  --accent: #155d68;
  --accent-dark: #0d4650;
  --paper: #ffffff;
  --page: #eef1f2;
  --line: #ccd4d8;
  --line-dark: #aeb9be;
  --soft: #f5f7f8;
  --result: #f1f6f7;
  --pass-bg: #e5f2eb;
  --pass: #195f3b;
  --warn-bg: #fff3e1;
  --warn: #7a4210;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid #d99a27;
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: -80px;
  left: 18px;
  z-index: 100;
  background: var(--paper);
  border: 2px solid var(--accent);
  padding: 9px 13px;
}

.skip-link:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: 1120px;
  min-height: 60px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.report-name {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.header-download {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid var(--accent);
  color: var(--accent);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

main { padding: 34px 20px 60px; }

.report {
  max-width: 1080px;
  margin: 0 auto;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 68px 74px;
}

.title-block { padding-bottom: 50px; }

.report-type,
.section-number {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

h1, h2, h3 {
  color: var(--ink);
  line-height: 1.22;
}

h1 {
  max-width: 800px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 5vw, 54px);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.subtitle {
  max-width: 860px;
  margin: 20px 0 30px;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  line-height: 1.48;
}

h2 {
  margin: 0 0 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

h3 {
  margin: 34px 0 12px;
  font-size: 21px;
}

p { margin: 0 0 18px; }

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.9em;
}

.report-metadata {
  margin: 32px 0 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.report-metadata div {
  padding: 16px 16px 16px 0;
}

.report-metadata dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.report-metadata dd {
  margin: 5px 0 0;
  font-size: 14px;
  line-height: 1.45;
}

.contents {
  margin-top: 28px;
  padding: 22px 24px;
  background: var(--soft);
  border-left: 3px solid var(--accent);
}

.contents strong { font-size: 15px; }
.contents ol {
  margin: 12px 0 0;
  padding-left: 21px;
  columns: 2;
  column-gap: 42px;
}
.contents li { margin: 5px 0; padding-left: 4px; font-size: 15px; }

.report > section {
  scroll-margin-top: 76px;
  padding: 52px 0;
  border-top: 1px solid var(--line);
}

.bottom-line {
  margin-top: 28px;
  padding: 20px 22px;
  background: var(--result);
  border-left: 4px solid var(--accent);
}

.bottom-line strong {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.bottom-line p { margin: 0; }

blockquote {
  margin: 16px 0 30px;
  padding: 4px 0 4px 24px;
  border-left: 4px solid var(--accent);
  color: #26343b;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
}

.hypotheses,
.procedure,
.conclusions-list,
.future-list,
.plain-list {
  padding-left: 24px;
}

.hypotheses li,
.procedure li,
.conclusions-list li,
.future-list li,
.plain-list li {
  margin: 10px 0;
  padding-left: 5px;
}

.method-note,
.result-caveat {
  color: var(--muted);
  font-size: 15px;
}

.table-wrap {
  width: 100%;
  margin: 22px 0 28px;
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 690px;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.45;
}

caption {
  padding: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-align: left;
}

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

thead th {
  background: #e9edef;
  color: #26343b;
  font-size: 12px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

tbody th { background: #f8f9fa; font-weight: 700; }
.numeric td { font-variant-numeric: tabular-nums; }
.summary-row th, .summary-row td { border-top: 2px solid var(--line-dark); font-weight: 700; }

.results-section {
  margin: 0 -34px;
  padding: 58px 34px !important;
  background: var(--result);
  border-top: 3px solid var(--accent) !important;
}

.results-intro {
  max-width: 850px;
  color: #314149;
  font-size: 19px;
}

.result-block {
  padding: 34px 0 12px;
  border-top: 1px solid #c7d7dc;
}

.result-block:first-of-type { margin-top: 28px; }
.result-block h3 { margin-top: 0; font-family: Georgia, "Times New Roman", serif; font-size: 25px; font-weight: 500; }
.result-table thead th { background: #dfeaec; }
.result-table tbody th { background: #f8fbfb; }

.outcome {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 2px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.outcome.pass { background: var(--pass-bg); color: var(--pass); }

.result-statement {
  padding: 14px 16px;
  background: var(--paper);
  border-left: 3px solid var(--accent);
}

.comparison-summary {
  margin: 24px 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: center;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  padding: 18px 0;
}

.comparison-summary div:not([aria-hidden]) { display: flex; flex-direction: column; gap: 4px; }
.comparison-summary span { color: var(--muted); font-size: 13px; }
.comparison-summary strong { font-family: Georgia, "Times New Roman", serif; font-size: 29px; font-weight: 500; }

.negative-result {
  margin-top: 22px;
  padding: 18px 20px;
  background: var(--warn-bg);
  border-left: 4px solid #bd711f;
}

.negative-result strong { color: var(--warn); }
.negative-result p { margin: 7px 0 0; }

.software-section {
  border-top: 3px solid var(--accent) !important;
}

.download-panel {
  margin: 26px 0 36px;
  padding: 24px;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 30px;
  border: 2px solid var(--accent);
}

.download-panel h3 { margin-top: 0; }
.checksum {
  display: block;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 12px;
}

.download-links {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 10px;
}

.download-links a {
  padding: 10px 12px;
  border: 1px solid var(--line-dark);
  text-align: center;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.download-links .primary-link {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.download-links .primary-link:hover { background: var(--accent-dark); }

.resource-links { padding-left: 20px; }
.resource-links li { margin: 7px 0; }

.references ol { padding-left: 22px; }
.references li { margin: 8px 0; }

footer {
  max-width: 1080px;
  margin: 0 auto 38px;
  padding: 22px 24px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font-size: 13px;
}

footer p { margin: 0; }

@media (max-width: 820px) {
  body { font-size: 16px; }
  main { padding: 0; }
  .report { border: 0; padding: 44px 24px; }
  .report-metadata { grid-template-columns: 1fr 1fr; }
  .contents ol { columns: 1; }
  .results-section { margin: 0 -24px; padding: 46px 24px !important; }
  .download-panel { grid-template-columns: 1fr; }
  footer { margin-bottom: 0; flex-direction: column; background: white; }
}

@media (max-width: 520px) {
  .header-inner { padding: 10px 15px; }
  .report-name { font-size: 14px; }
  .header-download { min-height: 36px; padding: 0 10px; font-size: 12px; }
  .report { padding: 38px 18px; }
  .subtitle { font-size: 20px; }
  h2 { font-size: 28px; }
  .report-metadata { grid-template-columns: 1fr; }
  .report-metadata div { border-bottom: 1px solid var(--line); }
  .contents { padding: 18px; }
  .results-section { margin: 0 -18px; padding: 42px 18px !important; }
  .comparison-summary { grid-template-columns: 1fr; }
  .comparison-summary div[aria-hidden] { display: none; }
}

@media print {
  @page { margin: 16mm; }
  body { background: white; color: black; font-size: 10.5pt; }
  .site-header, .skip-link, .contents, .header-download { display: none !important; }
  main { padding: 0; }
  .report { max-width: none; border: 0; padding: 0; }
  .report > section { padding: 22px 0; break-inside: auto; }
  .results-section { margin: 0; padding: 28px 0 !important; background: white; }
  .result-block, table, .download-panel, .negative-result { break-inside: avoid; }
  a { color: black; text-decoration: none; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 8pt; overflow-wrap: anywhere; }
  footer { max-width: none; padding: 16px 0 0; border-top: 1px solid #999; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
