/* ==========================================================================
   Clinician profile page
   Loads after service-page.css and inherits every token from .asp-root.
   Only the profile-specific layout lives here.
   ========================================================================== */

/* ----------------------------------------------------------------- hero -- */

.asp-profile .asp-pr-hero {
  /* Dark band, exactly like .asp-banner on the service pages. The site header
     floats over the hero with a white logo and white menu, so anything pale
     here makes both disappear. */
  background: var(--grad-band);
  background-color: var(--blue-700);
  margin-top: calc(-1 * var(--asp-header-h, 104px));
  padding: calc(var(--asp-header-h, 104px) + 72px) 0 80px;
  color: var(--white);
  overflow: hidden;
}

.asp-profile .asp-pr-hero .asp-eyebrow { color: var(--blue-100); }

.asp-pr-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
}

.asp-pr-name {
  font-family: var(--display);
  font-weight: 400;
  font-size: 56px;
  line-height: 62px;
  color: var(--white);
  margin: 6px 0 10px;
}

.asp-pr-creds {
  font-size: 17px;
  line-height: 26px;
  font-weight: 600;
  color: #9FE0A3;
  margin: 0 0 20px;
}

.asp-pr-intro {
  max-width: 56ch;
  margin-bottom: 28px;
  color: rgba(255,255,255,.92);
}

.asp-pr-intro p { margin: 0 0 14px; }
.asp-pr-intro p:last-child { margin-bottom: 0; }

/* asp_review_badge() takes its margin from a context modifier (.asp-reviews--final
   and friends). New contexts get no spacing until they are registered here. */
.asp-reviews--profile-hero  { margin-top: 20px; }
.asp-reviews--profile-final { margin-top: 28px; }
.asp-pr-hero .asp-btn-row { margin-top: 30px; }

.asp-pr-hero__media { justify-self: end; align-self: end; width: 100%; }

/* No fixed square and no crop. Clinician headshots arrive both as cut-out
   PNGs on transparent backgrounds and as ordinary photographs; a 1:1 box with
   object-fit:cover strands the first kind in dead space and a drop shadow
   draws a rectangle around nothing. Natural ratio, seated on the band's
   baseline, handles both. */
.asp-pr-hero__media img,
.asp-pr-photo {
  display: block;
  width: 100%;
  height: auto;
  max-height: 540px;
  object-fit: contain;
  object-position: bottom center;
  border-radius: 0;
  box-shadow: none;
}

/* Closing CTA runs one column: .asp-final-grid's second cell exists for an
   image, and repeating the headshot there would be filler. */
.asp-pr-final { max-width: 760px; }
.asp-pr-final h2 { margin: 0; }

/* ------------------------------------------------------ body + sidebar -- */

.asp-pr-body { padding: var(--section-y) 0; }

.asp-pr-body__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 340px);
  gap: 64px;
  align-items: start;
}

/* min-width:0 stops long words and wide children from pushing a grid column
   past its track, which is what produced the overflow on the first build. */
.asp-pr-main { min-width: 0; }

.asp-pr-block + .asp-pr-block { margin-top: 44px; }
.asp-pr-block .asp-h-display { margin-bottom: 14px; }
.asp-pr-block .asp-prose p { margin: 0 0 16px; }
.asp-pr-block .asp-prose p:last-child { margin-bottom: 0; }

/* Sticky only where there is room for it to behave. */
@media (min-width: 981px) {
  .asp-pr-side { position: sticky; top: calc(var(--asp-header-h, 104px) + 24px); }
}

.asp-pr-card {
  background: var(--white);
  border: 1px solid var(--blue-100);
  border-radius: var(--radius-sm);
  padding: 26px 24px;
  box-shadow: var(--shadow-card);
}

.asp-pr-card + .asp-pr-card { margin-top: 18px; }

.asp-pr-card__head {
  font-family: var(--body);
  font-size: 13px;
  line-height: 18px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue-700);
  margin: 0 0 18px;
}

.asp-pr-tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.asp-pr-tags li {
  background: var(--faq-closed);
  color: var(--blue-700);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}

.asp-pr-list { list-style: none; margin: 0; padding: 0; }

.asp-pr-list li {
  padding: 13px 0;
  font-size: 15px;
  line-height: 23px;
  font-weight: 500;
  color: var(--ink);
  border-top: 1px solid var(--blue-100);
}

.asp-pr-list li:first-child { padding-top: 0; border-top: none; }
.asp-pr-list li:last-child  { padding-bottom: 0; }

.asp-pr-langs { margin: 0; font-size: 15px; line-height: 23px; color: var(--ink); }

.asp-pr-card--cta { background: var(--blue-050); border-color: var(--blue-300); }
.asp-pr-card--cta .asp-btn--full:first-of-type { margin-top: 0; }

/* ------------------------------------------------------------- mobile -- */

@media (max-width: 980px) {
  .asp-pr-hero__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  /* Photo first: it is the reason someone opened the page. */
  .asp-pr-hero__text  { order: 2; }
  .asp-pr-hero__media { order: 1; justify-self: center; align-self: center; max-width: 340px; }

  .asp-pr-name { font-size: 40px; line-height: 46px; }

  .asp-pr-body__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
}

@media (max-width: 600px) {
  .asp-pr-name { font-size: 34px; line-height: 40px; }
  .asp-pr-hero__media { max-width: 280px; }
}
