/* Family view for guardians. */

.family-athlete {
  display: flex;
  gap: 13px;
  align-items: center;
  padding: 25px 0;
}

.family-athlete p {
  font-size: 11px;
  margin-top: 6px;
  color: #7c8eaa;
}

.family-card {
  padding: 25px;
  margin-bottom: 25px;
}

.family-card h3 {
  margin: 25px 0 12px;
  font-size: 14px;
}

/* "I've paid" under the charges table: the same 15px as a .helper line. */
.family-claim {
  margin-top: 15px;
}

/* Upcoming games: each opens to its venue card; the next one starts open. */
.family-game > summary {
  flex-wrap: wrap;
  gap: 8px 20px;
  cursor: pointer;
  list-style: none;
}

.family-game > summary::-webkit-details-marker {
  display: none;
}

.family-game > summary span:nth-child(2) {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.family-game-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--blue);
  font-weight: 650;
}

.family-game[open] .family-game-toggle {
  color: var(--muted);
}

.family-game .venue-card {
  margin: 4px 0 16px;
}

@media (max-width: 700px) {
  .family-card {
    padding: 18px;
  }
}

/* The family shop: one card per item on sale, each with its own order form. */

.family-shop h2 {
  font-size: 18px;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.shop-card {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 5px;
}

.shop-card small {
  display: block;
  color: #8496b1;
  font-size: 10px;
}

.shop-image {
  width: 100%;
  max-height: 160px;
  object-fit: cover;
  border-radius: 4px;
}

.shop-price {
  font-weight: 700;
}

/* Day headings and the postponed line in a child's games coming up. */
.family-day {
  margin: 14px 0 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
  text-transform: uppercase;
}

.family-postponed {
  margin-top: 12px;
  color: var(--muted);
  font-size: 11px;
}
