#hori-home-doctors .hd-profile-link {
  position: absolute; inset: 0; z-index: 2; display: flex; align-items: flex-start;
  justify-content: flex-end; padding: 12px; border-radius: inherit; text-decoration: none;
  color: #163653; -webkit-tap-highlight-color: transparent;
}
#hori-home-doctors .hd-profile-link span {
  background: #fff; border-radius: 999px; padding: 7px 12px;
  font: 600 12px/1.3 Inter, Arial, sans-serif; box-shadow: 0 1px 5px #182d472b;
}
#hori-home-doctors .hd-profile-link:is(:hover,:focus-visible) span { text-decoration: underline; }
#hori-home-doctors .hd-profile-link:focus-visible { outline: 3px solid #1766ac; outline-offset: -4px; }
dialog.hd-profile-dialog {
  box-sizing: border-box; position: fixed; inset: 0; margin: auto; padding: 0; color: #162e46;
  background: white; border: 0; border-radius: 18px; width: min(740px, calc(100% - 32px));
  max-width: calc(100% - 32px); max-height: calc(100dvh - 32px); height: fit-content;
  overflow: auto; overscroll-behavior: contain; box-shadow: 0 18px 65px #061b3645;
  font-family: Inter, Arial, sans-serif;
}
dialog.hd-profile-dialog::backdrop { background: rgb(7 22 37 / 70%); }
.hd-profile-layout { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); }
.hd-profile-photo { display: block; width: 100%; height: 100%; min-height: 330px; object-fit: cover; }
.hd-profile-copy { align-self: center; padding: 64px 30px 40px; }
.hd-profile-copy h2 { margin: 0; color: #172f48; font-size: clamp(23px, 3vw, 32px); line-height: 1.12; }
.hd-profile-registration { margin: 7px 0 0; color: #566a80; font-size: 13px; }
.hd-profile-biography { font-size: 16px; line-height: 1.55; margin: 19px 0 0; }
.hd-profile-history { display: block; color: #12598f; text-decoration: underline; font-size: 14px; margin-top: 14px; }
.hd-profile-book { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 17px;
  margin-top: 22px; background: #172d43; color: white; border-radius: 8px; font-weight: 600; }
.hd-profile-close { position: absolute; top: 10px; right: 10px; padding: 8px 16px; border-radius: 999px;
  background: white; border: 1px solid #ccd6df; color: #19364e; min-height: 44px; font-weight: 600; }
.hd-profile-dialog :is(button,a):focus-visible { outline: 3px solid #1678b9; outline-offset: 2px; }
@media(max-width:580px) {
  .hd-profile-layout { display: block; }
  .hd-profile-photo { height: clamp(135px, 36dvh, 325px); min-height: 0; }
  .hd-profile-copy { padding: 20px 22px 24px; }
}
/* The native fragment links reveal a readable profile before the enhancement loads. */
#hori-home-doctors .hd-portrait { scroll-margin-block-start: 110px; }
#hori-home-doctors .hd-profile-extended, #hori-home-doctors .hd-profile-dismiss { display: none; }
#hori-home-doctors .hd-portrait:target { aspect-ratio: auto; display: flex; flex-direction: column; align-self: start; background: white; }
#hori-home-doctors .hd-portrait:target img { height: auto; max-height: 32vh; aspect-ratio: 4/3; }
#hori-home-doctors .hd-portrait:target .hd-profile-link,
#hori-home-doctors .hd-portrait:target .hd-caption > p:not(.hd-profile-extended) { display: none; }
#hori-home-doctors .hd-portrait:target .hd-caption { position: static; min-height: 0; background: white; color: #172f48; padding: 18px; }
#hori-home-doctors .hd-portrait:target .hd-caption :is(h3,span,p) { color: inherit; }
#hori-home-doctors .hd-portrait:target .hd-profile-extended { display: block; }
#hori-home-doctors .hd-portrait:target .hd-profile-dismiss { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; }
