/* =========================================================
   WRUF Tables
   ========================================================= */

.table-section {
  margin-top: 2rem;
  padding: 2rem;
  background: var(--wruf-panel);
  border-left: 8px solid var(--wruf-orange);
  border-bottom: 8px solid var(--wruf-orange);
  border-radius: 18px;
}

.table-section h2 {
  margin-top: 0;
  color: var(--wruf-blue);
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid var(--wruf-border);
  background: #ffffff;
}

.wruf-table {
  width: 100%;
  border-collapse: collapse;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  background: #ffffff;
}

.wruf-table caption {
  caption-side: top;
  padding: 0.85rem 1rem;
  color: #ffffff;
  background: var(--wruf-blue);
  font-size: 1rem;
  font-weight: 900;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.wruf-table th {
  padding: 0.9rem 1rem;
  background: var(--wruf-blue);
  color: #ffffff;
  text-align: left;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.wruf-table td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--wruf-border);
  color: var(--wruf-ink);
}

.wruf-table tbody tr:hover {
  background: #fff1ea;
}

.wruf-table tbody tr:last-child td {
  border-bottom: none;
}

.standings-table td:first-child {
  font-weight: 900;
  color: var(--wruf-blue);
}

.standings-table td:nth-child(2),
.standings-table td:nth-child(3) {
  font-weight: 900;
  color: var(--wruf-orange);
  text-align: center;
}

.leaderboard-table td:first-child {
  font-weight: 900;
  color: var(--wruf-blue);
}

/* =========================================================
   WRUF V1 Framework Compatibility — CHG-0007
   Responsive table interaction
   ========================================================= */

.table-wrap {
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

.table-wrap:focus-within {
  box-shadow: 0 0 0 3px rgba(250, 70, 22, 0.24);
}

@media (max-width: 650px) {
  .wruf-table th,
  .wruf-table td {
    padding: 0.75rem 0.8rem;
  }
}

