/* Placeholder people (sports/people.js): a name's link and card on hover in a box score, and the
   placeholder page at /<sport>/players/<slug> */

/* ─── Names ─── */

a.ppl-a { color: inherit; text-decoration: none; }
@media (any-hover: hover) {
  a.ppl-a:hover { text-decoration: underline; text-underline-offset: 3px; }
}
a.ppl-a:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; border-radius: 2px; }

/* The jersey number in the portrait's place, or the initials: these sports have no portraits yet */
.ppl-num {
  display: grid;
  flex: none;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  white-space: nowrap;
  user-select: none;
}
.ppl-num small { margin-right: 1px; font-size: .5em; font-weight: 600; color: var(--muted); vertical-align: .5em; }
.ppl-ini { color: var(--muted); font-weight: 600; }

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

.ppk {
  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;
}
.ppk-top { display: flex; align-items: center; gap: 12px; }
.ppk-pic { width: 56px; height: 56px; font-size: 24px; }
.ppk-pic.ppl-ini { font-size: 20px; }
.ppk-id { min-width: 0; }
.ppk-n { margin: 0; font: 600 20px/1.15 var(--display); }
.ppk-c { margin: 3px 0 0; color: var(--muted); }
.ppk-d { display: grid; gap: 4px; margin: 10px 0 0; }
.ppk-d div { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 8px; }
.ppk-d dt { color: var(--muted); font-size: 10.5px; font-weight: 700; letter-spacing: .06em; line-height: 1.75; white-space: nowrap; }
.ppk-d dd { margin: 0; font-weight: 500; line-height: 1.4; font-variant-numeric: tabular-nums; }
.ppk-lg { font-weight: 700; }
.ppk-x { margin: 10px 0 0; color: var(--muted); }

/* ─── The page ─── */

.ppl-page { display: grid; gap: 22px; }
.ppl-page > * { min-width: 0; }

.ppl-head { display: flex; align-items: flex-start; gap: 20px; padding: 18px; }
.ppl-hpic { width: 112px; height: 112px; font-size: 48px; }
.ppl-hpic.ppl-ini { font-size: 40px; }
.ppl-hid { min-width: 0; flex: 1; }
.ppl-hn { margin: 0; font: 700 34px/1.05 var(--display); }
.ppl-hc { margin: 6px 0 0; font-size: 15px; font-weight: 600; }
.ppl-hc a { display: inline-flex; align-items: center; gap: 7px; color: inherit; text-decoration: none; }
.ppl-facts { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 14px 0 0; }
.ppl-facts dt { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ppl-facts dd { margin: 1px 0 0; font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ppl-plan { margin: 14px 0 0; color: var(--muted); font-size: 13px; }

.ppl-sect { min-width: 0; }
.ppl-hd { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0 2px 8px; }
.ppl-hd h2 { margin: 0; font: 600 17px/1.2 var(--display); letter-spacing: .05em; text-transform: uppercase; }
.ppl-note { font-size: 13px; color: var(--muted); font-weight: 400; letter-spacing: 0; text-transform: none; }
.ppl-foot { margin: 0; padding: 9px 14px 11px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }

.ppl-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ppl-logo { flex: none; width: 18px; height: 18px; object-fit: contain; vertical-align: -4px; }

/* Tables: every number in full, its column as wide as its widest value; a name gives way first */
.ppl-t { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.ppl-t caption {
  padding: 12px 14px 2px;
  text-align: left;
  font: 600 15px/1.2 var(--display);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.ppl-scroll + .ppl-scroll .ppl-t caption { padding-top: 18px; }
.ppl-t thead th {
  padding: 9px 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-align: left;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.ppl-t td, .ppl-t tbody th { padding: 7px 8px; border-top: 1px solid var(--line); text-align: left; font-weight: 400; }
.ppl-t th:first-child, .ppl-t td:first-child { padding-left: 14px; }
.ppl-t th:last-child, .ppl-t td:last-child { padding-right: 14px; }
.ppl-t a { color: inherit; text-decoration: none; }
@media (any-hover: hover) {
  .ppl-t a:hover, .ppl-hc a:hover { text-decoration: underline; text-underline-offset: 3px; }
}
.ppl-t a:focus-visible, .ppl-hc a:focus-visible, .ppl-gs summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.ppl-y { width: 1px; white-space: nowrap; font-weight: 600 !important; }
.ppl-lg { white-space: nowrap; }
.ppl-tm a { display: inline-flex; align-items: center; gap: 6px; }
.ppl-n { width: 1px; text-align: right !important; white-space: nowrap; }
.ppl-zero { color: var(--faint); }

/* Games: a season's table, open or a click away */
.ppl-gs + .ppl-gs { border-top: 1px solid var(--line); }
.ppl-gs summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 10px;
  padding: 11px 14px;
  cursor: pointer;
  list-style: none;
}
.ppl-gs summary::-webkit-details-marker { display: none; }
.ppl-gs summary::before { content: '▸'; color: var(--muted); font-size: 12px; }
.ppl-gs[open] summary::before { content: '▾'; }
.ppl-gs-t { font: 600 15px/1.2 var(--display); letter-spacing: .03em; text-transform: uppercase; }
.ppl-games .ppl-d { width: 1px; white-space: nowrap; font-weight: 600; }
.ppl-games .ppl-o { white-space: nowrap; }
.ppl-games .ppl-o .ppl-logo { margin-right: 6px; }
.ppl-at { display: inline-block; min-width: 22px; color: var(--muted); font-size: 12px; }
.ppl-on { display: none; }
.ppl-games .ppl-res { width: 1px; white-space: nowrap; }
.ppl-r { display: inline-block; min-width: 16px; margin-right: 6px; font-weight: 700; }
.ppl-r-w { color: var(--win); }
.ppl-r-l { color: var(--loss); }
.ppl-r-d, .ppl-r-t { color: var(--muted); }
.ppl-line { color: var(--ink); }

@media (max-width: 600px) {
  .ppl-page { gap: 18px; }
  .ppl-head { gap: 14px; padding: 14px 12px; }
  .ppl-hpic { width: 72px; height: 72px; font-size: 30px; }
  .ppl-hpic.ppl-ini { font-size: 26px; }
  .ppl-hn { font-size: 27px; }
  .ppl-hc { font-size: 14px; }
  .ppl-facts { gap: 6px 18px; margin-top: 10px; }
  .ppl-facts dd { font-size: 14px; }

  .ppl-t { font-size: 13px; }
  .ppl-t thead th { padding: 8px 4px; font-size: 10px; letter-spacing: .04em; }
  .ppl-t td, .ppl-t tbody th { padding: 6px 4px; }
  .ppl-t th:first-child, .ppl-t td:first-child { padding-left: 12px; }
  .ppl-t th:last-child, .ppl-t td:last-child { padding-right: 12px; }
  .ppl-gs summary { padding: 10px 12px; }
  /* the opponent by abbreviation, the line wrapping under its own width */
  .ppl-on { display: inline; }
  .ppl-ol { display: none; }
  .ppl-games .ppl-line { min-width: 140px; }
}
