/* Football and basketball people (us-players.js): names as links, the card on hover, team
   rosters, profiles and draft pages */

.sp-football, .sp-basketball { display: grid; gap: 24px; }
.sp-football > *, .sp-basketball > * { min-width: 0; }

a.usp-a { color: inherit; text-decoration: none; }
a.usp-a:hover { text-decoration: underline; text-underline-offset: 3px; }
.usp-a:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; border-radius: 2px; }
/* A name with a card and no profile to open */
span.usp-a { cursor: default; }
.usp-muted { color: var(--muted); font-weight: 400; }

/* The portrait, or initials on a plain square */
.usp-pic, .usp-ph {
  display: block;
  flex: none;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
}
.usp-pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.usp-ph {
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 600;
  color: var(--muted);
  user-select: none;
}

/* ─── The card ─────────────────────────────────────────── */

.usk {
  position: fixed;
  z-index: 61;
  top: 0;
  left: 0;
  width: 300px;
  max-width: calc(100vw - 16px);
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--ink);
  font-size: 13px;
  text-align: left;
  white-space: normal;
  cursor: pointer;
}
.usk.usk-still { cursor: default; }
.usk-top { display: flex; align-items: center; gap: 12px; }
.usk-pic { width: 60px; height: 60px; font-size: 22px; }
.usk-id { min-width: 0; }
.usk-n { margin: 0; font: 600 20px/1.15 var(--display); }
.usk-c { margin: 3px 0 0; color: var(--muted); }
.usk-d { display: grid; gap: 3px; margin: 10px 0 0; }
.usk-d div { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 8px; }
.usk-d dt { color: var(--muted); font-size: 10.5px; font-weight: 700; letter-spacing: .07em; line-height: 1.8; text-transform: uppercase; overflow-wrap: anywhere; }
.usk-d dd { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
/* The honors, a line each, the most prestigious first, each with its years */
.usk-x { display: grid; gap: 4px; margin: 10px 0 0; padding: 0; list-style: none; line-height: 1.35; }
.usk-x b { font-weight: 600; }
.usk-x span { color: var(--muted); font-weight: 500; }

/* ─── Sections ─────────────────────────────────────────── */

.usr-sect, .usp-sect { min-width: 0; }
.usr-hd, .usp-hd {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  margin: 0 2px 8px;
}
.usr-hd h2, .usp-hd h2 { margin: 0; font: 600 17px/1.2 var(--display); letter-spacing: .05em; text-transform: uppercase; }
.usr-note, .usp-note { font-size: 13px; color: var(--muted); }
.usr-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ─── Team rosters ─────────────────────────────────────── */

/* The roster's panel, a third of a wide page or the width of a phone: dense rows, as the chess and
   tennis tables have them, every number in full (nowrap, never cut), a name giving way first */
.usr { display: grid; gap: 16px; margin-top: 20px; }
.usr > * { min-width: 0; }
.usr .usr-hd { margin-bottom: 6px; }
.usr .usr-hd h2 { font-size: 16px; }
.usr .usr-note { font-size: 12.5px; }

/* The panel's head: the head coach on one line, his coordinators two to a row under him, a hairline
   under them all */
.usr-coaches { display: grid; gap: 7px; padding: 9px 12px 10px; border-bottom: 1px solid var(--line); }
.usr-hc { display: flex; align-items: center; gap: 8px; min-width: 0; }
.usr-hc-pic { width: 28px; height: 28px; border-radius: 5px; font-size: 11px; }
.usr-hc-n { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 19px/1.1 var(--display); }
.usr-role { font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.usr-hc .usr-role { flex: none; margin-left: 2px; }
.usr-staff {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 6px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13.5px;
  line-height: 1.25;
}
.usr-staff li { display: grid; align-content: start; min-width: 0; }
.usr-staff-pics li { grid-template-columns: 28px minmax(0, 1fr); align-items: start; column-gap: 8px; }
.usr-stf { display: grid; align-content: start; min-width: 0; }
.usr-stf-pic { width: 28px; height: 28px; border-radius: 5px; font-size: 11px; }
.usr-staff .usr-role { font-size: 9.5px; line-height: 1.3; }
.usr-staff a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }

/* Number, name, position, age */
.usr-t { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 13.5px; line-height: 1.35; }
.usr-t thead th {
  padding: 6px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-align: left;
  text-transform: uppercase;
  color: var(--muted);
}
.usr-t td { padding: 4px 6px; border-top: 1px solid var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.usr-t th:first-child, .usr-t td:first-child { padding-left: 12px; }
.usr-t th:last-child, .usr-t td:last-child { padding-right: 12px; }
.usr-t a { color: inherit; text-decoration: none; }
.usr-t a:hover { text-decoration: underline; text-underline-offset: 3px; }
.usr-t .usr-name { width: auto; }
.usr-t .usr-name a { font-weight: 600; }
.usr-t .usr-n { width: 44px; padding-right: 8px; text-align: right; color: var(--muted); }
.usr-t .usr-pos { width: 50px; }
.usr-t .usr-age { width: 48px; text-align: right; }
.usr-t :is(.usr-n, .usr-age) { overflow: visible; text-overflow: clip; font-variant-numeric: tabular-nums; }
td.usr-age { color: var(--muted); }
.usr-st { margin-left: 3px; font-size: 11px; font-weight: 600; color: var(--loss); }

/* The starters lead the table, unit by unit (Offense, Defense, Special teams; the NBA's Starters):
   a quiet label, then their rows on the panel's own white like the rest, each with the spot the
   depth chart gives him (LT, QB, PG) */
.usr-lbl th {
  padding: 5px 12px 3px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.3;
  text-align: left;
  text-transform: uppercase;
  color: var(--muted);
}
.usr-t tbody:first-of-type .usr-lbl th { border-top: 0; }
.usr-dp { font-weight: 700; font-size: 12.5px; letter-spacing: .02em; }

/* The assistant coaches: name, then the role, which wraps rather than being cut */
.usr-asst .usr-name { width: 46%; }
.usr-asst td.usr-job { white-space: normal; color: var(--muted); }

/* Who left: name, position, the transaction and its day (which may wrap under it), the team he is
   on now by its abbreviation (its name is the link's title) */
.usr-left .usr-why { width: 112px; }
.usr-left .usr-to { width: 72px; }
.usr-left td.usr-why { white-space: normal; }
.usr-left .usr-why .usp-muted { white-space: nowrap; }
.usr-team { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; }
.usr-team img { flex: none; width: 18px; height: 18px; object-fit: contain; }
.usr-left .usr-team { gap: 5px; }
.usr-left .usr-team img { width: 16px; height: 16px; }

/* ─── The profile ──────────────────────────────────────── */

.usp-head { display: flex; align-items: center; gap: 20px; padding: 18px; }
.usp-hpic { width: 132px; height: 132px; font-size: 44px; }
.usp-hid { min-width: 0; flex: 1; }
.usp-hn { margin: 0; font: 600 32px/1.1 var(--display); }
.usp-hc { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.usp-hc a { color: var(--ink); font-weight: 600; text-decoration: none; }
.usp-hc a:hover { text-decoration: underline; text-underline-offset: 3px; }
/* The photo a filtered portrait was made from, credited under the head */
.usp-credit { margin: -12px 2px 0; font-size: 12.5px; color: var(--muted); }
.usp-credit a { color: inherit; }
.usp-start {
  padding: 1px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--ink);
}
.usp-facts { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 14px 0 0; }
.usp-facts dt { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.usp-facts dd { margin: 1px 0 0; font-size: 15px; font-weight: 500; }
.usp-facts a { color: inherit; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.usp-facts a:hover { text-decoration-color: currentColor; }

/* The capsule, as the chess profiles have it */
.usp-cap {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px 28px;
  margin: 0;
  padding: 16px 18px;
  list-style: none;
}
.usp-cap li { min-width: 0; }
.usp-cap b { display: block; font: 600 19px/1.2 var(--display); }
.usp-cap li > span { display: block; margin-top: 2px; font-size: 13px; line-height: 1.5; color: var(--muted); }
/* An honor's seasons: each run of one team's led by its logo then (or its name, where there's no
   logo of it then), the logo kept with the season after it; the line breaks after a comma */
.usp-run { white-space: nowrap; }
.usp-lg { width: 14px; height: 14px; margin-right: 4px; object-fit: contain; vertical-align: -2px; }
.usp-tw { font-size: 11px; font-weight: 700; letter-spacing: .03em; color: var(--ink); }

.usp-t { width: 100%; border-collapse: collapse; font-size: 14px; }
.usp-t thead th {
  padding: 10px 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-align: left;
  text-transform: uppercase;
  color: var(--muted);
}
.usp-t td { padding: 8px; border-top: 1px solid var(--line); }
.usp-t th:first-child, .usp-t td:first-child { padding-left: 14px; }
.usp-t th:last-child, .usp-t td:last-child { padding-right: 14px; }
.usp-t a { color: inherit; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.usp-t a:hover { text-decoration-color: currentColor; }
.usp-t .usp-y { width: 84px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.usp-t td.usp-h { font-weight: 600; }
.usp-t td.usp-tm { color: var(--muted); }
.usp-t .usp-tm { width: 34%; }
tr.usp-x td { color: var(--faint); }
.usp-t .usp-rec { width: 150px; font-variant-numeric: tabular-nums; white-space: nowrap; }
td.usp-rec { font-weight: 600; }
.usp-rd { display: block; margin-top: 2px; font-size: 13px; font-weight: 400; color: var(--muted); }
.usp-span { white-space: nowrap; font-variant-numeric: tabular-nums; } /* a stint's seasons: never broken */
tr.usp-x td.usp-h { font-weight: 400; }

/* ─── Drafts ───────────────────────────────────────────── */

.usd-years { margin: 0; padding: 0; list-style: none; }
.usd-years li { display: grid; grid-template-columns: 64px 150px minmax(0, 1fr); align-items: baseline; gap: 12px; padding: 10px 14px; }
.usd-years li + li { border-top: 1px solid var(--line); }
.usd-y { font: 600 19px/1 var(--display); color: var(--ink); text-decoration: none; }
.usd-y:hover { text-decoration: underline; text-underline-offset: 3px; }
.usd-yn { font-size: 13px; color: var(--muted); }
.usd-first { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }

.usd-nav { display: flex; justify-content: space-between; gap: 12px; margin: 0 2px -8px; font-size: 14px; }
.usd-nav a { color: var(--muted); font-weight: 600; text-decoration: none; }
.usd-nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

.usd-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-left: auto; }
.usd-rounds { display: flex; flex-wrap: wrap; gap: 4px; }
.usd-rb {
  padding: 3px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.usd-rb[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.usd-ts { padding: 4px 6px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--surface); font: inherit; font-size: 13px; }

.usd-t { table-layout: fixed; }
.usd-t td { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.usd-t .usd-r, .usd-t .usd-p, .usd-t .usd-o { width: 52px; font-variant-numeric: tabular-nums; }
td.usd-r, td.usd-p { color: var(--muted); }
td.usd-o { font-weight: 700; }
.usd-t td.usd-r, .usd-t td.usd-p, .usd-t td.usd-o { overflow: visible; text-overflow: clip; } /* numbers: never cut, the column fits them */
.usd-t .usd-tm { width: 210px; }
.usd-t .usd-pos { width: 64px; }
.usd-t .usd-c { width: 170px; color: var(--muted); }
.usd-t .usd-n a { font-weight: 600; text-decoration: none; }
.usd-t .usd-n a:hover { text-decoration: underline; }
.usd-t a.usr-team { text-decoration: none; }
.usd-t a.usr-team:hover { text-decoration: underline; }
/* the honors line wraps rather than take the table's ellipsis: a record ("(1–1)") or a count is never cut */
.usd-x { display: block; margin-top: 1px; white-space: normal; line-height: 1.35; font-size: 12px; color: var(--muted); }
.usd-und .usd-tm { width: 200px; }
.usd-src { margin: -12px 2px 0; font-size: 12.5px; color: var(--muted); }
.usd-src a { color: inherit; }

@media (max-width: 600px) {
  .usr-coaches { padding: 8px 10px 9px; }
  .usr-staff { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; }
  .usr-t th:first-child, .usr-t td:first-child { padding-left: 8px; }
  .usr-t th:last-child, .usr-t td:last-child { padding-right: 10px; }
  .usr-t .usr-n { width: 38px; }
  .usr-lbl th { padding-left: 10px; }

  .usp-head { gap: 14px; padding: 14px; align-items: flex-start; }
  .usp-hpic { width: 84px; height: 84px; font-size: 30px; }
  .usp-hn { font-size: 25px; }
  .usp-hc { font-size: 13px; gap: 2px 12px; }
  .usp-facts { gap: 6px 18px; margin-top: 10px; }
  .usp-facts dd { font-size: 14px; }
  .usp-cap { grid-template-columns: 1fr; gap: 9px; padding: 12px 14px; }
  .usp-cap b { display: inline; font-size: 17px; }
  .usp-cap li > span { display: inline; margin: 0 0 0 4px; }
  .usp-t .usp-y { width: 64px; }
  .usp-t .usp-rec { width: 82px; }
  .usp-t td.usp-tm, .usp-t th.usp-tm { display: none; }

  .usd-years li { grid-template-columns: 54px minmax(0, 1fr); }
  .usd-first { grid-column: 2; }
  .usd-filters { margin-left: 0; width: 100%; }
  .usd-t .usd-r, .usd-t .usd-p { display: none; }
  .usd-t .usd-o { width: 40px; }
  .usd-t .usd-tm { width: 104px; }
  .usd-t .usd-c { display: none; }
  .usd-t .usd-pos { width: 44px; }
}

/* ─── Pro Bowls and All-Pro teams ──────────────────────── */

/* Two sides beside each other on a wide page (the AFC and the NFC; AP's first and second teams),
   one over the other narrower; a list without sides, and the other selectors', the full width.
   The tables are the rosters' (.usr-t): a quiet label over each position or unit, dense rows. */
.uh-sides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.uh-sides.uh-one { grid-template-columns: minmax(0, 1fr); }
.uh-sides > * { min-width: 0; }
.uh-mid { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 2px 8px; }
.uh-mid > span { color: var(--faint); }
.uh-t .uh-n a { font-weight: 600; }
.uh-t .uh-tm { width: 44%; }
.uh-t .uh-r { width: 84px; }
td.uh-r { color: var(--muted); font-size: 12.5px; }
td.uh-r.uh-st { color: var(--ink); font-weight: 600; }
.uh-t .uh-pos { width: 52px; }
td.uh-pos { font-weight: 700; font-size: 12.5px; letter-spacing: .02em; }
.uh-sels .uh-tm { width: 38%; }
.uh-t .uh-sel { width: 92px; }
.uh-t td.uh-sel { white-space: normal; color: var(--muted); font-size: 12.5px; }
.uh-t abbr { text-decoration: none; }
/* Who withdrew, who replaced whom, an MVP: a short muted line under the name */
.uh-nt { display: block; white-space: normal; font-size: 12px; line-height: 1.3; color: var(--muted); }
.uh-out .uh-tm { width: 38%; }
.uh-legend { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: -12px 2px 0; font-size: 12.5px; color: var(--muted); }
.uh-legend b { font-weight: 700; color: var(--ink); }
/* A profile's or a card's seasons of an honor that has its pages */
a.usp-hy { color: inherit; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
a.usp-hy:hover { text-decoration-color: currentColor; }
/* The index: season, the count, the game's name or the first-team quarterback */
.uh-years li { grid-template-columns: 64px 230px minmax(0, 1fr); }
.uh-game { font-size: 13.5px; color: var(--muted); }
@media (max-width: 960px) {
  .uh-sides { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .uh-t .uh-r { width: 70px; }
  .uh-t .uh-pos { width: 46px; }
  .uh-t .uh-sel { width: 80px; }
  .uh-sels .uh-tm { width: 30%; }
  .uh-years li { grid-template-columns: 54px minmax(0, 1fr); }
  .uh-game { grid-column: 2; }
}

/* ─── The NBA's honors ─────────────────────────────────── */

/* The rosters' dense rows, but every name and number in full: the table as wide as its widest
   cells (no fixed layout, no ellipsis), a name wrapping at its spaces before the card scrolls */
.unb-t { table-layout: auto; }
.unb-t td { overflow: visible; text-overflow: clip; vertical-align: middle; }
.unb-t .usr-team { vertical-align: middle; }
.unb-nolg { flex: none; width: 18px; height: 18px; }
.unb-t td.unb-n { width: 100%; white-space: normal; }
.unb-t .unb-n a { font-weight: 600; }
.unb-t .usr-team > span { overflow: visible; text-overflow: clip; }
.unb-t td.unb-pos { font-weight: 700; font-size: 12.5px; letter-spacing: .02em; }
.unb-t td.unb-res { font-weight: 700; font-variant-numeric: tabular-nums; }
.unb-t td.unb-rd { color: var(--muted); }
.unb-series td.unb-rd { white-space: normal; }
.unb-series tr.unb-champ td { font-weight: 600; }
.unb-series tr.unb-champ td.unb-rd { color: var(--ink); }
.usp-note a { color: inherit; font-weight: 600; }
/* The season's lists: the page's own, plain */
.hub-lists [aria-current="page"] { color: var(--ink); }
.unb-lists { margin: 0 2px; }
.tm-lists { margin-bottom: 12px; }
/* The index: season, the count or the champion, the first team or the MVP (wrapping, never cut) */
.unb-years li { grid-template-columns: 84px 150px minmax(0, 1fr); }
.unb-years.unb-years-aw li { grid-template-columns: 84px minmax(0, 260px) minmax(0, 1fr); }
.unb-years .usd-y { white-space: nowrap; }
.unb-ixn { min-width: 0; font-weight: 600; line-height: 1.4; }
.unb-ixn .usp-muted { font-weight: 500; }
.unb-ixn a.usp-a { white-space: nowrap; } /* a name whole, the list breaking after its commas */
.unb-ixc { min-width: 0; font-weight: 600; }
.unb-ixc .usr-team { color: inherit; text-decoration: none; }
.unb-ixc a.usr-team:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 600px) {
  .unb-years li, .unb-years.unb-years-aw li { grid-template-columns: 72px minmax(0, 1fr); }
  .unb-ixn { grid-column: 2; }
}

/* An NBA team's page has its roster between the team's name and its games */
.usr.usr-nba { margin: 0 0 24px; }
.usd-tsh { display: none; }
.usr-team > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 600px) {
  .usd-tl { display: none; }
  .usd-tsh { display: inline; }
}

/* ─── Baseball ─────────────────────────────────────────── */

/* An MLB roster's bats/throws column ("R/R", "S/R"): never cut */
.usr-t .usr-bt { width: 46px; }
.usr-t td.usr-bt { overflow: visible; text-overflow: clip; color: var(--muted); font-variant-numeric: tabular-nums; }
.usr-t th.usr-bt abbr { text-decoration: none; }

/* A profile's season lines: season and team, then the numbers, right-aligned, each column as wide
   as its widest number (no fixed layout, no ellipsis); on a phone the table scrolls sideways */
.usb-t { font-size: 13.5px; }
.usb-t th, .usb-t td { white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }
.usb-t thead th { padding: 10px 6px; }
.usb-t td { padding: 7px 6px; }
.usb-t .usb-y, .usb-t .usb-tm { text-align: left; }
.usb-t td.usb-y { color: var(--muted); }
.usb-t .usb-tm a { text-decoration: none; font-weight: 600; }
.usb-t .usb-tm a:hover { text-decoration: underline; }
.usb-t tr.usb-tot td { font-weight: 600; }
.usb-lbl th {
  padding: 8px 14px 4px;
  border-top: 1px solid var(--line);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-align: left;
  text-transform: uppercase;
  color: var(--muted);
}
@media (max-width: 600px) {
  .usb-t { font-size: 13px; }
  .usb-t th:first-child, .usb-t td:first-child { padding-left: 10px; }
}
