/* Dugout squad screen: styles only the squad view (js/views/squad.js) uses. The pitch is drawn like a printed
   programme's team sheet: paper bands, ink lines, name plates in black.
   Classes here belong to this screen; tests/css-lint.mjs fails if another screen's file defines the same class. */
.sqhead { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.sqhead h1 { margin-bottom: 14px; }
.sqscore { text-align: right; margin-bottom: 14px; }
.sqscore span { display: block; font: 900 extra-condensed 84px/.82 var(--head); color: var(--ink); font-variant-numeric: tabular-nums; }
.sqscore small { display: inline-block; margin-top: 6px; background: var(--hi); color: var(--hi-ink); padding: 2px 6px; font: 700 11.5px var(--num); text-transform: uppercase; letter-spacing: .04em; }
.sqgrid { display: grid; gap: 18px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 1000px) {
  .sqgrid { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
}
.sqside { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.pitch2 { position: relative; border-radius: var(--r); padding: 26px 8px 22px; overflow: hidden; border: 1px solid var(--edge); box-shadow: var(--drop);
  display: flex; flex-direction: column; gap: 18px; justify-content: space-around; min-height: 540px;
  background: repeating-linear-gradient(180deg, var(--card) 0 60px, var(--card2) 60px 120px); }
.pitchlines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.pitchlines * { fill: none; stroke: color-mix(in srgb, var(--ink) 26%, transparent); stroke-width: 2; vector-effect: non-scaling-stroke; }
.pitchlines .dot { fill: color-mix(in srgb, var(--ink) 40%, transparent); }
.prow2 { position: relative; display: flex; justify-content: space-evenly; gap: 4px; }
.pcard { position: relative; width: 19%; max-width: 118px; background: none; border: 0; padding: 0; display: flex; flex-direction: column; align-items: center; color: var(--ink); transition: transform .1s; }
.pcard:hover { transform: translateY(-3px); }
.pcard.picked .plate { outline: 3px solid var(--accent); outline-offset: 1px; }
.pcard.risk .plate { box-shadow: inset 0 -3px 0 var(--warn); }
/* the box is the photo's size; the shirt sits at its foot until the photo loads (js/views/squad.js shirt()), and the
   photo reaches down the plate's 5px margin so the player stands on his name plate */
.shirtwrap { position: relative; width: 58px; height: 74px; display: flex; align-items: flex-end; }
.shirt { width: 100%; height: 54px; filter: drop-shadow(0 3px 5px rgb(0 0 0 / .22)); }
.shirtwrap > img { position: absolute; left: 0; top: 0; width: 100%; height: calc(100% + 5px); object-fit: contain; object-position: bottom; opacity: 0; }
.shirtwrap.has-photo > img { opacity: 1; }
.shirtwrap.has-photo .shirt { visibility: hidden; }
.shirt text { font: 800 11.5px var(--num); letter-spacing: .02em; }
.pbadges { position: absolute; top: -4px; right: -10px; display: flex; flex-direction: column; gap: 2px; }
.bd.vc { background: var(--card); color: var(--ink); }
.bd.dbt { background: var(--hi); }
.bd.dn { background: #ff6b6b; }
.tags2 { position: absolute; bottom: -2px; left: -10px; font-size: 13px; }
.plate { margin-top: 5px; width: 100%; background: var(--ink); color: var(--bg); border-radius: 10px; overflow: hidden; padding: 4px 4px 3px; display: flex; flex-direction: column; align-items: center; }
.plate b { font-size: 12.5px; font-weight: 700; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: inherit; }
.plate .mv { font: 800 16px/1.15 var(--num); color: var(--hi); font-variant-numeric: tabular-nums; }
.nx { width: 100%; font: 700 10.5px/18px var(--num); color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bench2row { display: flex; align-items: flex-start; gap: 6px; justify-content: space-evenly; margin-top: 18px; padding: 16px 8px 10px; background: var(--card2); border: 1.5px dashed var(--edge); border-radius: var(--r); position: relative; }
.benchlbl { position: absolute; top: -11px; left: 14px; background: var(--ink); color: var(--bg); padding: 4px 11px; border-radius: 999px; font: 800 10.5px/1 var(--num); text-transform: uppercase; letter-spacing: .1em; }
.pcard.bn { opacity: .95; }
.sbar { display: flex; height: 16px; border: 1px solid var(--edge); overflow: hidden; gap: 0; }
.sbar i { display: block; }
.sbar i + i { border-left: 1px solid var(--edge); }
.sqtable tr.benchrow td { opacity: .6; }
.posp { font: 800 10.5px var(--num); padding: 2px 6px; border-radius: 6px; color: #151515; border: 1px solid #151515; }
.posp.p1 { background: #2bd4a8; }
.posp.p2 { background: #6aa8f0; }
.posp.p3 { background: #e0a93a; }
.posp.p4 { background: #e889ad; }
@media (max-width: 600px) {
  .pitch2 { min-height: 450px; padding: 18px 2px; }
  .shirtwrap { width: 46px; height: 58px; }
  .shirt { height: 43px; }
  .plate b { font-size: 11px; }
  .plate .mv { font-size: 14px; }
  .nx { font-size: 9.5px; }
  .pbadges { right: -8px; }
  .sqscore span { font-size: 60px; }
}
:root[data-theme=dark] .plate .mv { color: #151515; }
/* the weakest-links box sits under the pitch; club chips stay whole; the gameweek picker fits a phone */
.sqmain > .box { margin-top: 18px; }
.sqside .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sqside .chip { white-space: nowrap; }
@media (max-width: 600px) {
  #squad .sqgw { display: flex; width: 100%; overflow: visible; }
  #squad .sqgw button { flex: 1; padding: 7px 2px; font-size: 13px; }
}

/* Phones: one part of the Squad page at a time (js/views/squad.js PARTS) */
.sqparts { display: none; }
@media (max-width: 600px) {
  .sqparts { display: flex; margin: 0 0 14px; }
  #squad[data-part=team] .sqside, #squad[data-part=team] .sqtable,
  #squad[data-part=stats] .sqmain, #squad[data-part=stats] .sqtable,
  #squad[data-part=all] .sqgrid { display: none; }
}
/* transfers made since the deadline (js/views/made.js) */
.md-list { display: grid; gap: 4px; margin-bottom: 8px; }
.md-row { display: flex; justify-content: space-between; gap: 8px; font-size: 14.5px; padding: 4px 0; border-bottom: 1px solid var(--line); }
.md-add { display: grid; gap: 8px; margin-top: 8px; }
.md-add label { display: grid; gap: 4px; }
.md-add .sel { width: 100%; max-width: 100%; }
.md-share { display: flex; gap: 8px; align-items: center; margin-top: 10px; }
.md-cap { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
