/* Our team + team member pages — Figma: Catalog — Doctors › "01 Our doctors (dark)", "01b Management team (dark)",
   "03 Doctor detail (dark)". Dark page; text on the 120px gutter at 1440, eyebrows and intros 20px in from headings. */
body.team-page {
  background: #000;
  color: #fff;
}
.tm,
.tmd {
  --tm-muted: #aeb6bd;
  --tm-dim: #6e7880;
  --tm-line: #262d33;
  --tm-orange: #f58220;
  --tm-link: #ffb35c;
}

/* ---- List ---- */
.tm-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 72px var(--gutter) 40px;
}
.tm-eyebrow,
.tmd-eyebrow {
  margin: 0;
  padding-left: 20px;
  font-size: var(--fs-eyebrow);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--tm-orange);
}
.tm-title,
.tmd-name {
  margin: 0;
  font-size: var(--fs-heading-xl);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: #fff;
} /* PCLI/Heading XL */
.tm-intro {
  margin: 0;
  max-width: 720px;
  padding-left: 20px;
  font-size: 18px;
  line-height: 1.55;
  color: var(--tm-muted);
}

.tm-filters {
  display: flex;
  align-items: flex-end;
  gap: 28px;
  padding: 0 var(--gutter);
}
.tm-tabs {
  display: flex;
  gap: 28px;
  flex: 1;
  min-width: 0;
  border-bottom: 1px solid var(--tm-line);
}
.tm-tab {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 8px 4px 12px;
  margin-bottom: -1px;
  border-bottom: 2px solid transparent;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--tm-muted);
  text-decoration: none;
  white-space: nowrap;
}
.tm-tab span {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--tm-dim);
}
.tm-tab:hover {
  color: #fff;
}
.tm-tab.is-on {
  font-weight: 600;
  color: #fff;
  border-bottom-color: #00abc7;
}
.tm-filter {
  flex: 0 0 240px;
  padding-bottom: 12px;
}

.tm-body {
  padding: 48px var(--gutter) 120px;
}
.tm-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 48px 40px;
  margin: 0;
  padding: 0 20px;
  list-style: none;
}
.tm-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #fff;
  text-decoration: none;
}
.tm-card__photo {
  display: block;
  aspect-ratio: 3/4;
  margin-bottom: 10px;
  border-radius: 12px;
  overflow: hidden;
  background: #1b2126;
}
.tm-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.tm-card:hover .tm-card__photo img {
  transform: scale(1.03);
}
.tm-card__name {
  padding: 0 4px;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.tm-card:hover .tm-card__name {
  color: var(--tm-link);
}
.tm-card__role {
  padding: 0 4px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--tm-muted);
}
.tm-card__where {
  padding: 0 4px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--tm-orange);
}
.tm-none {
  margin: 0;
  padding: 0 20px;
  color: var(--tm-muted);
}

/* ---- Member page: portrait column (400) + content (770), 30px apart ---- */
.tmd {
  display: grid;
  grid-template-columns: 400px minmax(0, 1fr);
  column-gap: 30px;
  align-items: start;
  padding: 48px var(--gutter) 120px;
}
.tmd-side {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
/* Figma: a 1px rule on the right of the photo column, the full height of the page content */
@media (min-width: 901px) {
  .tmd-side {
    align-self: stretch;
    border-right: 1px solid #cfcdc7;
  }
}
.tmd-back {
  margin: 0;
}
.tmd-back a {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--tm-link);
  text-decoration: none;
}
.tmd-back a:hover {
  text-decoration: underline;
}
.tmd-photo {
  position: relative;
  aspect-ratio: 399/632;
  border-radius: 16px;
  overflow: hidden;
  background: #1b2126;
}
/* Figma (1379:815): the whole portrait, fitted to the column's width (no crop), on black, with the fades below */
.tmd-photo {
  aspect-ratio: 399/536;
  background: #000;
}
.tmd-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
/* Figma: black fades top (0–30%) and bottom (84–100%), and from the left edge to 28.5% */
.tmd-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0) 30.3%, rgba(0, 0, 0, 0) 84.1%, #000 100%),
    linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0) 28.5%);
}
.tmd-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 40px;
} /* eyebrow sits 40px below the top of the back link */
.tmd-sections {
  display: flex;
  flex-direction: column;
  gap: 37px;
}
.tmd-lead {
  margin: 0;
  padding: 0 20px;
  font-size: 18px;
  line-height: 1.55;
  color: var(--tm-muted);
}
.tmd-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0 20px;
}
.tmd-block__h {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
}
.tmd-prose {
  font-size: 16px;
  line-height: 1.65;
  color: #fff;
}
.tmd-profile {
  max-width: 619px;
}
.tmd-profile__h {
  padding-bottom: 17px;
  border-bottom: 1px solid #dddbd6;
}
.tmd-rows {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
}
.tmd-rows div {
  display: flex;
  gap: 24px;
  padding: 4px 10px;
}
.tmd-rows dt {
  flex: 0 0 200px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--tm-muted);
}
.tmd-rows dd {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: #fff;
}

/* ---- Narrower screens ---- */
@media (max-width: 1100px) {
  .tm-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .tmd {
    grid-template-columns: 320px minmax(0, 1fr);
  }
}
@media (max-width: 900px) {
  .tm-filters {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 16px;
  }
  .tm-filter {
    flex: none;
    max-width: 320px;
    padding-bottom: 0;
  }
  .tm-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 20px;
  }
  .tmd {
    grid-template-columns: 1fr;
    row-gap: 24px;
  }
  .tmd-main {
    padding-top: 0;
  }
}
/* Phones — Figma: Catalog — Doctors › "04 Our team · Mobile (dark)" and "05 Doctor detail · Mobile (dark)" */
@media (max-width: 720px) {
  .tm-head {
    padding: 40px var(--gutter) 28px;
  }
  .tm-eyebrow,
  .tmd-eyebrow {
    font-size: 12px;
  }
  .tm-eyebrow,
  .tm-intro,
  .tmd-eyebrow,
  .tmd-lead,
  .tmd-block {
    padding-left: 0;
    padding-right: 0;
  }
  .tm-intro {
    font-size: 16px;
    line-height: 1.6;
  }
  .tm-filters {
    gap: 16px;
  }
  .tm-filter {
    max-width: none;
    margin: 0 20px;
  }
  .tm-tabs {
    gap: 20px;
    margin: 0 calc(-1 * var(--gutter));
    padding: 0 var(--gutter);
    overflow-x: auto;
    scrollbar-width: none;
  } /* three tabs scroll sideways on phones */
  .tm-tabs::-webkit-scrollbar {
    display: none;
  }
  .tm-tabs {
    border-bottom: 0;
    box-shadow: inset 0 -1px var(--tm-line);
  } /* a scrolling row clips the tab underline, so the rule is drawn inside */
  .tm-tab {
    margin-bottom: 0;
  }
  .tm-body {
    padding: 24px var(--gutter) 56px;
  }
  .tm-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 0 40px;
  } /* cards 60px from the screen edge, so the photos don't fill the phone */
  .tm-card__name {
    font-size: 19px;
  }
  .tm-card__photo {
    aspect-ratio: 270/338;
  } /* Figma: 270 × 338 at phone width */
  .tmd {
    row-gap: 0;
    padding: 24px var(--gutter) 56px;
  }
  .tmd-side {
    gap: 16px;
  }
  .tmd-photo {
    margin: 0 calc(-1 * var(--gutter));
    border-radius: 0;
    aspect-ratio: 390/486;
  }
  .tmd-photo img {
    object-fit: cover;
    object-position: center top;
  }
  .tmd-main {
    gap: 16px;
    padding-top: 0;
  }
  .tmd-sections {
    gap: 32px;
  }
  .tmd-profile {
    max-width: none;
  }
  .tmd-rows {
    padding: 0 10px;
  } /* rows 10px in under the heading's rule */
  .tmd-rows div {
    flex-direction: column;
    gap: 2px;
    padding: 0;
  }
  .tmd-rows dt {
    flex: none;
  }
}

/* "+" on each photo: the card opens the person's page. Figma: Location / More badge (same as the location pages) */
.tm-card__photo {
  position: relative;
}
.tm-card__more {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid #e4e2dd;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
  color: #ff9706;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}
.tm-card:hover .tm-card__more,
.tm-card:focus-visible .tm-card__more {
  border-color: transparent;
  background: #ff8c00;
  color: #000;
}
