/* Profile-local executable design reference. Existing branded shell and fonts retained. */
.holistic-profile{--ink:#063448;--rule:#c4d0d5;--wash:#f0f5f6;--profile-column-gap:64px;max-width:1232px;margin:0 auto;padding:48px 16px 72px;color:#30373a}
.profile-intro,.profile-reading{display:grid;grid-template-columns:minmax(0,384px) minmax(0,1fr);column-gap:var(--profile-column-gap)}
.profile-intro{position:relative;align-items:stretch;padding-bottom:0;border-top:1px solid var(--ink);border-bottom:1px solid var(--ink)}
.portrait-frame{position:relative;width:calc(100% + var(--profile-column-gap) / 2);margin:0;padding:0;min-height:256px;border:0;overflow:hidden;align-self:stretch}
.portrait-frame img{position:absolute;inset:0;display:block;width:100%;height:100%!important;object-fit:cover;object-position:center}
.profile-identity{grid-column:2;min-width:0;padding:20px 0 24px}
.profile-identity h1{font-family:"Raleway",sans-serif;font-size:40px!important;line-height:1.15!important;font-weight:600!important;letter-spacing:-.5px;margin:0!important;color:var(--ink)}
.profile-location{grid-area:location;align-self:end;display:flex;gap:12px;align-items:center;margin:0!important;color:var(--ink);font:400 15px/24px "Open Sans",sans-serif}.profile-location-icon{display:flex;align-items:center;flex:0 0 20px}.profile-location-icon svg{display:block;width:20px;height:20px}.profile-location-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.contact-system{margin-top:12px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-areas:'location assistant-label' 'contacts assistant-rows';gap:8px 28px;align-items:start}
.direct-contact-group,.contact-system [data-region=assistant]{display:contents}
.contact-system [data-region=contacts]{grid-area:contacts;align-self:stretch}
.contact-system [data-region=assistant]>.contact-rows{grid-area:assistant-rows}
.contact-system [data-region]{margin:0!important;padding:0!important;border:0!important;min-width:0}
.contact-system .contact-rows{list-style:none!important;padding:0!important;margin:0!important;display:grid!important;gap:0!important;grid-auto-rows:minmax(48px,1fr);height:100%;align-self:stretch}
.contact-system .contact-rows li{padding:0!important;margin:0!important;list-style:none!important;display:block!important}
.holistic-profile .profile-contact-row{display:flex!important;align-items:center!important;gap:12px!important;min-height:48px!important;width:100%!important;padding:10px 0!important;border:0!important;border-bottom:1px solid var(--rule)!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;color:var(--ink)!important;font:400 15px/24px "Open Sans",sans-serif!important;text-align:left!important;white-space:normal!important;overflow-wrap:anywhere;text-decoration:none!important;box-sizing:border-box}
.profile-contact-row{height:100%}.profile-contact-row svg{flex:0 0 20px;width:20px;height:20px;align-self:center}.profile-contact-row:hover{background:#e9f1f4!important;text-decoration:underline!important}.profile-contact-row:focus-visible{outline:3px solid #146180!important;outline-offset:3px}
.assistant-label{grid-area:assistant-label;align-self:end;font-size:15px;line-height:24px;color:var(--ink);margin:0}.assistant-label strong{font-weight:600;color:inherit}
.contact-system [data-region=contacts]{padding-top:0!important}
.profile-reading{padding-top:40px;align-items:start}
.profile-reading>[data-region]{min-width:0;margin:0!important;font-family:"Open Sans",sans-serif;font-size:16px!important;line-height:1.7!important}
.profile-reading .profile-narrative{grid-column:2;grid-row:1}
.profile-reading .professional-record{grid-column:1;grid-row:1;border:0!important;padding:0 24px 0 0!important}
.profile-narrative p{font-size:16px!important;line-height:1.7!important;margin:0 0 24px!important}
.profile-narrative h2,.profile-narrative h3{font-family:"Raleway",sans-serif!important;font-size:24px!important;line-height:1.3!important;font-weight:600!important;color:var(--ink);margin:36px 0 20px!important}
.profile-narrative h2 strong,.profile-narrative h3 strong{font-weight:600!important}
.profile-narrative ul,.profile-narrative ol{margin:0 0 24px!important;padding-left:22px!important}
.profile-narrative li{font-size:16px!important;line-height:1.7!important;padding-left:4px;margin:0 0 16px!important}
.professional-record{font-size:15px!important;line-height:1.65!important;color:#3c484d}
.professional-record h4{font-family:"Raleway",sans-serif!important;font-size:21px!important;line-height:1.35!important;margin:0 0 20px!important;color:var(--ink);font-weight:600!important}
.professional-record h4 strong{font-weight:600!important;text-transform:none}
.professional-record h2{font-family:"Raleway",sans-serif!important;font-size:21px!important;line-height:1.35!important;margin:32px 0 16px!important;padding-top:24px;border-top:1px solid var(--rule);color:var(--ink)}
.professional-record h2 strong{font-weight:600!important}
.professional-record p{font-size:15px!important;line-height:1.65!important;margin:0 0 8px!important}
.professional-record p:empty{margin-bottom:12px!important}
.professional-record>br{display:none}
.portrait-absence{height:128px;border-top:2px solid var(--ink);border-bottom:1px solid var(--rule);background:var(--wash)}
.profile-intro[data-photo=absent] .portrait-frame{display:none}
@media(max-width:1100px){.holistic-profile{--profile-column-gap:40px}.profile-intro,.profile-reading{grid-template-columns:minmax(0,32%) minmax(0,1fr);gap:var(--profile-column-gap)}.profile-identity h1{font-size:36px!important}}
@media(max-width:700px){.holistic-profile{padding:24px 20px 48px}.profile-intro,.profile-reading{display:flex;flex-direction:column;gap:0}.profile-intro{padding-bottom:0}.portrait-frame{width:100%;min-height:0;box-sizing:border-box}.portrait-frame img{position:static;height:auto!important;object-fit:contain}.profile-identity{border:0;padding-top:24px;width:100%}.profile-identity h1{font-size:32px!important;letter-spacing:-.3px}.contact-system{margin-top:20px;gap:20px}.contact-system .profile-contact-row{font-size:15px!important}.profile-reading{padding-top:28px}.profile-reading .profile-narrative{width:100%}.profile-reading .professional-record{width:100%;margin-top:28px!important;padding:28px 0 0!important;border-top:2px solid var(--ink)!important}.profile-narrative p,.profile-narrative li{line-height:1.65!important}.portrait-absence{display:none}.profile-intro[data-photo=absent] .profile-identity{padding-top:8px}.profile-narrative h2,.profile-narrative h3{font-size:23px!important}}

.professional-record:not(:has(h4)) h2:first-of-type{margin-top:0!important;padding-top:0;border-top:0}
.profile-contact-row:not([href]){cursor:default}

/* Text-led fallback collapses the photo track; no empty portrait card. */
.holistic-profile:has(.profile-intro[data-photo=absent]){max-width:832px}
.profile-intro[data-photo=absent]{display:block}
.profile-intro[data-photo=absent] .portrait-absence{display:none}
.holistic-profile:has(.profile-intro[data-photo=absent]) .profile-reading{display:flex;flex-direction:column;gap:32px}
.holistic-profile:has(.profile-intro[data-photo=absent]) .professional-record{padding:28px 0 0!important;border-top:1px solid var(--rule)!important;width:100%}
.profile-reading:empty{display:none}
.contact-system:not(:has([data-region=assistant])){grid-template-columns:1fr;grid-template-areas:'location' 'contacts';max-width:400px}
.contact-system:not(:has([data-region=assistant])) [data-region=contacts]{padding-top:0!important}
.contact-system:not(:has([data-region=assistant])):not(:has(.profile-location)){grid-template-areas:'contacts'}
@media(max-width:767.98px){.contact-system{grid-template-columns:1fr;grid-template-areas:'location' 'contacts' 'assistant-label' 'assistant-rows';gap:8px 0}.assistant-label{margin-top:12px}.contact-system:not(:has(.profile-location)){grid-template-areas:'contacts' 'assistant-label' 'assistant-rows'}}

/* No professional record means one readable biography, not an empty side rail. */
.holistic-profile[data-professional="absent"] .profile-reading{display:block;max-width:832px;margin-inline:auto}
.holistic-profile[data-professional="absent"] .profile-narrative{width:100%;max-width:none}

/* In the stacked mobile header, frame only the photograph, not the contacts. */
@media(max-width:700px){.profile-intro[data-photo="present"]{border-block:0}.profile-intro[data-photo="present"] .portrait-frame{border-block:1px solid var(--ink)}}

/* When both optional reading regions are absent, reserve no empty reading area. */
.holistic-profile[data-professional="absent"] .profile-reading:empty {
  display: none;
}

/* Keep the original portrait frame; center the whole identity in its grid row. */
@media (width > 700px) {
  .profile-intro[data-photo="present"] > .profile-identity {
    align-self: center;
    padding-block: 22px;
  }
}

/* The existing site header supplies the top rule. */
.rlp-profile > .holistic-profile {
  padding-block-start: 0;
}

.rlp-profile .profile-intro {
  border-top-width: 0;
}

@media (max-width: 700px) {
  .rlp-profile > .holistic-profile {
    --profile-stack-gutter: 20px;
    padding-inline: var(--profile-stack-gutter);
  }

  /* Only the stacked portrait breaks out; the reading and contact gutters stay put. */
  .rlp-profile .profile-intro[data-photo="present"] > .portrait-frame {
    width: calc(100% + 2 * var(--profile-stack-gutter));
    margin-inline: calc(-1 * var(--profile-stack-gutter));
    border-block: 0;
    padding-block-end: 1px;
  }

  /* Keep the lower rule aligned with the original inset, not the wider image. */
  .rlp-profile .profile-intro[data-photo="present"] > .portrait-frame::after {
    content: "";
    position: absolute;
    inset-inline: var(--profile-stack-gutter);
    inset-block-end: 0;
    block-size: 1px;
    background: var(--ink);
    pointer-events: none;
  }
}

@media (width > 700px) {
  /* Keep the existing second grid track without mounting an empty sidebar. */
  .rlp-profile .holistic-profile[data-professional="absent"] > .profile-reading:has(> .profile-narrative) {
    display: grid;
    max-width: none;
    margin-inline: 0;
  }
}

/* Composition with the local ForceFive shell. */
.rlp-profile > .holistic-profile { width:100%; box-sizing:border-box; }
.rlp-profile .profile-reading > .profile-narrative { padding:0; }
.rlp-profile .profile-credentials + .sidebar__title { margin-top:32px!important; padding-top:24px; border-top:1px solid var(--rule); }
.rlp-profile .profile-year-of-call strong { font-weight:700; }

body.rlp-staff #maincontentcontainer > .page_banner{display:none!important}
body.rlp-staff,body.rlp-staff #maincontentcontainer{background-image:none!important;background-color:#fff}
.rlp-multiple-assistants{display:block!important}
.rlp-multiple-assistants [data-region=assistant],.rlp-multiple-assistants .direct-contact-group{display:block!important;margin-bottom:16px!important}
.rlp-profile .rlp-assistant-mail-mobile{display:none!important}
@media(max-width:800px){.rlp-profile .rlp-assistant-mail-desktop{display:none!important}.rlp-profile .rlp-assistant-mail-mobile{display:grid!important}}
.rlp-profile .profile-credentials > .rlp-credential + .rlp-credential{margin-block-start:0.5rem}
