/* Language and overseas education labels for team pages only. */
.staff-language{display:inline-flex;flex-wrap:wrap;align-items:baseline;gap:.2rem .47rem;max-width:100%;margin:.35rem 0 .6rem;padding:.23rem .62rem;border:1px solid #e5cbb9;border-radius:.65rem;background:#faf0e8;color:#603b29;font-size:.875rem;line-height:1.42}
.staff-language strong{font-weight:750}
.staff-language span{overflow-wrap:anywhere}
.staff-language--native{background:#f5dfcc;border-color:#d6ab8b}
.staff-language--therapy{background:#f7f3ef;border-color:#e5d7ce}
.profile-top .staff-language{margin-top:.45rem}
.profile-international{margin:0 0 1rem;padding:.8rem 1rem;border-left:.22rem solid #ad6242;border-radius:0 .55rem .55rem 0;background:#faf0e8;color:#59392b}
.profile-international strong{display:block;font-size:.85rem;letter-spacing:.06em}
.profile-international p{margin:.2rem 0 0}

/* Keep archive card actions on the same row and level across each grid row. */
.staff-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(17.5rem, 100%), 1fr));
}

.staff-grid .staff-card {
  container: team-card / inline-size;
  display: flex;
  flex-direction: column;
}

.staff-grid .staff-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.staff-grid .staff-actions {
  display: flex;
  align-items: center;
  gap: .45rem;
  margin-top: auto;
  min-height: 4.25rem;
}

@container team-card (min-width: 21rem) {
  .staff-grid .staff-actions { min-height: 0; }
}

.staff-grid .staff-actions .staff-language {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: .82rem;
}

body main .staff-grid .staff-actions a.text-link:not(.button):not([href^="tel:"]) {
  flex: none;
  white-space: nowrap;
  padding-inline: .7rem;
}
