/* The home page team cards, on sites whose public input lists a team. Copied to /team-20261130.css.
   New elements only; nothing shipped is restyled. Same grid as activities.css: baseline 24 px below
   1024 and 30 px from 1024; inside a group 1 line, between items 2 lines, between sections 3 lines.
   Columns: the shipped 1080 frame in 2 fields with 32 px gutters (the shipped .details row). */
.team-section {
  --b: 24px;
  --section: calc(var(--b) * 2);
  padding-block: var(--section);
  padding-top: calc(var(--section) - 1px);
  border-top: 1px solid var(--cn-component-header-border);
}
@media (min-width: 1024px) {
  .team-section {
    --b: 30px;
    --section: calc(var(--b) * 3);
  }
}
.team-section h2 {
  margin: 0 0 var(--b);
  line-height: calc(var(--b) * 2);
  line-height: round(up, calc(var(--cn-type-section-title-size) * 0.95), var(--b));
}
.team-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: calc(var(--b) * 2) 32px;
}
/* Card. Source: .activity-card (the shipped plan .card's top rule, a line above the text). */
.team-card {
  display: block;
  padding-top: calc(var(--b) - 1px);
  container-type: inline-size;
}
/* The profile photos are 2:1; the box keeps that shape, rounded to a whole number of lines. */
.team-card-photo {
  display: block;
  width: 100%;
  height: calc(var(--b) * 9);
  height: round(nearest, calc(100cqi * 0.5), var(--b));
  margin-bottom: var(--b);
  object-fit: cover;
}
.team-card h3 {
  margin: 0;
  font-size: var(--cn-type-card-title-size);
  line-height: calc(var(--b) * 2);
  line-height: round(up, calc(var(--cn-type-card-title-size) * 0.95), var(--b));
  font-weight: var(--cn-type-card-title-weight);
}
.team-card .team-role,
.team-card .team-intro {
  margin: 0 0 var(--b);
  line-height: var(--b);
}
.team-card .team-role {
  font-size: var(--cn-type-metadata-size);
  color: var(--cn-text-muted);
}
.team-card .team-intro {
  font-size: var(--cn-type-body-small-size);
}
.team-card .links a {
  min-height: 0;
  height: calc(var(--b) * 2);
  line-height: var(--b);
}
@media (max-width: 767.98px) {
  .team-cards {
    grid-template-columns: 1fr;
  }
}
/* From 1024 the gutter is 2 lines (60 px), so the 1080 frame holds two 510 px fields and the second starts on
   a whole module (570 px): team-20261125.css, 25 November 2026. team-20261114.css keeps the bytes above for
   cached pages. */
@media (min-width: 1024px) {
  .team-cards {
    column-gap: calc(var(--b) * 2);
  }
}
/* One person per row (owner, 30 November 2026): team-20261130.css; team-20261125.css keeps the bytes above for
   cached pages. Below 768 nothing changes (photo above the text). From 768 each card is two fields on the same
   gutters as before (32 px, then 2 lines from 1024): the photo in the left field at the size it had as a two-up card,
   and the name, role, text and link in the right field, starting on the photo's top line. The switch follows the
   viewport, as .team-cards always has: the frame is not wider at 768 than at 767, so a container width cannot mark it. */
@media (min-width: 768px) {
  .team-cards {
    grid-template-columns: 1fr;
  }
  .team-card {
    --gutter: 32px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto auto auto 1fr;
    column-gap: var(--gutter);
    align-content: start;
  }
  .team-card > * {
    grid-column: 2;
  }
  .team-card > .team-card-photo {
    grid-column: 1;
    grid-row: 1 / -1;
    height: round(nearest, calc((100cqi - var(--gutter)) / 4), var(--b));
  }
}
@media (min-width: 1024px) {
  .team-card {
    --gutter: calc(var(--b) * 2);
  }
  /* The widest field (510 px in the 1080 frame) has been 8 lines (240 px) tall since team-20261125.css: Chromium
     rounds its exact half-line tie down there. The cap keeps that size, in every browser; every narrower field is
     8 lines or fewer already. */
  .team-card > .team-card-photo {
    height: min(round(nearest, calc((100cqi - var(--gutter)) / 4), var(--b)), calc(var(--b) * 8));
  }
}
/* The section title and a card title take the band's fixed sizes and lines (site.css). */
.team-section h2 {
  font-size: var(--title-2);
  line-height: var(--title-2-line);
}
.team-card h3 {
  font-size: var(--title-3);
  line-height: var(--title-3-line);
}
