/* Native editable editorial sections; shared spacing, colour and media tokens. */
html body .omedica-about-editorial {display:grid;gap:var(--section-gap);padding-block:0 var(--section-gap);}
html body .omedica-about-editorial > * {margin-block:0;min-width:0;}
html body .omedica-about-editorial :is(p,ul,ol) {line-height:1.65;word-break:normal;overflow-wrap:break-word;}
html body .omedica-about-editorial :is(h2,h3) {text-wrap:balance;}
html body .omedica-about-editorial h2 {font-size:clamp(1.6rem,2.5vw,2.35rem);line-height:1.2;margin:0 0 var(--content-gap);max-width:28em;}
html body .omedica-about-editorial h3 {font-size:clamp(1.15rem,1.6vw,1.4rem);line-height:1.3;}
html body .omedica-about-editorial figure {margin:0;min-width:0;}
html body .omedica-about-editorial figure img {display:block;width:100%;height:auto;border-radius:var(--wp--custom--radius--md);}
html body .omedica-about-editorial .omedica-about-intro-copy > p:first-of-type {font-size:clamp(1.1rem,1.5vw,1.4rem);line-height:1.5;}
html body .omedica-about-editorial .omedica-about-intro-copy > p:last-child {margin-top:var(--content-gap);color:var(--wp--preset--color--text-muted);font-weight:500;}
/* A single paired composition for both opening images. Reverse the second pair. */
html body .omedica-about-editorial .omedica-internal-intro > .omedica-about-hero,
html body .omedica-about-editorial .omedica-about-narrative {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--content-gap);align-items:center;}
html body .omedica-about-editorial :is(.omedica-about-lcp,.omedica-about-story-photo) {width:100%;max-width:none;}
html body .omedica-about-editorial :is(.omedica-about-lcp,.omedica-about-story-photo) img {aspect-ratio:3/2;object-fit:cover;}
html body .omedica-about-editorial .omedica-about-narrative {align-items:start;}
html body .omedica-about-editorial .omedica-about-story-photo {grid-column:1;grid-row:1;}
html body .omedica-about-editorial .omedica-about-narrative > .omedica-about-prose {grid-column:2;grid-row:1;}
html body .omedica-about-editorial .omedica-about-prose {max-width:68ch;}
html body .omedica-about-editorial .omedica-about-prose p {margin:0 0 var(--space-md);max-width:none;}
html body .omedica-about-editorial .omedica-about-prose p:last-child {margin-bottom:0;}
/* A letter, with a useful portrait in the opening and full reading width thereafter. */
html body .omedica-about-editorial .omedica-about-director-section {width:100%;max-width:74ch;justify-self:center;border-top:1px solid var(--wp--preset--color--border);padding-top:var(--section-gap);}
html body .omedica-about-editorial .omedica-about-director-grid {display:grid;grid-template-columns:minmax(0,1fr) minmax(10rem,.5fr);gap:var(--content-gap);align-items:start;}
html body .omedica-about-editorial .omedica-about-director-identity p {margin:0;}
html body .omedica-about-editorial .omedica-about-director-identity p + p {margin-top:var(--space-xs);color:var(--wp--preset--color--text-muted);font-size:var(--wp--preset--font-size--small);}
html body .omedica-about-editorial .omedica-about-director-name {font-size:1.4rem;font-weight:600;line-height:1.3;}
html body .omedica-about-editorial .omedica-about-portrait {width:100%;}
html body .omedica-about-editorial .omedica-about-portrait img {aspect-ratio:auto;object-fit:contain;object-position:center;}
html body .omedica-about-editorial .omedica-about-director-opening {margin-top:var(--space-md);}
html body .omedica-about-editorial .omedica-about-director-rest {margin:var(--content-gap) 0 0;max-width:none;}
html body .omedica-about-editorial .omedica-about-wide {width:100%;}
html body .omedica-about-editorial .omedica-about-wide img {aspect-ratio:auto;object-fit:contain;object-position:center;}
html body .omedica-about-editorial .omedica-about-stages {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--content-gap);}
html body .omedica-about-editorial .omedica-about-stage {border-top:1px solid var(--wp--preset--color--border);padding-top:var(--space-md);}
html body .omedica-about-editorial .omedica-about-stage h3 {margin:0 0 var(--space-sm);color:var(--wp--preset--color--text);}
html body .omedica-about-editorial .omedica-about-stage ul {list-style:none;padding:0;margin:0;}
/* A statement and three reading groups, without decorative card boxes. */
html body .omedica-about-editorial .omedica-about-principles {display:block;padding-block:var(--content-gap);border-block:1px solid var(--wp--preset--color--border);}
html body .omedica-about-editorial .omedica-about-principles-intro {display:grid;grid-template-columns:1fr;gap:var(--space-md);}
html body .omedica-about-editorial .omedica-about-principles-intro > p {max-width:75ch;margin:0;color:var(--wp--preset--color--text-muted);}
html body .omedica-about-editorial .omedica-about-principles-copy {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--content-gap);max-width:none;margin-top:var(--content-gap);}
html body .omedica-about-editorial .omedica-about-principle {margin:0;}
html body .omedica-about-editorial .omedica-about-principle h3 {margin:0 0 var(--space-sm);}
html body .omedica-about-editorial .omedica-about-principle p {margin:0 0 var(--space-sm);}
html body .omedica-about-editorial .omedica-about-principle p:last-child {margin:0;}
html body .omedica-about-editorial .omedica-about-advantages {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--content-gap);align-items:center;}
html body .omedica-about-editorial .omedica-about-advantages-photo img {aspect-ratio:2048 / 1365;object-fit:contain;}
html body .omedica-about-editorial .omedica-about-advantages-list {list-style:none;padding:0;margin:0;max-width:52ch;display:grid;gap:var(--stack-gap);}
html body .omedica-about-editorial .omedica-about-advantages-list li {display:grid;grid-template-columns:.375rem minmax(0,1fr);column-gap:var(--space-sm);padding:0;margin:0;border:0;}
html body .omedica-about-editorial .omedica-about-advantages-list li::before {content:"";width:.375rem;height:.375rem;margin-top:.6em;border-radius:50%;background:var(--wp--preset--color--action);}
html body .omedica-about-editorial :is(.omedica-about-stages,.omedica-about-director-grid,.omedica-about-narrative,.omedica-about-advantages) > * {margin-block:0;min-width:0;}
/* Portrait-friendly preview rhythm; the existing lightbox opens the full original. */
html body .omedica-about-editorial .omedica-about-gallery .omedica-photo-collection {margin:0;}
html body .omedica-about-editorial .omedica-about-gallery .omedica-photo-grid.omedica-gallery-modules {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--space-sm);}
html body .omedica-about-editorial .omedica-about-gallery .omedica-photo-grid[data-count='4'] {grid-template-columns:repeat(4,minmax(0,1fr));}
html body .omedica-about-editorial .omedica-about-gallery .omedica-gallery-module {display:contents;}
html body .omedica-about-editorial .omedica-about-gallery .omedica-photo-tile {min-width:0;width:auto;max-width:none;}
html body .omedica-about-editorial .omedica-about-gallery .omedica-photo-viewport {display:block;aspect-ratio:4/5;border-radius:var(--wp--custom--radius--md);}
html body .omedica-about-editorial .omedica-about-gallery .omedica-photo-tile img {height:100%;object-fit:cover;}
@media(max-width:1023px){
 html body .omedica-about-editorial :is(.omedica-about-narrative,.omedica-about-principles) {grid-template-columns:1fr;gap:var(--content-gap);}
 html body .omedica-about-editorial .omedica-about-narrative > * {grid-column:auto;grid-row:auto;}
 html body .omedica-about-editorial .omedica-about-narrative > .omedica-about-prose {max-width:none;grid-column:auto;grid-row:auto;}
 html body .omedica-about-editorial :is(.omedica-about-stages,.omedica-about-principles-copy) {grid-template-columns:1fr;}
 html body .omedica-about-editorial .omedica-about-gallery .omedica-photo-grid.omedica-gallery-modules {grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:767px){
 html body .omedica-about-editorial .omedica-internal-intro > .omedica-about-hero,
 html body .omedica-about-editorial :is(.omedica-about-director-grid,.omedica-about-advantages,.omedica-about-principles-intro) {grid-template-columns:minmax(0,1fr);}
 html body .omedica-about-editorial .omedica-about-facts-list {grid-template-columns:repeat(2,minmax(0,1fr));}
 html body .omedica-about-editorial .omedica-about-portrait {max-width:18rem;justify-self:center;}
 html body .omedica-about-editorial .omedica-about-wide img {aspect-ratio:auto;}
}
@media(max-width:374px){html body .omedica-about-editorial .omedica-about-facts-list {grid-template-columns:1fr;}}

/* Compact landing previews reuse Core cards, keyboard scroll and original media. */
html body .omedica-about-editorial .omedica-about-discover {display:grid;gap:var(--content-gap);min-width:0;}
html body .omedica-about-editorial .omedica-about-discover > * {margin-block:0;}
.omedica-about-scroll {display:flex;gap:var(--space-md);overflow-x:auto;scroll-snap-type:x proximity;padding:var(--space-xs);max-width:100%;}
.omedica-about-scroll > * {flex:0 0 min(18rem,85%);scroll-snap-align:start;min-width:0;}
.omedica-about-scroll:focus-visible {outline:2px solid var(--wp--preset--color--action);outline-offset:2px;}
.omedica-about-link-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--content-gap);}
.omedica-about-link-grid > div {border-top:1px solid var(--wp--preset--color--border);padding-top:var(--space-md);min-width:0;}
.omedica-about-link-grid p {margin:var(--space-sm) 0 0;}
html body .omedica-about-editorial .omedica-about-principles-intro h2 {margin:0;}
@media(max-width:767px){.omedica-about-link-grid {grid-template-columns:1fr;}}

html body .omedica-about-editorial .omedica-about-explore {display:grid;gap:var(--section-gap);}
html body .omedica-about-editorial .omedica-about-explore > * {margin-block:0;}

html body .omedica-about-editorial .omedica-about-director-rest > .omedica-about-wide {margin-block:var(--content-gap);}
/* One section heading contract; native blocks remain editable. */
html body .omedica-about-editorial :is(.omedica-section-header,.omedica-embedded-reviews > header) {display:flex;align-items:baseline;justify-content:space-between;gap:var(--space-md);}
html body .omedica-about-editorial :is(.omedica-section-header,.omedica-embedded-reviews > header) > * {margin:0;min-width:0;}
html body .omedica-about-editorial :is(.omedica-section-header,.omedica-embedded-reviews > header) p {flex-shrink:0;font-weight:600;}
html body .omedica-about-editorial .omedica-about-director-section {max-width:none;}
html body .omedica-about-editorial .omedica-about-director-grid {grid-template-columns:minmax(0,1.62fr) minmax(0,1fr);}
html body .omedica-about-editorial .omedica-about-director-rest {max-width:none;}
html body .omedica-about-editorial .omedica-about-hours {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--content-gap);align-items:center;}
html body .omedica-about-editorial .omedica-about-link-grid > * {margin:0;padding-top:var(--space-md);}
html body .omedica-about-editorial .omedica-about-link-grid > * > p:first-child {margin:0;font-weight:600;}
.omedica-about-reviews .omedica-review-track > .omedica-review-card {flex-basis:clamp(17rem,25vw,21rem);}
html body .omedica-about-editorial .omedica-about-awards .omedica-photo-grid {columns:3;}


@media(max-width:767px){
 html body .omedica-about-editorial :is(.omedica-about-hours,.omedica-about-director-grid) {grid-template-columns:minmax(0,1fr);}
 html body .omedica-about-editorial :is(.omedica-section-header,.omedica-embedded-reviews > header) {flex-direction:column;gap:var(--space-sm);}
 html body .omedica-about-editorial :is(.omedica-section-header,.omedica-embedded-reviews > header) p {flex-shrink:1;}
 html body .omedica-about-editorial .omedica-about-awards .omedica-photo-grid {columns:2;}
 .omedica-about-reviews .omedica-review-track > .omedica-review-card {flex-basis:100%;}
}

html body .omedica-about-editorial .omedica-about-discover > p {max-width:none;}

/* Section children use content rhythm, including nested Core sections. */
html body .omedica-about-editorial :is(.omedica-about-gallery,.omedica-about-stages-section,.omedica-about-more) {display:grid;gap:var(--content-gap);}
html body .omedica-about-editorial :is(.omedica-about-gallery,.omedica-about-stages-section,.omedica-about-more) > * {margin-block:0;}
html body .omedica-about-editorial .omedica-about-gallery > .omedica-photo-collection {margin-block:0;}
html body .omedica-about-editorial .omedica-about-director-section > h2 {margin-bottom:var(--content-gap);}
html body .omedica-about-editorial .omedica-about-director-grid {margin-block:0;}
html body .omedica-about-editorial .omedica-about-story-photo img {aspect-ratio:auto;object-fit:contain;}
html body .omedica-about-editorial .omedica-about-hours {grid-template-columns:minmax(15rem,.6fr) minmax(0,1.4fr);width:100%;}
html body .omedica-about-editorial .omedica-about-hours .omedica-clinic-hours-grid {width:100%;max-width:22rem;grid-template-columns:max-content max-content;column-gap:var(--content-gap);font-size:var(--wp--preset--font-size--medium);row-gap:var(--space-md);}
html body .omedica-about-editorial .omedica-about-hours > figure {margin:0;}
html body .omedica-about-editorial .omedica-about-awards .omedica-photo-grid {display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:var(--space-md);columns:auto;align-items:stretch;}
html body .omedica-about-editorial .omedica-about-awards .omedica-photo-tile {width:100%;max-width:none;margin:0;}
html body .omedica-about-editorial .omedica-about-awards .omedica-photo-tile img {width:100%;height:100%;max-height:none;}
@media(max-width:1023px){html body .omedica-about-editorial .omedica-about-awards .omedica-photo-grid {grid-template-columns:repeat(3,minmax(0,1fr));}}
@media(max-width:767px){html body .omedica-about-editorial .omedica-about-awards .omedica-photo-grid {grid-template-columns:repeat(2,minmax(0,1fr));}.omedica-about-reviews .omedica-review-track > .omedica-review-card {flex-basis:85%;}}

html body .omedica-about-editorial .omedica-embedded-reviews > header {margin-block:0 var(--content-gap);}

/* Recompose the existing letter across the page rail, keeping prose measure local. */
html body .omedica-about-editorial .omedica-about-director-grid > div {max-width:68ch;}
html body .omedica-about-editorial .omedica-about-portrait {max-width:26rem;justify-self:center;}
html body .omedica-about-editorial .omedica-about-director-rest {display:grid;grid-template-columns:minmax(0,.47fr) minmax(0,.53fr);gap:var(--content-gap);align-items:center;}
html body .omedica-about-editorial .omedica-about-director-continuation {grid-column:2;grid-row:1;max-width:68ch;}
html body .omedica-about-editorial .omedica-about-director-rest > .omedica-about-wide {grid-column:1;grid-row:1;margin:0;}
html body .omedica-about-editorial .omedica-about-hours > .omedica-photo-collection {width:100%;max-width:none;justify-self:end;margin:0;}
html body .omedica-about-editorial .omedica-about-hours .omedica-gallery-module {gap:var(--space-sm);}
html body .omedica-about-editorial .omedica-about-hours .omedica-photo-viewport {aspect-ratio:3/2;}
@media(max-width:767px){
 html body .omedica-about-editorial :is(.omedica-about-hours,.omedica-about-director-rest) {grid-template-columns:minmax(0,1fr);}
 html body .omedica-about-editorial .omedica-about-director-continuation,
 html body .omedica-about-editorial .omedica-about-director-rest > .omedica-about-wide {grid-column:auto;grid-row:auto;}
 html body .omedica-about-editorial .omedica-about-hours > .omedica-photo-collection {max-width:none;}
 html body .omedica-about-editorial .omedica-about-hours .omedica-gallery-module {grid-template-columns:repeat(2,minmax(0,1fr));}
}

@media(max-width:1023px){
 html body .omedica-about-editorial :is(.omedica-about-director-grid,.omedica-about-director-rest) {grid-template-columns:minmax(0,1fr);}
 html body .omedica-about-editorial .omedica-about-director-continuation,
 html body .omedica-about-editorial .omedica-about-director-rest > .omedica-about-wide {grid-column:auto;grid-row:auto;}
}

/* A mixed-format preview uses fewer columns to avoid a lone overflow row. */
@media(min-width:768px){html body .omedica-about-editorial .omedica-about-awards .omedica-photo-grid:has(.is-landscape) {grid-template-columns:repeat(4,minmax(0,1fr));}}

@media(max-width:767px){html body .omedica-about-editorial .omedica-about-hours .omedica-gallery-module > :first-child {grid-column:1 / -1;}}
