/* Matches: scoreboard, line-up, events, clock and timeline. */

.pitch-outline {
  height: 162px;
}

.pitch-outline:before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  border-left: 1px solid #9fba6a48;
}

.pitch-center {
  position: absolute;
  width: 61px;
  height: 61px;
  border: 1px solid #9fba6a48;
  border-radius: 50%;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
}

.pitch-box {
  position: absolute;
  top: 30%;
  height: 40%;
  width: 15%;
  border: 1px solid #9fba6a48;
}

.pitch-box.left {
  left: -1px;
}

.pitch-box.right {
  right: -1px;
}

.stats.three {
  grid-template-columns: repeat(3,1fr);
}

.match-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 22px;
}

/* Games list: the Upcoming / Finished tabs and the team filter share one row
   above the games, which are grouped under a heading per month. */
.match-filters {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin: 22px 0 6px;
  border-bottom: 1px solid var(--line);
}

.match-filters .tabs {
  gap: 24px;
  margin: 0;
  border-bottom: 0;
}

.match-filters .toolbar {
  margin: 0 0 8px;
}

.match-month {
  margin: 26px 0 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.match-editor-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.toolbar-actions form {
  margin: 0;
}

/* Deleting a game can't be undone, so its button reads as a warning. */
.btn.danger {
  color: #b42318;
}

@media (max-width: 640px) {
  .match-editor-toolbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

.scoreboard {
  background: #214d37;
  padding: 22px 30px;
}

.scoreboard-meta {
  gap: 15px;
  font-size: 10px;
  color: #b6c79e;
}

.score-line {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 15px;
  margin: 27px 0 22px;
}

.score-line>div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 32%;
  text-align: center;
  gap: 10px;
}

.score-line>strong {
  font-size: 46px;
}

.score-line>strong span {
  padding: 0 18px;
}

.scoreboard>p {
  font-size: 10px;
  color: #aebf98;
}

.match-work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.event-panel {
  padding: 0 23px 25px;
}

.event-panel .panel-head {
  padding: 22px 0;
}

/* The visible match clock: big enough to read at arm's length on the
   touchline, yellow edge while it runs, orange time in added time. */
.match-clock {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  margin-bottom: 12px;
  padding: 14px 16px;
  background: #f0f3fb;
  border-left: 4px solid transparent;
  border-radius: 4px;
}

.match-clock.is-running {
  border-left-color: var(--yellow);
}

.match-clock-face {
  display: flex;
  flex-direction: column;
}

.match-clock-half {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.match-clock-time {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: 52px;
  line-height: 1;
  color: var(--navy-deep);
  font-variant-numeric: tabular-nums;
}

.match-clock.is-added-time .match-clock-time {
  color: var(--orange);
}

.match-clock-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.clock-control {
  padding: 15px;
}

.clock-control label {
  font-size: 11px;
}

.clock-control label>span {
  font-size: 24px;
}

/* Six columns: the two goals share the first row at the same size, the
   substitution and the two cards share the second. */
.event-buttons {
  display: grid;
  grid-template-columns: repeat(6,1fr);
  gap: 8px;
  margin: 25px 0;
}

/* "Own goal", under the two goal buttons: a checkbox beside its text. */
.own-goal-toggle {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  margin: -12px 0 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}

.own-goal-toggle input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.own-goal-toggle[hidden] {
  display: none;
}

.timeline {
  padding: 5px 22px;
}

.timeline-event>div {
  flex: 1;
}

.lineup {
  padding-bottom: 10px;
}

.lineup-row {
  gap: 15px;
  padding: 13px 22px;
}

.lineup-row strong {
  font-size: 12px;
  font-weight: 500;
  flex: 1;
}

.lineup-row input {
  width: 60px;
}

.finalized h3 {
  font-size: 22px;
  margin: 20px;
}

.finalized svg {
  margin: auto;
}

.pitch-outline:before,
.pitch-center,
.pitch-box {
  border-color: #c9d7ff69;
}

.player-dot {
  display: flex;
  position: absolute;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 600;
  background: var(--yellow);
  border: 3px solid #203ba9;
  color: #1b2e69;
  box-shadow: 0 6px 10px #10215c44;
  font-size: 9px;
  width: 30px;
  height: 30px;
}

.ball {
  position: absolute;
  left: 56%;
  top: 24%;
  font-size: 24px;
  color: #fff;
}

.pitch-note {
  font-size: 7px;
  line-height: 1.8;
  position: absolute;
  text-align: right;
  color: #dbe3ff;
  font-weight: 700;
  letter-spacing: 2px;
  bottom: -4px;
  right: 17px;
}

.scoreboard {
  color: #fff;
  background: var(--blue-deep);
  border-radius: 5px;
  border-bottom: 4px solid var(--yellow);
}

.scoreboard-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #c7d5ff;
}

.score-line>div>svg {
  color: var(--yellow);
}

.score-line h2 {
  font-size: 15px;
  color: #fff;
  font-weight: 700;
}

.score-line small {
  font-size: 9px;
  color: #afc3ff;
}

.score-line>strong span {
  color: #879edf;
}

.scoreboard>p {
  text-align: center;
  color: #b4c8ff;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 4px #3457d4;
}

.clock-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #f0f3fb;
  border-radius: 4px;
}

.clock-control input {
  width: 57px;
  text-align: center;
  font-size: 22px;
  background: transparent;
  padding: 4px;
  border: 0;
  border-bottom: 1px solid #d3dec3;
  color: #244391;
  border-color: #c5d3f2;
  font-weight: 750;
}

.timeline-event {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 0;
  border-bottom: 1px solid #eef1e7;
  border-color: #e5ebf6;
}

.minute {
  font-size: 12px;
  width: 28px;
  color: var(--blue);
  font-weight: 750;
}

.event-symbol {
  font-size: 19px;
  color: var(--blue);
}

.timeline-event strong {
  display: block;
  font-size: 11px;
  color: #324d77;
  font-weight: 650;
}

.timeline-event small {
  display: block;
  font-size: 10px;
  line-height: 1.5;
  margin-top: 6px;
  color: #8398bb;
}

.finish-area {
  padding: 23px;
  border-top: 1px solid var(--line);
  border-color: #e0e7f4;
}

.lineup-row {
  display: flex;
  align-items: center;
  border-top: 1px solid var(--line);
  border-color: #e0e7f4;
}

.jersey {
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  border-radius: 4px;
  color: #667eaa;
  background: #e8eefb;
}

.jersey.chosen {
  background: var(--blue);
  color: var(--yellow);
  font-weight: 750;
}

.finalized {
  text-align: center;
  padding: 25px;
  color: var(--blue);
}

.finalized p {
  font-size: 12px;
  line-height: 1.8;
  margin-bottom: 25px;
  color: #7b8fb2;
}

.lineup-row>strong {
  flex: 1;
}

.lineup-row>select {
  width: 115px;
  padding: 10px;
  font-size: 11px;
}

.lineup-row .jersey {
  flex-shrink: 0;
}

.event-choice {
  margin: 0;
  cursor: pointer;
  grid-column: span 2;
}

.event-goal,
.event-opponent-goal {
  grid-column: span 3;
}

.event-choice>input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.event-choice>span {
  border: 1px solid #dce4f4;
  color: #5d7aab;
  border-radius: 5px;
  font-weight: 650;
  padding: 15px 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-direction: column;
  min-height: 80px;
  font-size: 10px;
}

.event-choice>input:checked+span {
  background: #edf2ff;
  border-color: var(--blue);
  color: var(--blue);
  box-shadow: inset 0 0 0 1px var(--blue);
}

.event-choice>input:focus-visible+span {
  outline: 3px solid #4567ec;
}

/* The opponent's goal must never be mistaken for ours: a dashed border, and
   dark navy instead of the club's blue when chosen. */
.event-opponent-goal>span {
  border-style: dashed;
  color: var(--muted);
}

.event-opponent-goal>input:checked+span {
  background: #e9ebf1;
  border-style: solid;
  border-color: var(--navy-deep);
  color: var(--navy-deep);
  box-shadow: inset 0 0 0 1px var(--navy-deep);
}

.event-panel form {
  margin-top: 0;
}

.clock-control label {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.lineup form {
  margin: 0;
}

.lineup .small {
  line-height: 1.7;
  margin-top: 7px;
}

@media (min-width: 1600px) {
  .pitch-outline {
    height: 180px;
  }
}

@media (max-width: 1200px) {
  .match-grid {
    grid-template-columns: repeat(2,1fr);
  }
}

@media (max-width: 960px) {
  .match-filters {
    flex-direction: column;
    align-items: stretch;
  }

  .match-filters .toolbar>select {
    flex: 1;
  }

  .match-work-grid {
    grid-template-columns: 1fr;
  }

  .stats.three {
    grid-template-columns: repeat(3,1fr);
  }

  .stats.three .stat>strong {
    font-size: 22px;
  }

  .stats.three .stat>div {
    font-size: 9px;
  }
}

@media (max-width: 700px) {
  .stats.three {
    grid-template-columns: 1fr 1fr;
  }

  .stats.three .stat:last-child {
    grid-column: 1/-1;
  }

  .stats.three .stat:last-child>strong {
    display: inline-block;
    margin-right: 20px;
  }

  .scoreboard {
    padding: 19px 15px;
  }

  .scoreboard-meta {
    font-size: 8px;
    gap: 8px;
  }

  .score-line {
    gap: 5px;
  }

  .score-line>strong {
    font-size: 36px;
  }

  .score-line>strong span {
    padding: 0 8px;
  }

  .scoreboard>p {
    font-size: 8px;
  }

  .match-work-grid {
    gap: 17px;
  }

  .event-panel {
    padding: 0 18px 22px;
  }

  .lineup-row {
    padding: 14px;
    gap: 10px;
  }

  .lineup-row input {
    width: 48px;
  }

  .clock-control {
    padding: 12px;
  }

  .event-panel .btn.full {
    padding: 16px;
  }

  .stats.three .stat>strong {
    font-size: 25px;
  }

  .lineup-row strong {
    font-size: 12px;
  }

  .score-line h2 {
    line-height: 1.5;
    font-size: 12px;
  }

  .event-panel label {
    font-size: 12px;
  }

  .lineup-row>select {
    width: 95px;
    font-size: 11px;
  }

  .lineup-row>strong {
    font-size: 11px;
  }

  .event-choice>span {
    font-size: 11px;
    min-height: 85px;
  }

  .event-panel select {
    padding: 15px 12px;
    font-size: 14px;
  }

  .event-panel input[type=submit] {
    font-size: 13px;
    padding: 17px;
  }
}

/* Overrides: these must come after the breakpoints above. */

.pitch-outline {
  width: 100%;
  border: 1px solid #9fba6a48;
  position: relative;
  border-color: #c9d7ff69;
  border-radius: 2px;
  transform: perspective(700px) rotateX(12deg) rotateZ(-12deg);
  box-shadow: none;
  height: 173px;
}

.score-line>strong {
  letter-spacing: -2px;
  white-space: nowrap;
  font-weight: 850;
  font-style: italic;
  color: var(--yellow);
  font-size: 52px;
}

.lineup-row input {
  text-align: center;
  font-size: 12px;
  width: 60px;
}

@media (max-width: 700px) {
  .score-line>strong {
    font-size: 40px;
  }

  .lineup-row input {
    padding: 9px 4px;
    width: 45px;
  }
}

/* CSV games import: the preview table, where each row can be fixed or left out. */

.import-summary {
  margin: 0 0 16px;
  color: var(--muted);
}

.import-table td {
  padding: 10px 8px;
  vertical-align: top;
}

.import-table input[type=text] {
  width: 120px;
  padding: 7px 9px;
  font-size: 12px;
}

.import-table tr.has-problem {
  background: #fff8e6;
}

.field-problem {
  display: block;
  max-width: 160px;
  margin-top: 5px;
  white-space: normal;
  font-size: 10px;
  color: #a2482c;
}

.import-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

/* Where the game is played: the venue card under the scoreboard, with the
   map beside the details, stacked on narrow screens. Without a position
   there's no map, so the details take the whole card. */
.venue-card {
  display: grid;
  grid-template-columns: minmax(0, 640px) minmax(0, 1fr);
  margin-top: 14px;
  overflow: hidden;
}

.venue-map {
  position: relative;
  margin: 0;
  background: var(--blue-deep);
  line-height: 0;
}

.venue-card.no-map {
  grid-template-columns: minmax(0, 1fr);
}

.venue-map img,
.venue-pending {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 640 / 240;
  object-fit: cover;
}

/* While the map is being drawn: a quiet street-grid pattern, not a fake map. */
.venue-pending {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.4;
  background-color: #eef1f7;
  background-image:
    linear-gradient(#dde3ee 1px, transparent 1px),
    linear-gradient(90deg, #dde3ee 1px, transparent 1px);
  background-size: 32px 32px;
}

.venue-pending span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff;
  font-size: 12px;
  color: var(--muted);
}

.venue-map figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  padding: 3px 7px;
  line-height: 1.4;
  font-size: 10px;
  background: rgba(255, 255, 255, .85);
  border-top-left-radius: 4px;
}

.venue-map figcaption a {
  color: var(--ink);
}

.venue-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  border-top: 4px solid var(--yellow);
}

.venue-text {
  min-width: 0;
}

.venue-text .eyebrow {
  color: var(--blue);
  margin-bottom: 6px;
}

.venue-text h2 {
  font-size: 17px;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.venue-address {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}

.venue-note {
  margin-top: 8px;
}

/* The map apps: three equal buttons in one row, so the map keeps its room.
   Narrower than the row needs, they stack instead: the basis turns huge below
   that width, so it's all three in a row or one per line, never two and one. */
.venue-links {
  display: flex;
  flex-wrap: wrap;
  flex-shrink: 0;
  gap: 8px;
}

.venue-links .btn {
  display: inline-flex;
  flex: 1 1 calc((320px - 100%) * 999);
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: auto;
  color: var(--blue-deep);
}

@media (min-width: 901px) {
  .venue-body {
    border-top: 0;
    border-left: 4px solid var(--yellow);
  }

  .venue-card.no-map .venue-body {
    flex-direction: row;
    align-items: center;
  }

  /* Beside the name the row takes only the room its buttons need. */
  .venue-card.no-map .venue-links .btn {
    flex-basis: auto;
  }
}

@media (max-width: 900px) {
  .venue-card {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .venue-map img,
  .venue-pending {
    aspect-ratio: 16 / 10;
  }

  .venue-body {
    padding: 16px;
  }

  /* On phones the icon sits over the name, so the row fits a 375px screen. */
  .venue-links .btn {
    flex-basis: calc((250px - 100%) * 999);
    flex-direction: column;
    gap: 4px;
  }
}

.venue-credit {
  margin-left: 6px;
  font-size: 10px;
  color: var(--muted);
}

/* With families recording live, staff keep the form folded away to correct. */
.staff-events summary {
  cursor: pointer;
  padding: 0 22px 18px;
  font-weight: 700;
  color: var(--blue);
}

/* A parent's match sheet: the events and the timeline, nothing else. */
.reporter-sheet .scoreboard p {
  margin-top: 8px;
}

/* Call-up as a pitch (experiment): formation picker, tappable positions and the squad beside it. */
.lp-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 22px 14px;
}

.lp-formation {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
}

.lp-formation select {
  width: auto;
}

.lp-layout {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 22px;
  padding: 0 22px 18px;
}

.lp-pitch {
  position: relative;
  aspect-ratio: 68 / 90;
  border-radius: 14px;
  overflow: hidden;
  background: repeating-linear-gradient(180deg, #1f3aa8 0 10%, #2442b6 10% 20%);
}

.lp-lines span {
  position: absolute;
  border: 2px solid #c9d7ff69;
}

.lp-half {
  left: 4%;
  right: 4%;
  top: 50%;
  border-width: 2px 0 0 !important;
}

.lp-circle {
  left: 50%;
  top: 50%;
  width: 26%;
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.lp-box {
  left: 26%;
  right: 26%;
  height: 14%;
}

.lp-box.top {
  top: 0;
  border-top: 0 !important;
}

.lp-box.bottom {
  bottom: 0;
  border-bottom: 0 !important;
}

.lp-slot {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 0;
  border: 0;
  background: none;
  transform: translate(-50%, -50%);
  cursor: pointer;
  color: #fff;
}

.lp-slot b {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px dashed #c9d7ffaa;
  font-size: 10px;
  font-weight: 700;
  color: #dbe3ff;
}

.lp-slot.filled b {
  font-size: 15px;
}

.lp-pos {
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: .3px;
}

.lp-slot .lp-pos {
  position: absolute;
  top: -9px;
  left: 50%;
  padding: 1px 4px;
  border-radius: 4px;
  background: var(--navy-deep);
  color: #fff;
  font-size: 9px;
  transform: translateX(-50%);
}

.lp-choice .lp-pos {
  margin-left: auto;
  color: var(--muted);
}

.lp-picker h3 .lp-pos {
  font-size: 16px;
  color: var(--blue);
}

.lp-lead {
  max-width: 62ch;
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.5;
}

.lp-slot.filled b {
  border: 3px solid #203ba9;
  background: var(--yellow);
  color: var(--navy-deep);
  font-family: var(--display);
  font-style: italic;
}

.lp-slot.filled.keeper b {
  background: #fff;
}

.lp-slot span {
  max-width: 76px;
  overflow: hidden;
  font-size: 10px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lp-slot:focus-visible b {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
}

.lp-slot:disabled {
  cursor: default;
}

.lp-squad h3,
.lp-group summary {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
}

.lp-group + .lp-group {
  margin-top: 18px;
}

.lp-group summary {
  padding: 6px 0;
  cursor: pointer;
}

.lp-player {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.lp-player strong {
  flex: 1;
  font-size: 13px;
  font-weight: 500;
}

.lp-player .lp-number {
  width: 56px;
}

.lp-player select {
  width: auto;
}

.lp-where {
  min-width: 30px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
}

.lp-player.on-pitch strong {
  font-weight: 700;
}

.lp-picker {
  width: min(420px, calc(100vw - 32px));
  padding: 20px;
  border: 0;
  border-radius: 14px;
}

.lp-picker h3 {
  margin: 0 0 12px;
  font-size: 16px;
}

.lp-choices {
  display: grid;
  gap: 6px;
  max-height: 50vh;
  overflow: auto;
}

.lp-choice {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.lp-choice b {
  width: 28px;
  text-align: center;
}

.lp-choice.placed {
  opacity: .6;
}

.lp-picker-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
}

/* Under the score: how to get there and the formation, side by side, the
   venue first when they stack. The venue's map moves between its name and
   its map buttons here; elsewhere the venue card keeps its own layout. */
.match-overview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.match-overview .panel {
  margin-top: 0;
}

.venue-heading {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
}

.match-overview .venue-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px 22px;
  border-top: 4px solid var(--yellow);
}

.match-overview .venue-body {
  display: contents;
}

.match-overview .venue-heading { order: 0; }
.match-overview .venue-text { order: 1; }
.match-overview .venue-map { order: 2; flex: 1; min-height: 180px; border-radius: 8px; overflow: hidden; }

.match-overview .venue-map img,
.match-overview .venue-pending {
  height: 100%;
  aspect-ratio: auto;
}
.match-overview .venue-links { order: 3; }

.formation-card {
  padding: 20px 22px;
  border-top: 4px solid var(--yellow);
}

.formation-card h2 {
  margin-bottom: 14px;
  font-family: var(--display);
  font-size: 26px;
  font-style: italic;
  color: var(--ink);
}

.formation-pitch {
  width: min(100%, 300px);
  margin: 0 auto;
  print-color-adjust: exact;
  -webkit-print-color-adjust: exact;
}

.formation-pitch .lp-slot {
  cursor: default;
}

.bench-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
}

.bench-chips .eyebrow {
  margin-right: 4px;
}

.bench-chip {
  display: grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  padding: 0 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
}

.match-recording {
  margin-top: 4px;
  font-size: 12px;
}

.match-recording a {
  color: var(--yellow);
  font-weight: 700;
}

.delegate-sheet .formation-pitch {
  margin-bottom: 16px;
}

@media (max-width: 900px) {
  .match-overview {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Phones: the pitch on top, and the player picker as a sheet from the bottom. */
@media (max-width: 760px) {
  .lp-layout {
    grid-template-columns: 1fr;
    padding: 0 14px 14px;
  }

  .lp-toolbar {
    padding: 0 14px 12px;
  }

  .lp-player .lp-number {
    width: 50px;
    padding: 8px 6px;
    text-align: center;
  }

  .lp-player select {
    max-width: 112px;
  }

  .lp-picker {
    width: 100%;
    max-width: 100%;
    max-height: 85vh;
    margin: auto 0 0;
    padding: 18px 16px calc(16px + env(safe-area-inset-bottom));
    border-radius: 16px 16px 0 0;
  }

  .lp-choices {
    max-height: 60vh;
  }

  .lp-choice {
    padding: 12px 10px;
  }
}
