/* Detailed biographies remain readable in the page. Shared tracks align meaning,
   while each row grows to fit its longest text, with no clipping or JS sizing. */
.team-profile-heading h3 { margin-bottom: 0; }
.team-profile-heading { margin-bottom: 18px; }
.team-role-fact strong { font-weight: 500; color: var(--blue); }
#person-ulyana > .team-photo { object-position: center bottom; }
#person-kristina > .team-photo { object-position: center top; }
.team-bio-section { min-width: 0; padding-top: 22px; }
.team-bio-section h4 { margin: 0 0 10px; font-size: 14px; }
.team-bio-section p + p { margin-top: 10px; }
.team-bio-section blockquote { margin-bottom: 14px; }
.team-interviews .team-card-body { display: flex; flex-direction: column; }
.team-interviews .team-profile-link { margin-top: auto; padding-top: 22px; }
.team-interviews .team-card { display: flex; flex-direction: column; }
.team-interviews .team-card-body { flex: 1; }

@supports (grid-template-rows: subgrid) {
  @media (min-width: 521px) {
    .team-detailed { row-gap: 0; }
    .team-detailed .team-card {
      display: grid;
      grid-row: span 9;
      grid-template-rows: subgrid;
      margin-bottom: 24px;
    }
    .team-detailed .team-card > :first-child {
      grid-row: 1;
      width: 100%;
      height: 100%;
      object-fit: cover;
      min-height: 0;
    }
    .team-detailed .team-card-body { grid-row: 2 / span 8; min-width: 0; }
    .team-detailed .team-tutor .team-card-body {
      display: grid;
      grid-template-rows: subgrid;
      align-items: start;
    }
    .team-detailed .team-profile-heading { grid-row: 1; margin: 0; padding-bottom: 18px; }
    .team-detailed .team-favorite { grid-row: 2; margin: 0 0 18px; }
    .team-detailed .team-summary { grid-row: 3; margin: 0 0 18px; }
    .team-detailed .team-card-body > .tags { grid-row: 4; margin: 0 0 24px; align-self: start; }
    .team-detailed .team-bio {
      display: grid;
      grid-row: 5 / span 4;
      grid-template-rows: subgrid;
      align-items: start;
      margin: 0;
      padding: 0;
    }
    .team-detailed .team-bio-section { height: 100%; padding-bottom: 2px; }
  }
}

@media (max-width: 520px) {
  .team-detailed .team-bio { padding-top: 0; }
}
