@import url("./nav-benchmark.css");

.benchmarks-page {
  padding-bottom: 4rem;
}

.benchmarks-hero {
  padding: 2.4rem 0 1rem;
  max-width: 54rem;
}

.benchmarks-hero h1 {
  font-family: var(--font-body);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 0.8rem;
}

.benchmarks-hero .lede {
  max-width: 50rem;
}

.benchmark-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1rem;
  margin: 1rem 0 1.5rem;
}

.benchmark-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 1.2rem 1.25rem;
}

.benchmark-card h2,
.benchmark-card h3 {
  font-family: var(--font-body);
  margin-top: 0;
}

.benchmark-card p {
  color: var(--muted);
}

.podium {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.podium li {
  display: grid;
  grid-template-columns: 2.1rem 1fr auto;
  gap: 0.6rem;
  align-items: center;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.6);
}

.podium-rank {
  font-size: 1.2rem;
  font-weight: 700;
}

.podium-score {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--accent-strong);
}

.benchmark-section {
  margin-top: 1.5rem;
}

.benchmark-section h2 {
  font-family: var(--font-body);
  font-size: clamp(1.45rem, 2.3vw, 1.9rem);
  margin-top: 0;
}

.benchmark-note {
  padding: 0.8rem 1rem;
  border-left: 3px solid rgba(15, 107, 107, 0.4);
  background: rgba(15, 107, 107, 0.06);
  color: var(--muted);
}

.data-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin-top: 1rem;
}

.benchmark-table {
  width: 100%;
  min-width: 46rem;
  border-collapse: collapse;
  font-size: 0.9rem;
  line-height: 1.45;
}

.benchmark-table th,
.benchmark-table td {
  border: 1px solid var(--line);
  padding: 0.55rem 0.65rem;
  text-align: left;
  vertical-align: top;
}

.benchmark-table th {
  background: rgba(15, 107, 107, 0.08);
  white-space: nowrap;
}

.benchmark-table td.num,
.benchmark-table th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.benchmark-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.35);
}

.raw-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.raw-links a {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.55);
}

.raw-links a:hover {
  border-color: rgba(15, 107, 107, 0.45);
  text-decoration: underline;
}

@media (max-width: 720px) {
  .benchmarks-hero {
    padding-top: 1.5rem;
  }

  .benchmark-card {
    padding: 1rem;
  }
}
