/* ============================================================
   VSM F1 League — results.css
   Styles specific to results.html. Relies on tokens + resets
   already defined in main.css (loaded first), and reuses the
   .s-table classes from main.css for the row team-colour stripe.
   ============================================================ */

/* ============================================================
   HEADER
   ============================================================ */
.results-header-wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 40px 0;
}

.results-header {
  background: linear-gradient(135deg, rgba(225, 6, 0, 0.06), var(--surface) 60%);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.results-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.results-eyebrow::before {
  content: '';
  width: 22px;
  height: 2px;
  background: var(--accent);
}

.results-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 44px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.results-title em {
  color: var(--accent);
  font-style: normal;
}

.results-progress {
  text-align: right;
}

.results-progress-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-sub);
  margin-bottom: 6px;
}

.results-progress-count {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 500;
  color: var(--text);
}

/* ============================================================
   TABLE
   ============================================================ */
.results-wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 32px 40px 80px;
}

.results-table {
  table-layout: fixed;
  width: 100%;
}

.results-table thead tr {
  background: var(--surface2);
}

.results-table tbody tr {
  height: 56px;
}

/* Column widths — keeps the table tight */
.results-table th:nth-child(1),
.results-table .td-pos {
  width: 80px;
}

.results-table th:nth-child(2),
.results-table .td-gp {
  width: 35%;
}

.results-table th:nth-child(3),
.results-table .td-name {
  width: 30%;
}

.results-table th:nth-child(4),
.results-table .td-team {
  width: 180px;
}

.td-gp {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  padding: 0 14px;
  white-space: nowrap;
}

/* Podium tint for round number */
.results-table .td-pos {
  font-weight: 700;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .results-header {
    align-items: flex-start;
  }

  .results-progress {
    text-align: left;
  }
}

@media (max-width: 700px) {
  .results-title {
    font-size: 32px;
  }
}