/* Personal match rows and the affiliated club selector. */
.league-public-fixture.league-personal-fixture,
.league-public-playoff-match.league-personal-fixture {
  border-left: 4px solid #12624d;
  border-top-color: #c4ddd1;
  padding-inline: 14px;
  background: #eaf5ed;
  color: #101d21;
}

.league-personal-fixture .league-book-court {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  border: 1px solid #12624d;
  border-radius: 4px;
  background: #12624d;
  color: #fff;
  font: 800 11px/1.3 var(--sans);
  text-align: center;
  text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease;
}

.league-personal-fixture .league-book-court:hover {
  border-color: #0c4839;
  background: #0c4839;
  color: #fff;
}

.league-personal-fixture .league-book-court:focus-visible,
.league-booking-dialog a:focus-visible,
.league-booking-dialog button:focus-visible {
  outline: 3px solid #238a69;
  outline-offset: 3px;
}

.league-public-playoff-match.league-personal-fixture > header {
  align-items: center;
}

.league-booking-dialog {
  box-sizing: border-box;
  width: min(600px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 28px;
  overflow-y: auto;
  border: 1px solid #dce5e0;
  border-top: 5px solid #d8ff54;
  border-radius: 8px;
  background: #f3f6f4;
  color: #101d21;
  box-shadow: 0 24px 80px #0c171b40;
  font-family: var(--sans);
}

.league-booking-dialog::backdrop {
  background: #0c171ba6;
}

.league-booking-dialog:not([open]) {
  display: none;
}

.league-booking-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.league-booking-header .eyebrow {
  margin: 0 0 8px;
  color: #12624d;
  font-size: 10px;
}

.league-booking-header h2 {
  margin: 0;
  color: #101d21;
  font: 400 clamp(30px, 6vw, 40px)/1.15 var(--serif);
  text-transform: uppercase;
}

.league-booking-close {
  display: inline-flex;
  flex: none;
  width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid #c5d5cd;
  border-radius: 4px;
  background: #fff;
  color: #101d21;
  font: 400 28px/1 var(--sans);
  cursor: pointer;
}

.league-booking-close:hover {
  background: #e5eee8;
}

.league-booking-dialog #league-booking-description {
  margin: 18px 0 0;
  color: #465e55;
  font-size: 14px;
  line-height: 1.6;
}

.league-booking-dialog .league-booking-match {
  margin: 14px 0 0;
  padding: 10px 12px;
  border-left: 3px solid #12624d;
  background: #e4eee7;
  color: #12624d;
  font-size: 12px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.league-booking-dialog .league-booking-match:empty {
  display: none;
}

.league-booking-clubs {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.league-booking-club {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 20px;
  padding: 20px;
  border: 1px solid #c5d5cd;
  border-radius: 4px;
  background: #fff;
  color: #101d21;
  text-decoration: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.league-booking-club:hover {
  border-color: #12624d;
  color: #101d21;
  box-shadow: 0 3px 12px #12624d12;
}

.league-booking-club img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.league-booking-club > span {
  display: grid;
  min-width: 0;
  gap: 9px;
}

.league-booking-club strong {
  font-size: 15px;
  line-height: 1.4;
}

.league-booking-club small {
  color: #12624d;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.5;
}

.league-booking-dialog .league-booking-note {
  margin: 18px 0 0;
  color: #596b68;
  font-size: 11px;
  line-height: 1.6;
}

@media (max-width: 700px) {
  .league-personal-fixture--bookable .league-public-pair {
    grid-template-columns: minmax(0, 1fr) 96px minmax(0, 1fr);
    gap: 8px;
  }

  .league-personal-fixture .league-book-court {
    padding-inline: 8px;
  }

}

@media (max-width: 440px) {
  .league-public-fixture.league-personal-fixture,
  .league-public-playoff-match.league-personal-fixture {
    padding-inline: 10px;
  }

  .league-booking-dialog {
    padding: 22px 18px;
  }

  .league-booking-club {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 20px;
  }

  .league-booking-club img {
    max-width: 280px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .league-personal-fixture .league-book-court,
  .league-booking-club {
    transition: none;
  }
}
