/* One responsive profile grid; content placement follows the existing booking mode.
 * Below 64rem of actual content width, booking spans the full profile.
 * 64rem provides a 30rem portrait and a comfortable calendar column. */
html body .omedica-single-doctor > .omedica-domain-container {container-type:inline-size;container-name:doctor-profile;}
html body .omedica-doctor-hero.omedica-doctor-hero--booking {
 --doctor-profile-photo-width:var(--omedica-portrait-column-width,clamp(7rem,34cqi,9rem));
 display:grid;grid-template-columns:var(--doctor-profile-photo-width) minmax(0,1fr);
 align-items:start;gap:var(--space-md) var(--space-sm);padding:0;background:transparent;
}
.omedica-doctor-hero--booking > *, .omedica-doctor-hero__summary > * {min-width:0;}
html body .omedica-doctor-hero--booking > .omedica-doctor-hero__portrait-column {grid-column:1;grid-row:1;align-self:start;width:100%;min-height:0;}
html body .omedica-doctor-hero--booking :is(.omedica-doctor-portrait--hero,.omedica-doctor-placeholder,.omedica-planned-media--portrait) {position:relative;inset:auto;display:block;width:100%;max-width:none;height:auto;min-height:0;aspect-ratio:3/4;align-self:start;justify-self:start;overflow:hidden;border-radius:var(--wp--custom--radius--md);}
/* The image is contained by its own 3:4 frame, never the adjacent text/calendar. */
html body .omedica-doctor-hero--booking .omedica-doctor-portrait > img {position:absolute;inset:0;display:block;width:100%;height:100%;max-width:none;object-fit:cover;}
html body .omedica-doctor-hero__summary {display:contents;}
html body .omedica-page-entry .omedica-single-doctor .omedica-doctor-hero__summary > header {grid-column:2;grid-row:1;display:block;min-width:0;padding:0;border:0;background:transparent;}
html body .omedica-doctor-hero__identity {display:block;min-width:0;min-height:0;}
html body .omedica-doctor-hero__summary h1 {margin:0;font-size:clamp(1.5rem,2.2vw,2.2rem);line-height:1.15;word-break:normal;overflow-wrap:break-word;}
html body .omedica-doctor-hero__summary :is(header,.omedica-doctor-hero__identity) > .omedica-doctor-specialties {display:flex;flex-wrap:wrap;gap:var(--space-xs) 0;margin:var(--space-sm) 0 0;padding:0;list-style:none;overflow-wrap:break-word;}
html body .omedica-doctor-hero__identity > .omedica-doctor-leadership {margin:var(--space-xs) 0 0;}
html body .omedica-doctor-hero__identity > .omedica-doctor-leadership + .omedica-doctor-specialties {margin-block-start:var(--space-xs);}
html body .omedica-doctor-hero__summary .omedica-doctor-specialties li {margin:0;line-height:1.45;}
html body .omedica-doctor-hero__summary .omedica-doctor-specialties li:not([data-professional-field=specialty]) {flex-basis:100%;}
html body .omedica-doctor-hero__summary .omedica-hero-info-footer {display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:var(--space-xs) var(--space-sm);margin:var(--space-sm) 0 0;padding:0;background:transparent;}
html body .omedica-doctor-hero__summary .omedica-hero-info-footer > * {margin:0;}
html body .omedica-doctor-hero__summary .omedica-hero-facts {flex:1 1 auto;margin:0;}
html body .omedica-doctor-hero__summary .omedica-hero-facts p {display:flex;flex-wrap:wrap;align-items:baseline;gap:var(--space-xs);margin:0;}
html body .omedica-doctor-hero-actions {display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-xs);margin-inline-start:auto;min-width:0;}
html body .omedica-doctor-hero__summary .omedica-hero-review {display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;margin:0;min-height:var(--wp--custom--interaction--touch-target);max-width:100%;white-space:normal;}
html body .omedica-doctor-hero__summary > :not(header) {grid-column:1/-1;min-width:0;}
html body .omedica-doctor-hero .omedica-doctor-schedule {display:grid;gap:var(--space-xs);min-width:0;padding:var(--space-md);border:var(--wp--custom--border--width) solid var(--wp--preset--color--border);border-radius:var(--wp--custom--radius--md);background:var(--wp--preset--color--background);}
html body .omedica-page-entry .omedica-single-doctor .omedica-doctor-hero__summary .omedica-doctor-schedule.omedica-intro-content {margin:0;padding:var(--space-md);}
html body .omedica-doctor-hero .omedica-doctor-schedule h2 {margin:0;font-size:calc(var(--wp--preset--font-size--medium) * var(--omedica-scale-h2,1));}
html body .omedica-doctor-hero .omedica-doctor-schedule p {margin:0;overflow-wrap:break-word;}
html body .omedica-doctor-hero .omedica-doctor-schedule > div {min-width:0;max-width:100%;}
html body .omedica-doctor-hero .omedica-doctor-schedule > [data-booking-selector] {grid-template-columns:minmax(0,1fr);row-gap:var(--space-sm);}
html body .omedica-doctor-hero .omedica-doctor-schedule .omedica-date-strip {position:relative;min-width:0;max-width:100%;grid-template-columns:repeat(7,minmax(2.75rem,1fr));overflow-x:auto;padding:var(--wp--custom--focus--offset);}
html body .omedica-doctor-hero .omedica-doctor-schedule .omedica-date-strip label {position:relative;}
html body .omedica-doctor-hero .omedica-doctor-schedule .omedica-selector-submit {min-width:0;width:min(100%,16rem);max-width:100%;white-space:normal;overflow-wrap:break-word;}
.omedica-doctor-professional-more {margin-block-start:var(--space-sm);}
.omedica-doctor-professional-more summary {color:var(--wp--preset--color--action);cursor:pointer;min-height:var(--wp--custom--interaction--touch-target);display:list-item;align-content:center;}
@supports(text-wrap:balance){html body .omedica-doctor-hero__summary :is(h1,.omedica-doctor-specialties > li) {text-wrap:balance;}}
@media(max-width:767px){
 html body .omedica-doctor-hero__summary h1 {font-size:calc(1.25rem * var(--omedica-scale-h1,1));line-height:1.3;}
 html body .omedica-doctor-hero__summary :is(.omedica-doctor-specialties,.omedica-doctor-leadership,.omedica-hero-review) {font-size:var(--omedica-compact-ui-size);line-height:1.45;}
}
@container doctor-profile (min-width:32rem){html body .omedica-doctor-hero.omedica-doctor-hero--booking {--doctor-profile-photo-width:clamp(9rem,24cqi,14rem);}}
@container doctor-profile (min-width:64rem){
 /* The existing large portrait and measured two-row calendar set one 30rem × 40rem frame.
  * Its size is independent of calendar content and identical in both booking modes. */
 html body .omedica-doctor-hero.omedica-doctor-hero--booking {--doctor-profile-photo-width:30rem;--doctor-profile-photo-height:calc(var(--doctor-profile-photo-width) * 4 / 3);gap:var(--space-lg);--doctor-profile-layout:desktop;}
 html body .omedica-doctor-hero__summary {display:grid;grid-column:2;grid-row:1;grid-template-columns:minmax(0,1fr);grid-template-rows:max-content minmax(min-content,1fr);min-block-size:var(--doctor-profile-photo-height);gap:var(--space-md);align-content:start;}
 html body .omedica-page-entry .omedica-single-doctor .omedica-doctor-hero__summary > header {grid-column:auto;grid-row:auto;align-self:start;padding:var(--space-md);border:var(--wp--custom--border--width) solid var(--wp--preset--color--border);border-radius:var(--wp--custom--radius--md);background:var(--wp--preset--color--background);}
 html body .omedica-doctor-hero__summary > :not(header) {grid-column:auto;}
 /* Only the calendar surface absorbs spare height; dates/time keep their natural sizes. */
 html body .omedica-doctor-hero .omedica-doctor-schedule > [data-booking-selector] {grid-template-rows:max-content max-content minmax(calc(88px + var(--space-xs)),1fr) max-content;}
 html body .omedica-doctor-hero .omedica-doctor-schedule .omedica-selector-header {grid-row:1;}
 html body .omedica-doctor-hero .omedica-doctor-schedule .omedica-date-strip {grid-row:2;align-self:start;}
 html body .omedica-doctor-hero .omedica-doctor-schedule .omedica-time-slots {grid-row:3;align-self:start;grid-template-columns:repeat(8,minmax(0,1fr));grid-auto-rows:44px;align-content:start;block-size:calc(88px + var(--space-xs));min-block-size:calc(88px + var(--space-xs));max-block-size:calc(88px + var(--space-xs));overflow-y:auto;overscroll-behavior-y:contain;scroll-padding:var(--wp--custom--focus--offset);}
 html body .omedica-doctor-hero .omedica-doctor-schedule [data-booking-no-slots] {grid-column:1;grid-row:3;align-self:start;}
 html body .omedica-doctor-hero .omedica-doctor-schedule .omedica-selector-submit {grid-row:4;align-self:end;}
 html body .omedica-doctor-hero .omedica-doctor-schedule [data-selector-status] {grid-row:5;}
 /* The last help surface owns spare height; chips retain natural dimensions. */
 html body .omedica-doctor-hero--request .omedica-doctor-hero__summary:has(#doctor-help) {min-block-size:var(--doctor-profile-photo-height);grid-template-rows:max-content max-content minmax(min-content,1fr);}
 html body .omedica-doctor-hero--request #doctor-help {margin:0;padding:var(--space-md);align-content:start;}
 /* Phone: natural information/phone rows; spare space belongs to the final surface. */
 html body .omedica-doctor-hero--information .omedica-doctor-hero__summary {grid-template-rows:max-content max-content minmax(min-content,1fr);}
 html body .omedica-doctor-hero .omedica-doctor-schedule--phone {grid-template-columns:minmax(0,1fr) auto;align-content:start;align-items:center;column-gap:var(--space-sm);}
 html body .omedica-doctor-hero .omedica-doctor-schedule--phone h2 {grid-column:1/-1;}
 html body .omedica-doctor-hero .omedica-doctor-schedule--phone p {grid-column:1;grid-row:2;}
 html body .omedica-doctor-hero .omedica-doctor-schedule--phone .omedica-doctor-hero-actions {grid-column:2;grid-row:2;margin:0;}
 html body .omedica-doctor-hero--information #doctor-help {margin:0;padding:var(--space-md);align-content:start;}
 html body .omedica-doctor-hero--information #doctor-help > ul {align-items:start;align-content:start;margin-block:var(--space-sm) 0;}
 html body .omedica-doctor-hero--information #doctor-help > ul > li {flex:0 1 auto;max-inline-size:100%;}
}
@container doctor-profile (max-width:16rem){
 html body .omedica-doctor-hero.omedica-doctor-hero--booking {grid-template-columns:minmax(0,1fr);}
 html body .omedica-doctor-hero--booking > .omedica-doctor-hero__portrait-column {grid-row:auto;max-width:var(--doctor-profile-photo-width);}
 html body .omedica-page-entry .omedica-single-doctor .omedica-doctor-hero__summary > header {grid-column:1;grid-row:auto;}
}

/* Compact help chips share the phone presentation without stretching flex rows. */
html body .omedica-doctor-hero--request #doctor-help > ul {align-items:flex-start;align-content:flex-start;margin-block:var(--space-sm) 0;}
html body .omedica-doctor-hero--request #doctor-help > ul > li {flex:0 1 auto;min-inline-size:0;max-inline-size:100%;overflow-wrap:anywhere;box-sizing:border-box;}
html body .omedica-doctor-hero .omedica-doctor-schedule--request {align-content:start;}

html body .omedica-doctor-hero .omedica-doctor-schedule--request .omedica-doctor-hero-actions {margin-inline-start:0;}
@media(min-width:768px){
 html body .omedica-doctor-hero .omedica-doctor-schedule--request {grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:var(--space-md);}
 html body .omedica-doctor-hero .omedica-doctor-schedule--request h2 {grid-column:1;grid-row:1;}
 html body .omedica-doctor-hero .omedica-doctor-schedule--request p {grid-column:1;grid-row:2;}
 html body .omedica-doctor-hero .omedica-doctor-schedule--request .omedica-doctor-hero-actions {grid-column:2;grid-row:1 / span 2;align-self:center;}
}
