/* One authoritative profile layout for every doctor page. */
body.page-doctor-profile .profile-hero > .container,
body.page-doctor-profile main > .profile-hero > .container,
body.page-doctor-profile .profile-content {
  width: min(1080px, calc(100% - 48px)) !important;
  max-width: 1080px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}

body.page-doctor-profile .profile-hero-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 390px) !important;
  gap: 48px !important;
  align-items: center !important;
}

body.page-doctor-profile .profile-content {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 330px) !important;
  gap: 48px !important;
  align-items: start !important;
}

body.page-doctor-profile .profile-hero-grid > *,
body.page-doctor-profile .profile-content > * {
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

body.page-doctor-profile .profile-content h2,
body.page-doctor-profile .profile-content h3,
body.page-doctor-profile .profile-content p {
  max-width: 100% !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  text-align: left !important;
  hyphens: none !important;
}

body.page-doctor-profile .profile-content p {
  line-height: 1.72 !important;
}

body.page-doctor-profile .profile-facts {
  width: 100% !important;
  margin: 0 !important;
  padding: 30px !important;
  align-self: start !important;
  box-sizing: border-box !important;
}

body.page-doctor-profile .profile-facts .btn {
  width: 100% !important;
  max-width: 100% !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  white-space: normal !important;
  text-align: center !important;
}

body.page-doctor-profile .profile-personal-callout {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

@media (max-width: 1100px) {
  body.page-doctor-profile .profile-hero > .container,
  body.page-doctor-profile main > .profile-hero > .container,
  body.page-doctor-profile .profile-content {
    width: min(760px, calc(100% - 40px)) !important;
  }

  body.page-doctor-profile .profile-hero-grid,
  body.page-doctor-profile .profile-content {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 34px !important;
  }

  body.page-doctor-profile .profile-hero-grid > img {
    width: min(100%, 520px) !important;
    margin: 0 auto !important;
  }
}

@media (max-width: 620px) {
  body.page-doctor-profile .profile-hero > .container,
  body.page-doctor-profile main > .profile-hero > .container,
  body.page-doctor-profile .profile-content {
    width: calc(100% - 28px) !important;
  }

  body.page-doctor-profile .profile-facts {
    padding: 24px 20px !important;
  }
}
