/* Styling for the team page, alumni page and person pages */

/* Team cards: centred */
.grid > div {
  text-align: center;
}

/* Links on the team cards: grey, and blue on hover (theme colours) */
.grid a {
  color: var(--bs-secondary-color);
  text-decoration: none;
}

.grid a:hover,
.grid a:hover .person-name {
  color: var(--bs-primary);
}

/* Circular photo */
.team-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  display: block;
}

/* Placeholder for people without a photo */
.team-photo-missing {
  background: var(--bs-secondary-bg);
  color: var(--bs-tertiary-color);
  font-size: 90px;
  line-height: 180px;
}

/* Phones: smaller photos (two cards per row, set in people.ejs) */
@media (max-width: 767.98px) {
  .team-photo {
    width: 120px;
    height: 120px;
  }

  .team-photo-missing {
    font-size: 60px;
    line-height: 120px;
  }
}

/* Name on team cards */
.person-name {
  font-weight: bold;
  color: var(--bs-body-color);
}

.person-links a {
  margin: 0 0.15em;
}

/* Person pages: the header is generated by person.lua, so hide Quarto's own title */
#title-block-header:has(~ .person-header) {
  display: none;
}

/* Space between the header and the bio text */
.person-header {
  margin-bottom: 2.5em;
}

.person-header .about-image {
  width: 180px;
  height: 180px;
  object-fit: cover;
}

/* Alumni table */
.alumni-table {
  font-size: 0.9em;
}

/* Quarto makes tables on wide (full-layout) pages white; use the page background instead */
.page-columns .column-page .alumni-table {
  background: transparent;
}

/* Keep names, positions and dates on one line; only "Moved on to" wraps */
.alumni-table .alumni-nowrap {
  white-space: nowrap;
}
