/*
 * The page 'Conducere și echipă' (M2-TEAM): the tab nav under the head and the people's cards as description lists. The head,
 * the warm band, the side card and the publication line are institution.css's. Values come from tokens.css; this file holds
 * no colour and no font size of its own.
 */

/* The head of a page with no switch (the programmes) is left-aligned as the prototype's team page; the head of a page with the switch
   is centred (components.css .section-head) and its tab nav sits under the switch, its tabs from the start */
.team-head:not(.section-head) {
  align-items: stretch;
  text-align: left;
}

.team-head h1 {
  max-width: none;
}

.team-head .lead {
  max-width: var(--size-44rem);
}

.team-head:not(.section-head) .lead {
  margin-bottom: var(--spacing-32);
}

.team-intro {
  margin-bottom: var(--spacing-24);
}

.team-unit + .team-unit {
  margin-top: var(--spacing-32);
}

.team-unit h3 {
  margin-bottom: var(--spacing-12);
  font-size: var(--font-size-20);
  line-height: var(--line-height-28);
  font-weight: var(--font-weight-medium);
}

.person-list {
  display: grid;
  gap: var(--spacing-24);
  margin: 0;
  padding: 0;
  list-style: none;
}

/* The fields of a person: two columns where the card has room, one on a phone; a long e-mail breaks rather than scrolls */
.person-fields {
  display: grid;
  gap: var(--spacing-12) var(--spacing-24);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--size-14rem)), 1fr));
  overflow-wrap: anywhere;
}

.person-fields .field-row {
  margin: 0;
  padding-bottom: var(--spacing-12);
  border-bottom: var(--border-width-1) solid var(--color-border);
}

.person-fields dt {
  color: var(--color-text-secondary);
  font-weight: var(--font-weight-regular);
}

.person-fields dd {
  font-size: var(--font-size-16);
  line-height: var(--line-height-24);
  font-weight: var(--font-weight-medium);
}

.person-fields .person-appointment {
  grid-column: 1 / -1;
}

.person-acts {
  margin: var(--spacing-4) 0 0;
  padding: 0;
  list-style: none;
}

.person-act-meta {
  color: var(--color-text-secondary);
  font-weight: var(--font-weight-regular);
}
