/* Favorites in the wide rail and its panel (docs/favorites/LEDGER.md P4,
   favNav.js). A <link> of its own, only while FAVORITES_ENABLED (never on an
   embed), so flag off the always-load bottom-nav.css is the merge base's but
   for `.pbn-fav` in its closing display: none list (phones never show the
   tile). The collapsed rail's tile .pbn-fav sits under My Parlays, a cell of
   .pb-nav-list's grid (founder 2026-11-15): a rail button in all but class
   (the tests count five .pb-nav-btn); its heart is an outline, filled with
   the Favorites heart color (--pb-fav, favHearts.js) on /<sport>/favorites.
   The panel group's rows are the Recently viewed rows: a team's crest sits
   whole in the circle, the right side (a time, LIVE, Out in red) never trims
   (the name does, after "J. Smith-Njigba"), and the "Also ..." line is a
   quiet link under them. */
@media (min-width: 1001px) {
  body.pb-rail-nav:not(.pbn-expanded) .pbn-fav {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 64px;
    margin: 0 8px;
    padding: 8px 2px;
    border-radius: 12px;
    color: #E6EDF3;
    text-decoration: none;
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .01em;
    white-space: nowrap;
  }
  body.pb-rail-nav .pbn-fav .pbn-fav-h {
    display: block;
    flex: none;
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  body.pb-rail-nav .pbn-fav:not(.is-on) .pb-label { opacity: .72; }
  body.pb-rail-nav .pbn-fav:not(.is-on):hover { background: rgba(255, 255, 255, 0.05); }
  body.pb-rail-nav .pbn-fav:focus-visible { outline: 2px solid var(--theme-accent, #00D3BD); outline-offset: -2px; }
  body.pb-rail-nav .pbn-fav.is-on { background: rgba(var(--theme-accent-rgb, 0, 211, 189), 0.10); color: var(--theme-accent, #00D3BD); }
  body.pb-rail-nav .pbn-fav.is-on .pbn-fav-h { fill: var(--pb-fav, #F04E8A); stroke: var(--pb-fav, #F04E8A); }
  body.pb-rail-nav .pbn-fav.is-on::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 10px;
    bottom: 10px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--theme-accent, #00D3BD);
  }
  body.pb-rail-nav .pbn-ini.is-crest { background: transparent; }
  body.pb-rail-nav .pbn-ini.is-crest img { inset: 1px; width: 22px; height: 22px; object-fit: contain; }
  body.pb-rail-nav .pbn-ini.is-crest i { display: none; }
  body.pb-rail-nav .pbn-ini img + i { visibility: hidden; }   /* none behind a headshot while it loads */
  /* never trimmed, and never clipped: WebKit rounds a 46.4px "7:30 PM" into a
     46px box, which shaves its last glyph under overflow: hidden */
  body.pb-rail-nav [data-group="favorites"] .pbn-meta,
  body.pb-rail-nav [data-group="favorites"] .pbn-live { flex: 0 0 auto; overflow: visible; }
  body.pb-rail-nav [data-group="favorites"] .pbn-meta.pbn-out { color: #FF5C5C; font-weight: 600; }
  body.pb-rail-nav [data-group="favorites"] .pbn-empty { padding-top: 6px; line-height: 1.4; }
  /* D13, one face per screen: a player the Favorites group shows leaves
     Recently viewed (favNav.js marks his row hidden; .pbn-row is a flex box) */
  body.pb-rail-nav [data-group="recent"] .pbn-row[hidden] { display: none; }
  body.pb-rail-nav .pbn-fav-more {
    display: flex;
    align-items: center;
    height: 30px;
    padding: 0 10px 0 44px;
    border-radius: 10px;
    overflow: hidden;
    color: #8b93a0;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  body.pb-rail-nav .pbn-fav-more:hover { background: rgba(255, 255, 255, 0.06); color: #E6EDF3; }
  body.pb-rail-nav .pbn-fav-more:focus-visible { outline: 2px solid var(--theme-accent, #00D3BD); outline-offset: -2px; }
  [data-theme="light"] body.pb-rail-nav .pbn-fav { color: #111; }
  [data-theme="light"] body.pb-rail-nav .pbn-fav.is-on { color: var(--theme-accent, #00D3BD); }
  [data-theme="light"] body.pb-rail-nav .pbn-fav:not(.is-on):hover,
  [data-theme="light"] body.pb-rail-nav .pbn-fav-more:hover { background: rgba(0, 0, 0, .05); color: #111; }
  [data-theme="light"] body.pb-rail-nav .pbn-fav-more { color: #5b6470; }
  /* index.html's pre-paint Favorites (2026-11-15): .sk-fh is the tile or
     the head; docked, .sk-f its rows, .sk-fe the empty line, .sk-fm "more" */
  body.pb-rail-nav.pbn-docked #pbn-skel > .sk-fe { height: 48px; padding-left: 44px; }
  body.pb-rail-nav.pbn-docked #pbn-skel > .sk-fm { height: 30px; padding-left: 44px; }
  body.pb-rail-nav.pbn-docked #pbn-skel > .sk-fe b { width: 150px; height: 8px; }
  body.pb-rail-nav.pbn-docked #pbn-skel > .sk-fm b { width: 110px; height: 8px; }
  body.pb-rail-nav.pbn-docked #pbn-skel > :is(.sk-fe, .sk-fm) :is(i, em) { display: none; }
}
/* A short window (a 1366x768 laptop leaves about 620px): the tile is one
   more 64px tile, which pushed the Profile foot under the fold (652 of 620,
   with Quick Find's tile). Under 680px the collapsed rail's tiles step down
   to 56px, the pre-paint skeleton's with them: it all fits from 600px. */
@media (min-width: 1001px) and (max-height: 679px) {
  body.pb-rail-nav:not(.pbn-expanded) .pb-bottom-nav .pb-nav-list { grid-auto-rows: 56px; }
  body.pb-rail-nav:not(.pbn-expanded) .pbn-fav,
  body.pb-rail-nav:not(.pbn-expanded) .pbn-me-btn { height: 56px; padding: 4px 2px; }
  body.pb-rail-nav:not(.pbn-docked) #pbn-skel > .sk-k { height: 56px; }
}
