
/* Same brand gradient as this benchmark's card on the hub. */
.hero {
  background: var(--gradient-ice-blue-to-purple);
  border-bottom: 1px solid var(--grey-300);
}
@media (max-width: 640px) {
  .hero-inner {
    padding: 24px 0 20px;
  }
}
.result-row:hover,
.cost-row:hover,
.dbar-row:hover,
.pie-item:hover,
.fam-row:hover {
  background: var(--grey-100);
}
/* Undo the leaderboard table styles that would cascade in. */
.k-table th {
  position: static;
  background: transparent;
  border: 0;
  cursor: default;
  padding: 6px 4px;
  text-align: center;
  font-size: var(--text-12);
  font-weight: 600;
  color: var(--grey-500);
  white-space: nowrap;
}
.k-table th:hover {
  background: transparent;
}
.k-table tbody tr {
  border-bottom: 0;
}
.k-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-14);
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.k-table th {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0 8px 8px;
}
.k-table th[data-kcol] {
  cursor: pointer;
  user-select: none;
  transition: 0.12s;
}
.k-table th[data-kcol]:hover {
  color: var(--midnight-blue);
}
.k-table th.sorted {
  color: var(--midnight-blue);
}
.k-table th .arrow {
  font-size: var(--text-12);
  opacity: 0.35;
  margin-left: 3px;
}
.k-table th.sorted .arrow {
  opacity: 1;
  color: var(--bio-blue-200);
}
.k-table th.l, .k-table td.l {
  text-align: left;
}
.k-table td {
  padding: 7px 8px;
  border-bottom: 1px solid var(--grey-300);
}
/* Never wraps; ellipsis past the column cap, full name on hover. */
.mx-name {
  height: 30px;
  line-height: 30px;
  text-align: left;
  font-weight: 500;
  font-size: var(--text-12);
  color: var(--midnight-blue);
  padding-right: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}
@media (max-width: 620px) {
  .mx-name {
    padding-right: 8px;
  }
}
/* Breakpoints below query this board's width, not the window's. */
.cost-board {
  container-type: inline-size;
}
.cost-row,
.cost-axis,
.cost-head {
  display: grid;
  grid-template-columns: minmax(150px, 190px) minmax(92px, 116px) 1fr 92px 98px;
  gap: 16px;
  align-items: center;
}
.cost-row {
  padding: 11px 0;
  border-top: 1px solid var(--grey-200);
}
.cost-gridline {
  position: absolute;
  top: -4px;
  bottom: -4px;
  width: 1px;
  background: var(--grey-300);
  transform: translateX(-50%);
}
.cost-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 14px;
  background: var(--bio-blue-100);
  border-radius: var(--radius-bar);
}
.cost-row.unknown .cost-value {
  font-family: var(--font-primary);
  font-size: var(--text-12);
  font-weight: 500;
  color: var(--grey-500);
}
.cost-axis-track {
  grid-column: 3;
  container-type: inline-size;
  position: relative;
  height: 30px;
  border-top: 1px solid var(--grey-300);
}
/* Under 200px every other tick label goes. */
@container (max-width: 200px) {
  .cost-axis-track span:nth-child(even) {
    display: none;
  }
}
@container (max-width: 720px) {
  .cost-row,
  .cost-axis,
  .cost-head {
    grid-template-columns: minmax(110px, 1fr) 1.1fr 78px 72px;
  }

  /* The head has a cell per body cell, so its Provider label goes too. */
  .cost-provider,
  .cost-head span:nth-child(2) {
    display: none;
  }

  .cost-axis-track {
    grid-column: 2;
  }
}
/* Under 440px the bar and axis go; the row is model, cost, score. */
@container (max-width: 440px) {
  .cost-head,
  .cost-row,
  .cost-axis {
    grid-template-columns: minmax(0, 1fr) 70px 58px;
    gap: 4px 10px;
  }

  .cost-head span:nth-child(3) {
    display: none;
  }

  .cost-row {
    padding: 10px 0;
  }

  .cost-name {
    white-space: normal;
    font-size: var(--text-12);
    line-height: 1.35;
  }

  .cost-score {
    padding-right: 0;
  }

  .cost-track,
  .cost-axis {
    display: none;
  }
}
