/* =============================================================================
   Squad — the 2026 Terrace board 4 (#59): the team sheet pitch, then the
   starting seven and the replacements as purple cards. The coaching cards
   are .ntc-people in club.css.
   ========================================================================== */

.ntc-sec--teamsheet .ntc-sec__inner,
.ntc-sec--starters .ntc-sec__inner,
.ntc-sec--bench .ntc-sec__inner { padding-block: 120px; }

/* --- The pitch ------------------------------------------------------------ */
/* Shirt centres are the board's, as a share of the pitch: 1280 x 560 at
   desktop, 350 x 460 on a phone (the phone board draws a narrower V). */
.ntc-pitch {
  --shirt: 88px;
  position: relative;
  height: 560px;
  margin-top: 64px;
  background: var(--color-ink-raised);
  overflow: hidden;
}
.ntc-pitch__line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-line);
}
.ntc-pitch__line--try { top: 6%; }
.ntc-pitch__line--22 { top: 50%; }
.ntc-pitch__line span {
  position: absolute;
  top: 8px;
  left: 12px;
  font-size: 13px;
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text);
}
.ntc-pitch__shirts { margin: 0; padding: 0; list-style: none; }
.ntc-pitch__slot {
  position: absolute;
  left: var(--x);
  top: var(--y);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 160px;
  transform: translate(-50%, calc(var(--shirt) / -2));
}
.ntc-pitch__slot--1 { --x: 38%; --y: 22%; }
.ntc-pitch__slot--2 { --x: 50%; --y: 22%; }
.ntc-pitch__slot--3 { --x: 62%; --y: 22%; }
.ntc-pitch__slot--4 { --x: 50%; --y: 42%; }
.ntc-pitch__slot--5 { --x: 38%; --y: 60%; }
.ntc-pitch__slot--6 { --x: 24%; --y: 72%; }
.ntc-pitch__slot--7 { --x: 10%; --y: 86%; }
.ntc-pitch__shirt {
  display: grid;
  place-items: center;
  width: var(--shirt);
  height: var(--shirt);
  border-radius: 50%;
  background: var(--color-secondary);
  font-family: var(--font-display);
  font-size: 40px;
  line-height: 1;
  color: var(--color-white);
  text-decoration: none;
  transition: background-color 160ms ease-out, color 160ms ease-out;
}
html .ntc-pitch__shirt { color: var(--color-white); }
.ntc-pitch__shirt:hover,
.ntc-pitch__shirt:focus-visible { background: var(--color-accent-base); color: var(--color-text-on-light); }
.ntc-pitch__pos {
  font-size: 16px;
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-white);
  white-space: nowrap;
}

/* --- Squad cards ---------------------------------------------------------- */
.ntc-pcards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px 24px;
  margin: 64px 0 0;
  padding: 0;
  list-style: none;
}
.ntc-pcard {
  display: flex;
  flex-direction: column;
  min-height: 420px;
  padding: 24px;
  background: var(--color-secondary);
  scroll-margin-top: calc(var(--wp-admin--admin-bar--height, 0px) + 96px);
}
.ntc-pcard:target { outline: 3px solid var(--color-accent-base); outline-offset: 4px; }
.ntc-pcard__pos {
  margin: 0;
  font-size: 16px;
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent-base);
}
.ntc-pcard__num {
  margin: auto 0;
  font-family: var(--font-display);
  font-size: 200px;
  line-height: 0.9;
  color: var(--color-white);
}
.ntc-pcard__name { display: flex; flex-direction: column; gap: 4px; }
html .ntc-pcard__player {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 32px;
  line-height: 1.5;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--color-white);
}
.ntc-pcard__apps { margin: 0; font-size: 16px; color: #C9BCE0; }
html .ntc-ltitle--m2 { font-size: 72px; line-height: 0.92; }

@media (max-width: 1199px) {
  .ntc-pcard__num { font-size: 160px; }
}

@media (max-width: 1023px) {
  .ntc-sec--teamsheet .ntc-sec__inner,
  .ntc-sec--starters .ntc-sec__inner,
  .ntc-sec--bench .ntc-sec__inner { padding-block: 64px; }
  .ntc-sec--starters .ntc-lhead,
  .ntc-sec--bench .ntc-lhead { align-items: center; text-align: center; }
  html .ntc-ltitle--m2 { font-size: 40px; }

  .ntc-pitch { --shirt: 56px; height: 460px; max-width: 560px; margin: 32px auto 0; }
  .ntc-pitch__line span { top: 6px; }
  .ntc-pitch__slot { width: 96px; gap: 4px; }
  .ntc-pitch__slot--1 { --x: 28%; --y: 20%; }
  .ntc-pitch__slot--2 { --x: 50%; --y: 20%; }
  .ntc-pitch__slot--3 { --x: 72%; --y: 20%; }
  .ntc-pitch__slot--4 { --x: 50%; --y: 41%; }
  .ntc-pitch__slot--5 { --x: 32%; --y: 56%; }
  .ntc-pitch__slot--6 { --x: 20%; --y: 72%; }
  .ntc-pitch__slot--7 { --x: 14%; --y: 88%; }
  .ntc-pitch__shirt { font-size: 28px; }
  .ntc-pitch__pos { font-size: 13px; }

  .ntc-pcards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 32px; }
  .ntc-pcard { min-height: 250px; padding: 16px; }
  /* An odd last card sits centred under the pair, as the phone board draws it. */
  .ntc-pcards > :last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 6px); }
  .ntc-pcard__pos { font-size: 13px; }
  .ntc-pcard__num { font-size: 104px; }
  html .ntc-pcard__player { font-size: 17px; }
  .ntc-pcard__apps { font-size: 13px; }
}
