/* Place the people and the details of their stays closer to the first screen. */
body[data-concept="teachers"] .teachers-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: end;
  gap: clamp(1.25rem, 4vw, 3.75rem);
  max-width: none;
  padding-block: clamp(1.625rem, 3vw, 2.5rem) clamp(1.625rem, 3vw, 2.625rem);
}

body[data-concept="teachers"] .teachers-hero h1 {
  max-width: 15ch;
  margin-bottom: 0;
  font-size: clamp(2.5rem, 4.1vw, 4rem);
  overflow-wrap: anywhere;
}

body[data-concept="teachers"] .teachers-hero .eyebrow {
  margin-bottom: .85rem;
}

body[data-concept="teachers"] .teachers-lead p {
  max-width: 43ch;
  margin-bottom: 0;
  line-height: 1.65;
}

body[data-concept="teachers"] .teachers-hero .hero-actions {
  gap: .625rem;
  margin-top: 1rem;
}

body[data-concept="teachers"] .teachers-directory > .teachers-section-intro {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: .65rem 1.5rem;
  align-items: end;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

body[data-concept="teachers"] .teachers-directory > .teachers-section-intro h2 {
  margin: 0;
  font-size: clamp(1.9rem, 3vw, 2.75rem);
}

body[data-concept="teachers"] .teachers-directory > .teachers-section-intro p {
  margin: 0;
  line-height: 1.6;
}

body[data-concept="teachers"] .teachers-filter {
  gap: .75rem;
  align-items: end;
  margin-block: 1rem;
  padding-bottom: .75rem;
}

body[data-concept="teachers"] .teachers-result {
  margin-bottom: 0;
  padding-bottom: .65rem;
}

body[data-concept="teachers"] .teacher-card > a {
  display: flex;
  flex-direction: column;
}

body[data-concept="teachers"] .teacher-card-media {
  position: relative;
  flex: none;
}

body[data-concept="teachers"] .teacher-card-cover {
  width: 100%;
  height: auto;
  aspect-ratio: 1.85;
}

body[data-concept="teachers"] .teacher-card[data-post-id="9938"] .teacher-card-cover {
  object-position: 50% 47%;
}

body[data-concept="teachers"] .teacher-card-photo-label {
  position: absolute;
  top: .7rem;
  left: .7rem;
  max-width: calc(100% - 1.4rem);
  padding: .25rem .55rem;
  border-radius: 7px;
  background: #fffffff2;
  color: var(--navy);
  font-size: .75rem;
  font-weight: 650;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

body[data-concept="teachers"] .teacher-card-portrait {
  top: -2.45rem;
  width: 4.7rem;
  height: 4.7rem;
}

body[data-concept="teachers"] .teacher-card-body {
  flex: 1;
  min-height: 0;
}

body[data-concept="teachers"] .teacher-card-location {
  min-height: 0;
  margin-bottom: .85rem;
}

body[data-concept="teachers"] .teacher-card-facts {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem .85rem;
  margin: 0 0 1rem;
  padding: .75rem 0;
  border-block: 1px solid var(--line);
}

body[data-concept="teachers"] .teacher-card-facts > div {
  flex: 1 1 8rem;
  min-width: 0;
}

body[data-concept="teachers"] .teacher-card-facts dt {
  color: var(--navy);
  font-size: .75rem;
  font-weight: 700;
}

body[data-concept="teachers"] .teacher-card-facts dd {
  margin: .25rem 0 0;
  color: var(--text);
  font-size: .875rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

html[data-reading-contrast="high"] body[data-concept="teachers"] .teacher-card-photo-label {
  background: #fff !important;
}

@media (max-width: 900px) {
  body[data-concept="teachers"] .teachers-hero {
    grid-template-columns: 1fr;
    gap: .85rem;
  }

  body[data-concept="teachers"] .teachers-hero h1 {
    max-width: 18ch;
  }
}

@media (max-width: 740px) {
  body[data-concept="teachers"] .teachers-breadcrumb {
    padding-top: .75rem;
  }

  body[data-concept="teachers"] .teachers-hero {
    padding-block: 1rem 1.5rem;
  }

  body[data-concept="teachers"] .teachers-hero h1 {
    font-size: clamp(2rem, 8.7vw, 3rem);
  }

  body[data-concept="teachers"] .teachers-directory > .teachers-section-intro {
    grid-template-columns: 1fr;
    gap: .5rem;
    padding-top: 1rem;
  }

  body[data-concept="teachers"] .teachers-filter {
    align-items: stretch;
  }

  body[data-concept="teachers"] .teachers-result {
    padding-bottom: 0;
  }
}
