/* PHONES - loaded last so it wins over every theme.
   The bottom tab bar gets smaller icons and labels (seven tabs fit without
   squeezing "Menu" off the edge), the tab you're on is marked with a line in
   the team color instead of a solid white block, and the standings fit the
   screen instead of running off the right edge. */

@media (max-width: 760px) {
  /* bottom tab bar */
  .tabs button,
  body.theme-primetime .tabs button,
  body.theme-varsity .tabs button {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    padding: 5px 1px 4px !important;
    gap: 2px !important;
    font-size: 9.5px !important;
    letter-spacing: 0.04em !important;
  }
  .tabs button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
  .tabs button i { font-size: 18px !important; line-height: 1 !important; }
  .tabs button .glyph,
  body.theme-primetime .tabs button .glyph { width: 19px !important; height: 19px !important; }
  body.theme-varsity .tabs button i { width: 28px !important; height: 28px !important; }
  body.theme-varsity .tabs button i .glyph { width: 17px !important; height: 17px !important; }

  /* the tab you're on: a colored line on top, not a white slab */
  body.theme-primetime .tabs button.on {
    background: transparent !important;
    clip-path: none !important;
    color: #fff !important;
    box-shadow: inset 0 3px 0 var(--team-accent, #f0883e) !important;
  }
  body.theme-primetime .tabs button.on .glyph,
  body.theme-primetime .tabs button.on i { color: var(--team-accent, #f0883e) !important; }

  /* standings: three columns fit a phone, no need for the wide-table minimum */
  .standings-panel .results table { min-width: 0 !important; width: 100%; }
  .standings-panel .st-team b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .conf-switch .seg-btn { font-size: 11.5px !important; padding: 8px 6px !important; }
  .conf-switch .seg-btn .dim-t { display: none; }
}
