.com-team {
  /* Variables */
  --vert-padding: 6rem;
  --member-gap: 16px;
  --member-min-width: 280px;
  --member-radius: 12px;
  --member-padding: 1.5rem;
  --member-background: hsl(0 0% 96% / 1);
  --contact-spacing: 0.5rem;
  @media (width < 768px) {
    --vert-padding: 4.5rem;
    --member-gap: 32px;
  }
}

.intro {
  --margin-if-last-child: 3rem;
  h1 { margin-top: 0; font-size: 4rem; color: hsl(0 0% 80% / 1); }
  h1, h2, h3 {
    &:last-child { margin-bottom: var(--margin-if-last-child); }
  }
  p {
    max-width: 1100px;
    &:last-child { margin-bottom: var(--margin-if-last-child); }
  }
  @media (width < 768px) {
    h1 { font-size: 2.4rem; }
  }
}

.com-team {
  padding: var(--vert-padding) 0;
  & ~ & { border-top: 1px solid hsl(0 0% 80% / 1); }
}

.com-team-inner {
  max-width: var(--mobile-content-max-width);
  margin-inline: auto;
}

.team-members {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--member-min-width), 1fr));
  gap: var(--member-gap);
  margin: var(--section-gap) 0;
}

.team-member {
  background: var(--member-background);
  border-radius: var(--member-radius);
  padding: var(--member-padding);
  box-shadow: 0 1px 3px hsl(0 0% 0% / 0.08);
  @media (width < 768px) { margin-bottom: 0; }
}

.team-member-inner {}
.team-member-image-frame {}
.team-member-image {}
.team-member-info {}
.team-member-name {
  margin-top: 0;
  @media (width < 768px) { font-size: 1.1rem; }
}
.team-member-title {}
.team-member-department {}
.team-member-bio-link {
  display: inline-block;
  margin: 0.5rem 0 0;
  padding: 0.3rem 0.75rem;
  background: none;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: var(--color-link, currentColor);
  font: inherit;
  font-size: 0.8em;
  text-decoration: none;
  cursor: pointer;
  &:hover { opacity: 0.7; }
}

.team-bio-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: hsl(0 0% 0% / 0.5);
  z-index: 1000;
  padding: 1.5rem;
  &[hidden] { display: none; }
}

.team-bio-modal-inner {
  position: relative;
  background: #fff;
  border-radius: 12px;
  padding: 2.5rem;
  max-width: 640px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
}

.team-bio-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: hsl(0 0% 50%);
  padding: 0.25rem 0.5rem;
  &:hover { color: hsl(0 0% 20%); }
}

.team-bio-modal-name {
  margin: 0 0 1rem;
  font-size: 1.4rem;
}

.team-bio-modal-body {
  white-space: pre-wrap;
  line-height: 1.6;
}

.team-member-contact {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid hsl(0 0% 0% / 0.1);
}
.team-member-contact-heading {
  margin: 0 0 0.25rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: hsl(0 0% 50%);
}
.team-member-email, .team-member-phone {
  a { text-decoration: none; }
}
.team-member-email {}
.team-member-phone {}
.team-member-contact a {}
.team-member-contact a:hover {}

/* /\* Responsive adjustments *\/ */
/* @media (max-width: 768px) { */
/*   .team-members { */
/*     grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); */
/*     --member-gap: 20px; */
/*   } */
/*   .team-member-name { */
/*     font-size: 1.1rem; */
/*   } */
/* } */

/* @media (max-width: 480px) { */
/*   .team-members { */
/*     grid-template-columns: 1fr; */
/*   } */
/* } */
