:root {
  color-scheme: light;
  --paper: #fbfbfa;
  --ink: #191918;
  --muted: #6f706c;
  --line: #dededa;
  --soft-line: #ecece8;
  --green: #267a52;
  --red: #a34843;
}

* { box-sizing: border-box; }

html { background: var(--paper); }

body {
  margin: 0;
  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: 760px;
  margin-bottom: 52px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.brand-lockup img {
  display: block;
  width: 48px;
  height: 48px;
  border: 1px solid #29252d;
  border-radius: 10px;
  object-fit: cover;
}

.kicker {
  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; }

.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;
}

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

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

thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  background: rgba(251, 251, 250, .97);
  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: 15px 10px;
  border-bottom: 1px solid var(--soft-line);
  text-align: left;
  vertical-align: top;
}

tbody th {
  min-width: 118px;
  font-size: 13px;
  font-weight: 620;
}

tbody tr:hover { background: #f6f6f3; }

.rank { width: 40px; color: #92938e; }
.numeric { text-align: right; white-space: nowrap; }
.growth { font-size: 14px; font-weight: 680; }
.positive { color: var(--green); }
.negative { color: var(--red); }
.contract { min-width: 235px; color: #4e4f4c; font-size: 11px; line-height: 1.55; }
.tier { font-weight: 620; white-space: nowrap; }

footer {
  max-width: 820px;
  padding-top: 22px;
  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; }
  .brand-lockup { gap: 10px; margin-bottom: 18px; }
  .brand-lockup img { width: 42px; height: 42px; border-radius: 9px; }
  h1 { font-size: 39px; }
  .subtitle { font-size: 15px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 5px; }
  .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) minmax(92px, auto);
    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-column: 1;
    grid-row: 1;
    width: auto;
    padding-top: 2px;
    font-size: 11px;
  }

  tbody th {
    grid-column: 2;
    grid-row: 1;
    font-size: 15px;
  }

  tbody td:nth-child(n+3) {
    grid-column: 2 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    padding: 7px 0;
    border-bottom: 1px solid var(--soft-line);
    text-align: right;
  }

  tbody td:nth-child(3) { margin-top: 13px; }
  tbody td:last-child { border-bottom: 0; padding-bottom: 0; }

  tbody td:nth-child(n+3)::before {
    color: var(--muted);
    font-size: 10px;
    font-weight: 650;
    letter-spacing: .055em;
    text-align: left;
    text-transform: uppercase;
  }

  tbody td:nth-child(3)::before { content: "Start date"; }
  tbody td:nth-child(4)::before { content: "Prior 30D"; }
  tbody td:nth-child(5)::before { content: "Current 30D"; }
  tbody td:nth-child(6)::before { content: "$ change"; }
  tbody td:nth-child(7)::before { content: "% change"; }
  tbody td:nth-child(8)::before { content: "Contract split / tiers"; }
  tbody td:nth-child(9)::before { content: "Current tier"; }

  tbody .growth { font-size: 15px; }

  tbody .contract {
    align-items: start;
    font-size: 11px;
    line-height: 1.6;
  }
}

@media print {
  .report { width: 100%; padding: 24px; }
  thead th { position: static; }
  tbody tr:hover { background: transparent; }
}
