:root {
  color-scheme: light;
  --paper: #fbfbfa;
  --ink: #191918;
  --muted: #6f706c;
  --line: #dededa;
  --soft-line: #ecece8;
  --soft-fill: #f5f5f2;
  --accent: #267a52;
}

* { box-sizing: border-box; }
html { background: var(--paper); }

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

.report {
  width: min(100% - 56px, 1480px);
  margin: 0 auto;
  padding: 72px 0 48px;
}

.report-header {
  max-width: 800px;
  margin-bottom: 52px;
}

.kicker {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .09em;
  text-transform: uppercase;
}

h1, h2, p { margin-top: 0; }

h1 {
  margin-bottom: 12px;
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 620;
  letter-spacing: -.045em;
  line-height: 1.02;
}

.subtitle {
  max-width: 680px;
  margin-bottom: 22px;
  color: #50514e;
  font-size: 17px;
  line-height: 1.5;
}

.summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  color: var(--muted);
  font-size: 12px;
}

.summary strong {
  color: var(--ink);
  font-weight: 620;
}

.report-section + .report-section { margin-top: 46px; }

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ink);
}

h2 {
  margin-bottom: 0;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -.012em;
}

.section-heading p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 11px;
}

.benchmark-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.benchmark {
  display: grid;
  gap: 8px;
  padding: 22px 10px 24px;
}

.benchmark + .benchmark { border-left: 1px solid var(--soft-line); }

.benchmark span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.benchmark strong {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 620;
  letter-spacing: -.035em;
  line-height: 1;
}

.table-wrap { overflow-x: auto; }

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

thead th {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .055em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

tbody th,
tbody td {
  padding: 18px 10px;
  border-bottom: 1px solid var(--soft-line);
  text-align: left;
  vertical-align: top;
}

tbody th {
  min-width: 140px;
  font-size: 14px;
  font-weight: 620;
}

tbody tr:hover { background: var(--soft-fill); }

.rank {
  width: 44px;
  color: #92938e;
  font-weight: 400;
}

.numeric {
  min-width: 112px;
  text-align: right;
  white-space: nowrap;
}

.value {
  color: var(--accent);
  font-size: 14px;
  font-weight: 680;
}

.actions-cell { width: 54%; }

.actions-cell ul {
  margin: 0;
  padding-left: 17px;
}

.actions-cell li + li { margin-top: 5px; }
.muted { color: #a0a19c; }

.checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  min-height: 58px;
  padding: 18px 10px;
  border-bottom: 1px solid var(--soft-line);
}

.checklist li:nth-child(odd) { border-right: 1px solid var(--soft-line); }
.checklist li:hover { background: var(--soft-fill); }

.check-index {
  color: #92938e;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

footer {
  max-width: 820px;
  padding-top: 28px;
  color: var(--muted);
  font-size: 11px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 720px) {
  .report {
    width: min(100% - 28px, 1480px);
    padding: 40px 0 34px;
  }

  .report-header { margin-bottom: 36px; }
  h1 { font-size: 39px; }
  .subtitle { font-size: 15px; }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .benchmark { padding: 18px 8px 20px; }
  .table-wrap { overflow: visible; }
  table, tbody { display: block; min-width: 0; }
  thead { display: none; }

  tbody tr {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    padding: 19px 0 20px;
    border-bottom: 1px solid var(--line);
  }

  tbody tr:hover { background: transparent; }

  tbody th,
  tbody td {
    min-width: 0;
    padding: 0;
    border: 0;
  }

  tbody .rank {
    grid-area: 1 / 1;
    width: auto;
    padding-top: 2px;
    font-size: 11px;
  }

  tbody th {
    grid-area: 1 / 2;
    font-size: 15px;
  }

  tbody td[data-label] {
    grid-column: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    gap: 18px;
    padding: 9px 0;
    border-bottom: 1px solid var(--soft-line);
    text-align: right;
    white-space: normal;
  }

  tbody td[data-label]:first-of-type { margin-top: 13px; }
  tbody td[data-label]:last-child { border-bottom: 0; padding-bottom: 0; }

  tbody td[data-label]::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 10px;
    font-weight: 650;
    letter-spacing: .055em;
    text-align: left;
    text-transform: uppercase;
  }

  .actions-cell { width: auto; }
  .actions-cell ul { text-align: left; }
  .checklist { grid-template-columns: 1fr; }
  .checklist li:nth-child(odd) { border-right: 0; }
}

@media print {
  .report { width: 100%; padding: 24px; }
  tbody tr:hover,
  .checklist li:hover { background: transparent; }
}
