.doctor-profile,
.doctor-profile * {
  box-sizing: border-box;
}

.doctor-profile {
  color: #252a30;
  background: #fff;
}

.doctor-shell {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: 22px 0 72px;
}

.doctor-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  color: #7a828b;
  font-size: 13px;
  line-height: 1.6;
}

.doctor-breadcrumb a {
  color: #59636d;
}

.doctor-breadcrumb span {
  color: #b3b8bd;
}

.doctor-hero {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr) 340px;
  grid-template-areas: "portrait identity verification";
  gap: 36px;
  align-items: stretch;
  padding: 38px;
  border-top: 1px solid #dfe4e8;
  border-bottom: 1px solid #dfe4e8;
  background: #f4f6f7;
}

.doctor-identity {
  grid-area: identity;
  align-self: center;
  min-width: 0;
  padding: 10px 0;
}

.doctor-eyebrow,
.doctor-section-heading > p,
.doctor-verification-head > p {
  margin: 0 0 9px;
  color: #38836d;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.doctor-identity h1 {
  margin: 0;
  color: #20252a;
  font-size: 38px;
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: 0;
}

.doctor-identity h1 small {
  display: block;
  margin-top: 8px;
  color: #68717a;
  font-size: 19px;
  line-height: 1.4;
  font-weight: 500;
}

.doctor-identity-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 22px 0 20px;
}

.doctor-identity-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 5px 13px;
  border: 1px solid #3b3992;
  border-radius: 4px;
  color: #3b3992;
  background: #fff;
  font-size: 14px;
  line-height: 1.4;
}

.doctor-identity-meta strong {
  color: #343a40;
  font-size: 15px;
  line-height: 1.6;
  font-weight: 650;
}

.doctor-summary {
  max-width: 580px;
  color: #505963;
  font-size: 15px;
  line-height: 1.95;
}

.doctor-schedule {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 12px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #d9dee2;
  font-size: 14px;
  line-height: 1.7;
}

.doctor-schedule span {
  color: #747d86;
}

.doctor-schedule p {
  margin: 0;
  color: #30363c;
  font-weight: 600;
}

.doctor-portrait {
  grid-area: portrait;
  position: relative;
  align-self: stretch;
  min-height: 420px;
  margin: 0;
  overflow: hidden;
  border-radius: 6px;
  background: #e7eaec;
}

.doctor-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  object-position: center top;
}

.doctor-verification {
  grid-area: verification;
  min-width: 0;
  padding: 24px;
  border: 1px solid #d9dee3;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(27, 37, 46, .06);
}

.doctor-verification-head {
  padding-bottom: 15px;
  border-bottom: 1px solid #e3e7ea;
}

.doctor-verification-head h2,
.doctor-section-heading h2,
.doctor-content-aside h2 {
  margin: 0;
  color: #24292f;
  font-weight: 700;
  letter-spacing: 0;
}

.doctor-verification-head h2 {
  font-size: 23px;
  line-height: 1.35;
}

.doctor-verification dl {
  margin: 7px 0 0;
}

.doctor-verification-row {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #edf0f2;
}

.doctor-verification-row dt,
.doctor-verification-row dd {
  min-width: 0;
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
}

.doctor-verification-row dt {
  color: #7a838c;
  font-weight: 500;
}

.doctor-verification-row dd {
  color: #2c3238;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.doctor-verification-row dd small {
  color: #59636c;
  font-size: 12px;
  font-weight: 500;
}

.doctor-verification-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  margin-top: 18px;
  padding: 10px 16px;
  border: 1px solid #3b3992;
  border-radius: 4px;
  color: #fff;
  background: #3b3992;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 650;
  text-align: center;
  transition: background-color .2s ease, border-color .2s ease;
}

.doctor-verification-link:hover {
  color: #fff;
  border-color: #29276f;
  background: #29276f;
}

.doctor-verification-note {
  margin: 13px 0 0;
  color: #7a838c;
  font-size: 12px;
  line-height: 1.75;
}

.doctor-specialty {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 44px;
  padding: 46px 38px;
  border-bottom: 1px solid #e3e7ea;
}

.doctor-section-heading h2 {
  font-size: 27px;
  line-height: 1.35;
}

.doctor-specialty-text {
  color: #444d56;
  font-size: 16px;
  line-height: 2;
}

.doctor-content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 64px;
  align-items: start;
  padding: 54px 38px 0;
}

.doctor-career {
  min-width: 0;
}

.doctor-career > .doctor-section-heading {
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid #e0e4e7;
}

.doctor-richtext {
  color: #444d56;
  font-size: 16px;
  line-height: 1.95;
  overflow-wrap: anywhere;
}

.doctor-richtext p {
  margin: 0 0 12px;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

.doctor-richtext strong {
  color: #252b31;
  font-weight: 700;
}

.doctor-richtext img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 20px auto;
  border-radius: 6px;
}

.doctor-content-aside {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 28px;
  padding-left: 24px;
  border-left: 1px solid #dfe4e7;
}

.doctor-content-aside section {
  padding-bottom: 24px;
  border-bottom: 1px solid #e6eaed;
}

.doctor-content-aside section:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.doctor-content-aside h2 {
  margin-bottom: 10px;
  font-size: 17px;
  line-height: 1.5;
}

.doctor-content-aside p,
.doctor-content-aside a {
  font-size: 13px;
  line-height: 1.8;
}

.doctor-content-aside p {
  margin: 0 0 10px;
  color: #68717a;
}

.doctor-content-aside a {
  color: #3b3992;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 1080px) {
  .doctor-shell {
    width: min(960px, calc(100% - 40px));
  }

  .doctor-hero {
    grid-template-columns: 270px minmax(0, 1fr);
    grid-template-areas:
      "portrait identity"
      "verification verification";
    gap: 30px;
  }

  .doctor-portrait,
  .doctor-portrait img {
    min-height: 380px;
  }

  .doctor-verification dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 28px;
  }

  .doctor-content-layout {
    gap: 40px;
  }
}

@media (max-width: 720px) {
  .doctor-shell {
    width: calc(100% - 28px);
    padding: 14px 0 48px;
  }

  .doctor-breadcrumb {
    margin-bottom: 14px;
    font-size: 12px;
  }

  .doctor-hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "identity"
      "portrait"
      "verification";
    gap: 22px;
    padding: 24px 18px;
  }

  .doctor-identity {
    padding: 0;
  }

  .doctor-identity h1 {
    font-size: 29px;
    line-height: 1.22;
  }

  .doctor-identity h1 small {
    margin-top: 5px;
    font-size: 17px;
  }

  .doctor-identity-meta {
    display: grid;
    justify-items: start;
    margin: 17px 0 16px;
  }

  .doctor-summary {
    max-height: 11.7em;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.95;
  }

  .doctor-portrait {
    width: 100%;
    min-height: 0;
    aspect-ratio: 4 / 5;
  }

  .doctor-portrait img {
    min-height: 0;
    aspect-ratio: 4 / 5;
    object-fit: cover;
  }

  .doctor-verification {
    padding: 19px 16px;
    box-shadow: none;
  }

  .doctor-verification dl {
    display: block;
  }

  .doctor-verification-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 3px;
    padding: 10px 0;
  }

  .doctor-verification-row dt,
  .doctor-verification-row dd {
    font-size: 13px;
  }

  .doctor-specialty {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    padding: 36px 18px;
  }

  .doctor-section-heading h2 {
    font-size: 24px;
  }

  .doctor-specialty-text,
  .doctor-richtext {
    font-size: 15px;
    line-height: 1.95;
  }

  .doctor-content-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 38px;
    padding: 40px 18px 0;
  }

  .doctor-content-aside {
    position: static;
    gap: 22px;
    padding: 24px 0 0;
    border-top: 1px solid #dfe4e7;
    border-left: 0;
  }

  .doctor-richtext img {
    width: 100%;
  }
}
