/* NFL Player Statistics: what the player pages add to the NFL team pages' styles (mockup, decision PF1). */
.tfy { color: var(--meta); font-family: var(--ui); font-size: var(--fs-xs); font-weight: 600; white-space: nowrap; }
.pw .tfy, .big .tfy { font-size: var(--fs-xs); }
/* rules copied from team.css, which the player pages do not load (its .g, .sel and .mv break the board) */
.hp-gauge { position: relative; height: 10px; margin-top: 0; border-radius: 5px; background: var(--surface-2); }
.hp-gauge b { position: absolute; left: 0; top: 0; bottom: 0; width: 22.6%; border-radius: 5px 0 0 5px; background: var(--rule-strong); }
.hp-gauge i { position: absolute; top: -4px; width: 6px; height: 18px; margin-left: -3px; border-radius: 3px; background: var(--navy); box-shadow: 0 0 0 2px var(--surface); }
.crumbs { padding-block: 14px 12px; font-size: var(--fs-s); color: var(--meta); }
.crumbs a { color: var(--ink-2); text-decoration: none; font-weight: 600; }
.crumbs a:hover { color: var(--red); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }
.pad { padding: 12px 16px; }
.masthead .logo-plate img { height: 56px; width: auto; display: block; }

/* tables of every number */
.ptable td, .ptable th { white-space: nowrap; }
.ptable .r { text-align: right; font-variant-numeric: tabular-nums; }
.ptable .pn { font-family: var(--display); font-weight: 700; font-size: 1.15rem; color: var(--ink-2); }
.ptable .pl { display: block; font-size: 11px; font-weight: 600; color: var(--meta); line-height: 1.1; }
.pcell { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.ptable tbody tr:hover { background: var(--surface-2); }
.ptable th { vertical-align: bottom; }
.sortbtn { font: inherit; color: inherit; letter-spacing: inherit; text-transform: inherit; background: none; border: 0; padding: 4px 0; margin: 0; cursor: pointer; text-align: inherit; white-space: nowrap; }
.sortbtn:hover { color: var(--ink); }
.sortbtn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
th[aria-sort="ascending"] .sortbtn::after { content: " 91"; }
th[aria-sort="descending"] .sortbtn::after { content: " 93"; }
th[aria-sort] { color: var(--ink); }
.ptable.every th[scope="row"] { text-align: left; font-weight: 600; white-space: normal; font-size: var(--fs-s); text-transform: none; letter-spacing: 0; color: var(--ink); padding: 10px; }
.ptable.every td { white-space: nowrap; }
.ptable.every tr.grp th { background: var(--surface-2); color: var(--ink-2); }
.ptable.every { min-width: 520px; }

/* the board: longer names wrap rather than being cut, and the columns take the longest chip */
.tname b { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
@media (min-width: 760px) {
  .board .cols, .board .rowbtn { grid-template-columns: 44px 36px minmax(0, 13.5rem) 66px 108px 66px minmax(150px, 1fr); }
}
.rowbtn .chip { white-space: nowrap; justify-self: start; max-width: 100%; }
.rowbtn .pw { white-space: nowrap; }

/* the player page */
.phero { margin-top: 12px; border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; background: var(--surface); }
.ph-band { display: flex; align-items: center; gap: 16px; padding: 18px 20px; background: var(--tc); color: var(--tc-on); }
.ph-band h1 { font-family: var(--display); font-weight: 700; font-size: 2.4rem; line-height: 1; margin: 0; text-transform: uppercase; }
.ph-band p { margin: 6px 0 0; font-weight: 600; opacity: .92; }
.ph-band a { color: inherit; }
.ph-no { margin-left: auto; text-align: right; display: grid; }
.ph-no small, .ph-no span { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .9; }
.ph-no b { font-family: var(--display); font-weight: 700; font-size: 3rem; line-height: 1; }
.ph-kv { display: grid; grid-template-columns: repeat(5, 1fr); }
.ph-kv div { padding: 14px 20px; border-right: 1px solid var(--rule); display: grid; gap: 2px; }
.ph-kv div:last-child { border-right: 0; }
.ph-kv b { font-family: var(--display); font-weight: 700; font-size: 1.9rem; line-height: 1; font-variant-numeric: tabular-nums; }
.ph-kv span { font-size: var(--fs-xs); color: var(--meta); font-weight: 600; }
.pgrid { column-count: 2; column-gap: 16px; }
.pgrid > .panel { break-inside: avoid; margin-bottom: 16px; min-width: 0; }

.stand { padding: 6px 16px 12px; }
.st-row { display: grid; grid-template-columns: minmax(0, 1.25fr) 78px minmax(90px, 1fr) 84px; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--rule); font-size: var(--fs-s); }
.st-row:last-child { border-bottom: 0; }
.st-k { font-weight: 600; }
.st-k small { display: block; font-weight: 500; color: var(--meta); font-size: var(--fs-xs); }
.st-v { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.st-r { text-align: right; color: var(--meta); font-size: var(--fs-xs); font-weight: 600; white-space: nowrap; }

.gchart { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(58px, 1fr); gap: 6px; padding: 14px 16px 12px; overflow-x: auto; }
.gc-plot { position: relative; height: 150px; }
.gc-plot b { position: absolute; left: 22%; right: 22%; background: var(--navy); border-radius: 2px; }
.gc-plot b.neg { background: var(--meta); opacity: .6; }
.gc-zero { position: absolute; left: 0; right: 0; height: 1px; background: var(--rule-strong); }
.gc-plot u { position: absolute; left: 6%; right: 6%; height: 3px; margin-top: -1px; background: var(--red, #b3192d); border-radius: 2px; }
.gc-lab { display: grid; justify-items: center; gap: 3px; margin-top: 8px; font-size: var(--fs-xs); font-weight: 600; text-align: center; }
.gc-lab small { color: var(--meta); font-variant-numeric: tabular-nums; }

.depth { padding: 8px 16px 14px; }
.dp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(90px, 1.2fr) 56px; gap: 4px 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: var(--fs-s); font-weight: 600; }
.dp:last-child { border-bottom: 0; }
.dp b { text-align: right; font-variant-numeric: tabular-nums; }
.dp small { grid-column: 1 / -1; color: var(--meta); font-weight: 500; font-size: var(--fs-xs); }
.dp-bar { position: relative; height: 10px; background: var(--surface-2); border-radius: 2px; }
.dp-bar i { position: absolute; top: 0; bottom: 0; background: var(--up); border-radius: 2px; }
.dp-bar i.neg { background: var(--down); }
.dp-bar u { position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: var(--ink); }

.only { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 0 20px; padding: 6px 16px 12px; }
.only > div { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.only b { font-family: var(--display); font-weight: 700; font-size: 1.7rem; line-height: 1; display: block; font-variant-numeric: tabular-nums; }
.only span { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.only p { margin: 4px 0 0; font-size: var(--fs-xs); color: var(--meta); line-height: 1.4; }

.trad { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 0 20px; padding: 4px 16px 12px; }
.trad > div { display: grid; grid-template-columns: minmax(0, 1fr) auto 46px; gap: 8px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--rule); font-size: var(--fs-s); }
.trad b { font-variant-numeric: tabular-nums; }
.trad small { color: var(--meta); font-size: 11px; font-weight: 600; text-align: right; white-space: nowrap; }

@media (max-width: 900px) {
  .pgrid { column-count: 1; }
  .panel-head { flex-wrap: wrap; }
  .ph-kv { grid-template-columns: repeat(2, 1fr); }
  .ph-kv div { border-bottom: 1px solid var(--rule); }
  .ph-band { flex-wrap: wrap; padding: 14px 16px; }
  .ph-band h1 { font-size: 1.8rem; }
  .ph-no { margin-left: 0; text-align: left; width: 100%; grid-auto-flow: column; justify-content: start; align-items: baseline; gap: 8px; }
  .ph-no b { font-size: 2rem; }
  .st-row { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; }
  .st-row .hp-gauge { grid-column: 1; grid-row: 2; }
  .st-row .st-r { grid-column: 2; grid-row: 2; }
  .gchart { grid-auto-columns: 64px; }
}

/* teammates, and the by-team page */
.mates { padding: 4px 16px 12px; }
.mate { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--rule); font-size: var(--fs-s); flex-wrap: wrap; }
.mate:last-child { border-bottom: 0; }
.mt { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; flex-wrap: wrap; min-width: 0; }
.mate .chip { flex: none; }
.tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; margin-bottom: 28px; align-items: start; }
.tband { align-items: center; background: var(--tc); color: var(--tc-on); border-radius: 5px 5px 0 0; }
.tband h3 { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 1.25rem; min-width: 0; }
.tband h3 .tmark { box-shadow: inset 0 0 0 2px var(--tc-on); flex: none; }
.tband a { color: inherit; font-size: var(--fs-xs); font-weight: 700; white-space: nowrap; }
.tbody { padding: 4px 16px 12px; }
.tg h4 { margin: 10px 0 2px; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--meta); }
.tg ul { list-style: none; margin: 0; padding: 0; }
.tg li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 5px 0; border-bottom: 1px solid var(--rule); font-size: var(--fs-s); flex-wrap: wrap; }
.tg li a { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.tg li .chip { flex: none; }
.prose ul { padding-left: 1.2em; }
.phero .ph-band h1 { overflow-wrap: anywhere; }
.st-k, .st-v, .st-r { min-width: 0; }
.prose p, .prose li { overflow-wrap: anywhere; }

/* navigation: a main row and, under it, the positions of the side the reader is on (no script needed to use it) */
.pnav { flex-direction: column; align-items: flex-end; gap: 0; }
.pn-main, .pn-sub { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 4px; }
.pn-sub { display: none; width: 100%; border-top: 1px solid var(--rule); margin-top: 2px; padding-top: 2px; }
.pn-sub.here { display: flex; }
.pn-h { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--meta); padding-right: 8px; }
.pnav a[aria-current="true"] { color: var(--navy); box-shadow: inset 0 -3px 0 var(--red); border-radius: 0; }
@media (min-width: 760px) { .pn-sub a { min-height: 38px; font-weight: 500; } .pn-sub a[aria-current="page"] { font-weight: 700; } }
@media (min-width: 760px) and (max-width: 1179px) {
  /* not enough room beside the logo: the bar takes its own full-width row under it */
  .masthead .wrap .mast-tools { order: 2; margin-left: auto; }
  .masthead .wrap .pnav { order: 3; flex: 1 1 100%; align-items: stretch; }
  .pnav .pn-main, .pnav .pn-sub { justify-content: flex-start; }
  .pn-sub { border-top: 1px solid var(--rule); }
}
@media (max-width: 759px) {
  /* the phone drawer (menu.js moves the whole bar into it): both sides listed, two columns */
  .masthead.has-menu .pnav { display: block; }
  .masthead.has-menu .pn-main, .masthead.has-menu .pn-sub { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 8px; justify-content: stretch; }
  .masthead.has-menu .pn-sub { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--rule); }
  .masthead.has-menu .pn-h { grid-column: 1 / -1; padding: 2px 0; }
  .masthead.has-menu .pnav a { padding: 0 8px; }
  .masthead.has-menu .pn-main .pn-side { display: none; }   /* the two side lists below say the same */
  .masthead:not(.has-menu) .pnav { align-items: stretch; width: 100%; }
}

/* the Rookie tag, and the rookies page */
.rk { display: inline-block; margin-left: 8px; padding: 0 7px; border: 1px solid currentColor; border-radius: 999px; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; line-height: 16px; vertical-align: middle; white-space: nowrap; }
.ph-band .rk { margin-left: 10px; }
.tg li .rk { margin-left: 6px; }
.rtable td { vertical-align: middle; }
.rtable td.r b { display: block; font-variant-numeric: tabular-nums; }
.rtable { min-width: 760px; }

/* the defensive lists' longer axis titles may wrap */
.board.defb .cols .axis { height: 46px; }
.board.defb .axis em { white-space: normal; line-height: 1.2; text-wrap: balance; }
@media (max-width: 759px) {
  /* a phone row: the chip's figures move under the name (the small line) so the name keeps its width */
  .board.defb .rowbtn .chip { display: none; }
  .board.defb .rowbtn { grid-template-columns: 30px 28px minmax(0, 1fr) 54px; grid-template-areas: "rk tm nm pw" "st st st st"; }
}

/* the Overall page (decision PF11): the lists' board with a number and a place at his position, and a position filter */
.ph-ov { margin: 0; padding: 10px 20px; border-top: 1px solid var(--rule); font-size: var(--fs-s); font-weight: 600; }
.ph-ov a { color: var(--navy); }
.ph-ov .meta { font-weight: 500; }
.ovf { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 4px; }
html:not(.js) .ovf { display: none; }
.ovf button { font: inherit; font-size: var(--fs-s); font-weight: 600; min-height: 36px; padding: 0 12px; border: 1px solid var(--rule-strong); border-radius: 999px; background: var(--surface); color: var(--ink); cursor: pointer; }
.ovf button:hover { background: var(--surface-2); }
.ovf button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--surface); }
.ovf button:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.row[hidden], .ovtable tr[hidden] { display: none; }
.ovb .rank.tied { font-size: 1.3rem; white-space: nowrap; }
.ovb .rec { white-space: nowrap; }
.ovb .rec b { display: block; font-size: var(--fs-m); font-weight: 700; line-height: 1.1; }
.ovb .rec small { display: block; font-size: 11px; font-weight: 600; color: var(--meta); line-height: 1.2; white-space: normal; }
@media (min-width: 760px) {
  .board.ovb .cols, .board.ovb .rowbtn { grid-template-columns: 44px 36px minmax(0, 13.5rem) 112px 96px 76px minmax(150px, 1fr); }
  .ovb .rec { text-align: right; }
}
@media (max-width: 759px) {
  .ovb .rowbtn .chip { font-size: 11px; }
}
.ovtable { min-width: 820px; }
