.results-hero {
  background: var(--navy);
  padding: 60px 0 50px;
  text-align: center;
}

.results-hero .section-eyebrow {
  color: var(--gold);
}

.results-hero .section-title {
  color: #ffffff;
  margin-bottom: 0;
}

.results-list {
  padding: 50px 0 90px;
}

.results-status {
  text-align: center;
  color: var(--ink-soft);
  font-size: 14px;
  padding: 30px 0;
}

/* ===== Batch buttons ===== */

.batch-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
}

.batch-chip {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid #e4dfd3;
  background: #ffffff;
  color: var(--ink);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.batch-chip:hover {
  border-color: var(--navy);
}

.batch-chip.active {
  background: var(--navy);
  border-color: var(--navy);
  color: #ffffff;
}

.results-batch-heading {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  color: var(--navy);
  margin: 40px 0 14px;
}

.results-group:first-child .results-batch-heading {
  margin-top: 0;
}

/* ===== Table ===== */

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.results-table {
  width: 100%;
  min-width: 500px;
  border-collapse: collapse;
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e4dfd3;
}

.results-table th {
  text-align: left;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
  padding: 16px 18px;
  background: var(--navy);
  color: #ffffff;
}

.results-table td {
  padding: 14px 18px;
  border-bottom: 1px solid #e4dfd3;
  font-size: 14.5px;
  color: var(--ink);
}

.results-table tr:last-child td {
  border-bottom: none;
}

.results-marks {
  font-weight: 700;
  color: var(--navy);
}

/* Below 600px: the table itself becomes a stack of individual cards
   instead of scrolling sideways — a more polished, deliberate look
   for a public page than a horizontally-scrollable data table. */
@media (max-width: 600px) {
  .table-scroll {
    overflow-x: visible;
  }

  .results-table {
    min-width: 0;
    border: none;
    background: transparent;
    border-radius: 0;
  }

  .results-table thead {
    display: none;
  }

  .results-table, .results-table tbody, .results-table tr, .results-table td {
    display: block;
    width: 100%;
  }

  .results-table tr {
    background: #ffffff;
    border: 1px solid #e4dfd3;
    border-radius: 14px;
    margin-bottom: 14px;
    padding: 6px 18px;
  }

  .results-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f1ede2;
    padding: 12px 0;
    font-size: 14px;
  }

  .results-table tr td:last-child {
    border-bottom: none;
  }

  .results-table td::before {
    content: attr(data-label);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--gold);
  }

  /* The name is the card's real header — bigger, bolder, no label,
     with its own underline to visually separate it from the details. */
  .results-table td:first-child {
    font-size: 17px;
    font-weight: 700;
    font-family: 'Fraunces', serif;
    color: var(--navy);
    border-bottom: 1px solid #e4dfd3;
    padding-bottom: 14px;
    margin-bottom: 4px;
  }

  .results-table td:first-child::before {
    content: '';
  }

  .batch-chip {
    padding: 8px 14px;
    font-size: 13px;
  }

  .results-batch-heading {
    font-size: 19px;
  }
}