/* League ranking pages (htmx path): templates/twig/league_rankings/ in #leagueRanking, hosted by
   templates/htmxRendered.html (View::htmxRanking()). The markup keeps legacy's classes from
   pliki/style.css (sredni, duzyb, duzypom, srednicz, red, cen, center_page, table.underOver and
   table.altRows); this file carries legacy's inline styles and attributes over, scoped under the
   target's id so they outrank the site's id rules (templates/hockey/leaguesDraws.html,
   leaguesUnderOver.html). */

/* The message box sits in a fixed slot just below the season row, laid over what follows (the
   draws header row; the under/over season and sort lines), so showing it moves nothing and never
   covers the select, its label or the ?r= link. The message and Retry take two lines (about 59px) */
.htmx-rendered-host { position: relative; }
#leagueRankingMsg { position: absolute; left: 50px; right: 50px; z-index: 2; margin: 0; }
.htmx-rendered-host--draws #leagueRankingMsg { top: 80px; }
.htmx-rendered-host--underover #leagueRankingMsg { top: 40px; }

/* Read by screen readers, not shown: what changed after a switch */
#leagueRanking .league-ranking-status {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Draws: legacy <table width="60%">, rows striped by an inline background from the first row
   (#f2f2f2, then white), the percentage cell centred, the update block 60% wide */
#leagueRanking .league-ranking-table { width: 60%; }
#leagueRanking .league-ranking-table tbody tr:nth-child(odd) { background-color: #f2f2f2; }
#leagueRanking .league-ranking-table tbody tr:nth-child(even) { background-color: white; }
#leagueRanking .league-ranking-pct { text-align: center; }
#leagueRanking .league-ranking-foot { width: 60%; }

/* Under/over: legacy's label and select sat inline in the box, not in a form block */
#leagueRanking .league-ranking--underover .league-ranking-form { display: inline; }
