/* Internal landing contract: shared copy/media geometry, with optional direction CTA. */
html body :is(.omedica-about-editorial .omedica-about-hero,.omedica-single-direction .omedica-service-hero.has-direction-media,.omedica-complex-hero) {
 display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:var(--content-gap);align-items:center;
 min-height:0;padding:0;margin-block:var(--omedica-intro-breadcrumb-to-title,var(--space-md)) 0;background:transparent;border-radius:0;
}
html body :is(.omedica-about-hero,.omedica-single-direction .omedica-service-hero,.omedica-complex-hero) h1 {
 font-size:calc(clamp(2rem,3.25vw,3rem) * var(--omedica-scale-h1,1));line-height:1.12;max-width:24ch;margin-block:0 var(--space-sm);word-break:normal;overflow-wrap:break-word;
}
html body :is(.omedica-about-intro-copy,:is(.omedica-single-direction .omedica-service-hero,.omedica-complex-hero) > div:first-child) {padding:0;min-width:0;align-self:center;}
html body :is(.omedica-about-intro-copy,:is(.omedica-single-direction .omedica-service-hero,.omedica-complex-hero) > div:first-child) > p {max-width:52ch;margin-block:var(--space-sm);}
html body :is(.omedica-about-hero .omedica-about-lcp img,:is(.omedica-single-direction,.omedica-complex-hero) .omedica-direction-photo) {
 display:block;width:100%;height:auto;aspect-ratio:3/2;max-height:none;object-fit:cover;object-position:center;border-radius:var(--wp--custom--radius--md);
}
html body .omedica-single-direction .omedica-page-section-nav {margin-block:var(--omedica-rhythm-hero-nav) var(--omedica-rhythm-nav-content);}
@media(max-width:767px) {
 html body :is(.omedica-about-editorial .omedica-about-hero,.omedica-single-direction .omedica-service-hero.has-direction-media,.omedica-complex-hero) {grid-template-columns:minmax(0,1fr);gap:var(--space-md);align-items:start;}
 html body .omedica-single-direction .omedica-page-section-nav {gap:var(--space-xs);}
 html body .omedica-single-direction .omedica-page-section-nav a {padding:var(--space-xs) var(--space-sm);min-height:44px;box-sizing:border-box;display:flex;align-items:center;}
}
html body :is(.omedica-about-hero > figure,:is(.omedica-single-direction,.omedica-complex-hero) .omedica-direction-media) {width:100%;max-width:32rem;justify-self:end;}
html body main.omedica-page-entry :is(.omedica-single-direction .omedica-service-hero,.omedica-complex-hero) > div:first-child {align-self:center;}
@media(max-width:767px){html body :is(.omedica-about-hero > figure,:is(.omedica-single-direction,.omedica-complex-hero) .omedica-direction-media) {max-width:none;justify-self:stretch;}}
html body .omedica-single-direction .omedica-service-hero:not(.has-direction-media) {grid-template-columns:minmax(0,1fr);min-height:0;padding:0;background:transparent;}
html body .omedica-internal-intro {display:grid;gap:var(--space-sm);min-width:0;}
html body .omedica-about-editorial .omedica-internal-intro > .omedica-about-hero {margin-block:0;}
/* Verified source partner images use the existing slot without distortion/upscaling. */
.omedica-partner-item .omedica-media-slot {display:flex;align-items:center;justify-content:center;min-height:0;padding:var(--space-md);}
.omedica-partner-item .omedica-media-slot figure {margin:0;width:100%;display:flex;justify-content:center;}
.omedica-partner-item .omedica-media-slot img {display:block;width:auto;height:auto;max-width:100%;max-height:10rem;object-fit:contain;}

/* Shared related specialists: count and available container width are independent. */
html body .omedica-compact-doctors-grid {grid-template-columns:repeat(auto-fit,minmax(min(100%,18rem),1fr));gap:var(--stack-gap);}
html body .omedica-compact-doctors-grid:has(> :only-child) {max-width:32rem;}
html body .omedica-compact-doctors-grid:has(> :nth-child(2):last-child) {max-width:calc(64rem + var(--stack-gap));}
@media(max-width:767px){html body .omedica-compact-doctors-grid {grid-template-columns:minmax(0,1fr);}}
/* Intro trimming must not remove padding from a bordered content surface. */
html body .omedica-page-entry #service-details.omedica-domain-surface {padding:var(--card-padding-spacious);}
html body #service-details > :first-child {margin-block-start:0;}
html body #service-details > :last-child {margin-block-end:0;}
html body #service-details > * + * {margin-block-start:var(--prose-paragraph-gap);}
@media(max-width:767px){html body .omedica-page-entry #service-details.omedica-domain-surface {padding:var(--card-padding);}}

/* Bounded doctor prose uses the same rhythm as service prose. */
html body .omedica-doctor-about {padding:var(--card-padding-spacious);overflow-wrap:anywhere;}
html body .omedica-doctor-about > .omedica-content {padding-block:0;margin-block-start:var(--stack-gap);}
html body .omedica-doctor-about > :first-child,html body .omedica-doctor-about .omedica-content > :first-child {margin-block-start:0;}
html body .omedica-doctor-about :is(h3,h4) {margin-block:var(--content-gap) var(--stack-gap);}
html body .omedica-doctor-about > :last-child {margin-block-end:0;}
.omedica-service-description :is(ul,ol),.omedica-doctor-about :is(ul,ol) {padding-inline-start:var(--space-md);margin-block:var(--stack-gap);list-style-position:outside;}
.omedica-service-description li,.omedica-doctor-about li {padding-inline-start:var(--space-xs);margin-block:0;line-height:1.65;overflow-wrap:anywhere;}
.omedica-service-description li + li,.omedica-doctor-about li + li {margin-block-start:var(--prose-list-gap);}
.omedica-service-description li::marker,.omedica-doctor-about li::marker {font-size:1em;color:var(--wp--preset--color--action);}
.omedica-price-row > :first-child {min-width:0;overflow-wrap:anywhere;}
@media(max-width:767px){html body .omedica-doctor-about {padding:var(--card-padding);} .omedica-price-row {flex-wrap:wrap;} }
/* Direction hero uses the existing copy/media composition and semantic tokens. */
@media(min-width:768px){html body :is(.omedica-single-direction .omedica-service-hero.has-direction-media,.omedica-complex-hero) {grid-template-columns:minmax(0,3fr) minmax(0,4fr);}html body :is(.omedica-single-direction,.omedica-complex-hero) .omedica-direction-media {max-width:none;}}
.omedica-publication-cover {width:100%;max-width:100%;height:auto;max-height:none;object-fit:contain;aspect-ratio:auto;border-radius:var(--wp--custom--radius--md);margin-block:var(--space-md);}
.omedica-section-header {display:flex;align-items:center;justify-content:space-between;gap:var(--space-md);flex-wrap:wrap;}
.omedica-section-controls {display:flex;align-items:center;gap:var(--space-sm);flex-wrap:wrap;}
html body .omedica-section-controls .omedica-review-carousel-controls {margin:0;}
html body .omedica-section-controls [hidden] {display:none!important;}

html body .omedica-doctor-card {background:transparent;border:0;box-shadow:none;padding:0;display:flex;flex-direction:column;min-width:0;}
html body .omedica-doctor-card__main {flex:1;}
html body .omedica-doctor-card__content {padding:var(--space-md) 0;}
html body .omedica-doctor-card__booking {margin-block-start:auto;}
html body .omedica-doctor-card .omedica-doctor-specialties li {white-space:normal;overflow:visible;max-height:none;-webkit-line-clamp:unset;}
html body #doctor-help > ul {display:flex;flex-wrap:wrap;gap:var(--space-sm);list-style:none;padding:0;}
html body #doctor-help > ul > li {margin:0;border:var(--wp--custom--border--width) solid var(--wp--preset--color--border);border-radius:var(--wp--custom--radius--md);padding:var(--space-xs) var(--space-sm);}
.omedica-ui-disclosure {display:block;min-height:44px;color:var(--wp--preset--color--action);background:transparent;border:0;text-decoration:underline;font:inherit;cursor:pointer;padding:var(--space-xs) 0;}
.omedica-ui-timeline {border-inline-start:var(--wp--custom--border--width) solid var(--wp--preset--color--border);padding-inline-start:var(--space-md);}
.omedica-ui-timeline > * {position:relative;}
.omedica-ui-timeline > *::before {content:'';position:absolute;inset-inline-start:calc(-1 * var(--space-md) - .25rem);top:.65em;width:.5rem;height:.5rem;border-radius:50%;background:var(--wp--preset--color--action);}
.omedica-price-group {border-block-end:var(--wp--custom--border--width) solid var(--wp--preset--color--border);padding-block:var(--space-sm);}
.omedica-price-group > summary {cursor:pointer;min-height:44px;align-content:center;font-weight:600;}
html body .omedica-doctor-card > .omedica-doctor-card__details {display:flex;align-items:center;gap:var(--space-xs);min-height:44px;position:relative;margin-block-end:var(--space-xs);color:var(--wp--preset--color--action);}

/* Canonical booking presentation: dialog and profile share every control and state. */
html body .omedica-booking-ui .omedica-booking-option {height:auto;min-height:44px;display:flex;align-items:center;gap:var(--space-sm);padding:var(--space-sm) var(--space-md);line-height:1.45;white-space:normal;overflow:visible;}
html body .omedica-booking-ui .omedica-booking-option>span:first-child {flex:1;min-width:0;overflow-wrap:anywhere;white-space:normal;}
html body .omedica-booking-ui .omedica-booking-option>span:last-child {flex:0 0 auto;align-self:center;}
html body .omedica-booking-ui .omedica-date-strip {display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:var(--space-xs);}
html body .omedica-booking-ui .omedica-time-slots {display:grid;grid-template-columns:repeat(auto-fit,minmax(5.75rem,1fr));gap:var(--space-xs);}
html body .omedica-booking-ui :is(.omedica-date-strip,.omedica-time-slots) label {position:relative;box-sizing:border-box;min-width:0;min-height:44px;height:auto;padding:var(--space-xs);font-size:var(--wp--preset--font-size--small);line-height:1.35;display:flex;justify-content:center;align-items:center;border-radius:var(--wp--custom--radius--sm);}
html body .omedica-booking-ui :is(.omedica-date-strip,.omedica-time-slots) label:has(input:checked) {background:var(--wp--preset--color--action);color:var(--wp--preset--color--background);border-color:var(--wp--preset--color--action);}
html body .omedica-booking-ui :is(.omedica-date-strip,.omedica-time-slots) label:hover:not(:has(input:disabled)) {border-color:var(--wp--preset--color--action);}
html body .omedica-booking-ui :is(.omedica-date-strip,.omedica-time-slots) label:has(input:focus-visible) {outline:var(--wp--custom--focus--width) solid var(--wp--preset--color--action);outline-offset:var(--wp--custom--focus--offset);}
html body .omedica-booking-ui :is(.omedica-date-strip,.omedica-time-slots) label:has(input:disabled) {opacity:.45;cursor:default;}
.omedica-booking-calendar-heading {display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:var(--space-xs);}
html body .omedica-booking-ui .omedica-booking-timezone {margin:0;font-size:var(--wp--preset--font-size--small);color:var(--wp--preset--color--text-muted);}
html body .omedica-booking-inline .omedica-booking-flow-component {padding:0;border:0;background:transparent;}
html body .omedica-booking-inline .omedica-booking-step {padding:0;}
html body .omedica-booking-inline .omedica-booking-step>h2 {margin-block-end:var(--space-sm);}
html body .omedica-booking-inline .omedica-booking-service-list {max-height:12rem;overflow:auto;overscroll-behavior:contain;}
html body .omedica-booking-inline .omedica-booking-summary {margin:0 0 var(--space-sm);padding:0;grid-template-columns:auto minmax(0,1fr);}
html body .omedica-booking-ui .omedica-booking-summary dd {min-width:0;overflow-wrap:anywhere;}
html body .omedica-booking-inline .omedica-booking-category,html body .omedica-booking-inline .omedica-booking-caption {display:none;}
html body .omedica-booking-ui .omedica-booking-flow__bar,html body .omedica-booking-ui .omedica-week-nav {margin-block:var(--space-xs) var(--space-sm);}
html body .omedica-booking-ui .omedica-booking-subheading {margin-block:var(--space-sm);}
html body .omedica-booking-ui .omedica-booking-next {margin-block-start:var(--space-md);min-height:44px;}
.omedica-education-groups {display:grid;gap:var(--space-lg);}
.omedica-education-institution {margin:0;overflow-wrap:anywhere;}
.omedica-education-records {list-style:none;padding:0;margin:var(--space-sm) 0 0;border-inline-start:2px solid var(--wp--preset--color--border);}
.omedica-education-records li {padding:var(--space-xs) var(--space-md);}
.omedica-education-records time {color:var(--wp--preset--color--action);font-weight:700;margin-inline-end:var(--space-sm);}
.omedica-education-original {font-size:var(--wp--preset--font-size--small);color:var(--wp--preset--color--text-muted);}
html body .omedica-price-group>summary {display:flex;justify-content:space-between;gap:var(--space-sm);min-height:44px;cursor:pointer;}
html body .omedica-price-group>summary::after {content:'+';flex:none;color:var(--wp--preset--color--action);}
html body .omedica-price-group[open]>summary::after {content:'−';}
@media(max-width:767px){html body .omedica-booking-ui .omedica-date-strip {gap:2px;}html body .omedica-booking-ui .omedica-time-slots {grid-template-columns:repeat(auto-fit,minmax(4.75rem,1fr));}}

html body .omedica-booking-inline .omedica-booking-flow {display:grid;gap:var(--space-sm);margin:0;}
html body .omedica-booking-inline .omedica-booking-flow>* {margin-block:0;}
html body .omedica-booking-inline .omedica-booking-step>* {margin-block-start:var(--space-sm);margin-block-end:0;}
html body .omedica-booking-inline .omedica-booking-step>:first-child {margin-block-start:0;}
html body .omedica-booking-ui .omedica-date-strip label {flex-direction:column;gap:0;min-height:52px;}
html body .omedica-booking-ui .omedica-date-strip label small {font-size:.75em;}
html body .omedica-booking-ui .omedica-date-strip label strong {font-size:1em;}
/* Scroll containers must not squeeze intrinsic rows to their capped total height. */
html body .omedica-booking-ui :is(.omedica-booking-service-list,.omedica-booking-catalog-list) {grid-auto-rows:max-content;align-content:start;}

html body .omedica-booking-inline .omedica-booking-flow {gap:var(--wp--preset--spacing--space-xs);}
html body .omedica-booking-inline .omedica-booking-step>* {margin-block-start:var(--wp--preset--spacing--space-xs);}
html body .omedica-booking-inline .omedica-booking-flow__bar,html body .omedica-booking-inline .omedica-week-nav {margin-block:0;}
html body .omedica-booking-ui .omedica-date-strip {scroll-padding:var(--space-xs);}
@media(max-width:767px){html body .omedica-booking-ui .omedica-date-strip {grid-template-columns:repeat(7,minmax(44px,1fr));max-width:100%;overflow-x:auto;scroll-snap-type:x proximity;}html body .omedica-booking-ui .omedica-date-strip label {scroll-snap-align:start;}}
/* Natural doctor cards: prevent stretch and intrinsic percentage-image feedback in strips. */
html body .omedica-doctor-card {height:auto;min-height:0;align-self:start;}
html body .omedica-doctor-card__main,html body .omedica-doctor-card__content {flex:0 0 auto;}
html body .omedica-doctor-card :is(.omedica-doctor-card__details,.omedica-doctor-card__booking) {margin-block-start:var(--wp--preset--spacing--space-xs);}
html body .omedica-about-scroll {align-items:flex-start;}
html body .omedica-doctor-card .omedica-doctor-portrait {width:100%;aspect-ratio:3/4;height:auto;flex:none;}
html body .omedica-doctor-card .omedica-doctor-portrait img {height:100%;width:100%;object-fit:cover;}
html body .omedica-doctor-card .omedica-doctor-specialties {display:flex;flex-wrap:wrap;gap:var(--space-xs) var(--space-sm);padding:0;list-style:none;}
html body .omedica-doctor-card .omedica-doctor-specialties li {margin:0;line-height:1.45;}
html body .omedica-doctor-card .omedica-doctor-specialties li:not([data-professional-field=specialty]) {flex-basis:100%;}
html body .omedica-doctor-card li[data-professional-field=specialty]+li[data-professional-field=specialty]::before {content:'·';margin-inline-end:var(--space-xs);}
html body .omedica-doctor-hero__summary li[data-professional-field=additional] {flex-basis:100%;}
html body .omedica-doctor-schedule {padding:var(--space-md);gap:var(--space-sm);}
html body .omedica-booking-inline [data-booking-step=datetime] .omedica-booking-calendar-heading h2 {display:none;}
html body .omedica-booking-inline .omedica-booking-timezone {font-size:.8125rem;}
html body .omedica-booking-inline .omedica-time-slots {grid-template-columns:repeat(auto-fit,minmax(4.5rem,1fr));}
html body .omedica-education-group {position:relative;padding-inline-start:2rem;}
html body .omedica-education-institution {font-size:var(--wp--preset--font-size--small);line-height:1.5;margin:0 0 var(--space-sm);}
html body .omedica-education-institution::before {content:'\f118';font-family:dashicons;position:absolute;inset-inline-start:0;color:var(--wp--preset--color--action);font-size:1.25rem;}
html body .omedica-education-records {border-inline-start:1px solid var(--wp--preset--color--border);margin:0 0 var(--space-md);padding:0;list-style:none;}
html body .omedica-doctor-about .omedica-education-records li {padding:0 0 var(--space-md) var(--space-md);margin:0;list-style:none;line-height:1.5;}
html body .omedica-doctor-about .omedica-education-records li::before {display:none;}
html body .omedica-education-records time {display:block;font-weight:400;color:var(--wp--preset--color--text-muted);}
html body .omedica-doctor-about .omedica-education-program {margin:var(--space-xs) 0 0;color:var(--wp--preset--color--text);line-height:1.5;}
html body .omedica-price-group>summary {justify-content:space-between;align-items:center;}
html body .omedica-price-group>summary small {display:block;color:var(--wp--preset--color--text-muted);font-size:.875rem;font-weight:400;}
/* Profile cards need their own inset despite the shared intro rhythm reset. */
html body .omedica-doctor-hero__summary li:not([data-professional-field=specialty]) {flex-basis:100%;}
html body .omedica-booking-inline .omedica-booking-step {gap:var(--space-xs);}
html body .omedica-booking-inline .omedica-booking-flow-component {gap:var(--space-xs);}
html body .omedica-booking-inline .omedica-booking-step > * {margin-block:0;}
html body .omedica-booking-inline .omedica-booking-calendar-heading {line-height:1.4;}
html body .omedica-education-institution {font-weight:600;}
html body .omedica-education-records {margin:0;margin-inline-start:-1.5rem;}
html body .omedica-doctor-about .omedica-education-records li {padding-inline-start:1.5rem;}
/* Point corrective pass: rows stretch naturally; intrinsic image height never feeds flex sizing. */
html body .omedica-doctor-card {align-self:stretch;}
html body .omedica-doctor-card__main {flex:0 0 auto;}
html body .omedica-doctor-card .omedica-doctor-portrait {position:relative;display:block;}
html body .omedica-doctor-card .omedica-doctor-portrait img {position:absolute;inset:0;}
html body .omedica-doctor-card > .omedica-doctor-card__details {margin-block-start:auto;}
html body .omedica-about-scroll {align-items:stretch;}
html body .omedica-doctor-card li[data-professional-field=specialty]+li[data-professional-field=specialty]::before,
html body .omedica-doctor-hero__summary li[data-professional-field=specialty]+li[data-professional-field=specialty]::before {content:', ';margin:0;}
html body :is(.omedica-doctor-card,.omedica-doctor-hero__summary) .omedica-doctor-specialties {column-gap:0;}
html body .omedica-price-group {padding-block:var(--space-md);}
html body .omedica-price-group > summary {padding-block-end:var(--space-sm);}
html body .omedica-price-group > summary small {margin-block-start:var(--space-xs);}
html body .omedica-price-group[open] > summary {border-block-end:1px solid var(--wp--preset--color--border);margin-block-end:var(--space-sm);}
html body .omedica-price-group > .omedica-price-list > :first-child {padding-block-start:var(--space-sm);}
html body .omedica-price-section > h3 {margin-block-end:var(--space-md);}
html body .omedica-service-subgroup {margin-block:var(--space-md);}
html body .omedica-service-subgroup > h4 {margin:0 0 var(--space-sm);font-size:var(--wp--preset--font-size--small);font-weight:600;line-height:1.5;}
html body .omedica-service-subgroup > .omedica-price-list {padding-inline-start:var(--space-md);border-inline-start:1px solid var(--wp--preset--color--border);}
html body .omedica-direction-intro {max-width:52ch;margin-block:var(--space-sm) var(--space-md);line-height:1.65;overflow-wrap:anywhere;}
html body .omedica-direction-intro p {margin:0;}
html body .omedica-education-institution,html body .omedica-education-institution strong {font-weight:500;}
html body .omedica-education-institution::before {content:'';font-family:inherit;width:.5rem;height:.5rem;border-radius:50%;background:var(--wp--preset--color--action);top:.55em;inset-inline-start:.25rem;}
html body .omedica-education-records {margin-inline-start:calc(-1.5rem + .5rem);}
html body .omedica-doctor-about .omedica-education-records li {padding-inline-start:1rem;}
/* Date/time selector reuses the controller; patient/service/review stay in the shared modal. */
html body .omedica-date-selector [data-booking-selector] {display:grid;gap:var(--space-md);min-width:0;}
html body .omedica-selector-header {display:flex;align-items:center;justify-content:space-between;gap:var(--space-sm);}
html body .omedica-selector-arrows {display:flex;gap:var(--space-xs);flex:none;}
html body .omedica-date-selector fieldset {border:0;margin:0;padding:0;min-width:0;}
html body .omedica-date-selector .omedica-date-strip {overflow:visible;grid-template-columns:repeat(7,minmax(0,1fr));gap:var(--space-xs);}
html body .omedica-date-selector .omedica-date-strip label {min-height:88px;background:var(--wp--preset--color--background);border:1px solid var(--wp--preset--color--border);border-radius:var(--wp--custom--radius--sm);gap:var(--space-xs);}
html body .omedica-date-selector .omedica-date-strip strong {font-size:1.5rem;color:var(--wp--preset--color--action);}
html body .omedica-date-selector .omedica-date-strip small {font-size:.75rem;color:var(--wp--preset--color--text-muted);}
html body .omedica-date-selector .omedica-date-strip label:has(input:checked) :is(strong,small) {color:var(--wp--preset--color--background);}
html body .omedica-date-selector .omedica-date-strip label:has(input:disabled) {opacity:1;background:var(--wp--preset--color--surface);color:var(--wp--preset--color--text-muted);}
html body .omedica-date-selector .omedica-date-strip label:has(input:disabled) :is(strong,small) {color:var(--wp--preset--color--text-muted);opacity:.45;}
html body .omedica-selector-submit {display:inline-flex;align-items:center;justify-content:center;text-align:center;justify-self:start;min-width:min(100%,16rem);min-height:44px;}
@media(max-width:1023px){html body .omedica-date-selector .omedica-date-strip {gap:3px;}html body .omedica-date-selector .omedica-date-strip label {padding:4px;}html body .omedica-selector-header h2 {font-size:1rem;}html body .omedica-selector-arrows {gap:2px;}}
html body .omedica-doctor-hero__summary .omedica-doctor-specialties li[data-professional-field=specialty]+li[data-professional-field=specialty]::before,
html body .omedica-doctor-card .omedica-doctor-specialties li[data-professional-field=specialty]+li[data-professional-field=specialty]::before {content:', ';margin:0;}
html body .omedica-date-selector .omedica-date-strip label strong {font-size:1.5rem;}
html body .omedica-date-selector .omedica-time-slots label {background:var(--wp--preset--color--background);}
html body .omedica-doctor-hero__summary .omedica-doctor-specialties li[data-professional-field=specialty]+li[data-professional-field=specialty] {padding-inline-start:.1rem;}
html body .omedica-doctor-hero__summary .omedica-doctor-specialties li[data-professional-field=specialty]+li[data-professional-field=specialty]::before {margin-inline-end:0;}
html body .omedica-doctor-hero__summary :is(header,.omedica-doctor-hero__identity) > .omedica-doctor-specialties {column-gap:0;}
html body .omedica-doctor-hero__summary .omedica-doctor-specialties li[data-professional-field=specialty]:has(+li[data-professional-field=specialty])::after {content:',\00a0';}
html body .omedica-doctor-hero__summary .omedica-doctor-specialties li[data-professional-field=specialty]+li[data-professional-field=specialty]::before,
html body .omedica-doctor-card .omedica-doctor-specialties li[data-professional-field=specialty]+li[data-professional-field=specialty]::before {content:none;}
@media(min-width:1024px) and (max-height:820px){
 html body .omedica-date-selector [data-booking-selector] {gap:var(--space-xs);}
 html body .omedica-date-selector .omedica-date-strip label {gap:4px;}
}
html body .omedica-education-records {margin-inline-start:-1.5rem;}
html body .omedica-doctor-about .omedica-education-records li {padding-inline-start:1.5rem;}

/* Follow-up: a large vertical portrait, shared selector and independent subgroups. */
html body .omedica-service-subgroup > .omedica-price-list {padding-inline-start:0;border-inline-start:0;}
html body .omedica-service-subgroup > summary {cursor:pointer;font-size:var(--wp--preset--font-size--small);font-weight:600;line-height:1.5;padding-block:var(--space-sm);}
html body .omedica-service-subgroup[open] > summary {margin-block-end:var(--space-xs);}
html body .omedica-booking-step.omedica-date-selector {display:grid;gap:var(--space-md);min-width:0;}
html body .omedica-booking-step.omedica-date-selector[hidden] {display:none;}
html body .omedica-date-selector .omedica-date-strip label {display:flex;flex-direction:column;justify-content:center;align-items:center;}
html body .omedica-date-selector .omedica-time-slots label {border:1px solid var(--wp--preset--color--border);border-radius:var(--wp--custom--radius--pill);min-height:44px;}
html body .omedica-date-selector .omedica-selector-submit {justify-self:start;min-width:16rem;}

/* Stable desktop composition; the slot viewport reserves two ordinary rows. */
@media(min-width:1200px){
 html body .omedica-booking-inline:not(.omedica-doctor-schedule) .omedica-time-slots {grid-template-columns:repeat(8,minmax(0,1fr));grid-auto-rows:44px;gap:var(--space-xs);align-content:start;min-block-size:calc(88px + var(--space-xs));max-block-size:calc(88px + var(--space-xs));overflow-y:auto;}
}
html body .omedica-date-selector .omedica-date-strip label:has(input:disabled):hover {box-shadow:none;transform:none;cursor:default;}
html body .omedica-phone-error {display:block;margin-block-start:var(--space-xs);color:var(--wp--custom--status--error);font-size:.875rem;line-height:1.5;}
html body .omedica-phone-error[hidden] {display:none;}
html body input[type=tel][aria-invalid=true] {border-color:var(--wp--custom--status--error)!important;}
html body .omedica-service-subgroup.omedica-price-group > summary {font-size:inherit;padding-block:var(--space-sm);}
html body .omedica-service-subgroup.omedica-price-group > summary::marker {content:'';}
html body .omedica-service-subgroup.omedica-price-group > summary::-webkit-details-marker {display:none;}

/* Same consent copy inside native forms and CF7 acceptance labels. */
.omedica-consent-copy {display:block;min-width:0;max-width:100%;overflow-wrap:anywhere;line-height:1.5;}
.omedica-consent-copy > span {display:block;}
.omedica-consent-copy > span + span {margin-block-start:var(--space-xs);}

/* Semantic biography sections use the existing About width, ink and spacing tokens. */
html body .omedica-doctor-about .omedica-about-section {margin-block:var(--space-lg);padding:0;border:0;background:transparent;min-width:0;}
html body .omedica-doctor-about .omedica-about-section:first-child {margin-block-start:0;}
html body .omedica-doctor-about .omedica-about-section h3 {font-size:var(--wp--preset--font-size--medium);margin:0 0 var(--space-md);line-height:1.35;}
html body .omedica-about-records {display:grid;gap:var(--space-md);padding:0;margin:0;list-style:none;min-width:0;}
html body .omedica-doctor-about .omedica-about-record {min-width:0;margin:0;padding:0;line-height:1.5;overflow-wrap:anywhere;}
html body .omedica-about-record > :first-child {margin-block-start:0;}
html body .omedica-about-record p {margin-block:var(--space-xs) 0;}
html body .omedica-about-record :is(.omedica-about-title,.omedica-about-description) > :first-child {margin-block-start:0;}
html body .omedica-about-record :is(.omedica-about-title,.omedica-about-description) > :last-child {margin-block-end:0;}
html body .omedica-about-institution {font-weight:500;}
html body :is(.omedica-about-period,.omedica-about-secondary) {color:var(--wp--preset--color--text-muted);font-size:var(--wp--preset--font-size--small);}
html body .omedica-about-records--timeline {border-inline-start:1px solid var(--wp--preset--color--border);padding-inline-start:var(--space-md);}
html body .omedica-about-records--timeline > .omedica-about-record {position:relative;}
html body .omedica-about-records--timeline > .omedica-about-record::before {content:'';position:absolute;inset-inline-start:calc(-1 * var(--space-md) - .25rem);top:.6em;width:.5rem;height:.5rem;border-radius:50%;background:var(--wp--preset--color--action);}
html body .omedica-about-records--intro {border-inline-start:3px solid var(--wp--preset--color--action);padding-inline-start:var(--space-md);}
html body .omedica-about-records--accreditation > .omedica-about-record {padding:var(--space-sm) 0;border-block-end:1px solid var(--wp--preset--color--border);}
html body .omedica-about-validity {font-weight:500;color:var(--wp--preset--color--text);}
html body .omedica-about-records--list {gap:var(--space-sm);padding-inline-start:var(--space-md);list-style:disc;}
html body .omedica-about-records [hidden] {display:none!important;}

/* Shared education chronology and compact credential metadata. */
html body .omedica-doctor-about .omedica-education-summary {margin-block:var(--space-xs) 0;line-height:1.5;}
html body .omedica-doctor-about .omedica-about-records--accreditation {gap:0;}
html body .omedica-doctor-about .omedica-about-records--accreditation > .omedica-about-record {padding-block:var(--space-sm);}
html body .omedica-doctor-about .omedica-about-records--accreditation .omedica-about-title {font-weight:600;}
html body .omedica-doctor-about .omedica-about-records--accreditation p {margin-block:0;}
html body .omedica-doctor-about .omedica-about-records--accreditation .omedica-about-secondary {margin-block-start:var(--space-xs);}
html body .omedica-accreditation-meta {display:flex;flex-wrap:wrap;gap:var(--space-xs) var(--space-md);margin-block-start:var(--space-xs);font-size:var(--wp--preset--font-size--small);line-height:1.5;color:var(--wp--preset--color--text-muted);}
html body .omedica-accreditation-meta > span {min-width:0;overflow-wrap:anywhere;}
html body .omedica-education-unified {margin-block:var(--space-md);}
html body .omedica-doctor-about .omedica-accreditation-legacy {list-style:none;padding:0;margin-block:var(--space-sm);}
html body .omedica-doctor-about .omedica-accreditation-legacy > li {padding:var(--space-sm) 0;margin:0;border-block-end:1px solid var(--wp--preset--color--border);}
html body .omedica-doctor-about .omedica-accreditation-legacy > li::before {display:none;}
html body .omedica-doctor-about .omedica-accreditation-legacy p {margin-block:0;}
html body .omedica-doctor-about .omedica-accreditation-legacy .omedica-about-title {font-weight:600;}
html body .omedica-doctor-about .omedica-accreditation-legacy .omedica-about-secondary {margin-block-start:var(--space-xs);}

/* Additional learning: compact chronological list, shared by all doctor sources. */
.omedica-doctor-about .omedica-about-records--additional { gap: 0; }
.omedica-about-records--additional > .omedica-about-record:not([hidden]) {
 display: grid; grid-template-columns: minmax(5rem, auto) minmax(0, 1fr);
 column-gap: var(--space-md); padding-block: var(--space-sm);
 border-block-end: 1px solid var(--wp--preset--color--border);
}
.omedica-about-records--additional .omedica-additional-body { min-width: 0; }
.omedica-about-records--additional .omedica-additional-body:only-child { grid-column: 1 / -1; }
.omedica-about-records--additional .omedica-about-record p { margin-block: 0 var(--space-xs); }
@media (max-width: 600px) {
 .omedica-about-records--additional > .omedica-about-record:not([hidden]) { grid-template-columns: minmax(0, 1fr); }
}

/* Reflow of existing program controls when patients enlarge text or text spacing. */
html body :is(.omedica-complex-hero .omedica-domain-actions,.omedica-home-program-track .omedica-service-card__actions) > a {min-width:0;max-width:100%;overflow-wrap:anywhere;}
html body .omedica-complex-hero .omedica-service-price {white-space:normal;min-width:0;overflow-wrap:anywhere;}
html body .omedica-complex-hero > div:first-child > p {overflow-wrap:anywhere;}

/* Shared doctor card: content-driven rows, unchanged portrait geometry. */
html body .omedica-doctor-card__content {padding:var(--space-sm) 0 var(--space-xs);gap:var(--space-xs);}
html body .omedica-doctor-card .omedica-doctor-card__content > :is(h3,p,ul) {margin:0;}
html body .omedica-doctor-card__footer {display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:var(--space-xs) var(--space-sm);margin-block-start:auto;min-width:0;}
html body .omedica-doctor-card__experience {flex:1 1 max-content;min-width:0;margin:0;overflow-wrap:anywhere;}
html body .omedica-doctor-card__footer > .omedica-doctor-card__details {position:relative;display:flex;align-items:center;flex:0 0 auto;min-height:var(--wp--custom--interaction--touch-target,44px);margin:0 0 0 auto;padding:0;white-space:nowrap;color:var(--wp--preset--color--action);}
html body .omedica-doctor-card > .omedica-doctor-card__booking {margin-block-start:var(--space-xs);box-sizing:border-box;min-width:0;max-width:100%;overflow-wrap:anywhere;}

/* Emergency word wrapping is only used when a whole word cannot fit large text. */
@media(max-width:767px){
 html:not(.special) body .omedica-content :is(p,li,h2,h3,h4),
 html:not(.special) body .omedica-publication .omedica-editorial-body :is(p,li,h2,h3,h4),
 html:not(.special) body .omedica-price-group > summary {overflow-wrap:anywhere;word-break:normal;}
 html:not(.special) body .omedica-price-group > summary {flex-wrap:wrap;min-width:0;}
 html:not(.special) body .omedica-price-group > summary > * {min-width:0;max-width:100%;overflow-wrap:anywhere;}
}

@media(max-width:767px){
 html:not(.special) body :is(.omedica-single-direction,.omedica-single-service) .omedica-service-hero:has(.omedica-direction-media) {display:flex;flex-direction:column;align-items:stretch;gap:var(--space-md);}
 html:not(.special) body :is(.omedica-single-direction,.omedica-single-service) .omedica-service-hero:has(.omedica-direction-media) > div:first-child {display:contents;}
 html:not(.special) body :is(.omedica-single-direction,.omedica-single-service) .omedica-service-hero:has(.omedica-direction-media) h1 {order:0;margin:0;}
 html:not(.special) body :is(.omedica-single-direction,.omedica-single-service) .omedica-service-hero > .omedica-direction-media {order:1;margin:0;width:100%;max-width:none;}
 html:not(.special) body :is(.omedica-single-direction,.omedica-single-service) .omedica-service-hero:has(.omedica-direction-media) :is(p,.omedica-domain-actions) {order:2;margin:0;}
 html:not(.special) body :is(.omedica-single-direction,.omedica-single-service) .omedica-direction-photo {aspect-ratio:2/1;max-height:none;object-fit:cover;object-position:center 35%;}
 /* Shared date picker in the profile, page and dialog: explicit week and roomy slots. */
 html:not(.special) body .omedica-booking-ui .omedica-selector-header {display:flex;align-items:center;flex-wrap:wrap;gap:var(--space-sm);}
 html:not(.special) body .omedica-booking-ui .omedica-selector-header h2 {flex:1 1 100%;}
 html:not(.special) body .omedica-booking-ui .omedica-selector-arrows {display:flex;gap:var(--space-sm);justify-content:space-between;align-items:center;width:100%;}
 html:not(.special) body .omedica-selector-range {display:block;font-size:var(--omedica-compact-ui-size);color:var(--wp--preset--color--text-muted);margin:0;text-align:center;min-width:0;overflow-wrap:anywhere;}
 html:not(.special) body .omedica-booking-ui .omedica-date-strip {gap:var(--space-xs);}
 html:not(.special) body .omedica-booking-ui .omedica-date-strip label {padding:var(--space-xs);font-size:var(--wp--preset--font-size--small);line-height:1.3;min-height:calc(var(--wp--custom--interaction--touch-target) + var(--space-md));}
 html:not(.special) body .omedica-booking-ui .omedica-date-strip label:has(input:disabled) {opacity:1;color:var(--wp--preset--color--text-muted);background:var(--wp--preset--color--surface);border-style:dashed;}
 html:not(.special) body .omedica-booking-ui .omedica-time-slots {gap:var(--space-xs);}
 html:not(.special) body .omedica-booking-ui .omedica-time-slots label {min-height:var(--wp--custom--interaction--touch-target);font-size:var(--wp--preset--font-size--small);padding:var(--space-xs);}
}

/* The calendar uses CMP-CAROUSEL-CONTROLS-001 from action-controls.css.
 * Keep its quiet default on touch too; no permanently visible circular surface. */
@media(hover:none),(pointer:coarse){
 html body .omedica-selector-arrows.omedica-carousel-controls > button:not(:disabled):not(:active):not(:focus-visible) {background:transparent;border-color:transparent;}
}
@media(max-width:767px){
 html:not(.special) body .omedica-booking-ui .omedica-selector-header {flex-wrap:nowrap;gap:var(--space-xs);}
 html:not(.special) body .omedica-booking-ui .omedica-selector-header h2 {flex:1 1 auto;min-width:0;margin:0;font-size:calc(1rem * var(--omedica-scale-h2,1));line-height:1.3;}
 html:not(.special) body .omedica-booking-ui .omedica-selector-arrows {width:auto;flex:0 0 auto;gap:var(--space-xs);}
 html:not(.special) body .omedica-booking-ui [data-selector-range] {display:block;position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0;}
}
