:root {
  --ink: #182126;
  --muted: #56636b;
  --accent: #155665;
  --accent-dark: #0e414c;
  --paper: #ffffff;
  --page: #edf0f1;
  --line: #cbd3d6;
  --line-dark: #9eaaaf;
  --soft: #f5f7f7;
  --result: #f0f6f6;
  --review-bg: #fff1cc;
  --review-ink: #6d4a00;
  --warning-bg: #fff6e7;
  --warning-line: #b97a20;
}

* { box-sizing: border-box; }

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

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

a { color: var(--accent); text-underline-offset: 0.16em; }
a:hover { color: var(--accent-dark); }
a:focus-visible, .table-wrap:focus-visible {
  outline: 3px solid #9c6200;
  outline-offset: 3px;
}

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

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

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

.header-inner {
  max-width: 1120px;
  min-height: 58px;
  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;
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
}

.site-header nav a { color: var(--muted); text-decoration: none; }

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

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

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

.report-type,
.section-number {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  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(36px, 4.5vw, 50px);
  font-weight: 500;
  letter-spacing: -0.02em;
}

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

h2 {
  margin: 0 0 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 31px;
  font-weight: 500;
}

h3 {
  margin: 32px 0 12px;
  font-size: 20px;
}

h4 {
  margin: 24px 0 8px;
  color: var(--ink);
  font-size: 16px;
}

p { margin: 0 0 18px; }

code {
  padding: 0.06em 0.24em;
  overflow-wrap: anywhere;
  background: #edf1f2;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.9em;
}

.report-metadata {
  margin: 30px 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: 15px 15px 15px 0; }
.report-metadata dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.report-metadata dd { margin: 5px 0 0; font-size: 14px; line-height: 1.45; }

.contents {
  margin-top: 28px;
  padding: 20px 23px;
  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: 40px;
}
.contents li { margin: 4px 0; padding-left: 4px; font-size: 15px; }

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

.bottom-line,
.comparison-note,
.reproducibility,
.warning {
  margin-top: 26px;
  padding: 18px 20px;
  border-left: 4px solid var(--accent);
  background: var(--result);
}

.bottom-line > strong,
.comparison-note > strong,
.reproducibility > strong,
.warning > strong {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.bottom-line p,
.comparison-note p,
.reproducibility p,
.warning p { margin: 0; }

.warning {
  background: var(--warning-bg);
  border-left-color: var(--warning-line);
}

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

.plain-list,
.procedure,
.references ol,
.resource-links { padding-left: 23px; }

.plain-list li,
.procedure li,
.references li,
.resource-links li { margin: 9px 0; padding-left: 4px; }

.method-note {
  margin-top: 20px;
  color: var(--muted);
  font-size: 15px;
}

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

.key-results {
  margin: 28px 0 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line-dark);
}

.key-results div {
  padding: 16px;
  border-right: 1px solid var(--line);
}

.key-results div:last-child { border-right: 0; }
.key-results strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.key-results span { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; line-height: 1.35; }

.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 9px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-align: left;
}

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

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

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

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

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

.result-block:first-of-type { margin-top: 26px; }
.result-block h3 {
  margin-top: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 500;
}

.result-table thead th { background: #dce9eb; }
.result-table tbody th { background: #f7fbfb; }

.status {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 2px;
  font-size: 12px;
  font-weight: 700;
}

.status.review { color: var(--review-ink); background: var(--review-bg); }

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

.download-panel {
  margin: 25px 0;
  padding: 22px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 28px;
  border: 2px solid var(--accent);
}

.secondary-panel { border-width: 1px; border-color: var(--line-dark); }
.download-panel h3 { margin-top: 0; }
.download-panel p { margin-bottom: 0; }

.primary-link {
  display: block;
  padding: 10px 13px;
  color: white;
  background: var(--accent);
  border: 1px solid var(--accent);
  text-align: center;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.primary-link:hover { color: white; background: var(--accent-dark); }

.download-links {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.download-links > a:not(.primary-link) {
  padding: 8px 10px;
  border: 1px solid var(--line);
  text-align: center;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.checksum {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
}

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

footer p { margin: 0; }

@media (max-width: 820px) {
  body { font-size: 16px; }
  main { padding: 0; }
  .report { padding: 43px 24px; border: 0; }
  .site-header nav { display: none; }
  .report-metadata { grid-template-columns: 1fr 1fr; }
  .contents ol { columns: 1; }
  .key-results { grid-template-columns: 1fr 1fr; }
  .key-results div:nth-child(2) { border-right: 0; }
  .key-results div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .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 { padding: 36px 18px; }
  .subtitle { font-size: 20px; }
  h2 { font-size: 27px; }
  .report-metadata { grid-template-columns: 1fr; }
  .report-metadata div { border-bottom: 1px solid var(--line); }
  .contents { padding: 17px; }
  .key-results { grid-template-columns: 1fr; }
  .key-results div { border-right: 0; border-bottom: 1px solid var(--line); }
  .key-results div:last-child { border-bottom: 0; }
  .results-section { margin: 0 -18px; padding: 42px 18px !important; }
}

@media print {
  @page { margin: 16mm; }
  body { color: black; background: white; font-size: 10.5pt; }
  .site-header, .skip-link, .contents { display: none !important; }
  main { padding: 0; }
  .report { max-width: none; padding: 0; border: 0; }
  .report > section { padding: 22px 0; }
  .results-section { margin: 0; padding: 28px 0 !important; background: white; }
  .result-block, table, .download-panel, .warning { break-inside: avoid; }
  a { color: black; text-decoration: none; }
  footer { max-width: none; padding: 16px 0 0; border-top: 1px solid #999; }
}

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