/* A season's ranking or standings at the top of a phone's page (sports/rank-top.js): its first five
   rows until the button under them shows the rest. Wider screens keep the panel as the page drew it. */

.rkt-btn { display: none; }

@media (max-width: 600px) {
  .rkt-top { margin-bottom: 16px; }
  /* Chess's and racing's pages are grids: their gap is the space under it. */
  :is(.sp-chess, .sp-racing) > .rkt-top { margin-bottom: 0; }

  .rkt:not(.rkt-open) tbody > tr:nth-child(n + 6) { display: none; }
  /* Shown: every row the panel holds, those its own button keeps back on wider screens included. */
  .rkt.rkt-open tbody > tr { display: table-row; }
  .rkt [data-more] { display: none; } /* the panel's own "All 100": this button stands in for it */

  .rkt-btn {
    display: block;
    width: 100%;
    min-height: 44px;
    padding: 10px;
    border: 0;
    background: var(--surface-2);
    font: 600 13px var(--body);
    color: var(--ink);
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent; /* a tap shows as :active, the page's own gray */
  }
  .rkt-btn:active { background: var(--line); }
  .rkt-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
}

@media (max-width: 600px) and (any-hover: hover) {
  .rkt-btn:hover { background: var(--line); }
}
