/* Copyright (c) 2026 Brownie, LLC. All rights reserved. */

/*
 * The program view on the Team page: a program's schools, teams, people,
 * invitations and settings. Builds on the shared parts in team.css.
 */

.program-summary p {
  margin: 0;
}

.program-name {
  font-size: 2rem;
  overflow-wrap: anywhere;
}

/* The text side of a row: its title, any badge, and details under them. */
.program-item-text {
  display: grid;
  gap: 2px;
  min-width: 0;
  flex: 1 1 200px;
}

.program-item-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  overflow-wrap: anywhere;
}

.badge.is-retired {
  background: var(--color-retired-soft);
  color: var(--color-retired);
}

/* A school's name over its teams, with a link to its roster beside it. */
.program-school-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
  margin-top: 8px;
}

.program-school-heading h3 {
  margin: 0;
}

/* "Rename" or "Change": a collapsed form taking the row's full width when open. */
.program-change {
  flex: 1 1 100%;
}

.program-change > summary {
  list-style: none;
  width: fit-content;
  cursor: pointer;
}

.program-change > summary::-webkit-details-marker {
  display: none;
}

.program-change[open] > summary {
  margin-bottom: 8px;
}

.team-form .program-wide-field {
  flex-basis: 100%;
}

.team-form .form-field[hidden] {
  display: none;
}

.team-section a.button {
  text-decoration: none;
}

/* The note above the first team's fields takes the whole row. */
.add-team-help {
  flex-basis: 100%;
  margin: 0;
}
