/* Staff profile template; factual copy and document references are in HTML. */
.page-profile .breadcrumbs {
  flex-wrap: wrap;
  row-gap: 8px;
}
.profile-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.3fr);
  align-items: center;
  gap: 65px;
  padding: 45px 7%;
  background: var(--gradient-panel);
}
.profile-hero:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("../images/dental-pattern.svg");
  opacity: 0.18;
  mask-image: linear-gradient(90deg, transparent, #000);
}
.profile-hero__photo {
  height: 440px;
  border: 7px solid #ffffffc7;
  background: linear-gradient(145deg, #e7f1ec, #ecf8ff);
  border-radius: 100px 30px 30px 30px;
  overflow: hidden;
}
.profile-hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
}
.profile-hero h1 {
  font-size: clamp(37px, 4vw, 58px);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -1.8px;
  margin: 25px 0;
}
.profile-hero h1 > span {
  display: block;
  font-size: 0.64em;
  letter-spacing: -0.7px;
  margin-top: 7px;
}
.profile-hero__copy > p:not(.eyebrow) {
  font-size: 15px;
  line-height: 1.9;
  color: var(--color-muted);
  max-width: 510px;
}
.profile-hero__actions {
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 27px;
}
.profile-back {
  font-size: 12px;
  font-weight: 600;
  color: #5c859e;
}
.profile-doc-link {
  display: inline-block;
  font-size: 12px;
  color: #6095ad;
  margin-top: 22px;
}
.profile-info {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.3fr);
  gap: 65px;
  padding-top: 60px;
  padding-bottom: 55px;
  scroll-margin-top: 150px;
}
.profile-info h2,
.profile-activity h2,
.profile-documents h2 {
  font-size: clamp(27px, 3vw, 37px);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -1px;
  margin-top: 14px;
}
.profile-biography p {
  font-size: 15px;
  line-height: 1.95;
  color: #607c96;
  margin-bottom: 20px;
}
.profile-biography p:last-child {
  margin-bottom: 0;
}
.profile-pending {
  padding: 27px;
  background: #f1f8fd;
  border: 1px solid #e2eef6;
  border-radius: 24px;
}
.profile-pending h3 {
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 14px;
}
.profile-pending p {
  font-size: 14px;
}
.profile-note {
  font-size: 12px !important;
  color: #889bb0 !important;
}
.profile-activity {
  padding-bottom: 55px;
}
.profile-timeline {
  margin-top: 32px;
}
.profile-timeline__item {
  display: grid;
  grid-template-columns: 125px minmax(0, 1fr);
  gap: 30px;
  border-top: 1px solid #dfedf6;
  padding: 26px 0;
}
.profile-timeline h3 {
  font-size: 17px;
  font-weight: 500;
  color: #2b99c1;
}
.profile-timeline ul {
  margin: 0;
  padding-left: 20px;
}
.profile-timeline li {
  font-size: 14px;
  line-height: 1.9;
  color: #678098;
  margin-bottom: 12px;
}
.profile-timeline li::marker {
  color: #9adbe9;
}
.profile-documents {
  padding-bottom: 60px;
}
.profile-documents__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}
.profile-documents__heading > p {
  font-size: 12px;
  color: var(--color-muted);
}
.profile-documents__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.profile-document {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 12px;
  background: #f2f9fd;
  border: 1px solid #e0edf6;
  border-radius: 22px;
}
.profile-document img {
  width: 100%;
  height: 240px;
  object-fit: contain;
  background: white;
  border-radius: 12px;
}
.profile-document > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  padding: 14px 5px 4px;
  color: #65809b;
}
.profile-document > span > span {
  font-size: 20px;
  color: #29a4c7;
}
.page-profile .service-request {
  margin-bottom: 55px;
}
.page-profile #request-service {
  font-size: 12px;
  text-overflow: ellipsis;
}
.team-profile-photo {
  display: block;
  width: 100%;
  height: 100%;
}
.team-profile-photo > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 23%;
}
.team-profile-photo > .staff-card__photo--melnikov {
  object-fit: contain;
  object-position: center bottom;
}
.team-profile-link {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0 14px 18px;
  font-size: 11px;
  color: #398eb4;
  border-top: 1px solid #dfedf7;
  padding-top: 13px;
}
.doctor-card h3 > a > span,
.staff-card h3 > a > span {
  display: block;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0;
}
.doctor-card__portrait > .team-profile-photo {
  height: 100%;
}
.staff-card__portrait > .team-profile-photo {
  height: 265px;
}
@media (max-width: 1100px) {
  .profile-hero,
  .profile-info {
    gap: 35px;
  }
  .profile-documents__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .staff-card__portrait > .team-profile-photo {
    height: 225px;
  }
}
@media (max-width: 760px) {
  .profile-hero {
    grid-template-columns: minmax(0, 1fr);
    padding: 30px 25px;
    gap: 28px;
  }
  .profile-hero__photo {
    height: 340px;
    max-width: 340px;
    width: 100%;
    justify-self: center;
    border-radius: 65px 25px 25px 25px;
  }
  .profile-hero h1 {
    font-size: 39px;
    letter-spacing: -1px;
  }
  .profile-hero h1 > span {
    font-size: 26px;
    line-height: 1.4;
  }
  .profile-hero .eyebrow {
    font-size: 11px;
  }
  .profile-hero__copy > p:not(.eyebrow) {
    font-size: 14px;
  }
  .profile-hero__actions {
    gap: 18px;
  }
  .profile-info {
    grid-template-columns: 1fr;
    gap: 25px;
    padding-top: 40px;
    padding-bottom: 40px;
  }
  .profile-timeline__item {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 23px 0;
  }
  .profile-timeline li {
    font-size: 13px;
  }
  .profile-documents__heading {
    display: block;
  }
  .profile-documents__heading > p {
    margin-top: 14px;
  }
  .profile-documents__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
  }
  .profile-document {
    padding: 8px;
    border-radius: 17px;
  }
  .profile-document img {
    height: 190px;
  }
  .profile-biography p {
    font-size: 14px;
  }
  .profile-activity,
  .profile-documents {
    padding-bottom: 40px;
  }
  .page-profile .service-request {
    margin-bottom: 40px;
  }
  .doctor-card h3 > a > span,
  .staff-card h3 > a > span {
    font-size: 12px;
  }
  .team-profile-link {
    font-size: 10px;
    margin: 0 10px 15px;
  }
  .staff-card__portrait > .team-profile-photo {
    height: 195px;
  }
}
@media (max-width: 370px) {
  .profile-hero h1 {
    font-size: 34px;
  }
  .profile-hero h1 > span {
    font-size: 23px;
  }
  .profile-hero .button {
    font-size: 11px;
    gap: 10px;
  }
  .profile-hero__photo {
    height: 300px;
  }
  .profile-document img {
    height: 160px;
  }
  .profile-document > span {
    font-size: 10px;
  }
  .staff-card__portrait > .team-profile-photo {
    height: 145px;
  }
}
