body.profile-page {
  --profile-green: #007a39;
  --profile-green-dark: #0a3d2a;
  --profile-green-pale: #eef7f2;
  --profile-ink: #101713;
  --profile-gray: #344f44;
}

body.profile-page .mmc-profile-hero {
  display: grid;
  min-height: calc(100dvh - var(--header-h, 82px));
  padding: 0 0 clamp(28px, 5vh, 52px);
  grid-template-rows: auto 1fr;
  color: var(--profile-ink);
  /* Profile copy sits on the right; preserve its position and localize its glow. */
  background-image: radial-gradient(ellipse 50% 74% at 73% 52%, rgba(255,255,255,.95) 0%, rgba(255,255,255,.9) 40%, rgba(255,255,255,0) 100%), var(--page-hero-image);
  background-position: center;
  background-size: cover;
}

body.profile-page .mmc-profile-breadcrumb-wrap { padding-top: clamp(22px, 3vw, 34px); }
body.profile-page .mmc-profile-breadcrumb-wrap .mmc-breadcrumbs { margin: 0; padding: 0; color: #242424; background: transparent; border: 0; border-radius: 0; }
body.profile-page .mmc-profile-breadcrumb-wrap .mmc-breadcrumbs a { color: var(--profile-green-dark); font-weight: 800; }
body.profile-page .mmc-profile-grid { align-self: center; margin-top: clamp(18px, 3vh, 32px); grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(30px, 5vw, 68px); align-items: stretch; }
body.profile-page .mmc-profile-photo { position: relative; z-index: 1; border: 5px solid #fff; border-radius: 24px; box-shadow: 0 22px 54px rgba(0, 0, 0, .2); }
body.profile-page .mmc-profile-photo img { aspect-ratio: 4 / 5; object-fit: cover; }
body.profile-page .profile-hero-copy { display: flex; min-width: 0; padding: clamp(20px, 3vw, 44px); flex-direction: column; justify-content: center; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
body.profile-page .profile-hero-copy::before { content: none; }
body.profile-page .mmc-profile-grid .mmc-page-hero { display: block; min-height: 0; padding: 0; background: none; }
body.profile-page .mmc-profile-grid .mmc-page-hero h1 { max-width: none; margin: 0 0 20px; color: var(--profile-ink); font-size: clamp(2.8rem, 5.2vw, 5rem); line-height: .94; letter-spacing: -.06em; overflow-wrap: normal; }
body.profile-page .profile-role { display: grid; gap: 6px; margin: 0; color: var(--profile-ink); font-size: clamp(1rem, 1.5vw, 1.2rem); line-height: 1.35; }
body.profile-page .profile-role strong { font-weight: 900; }
body.profile-page .profile-role span { color: var(--profile-gray); font-weight: 750; }
body.profile-page .profile-hero-copy > .button-row { margin-top: 28px; }
body.profile-page .mmc-section { display: grid; min-height: calc(100dvh - var(--header-h, 82px)); padding: clamp(56px, 8vh, 90px) 0; align-items: center; background: #fff; }
body.profile-page .mmc-profile-body { grid-template-columns: minmax(0, 1.1fr) minmax(440px, .9fr); gap: clamp(32px, 5vw, 72px); align-items: stretch; }
body.profile-page .mmc-profile-body article { display: flex; flex-direction: column; gap: clamp(14px, 1.5vw, 20px); }
body.profile-page .mmc-profile-body article > * { margin: 0; }
body.profile-page .mmc-profile-body article p { color: #333; line-height: 1.78; }
body.profile-page .mmc-profile-body article h2 { color: var(--profile-ink); }
body.profile-page .mmc-callout { display: flex; min-width: 0; min-height: 300px; height: auto; padding: 0 clamp(24px, 3vw, 36px); scroll-margin-top: 140px; align-self: stretch; flex-direction: column; justify-content: space-evenly; color: var(--profile-ink); background: var(--profile-green-pale); border: 1px solid rgba(0, 122, 57, .22); border-radius: 20px; box-shadow: none; }
body.profile-page .mmc-callout h2 { color: var(--profile-ink); font-size: clamp(1.8rem, 3vw, 2.6rem); }
body.profile-page .mmc-callout h2,
body.profile-page .mmc-callout p { margin: 0; }
/* Keep every contact value on one line; very narrow screens scroll within the card. */
body.profile-page .mmc-callout p { max-width: 100%; overflow-x: auto; color: var(--profile-ink); white-space: nowrap; }
body.profile-page .mmc-callout a { color: var(--profile-green-dark); font-weight: 850; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; overflow-wrap: normal; }
body.profile-page .profile-contact-link { display: inline-flex; gap: 10px; align-items: center; white-space: nowrap; }
body.profile-page .profile-contact-icon { width: 22px; height: 22px; flex: 0 0 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
body.profile-page .mmc-final-cta { min-height: 0; padding: clamp(48px, 6vw, 70px) 0; color: #fff; background: var(--profile-green); }
body.profile-page .mmc-final-cta .container { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: clamp(30px, 6vw, 78px); align-items: center; }
body.profile-page .mmc-final-cta .eyebrow,
body.profile-page .mmc-final-cta h2,
body.profile-page .mmc-final-cta p:not(.eyebrow) { grid-column: 1; color: #fff; }
body.profile-page .mmc-final-cta h2 { max-width: 720px; margin: .25rem 0 .7rem; font-size: clamp(2rem, 4.2vw, 3.8rem); line-height: 1.02; }
body.profile-page .mmc-final-cta p:not(.eyebrow) { max-width: 690px; margin-bottom: 0; font-size: 1.08rem; }
body.profile-page .mmc-final-cta .button-row { grid-column: 2; grid-row: 1 / 4; margin-top: 0; justify-content: flex-end; }
body.profile-page .mmc-final-cta .button-primary { color: var(--profile-green-dark); background: #fff; box-shadow: none; }
body.profile-page .mmc-final-cta .button-secondary { color: #fff; background: transparent; border-color: #fff; }

html.profile-contact-dialog-open,
html.profile-contact-dialog-open body { overflow: hidden; }
.profile-contact-dialog { inset: 0; width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; overflow: auto; color: var(--profile-ink); background: #fff; border: 0; border-radius: 0; }
.profile-contact-dialog::backdrop { background: rgba(0, 0, 0, .68); }
.profile-privacy-dialog { inset: 0; width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; overflow: auto; overscroll-behavior: contain; color: var(--profile-ink); background: #fff; border: 0; border-radius: 0; }
.profile-privacy-dialog::backdrop { background: rgba(0, 0, 0, .72); }
.profile-privacy-panel { position: relative; width: min(100% - 40px, 850px); min-height: 100dvh; margin-inline: auto; padding: clamp(82px, 10vh, 112px) 0 clamp(54px, 8vh, 88px); }
.profile-privacy-close { position: fixed; z-index: 2; top: max(18px, env(safe-area-inset-top)); right: max(18px, env(safe-area-inset-right)); display: grid; width: 52px; height: 52px; padding: 0; place-items: center; color: var(--profile-ink); background: #fff; border: 2px solid var(--profile-ink); border-radius: 50%; font: inherit; font-size: 2rem; line-height: 1; cursor: pointer; }
.profile-privacy-header { margin-bottom: 30px; }
.profile-privacy-header .eyebrow { margin-bottom: 8px; color: var(--profile-green-dark); }
.profile-privacy-header h2 { margin: 0; color: var(--profile-ink); font-size: clamp(2.4rem, 6vw, 4.8rem); line-height: 1; letter-spacing: -.05em; }
.profile-privacy-content { max-width: none; }
.profile-privacy-content section h3 { margin: 0 0 10px; color: var(--profile-ink); font-size: 1.35rem; }
.profile-privacy-content a { color: var(--profile-green-dark); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.profile-privacy-bottom-close { margin-top: 34px; }
.profile-contact-form { position: relative; display: grid; width: min(100% - 40px, 760px); min-height: 100dvh; margin-inline: auto; padding: clamp(78px, 9vh, 108px) 0 clamp(44px, 7vh, 76px); align-content: center; }
.profile-contact-entry[hidden] { display: none; }
.profile-contact-entry { display: grid; width: 100%; min-width: 0; grid-column: 1 / -1; }
.profile-contact-close { position: fixed; z-index: 2; top: max(18px, env(safe-area-inset-top)); right: max(18px, env(safe-area-inset-right)); display: grid; width: 52px; height: 52px; padding: 0; place-items: center; color: var(--profile-ink); background: #fff; border: 2px solid var(--profile-ink); border-radius: 50%; font: inherit; font-size: 2rem; line-height: 1; cursor: pointer; }
.profile-contact-entry > .eyebrow { margin-bottom: 8px; color: var(--profile-green-dark); }
.profile-contact-entry > h2,
.profile-contact-entry > .profile-contact-intro { width: 100%; max-width: none; min-width: 0; box-sizing: border-box; grid-column: 1 / -1; }
.profile-contact-form h2 { margin-bottom: 12px; color: var(--profile-ink); font-size: clamp(2.2rem, 5vw, 4.4rem); line-height: 1; letter-spacing: -.05em; }
.profile-contact-intro { margin-bottom: 28px; color: var(--profile-gray); font-size: 1.05rem; }
.profile-contact-required-note { margin: 0 0 12px; color: var(--profile-gray); font-size: .88rem; font-weight: 800; }
.profile-contact-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.profile-contact-field { display: grid; gap: 7px; color: var(--profile-ink); font-weight: 800; }
.profile-contact-field--wide { grid-column: 1 / -1; }
.profile-contact-field input,
.profile-contact-field textarea { width: 100%; min-height: 50px; padding: 12px 14px; color: var(--profile-ink); background: #fff; border: 1px solid #9aac9f; border-radius: 10px; font: inherit; font-weight: 500; }
.profile-contact-field textarea { min-height: 126px; resize: vertical; }
.profile-contact-privacy-note { margin: 14px 0 0; color: var(--profile-gray); font-size: .9rem; }
.profile-contact-consent { display: grid; margin: 20px 0; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; color: var(--profile-gray); font-size: .94rem; }
.profile-contact-consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--profile-green); }
.profile-contact-consent a { color: var(--profile-green-dark); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.profile-contact-submit { width: fit-content; }
.profile-contact-submit[disabled] { cursor: wait; opacity: .72; }
.profile-contact-submit[aria-busy="true"]::before { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; content: ""; animation: profile-contact-spin .7s linear infinite; }
.profile-contact-status { min-height: 28px; margin: 16px 0 0; color: var(--profile-ink); font-weight: 750; }
.profile-contact-status.is-success { color: var(--profile-green-dark); }
.profile-contact-status.is-success { padding: 14px 16px; background: var(--profile-green-pale); border: 1px solid rgba(0, 122, 57, .24); border-radius: 10px; }
.profile-contact-status:focus { outline: 3px solid rgba(0, 122, 57, .32); outline-offset: 4px; }
.profile-contact-success[hidden] { display: none; }
.profile-contact-success { display: grid; min-height: calc(100dvh - clamp(122px, 16vh, 184px)); align-content: center; grid-column: 1 / -1; }
.profile-contact-success > .eyebrow { margin-bottom: 8px; color: var(--profile-green-dark); }
.profile-contact-success h2 { margin-bottom: 18px; }
.profile-contact-success > p:last-child { margin: 0; color: var(--profile-gray); font-size: 1.08rem; }
.profile-contact-success:focus-visible { outline: 3px solid rgba(0, 122, 57, .32); outline-offset: 5px; }

@keyframes profile-contact-spin { to { transform: rotate(360deg); } }

@media (min-width: 1101px) {
  body.profile-page .mmc-profile-grid { width: min(100% - 40px, clamp(800px, calc(160vh - 360px), 1100px)); }
  body.profile-page .profile-hero-copy { padding: clamp(20px, 2vw, 32px); }
}

@media (max-width: 980px) {
  body.profile-page .mmc-profile-body { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  body.profile-page .mmc-profile-hero { background-image: radial-gradient(ellipse 100% 48% at 50% 76%, rgba(255,255,255,.95) 0%, rgba(255,255,255,.9) 42%, rgba(255,255,255,0) 100%), var(--page-hero-image-mobile); }
  body.profile-page .mmc-profile-grid,
  body.profile-page .mmc-profile-body { grid-template-columns: 1fr; }
  body.profile-page .mmc-profile-photo { width: min(100%, 520px); }
  body.profile-page .profile-hero-copy { padding: 20px 0 0; }
  body.profile-page .mmc-profile-grid .mmc-page-hero { padding: 0; }
  body.profile-page .mmc-callout { min-height: 0; height: auto; padding: 32px; align-self: auto; justify-content: flex-start; gap: 20px; }
  body.profile-page .mmc-final-cta .container { grid-template-columns: 1fr; }
  body.profile-page .mmc-final-cta .eyebrow,
  body.profile-page .mmc-final-cta h2,
  body.profile-page .mmc-final-cta p:not(.eyebrow),
  body.profile-page .mmc-final-cta .button-row { grid-column: 1; grid-row: auto; }
  body.profile-page .mmc-final-cta .button-row { margin-top: 26px; justify-content: flex-start; }
}

@media (max-width: 480px) {
  body.profile-page .mmc-callout { padding: 28px 16px; }
  body.profile-page .profile-contact-link { font-size: .875rem; }
  body.profile-page .profile-contact-icon { width: 18px; height: 18px; flex-basis: 18px; }
}

@media (max-width: 520px) {
  body.profile-page .mmc-profile-grid .mmc-page-hero h1 { font-size: clamp(2.6rem, 15vw, 4.2rem); }
  .profile-contact-form { width: min(100% - 32px, 760px); padding-top: 88px; align-content: start; }
  .profile-contact-fields { grid-template-columns: 1fr; }
  .profile-contact-field--wide { grid-column: auto; }
  .profile-contact-submit { width: 100%; }
}
