/* Homepage presentation. Palette, type, spacing and radii remain the shared theme contract. */
/* Native editing shows every banner in sequence; the public carousel still shares one grid cell. */
html body .omedica-home-hero:has([data-block]) {display:block;height:auto;}
html body .omedica-home-hero .omedica-home-slide[data-block] {grid-area:auto;margin-block-end:var(--space-md);}
html body .omedica-home {max-width:var(--wp--style--global--wide-size);margin-inline:auto;padding:var(--space-md) var(--page-gutter) var(--section-gap);display:grid;gap:var(--space-xl);}
html body .omedica-home > * {margin:0;min-width:0;}
html body .omedica-home :is(h1,h2,h3,p) {overflow-wrap:break-word;}
html body .omedica-home h1 {font-size:calc((clamp(2rem,3.8vw,3.5rem)) * var(--omedica-scale-h1,1));line-height:1.12;letter-spacing:-.035em;max-width:17ch;margin:var(--space-md) 0;}
html body .omedica-home h2 {font-size:calc((clamp(1.5rem,2.3vw,2rem)) * var(--omedica-scale-h2,1));line-height:1.2;margin:0;letter-spacing:-.025em;}
html body .omedica-home p {line-height:1.55;}
html body .omedica-home .omedica-section-header {display:flex;align-items:center;justify-content:space-between;gap:var(--space-md);margin-bottom:var(--space-lg);}
html body .omedica-home .omedica-section-header p {margin:0;flex-shrink:0;}
html body .omedica-home [hidden] {display:none!important;}
html body .omedica-home a:focus-visible,html body .omedica-home button:focus-visible {outline:2px solid var(--wp--preset--color--action);outline-offset:4px;}
html body .omedica-home-kicker {color:var(--wp--preset--color--action);font-weight:600;margin:0;font-size:.875rem;}
/* A single photographic canvas with an opaque reading surface tapering into the photo. */
html body .omedica-home-hero {position:relative;isolation:isolate;border-radius:var(--wp--custom--radius--lg);background:var(--wp--preset--color--surface);}
html body .omedica-home-slide {position:relative;isolation:isolate;min-height:470px;display:flex;align-items:center;padding:var(--space-xl);border-radius:inherit;overflow:hidden;margin:0;box-sizing:border-box;}
html body .omedica-home-slide > * {min-width:0;margin:0;}
html body .omedica-home-slide > figure {position:absolute;inset:0 0 0 34%;z-index:-2;}
html body .omedica-home-slide > figure img {display:block;width:100%;height:100%;object-fit:cover;object-position:60% 45%;border-radius:0;}
html body .omedica-home-slide::before {content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,var(--wp--preset--color--surface) 0%,var(--wp--preset--color--surface) 36%,color-mix(in srgb,var(--wp--preset--color--surface) 97%,transparent) 42%,transparent 70%);pointer-events:none;}
html body .omedica-home-hero-copy {width:47%;padding-bottom:var(--space-lg);}
html body .omedica-home-hero-copy > p:not(.omedica-home-kicker) {max-width:43ch;}
html body .omedica-home-slide .wp-block-buttons {margin-top:var(--space-lg);gap:var(--space-sm);}
html body .omedica-home-slide .wp-block-button__link {white-space:normal;}
html body .omedica-home-hero-controls {position:absolute;z-index:2;left:var(--space-xl);bottom:var(--space-sm);display:flex;gap:0;}
html body .omedica-home-hero-controls .omedica-home-dot {display:grid;place-items:center;width:44px;height:44px;background:transparent;border:0;border-radius:var(--wp--custom--radius--pill,999px);padding:0;cursor:pointer;}
html body .omedica-home-dot span {width:8px;height:8px;border-radius:999px;background:var(--wp--preset--color--text-muted);}
html body .omedica-home-dot[aria-pressed=true] span {width:28px;background:var(--wp--preset--color--action);}
html body .omedica-home-tabs {display:flex;flex-wrap:wrap;gap:var(--space-xs);margin:0 0 var(--space-md);}
html body .omedica-home-tabs button {font:inherit;min-height:44px;padding:var(--space-xs) var(--space-md);background:var(--wp--preset--color--background);border:1px solid var(--wp--preset--color--border);color:var(--wp--preset--color--text);border-radius:var(--wp--custom--radius--pill,999px);cursor:pointer;}
html body .omedica-home-tabs button[aria-pressed=true] {background:var(--wp--preset--color--action);color:var(--wp--preset--color--background);border-color:var(--wp--preset--color--action);}


html body .omedica-home-direction:is(:hover,:focus-visible) {border-color:var(--wp--preset--color--action);color:var(--wp--preset--color--action);}

html body .omedica-home-entry-links {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--space-md);padding-block:var(--space-md);margin-top:var(--space-md);border-block:1px solid var(--wp--preset--color--border);}
html body .omedica-home-entry-links p {margin:0;}
html body .omedica-home-entry-links a {display:flex;justify-content:space-between;align-items:center;min-height:44px;text-decoration:none;gap:var(--space-sm);font-weight:600;}
html body .omedica-home-about {display:grid;grid-template-columns:1fr 1fr;gap:var(--space-xl);align-items:center;}
html body .omedica-home-about > * {min-width:0;margin:0;}
html body .omedica-home-about figure img {width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;display:block;border-radius:var(--wp--custom--radius--lg);}
html body .omedica-home-about p:last-child {margin-bottom:0;}
@media(max-width:1199px){html body .omedica-home-slide {padding:var(--space-lg);min-height:440px;}html body .omedica-home-hero-controls {left:var(--space-lg);}html body .omedica-home-hero-copy {width:52%;}}
@media(max-width:767px){
 html body .omedica-home {gap:var(--space-xl);}
 html body .omedica-home .omedica-section-header {align-items:flex-start;flex-direction:column;gap:var(--space-xs);margin-bottom:var(--space-md);}
 html body .omedica-home-hero {grid-template-rows:auto auto;overflow:hidden;}
 html body .omedica-home-slide {display:grid;grid-template-rows:1fr auto;align-items:stretch;gap:0;padding:0;min-height:0;border-radius:0;}
 html body .omedica-home-hero-copy {width:100%;box-sizing:border-box;padding:var(--space-md);display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:var(--space-sm);min-width:0;}
 html body .omedica-home-hero-copy > :is(h1,h2,p,.wp-block-buttons) {margin:0;max-width:100%;overflow-wrap:anywhere;}
 html body .omedica-home-slide .wp-block-buttons {margin-block-start:var(--space-xs);}
 html body .omedica-home-slide .wp-block-button {min-width:0;max-width:100%;}
 html body .omedica-home-slide .wp-block-button__link {box-sizing:border-box;max-width:100%;overflow-wrap:anywhere;}
 html body .omedica-home h1 {font-size:calc((2rem) * var(--omedica-scale-h1,1));max-width:19ch;}
 html body .omedica-home-slide > figure {position:relative;inset:auto;z-index:auto;grid-row:2;width:100%;aspect-ratio:16/9;overflow:hidden;border-radius:0;}
 html body .omedica-home-slide > figure img {object-fit:var(--omedica-hero-object-fit,cover);object-position:var(--omedica-hero-object-position,center);}
 html body .omedica-home-slide::before {content:none;}
 html body .omedica-home-slide > figure::after {content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg,var(--wp--preset--color--surface),transparent 32%);}
 html body .omedica-home-hero-controls {position:static;grid-area:2/1;justify-content:center;min-width:0;margin:0;padding:0 var(--space-xs) var(--space-xs);background:transparent;}
 
 
 html body .omedica-home-entry-links {grid-template-columns:1fr;gap:0;}
 html body .omedica-home-entry-links p + p {border-top:1px solid var(--wp--preset--color--border);}
 html body .omedica-home-entry-links a {padding-block:var(--space-xs);}
 html body .omedica-home-about figure {order:2;}
}
@media(prefers-reduced-motion:reduce){html body .omedica-home * {scroll-behavior:auto!important;transition:none!important;}}
/* One geometry for every banner: hidden slides participate in sizing, never in focus order. */
html body .omedica-home-hero {display:grid;}
html body .omedica-home-slide {grid-area:1/1;}
html body .omedica-home .omedica-home-slide[hidden] {display:flex!important;visibility:hidden;pointer-events:none;}
html body .omedica-home h1 {max-width:15ch;}
html body .omedica-home-team {position:relative;}
html body .omedica-home-promos {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--space-md);}
html body .omedica-home-promo {position:relative;isolation:isolate;display:grid;grid-template-columns:1.4fr 1fr;min-width:0;overflow:hidden;border-radius:var(--wp--custom--radius--lg);background:var(--wp--preset--color--surface);min-height:230px;}
html body .omedica-home-promo-copy {grid-column:1;grid-row:1;display:flex;flex-direction:column;align-items:flex-start;gap:var(--space-sm);padding:var(--space-lg);z-index:1;}
html body .omedica-home-promo :is(h2,h3) {margin:0;font-size:calc((clamp(1.125rem,1.7vw,1.5rem)) * var(--omedica-scale-h3,1));line-height:1.25;letter-spacing:-.02em;}
html body .omedica-home-promo p {font-size:.875rem;margin:0;}
html body .omedica-home-promo-action {margin-top:auto;display:inline-flex;align-items:center;gap:var(--space-sm);min-height:44px;font-weight:600;}
html body .omedica-home-promo-visual {grid-column:2;grid-row:1;min-width:0;position:relative;}
html body .omedica-home-promo-image {position:absolute;width:100%;height:100%;object-fit:cover;object-position:50% 50%;}
html body .omedica-home-promo:nth-child(2n) {background:color-mix(in srgb,var(--wp--preset--color--action) 10%,var(--wp--preset--color--background));}
@media(max-width:767px){
 html body .omedica-home .omedica-home-slide[hidden] {display:grid!important;}
 html body .omedica-home-programs,html body .omedica-home-promos {grid-template-columns:minmax(0,1fr);}
 html body .omedica-home-promo {min-height:220px;grid-template-columns:1.8fr 1fr;}
 html body .omedica-home-promo-copy {padding:var(--space-md);}
}
/* Contain absolute screen-reader labels inside their scrolling card. */
html body .omedica-home .omedica-review-track {margin-bottom:0;}
@media(min-width:768px){
 html body .omedica-home-slide > figure {inset:0 0 0 40%;}
 html body .omedica-home-slide::before {background:linear-gradient(90deg,var(--wp--preset--color--surface) 0%,var(--wp--preset--color--surface) 36%,color-mix(in srgb,var(--wp--preset--color--surface) 98%,transparent) 41%,transparent 57%);}
}

/* Final rhythm: compact banner and contact canvas, full-height content under text scaling. */


@media(forced-colors:active){
 html body .omedica-home-dot span {background:ButtonText;forced-color-adjust:none;}
 html body .omedica-home-dot[aria-pressed=true] span {background:Highlight;}
}

/* REUSE FIRST: shared cards keep their catalogue/About presentation. */
html body .omedica-home .omedica-section-header a::after {content:none;}





html body .omedica-home-entry-links {border:0;padding:0;gap:var(--space-sm);}
html body .omedica-home-entry-links p {border:0;}
html body .omedica-home-entry-links a {border:1px solid var(--wp--preset--color--border);border-radius:var(--wp--custom--radius--md);padding:var(--space-md);background:var(--wp--preset--color--background);}
html body .omedica-home-entry-links a:hover {border-color:var(--wp--preset--color--action);background:var(--wp--preset--color--surface);}
html body .omedica-home-programs .omedica-complex-grid {grid-template-columns:repeat(3,minmax(0,1fr));}
html body .omedica-home-programs .omedica-complex-card {padding:var(--space-md);min-height:0;}
html body .omedica-home-programs .omedica-service-card__excerpt {display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;}
html body .omedica-home .omedica-contacts-system {padding:0;margin:0;}
html body .omedica-home .omedica-contacts-page {margin:0;padding:0;max-width:100%;}
html body .omedica-home-awards .omedica-photo-grid {display:flex!important;overflow-x:auto;scrollbar-width:none;scroll-snap-type:x proximity;gap:var(--space-sm);padding:4px;}
html body .omedica-home-awards .omedica-photo-grid::-webkit-scrollbar {display:none;}
html body .omedica-home-awards .omedica-photo-grid > * {flex:0 0 calc((100% - 5 * var(--space-sm))/6);min-width:0;scroll-snap-align:start;}
@media(max-width:767px){
 
 
 
 html body .omedica-home-entry-links {grid-template-columns:1fr;gap:var(--space-xs);}
 html body .omedica-home-entry-links p + p {border:0;}
 html body .omedica-home-entry-links a {padding:var(--space-sm) var(--space-md);}
 html body .omedica-home-programs .omedica-complex-grid {grid-template-columns:minmax(0,1fr);}
 html body .omedica-home-promos {grid-template-columns:minmax(0,1fr);}
 html body .omedica-home-awards .omedica-photo-grid > * {flex-basis:60%;}
}

html body .omedica-home-slide--banner h2 {font-size:calc((clamp(1.5rem,2.3vw,2rem)) * var(--omedica-scale-h2,1));max-width:26ch;line-height:1.2;}
html body .omedica-home-slide--banner p {font-size:.9375rem;}
html body .omedica-home-slide--banner .wp-block-buttons {margin-top:var(--space-md);}
@media(max-width:767px){html body .omedica-home-slide--banner h2 {font-size:calc((1.5rem) * var(--omedica-scale-h2,1));}html body .omedica-home-slide--banner p {font-size:.875rem;}}

/* Preserve the approved introduction dimensions and paired About composition. */
@media(min-width:768px){html body .omedica-home-slide {padding-block:var(--space-lg);}}
@media(max-width:767px){html body .omedica-home-about {grid-template-columns:minmax(0,1fr);gap:var(--space-lg);}}
html body .omedica-home .omedica-about-editorial.omedica-home-awards {padding:0;}
html body .omedica-home .omedica-about-awards .omedica-photo-grid {gap:var(--space-md);}
html body .omedica-home .omedica-about-awards .omedica-photo-grid > * {flex-basis:calc((100% - 5 * var(--space-md))/6);}
@media(max-width:1199px){html body .omedica-home .omedica-about-awards .omedica-photo-grid > * {flex-basis:calc((100% - 2 * var(--space-md))/3);}}
@media(max-width:767px){html body .omedica-home .omedica-about-awards .omedica-photo-grid > * {flex-basis:60%;}}
/* Email/phone can reflow when users scale text or increase text spacing. */
@media(max-width:767px){html body .omedica-home-slide--banner h2 {font-size:calc((1.375rem) * var(--omedica-scale-h2,1));}}


/* One mobile control row inside the canvas, with 44 px touch targets. */
html body .omedica-home-dots {display:flex;align-items:center;gap:0;}
@media(max-width:767px){
 html body .omedica-home-hero-controls > .omedica-carousel-controls {display:flex;flex-wrap:nowrap;align-items:center;gap:0;min-width:0;max-width:100%;}
 html body .omedica-home-hero-controls .omedica-home-dots {min-width:0;overflow-x:auto;scrollbar-width:none;overscroll-behavior-x:contain;}
 html body .omedica-home-hero-controls .omedica-home-dots::-webkit-scrollbar {display:none;}
 html body .omedica-home-hero-controls :is(.omedica-home-dot,.omedica-carousel-controls > button) {flex:0 0 44px;}
}

/* Compact direction links and shared native program carousel. */


html body .omedica-home-program-track{position:relative;min-width:0;max-width:100%;display:flex;gap:var(--space-md);overflow-x:auto;scroll-snap-type:x mandatory;padding:var(--space-xs);}
html body .omedica-home-program-track>.omedica-complex-card{flex:0 0 calc((100% - 2 * var(--space-md))/3);scroll-snap-align:start;}
@media(max-width:1199px){html body .omedica-home-program-track>.omedica-complex-card{flex-basis:calc((100% - var(--space-md))/2);}}
@media(max-width:767px){html body .omedica-home-program-track>.omedica-complex-card{flex-basis:88%;}}

/* Homepage programs share one card structure; detail/grid descriptions stay intact. */
html body .omedica-home-program-track>.omedica-complex-card{display:grid;grid-template-rows:auto minmax(4.05em,1fr) minmax(1.5em,auto) auto;gap:var(--space-sm);padding:var(--space-md);align-content:stretch;}
html body .omedica-home-program-track>.omedica-complex-card>*{margin:0;min-width:0;}
html body .omedica-home-program-track>.omedica-complex-card>h3{line-height:1.35;overflow-wrap:anywhere;align-self:start;}
html body .omedica-home-program-track .omedica-home-program-icon{width:64px;height:64px;display:grid;place-items:center;}
html body .omedica-home-program-track .omedica-home-program-icon .omedica-medical-icon{display:grid;width:100%;height:100%;margin:0;}
html body .omedica-home-program-track .omedica-service-price{align-self:start;line-height:1.5;white-space:normal;min-width:0;overflow-wrap:anywhere;}
html body .omedica-home-program-track .omedica-service-card__actions{align-self:end;justify-content:space-between;}
html body .omedica-home-program-track>.omedica-complex-card{height:auto;align-self:stretch;}
html body .omedica-home-program-track .omedica-home-program-icon{grid-row:1;}
html body .omedica-home-program-track .omedica-complex-card>h3{grid-row:2;}
html body .omedica-home-program-track .omedica-service-price{grid-row:3;}
html body .omedica-home-program-track .omedica-service-card__actions{grid-row:4;padding-block-start:0;}

/* Homepage cards share neutral surfaces; each keeps its own composition. */
html body .omedica-home-program-track>.omedica-complex-card{background:var(--wp--preset--color--background);border:1px solid var(--wp--preset--color--border);box-shadow:none;}
html body .omedica-home-program-track>.omedica-complex-card:is(:hover,:focus-within){border-color:var(--wp--preset--color--action);}

/* Compact homepage program: title and icon share the top row. */
html body .omedica-home-program-track>.omedica-complex-card{grid-template-columns:minmax(0,1fr) 48px;grid-template-rows:1fr auto auto;column-gap:var(--space-sm);row-gap:var(--space-sm);height:auto;align-self:stretch;align-content:stretch;}
html body .omedica-home-program-track .omedica-complex-card>h3{grid-column:1;grid-row:1;align-self:start;min-height:0;}
html body .omedica-home-program-track .omedica-home-program-icon{grid-column:2;grid-row:1;width:48px;height:48px;align-self:start;}
html body .omedica-home-program-track .omedica-service-price{grid-column:1/-1;grid-row:2;min-height:1.5em;}
html body .omedica-home-program-track .omedica-service-card__actions{grid-column:1/-1;grid-row:3;}
/* Reserve readable text + icon space; keep at most three columns.
   Intrinsic flex wrapping moves the icon above unusually long words without splitting them. */








/* The homepage award heading, intro and gallery share one internal spacing owner. */
html body .omedica-home .omedica-home-awards .omedica-about-awards{gap:var(--space-md);}
html body .omedica-home .omedica-home-awards .omedica-about-awards>.omedica-section-header{margin-block:0;}

/* One row at each breakpoint; shared controls appear only for a real overflow. */
html body .omedica-home-adaptive-track {--home-columns:3;position:relative;display:flex;flex-wrap:nowrap;gap:var(--space-md);max-inline-size:100%;min-inline-size:0;overflow-x:auto;scroll-snap-type:x proximity;scroll-behavior:smooth;padding-block:var(--wp--custom--focus--offset,3px);}
html body .omedica-home-adaptive-track.omedica-home-promos {--home-columns:2;}
html body .omedica-home-adaptive-track > * {flex:0 0 calc((100% - (var(--home-columns) - 1) * var(--space-md)) / var(--home-columns));scroll-snap-align:start;min-inline-size:0;height:auto;align-self:stretch;}
@media(max-width:1199px){html body .omedica-home-adaptive-track {--home-columns:2;}}
@media(max-width:767px){html body .omedica-home-adaptive-track,html body .omedica-home-adaptive-track.omedica-home-promos {--home-columns:1;}}
@media(prefers-reduced-motion:reduce){html body .omedica-home-adaptive-track{scroll-behavior:auto;}}

/* Small homepage collections and the full catalogue share a reflowing card grid.
   The existing >4 native track keeps its established horizontal composition. */
html body .omedica-promotions-grid.omedica-home-promos {
 display:grid;grid-template-columns:repeat(4,minmax(0,1fr));overflow:visible;
}
html body .omedica-promotions-grid .omedica-home-promo {
 display:flex;flex-direction:column;min-inline-size:0;
}
html body .omedica-promotions-grid .omedica-home-promo-visual {
 flex:none;inline-size:100%;aspect-ratio:4/3;
}
html body .omedica-promotions-grid .omedica-home-promo-copy {
 flex:1;min-inline-size:0;padding:var(--space-md);overflow-wrap:anywhere;
}
html body .omedica-home-promo-image {display:block;max-inline-size:100%;}
html body .omedica-home-promo-copy {min-inline-size:0;overflow-wrap:anywhere;}
@media(max-width:1199px){html body .omedica-promotions-grid.omedica-home-promos {grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:599px){html body .omedica-promotions-grid.omedica-home-promos {grid-template-columns:minmax(0,1fr);}}
/* Flex items must reflow even when editorial paragraph/link rules reset wrapping. */
html body .omedica-home-promo-copy > * {min-inline-size:0;max-inline-size:100%;overflow-wrap:anywhere;}

@media(max-width:767px){
/* Mobile first screen: natural active slide height; every banner remains available. */

 html:not(.special) body .omedica-home {padding-block-start:var(--space-sm);gap:var(--space-md);}
 html:not(.special) body .omedica-home .omedica-home-slide[hidden] {display:none!important;}
 html:not(.special) body .omedica-home-hero-copy {padding:var(--card-padding);gap:var(--space-xs);}
 html:not(.special) body .omedica-home .omedica-home-slide h1 {font-size:calc(var(--omedica-mobile-title-size) * var(--omedica-scale-h1,1));line-height:1.15;max-width:none;}
 html:not(.special) body .omedica-home-hero-copy > p:not(.omedica-home-kicker) {font-size:var(--wp--preset--font-size--small);line-height:1.5;}
 html:not(.special) body .omedica-home-slide {display:flex;flex-direction:column;}
 html:not(.special) body .omedica-home-slide > figure {order:0;aspect-ratio:16/7;}
 html:not(.special) body .omedica-home-hero-copy .wp-block-buttons,
 html:not(.special) body .omedica-home-hero-copy .wp-block-button {width:100%;}
 html:not(.special) body .omedica-home-hero-copy .wp-block-button__link {display:flex;justify-content:center;width:100%;min-height:var(--wp--custom--interaction--touch-target);}
 html:not(.special) body .omedica-home-kicker {font-size:var(--omedica-compact-ui-size);line-height:1.35;}
 html:not(.special) body .omedica-home-slide--banner > figure {aspect-ratio:16/7;}
 html:not(.special) body .omedica-home-slide > figure::after {content:none;}
 html:not(.special) body .omedica-home-slide:not(.omedica-home-slide--banner) > figure img {object-position:var(--omedica-hero-object-position,center 35%);}
 html:not(.special) body .omedica-home-slide--banner > figure img {object-fit:contain;}
 html:not(.special) body .omedica-home > .omedica-home-entry-links {margin:0;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--space-xs);padding:0;border:0;}
 html:not(.special) body .omedica-home-entry-links p {display:flex;}
 html:not(.special) body .omedica-home-entry-links p:last-child:nth-child(odd) {grid-column:1/-1;}
 html:not(.special) body .omedica-home-entry-links a {font-size:var(--omedica-compact-ui-size);min-height:calc(var(--wp--custom--interaction--touch-target) + var(--space-sm));padding:var(--space-xs) var(--space-sm);border-radius:var(--wp--custom--radius--md);width:100%;box-sizing:border-box;}
 
 
 
 



 /* A text-only link needs a wrapping text track, not an anonymous flex minimum. */
 html:not(.special) body .omedica-home-entry-links a {display:grid;grid-template-columns:minmax(0,1fr);align-content:center;overflow-wrap:anywhere;}
 html:not(.special) body .omedica-home-entry-links a::after {content:none;}
 /* Reserve the existing 44px controls + token inset before their JS is initialized. */
 html:not(.special) body .omedica-home-hero {grid-template-rows:auto minmax(calc(44px + var(--space-xs)),auto);}
}

/* V3: the patient's task precedes supporting photography, with one shared content source. */
@media(max-width:767px){
 html:not(.special) body .omedica-home-slide {display:flex;flex-direction:column;}
 html:not(.special) body .omedica-home-hero-copy {padding:var(--space-lg) var(--card-padding) var(--space-md);gap:var(--space-sm);}
 html:not(.special) body .omedica-home-kicker {font-size:var(--omedica-compact-ui-size);font-weight:500;}
 html:not(.special) body .omedica-home-slide > figure {order:0;aspect-ratio:16/7;}
 html:not(.special) body .omedica-home-hero-controls {background:var(--wp--preset--color--surface);}
 
 
 
 html:not(.special) body .omedica-home .omedica-home-about {gap:var(--space-md);}
}

/* Client review: one compact reading surface, no stacked photo/control panels. */
.omedica-home-slide-count {display:none;}
@media(max-width:767px){
 html:not(.special) body .omedica-home-hero {display:block;}
 html:not(.special) body .omedica-home .omedica-home-slide {display:block;}
 html:not(.special) body .omedica-home-hero-copy {display:flex;width:100%;padding:var(--space-md);gap:var(--space-sm);}
 html:not(.special) body .omedica-home-hero-copy > :is(h1,h2) {width:100%;max-width:none;font-size:var(--omedica-mobile-title-size);line-height:1.2;text-wrap:balance;}
 html:not(.special) body .omedica-intro-media {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:var(--space-sm);align-items:start;width:100%;}
 html:not(.special) body .omedica-intro-description {min-width:0;font-size:var(--wp--preset--font-size--small);line-height:1.5;}
 html:not(.special) body .omedica-intro-description > p {margin:0;}
 html:not(.special) body .omedica-intro-description > p + p {margin-block-start:var(--space-sm);}
 html:not(.special) body .omedica-intro-description > summary {min-height:44px;display:list-item;align-content:center;cursor:pointer;color:var(--wp--preset--color--action);font-weight:600;overflow-wrap:anywhere;}
 html:not(.special) body .omedica-intro-description[open] > summary {margin-block-end:var(--space-xs);}
 html:not(.special) body .omedica-intro-media > figure {position:static;inset:auto;grid-area:auto;order:0;display:block;width:clamp(5rem,24vw,6rem);height:auto;aspect-ratio:auto;overflow:hidden;border-radius:var(--wp--custom--radius--md);margin:0;background:transparent;}
 html:not(.special) body .omedica-intro-media > figure img {display:block;width:100%;max-width:100%;height:auto;max-height:none;aspect-ratio:var(--omedica-intro-image-ratio,auto);contain-intrinsic-size:none;object-fit:contain;}
 html:not(.special) body .omedica-intro-media:not(:has(figure)) {grid-template-columns:minmax(0,1fr);}
 html:not(.special) body .omedica-intro-actions {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:var(--space-xs);width:100%;}
 html:not(.special) body .omedica-intro-actions > .wp-block-buttons {flex:1;min-width:min(100%,7rem);width:auto;margin:0;}
 html:not(.special) body .omedica-intro-actions .wp-block-button {width:auto;max-width:100%;}
 html:not(.special) body .omedica-intro-actions .wp-block-button__link {width:auto;min-height:44px;font-size:var(--omedica-compact-ui-size);padding:var(--space-xs) var(--space-md);}
 html:not(.special) body .omedica-intro-actions .omedica-home-hero-controls {position:static;display:flex;align-items:center;flex:0 0 auto;grid-area:auto;min-height:44px;padding:0;margin:0;background:transparent;}
 html:not(.special) body .omedica-home-hero-controls .omedica-home-dots {display:none;}
 html:not(.special) body .omedica-home-slide-count {display:block;white-space:nowrap;min-width:2.5em;text-align:center;font-size:var(--omedica-compact-ui-size);color:var(--wp--preset--color--text-muted);}
 html:not(.special) body .omedica-home-hero-controls .omedica-carousel-controls {gap:0;}
}

@media(max-width:767px){html:not(.special) body .omedica-home-hero-copy > :is(.omedica-intro-media,.omedica-intro-actions){margin:0;} }

/* V3.1 / photographic offer canvas: the desktop idea recomposed for a phone. */
@media(max-width:767px){
 html:not(.special) body .omedica-home-hero,
 html:not(.special) body .omedica-home-promo {--omedica-offer-canvas:color-mix(in srgb,var(--wp--preset--color--text) 2%,var(--wp--preset--color--background));background:var(--omedica-offer-canvas);}
 html:not(.special) body .omedica-home .omedica-home-slide {position:relative;isolation:isolate;overflow:hidden;border-radius:inherit;background:var(--omedica-offer-canvas);}
 html:not(.special) body .omedica-home-slide > figure {position:absolute;inset:0 0 auto;width:100%;height:14rem;aspect-ratio:auto;margin:0;z-index:-2;border-radius:0;}
 html:not(.special) body .omedica-home-slide > figure img {width:100%;height:100%;object-fit:cover;object-position:var(--omedica-hero-object-position,center 40%);border-radius:0;}
 html:not(.special) body .omedica-home-slide::before {content:"";position:absolute;inset:0 0 auto;height:14rem;z-index:-1;pointer-events:none;background:linear-gradient(180deg,transparent 35%,color-mix(in srgb,var(--omedica-offer-canvas) 25%,transparent) 55%,var(--omedica-offer-canvas) 85%);}
 html:not(.special) body .omedica-home-hero-copy {position:relative;display:flex;width:100%;padding:10.5rem var(--space-md) var(--space-md);gap:var(--space-sm);background:none;}
 html:not(.special) body .omedica-home-slide:not(:has(>figure)) .omedica-home-hero-copy {padding-block-start:var(--space-md);}
 html:not(.special) body .omedica-intro-media {display:block;}
 html:not(.special) body .omedica-intro-description {width:100%;}
 html:not(.special) body .omedica-home-hero-copy > :is(h1,h2) {text-wrap:balance;}
 html:not(.special) body .omedica-home-slide[data-intro-artwork=true] > figure {height:9.5rem;}
 html:not(.special) body .omedica-home-slide[data-intro-artwork=true] > figure img {object-fit:contain;object-position:center top;}
 html:not(.special) body .omedica-home-slide[data-intro-artwork=true]::before {height:10rem;background:linear-gradient(180deg,transparent 55%,var(--omedica-offer-canvas) 100%);}
 html:not(.special) body .omedica-home-slide[data-intro-artwork=true] .omedica-home-hero-copy {padding-block-start:8rem;}
 html:not(.special) body .omedica-home-promo:nth-child(2n) {background:var(--omedica-offer-canvas);}
 html:not(.special) body .omedica-home-promo-visual::after {content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,var(--omedica-offer-canvas),transparent 45%);}

}

/* V3.1 / native mobile rails: type-specific widths and an intentional next-card peek. */
@media(max-width:767px){
 html:not(.special) body .omedica-home .omedica-section-header {margin-block-end:var(--space-sm);gap:var(--space-xs);}
 html:not(.special) body .omedica-home .omedica-section-header > p:empty {display:none;}
 html:not(.special) body .omedica-home-program-track {gap:var(--space-sm);scroll-snap-type:x mandatory;align-items:stretch;}
 html:not(.special) body .omedica-home-program-track > .omedica-complex-card {flex-basis:min(19rem,calc(100% - 44px));grid-template-columns:minmax(0,1fr) 44px;grid-template-rows:1fr auto auto;padding:var(--space-sm);gap:var(--space-sm);}
 html:not(.special) body .omedica-home-program-track .omedica-complex-card > h3 {max-width:none;font-size:1.125rem;line-height:1.35;}
 html:not(.special) body .omedica-home-program-track .omedica-home-program-icon {width:44px;height:44px;}
 html:not(.special) body .omedica-home-program-track .omedica-home-program-icon .omedica-medical-icon {width:44px;height:44px;}
 html:not(.special) body .omedica-home-adaptive-track > * {flex-basis:calc(100% - 36px);}
 html:not(.special) body .omedica-home .omedica-home-promos {display:flex;flex-wrap:nowrap;gap:var(--space-sm);overflow-x:auto;scroll-snap-type:x mandatory;padding-block:var(--space-xs);}
 html:not(.special) body .omedica-home-promos > .omedica-home-promo {flex:0 0 calc(100% - 32px);scroll-snap-align:start;display:grid;grid-template-columns:1.65fr 1fr;min-height:0;}
 html:not(.special) body .omedica-home-promos .omedica-home-promo-copy {padding:var(--space-md);}
 html:not(.special) body .omedica-home-promos .omedica-home-promo-visual {aspect-ratio:auto;}
 html:not(.special) body .omedica-home-promos .omedica-home-promo-action {margin-block-start:var(--space-xs);}
}

/* V3.1 / consistent section exits and compact previews of real direction groups. */
@media(max-width:767px){
 html:not(.special) body .omedica-home-section-more {margin:var(--space-sm) 0 0;}
 html:not(.special) body .omedica-home .omedica-home-section-more > .omedica-section-cta {display:inline-flex;align-items:center;gap:var(--space-xs);min-height:44px;font-size:var(--wp--preset--font-size--small);font-weight:600;text-decoration:none;}
 html:not(.special) body .omedica-home .omedica-home-section-more > .omedica-section-cta::after {content:"→";}
 html:not(.special) body .omedica-home .omedica-section-header > p:has(> .omedica-carousel-controls):not(:has(> a)) {display:none;}
 
 
 
 
}

/* V3.2 / equal intrinsic tracks: every authored slide contributes its full copy height. */
@media(max-width:767px){
 html:not(.special) body .omedica-home-hero {display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto;}
 html:not(.special) body .omedica-home .omedica-home-slide,
 html:not(.special) body .omedica-home .omedica-home-slide[hidden] {display:flex!important;grid-area:1/1;align-items:stretch;visibility:visible;}
 html:not(.special) body .omedica-home .omedica-home-slide[hidden] {visibility:hidden;pointer-events:none;}
 html:not(.special) body .omedica-home-hero-copy {padding-block-start:10.5rem;justify-content:flex-start;flex:1;gap:var(--space-sm);}
 html:not(.special) body .omedica-home-slide[data-intro-artwork=true] .omedica-home-hero-copy {padding-block-start:10.5rem;}
 html:not(.special) body .omedica-home-hero-copy > .omedica-home-kicker {display:none;}
 html:not(.special) body .omedica-home-slide > figure,
 html:not(.special) body .omedica-home-slide[data-intro-artwork=true] > figure {height:10.5rem;}
 html:not(.special) body .omedica-home-slide > figure img,
 html:not(.special) body .omedica-home-slide[data-intro-artwork=true] > figure img {object-fit:cover;object-position:right 35%;}
 html:not(.special) body .omedica-home-slide::before,
 html:not(.special) body .omedica-home-slide[data-intro-artwork=true]::before {height:10.5rem;background:linear-gradient(180deg,transparent 70%,var(--omedica-offer-canvas) 100%);}
 html:not(.special) body .omedica-home-hero-copy > .omedica-intro-actions {margin-block-start:0;padding-block-start:var(--space-xs);}
 /* Inactive slides reserve the same controls width, including wrapped CTAs.
    Otherwise WebKit can change the intrinsic carousel height during switching. */
 html:not(.special) body .omedica-intro-actions:not(:has(.omedica-home-hero-controls))::after {content:"";flex:0 0 calc(88px + 2.1875rem);min-height:44px;}
 html:not(.special) body .omedica-home .omedica-home-slide {min-height:0;}
 html:not(.special) body .omedica-home-hero-copy > :is(h1,h2) {font-size:calc(clamp(1.5rem,6.5vw,1.75rem) * var(--omedica-scale-h2,1));line-height:1.2;margin:0;}
 html:not(.special) body .omedica-home-slide--banner .omedica-home-hero-copy > h2 {font-size:calc(1.375rem * var(--omedica-scale-h2,1));}
 html:not(.special) body .omedica-home .omedica-intro-description p {font-size:.9375rem;line-height:1.45;margin:0;}
 /* Preview only when the authored action opens the full offer page. */
 html:not(.special) body .omedica-home-slide--banner:has(.wp-block-button__link[href*="/promo/"]) .omedica-intro-description {display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;}
}

/* Existing offer card, mobile reading/image tracks. No extra media or records. */
@media(max-width:767px){
 html:not(.special) body .omedica-home-promos > .omedica-home-promo {grid-template-columns:minmax(0,1.45fr) minmax(0,1fr);min-height:0;align-self:start;}
 html:not(.special) body .omedica-home-promos .omedica-home-promo-copy {padding:var(--space-sm);gap:var(--space-xs);}
 html:not(.special) body .omedica-home-promo :is(h2,h3) {font-size:calc(1.0625rem * var(--omedica-scale-h3,1));line-height:1.25;}
 html:not(.special) body .omedica-home-promo-copy > p {font-size:.875rem;line-height:1.4;}
 html:not(.special) body .omedica-home-promo:has(.omedica-home-promo-action[href*="/promo/"]) .omedica-home-promo-copy > p:not(.omedica-promotion-dates) {display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;}
 html:not(.special) body .omedica-home-promos .omedica-home-promo-visual::after {background:linear-gradient(90deg,var(--omedica-offer-canvas,var(--wp--preset--color--surface)),transparent 18%);}
 html:not(.special) body .omedica-home-promos .omedica-home-promo-action {margin-block-start:var(--space-xs);min-height:44px;padding:0 var(--space-sm);border-radius:var(--wp--custom--radius--pill);background:var(--wp--preset--color--action);color:var(--wp--preset--color--background);font-size:.875rem;line-height:1.3;text-decoration:none;}
}

/* V3.2 / restore the pre-3.x compact horizontal direction composition. */


/* V3.2 / enlarge trusted SVG artwork inside the existing programme layout. */
@media(max-width:767px){
 html:not(.special) body .omedica-home-program-track > .omedica-complex-card {grid-template-columns:minmax(0,1fr) 66px;}
 html:not(.special) body .omedica-home-program-track .omedica-home-program-icon,
 html:not(.special) body .omedica-home-program-track .omedica-home-program-icon .omedica-medical-icon {width:66px;height:66px;}
}

@media(max-width:767px){
 html:not(.special) body .omedica-home-program-track .omedica-home-program-icon {grid-row:1 / span 2;}
 html:not(.special) body .omedica-home-entry-links p:last-child:nth-child(odd) {grid-column:auto;}
}

@media(max-width:767px){
 html:not(.special) body .omedica-home-program-track > .omedica-complex-card:not(:has(.omedica-home-program-icon > *)) > h3 {grid-column:1/-1;}
 html:not(.special) body .omedica-home-program-track .omedica-home-program-icon:empty {display:none;}
}

/* Final targeted review: keep the horizontal icon/title, reflow into paired cards. */


/* Balanced wrapping enhances the same text track; unsupported engines keep normal wrapping. */


/* Equal offer shells only in horizontal rails; full catalogues keep their layout. */
@media(max-width:767px){
 html:not(.special) body :is(.omedica-home .omedica-home-promos,.omedica-home-promos.omedica-home-adaptive-track) {align-items:stretch;}
 html:not(.special) body :is(.omedica-home .omedica-home-promos,.omedica-home-promos.omedica-home-adaptive-track) > .omedica-home-promo {align-self:stretch;}
 html:not(.special) body :is(.omedica-home .omedica-home-promos,.omedica-home-promos.omedica-home-adaptive-track) .omedica-home-promo-action {margin-block-start:auto;}
}

/* Crossfade keeps outgoing imagery painted while the decoded incoming slide appears.
   Every layer keeps its original grid sizing; navigation lives outside faded layers. */
html body .omedica-home .omedica-home-hero[data-omedica-hero-ready] > .omedica-home-slide {opacity:1;transition:opacity 500ms ease-in-out;z-index:1;}
html body .omedica-home .omedica-home-hero[data-omedica-hero-ready] > .omedica-home-slide[hidden] {opacity:0;z-index:0;}
html body .omedica-home .omedica-home-hero[data-omedica-hero-ready] > .omedica-home-slide.is-leaving[hidden] {visibility:visible;pointer-events:none;}
html body .omedica-home-hero .omedica-home-dots {position:relative;}
html body .omedica-home-hero .omedica-home-dot > span {transition:opacity 300ms ease;}
html body .omedica-home-hero .omedica-home-dot[aria-pressed=true] > span {width:8px;background:var(--wp--preset--color--text-muted);opacity:0;}
.omedica-home-dot-indicator {position:absolute;left:0;top:50%;width:28px;height:8px;border-radius:999px;background:var(--wp--preset--color--action);pointer-events:none;transform:translate3d(8px,-50%,0);transition:transform 300ms ease;}
html body .omedica-home-hero .omedica-home-hero-controls .omedica-carousel-controls > button {transition:background-color 180ms ease,border-color 180ms ease,color 180ms ease;}
@media(max-width:767px){
 html:not(.special) body .omedica-home .omedica-home-hero[data-omedica-hero-ready] > .omedica-home-hero-controls {position:absolute;left:auto;right:var(--card-padding);bottom:var(--space-md);grid-area:auto;min-height:44px;margin:0;padding:0;background:transparent;}
 html:not(.special) body .omedica-home-hero .omedica-intro-actions {margin-block-start:auto;}
}
@media(prefers-reduced-motion:reduce){
 html body .omedica-home-hero .omedica-home-slide,html body .omedica-home-hero .omedica-home-dot-indicator {transition:none;}
}
@media(forced-colors:active){.omedica-home-dot-indicator {background:Highlight;forced-color-adjust:none;}}
