/* Same brand gradient as this benchmark's card on the hub. */
.hero {
  background: var(--gradient-sky-blue-to-grey);
  border-bottom: 1px solid var(--grey-300);
}
@media (max-width: 640px) {
  .hero-inner {
    padding: 24px 0 20px;
  }
}
.result-row:hover {
  background: var(--grey-100);
}

/* The model, under the agent, only once the model column is dropped. */
.result-via {
  display: none;
}
@container (max-width: 860px) {
  .result-via {
    display: block;
    color: var(--grey-500);
    font-size: var(--text-12);
    font-weight: 400;
  }
}

/* Example task: the request on the left, the files it came with on the right.
   All tasks share one grid cell, so the box keeps the tallest one's height. */
.task-bodies {
  display: grid;
}
.task-bodies > .task-body {
  grid-area: 1 / 1;
}
.task-body.off {
  visibility: hidden;
}
.task-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: start;
}
.task-files {
  display: flex;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.task-file {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 112px;
  padding: 16px 8px 14px;
  border: 1px solid var(--grey-300);
  border-radius: var(--radius);
  background: var(--white);
  text-align: center;
}
.file-icon {
  display: block;
  margin-bottom: 10px;
}
.file-name {
  font-size: var(--text-12);
  font-weight: 600;
  line-height: 1.35;
  color: var(--midnight-blue);
}
.file-type {
  margin-top: 2px;
  font-size: var(--text-12);
  color: var(--grey-500);
}
/* Narrow: the files drop under the request. */
@media (max-width: 760px) {
  .task-body {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Failure cards carry an example as a fourth row, so the subgrid spans four
   and the examples line up across the row. */
.failure-cards .card {
  grid-row: span 4;
}
.failure-cards .card p.failure-example {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--sky-blue-100);
  color: var(--midnight-blue);
}
.failure-example span {
  display: block;
  margin-bottom: 4px;
  font-size: var(--text-12);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bio-blue-200);
}

/* Grading: one box, the run count and how each run is checked. */
.grade-stat {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 20px 24px;
  background: var(--ice-blue);
  border-radius: var(--radius);
}
.grade-runs {
  font-family: var(--font-primary);
  font-variant-numeric: tabular-nums;
  font-size: 40px;
  font-weight: 500;
  line-height: 1;
  color: var(--bio-blue-200);
}
.grade-stat p {
  margin: 0;
  font-size: var(--text-14);
  line-height: 1.6;
  color: var(--midnight-blue);
}

/* Per-run scores. Not sortable, unlike the tables elsewhere. A grid item
   would otherwise grow to its table's width and push the panel off a phone. */
.task-detail > div {
  min-width: 0;
}
.score-scroll {
  overflow-x: auto;
}
.score-table {
  min-width: 300px;
}
@media (max-width: 480px) {
  .task-detail {
    padding: 22px 18px;
  }
  .score-table {
    min-width: 0;
  }
  .score-table thead th,
  .score-table tbody th,
  .score-table td {
    padding-left: 6px;
    padding-right: 6px;
  }
}
.score-table thead th {
  position: static;
  cursor: default;
}
.score-table thead th:hover {
  background: transparent;
}
.score-table th.l {
  text-align: left;
}
.score-table tbody th {
  padding: 9px 10px;
  font-weight: 600;
  color: var(--midnight-blue);
  white-space: nowrap;
}
.score-table td {
  text-align: center;
  font-family: var(--font-primary);
  font-variant-numeric: tabular-nums;
  color: var(--midnight-blue);
}
.score-table td.avg {
  font-weight: 500;
}
.score-table td.best {
  font-weight: 600;
}
