/*
 * Club rankings as a league table (rankings page and homepage): columns
 * Rank · Club · League · P · W · D · L · GD · Form · Pts (order set in
 * template-parts/rankings/archive.php and template-parts/home/rankings.php).
 * The table gets .fl-league-table only in the club view.
 *
 * Club, League and Form have set widths; P, W, D, L, GD and Pts share the
 * rest evenly. Same layout at every width: on narrow screens the table
 * scrolls sideways inside its card.
 */
.fl-league-table.fl-league-table { table-layout: fixed; min-width: 900px; }
.fl-league-table.fl-league-table th:nth-child(1) { width: 64px; }   /* Rank */
.fl-league-table.fl-league-table th:nth-child(2) { width: 26%; }    /* Club */
.fl-league-table.fl-league-table th:nth-child(3) { width: 18%; }    /* League */
.fl-league-table.fl-league-table th:nth-child(9) { width: 150px; }  /* Form */
.fl-league-table.fl-league-table th:nth-child(n+4) { padding-right: 4px; padding-left: 4px; text-align: center; }
.fl-league-table.fl-league-table td:nth-child(n+4) { padding-right: 4px; padding-left: 4px; text-align: center; }
.fl-league-table.fl-league-table th:last-child,
.fl-league-table.fl-league-table td:last-child { padding-right: 20px; }
.fl-league-table.fl-league-table th:nth-child(2),
.fl-league-table.fl-league-table td:nth-child(2),
.fl-league-table.fl-league-table th:nth-child(3),
.fl-league-table.fl-league-table td:nth-child(3) { padding-right: 12px; padding-left: 12px; text-align: left; }

/*
 * Player rankings (rankings page and homepage): Rank · Player · Club · Nat. ·
 * Matches · Minutes · Goals · Assists · Rating · Move. The tables get
 * .fl-player-table in the player views. Player and Club have set widths, the
 * numbers share the rest evenly; on narrow screens the table scrolls sideways
 * inside its card, same layout as desktop.
 */
.fl-player-table.fl-player-table { table-layout: fixed; min-width: 960px; }
.fl-player-table.fl-player-table th:nth-child(1) { width: 64px; }   /* Rank */
.fl-player-table.fl-player-table th:nth-child(2) { width: 24%; }    /* Player */
.fl-player-table.fl-player-table th:nth-child(3) { width: 18%; }    /* Club */
.fl-player-table.fl-player-table th:nth-child(4) { width: 60px; }   /* Nat. */
.fl-player-table.fl-player-table th:last-child { width: 72px; }     /* Move */
.fl-player-table.fl-player-table th:nth-child(n+4),
.fl-player-table.fl-player-table td:nth-child(n+4) { padding-right: 4px; padding-left: 4px; text-align: center; }
.fl-player-table.fl-player-table th:last-child,
.fl-player-table.fl-player-table td:last-child { padding-right: 16px; }
.fl-player-table.fl-player-table th:nth-child(2),
.fl-player-table.fl-player-table td:nth-child(2),
.fl-player-table.fl-player-table th:nth-child(3),
.fl-player-table.fl-player-table td:nth-child(3) { padding-right: 12px; padding-left: 12px; text-align: left; }
/* Long names and clubs wrap inside their column. */
.fl-player-table.fl-player-table td:nth-child(2),
.fl-player-table.fl-player-table td:nth-child(3) { overflow-wrap: anywhere; }
