/* ─── Stili per l'output del plugin team_standings ─── */
.standings-wrapper table {
  width: 100%;
  text-align: left;
  border-collapse: collapse;
  font-family: 'Inter', sans-serif;
}

.standings-wrapper table thead tr {
  color: rgba(68, 70, 83, 0.6);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-bottom: 1px solid rgba(225, 227, 228, 0.2);
}

.standings-wrapper table thead th {
  padding: 10px 4px;
  text-align: center;
  white-space: nowrap;
}

.standings-wrapper table thead th:first-child {
  padding-left: 10px;
  padding-right: 2px;
  width: 36px;
}

.standings-wrapper table thead th:nth-child(2) {
  text-align: left;
  padding-left: 6px;
  padding-right: 6px;
  white-space: normal;
}

.standings-wrapper table thead th:last-child {
  padding-right: 12px;
}

.standings-wrapper table tbody tr {
  border-bottom: 1px solid rgba(225, 227, 228, 0.15);
  transition: background-color 0.15s ease;
}

.standings-wrapper table tbody tr:nth-child(even) {
  background-color: #f3f4f5;
}

.standings-wrapper table tbody tr:hover {
  background-color: #edeeef;
}

.standings-wrapper table tbody td {
  padding: 12px 4px;
  text-align: center;
  font-weight: 500;
  font-size: 13px;
  color: #191c1d;
  white-space: nowrap;
}

/* Colonna posizione */
.standings-wrapper table tbody td:first-child {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: #002068;
  padding-left: 10px;
  padding-right: 2px;
  width: 36px;
  white-space: nowrap;
}

/* Colonna club / nome squadra */
.standings-wrapper table tbody td:nth-child(2) {
  text-align: left;
  padding-left: 6px;
  padding-right: 6px;
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  color: #002068;
  white-space: normal;
}

.standings-wrapper table tbody td:nth-child(2) a {
  color: #002068;
  text-decoration: none;
}

.standings-wrapper table tbody td:nth-child(2) img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: contain;
  margin-right: 8px;
  vertical-align: middle;
  display: inline-block;
}

/* Colonna W-D-L non deve MAI andare a capo */
.standings-wrapper table th:nth-child(4),
.standings-wrapper table td:nth-child(4) {
  white-space: nowrap !important;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

/* Colonna punti (ultima) */
.standings-wrapper table tbody td:last-child {
  font-family: 'Manrope', sans-serif;
  font-weight: 900;
  font-size: 16px;
  color: #002068;
  padding-right: 12px;
  white-space: nowrap;
}

/* Tablet e Desktop: spaziature più ampie */
@media (min-width: 768px) {
  .standings-wrapper table thead th {
    padding: 16px 14px;
  }
  .standings-wrapper table thead th:first-child {
    padding-left: 24px;
    width: 48px;
  }
  .standings-wrapper table thead th:nth-child(2) {
    padding-left: 20px;
    padding-right: 20px;
  }
  .standings-wrapper table thead th:last-child {
    padding-right: 24px;
  }
  .standings-wrapper table tbody td {
    padding: 16px 14px;
    font-size: 14px;
  }
  .standings-wrapper table tbody td:first-child {
    padding-left: 24px;
    width: 48px;
    font-size: 15px;
  }
  .standings-wrapper table tbody td:nth-child(2) {
    padding-left: 20px;
    padding-right: 20px;
  }
  .standings-wrapper table tbody td:nth-child(2) img {
    width: 32px;
    height: 32px;
    margin-right: 12px;
  }
  .standings-wrapper table tbody td:last-child {
    font-size: 18px;
    padding-right: 24px;
  }
}

/* Bordo colorato per le prime posizioni (promozione) */
.standings-wrapper table tbody tr:nth-child(1),
.standings-wrapper table tbody tr:nth-child(2) {
  border-left: 4px solid #10b981;
}

.standings-wrapper table tbody tr:nth-child(3) {
  border-left: 4px solid rgba(16, 185, 129, 0.5);
}

/* Bordo rosso per retrocessione (ultime 2 posizioni) */
.standings-wrapper table tbody tr:nth-last-child(1),
.standings-wrapper table tbody tr:nth-last-child(2) {
  border-left: 4px solid #ba1a1a;
}

/* Eventuali classi già usate dal plugin */
.standings-wrapper .standings-table {
  width: 100%;
}

.standings-wrapper .team-logo {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  object-fit: contain;
}

/* Nasconde l'intestazione generata da SportsPress */
.sp-template-league-table h4.sp-table-caption {
  display: none !important;
}