/* SEC-CLINIC-ADVANTAGE / CMP-CLINIC-ADVANTAGE: root-overridable theme tokens. */
.omedica-advantage {--adv-surface:var(--wp--preset--color--surface);--adv-accent:var(--wp--preset--color--action);color:var(--wp--preset--color--text);}
html body .omedica-advantage {display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);align-items:center;gap:var(--space-xl);padding:var(--space-xl);border-radius:var(--wp--custom--radius--lg);background:var(--adv-surface);}
html body .omedica-advantage > * {min-width:0;margin:0;}
html body .omedica-advantage h2 {font-size:calc(clamp(1.5rem,2.3vw,2rem) * var(--omedica-scale-h2,1));line-height:1.2;letter-spacing:-.025em;margin:0 0 var(--space-md);overflow-wrap:anywhere;}
html body .omedica-advantage p {line-height:1.6;max-width:68ch;margin:0 0 var(--space-md);overflow-wrap:anywhere;}
html body .omedica-advantage p:last-child {margin-bottom:0;}
html body .omedica-advantage .omedica-advantage-eyebrow {color:var(--adv-accent);font-size:.875rem;font-weight:600;margin-bottom:var(--space-sm);}
html body .omedica-advantage-media img {display:block;width:100%;height:auto;border-radius:var(--wp--custom--radius--md);}
html body .omedica-advantage--lymphology {background:var(--wp--preset--color--background);border:1px solid var(--wp--preset--color--border);}
html body .omedica-advantage--lymphology .omedica-advantage-media img {object-fit:contain;}
html body .omedica-advantage-link {display:inline-flex;align-items:center;min-height:44px;line-height:1.4;color:var(--wp--preset--color--action);text-underline-offset:.2em;overflow-wrap:anywhere;}
html body .omedica-advantage-link:focus-visible {outline:2px solid var(--wp--preset--color--action);outline-offset:4px;}
html body .omedica-advantage--compact {grid-template-columns:minmax(0,1fr) auto;padding:var(--space-lg);gap:var(--space-lg);}
html body .omedica-advantage--compact h2 {font-size:calc(clamp(1.25rem,2vw,1.5rem) * var(--omedica-scale-h2,1));margin-bottom:var(--space-sm);}
.omedica-advantage-icon {display:block;width:3rem;height:3rem;color:var(--wp--preset--color--action);}
html body .omedica-advantage-symbol {padding:var(--space-sm);}
html body .omedica-advantage--compact .omedica-advantage-media {max-width:8rem;}
html body .omedica-advantage--oncology {grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);background:var(--wp--preset--color--background);padding:0;}
html body .omedica-advantage--oncology .omedica-advantage-media img {aspect-ratio:4/3;object-fit:cover;}
html body .omedica-advantage-inline {max-width:70ch;margin:calc(-1 * var(--space-sm)) 0 var(--space-lg);color:var(--wp--preset--color--text-muted);line-height:1.6;}
html body .omedica-advantage-quote {border:0;border-inline-start:3px solid var(--wp--preset--color--action);padding:var(--space-sm) 0 var(--space-sm) var(--space-md);margin:var(--space-md) 0;}
html body .omedica-advantage-quote p {margin:0 0 var(--space-xs);}
html body .omedica-advantage-quote p:first-child {font-size:1.25em;font-weight:600;line-height:1.4;color:var(--wp--preset--color--text);}
html body .omedica-advantage-quote p:last-child {font-size:1em;margin:0;}
html body .omedica-advantage--quote,html body .omedica-advantage--stages {grid-template-columns:minmax(0,1fr);}
html body .omedica-advantage-stages {display:flex;flex-wrap:wrap;gap:var(--space-lg);padding-inline-start:var(--space-md);margin-block:var(--space-lg) 0;}
html body .omedica-advantage-stages li {padding-inline:var(--space-sm);}
html body .omedica-advantage-stages svg {width:1.5rem;height:1.5rem;margin-bottom:var(--space-sm);}
/* About: three editorial stories. Existing native images remain editable in Gutenberg. */
html body .omedica-about-editorial .omedica-about-advantages.omedica-about-advantages--shared {
 display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:var(--space-xl);row-gap:var(--space-md);align-items:start;
}
html body .omedica-about-advantages--shared :is(.omedica-about-advantages-copy,.omedica-advantages-groups,.omedica-about-advantages-collage) {display:contents;}
html body .omedica-about-advantages--shared .omedica-about-advantages-copy > h2 {grid-column:1 / -1;grid-row:1;margin:0 0 var(--space-sm);}
.omedica-advantages-group {min-width:0;grid-row:3;margin:0;}
.omedica-advantages-group[data-advantage-group="care"] {grid-column:1;}
.omedica-advantages-group[data-advantage-group="expertise"] {grid-column:2;}
.omedica-advantages-group[data-advantage-group="individual"] {grid-column:3;}
html body .omedica-advantages-group > h3 {margin:0 0 var(--space-md);padding-block-end:var(--space-sm);border-block-end:2px solid var(--wp--preset--color--action);font-size:calc(1rem * var(--omedica-scale-h3,1));font-weight:500;line-height:1.4;color:var(--wp--preset--color--action);letter-spacing:0;}
html body .omedica-advantages-group > ul {list-style:none;padding:0;margin:0;display:grid;gap:calc(var(--space-lg) * .7);}
html body .omedica-advantages-group li {margin:0;padding:0;border:0;min-width:0;}
html body .omedica-advantages-group h4 {margin:0 0 var(--space-xs);font-size:calc(1.125rem * var(--omedica-scale-h4,1));line-height:1.3;font-weight:600;letter-spacing:-.015em;text-wrap:balance;overflow-wrap:anywhere;}
html body .omedica-advantages-group p {font-size:1rem;line-height:1.6;margin:0;max-width:60ch;overflow-wrap:anywhere;}
html body .omedica-advantages-group p + p {margin-block-start:var(--space-sm);}
html body .omedica-advantages-group .omedica-advantage-link {margin-block-start:var(--space-xs);min-height:44px;display:inline-flex;align-items:center;font-size:.9375rem;}
html body .omedica-about-advantages--shared .omedica-about-advantages-collage > figure {grid-row:2;margin:0;min-width:0;overflow:hidden;border-radius:var(--wp--custom--radius--md);}
html body .omedica-about-advantages--shared .omedica-about-advantages-collage > figure:nth-child(1) {grid-column:1;}
html body .omedica-about-advantages--shared .omedica-about-advantages-collage > figure:nth-child(2) {grid-column:2;}
html body .omedica-about-advantages--shared .omedica-about-advantages-collage > figure:nth-child(3) {grid-column:3;}
html body .omedica-about-advantages--shared .omedica-about-advantages-collage img {display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;object-position:center;border-radius:inherit;}
html body .omedica-about-advantages--shared .omedica-about-advantages-collage > figure:nth-child(2) img {object-position:center;}
@media(min-width:640px) and (max-width:1099px){
 html body .omedica-about-editorial .omedica-about-advantages.omedica-about-advantages--shared {grid-template-columns:minmax(0,1fr) minmax(0,2fr);column-gap:var(--space-lg);row-gap:var(--space-xl);}
 .omedica-advantages-group[data-advantage-group] {grid-column:2;}
 .omedica-advantages-group[data-advantage-group="care"] {grid-row:2;}
 .omedica-advantages-group[data-advantage-group="expertise"] {grid-row:3;}
 .omedica-advantages-group[data-advantage-group="individual"] {grid-row:4;}
 html body .omedica-about-advantages--shared .omedica-about-advantages-collage > figure:nth-child(1) {grid-column:1;grid-row:2;}
 html body .omedica-about-advantages--shared .omedica-about-advantages-collage > figure:nth-child(2) {grid-column:1;grid-row:3;}
 html body .omedica-about-advantages--shared .omedica-about-advantages-collage > figure:nth-child(3) {grid-column:1;grid-row:4;}
 html body .omedica-about-advantages--shared .omedica-about-advantages-collage img {aspect-ratio:3/2;}
}
@media(max-width:639px){
 html body .omedica-about-editorial .omedica-about-advantages.omedica-about-advantages--shared {grid-template-columns:minmax(0,1fr);row-gap:var(--space-md);}
 .omedica-advantages-group[data-advantage-group] {grid-column:1;margin-block-end:var(--space-md);}
 .omedica-advantages-group[data-advantage-group="care"] {grid-row:3;}
 .omedica-advantages-group[data-advantage-group="expertise"] {grid-row:5;}
 .omedica-advantages-group[data-advantage-group="individual"] {grid-row:7;}
 html body .omedica-about-advantages--shared .omedica-about-advantages-collage > figure:nth-child(1) {grid-column:1;grid-row:2;}
 html body .omedica-about-advantages--shared .omedica-about-advantages-collage > figure:nth-child(2) {grid-column:1;grid-row:4;}
 html body .omedica-about-advantages--shared .omedica-about-advantages-collage > figure:nth-child(3) {grid-column:1;grid-row:6;}
 html body .omedica-advantages-group > ul {gap:calc(var(--space-md) * .7);}
}
/* The current homepage uses wider section introductions and the four-column catalog. */
html body .omedica-home-section > .omedica-advantage-inline {width:100%;max-width:100%;}
html body .omedica-home .omedica-section-header {flex-wrap:wrap;}
html body .omedica-home .omedica-section-header h2 {max-width:none;flex:1 1 auto;min-width:0;}
html body .omedica-home-direction-grid {display:grid;gap:var(--space-sm);grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:1fr;}
html body .omedica-advantage--lymphology .omedica-photo-grid {display:block;margin:0;}
html body .omedica-advantage--lymphology .omedica-photo-grid figure {margin:0;}
@media(min-width:768px) and (max-width:1199px){html body .omedica-home-direction-grid {grid-template-columns:repeat(3,minmax(0,1fr));}}
@media(min-width:768px) and (max-width:900px){html body .omedica-home-direction-grid {grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:767px){
 html body .omedica-advantage {grid-template-columns:minmax(0,1fr);gap:var(--space-md);padding:var(--space-lg);}
 html body .omedica-advantage--compact {grid-template-columns:minmax(0,1fr) auto;padding:var(--space-md);gap:var(--space-sm);}
 html body .omedica-advantage--oncology {padding:0;}
 html body .omedica-advantage--oncology .omedica-advantage-media {order:2;}
 html body .omedica-about-editorial .omedica-about-advantages.omedica-about-advantages--shared {grid-template-columns:minmax(0,1fr);}
 html body .omedica-about-advantages-collage {grid-template-columns:repeat(2,minmax(0,1fr));}
 html body .omedica-about-advantages-collage > figure:first-child {grid-column:1/-1;}
 html body .omedica-advantages-list {grid-template-columns:minmax(0,1fr);}
 html body .omedica-advantages-list > li {padding-block:var(--space-md);}
 html body .omedica-advantage-inline {margin-top:0;}
}
@media(forced-colors:active){html body .omedica-advantage {background:Canvas;border:1px solid CanvasText;}html body .omedica-advantage-quote {border-color:Highlight;} .omedica-advantage-icon {color:CanvasText;}}

html body .omedica-advantage-certificate {display:block;color:var(--wp--preset--color--action);text-underline-offset:.2em;}

html body .omedica-advantage-certificate:focus-visible {outline:2px solid var(--wp--preset--color--action);outline-offset:4px;}

@media(max-width:767px){
 html body .omedica-home-direction-grid {grid-template-columns:repeat(2,minmax(0,1fr));}

}


/* One banner composition; content IDs never select a decorative treatment.
 * Semantic surface/accent tokens can be overridden at the root for future modes.
 * No filter, animation, raster background, or additional network request. */
html body .omedica-advantage.omedica-advantage-banner {
 --adv-surface:color-mix(in srgb,var(--wp--preset--color--action) 6%,var(--wp--preset--color--background));
 --adv-tint:color-mix(in srgb,var(--adv-accent) 16%,var(--wp--preset--color--background));
 --adv-line:color-mix(in srgb,var(--adv-accent) 22%,transparent);
 position:relative;isolation:isolate;overflow:hidden;gap:0;padding:0;
 grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);
 border:1px solid color-mix(in srgb,var(--adv-accent) 14%,var(--wp--preset--color--background));
 background:radial-gradient(ellipse at 20% 0%,var(--wp--preset--color--background),transparent 70%),var(--adv-surface);
}
html body .omedica-advantage-banner > .omedica-advantage-copy {position:relative;z-index:2;max-width:none;padding:clamp(1.5rem,3.8vw,4rem);}
html body .omedica-advantage-banner h2 {font-size:calc(clamp(1.75rem,2.65vw,2.75rem) * var(--omedica-scale-h2,1));line-height:1.16;max-width:24ch;letter-spacing:-.035em;margin:0 0 var(--space-md);text-wrap:balance;}
html body .omedica-advantage-banner p {max-width:54ch;line-height:1.65;}
html body .omedica-advantage-banner > .omedica-advantage-media {z-index:1;position:relative;align-self:stretch;display:flex;align-items:center;}
html body .omedica-advantage-banner > .omedica-advantage-media img {width:100%;height:100%;object-fit:cover;object-position:center;border-radius:0;}
html body .omedica-advantage-banner > .omedica-advantage-media::after {content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,var(--adv-surface),transparent 27%);}
html body .omedica-advantage-banner > .omedica-advantage-media {mask-image:linear-gradient(90deg,transparent,#000 17%);-webkit-mask-image:linear-gradient(90deg,transparent,#000 17%);}
html body .omedica-advantage.omedica-advantage-banner--concise {grid-template-columns:minmax(0,1.7fr) minmax(0,1fr);}
html body .omedica-advantage-banner--concise > .omedica-advantage-copy {padding:clamp(1.5rem,2.8vw,3rem);}
html body .omedica-advantage-banner--concise h2 {font-size:calc(clamp(1.5rem,2.35vw,2.25rem) * var(--omedica-scale-h2,1));max-width:30ch;}
html body .omedica-advantage-banner--concise p {max-width:64ch;margin-bottom:var(--space-sm);}
html body .omedica-advantage-banner--left > .omedica-advantage-copy {grid-column:2;grid-row:1;}
html body .omedica-advantage-banner--left > .omedica-advantage-media {grid-column:1;grid-row:1;}
html body .omedica-advantage-banner--left > .omedica-advantage-media::after {transform:scaleX(-1);}
html body .omedica-advantage-banner--left.omedica-advantage-banner > .omedica-advantage-media {mask-image:linear-gradient(270deg,transparent,#000 17%);-webkit-mask-image:linear-gradient(270deg,transparent,#000 17%);}
html body .omedica-advantage.omedica-advantage-banner--no-photo {grid-template-columns:minmax(0,1fr);}
html body .omedica-advantage-banner--no-photo > .omedica-advantage-copy {grid-column:1;max-width:80ch;padding-inline-end:clamp(1.5rem,6vw,6rem);}
html body .omedica-advantage.omedica-advantage-banner--graphic {min-block-size:16rem;background:radial-gradient(ellipse at 85% 100%,var(--adv-tint),transparent 65%),var(--adv-surface);}
html body .omedica-advantage.omedica-advantage-banner--highlight {--adv-surface:color-mix(in srgb,var(--adv-accent) 12%,var(--wp--preset--color--background));--adv-tint:color-mix(in srgb,var(--adv-accent) 27%,var(--wp--preset--color--background));background:linear-gradient(120deg,var(--wp--preset--color--background),var(--adv-surface) 55%,var(--adv-tint));border-color:var(--adv-line);}
html body .omedica-advantage.omedica-advantage-banner--minimal {background:var(--wp--preset--color--background);border-color:var(--wp--preset--color--border);}
/* Certificate is never faded, cropped or replaced by decorative shapes. */
html body .omedica-advantage--lymphology.omedica-advantage-banner > .omedica-advantage-media {padding:var(--space-lg);mask-image:none;-webkit-mask-image:none;}
html body .omedica-advantage--lymphology.omedica-advantage-banner > .omedica-advantage-media::after {display:none;}
html body .omedica-advantage--lymphology.omedica-advantage-banner .omedica-advantage-media img {height:auto;object-fit:contain;}

/* Homepage category tiles: calm circular backing, intrinsic copy height, unchanged SVG sources. */
html body .omedica-home-direction {
 --direction-art-size:5.5rem;--direction-art-lane:5.5rem;
 display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto;align-content:start;align-items:start;
 min-inline-size:0;min-block-size:6rem;gap:0;padding:var(--space-xs) var(--space-md);padding-inline-end:calc(var(--direction-art-lane) + var(--space-md));
 position:relative;isolation:isolate;overflow:hidden;background:var(--wp--preset--color--background);border:1px solid var(--wp--preset--color--border);border-radius:var(--wp--custom--radius--md);color:var(--wp--preset--color--text);text-decoration:none;font-weight:600;font-size:.9375rem;
}
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-direction::before {content:'';position:absolute;z-index:-1;inset-inline-end:-2.5rem;bottom:-5.5rem;width:12rem;aspect-ratio:1;border-radius:50%;background:radial-gradient(circle at 35% 35%,color-mix(in srgb,var(--wp--preset--color--action) 6%,var(--wp--preset--color--background)),color-mix(in srgb,var(--wp--preset--color--action) 3%,var(--wp--preset--color--background)));pointer-events:none;}
html body .omedica-home-direction .omedica-home-direction-title {grid-column:1;grid-row:1;min-inline-size:0;width:100%;max-width:none;align-self:start;flex-basis:auto;line-height:1.3;overflow-wrap:anywhere;hyphens:none;text-wrap:wrap;}
html body .omedica-home-direction .omedica-medical-icon {position:absolute;grid-area:auto;inset-inline-end:var(--space-xs);bottom:0;width:var(--direction-art-size);height:var(--direction-art-size);min-width:var(--direction-art-size);max-width:none;flex:none;margin:0;order:0;align-self:end;justify-self:end;pointer-events:none;}

/* The two-column tablet and phone grids share the same explicit priority flag.
   1/-1 also stays within the grid when its container reflows to one column. */
@media(max-width:900px){html body .omedica-home-direction--wide {grid-column:1/-1;}}

@media(max-width:767px){
 html body .omedica-advantage.omedica-advantage-banner {grid-template-columns:minmax(0,1fr);}
 html body .omedica-advantage-banner > .omedica-advantage-copy {padding:var(--space-lg);grid-column:1;grid-row:auto;}
 html body .omedica-advantage-banner h2 {max-width:24ch;}
 html body .omedica-advantage-banner > .omedica-advantage-media {grid-column:1;grid-row:auto;order:2;}
 html body .omedica-advantage-banner > .omedica-advantage-media img {height:auto;aspect-ratio:3/2;object-fit:contain;}
 html body .omedica-advantage-banner > .omedica-advantage-media::after {background:linear-gradient(180deg,var(--adv-surface),transparent 25%);transform:none;}
 html body .omedica-advantage-banner > .omedica-advantage-media,
 html body .omedica-advantage-banner--left.omedica-advantage-banner > .omedica-advantage-media {mask-image:linear-gradient(180deg,transparent,#000 14%);-webkit-mask-image:linear-gradient(180deg,transparent,#000 14%);}
 html body .omedica-advantage-banner--no-photo > .omedica-advantage-copy {padding:var(--space-lg);}
 /* Two equal columns even at 320px; selected wide cards preserve DOM reading order. */
 html body .omedica-home-direction-grid {grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:auto;gap:var(--space-xs);}
 html body .omedica-home-direction {--direction-art-size:clamp(4rem,18vw,5rem);--direction-art-lane:0rem;min-width:0;max-width:100%;box-sizing:border-box;min-block-size:7rem;padding:var(--space-xs);padding-block-end:4rem;}
 html body .omedica-home-direction .omedica-home-direction-title {max-width:100%;font-size:clamp(.875rem,3.6vw,.9375rem);line-height:1.25;letter-spacing:-.015em;}
 html body .omedica-home-direction .omedica-medical-icon {bottom:0;inset-inline-end:var(--space-xs);}
 html body .omedica-home-direction::before {width:12rem;inset-inline-end:-3rem;bottom:-4rem;}
 html body .omedica-home-direction--wide {--direction-art-size:min(7rem,28vw);grid-column:1/-1;min-block-size:7rem;padding:var(--space-md);padding-inline-end:calc(var(--direction-art-size) + var(--space-sm));align-content:center;}
 html body .omedica-home-direction--wide .omedica-home-direction-title {font-size:.9375rem;line-height:1.35;}
 html body .omedica-home-direction--wide .omedica-medical-icon {inset-inline-end:.25rem;bottom:0;}
 html body .omedica-home-direction--wide::before {width:16rem;inset-inline-end:-3rem;bottom:-6rem;}
}
@media(forced-colors:active){
 html body .omedica-advantage.omedica-advantage-banner {background:Canvas;border-color:CanvasText;color:CanvasText;}
 html body .omedica-advantage-banner > .omedica-advantage-media::after,
 html body .omedica-home-direction::before {display:none;}
 html body .omedica-advantage-banner > .omedica-advantage-media {mask-image:none!important;-webkit-mask-image:none!important;}
}

/* Shared intrinsic rows: the longest item determines each row for all three columns. */
@media(min-width:1100px){
 @supports(grid-template-rows:subgrid){
  .omedica-advantages-group[data-advantage-group] {grid-row:3 / span 4;display:grid;grid-template-rows:subgrid;row-gap:calc(var(--space-md) * .7);}
  html body .omedica-advantages-group > h3 {grid-row:1;margin:0;}
  html body .omedica-advantages-group > ul {grid-row:2 / span 3;grid-template-rows:subgrid;gap:calc(var(--space-md) * .7);}
 }
}
