/* All five ranks stay within the table, including narrow phone screens. */
.ranking-table-scroll{width:100%;max-width:100%}
.ranking-table{width:100%;min-width:0;table-layout:fixed;white-space:normal}
.ranking-table th,.ranking-table td{padding:14px 8px;white-space:normal;overflow-wrap:anywhere}
.ranking-table th{font-size:.875rem;line-height:1.5;color:#60748a}
.ranking-table th:first-child{width:14%}
.ranking-table th:nth-child(2){width:16%}
.ranking-table th:nth-child(n+3){width:14%}
.ranking-table th:nth-child(n+3),.ranking-table td:nth-child(n+3){text-align:center}
.ranking-table .sport-column{min-width:0;font-size:.875rem}
.ranking-table .division-column{min-width:0;font-size:.875rem;line-height:1.6}
.ranking-table .badge{max-width:100%;padding:2px 5px;font-size:.75rem;line-height:1.45;white-space:normal}
.ranking-table .rank-team{justify-content:center;min-width:0;max-width:100%;gap:6px;font-size:.875rem;line-height:1.5;white-space:normal}
.ranking-table .rank-team-name{min-width:0;overflow-wrap:anywhere}
.ranking-table .rank-team img{width:26px;height:26px;object-fit:contain;flex:none}

/* Names remain visible in landscape and on wider screens. */
@media(max-width:1120px){
 .ranking-table th,.ranking-table td{padding:12px 5px}
 .ranking-table .rank-team{flex-direction:column;gap:4px}
}

/* Keep the sports and divisions readable; use crests for portrait phones. */
@media(max-width:750px) and (orientation:portrait){
 .ranking-table th,.ranking-table td{padding:12px 2px}
 .ranking-table th:first-child{width:18%}
 .ranking-table th:nth-child(2){width:22%}
 .ranking-table th:nth-child(n+3){width:12%}
 .ranking-table .sport-column{padding-left:6px}
 .ranking-table .rank-header-label,.ranking-table .rank-team-name{display:none}
 .ranking-table .rank-header{font-size:1rem}
 .ranking-table .rank-team{flex-direction:row;gap:2px;min-height:26px}
 .ranking-table .rank-team img{width:24px;height:24px}
}
