:root {
  --blue: #0647d1;
  --blue-ink: #93c3fd;
  --blue-ring: #0751ef;
  --blue-tint: #eff6ff;
  --paper: #fafafa;
  --card: #ffffff;
  --ink: #09090b;
  --matte: #dfdfe2;
  --ash-100: #f4f4f5;
  --ash-200: #e4e4e7;
  --ash-500: #71717a;
  --ash-700: #3f3f46;
  --amber: #ab510d;
  --amber-tint: #fffbeb;
  --green: #17694b;
  --green-tint: #ecfdf5;
  --red: #ef4444;
  --font: Inter, ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
  padding: 0 16px 48px;
  background: var(--paper);
  color: var(--ink);
  font: 400 0.875rem/1.5 var(--font);
}
h1 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
}
h2 {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  margin: 32px 0 8px;
}
.sub {
  color: var(--ash-500);
  margin: 4px 0 0;
  font-size: 0.8125rem;
}
.strip {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0 16px;
  border-bottom: 1px solid var(--matte);
}
.badge {
  background: var(--amber-tint);
  color: var(--amber);
  border: 1px solid var(--amber);
  border-radius: 9999px;
  padding: 2px 10px;
  font-size: 0.75rem;
  font-weight: 500;
}
main {
  max-width: 1100px;
}

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.tile {
  background: var(--card);
  border: 1px solid var(--matte);
  border-radius: 8px;
  padding: 16px;
}
.tile .label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ash-500);
}
.tile .value {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.tile .pct {
  font-size: 1rem;
  font-weight: 600;
  color: var(--blue);
  margin-left: 6px;
}
.tile .delta {
  font-size: 0.75rem;
  color: var(--ash-700);
}
.tile .delta.up {
  color: var(--green);
}
.tile .delta.down {
  color: var(--red);
}

.chart {
  background: var(--card);
  border: 1px solid var(--matte);
  border-radius: 8px;
  padding: 16px;
  overflow-x: auto;
}
.chart svg {
  display: block;
  min-width: 640px;
  width: 100%;
  height: auto;
  font-family: var(--font);
}
.axis-line {
  stroke: var(--ash-200);
}
.axis-label {
  fill: var(--ash-500);
  font-size: 10px;
}
.series-crawled {
  stroke: var(--blue);
}
.series-fitment {
  stroke: var(--blue-ink);
}
.bar-track {
  fill: var(--ash-200);
}
.bar-crawled {
  fill: var(--blue);
}
.bar-fitment {
  fill: var(--blue-ink);
}
.bar-label {
  fill: var(--ash-700);
  font-size: 11px;
}
.bar-value {
  fill: var(--ash-500);
  font-size: 11px;
}
.legend {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.75rem;
  color: var(--ash-700);
  margin-top: 8px;
}
.legend-swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  margin-right: 6px;
  background: var(--swatch);
  vertical-align: -1px;
}

.scroll {
  overflow-x: auto;
  background: var(--card);
  border: 1px solid var(--matte);
  border-radius: 8px;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-variant-numeric: tabular-nums;
}
th,
td {
  text-align: left;
  padding: 8px 12px;
  border-bottom: 1px solid var(--ash-200);
  white-space: nowrap;
}
th {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ash-500);
  user-select: none;
}
th button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
th[aria-sort="descending"]::after {
  content: " ↓";
}
th[aria-sort="ascending"]::after {
  content: " ↑";
}
td.num,
th.num {
  text-align: right;
}
tr.make:hover {
  background: var(--blue-tint);
}
.indent-model {
  padding-left: 32px;
}
tr.model {
  background: var(--ash-100);
}
/* The row's own toggle: a real button wearing the cell's text. */
.disclosure {
  font: inherit;
  color: inherit;
  text-align: left;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.indent-entry {
  padding-left: 56px;
}
.indent-trim {
  padding-left: 80px;
}
th button:focus-visible,
.disclosure:focus-visible {
  outline: 2px solid var(--blue-ring);
  outline-offset: -2px;
}
tr.entry.uncovered {
  background: var(--amber-tint);
}
.bar {
  display: inline-block;
  height: 8px;
  border-radius: 2px;
  background: var(--ash-200);
  width: 120px;
  vertical-align: middle;
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  background: var(--blue);
}
.tag {
  font-size: 0.6875rem;
  font-weight: 500;
  border-radius: 4px;
  padding: 1px 6px;
  background: var(--ash-100);
  color: var(--ash-700);
  font-family: var(--mono);
}
.tag.crawled,
.tag.fitment,
/* A related trim is still covered, so it wears the same blue as the two layers. */
.tag.related {
  background: var(--blue-tint);
  color: var(--blue);
}
.tag.exact {
  background: var(--green-tint);
  color: var(--green);
}
.tag.none {
  background: var(--amber-tint);
  color: var(--amber);
}

.quality-list {
  margin: 0;
  padding-left: 20px;
}
.quality-list li {
  margin: 4px 0;
}
code {
  font-family: var(--mono);
  font-size: 0.8125rem;
}

@media (max-width: 480px) {
  .tile .value {
    font-size: 1.375rem;
  }
}
