/*
 * Squad pages: rules for pages with <body class="p-squad">. Shared rules are in sfp.css.
 */

/* ------------------------------------------------------------------
   SHELL
------------------------------------------------------------------- */
.p-squad .section > .sub { margin: -6px 4px 0; font-size: 13px; color: var(--ink-faint); line-height: 1.35; }
.p-squad .vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ------------------------------------------------------------------
   SITE HEADER
------------------------------------------------------------------- */
.p-squad a:focus-visible, .p-squad button:focus-visible, .p-squad summary:focus-visible, .p-squad .snap:focus-visible, .p-squad label.btn:focus-within {
  outline: 2px solid #fff;
  outline-offset: 2px;
  border-radius: 8px;
}

/* ------------------------------------------------------------------
   THE CARD
------------------------------------------------------------------- */
.p-squad .card-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
}
.p-squad .card-title .note { font-size: 12px; font-weight: 400; color: var(--ink-faint); }

/* ------------------------------------------------------------------
   HERO
------------------------------------------------------------------- */
.p-squad .hero-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.p-squad .hero h1 { margin: 0; font-size: 36px; font-weight: 700; line-height: .98; }
.p-squad .crest { flex: none; width: 92px; height: 101px; }
.p-squad .stat-bars { margin: 16px 0 0; display: grid; gap: 8px; }

/* ------------------------------------------------------------------
   STARTING XI
------------------------------------------------------------------- */
.p-squad .xi { padding: 0; overflow: hidden; }
.p-squad .field { position: relative; aspect-ratio: 340 / 450; background: linear-gradient(180deg, rgba(60,200,150,.17), rgba(30,120,130,.1)); }
.p-squad .field svg.lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.p-squad .field svg.lines * { fill: none; stroke: rgba(255,255,255,.3); stroke-width: 1.2; }
.p-squad .field svg.lines .spot { fill: rgba(255,255,255,.3); stroke: none; }
.p-squad .xi-row {
  position: absolute;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-evenly;
  margin: 0;
  padding: 0 4px;
  list-style: none;
}
.p-squad .pl { flex: 1 1 0; min-width: 0; max-width: 84px; text-align: center; }
.p-squad .pl .disc {
  width: 42px;
  height: 42px;
  margin: 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--royal);
  border: 2px solid var(--accent);
  font-size: 17px;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(0,0,40,.45);
}
.p-squad .pl.gk .disc { border-color: var(--gold); }
.p-squad .pl .nm {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 3px rgba(0,0,40,.8);
}
.p-squad .pl .op { display: block; font-size: 10.5px; color: var(--ink-soft); white-space: nowrap; text-shadow: 0 1px 3px rgba(0,0,40,.8); }
.p-squad .xi-foot {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 16px;
  font-size: 12.5px;
  color: var(--ink-soft);
  border-top: 1px solid var(--hair);
}

/* ------------------------------------------------------------------
   LISTS AND TABLES
------------------------------------------------------------------- */
.p-squad .bench ul { list-style: none; margin: 0; padding: 0; }
.p-squad .bench li {
  display: grid;
  grid-template-columns: 30px 1fr auto 40px;
  gap: 8px;
  align-items: baseline;
  padding: 8px 0;
  border-top: 1px solid rgba(255,255,255,.09);
  font-size: 14.5px;
}
.p-squad .bench li:first-child { border-top: 0; }
.p-squad .bench .p { font-size: 11.5px; color: var(--ink-faint); font-weight: 500; }
.p-squad .bench .n small, .p-squad .tbl .n small { font-size: 11px; color: var(--ink-faint); margin-left: 5px; font-weight: 400; }
.p-squad .bench .s { font-size: 12px; color: var(--ink-faint); }
.p-squad .bench .v { text-align: right; font-weight: 700; color: var(--accent); }
.p-squad .bench li.z { opacity: .55; }
.p-squad .note-line { margin: 0 0 6px; font-size: 13px; color: var(--ink-soft); line-height: 1.4; }
.p-squad .note-line b { color: var(--ink); font-weight: 600; }
.p-squad .tbl-wrap { overflow-x: auto; margin: 0 -8px; padding: 0 8px; }
.p-squad table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.p-squad table.tbl th { font-size: 11.5px; font-weight: 500; color: var(--ink-faint); text-align: right; padding: 4px 4px 6px; white-space: nowrap; }
.p-squad table.tbl th:nth-child(1), .p-squad table.tbl th:nth-child(2) { text-align: left; }
.p-squad table.tbl td { padding: 7px 4px; text-align: right; border-top: 1px solid rgba(255,255,255,.08); white-space: nowrap; }
.p-squad table.tbl td.st { text-align: left; width: 18px; }
.p-squad table.tbl td.n { text-align: left; font-weight: 500; }
.p-squad table.tbl td.tot { font-weight: 700; color: var(--accent); min-width: 34px; }
.p-squad table.tbl tr.grp td {
  text-align: left;
  padding: 14px 4px 5px;
  border-top: 1px solid rgba(255,255,255,.26);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
}
.p-squad table.tbl tr.grp td span { float: right; color: var(--accent); font-weight: 700; }
.p-squad table.tbl tr.z td { opacity: .55; }
.p-squad .pip { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); vertical-align: -1px; }
.p-squad .pip.b { background: transparent; border: 1.5px solid var(--accent-2); }
.p-squad .legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  font-size: 12px;
  color: var(--ink-soft);
}
.p-squad .legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }

/* ------------------------------------------------------------------
   TOP SCORERS
------------------------------------------------------------------- */
.p-squad .bars { display: grid; gap: 9px; }
.p-squad .bar-row { display: grid; grid-template-columns: 104px 1fr 28px; gap: 8px; align-items: center; font-size: 13.5px; }
.p-squad .bar-row .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.p-squad .bar-row .tr { height: 14px; border-radius: 3px; background: rgba(255,255,255,.08); overflow: hidden; }
.p-squad .bar-row .tr i { display: block; height: 100%; border-radius: 3px; background: var(--accent); }
.p-squad .bar-row.b .tr i { background: var(--accent-2); }
.p-squad .bar-row .v { text-align: right; font-weight: 700; }

/* ------------------------------------------------------------------
   DONUTS + TILES
------------------------------------------------------------------- */
.p-squad .donuts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; text-align: center; }
.p-squad .donut { position: relative; width: 100%; max-width: 104px; margin: 0 auto; aspect-ratio: 1; }
.p-squad .donut svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.p-squad .donut .trk { fill: none; stroke: rgba(255,255,255,.16); stroke-width: 10; }
.p-squad .donut .arc { fill: none; stroke: var(--accent); stroke-width: 10; }
.p-squad .donut b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 24px; font-weight: 600; }
.p-squad .donut-lab { margin: 8px 0 0; font-size: 13px; font-weight: 500; color: var(--ink-soft); }
.p-squad .donut-sub { margin: 1px 0 0; font-size: 11.5px; color: var(--ink-faint); }
.p-squad .tiles { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.p-squad .tile { padding: 14px 14px 12px; }
.p-squad .tile b { display: block; font-size: 44px; font-weight: 500; line-height: 1; color: var(--accent-2); }
.p-squad .tile span { display: block; margin-top: 6px; font-size: 13px; color: var(--ink-soft); line-height: 1.25; }

/* ------------------------------------------------------------------
   FIXTURES
------------------------------------------------------------------- */
.p-squad .fx { display: grid; grid-template-columns: 64px 1fr; gap: 10px; padding: 11px 0; border-top: 1px solid rgba(255,255,255,.09); }
.p-squad .fx:first-child { border-top: 0; padding-top: 2px; }
.p-squad .fx .when { font-size: 12.5px; color: var(--ink-soft); line-height: 1.3; }
.p-squad .fx .when b { display: block; font-weight: 600; color: var(--ink); }
.p-squad .fx .match { display: flex; align-items: center; gap: 7px; font-size: 15px; font-weight: 600; }
.p-squad .fx .match i { font-style: normal; font-weight: 400; color: var(--ink-faint); }
.p-squad .chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.p-squad .chip {
  font-size: 12px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 99px;
  border: 1px solid var(--accent);
  background: rgba(242,44,247,.18);
}
.p-squad .chip.b { border: 1px dashed rgba(255,255,255,.4); background: transparent; color: var(--ink-soft); }

/* ------------------------------------------------------------------
   DATA PANEL + FOOTER
------------------------------------------------------------------- */
.p-squad .status { margin-top: 12px; font-size: 13px; min-height: 18px; color: var(--ink-soft); }

/* ------------------------------------------------------------------
   CAREER AND HISTORY
------------------------------------------------------------------- */
.p-squad .sample {
  display: inline-block;
  vertical-align: 4px;
  margin-left: 8px;
  padding: 2px 9px;
  border: 1px dashed rgba(255,255,255,.5);
  border-radius: 99px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--ink-soft);
}
.p-squad .divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.p-squad .divider::before, .p-squad .divider::after { content: ""; flex: 1; border-top: 1px solid var(--hair); }
.p-squad .form-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); }
.p-squad .scroller {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  margin: 0 -16px;
  padding: 0 16px;
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 26px), transparent 100%);
  mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 26px), transparent 100%);
}
.p-squad .scroller::-webkit-scrollbar { display: none; }
.p-squad .scroller:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 8px; }
.p-squad .track { position: relative; display: grid; grid-template-columns: repeat(var(--n), minmax(60px, 1fr)); min-width: calc(var(--n) * 60px); }
.p-squad .svg-over { position: absolute; left: 0; pointer-events: none; overflow: visible; }
.p-squad .fcol { display: grid; grid-template-rows: 22px 28px 64px 24px; justify-items: center; align-items: center; }
.p-squad .fcol .wk, .p-squad .pcol .wk { font-size: 12px; color: var(--ink-faint); }
.p-squad .fcol .rank { font-size: 18px; font-weight: 600; }
.p-squad .chg { font-size: 12px; font-weight: 500; color: var(--ink-faint); }
.p-squad .chg.up { color: #7cf0ac; }
.p-squad .chg.down { color: #ff8fa8; }
.p-squad .pcol { display: grid; grid-template-rows: 22px 96px 24px; justify-items: center; align-items: end; }
.p-squad .pcol .wk { align-self: start; }
.p-squad .pcol .bar { width: 26px; min-height: 2px; border-radius: 4px 4px 2px 2px; background: rgba(255,255,255,.34); }
.p-squad .pcol .bar.hi { background: var(--accent); }
.p-squad .pcol .v { align-self: center; font-size: 13px; font-weight: 500; }
.p-squad .swatch-dash { display: inline-block; width: 16px; border-top: 2px dashed var(--ink-soft); margin-right: 6px; vertical-align: 3px; }
.p-squad .snap {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  margin: 0 calc(var(--page-pad) * -1);
  padding: 2px var(--page-pad) 4px;
  scroll-padding: 0 var(--page-pad);
}
.p-squad .snap::-webkit-scrollbar { display: none; }
.p-squad .snap > * { scroll-snap-align: start; flex: none; }
.p-squad .snap:focus-visible, .p-squad .trophies:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 8px; }
.p-squad .scard { width: min(76%, 290px); padding: 16px; }
.p-squad .scard h3 { margin: 0 0 10px; font-size: 18px; font-weight: 600; text-align: center; }
.p-squad .scard dl { margin: 0; }
.p-squad .scard dl div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: 14px;
}
.p-squad .scard dt { color: var(--ink-soft); }
.p-squad .scard dd { margin: 0; font-weight: 600; }
.p-squad .avatar {
  width: 128px;
  height: 150px;
  margin: 4px auto 10px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 44px;
  font-weight: 300;
  letter-spacing: .04em;
  background: linear-gradient(160deg, rgba(255,255,255,.22), rgba(255,255,255,.05));
  border: 1px solid var(--card-border);
}
.p-squad .scard .cap { margin: 0; text-align: center; font-size: 14px; color: var(--ink-soft); }
.p-squad .scard .crest-lg { width: 120px; height: 132px; margin: 6px auto 8px; display: block; }
.p-squad .band {
  margin: 22px calc(var(--page-pad) * -1) 0;
  padding: 34px 12px 32px;
  text-align: center;
  background: rgba(0,0,40,.38);
  border-block: 1px solid var(--hair);
}
.p-squad .band b { display: block; font-size: 96px; font-weight: 300; line-height: .95; letter-spacing: .02em; }
.p-squad .band span { display: block; margin-top: 10px; font-size: 22px; font-weight: 500; }
.p-squad .chart { width: 100%; height: auto; display: block; }
.p-squad .chart text { font-family: var(--font); fill: var(--ink-faint); font-size: 9px; }
.p-squad .legend.ln i { width: 16px; height: 0; border-radius: 0; border-top: 2.5px solid; background: none; vertical-align: middle; }
.p-squad .legend.ln i.dash { border-top-style: dashed; }
.p-squad .legend.ln i.sq { width: 9px; height: 9px; border: 0; border-radius: 2px; }
.p-squad .foot-note { margin: 8px 0 0; font-size: 11px; color: var(--ink-faint); text-align: right; line-height: 1.4; }
.p-squad .trophies {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  margin: 0 calc(var(--page-pad) * -1);
  padding: 2px var(--page-pad) 4px;
  scroll-padding: 0 var(--page-pad);
}
.p-squad .trophies::-webkit-scrollbar { display: none; }
.p-squad .trophy { flex: none; width: 112px; scroll-snap-align: start; text-align: center; padding: 14px 6px 12px; }
.p-squad .trophy svg { width: 64px; height: 84px; display: block; margin: 0 auto 8px; }
.p-squad .trophy span { display: block; font-size: 12px; color: var(--ink-soft); }
.p-squad .trophy b { display: block; margin-top: 2px; font-size: 18px; font-weight: 600; }

/* ------------------------------------------------------------------
   LAYOUT HELPERS
------------------------------------------------------------------- */
.p-squad .hero-l, .p-squad .hero-r { display: block; min-width: 0; }
.p-squad .hero h1 { font-size: clamp(26px, 7.3vw, 36px); min-width: 0; }
.p-squad .crest { width: 80px; height: 88px; }
.p-squad .hero-r .pills { margin-top: 14px; }
.p-squad .stat-bars dd { white-space: nowrap; }
.p-squad .fx-wrap { display: block; }

/* ------------------------------------------------------------------
   DESKTOP
------------------------------------------------------------------- */
@media (min-width: 1000px) {
  .p-squad .page {
    max-width: 1180px;
    padding: 28px var(--page-pad) 64px;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 24px;
    row-gap: 28px;
    align-items: start;
  }
  .p-squad #hero { grid-column: 1 / -1; grid-row: 1; }
  .p-squad #xi { grid-column: 1 / 6; grid-row: 2; }
  .p-squad #bench { grid-column: 1 / 6; grid-row: 3; }
  .p-squad #squad { grid-column: 6 / 13; grid-row: 2 / span 2; }
  .p-squad #top-sec { grid-column: 1 / 6; grid-row: 4; }
  .p-squad #fixtures { grid-column: 6 / 13; grid-row: 4; }
  .p-squad #pos-sec { grid-column: 1 / 6; grid-row: 5; }
  .p-squad #tiles-sec { grid-column: 6 / 13; grid-row: 5; }
  .p-squad #career-sec { grid-column: 1 / -1; grid-row: 6; margin-top: 12px; }
  .p-squad #form-sec { grid-column: 1 / -1; grid-row: 7; }
  .p-squad #team-stats { grid-column: 1 / -1; grid-row: 8; }
  .p-squad .band { grid-column: 1 / -1; grid-row: 9; margin: 0; border-radius: var(--card-radius); border: 1px solid var(--hair); }
  .p-squad #vs-sec { grid-column: 1 / 9; grid-row: 10; }
  .p-squad #trophy-sec { grid-column: 9 / 13; grid-row: 10; }
  .p-squad #career-fin { grid-column: 1 / -1; grid-row: 11; }
  .p-squad #data-sec { grid-column: 1 / -1; grid-row: 12; max-width: 720px; }
  .p-squad .site-foot { grid-column: 1 / -1; grid-row: 13; margin-top: 8px; }
  .p-squad .hero { padding: 32px 34px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
  .p-squad .hero h1 { font-size: 60px; }
  .p-squad .crest { width: 120px; height: 132px; }
  .p-squad .stat-bars div { grid-template-columns: 1fr 112px; }
  .p-squad .stat-bars dd { font-size: 24px; white-space: nowrap; }
  .p-squad .chart text { font-size: 11px; }
  .p-squad .pl .disc { width: 48px; height: 48px; font-size: 19px; }
  .p-squad .pl .nm { font-size: 13.5px; }
  .p-squad .pl .op { font-size: 11.5px; }
  .p-squad table.tbl { font-size: 15px; }
  .p-squad table.tbl td { padding: 9px 6px; }
  .p-squad table.tbl th { font-size: 12px; }
  .p-squad #fx-card { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; align-content: start; }
  .p-squad #fx-card .fx { border-top: 0; border-bottom: 1px solid rgba(255,255,255,.09); padding: 12px 0; }
  .p-squad #fx-card .fx:first-child { padding-top: 12px; }
  .p-squad #fx-card .legend { grid-column: 1 / -1; }
  .p-squad .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .p-squad .tile b { font-size: 50px; }
  .p-squad .scroller { -webkit-mask-image: none; mask-image: none; }
  .p-squad .band { padding: 40px 12px; }
  .p-squad .band b { font-size: 120px; }
  .p-squad .scroller:has(#career-wrap) { -webkit-mask-image: none; mask-image: none; }
}
@media (min-width: 1500px) {
  .p-squad .page { max-width: 1320px; }
  .p-squad .hero h1 { font-size: 68px; }
}

/* ------------------------------------------------------------------
   PHP VERSION
------------------------------------------------------------------- */
.p-squad .mine { margin: 14px 0 0; font-size: 14px; color: var(--ink-soft); display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
.p-squad .mine .pos { color: var(--accent); font-weight: 700; font-size: 20px; }
.p-squad .fx .fxm { display: flex; align-items: center; gap: 7px; font-size: 15px; font-weight: 600; }
.p-squad .fx .fxm i { font-style: normal; font-weight: 400; color: var(--ink-faint); }
.p-squad .team-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.p-squad .team-card { display: flex; align-items: center; gap: 12px; padding: 14px; color: inherit; text-decoration: none; }
.p-squad .team-card .tn b { display: block; font-size: 16px; font-weight: 600; line-height: 1.15; }
.p-squad .team-card .tn small { display: block; margin-top: 3px; font-size: 12.5px; color: var(--ink-soft); }
.p-squad .team-card.me { border-color: var(--accent); background: rgba(242,44,247,.14); }
.p-squad .team-card:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.p-squad .rankdl { margin: 0; }
.p-squad .rankdl div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; border-top: 1px solid rgba(255,255,255,.1); font-size: 15px; }
.p-squad .rankdl div:first-child { border-top: 0; padding-top: 2px; }
.p-squad .rankdl dt { color: var(--ink-soft); }
.p-squad .rankdl dd { margin: 0; text-align: right; }
.p-squad .rankdl dd b { font-weight: 700; color: var(--accent); font-size: 18px; }
.p-squad .rankdl dd span { margin-left: 8px; color: var(--ink-faint); font-size: 13px; }
.p-squad .notice h3 { color: var(--ink); }
@media (min-width: 1000px) {
  .p-squad #summary, .p-squad #teams-sec, .p-squad .notice, .p-squad .updated, .p-squad .picker { grid-column: 1 / -1; }
  .p-squad #summary { max-width: 760px; }
  .p-squad .picker { justify-self: end; width: 400px; }
  .p-squad #data-sec, .p-squad .site-foot, .p-squad .updated { grid-row: auto; }
  .p-squad .team-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .p-squad .team-card { padding: 18px; }
}
@media (max-width: 399px) { .p-squad .team-grid { grid-template-columns: 1fr; } }
@media (min-width: 1000px) {
  .p-squad .hero { grid-template-columns: 1.25fr 1fr; }
  .p-squad .hero h1 { font-size: 52px; min-width: 0; }
}
@media (min-width: 1500px) { .p-squad .hero h1 { font-size: 60px; } }

/* ------------------------------------------------------------------
   7 OCT UPDATE: gameweek view, upper-case names, 600px badge, 4 tabs
------------------------------------------------------------------- */
.p-squad .hero h1 { text-transform: uppercase; overflow-wrap: anywhere; }
.p-squad .team-card .tn b, .p-squad .scard .cap.club { text-transform: uppercase; }
.p-squad .hero-top .badge { flex: none; width: 112px; height: 112px; object-fit: contain; }
.p-squad .section > h2 { text-wrap: balance; }
.p-squad .scard .badge { display: block; width: 150px; height: 150px; margin: 6px auto 8px; object-fit: contain; }
.p-squad .hero-r .pills { grid-template-columns: repeat(var(--np, 3), minmax(0, 1fr)); }
.p-squad .hero-r .pill { padding-left: 2px; padding-right: 2px; white-space: nowrap; font-size: 12px; }
@media (min-width: 440px) { .p-squad .hero-r .pill { font-size: 13px; } }

/* league-table arrows, same colours as Home */
.p-squad .mv { flex: none; width: 12px; height: 12px; }
.p-squad .mv.none { display: none; }
.p-squad .mv.up { fill: var(--up); }
.p-squad .mv.down { fill: var(--down); }
.p-squad .mv.same { fill: var(--accent-2); }
.p-squad .stat-bars dd .pv { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }

.p-squad h2 .asof { font-size: .62em; font-weight: 400; color: var(--ink-faint); white-space: nowrap; }
.p-squad .xi-foot b { color: var(--ink); font-weight: 700; }

/* bench and squad tables: week points column */
.p-squad table.tbl td.pp { text-align: left; width: 30px; font-size: 11.5px; color: var(--ink-faint); font-weight: 500; }
.p-squad table.tbl td.wk { font-weight: 600; }
.p-squad table.tbl td.wk.off { font-weight: 400; color: var(--ink-faint); }
.p-squad table.tbl tr.z td.wk { opacity: 1; }

@media (min-width: 1000px) {
  .p-squad .hero-top .badge { width: 170px; height: 170px; }
}
/* Team name size: the longest word (RASENBALLSPORT) must always fit beside the big badge, so it never breaks mid-word */
.p-squad .hero h1 { font-size: clamp(20px, 6.2vw, 36px); }
@media (max-width: 359px) { .p-squad .hero-top .badge { width: 88px; height: 88px; } }
@media (min-width: 440px) and (max-width: 999px) { .p-squad .hero h1 { font-size: min(36px, 5.2vw); } }
@media (min-width: 1000px) and (max-width: 1299px) {
  .p-squad .hero-top .badge { width: 140px; height: 140px; }
  .p-squad .hero h1 { font-size: 38px; }
}
@media (min-width: 1300px) { .p-squad .hero h1 { font-size: 46px; } }
@media (min-width: 1500px) { .p-squad .hero h1 { font-size: 56px; } }


/* ------------------------------------------------------------------
   12 OCT UPDATE: team and manager cards from the master sheet, picture placeholders, honours, bigger trophy cabinet
------------------------------------------------------------------- */
.p-squad .pic { display: block; width: 128px; height: 150px; margin: 4px auto 10px; border-radius: 12px; object-fit: cover; }
.p-squad .pic.kit, .p-squad .pic.logo { object-fit: contain; }
.p-squad .pic.ph {
  display: grid; place-items: center; color: rgba(255,255,255,.34);
  background: linear-gradient(160deg, rgba(255,255,255,.16), rgba(255,255,255,.04)); border: 1px dashed rgba(255,255,255,.28);
}
.p-squad .pic.ph svg { width: 64px; height: 72px; fill: currentColor; }
.p-squad .scard .cap { padding-top: 2px; overflow-wrap: anywhere; }
.p-squad .scard dl.fee { margin-top: 8px; }
.p-squad .scard .honours-total { margin: -4px 0 8px; text-align: center; font-size: 30px; font-weight: 600; color: var(--accent-2); line-height: 1; }
.p-squad .scard.hon dl { margin: 0; }
.p-squad .scard.hon dl div { border-top: 0; margin-top: 8px; padding: 7px 10px; border-radius: 6px; background: rgba(110,0,190,.38); border: 1px solid rgba(242,44,247,.55); }
.p-squad .scard .yrs { margin: 5px 0 0; padding: 0 4px; text-align: center; font-size: 12px; color: var(--ink-soft); line-height: 1.4; overflow-wrap: anywhere; }

@media (min-width: 1000px) {
  .p-squad #vs-sec { grid-column: 1 / -1; grid-row: 10; }
  .p-squad #trophy-sec { grid-column: 1 / -1; grid-row: 11; }
  .p-squad #career-fin { grid-column: 1 / -1; grid-row: 12; }
}


/* ------------------------------------------------------------------
   CAROUSELS: the team and manager cards and the trophy cabinet scroll sideways on every screen size.
   Swipe or scroll on touch, arrow buttons and dots (added by js/charts.js) for mouse and keyboard.
------------------------------------------------------------------- */
.p-squad .snap, .p-squad .trophies { padding-top: 6px; padding-bottom: 12px; }
@media (min-width: 600px) {
  .p-squad .scard { width: calc((100% - 20px) / 3); }
  .p-squad .trophy { width: calc((100% - 40px) / 5); }
}
@media (min-width: 1000px) {
  .p-squad .snap { gap: 16px; margin: 0; padding: 6px 2px 12px; scroll-padding: 0 2px; }
  .p-squad .scard { width: calc((100% - 52px) / 4); }
  .p-squad .trophies { gap: 12px; margin: 0; padding: 6px 2px 12px; scroll-padding: 0 2px; }
  .p-squad .trophy { width: calc((100% - 62px) / 6); }
}
.p-squad .car-nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 6px; }
.p-squad .car-nav[hidden] { display: none; }
.p-squad .car-btn {
  width: 44px; height: 44px; padding: 0; display: grid; place-items: center; cursor: pointer; color: var(--ink);
  border: 1px solid rgba(102,229,246,.7); border-radius: 50%;
  background: linear-gradient(180deg, rgba(102,229,246,.22), rgba(102,229,246,.06));
}
.p-squad .car-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.p-squad .car-btn:hover { background: rgba(102,229,246,.3); }
.p-squad .car-btn[aria-disabled="true"] { opacity: .35; cursor: default; }
.p-squad .car-dots { display: flex; gap: 8px; align-items: center; }
.p-squad .car-dot { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.3); cursor: pointer; }
.p-squad .car-dot[aria-current="true"] { background: var(--accent); transform: scale(1.25); }
.p-squad .car-dot { position: relative; }
.p-squad .car-dot::before { content: ""; position: absolute; inset: -10px; }


/* ------------------------------------------------------------------
   13 OCT UPDATE: squad table keeps players who have left; transfers list
------------------------------------------------------------------- */
.p-squad .transfers h3 { margin: 0 0 8px; font-size: 16px; font-weight: 600; }
.p-squad .transfers dl.tl { margin: 0; }
.p-squad .transfers dl.tl div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid rgba(255,255,255,.12); }
.p-squad .transfers dl.tl dt { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.p-squad .transfers dl.tl dd { margin: 0; white-space: nowrap; font-weight: 600; color: var(--accent); }
.p-squad .transfers dl.tl small { display: block; margin-top: 2px; color: var(--ink-faint); font-size: 12px; }
.p-squad .transfers b.in, .p-squad .transfers b.out { display: inline-block; min-width: 34px; margin-right: 6px; padding: 1px 6px; border-radius: 4px; font-size: 11px; text-align: center; color: #07076b; }
.p-squad .transfers b.in { background: var(--up); }
.p-squad .transfers b.out { background: var(--down); }


/* trophy pictures from img/trophies/ (any shape fits the same 84px-high box) */
.p-squad .trophy img { display: block; width: 100%; height: 84px; margin: 0 auto 8px; object-fit: contain; }


/* ------------------------------------------------------------------
   28 OCT UPDATE: "Squad Details and Points" (Details / Season / month views), manager photo format, weekly form opens on the latest week
------------------------------------------------------------------- */
/* solid colours for the pinned columns, used only while the table scrolls sideways (they approximate the glass card behind them) */
.p-squad .sd { --sd-solid: #1f1fa9; --sd-grp: #2a2ab3; }
@supports (background: color-mix(in srgb, red 50%, blue)) {
  .p-squad .sd { --sd-solid: color-mix(in srgb, var(--sky-mid) 70%, #5050ff); --sd-grp: color-mix(in srgb, var(--sky-mid) 64%, #7070ff); }
}
.p-squad .sd .tbl-wrap { margin: 0; padding: 0; }
.p-squad .sd table.tbl { border-collapse: separate; border-spacing: 0; }
.p-squad .sd table.tbl th, .p-squad .sd table.tbl td { border-top: 1px solid rgba(255,255,255,.08); }
.p-squad .sd table.tbl thead th { border-top: 0; border-bottom: 1px solid rgba(255,255,255,.26); vertical-align: bottom; }
/* which columns show in which view */
.p-squad .sd[data-view="d"] .c-s, .p-squad .sd[data-view="d"] .c-m,
.p-squad .sd[data-view="s"] .c-d, .p-squad .sd[data-view="s"] .c-m,
.p-squad .sd[data-view="m"] .c-d, .p-squad .sd[data-view="m"] .c-s { display: none; }
.p-squad .sd[data-view="m"][data-month="Aug"] .c-m:not(.m-Aug) { display: none; }
.p-squad .sd[data-view="m"][data-month="Sep"] .c-m:not(.m-Sep) { display: none; }
.p-squad .sd[data-view="m"][data-month="Oct"] .c-m:not(.m-Oct) { display: none; }
.p-squad .sd[data-view="m"][data-month="Nov"] .c-m:not(.m-Nov) { display: none; }
.p-squad .sd[data-view="m"][data-month="Dec"] .c-m:not(.m-Dec) { display: none; }
.p-squad .sd[data-view="m"][data-month="Jan"] .c-m:not(.m-Jan) { display: none; }
.p-squad .sd[data-view="m"][data-month="Feb"] .c-m:not(.m-Feb) { display: none; }
.p-squad .sd[data-view="m"][data-month="Mar"] .c-m:not(.m-Mar) { display: none; }
.p-squad .sd[data-view="m"][data-month="Apr"] .c-m:not(.m-Apr) { display: none; }
.p-squad .sd[data-view="m"][data-month="May"] .c-m:not(.m-May) { display: none; }
.p-squad .sd[data-view="m"][data-month="Jun"] .c-m:not(.m-Jun) { display: none; }
.p-squad .sd .sd-note { display: none; }
.p-squad .sd[data-view="d"] .sd-note[data-for="d"], .p-squad .sd[data-view="s"] .sd-note[data-for="s"], .p-squad .sd[data-view="m"] .sd-note[data-for="m"] { display: block; }
.p-squad .sd[data-view="d"] .legend.sd-note[data-for="d"] { display: flex; }
/* headings: a bold top line and a second line */
.p-squad .sd th.h2 { padding: 4px 4px 6px; line-height: 1.15; }
.p-squad .sd th.h2 b { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-soft); }
.p-squad .sd th.h2 i { display: block; font-style: normal; font-size: 12.5px; font-weight: 600; color: var(--ink-soft); }
.p-squad .sd th.c-m.h2 i, .p-squad .sd th.c-s.h2 i { font-size: 10.5px; font-weight: 400; color: var(--ink-faint); white-space: nowrap; }
.p-squad .sd th.tot.h2 b, .p-squad .sd th.tot.h2 i { color: var(--accent); }
.p-squad .sd th.fut b, .p-squad .sd th.fut i { opacity: .6; }
/* every column of figures is centred under its heading: Paid, Pts Wk, Pts Avg, the Season months, the game weeks and Pts Total */
.p-squad .sd th.c-m, .p-squad .sd td.c-m, .p-squad .sd th.c-s, .p-squad .sd td.c-s,
.p-squad .sd th.c-d, .p-squad .sd td.c-d, .p-squad .sd th.tot, .p-squad .sd td.tot { text-align: center; }
.p-squad .sd th.c-s, .p-squad .sd td.c-s { min-width: 46px; }
.p-squad .sd td.in { font-weight: 600; }
.p-squad .sd td.bn { font-style: italic; color: var(--ink-faint); }
.p-squad .sd td.nil { color: var(--ink-faint); }
/* the pinned Player and Pts Total columns: solid, so the columns that slide under them never show through */
.p-squad .sd th.n, .p-squad .sd td.n { position: sticky; left: 0; z-index: 2; }
.p-squad .sd th.tot, .p-squad .sd td.tot { position: sticky; right: 0; z-index: 2; }
.p-squad .sd .tbl-wrap.scrolls th.n, .p-squad .sd .tbl-wrap.scrolls td.n, .p-squad .sd .tbl-wrap.scrolls th.tot, .p-squad .sd .tbl-wrap.scrolls td.tot { background: var(--sd-solid); }
.p-squad .sd .tbl-wrap.scrolls tr.grp td.n, .p-squad .sd .tbl-wrap.scrolls tr.grp td.tot { background: var(--sd-grp); }
.p-squad .sd table.tbl tr.grp td { padding: 7px 4px; text-align: center; font-size: 12px; font-weight: 600; color: var(--accent); background: rgba(255,255,255,.07); border-top: 1px solid rgba(255,255,255,.26); }
.p-squad .sd table.tbl tr.grp td.n { text-align: left; font-size: 12.5px; color: var(--ink-soft); }
.p-squad .sd table.tbl tr.grp td.tot { font-size: 14px; font-weight: 700; }
.p-squad .sd table.tbl tr.foot td { border-top: 1px solid rgba(255,255,255,.18); font-weight: 600; text-align: center; }
.p-squad .sd table.tbl tr.foot:first-child td { border-top: 2px solid rgba(255,255,255,.3); }
.p-squad .sd table.tbl tr.foot td.n { text-align: left; font-size: 13px; }
.p-squad .sd table.tbl tr.foot td.tot { color: var(--accent); font-weight: 700; }
.p-squad .sd table.tbl tr.foot-b td { font-style: italic; font-weight: 400; color: var(--ink-faint); }
.p-squad .sd table.tbl tr.foot-b td.tot { color: var(--ink-faint); font-weight: 400; }
/* zero-point rows are dimmed with colour, not opacity, because opacity would let the sliding columns show through the pinned ones */
.p-squad .sd table.tbl tr.z td { opacity: 1; color: var(--ink-faint); }
.p-squad .sd table.tbl tr.z td.tot { color: rgba(242,44,247,.62); }
.p-squad .sd table.tbl tr.z td.n small svg, .p-squad .sd table.tbl tr.z .pip { opacity: .6; }
.p-squad .sd table.tbl tr[hidden] { display: none; }
/* controls */
.p-squad .sd .sd-ctrl { position: relative; display: flex; align-items: center; gap: 8px; margin: 0 0 12px; }
.p-squad .sd .sd-ctrl[hidden], .p-squad .sd .sd-menu[hidden] { display: none; }
.p-squad .sd .sd-btn {
  flex: none; min-height: 44px; padding: 0 12px; box-sizing: border-box; cursor: pointer;
  font: 600 15px/1 var(--font); color: #fff; background: var(--sd-solid);
  border: 1px solid rgba(102,229,246,.75); border-radius: 8px;
}
.p-squad .sd .sd-btn[aria-pressed="true"] { background: var(--accent-2); border-color: var(--accent-2); color: #07076b; }
.p-squad .sd .sd-btn:disabled { opacity: .4; cursor: default; }
.p-squad .sd .sd-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.p-squad .sd .sd-arrow { width: 44px; padding: 0; display: grid; place-items: center; }
.p-squad .sd .sd-mo { min-width: 76px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.p-squad .sd .sd-menu {
  position: absolute; z-index: 20; top: 50px; left: 0; right: 0; padding: 10px; box-sizing: border-box;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px;
  border: 1px solid rgba(102,229,246,.75); border-radius: 12px; background: #1c1c86; box-shadow: 0 12px 24px rgba(0,0,10,.55);
}
.p-squad .sd .sd-menu .sd-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 0; line-height: 1.1; }
.p-squad .sd .sd-menu .sd-btn small { font-size: 9.5px; font-weight: 400; }
@media (max-width: 999px) {
  .p-squad .sd .lw { display: none; }
  .p-squad .sd th.c-m.many i { display: none; }
  .p-squad .sd td.c-m.many, .p-squad .sd td.c-m { font-size: 14px; }
  .p-squad .sd[data-view="m"] .c-m { padding-left: 2px; padding-right: 2px; }
}
/* manager (and other person) photos use the 4:5 portrait format of manager_xx_suit_400.jpg (400 x 500) */
.p-squad .pic.person { width: min(100%, 220px); height: auto; aspect-ratio: 4 / 5; }
/* weekly form strips open on the latest week, so the fade belongs on the side with earlier weeks */
.p-squad #form-sec .scroller.at-end { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 26px, #000 100%); mask-image: linear-gradient(90deg, transparent 0, #000 26px, #000 100%); }
.p-squad #form-sec .scroller.at-end:not(.at-start) { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 26px, #000 100%); }
.p-squad #form-sec .scroller.at-start.at-end { -webkit-mask-image: none; mask-image: none; }
.p-squad #form-sec .scroller:not(.at-start):not(.at-end) { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 26px, #000 calc(100% - 26px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 26px, #000 calc(100% - 26px), transparent 100%); }


/* ------------------------------------------------------------------
   4 NOV UPDATE: compact Squad Details and Points (one short line per player, Pos label, Team total under the squad, headings that follow the page),
   shirts on the pitch, kit cards, Transfers accordion, last-top band, readable Career chart that opens on the latest season
------------------------------------------------------------------- */
.p-squad .sd { --sd-head: #10106a; --sd-top: 0px; }
/* headings stay under the site header while you scroll the list; only while the table fits the card (when it scrolls sideways the headings stay put) */
.p-squad .sd .tbl-wrap:not(.scrolls) { overflow: visible; }
.p-squad .sd .tbl-wrap:not(.scrolls) table.tbl thead th { position: sticky; top: var(--sd-top); z-index: 6; background: var(--sd-head); }
.p-squad .sd .tbl-wrap.scrolls table.tbl thead th { background: var(--sd-head); }
.p-squad .sd table.tbl thead th.h2 { padding: 3px 2px 4px; }
.p-squad .sd table.tbl thead th.c-m.h2 i, .p-squad .sd table.tbl thead th.c-s.h2 i { font-size: 9.5px; }
@media (max-width: 389px) { .p-squad .sd table.tbl thead th.c-m.h2 i { display: none; } }    /* the narrowest phones: just W6 W7 ... */
.p-squad .sd table.tbl thead th.n { text-align: left; font-size: 12.5px; color: var(--ink-soft); }
.p-squad .sd table.tbl tbody td { padding: 2px 4px; height: 23px; font-size: 13.5px; line-height: 1.1; }
.p-squad .sd table.tbl tbody td.n { padding-left: 3px; padding-right: 2px; font-size: 13px; }
.p-squad .sd table.tbl tbody td.n small { margin-left: 2px; font-size: 10px; }
.p-squad .sd table.tbl tbody td.c-d, .p-squad .sd table.tbl tbody td.c-s, .p-squad .sd table.tbl tbody td.c-m, .p-squad .sd table.tbl tbody td.tot { padding-left: 2px; padding-right: 2px; }
/* the position label sits in front of the player's name (so it stays pinned with it) */
.p-squad .sd .pos { display: inline-block; width: 18px; margin-right: 3px; text-align: center; font-size: 10.5px; font-weight: 400; letter-spacing: .02em; color: var(--ink-faint); }
/* club badges only where there is room (the page marks the table "sd-wide" when the card is wide enough); the club code always stays */
.p-squad .sd td.n small svg { display: none; }
.p-squad .sd.sd-wide td.n small svg { display: inline-block; width: 11px; height: 13px; margin: 0 3px 0 0; vertical-align: -2px; }
/* Team total, directly under the last player */
.p-squad .sd table.tbl tr.tm td { background: rgba(242,44,247,.16); border-top: 1px solid var(--accent); border-bottom: 1px solid var(--accent); font-weight: 600; color: #fff; }
.p-squad .sd table.tbl tr.tm td.tot { color: var(--accent); font-weight: 700; }
.p-squad .sd .tbl-wrap.scrolls tr.tm td.n, .p-squad .sd .tbl-wrap.scrolls tr.tm td.tot { background: var(--sd-grp); }
/* "Left the squad" label */
.p-squad .sd table.tbl tr.sep td { padding: 3px 6px; height: auto; text-align: left; font-size: 11px; font-weight: 400; color: var(--ink-faint); background: transparent; border-top: 1px solid rgba(255,255,255,.26); }
.p-squad .sd table.tbl th.st, .p-squad .sd table.tbl td.st { padding-left: 2px; padding-right: 0; }
@media (max-width: 599px) { .p-squad .sd th.c-s, .p-squad .sd td.c-s { min-width: 38px; } }
@media (min-width: 1000px) {
  .p-squad .sd table.tbl tbody td { height: 25px; font-size: 14px; }
}

/* shirts on the pitch, with the points on the chest (picture: img/kits/, same shirts as the cup pitch picker) */
.p-squad .pl .disc.sh { position: relative; display: block; width: 56px; height: auto; border: 0; border-radius: 0; background: none; box-shadow: none; font-size: 0; }
.p-squad .pl .disc.sh img { display: block; width: 100%; height: auto; }
.p-squad .pl .disc.sh b { position: absolute; left: 0; right: 0; top: 32%; text-align: center; font-size: 22px; font-weight: 600; line-height: 1; color: #fff; text-shadow: -1px -1px 0 #0b0b45, 1px -1px 0 #0b0b45, -1px 1px 0 #0b0b45, 1px 1px 0 #0b0b45, 0 0 4px rgba(0,0,40,.9); }
@media (min-width: 1000px) {
  .p-squad .pl .disc.sh { width: 64px; }
  .p-squad .pl .disc.sh b { font-size: 24px; }
}

/* the picture on Club, Home kit, Away kit, Sponsor and Club president cards sits in a box the same size as the manager photo, so the captions line up across the row */
.p-squad .scard .pbox { width: min(100%, 220px); aspect-ratio: 4 / 5; margin: 4px auto 10px; display: flex; align-items: center; justify-content: center; }
.p-squad .scard .pbox .pic, .p-squad .scard .pbox .badge { margin: 0; max-width: 100%; }
.p-squad .scard .pbox .pic.kit:not(.ph) { width: 100%; height: auto; max-height: 100%; border-radius: 0; object-fit: contain; }
.p-squad .scard .pbox .pic.logo:not(.ph), .p-squad .scard .pbox .pic.person { width: 100%; height: 100%; }

/* Transfers: newest first, three of each shown, the rest behind a "Show more" row (works without JavaScript) */
.p-squad .transfers .tl-h { margin: 12px 0 2px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); }
.p-squad .transfers .tl-h:first-of-type { margin-top: 4px; }
.p-squad .transfers details.tl-more { margin: 6px 0 0; }
.p-squad .transfers details.tl-more summary { display: flex; align-items: center; justify-content: center; min-height: 44px; box-sizing: border-box; cursor: pointer; list-style: none; font-size: 14px; font-weight: 600; border: 1px solid rgba(255,255,255,.35); border-radius: 10px; }
.p-squad .transfers details.tl-more summary::-webkit-details-marker { display: none; }
.p-squad .transfers details.tl-more .t-less, .p-squad .transfers details.tl-more[open] .t-more { display: none; }
.p-squad .transfers details.tl-more[open] .t-less { display: inline; }
.p-squad .transfers details.tl-more[open] summary { margin-bottom: 2px; }

/* last-top band */
.p-squad .band b[data-count] { font-variant-numeric: tabular-nums; }
.p-squad .band.lead b { display: flex; align-items: center; justify-content: center; min-height: 91px; font-size: clamp(30px, 11vw, 64px); font-weight: 600; letter-spacing: .05em; line-height: 1; }
@media (min-width: 1000px) { .p-squad .band.lead b { min-height: 114px; } }

/* Career finishes: a readable width that scrolls sideways and opens on the latest season; the finish numbers stay in view on the left */
.p-squad .career-row { display: flex; align-items: flex-start; }
.p-squad .career-axis { flex: none; }
.p-squad .career-axis svg { display: block; }
.p-squad .career-row .scroller { flex: 1 1 0; min-width: 0; margin: 0 -16px 0 0; padding: 0 16px 0 2px; }
.p-squad #career-fin .scroller.at-end { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 26px, #000 100%); mask-image: linear-gradient(90deg, transparent 0, #000 26px, #000 100%); }
.p-squad #career-fin .scroller.at-start.at-end { -webkit-mask-image: none; mask-image: none; }
.p-squad #career-fin .scroller:not(.at-start):not(.at-end) { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 26px, #000 calc(100% - 26px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 26px, #000 calc(100% - 26px), transparent 100%); }
.p-squad #career-fin .scroller.at-start:not(.at-end) { -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 26px), transparent 100%); mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 26px), transparent 100%); }

/* bench panel with the extra columns (Pts Wk, Bench TL, Picked TL, Season TL, % Picked): compact rows like Squad Details; the panel keeps its usual look
   (Wk white and semi-bold, Picked TL pink and bold, rows with 0 points this week dimmed). Paid and the club badges are hidden on phones to make room. */
.p-squad .benchtbl.bx th, .p-squad .benchtbl.bx td { padding: 2px 3px; text-align: center; }
.p-squad .benchtbl.bx th.n, .p-squad .benchtbl.bx td.n { text-align: left; }
.p-squad .benchtbl.bx td.pp { text-align: left; width: 26px; padding-left: 2px; }
.p-squad .benchtbl.bx tbody td { height: 25px; font-size: 13.5px; line-height: 1.1; }
.p-squad .benchtbl.bx th.h2 { padding: 3px 2px 4px; line-height: 1.15; vertical-align: bottom; }
.p-squad .benchtbl.bx th.h2 b, .p-squad .benchtbl.bx th.h2 i { display: block; font-style: normal; font-size: 12px; font-weight: 600; color: var(--ink-soft); }
.p-squad .benchtbl.bx td.n small { margin-left: 3px; font-size: 10.5px; }
.p-squad .benchtbl.bx tr.team td { background: rgba(242,44,247,.16); border-top: 1px solid var(--accent); border-bottom: 1px solid var(--accent); }
.p-squad .benchtbl.bx tr.team td.n { font-weight: 600; }
@media (max-width: 699px) {
  .p-squad .benchtbl.bx .pd, .p-squad .benchtbl.bx td.n small svg { display: none; }
}
