:root {
  --ink: #142027;
  --ink-soft: #3f4d54;
  --paper: #fffdf8;
  --page: #e9ece9;
  --line: #c8cfcb;
  --line-soft: #e1e5e2;
  --navy: #173744;
  --teal: #1f6967;
  --teal-soft: #e5f0ed;
  --red: #a33b2f;
  --red-dark: #74271f;
  --red-soft: #f8e9e5;
  --amber: #806018;
  --amber-soft: #f7f0dd;
  --white: #ffffff;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.68;
}

a {
  color: var(--navy);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--teal);
}

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

code {
  font-family: var(--mono);
  font-size: 0.88em;
  overflow-wrap: anywhere;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 9px 13px;
  background: var(--ink);
  color: var(--white);
  transform: translateY(-160%);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid #91a09b;
  background: rgba(250, 250, 247, 0.98);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(1220px, calc(100% - 40px));
  min-height: 60px;
  margin: 0 auto;
}

.wordmark {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.site-header nav {
  display: flex;
  gap: 26px;
}

.site-header nav a {
  color: #34464d;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

.header-status {
  justify-self: end;
  max-width: 240px;
  padding: 4px 9px;
  border: 1px solid #527a72;
  color: #27534d;
  font: 800 9px/1.35 var(--mono);
  letter-spacing: 0.045em;
  text-align: center;
}

.report {
  width: min(1160px, calc(100% - 40px));
  margin: 36px auto 78px;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: 0 18px 60px rgba(20, 32, 39, 0.08);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 318px;
  gap: 68px;
  padding: 78px 84px 64px;
  border-bottom: 1px solid var(--line);
}

.eyebrow,
.section-number,
.card-label,
.result-label,
.decision-kicker {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.032em;
}

h1 {
  max-width: 720px;
  margin: 0;
  color: #10262f;
  font-size: clamp(44px, 6.2vw, 72px);
  line-height: 1.04;
}

.dek {
  max-width: 720px;
  margin: 30px 0 0;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.5;
}

.decision-card {
  align-self: start;
  border: 1px solid var(--red);
  border-top: 8px solid var(--red);
  background: var(--red-soft);
}

.decision-card > * {
  margin-right: 24px;
  margin-left: 24px;
}

.decision-kicker {
  margin-top: 25px;
  color: var(--red-dark);
}

.decision-card h2 {
  margin-top: 0;
  margin-bottom: 16px;
  color: var(--red-dark);
  font-family: var(--mono);
  font-size: 29px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.06;
}

.decision-card-split {
  border-color: #6e8f87;
  border-top-color: var(--teal);
  background: linear-gradient(to bottom, var(--teal-soft) 0, var(--teal-soft) 46%, var(--red-soft) 46%, var(--red-soft) 100%);
}

.decision-card-split h2,
.decision-card-split .decision-kicker {
  color: #165755;
}

.decision-card-split h2 span {
  color: #0f625b;
}

.decision-boundary {
  margin-top: 28px !important;
  padding-top: 18px;
  border-top: 1px solid #d1aaa3;
  color: var(--red-dark) !important;
  font: 800 11px/1.55 var(--mono) !important;
  letter-spacing: 0.025em;
}

.decision-card-split dl {
  border-top-color: #d6b9b4;
}

.status-banner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 30px;
  align-items: center;
  padding: 22px 84px;
  border-bottom: 1px solid #cba59e;
  background: var(--red-soft);
  color: #5a3832;
}

.status-banner strong {
  color: var(--red-dark);
  font: 800 13px/1.55 var(--mono);
  letter-spacing: 0.02em;
}

.status-banner span {
  font-size: 12px;
  line-height: 1.5;
}

.decision-card > p:not(.decision-kicker) {
  color: #51332f;
  font-size: 13px;
  line-height: 1.55;
}

.decision-card dl {
  margin: 24px 0 0;
  border-top: 1px solid #d9b8b1;
}

.decision-card dl div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
  padding: 11px 24px;
  border-bottom: 1px solid #dfc5bf;
}

.decision-card dl div:last-child {
  border-bottom: 0;
}

.decision-card dt {
  color: #72524c;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.decision-card dd {
  margin: 0;
  color: #472b26;
  font-size: 12px;
  font-weight: 700;
}

.metric-ribbon {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
  background: var(--navy);
  color: var(--white);
}

.metric {
  min-height: 154px;
  padding: 26px 28px;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.metric:last-child {
  border-right: 0;
}

.metric-value,
.metric-label,
.metric-note {
  display: block;
}

.metric-value {
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.metric-label {
  margin-top: 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.metric-note {
  margin-top: 4px;
  color: #c8d9dc;
  font-size: 11px;
  line-height: 1.4;
}

.contents {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 28px;
  padding: 30px 84px;
  border-bottom: 1px solid var(--line);
  background: #f5f6f3;
}

.contents > p {
  margin: 1px 0 0;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.contents ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px 30px;
  margin: 0;
  padding-left: 22px;
}

.contents li,
.contents a {
  font-size: 13px;
}

.section {
  padding: 68px 84px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 75px;
}

.section h2 {
  max-width: 850px;
  margin: 0 0 27px;
  color: #132d37;
  font-size: clamp(34px, 4.5vw, 50px);
  line-height: 1.15;
}

.section h3 {
  margin: 0 0 9px;
  color: #17333d;
  font-size: 19px;
  line-height: 1.35;
}

.section p,
.section > ul,
.section > ol:not(.method-steps):not(.future-list):not(.conclusion-list) {
  max-width: 850px;
}

.section p {
  margin-top: 0;
  margin-bottom: 18px;
}

.section .lead {
  max-width: 920px;
  color: #33474f;
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.58;
}

.summary {
  background: #fbfcf9;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 48px;
  max-width: 940px;
  margin-top: 34px;
  border-top: 2px solid var(--ink);
}

.summary-grid > div {
  padding: 24px 0 18px;
  border-bottom: 1px solid var(--line-soft);
}

.summary-grid p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.plain-warning {
  max-width: 940px;
  margin-top: 32px;
  padding: 22px 25px;
  border-left: 4px solid var(--red);
  background: var(--red-soft);
  color: #52322d;
}

.question-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 960px;
  border-top: 2px solid var(--ink);
}

.question-list article {
  position: relative;
  min-height: 240px;
  padding: 30px 30px 25px 0;
  border-bottom: 1px solid var(--line);
}

.question-list article:nth-child(odd) {
  padding-right: 40px;
  border-right: 1px solid var(--line);
}

.question-list article:nth-child(even) {
  padding-left: 40px;
}

.question-list p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.answer,
.pill {
  display: inline-block;
  margin-bottom: 13px;
  padding: 2px 7px;
  border-radius: 2px;
  font: 800 10px var(--mono);
  letter-spacing: 0.045em;
}

.answer-pass,
.pill-pass {
  background: var(--teal-soft);
  color: #165755;
}

.answer-fail,
.pill-fail {
  background: var(--red-soft);
  color: var(--red-dark);
}

.answer-mixed {
  background: var(--amber-soft);
  color: var(--amber);
}

.method-steps,
.future-list,
.conclusion-list {
  max-width: 940px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: sequence;
}

.method-steps li,
.future-list li,
.conclusion-list li {
  position: relative;
  padding: 22px 0 22px 66px;
  border-top: 1px solid var(--line-soft);
  counter-increment: sequence;
}

.method-steps li::before,
.future-list li::before,
.conclusion-list li::before {
  position: absolute;
  top: 22px;
  left: 0;
  width: 42px;
  color: var(--teal);
  content: counter(sequence, decimal-leading-zero);
  font: 800 12px var(--mono);
}

.method-steps p,
.future-list p,
.conclusion-list p {
  margin-bottom: 0;
}

.subhead {
  max-width: 900px;
  margin-top: 52px !important;
  padding-top: 24px;
  border-top: 2px solid var(--ink);
}

.table-wrap {
  max-width: 100%;
  margin: 25px 0 14px;
  overflow-x: auto;
  border-top: 2px solid var(--ink);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.5;
}

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

th {
  background: #f0f3f1;
  color: #35464c;
  font-size: 10px;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

tbody tr:nth-child(even) {
  background: #fafbf9;
}

.failed-row {
  background: var(--red-soft) !important;
}

.results {
  background: #fafbfa;
}

.result-callout {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 38px;
  align-items: center;
  max-width: 950px;
  margin: 30px 0 34px;
  padding: 25px 28px;
  border: 1px solid var(--red);
  background: var(--red-soft);
}

.result-callout h3 {
  margin: 0;
  color: var(--red-dark);
  font: 800 28px/1.05 var(--mono);
}

.result-callout-boundary {
  border-color: #73928a;
  background: linear-gradient(90deg, var(--teal-soft) 0, var(--teal-soft) 36%, var(--red-soft) 36%, var(--red-soft) 100%);
}

.result-callout-boundary h3,
.result-callout-boundary .result-label {
  color: #165755;
}

.result-callout p:last-child {
  margin: 0;
  color: #553631;
  font-size: 14px;
}

.result-label {
  color: var(--red-dark);
}

.evidence-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 950px;
  margin: 0 0 46px;
  border: 1px solid var(--line);
  background: var(--line);
}

.evidence-card {
  min-height: 218px;
  padding: 24px;
  background: var(--paper);
}

.evidence-card p:last-child {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.55;
}

.big-number {
  margin: 18px 0 12px !important;
  color: #173f4b;
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.big-number span {
  font-size: 18px;
  letter-spacing: -0.02em;
}

.class-results {
  max-width: 900px;
  margin: 24px 0 42px;
  padding: 17px 22px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.class-row {
  display: grid;
  grid-template-columns: 160px 1fr 62px;
  gap: 18px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
}

.class-row:last-child {
  border-bottom: 0;
}

.class-row > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.class-row > div:first-child span,
.class-row > span {
  color: var(--ink-soft);
  font: 700 11px var(--mono);
}

.bar-track {
  height: 13px;
  overflow: hidden;
  background: #e6ebe8;
}

.bar-fill {
  display: block;
  height: 100%;
  background: var(--teal);
}

.class-row-alert .bar-fill {
  background: var(--red);
}

.rate-14 { width: 14.3%; }
.rate-40 { width: 40%; }
.rate-50 { width: 50%; }
.rate-89 { width: 88.9%; }
.rate-88 { width: 87.5%; }
.rate-100 { width: 100%; }

.hypothesis-table {
  max-width: 950px;
}

.caption {
  color: #66737a;
  font-size: 11px;
  line-height: 1.5;
}

.conclusion-list li {
  padding-top: 20px;
  padding-bottom: 20px;
}

.limitations {
  background: #f7f5f1;
}

.limitations-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 950px;
  border-top: 2px solid var(--ink);
}

.limitations-grid article {
  padding: 23px 30px 20px 0;
  border-bottom: 1px solid var(--line);
}

.limitations-grid article:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.limitations-grid article:nth-child(even) {
  padding-right: 0;
  padding-left: 30px;
}

.limitations-grid p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.download-panel {
  display: grid;
  grid-template-columns: 1fr 250px;
  gap: 36px;
  align-items: center;
  max-width: 950px;
  margin: 30px 0;
  padding: 28px 30px;
  border: 1px solid var(--red);
  background: var(--red-soft);
}

.download-panel h3 {
  margin-bottom: 8px;
  color: var(--red-dark);
  font-size: 24px;
}

.download-panel p {
  margin-bottom: 0;
  color: #60433e;
  font-size: 13px;
}

.download-actions {
  display: grid;
  gap: 8px;
  justify-items: start;
}

.download-actions > a:not(.button) {
  font-size: 12px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  padding: 0 17px;
  border: 1px solid var(--red-dark);
  background: var(--red-dark);
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.button:hover {
  background: var(--red);
  color: var(--white);
}

.hash {
  margin-top: 17px !important;
}

.hash span {
  display: block;
  margin-bottom: 3px;
  color: #755851;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hash code {
  display: block;
  max-width: 610px;
  color: var(--ink);
  font-size: 10px;
  overflow-wrap: anywhere;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 950px;
}

.download-grid article {
  padding: 24px;
  border: 1px solid var(--line);
  background: #f7f9f7;
}

.download-grid p {
  margin-bottom: 12px;
  color: var(--ink-soft);
  font-size: 13px;
}

.download-grid .compact {
  margin-top: 14px !important;
}

.artifact-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  max-width: 950px;
  border: 1px solid var(--line);
  background: var(--line);
}

.artifact-list a {
  display: grid;
  gap: 6px;
  min-height: 112px;
  align-content: center;
  padding: 18px 20px;
  background: var(--paper);
  text-decoration: none;
}

.artifact-list a:hover {
  background: var(--teal-soft);
}

.artifact-list span {
  font-size: 13px;
  font-weight: 800;
}

.artifact-list code,
.artifact-list small {
  color: #66757a;
  font-size: 9px;
  overflow-wrap: anywhere;
}

.reproduction-box {
  max-width: 950px;
  margin-top: 32px;
  padding: 24px 28px;
  border-left: 4px solid var(--teal);
  background: var(--teal-soft);
}

.reproduction-box li {
  margin-bottom: 7px;
  font-size: 13px;
}

.privacy {
  background: #f2f6f4;
}

.privacy-caveat {
  max-width: 900px !important;
  margin-top: 26px !important;
  padding: 20px 22px;
  border: 1px solid #9bafa8;
  background: var(--white);
  color: #3c4c4c;
  font-size: 13px;
}

.references ol {
  max-width: 900px !important;
}

.references li {
  margin-bottom: 13px;
}

.report-footer {
  padding: 32px 84px 42px;
  color: #657177;
  font-size: 11px;
}

.report-footer p {
  margin: 5px 0;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .decision-card {
    max-width: 520px;
  }

  .metric-ribbon {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric:nth-child(2) {
    border-right: 0;
  }

  .metric:nth-child(-n+2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  .contents ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .evidence-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .site-header nav {
    display: none;
  }

  .report {
    width: 100%;
    margin: 0;
    border-right: 0;
    border-left: 0;
    box-shadow: none;
  }

  .hero,
  .section {
    padding: 48px 30px;
  }

  .contents {
    grid-template-columns: 1fr;
    padding: 28px 30px;
  }

  .summary-grid,
  .question-list,
  .limitations-grid {
    grid-template-columns: 1fr;
  }

  .question-list article,
  .question-list article:nth-child(odd),
  .question-list article:nth-child(even),
  .limitations-grid article,
  .limitations-grid article:nth-child(odd),
  .limitations-grid article:nth-child(even) {
    min-height: 0;
    padding: 24px 0;
    border-right: 0;
  }

  .result-callout,
  .download-panel {
    grid-template-columns: 1fr;
  }

  .status-banner {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 20px 30px;
  }

  .artifact-list,
  .download-grid {
    grid-template-columns: 1fr;
  }

  .report-footer {
    padding: 30px;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 15px;
  }

  .header-inner {
    width: calc(100% - 28px);
  }

  .hero,
  .section {
    padding: 38px 20px;
  }

  .hero {
    gap: 32px;
  }

  h1 {
    font-size: 40px;
  }

  .dek,
  .section .lead {
    font-size: 18px;
  }

  .metric-ribbon,
  .contents ol,
  .evidence-grid {
    grid-template-columns: 1fr;
  }

  .metric,
  .metric:nth-child(2) {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  .metric:last-child {
    border-bottom: 0;
  }

  .contents {
    padding: 24px 20px;
  }

  .status-banner {
    padding: 18px 20px;
  }

  .method-steps li,
  .future-list li,
  .conclusion-list li {
    padding-left: 48px;
  }

  .class-row {
    grid-template-columns: 1fr 48px;
  }

  .class-row .bar-track {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .decision-card > * {
    margin-right: 19px;
    margin-left: 19px;
  }
}

@media print {
  @page {
    size: A4;
    margin: 15mm;
  }

  body {
    background: var(--white);
    color: #000;
    font-size: 9.5pt;
  }

  .site-header,
  .skip-link,
  .contents,
  .button {
    display: none !important;
  }

  .report {
    width: 100%;
    margin: 0;
    border: 0;
    box-shadow: none;
  }

  .hero,
  .section,
  .report-footer {
    padding: 8mm 0;
  }

  .metric-ribbon {
    color: #000;
    background: #fff;
    border-top: 1px solid #000;
  }

  .metric,
  .metric-note {
    color: #000;
    border-color: #aaa !important;
  }

  h1 {
    font-size: 29pt;
  }

  .section h2 {
    font-size: 21pt;
  }

  h2,
  h3 {
    break-after: avoid;
  }

  p,
  li,
  table,
  .evidence-card,
  .result-callout,
  .download-panel,
  .privacy-caveat {
    break-inside: avoid;
  }

  a {
    color: #000;
    text-decoration: none;
  }

  .references a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 7pt;
    overflow-wrap: anywhere;
  }
}

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