.hero-actions {
  gap: 10px;
}

.hero-btn {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 6px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(20, 32, 48, 0.14);
}

.hero-btn i {
  font-size: 15px;
}

.hero-btn-blue {
  background-color: #24658f;
}

.hero-btn-green {
  background-color: #168577;
}

.hero-btn-red {
  background-color: #aa4731;
}

.hero-btn-black {
  background-color: #171615;
}

.hero-btn-blue:hover {
  background-color: #1f587d;
  color: #fff;
}

.hero-btn-green:hover {
  background-color: #127568;
  color: #fff;
}

.hero-btn-red:hover {
  background-color: #963d2a;
  color: #fff;
}

.hero-btn-black:hover {
  background-color: #222;
  color: #fff;
}

.selectors {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}

.filter-controls {
  grid-column: 2;
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.copy-controls {
  grid-column: 3;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.filter-controls label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.filter-controls select {
  margin-right: 0;
}

.copy-latex {
  border: 0;
  border-radius: 6px;
  padding: 7px 12px;
  background: #0e0e0e;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
}

.copy-latex:hover {
  background: #222;
}

.copy-notice {
  min-width: 170px;
  color: #1f7a3f;
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.copy-notice.is-visible {
  opacity: 1;
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #eee;
  border-radius: 8px;
}

.leaderboard-table.matrix-mode {
  min-width: 1320px;
  table-layout: auto;
}

.leaderboard-table th.dataset-group {
  background: #d9354b;
  color: #fff;
  font-size: 12px;
}

.leaderboard-table th.metric {
  min-width: 82px;
  background: #f8485c;
  color: #fff;
  font-size: 11px;
}

.metric-sort {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.metric-sort:hover {
  text-decoration: underline;
}

.sort-indicator {
  display: inline-block;
  min-width: 10px;
  font-weight: 700;
}

.metric-symbol {
  display: inline-block;
  line-height: 1;
  white-space: nowrap;
}

.metric-symbol sub,
.metric-symbol sup {
  font-size: 0.78em;
  line-height: 0;
}

.leaderboard-table th.meta,
.leaderboard-table td.meta {
  min-width: 92px;
}

.leaderboard-table td.metric-value {
  font-variant-numeric: tabular-nums;
}

.leaderboard-table td.model {
  font-weight: 600;
}

.leaderboard-table.matrix-mode th.model,
.leaderboard-table.matrix-mode td.model {
  min-width: 140px;
}

.leaderboard-table.matrix-mode th,
.leaderboard-table.matrix-mode td {
  white-space: nowrap;
}

.rank-1 td.rank,
.rank-2 td.rank,
.rank-3 td.rank {
  font-weight: 800;
  color: #d9354b;
}

@media (max-width: 768px) {
  .benchmark {
    padding: 20px 12px;
  }

  .hero-title {
    padding-top: 40px;
    font-size: 2.35rem;
  }

  .hero-description {
    width: 88%;
  }

  .selectors {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .filter-controls,
  .copy-controls {
    display: flex;
    width: 100%;
  }

  .filter-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .copy-controls {
    justify-content: stretch;
    flex-wrap: wrap;
  }

  .filter-controls label {
    width: 100%;
    justify-content: space-between;
  }

  .filter-controls select {
    max-width: 58%;
  }

  .copy-latex {
    width: 100%;
  }

  .copy-notice {
    width: 100%;
    min-width: 0;
  }

  .leaderboard-table {
    font-size: 10px;
  }
}
