/* Team bio page (single-team.php): small photo beside name/title/contact, bio underneath */

/* post_class() adds "team", and the old theme's components.css has `.team { margin: -25.5px -15px 0 !important }`,
   which pulled the bio off the column's gutter (flush to the screen edge on phones). */
.team-single.team {
  margin: 0 !important;
}
.team-single-header {
  display: grid;
  grid-template-columns: minmax(140px, 220px) 1fr;
  gap: var(--space-l);
  align-items: start;
  margin-bottom: var(--space-l);
}

.team-single-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
}

.team-single-info .team-single-name {
  margin: 0 0 var(--space-3xs);
}

.team-single-info .team-job-title {
  margin: 0 0 var(--space-s);
  font-weight: 600;
}

.team-single-info .team-contact {
  list-style: none;
  margin: 0 0 var(--space-s);
  padding: 0;
}

.team-single-info .team-contact li + li {
  margin-top: var(--space-3xs);
}

.team-single-info .team-contact a {
  color: var(--dark);
}

.team-single-info .team-contact a:hover {
  color: var(--orange);
}

/* Social icons: reverse of the footer (dark circles + white icon on the light page) */
.team-single-info .team-social {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xs);
  list-style: none;
  margin: 0;
  padding: 0;
}

.team-single-info .team-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--dark);
  color: var(--white);
  font-size: 15px;
  transition: background-color .2s;
}

.team-single-info .team-social a i {
  color: var(--white);
}

.team-single-info .team-social a:hover,
.team-single-info .team-social a:focus-visible {
  background-color: var(--orange);
}

.team-single-info .team-property-types {
  margin: var(--space-s) 0 0;
}

/* Phones: photo stacks above the info, kept modest */
@media (max-width: 575px) {
  .team-single-header {
    grid-template-columns: 1fr;
  }

  .team-single-photo {
    max-width: 220px;
  }
}
