.profile-page .site-header {
  height: 104px;
}

.profile-page .header-nav [aria-current="page"] {
  color: var(--white);
  text-decoration: underline;
  text-decoration-color: var(--gold-light);
  text-underline-offset: 8px;
}

.profile-container {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.profile-hero {
  padding: 144px 0 0;
  color: var(--white);
  background: var(--navy-deep);
}

.profile-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 56px;
  color: #c1cbd6;
  font-size: 0.875rem;
}

.profile-breadcrumb a {
  text-underline-offset: 4px;
}

.profile-hero .eyebrow {
  font-size: 0.875rem;
}

.profile-hero h1 {
  max-width: 1000px;
  font-size: clamp(3rem, 6.3vw, 5.6rem);
  line-height: 1.06;
}

.profile-lead {
  max-width: 720px;
  margin: 30px 0 0;
  color: #d7dfe8;
  font-size: clamp(1.125rem, 1.7vw, 1.35rem);
  line-height: 1.6;
}

.profile-identification {
  margin-top: 34px;
  max-width: 720px;
  padding: 24px;
  border: 1px solid rgba(200, 179, 143, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  color: #edf1f5;
  font: 400 1rem/1.65 var(--sans);
}

.profile-identification p {
  margin: 0;
  font: inherit;
}

.profile-identification strong {
  display: block;
  font-weight: 500;
}

.profile-identification span {
  display: block;
  color: #c1cbd6;
  font-size: .875rem;
}

.profile-medical-registration {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 14px;
}

.profile-complementary-training {
  padding-top: 18px;
  margin-top: 18px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.profile-complementary-training span {
  margin-top: 3px;
}

.profile-specialties {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.profile-specialties p {
  padding: 14px 16px;
  border-left: 2px solid var(--gold-light);
  background: rgba(255, 255, 255, 0.035);
}

.profile-specialties span {
  margin-top: 4px;
  color: var(--gold-light);
  font-size: .8125rem;
  letter-spacing: .04em;
}

.profile-sections {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 36px;
  margin-top: 60px;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.profile-sections a {
  padding: 7px 0;
  color: #edf1f5;
  font-size: 1rem;
  text-decoration-color: rgba(200, 179, 143, 0.6);
  text-underline-offset: 6px;
}

.profile-section {
  padding-block: 90px;
  scroll-margin-top: 24px;
}

.profile-split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 7vw, 100px);
}

.profile-page h2 {
  max-width: 560px;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  line-height: 1.08;
}

.profile-section .eyebrow,
.profile-section-heading .eyebrow,
.profile-closing .eyebrow {
  color: #795e38;
  font-size: 0.875rem;
  line-height: 1.4;
}

.profile-prose {
  min-width: 0;
  font-size: 1.0625rem;
  line-height: 1.85;
}

.profile-prose > p {
  margin: 0;
}

.profile-prose > p + p {
  margin-top: 22px;
}

.profile-formation {
  padding-block: 80px 88px;
  background: var(--white);
  scroll-margin-top: 24px;
}

.profile-section-heading {
  margin-bottom: 48px;
}

.profile-qualification-list {
  border-top: 1px solid var(--line);
}

.profile-registration-heading {
  margin-top: 56px;
  margin-bottom: 30px;
}

.profile-registration-title {
  color: var(--navy);
  font-size: clamp(1.9rem, 3.3vw, 2.7rem);
  line-height: 1.15;
}

.profile-qualification {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 7vw, 100px);
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

.qualification-kind {
  color: var(--navy-soft);
  font-size: 1rem;
  line-height: 1.7;
}

.qualification-kind span {
  display: block;
  color: var(--navy);
}

.profile-qualification h3 {
  color: var(--navy);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.15;
}

.profile-qualification p {
  max-width: 650px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.profile-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.profile-links a,
.profile-contact-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border: 1px solid var(--navy);
  color: var(--navy-deep);
  font-size: 1rem;
  text-decoration: none;
}

.profile-links a:hover,
.profile-contact-link:hover {
  color: var(--white);
  background: var(--navy);
}

.profile-closing {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: 36px 64px;
  padding-block: 56px 40px;
  border-top: 1px solid var(--line);
}

.profile-contact-copy > p:last-child {
  margin: 20px 0 0;
  font-size: 1rem;
}

.profile-contact-actions {
  display: grid;
  gap: 12px;
}

.profile-contact-link {
  color: var(--white);
  background: var(--navy-deep);
}

.profile-contact-link span {
  color: var(--gold-light);
}

.profile-updated {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
}

.profile-page :focus-visible {
  outline: 3px solid #95723e;
  outline-offset: 5px;
}

.profile-page header :focus-visible,
.profile-hero :focus-visible {
  outline-color: var(--gold-light);
}

@media (max-width: 760px) {
  .profile-container {
    width: calc(100% - 40px);
  }

  .profile-page .site-header {
    height: 86px;
  }

  .profile-hero {
    padding-top: 118px;
  }

  .profile-breadcrumb {
    margin-bottom: 40px;
  }

  .profile-hero h1 {
    font-size: clamp(2.8rem, 9vw, 4.5rem);
    overflow-wrap: break-word;
  }

  .profile-identification {
    padding: 20px;
  }

  .profile-specialties p {
    padding: 12px;
    font-size: .9375rem;
  }

  .profile-sections {
    gap: 8px 24px;
    margin-top: 42px;
  }

  .profile-split,
  .profile-qualification {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .profile-section,
  .profile-formation {
    padding-block: 56px;
  }

  .profile-section-heading {
    margin-bottom: 32px;
  }

  .profile-qualification {
    gap: 14px;
    padding-block: 26px;
  }

  .profile-closing {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding-block: 40px 32px;
  }

  .profile-links {
    grid-template-columns: minmax(0, 1fr);
  }
}

.profile-with-imagery .profile-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-bottom: 38px;
}

.profile-hero-scene {
  position: absolute;
  inset: 0;
  margin: 0;
  pointer-events: none;
}

.profile-hero-scene img {
  position: absolute;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.profile-with-imagery .profile-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(23,40,59,.98) 0%, rgba(23,40,59,.93) 38%, rgba(23,40,59,.53) 69%, rgba(23,40,59,.16) 100%),
    linear-gradient(0deg, rgba(23,40,59,.94), transparent 35%);
}

.profile-hero-scene figcaption {
  position: absolute;
  z-index: 1;
  right: max(24px, calc((100vw - 1180px) / 2));
  bottom: 12px;
  color: #d7dfe8;
  font: 400 .6875rem/1.4 var(--sans);
}

.profile-with-imagery .profile-identification {
  background: rgba(23,40,59,.88);
}

.profile-with-imagery .profile-formation {
  padding-top: 0;
}

.profile-formation-intro {
  position: relative;
  isolation: isolate;
  min-height: 420px;
  display: flex;
  align-items: center;
  padding: 80px 0 120px;
  margin-bottom: 28px;
  overflow: hidden;
  background: var(--navy-deep);
}

.profile-formation-intro::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(0deg, white 0%, rgba(255,255,255,0) 32%),
    linear-gradient(90deg, rgba(23,40,59,.96), rgba(23,40,59,.68) 45%, rgba(23,40,59,.1));
}

.profile-formation-intro .profile-section-heading {
  margin: 0;
}

.profile-formation-intro h2 {
  color: var(--white);
}

.profile-formation-intro .eyebrow {
  color: var(--gold-light);
}

.profile-study-scene {
  position: absolute;
  inset: 0;
  margin: 0;
  pointer-events: none;
}

.profile-study-scene img {
  position: absolute;
  z-index: -2;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
}

.profile-study-scene figcaption {
  position: absolute;
  right: max(24px, calc((100vw - 1180px) / 2));
  bottom: 14px;
  left: 24px;
  text-align: right;
  color: var(--muted);
  font-size: .6875rem;
}

@media (max-width: 760px) {
  .profile-hero-scene img {
    object-position: 68% center;
  }

  .profile-with-imagery .profile-hero::after {
    background: linear-gradient(90deg, rgba(23,40,59,.93), rgba(23,40,59,.76)),
      linear-gradient(0deg, rgba(23,40,59,.98), transparent 55%);
  }

  .profile-formation-intro {
    min-height: 360px;
    padding: 64px 0 112px;
    margin-bottom: 16px;
  }

  .profile-formation-intro::after {
    background: linear-gradient(0deg, white 0%, rgba(255,255,255,0) 32%),
      linear-gradient(90deg, rgba(23,40,59,.86), rgba(23,40,59,.48));
  }

  .profile-study-scene img {
    object-position: 58% center;
  }
}

@media (max-width: 380px) {
  .profile-specialties {
    grid-template-columns: 1fr;
  }
}
