:root {
  color-scheme: light;
  --ink: #17212b;
  --muted: #4b5b68;
  --line: #cfd8df;
  --line-dark: #aebbc5;
  --paper: #ffffff;
  --page: #f4f6f7;
  --navy: #17324d;
  --blue: #1d5c87;
  --blue-soft: #edf4f8;
  --green: #185c3a;
  --green-soft: #eef7f1;
  --amber: #774b09;
  --amber-soft: #fff7e8;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--blue);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #123f61;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid #2f7eae;
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 10;
  padding: 0.55rem 0.75rem;
  background: var(--paper);
  border: 2px solid var(--navy);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

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

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.78rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-name {
  color: var(--navy);
  font-weight: 760;
  text-decoration: none;
  white-space: nowrap;
}

.site-name span {
  font-weight: 560;
  color: var(--muted);
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.4rem 1.1rem;
}

.site-header nav a {
  color: var(--ink);
  font-size: 16px;
  font-weight: 650;
  text-decoration: none;
}

main {
  max-width: var(--max);
  margin: 0 auto;
  background: var(--paper);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.report-header {
  padding: 4rem 5rem 3.2rem;
  border-bottom: 1px solid var(--line);
}

.report-type,
.section-number {
  margin: 0 0 0.7rem;
  color: var(--blue);
  font-size: 16px;
  font-weight: 760;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4 {
  color: var(--navy);
  line-height: 1.24;
  text-wrap: balance;
}

h1 {
  max-width: 900px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.25rem, 4.6vw, 3.35rem);
  font-weight: 650;
  letter-spacing: -0.02em;
}

h2 {
  margin: 0 0 1.3rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 650;
}

h3 {
  margin: 2.5rem 0 0.75rem;
  font-size: 1.28rem;
}

h4 {
  margin: 0 0 0.45rem;
  font-size: 1.08rem;
}

p,
li {
  max-width: 82ch;
}

p {
  margin: 0.7rem 0 1rem;
}

.lead {
  max-width: 76ch;
  margin-top: 1.5rem;
  color: #2b3c49;
  font-size: 1.12rem;
}

.release-scope {
  max-width: 82ch;
  margin-top: 1.4rem;
  padding-top: 1rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.contents,
section {
  padding: 3.2rem 5rem;
}

.contents {
  background: #f8fafb;
  border-bottom: 1px solid var(--line);
}

.contents h2 {
  margin-bottom: 0.7rem;
  font-family: inherit;
  font-size: 1.2rem;
}

.contents ol {
  margin: 0;
  padding-left: 1.4rem;
  columns: 2;
  column-gap: 3rem;
}

.contents li {
  margin: 0.3rem 0;
  break-inside: avoid;
}

section {
  border-bottom: 1px solid var(--line);
}

.results {
  background: #fbfcfd;
}

blockquote {
  max-width: 76ch;
  margin: 1.4rem 0 2rem;
  padding: 1.1rem 1.35rem;
  color: #233746;
  background: var(--blue-soft);
  border-left: 5px solid var(--blue);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.12rem;
}

ol,
ul {
  padding-left: 1.55rem;
}

li {
  margin: 0.55rem 0;
}

.hypotheses li {
  margin-bottom: 0.85rem;
}

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

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

.key-results div:last-child {
  border-right: 0;
}

.key-results strong {
  display: block;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.75rem;
  font-weight: 650;
  line-height: 1.2;
}

.key-results span {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
}

.finding,
.warning,
.data-note {
  margin: 1.7rem 0;
  padding: 1.2rem 1.4rem;
  border: 1px solid var(--line-dark);
}

.finding {
  background: var(--green-soft);
  border-left: 5px solid var(--green);
}

.warning {
  background: var(--amber-soft);
  border-left: 5px solid #a66c12;
}

.data-note {
  background: var(--blue-soft);
  border-left: 5px solid var(--blue);
}

.finding h3,
.warning h4,
.data-note h3 {
  margin-top: 0;
}

.finding p:last-child,
.warning p:last-child,
.data-note p:last-child {
  margin-bottom: 0;
}

table {
  width: 100%;
  margin: 1.2rem 0 1.7rem;
  border-collapse: collapse;
  border: 1px solid var(--line-dark);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.5;
}

caption {
  padding: 0 0 0.55rem;
  color: var(--muted);
  font-size: 16px;
  font-weight: 650;
  text-align: left;
}

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

thead th {
  color: #1f3444;
  background: #edf2f5;
  font-weight: 720;
}

tbody th {
  background: #f8fafb;
  font-weight: 680;
}

tfoot th,
tfoot td {
  background: #edf2f5;
  font-weight: 720;
}

.numeric td {
  font-variant-numeric: tabular-nums;
}

.status {
  display: inline-block;
  min-width: 4.2rem;
  padding: 0.12rem 0.45rem;
  border: 1px solid;
  font-size: 16px;
  font-weight: 750;
  text-align: center;
}

.status.pass {
  color: var(--green);
  background: var(--green-soft);
  border-color: #83ad96;
}

.result-statement {
  max-width: 82ch;
  margin: 1.2rem 0 2.2rem;
  padding: 0.9rem 1.1rem;
  background: var(--blue-soft);
  border-left: 4px solid var(--blue);
}

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

.two-column,
.download-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
  margin: 1.2rem 0 1.7rem;
}

.two-column > div,
.download-panel > div {
  padding: 1.15rem 1.3rem;
  background: var(--paper);
  border: 1px solid var(--line-dark);
}

.two-column p:last-child,
.download-panel p:last-child {
  margin-bottom: 0;
}

.download-panel h3 {
  margin-top: 0;
}

.primary-link {
  display: inline-block;
  padding: 0.6rem 0.85rem;
  color: var(--paper);
  background: var(--navy);
  border: 1px solid var(--navy);
  font-weight: 720;
  text-decoration: none;
}

.primary-link:hover {
  color: var(--paper);
  background: #254d6f;
}

code,
pre {
  font-family: "Cascadia Code", Consolas, "Liberation Mono", monospace;
}

code {
  overflow-wrap: anywhere;
  color: #263d50;
  background: #eef2f4;
  padding: 0.08em 0.22em;
}

pre {
  max-width: 100%;
  overflow-x: auto;
  margin: 1.2rem 0;
  padding: 1.1rem 1.25rem;
  color: #edf4f8;
  background: #172b3d;
  border: 1px solid #0d1f2e;
  font-size: 16px;
  line-height: 1.55;
}

pre code {
  color: inherit;
  background: transparent;
  padding: 0;
}

.checklist {
  list-style: none;
  padding-left: 0;
}

.checklist li {
  position: relative;
  padding-left: 1.8rem;
}

.checklist li::before {
  position: absolute;
  left: 0;
  content: "□";
  color: var(--navy);
  font-weight: 700;
}

footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.7rem 2rem 2.5rem;
  color: var(--muted);
  font-size: 16px;
}

footer p {
  margin: 0;
}

@media (max-width: 900px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.45rem;
  }

  .site-header nav {
    justify-content: flex-start;
  }

  .report-header,
  .contents,
  section {
    padding-left: 2.2rem;
    padding-right: 2.2rem;
  }

  .key-results {
    grid-template-columns: repeat(2, 1fr);
  }

  .key-results div:nth-child(2) {
    border-right: 0;
  }

  .key-results div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  table {
    display: block;
    overflow-x: auto;
    white-space: normal;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 16px;
    line-height: 1.68;
  }

  .site-header {
    position: static;
  }

  .site-header nav {
    gap: 0.35rem 0.8rem;
  }

  .report-header,
  .contents,
  section {
    padding: 2.2rem 1.15rem;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.65rem;
  }

  h3 {
    font-size: 1.22rem;
  }

  .contents ol {
    columns: 1;
  }

  .key-results,
  .two-column,
  .download-panel {
    grid-template-columns: 1fr;
  }

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

  .key-results div:last-child {
    border-bottom: 0;
  }

  table,
  caption,
  .status,
  .caveat,
  pre,
  footer,
  .site-header nav a,
  .report-type,
  .section-number,
  .key-results span {
    font-size: 16px;
  }

  th,
  td {
    min-width: 7.5rem;
    padding: 0.65rem;
  }
}

@media print {
  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
  }

  .site-header,
  .skip-link {
    display: none;
  }

  main {
    max-width: none;
    border: 0;
  }

  .report-header,
  .contents,
  section {
    padding: 1.2rem 0;
  }

  section,
  table,
  .finding,
  .warning,
  .data-note {
    break-inside: avoid;
  }

  a {
    color: #000;
  }
}
