/* Team Members grid: [upstream_team] (includes/team.php). Mirrors the original Elementor team layout. */
.upstream-team {
  --up-team-text: #0a0a0a;
  --up-team-role: #626262;
  --up-team-accent: #179ad6;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 20px;
  row-gap: 56px;
  margin: 0;
  padding: 0;
}

.upstream-team__member {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  text-align: center;
}

.upstream-team .upstream-team__name {
  margin: 0;
  padding: 0;
  color: #000;
  font-size: 25px;
  font-weight: 700;
  line-height: 1;
}

.upstream-team .upstream-team__role {
  margin: 7px 0 0;
  padding: 0;
  /* Same system font stack as the theme headings (the original role line was an h4). */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  color: var(--up-team-role);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 2.4px;
  text-transform: uppercase;
}

.upstream-team__photo {
  width: 100%;
  max-width: 360px;
  margin: 20px auto 20px;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.upstream-team__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  border-radius: 0; /* cut-out portraits on white: keep square like the original */
  box-shadow: none;
}

.upstream-team__photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: #f1f2f3;
  color: #9a9c9e;
  font-size: 64px;
  font-weight: 700;
}

.upstream-team .upstream-team__contact {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 16px;
  line-height: 1.68;
}

.upstream-team .upstream-team__contact li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.upstream-team .upstream-team__contact a,
.upstream-team .upstream-team__contact li > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  color: var(--up-team-text);
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color var(--up-ease, .2s ease);
}

.upstream-team .upstream-team__contact a:hover,
.upstream-team .upstream-team__contact a:focus-visible {
  color: var(--up-team-accent);
}

.upstream-team__icon {
  display: inline-flex;
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
}

.upstream-team__icon svg {
  width: 100%;
  height: 100%;
}

@media (max-width: 1024px) {
  .upstream-team {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 40px;
  }
}

@media (max-width: 767px) {
  .upstream-team {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 44px;
  }
  .upstream-team .upstream-team__name {
    font-size: 23px;
  }
}
