:root{color-scheme:light;--ink:#172e29;--dim:#53645d;--green:#174d42;--dark:#10382f;--line:#d8e2d9;--paper:#f9faf6;--mist:#eaf1ea;--cream:#f2f1e8;--white:#fff;--max:1180px}*{box-sizing:border-box}html{scroll-padding-top:1rem}body{margin:0;background:var(--paper);color:var(--ink);font:17px/1.62 system-ui,-apple-system,"Segoe UI",sans-serif}a{color:var(--green);text-underline-offset:.19em}a:hover{text-decoration-thickness:2px}a:focus-visible,summary:focus-visible,button:focus-visible,input:focus-visible{outline:3px solid #ad7841;outline-offset:3px}h1,h2,h3,p,figure{margin:0}h1,h2,h3{line-height:1.12}h1,h2{font-family:Georgia,"Times New Roman",serif;font-weight:500;letter-spacing:-.035em}h1{font-size:clamp(2.5rem,6vw,5rem)}h2{font-size:clamp(1.8rem,3.8vw,3rem)}h3{font-size:1.2rem}p+p{margin-top:.85rem}img{display:block;max-width:100%;height:auto}button,input{font:inherit}button{cursor:pointer}small,.small{font-size:.87rem}.wrap,.es2-container{width:min(var(--max),calc(100% - 64px));margin-inline:auto}.notice{background:var(--dark);color:#e8f2e9;text-align:center;font-size:.76rem;letter-spacing:.07em;padding:.42rem 1rem}.site-header{background:#fff;border-bottom:1px solid var(--line)}.header-row{min-height:85px;display:flex;align-items:center;gap:24px;justify-content:space-between}.brand{text-decoration:none;display:flex;gap:12px;align-items:center;color:var(--ink);line-height:1.13;flex-shrink:0}.brand small{display:block;color:var(--dim);font-size:.72rem;margin-top:4px}.brand-mark{width:43px;height:43px;border:1px solid var(--line);background:var(--mist);border-radius:50%;display:grid;place-items:center;font:1.55rem Georgia,serif}.header-nav,.footer-nav{display:flex;gap:19px;flex-wrap:wrap;align-items:center}.header-nav a{color:var(--ink);font-size:.91rem;text-decoration:none}.header-nav a:hover,.header-nav a[aria-current=page]{text-decoration:underline}.button,.es2-button,.ep-btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;min-height:46px;padding:.6rem 1.12rem;border:1px solid var(--green);border-radius:8px;background:var(--green);color:white!important;text-decoration:none;font-size:.92rem;font-weight:650;line-height:1.25}.button:hover,.es2-button:hover,.ep-btn:hover{background:#246556}.outline,.es2-outline{background:transparent;color:var(--green)!important}.outline:hover,.es2-outline:hover{background:var(--mist)}.actions,.es2-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center}.eyebrow,.es2-eyebrow,.ep-eyebrow,.es2-card-index{display:block;color:var(--green);font-weight:700;font-size:.72rem;letter-spacing:.12em;text-transform:uppercase;margin-bottom:.7rem}.es2-hero{display:grid;grid-template-columns:1.04fr 1fr;align-items:center;gap:clamp(24px,6vw,92px);padding:clamp(44px,7vw,105px) 0;width:min(var(--max),calc(100% - 64px));margin:auto}.es2-hero h1{font-size:clamp(2.7rem,6.1vw,5.5rem)}.es2-hero .es2-intro{max-width:38ch;margin:1.2rem 0 1.55rem;color:var(--dim)}.es2-location{margin-top:1.2rem;color:var(--dim);font-size:.88rem}.es2-hero-photo,.es2-clinic-photo{position:relative;border-radius:16px;overflow:hidden;background:var(--mist);min-height:270px}.es2-hero-photo img,.es2-clinic-photo img{width:100%;height:100%;min-height:270px;aspect-ratio:1.12;object-fit:cover}.es2-photo-label{background:#fff;color:var(--ink);position:absolute;bottom:14px;left:14px;right:14px;padding:12px 15px;border-radius:9px;font-size:.83rem}.es2-photo-label strong{display:block}.es2-quickbar{background:var(--white);border-block:1px solid var(--line)}.es2-quickbar>.es2-container{display:flex;justify-content:space-between;gap:14px;padding-block:18px;flex-wrap:wrap}.es2-quickbar a{color:var(--ink);text-decoration:none}.es2-quick-icon{margin-right:.35rem;color:var(--green)}.es2-page-nav{display:flex;flex-wrap:wrap;gap:9px;padding-block:18px;font-size:.88rem}.es2-page-nav a,.pills a{padding:.35rem .7rem;border:1px solid var(--line);border-radius:100px;text-decoration:none}.es2-section,.es2-task-band,.es2-clinic,.section{padding:clamp(32px,6vw,70px) 0}.es2-white{background:var(--white)}.es2-head{display:flex;align-items:end;justify-content:space-between;gap:24px;margin-bottom:25px}.es2-head p{max-width:40ch;color:var(--dim)}.es2-service-grid,.es2-steps,.es2-patient-grid,.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.es2-service-card,.es2-step,.es2-patient-card,.card{padding:20px 21px;background:var(--white);border:1px solid var(--line);border-radius:12px;color:var(--ink);text-decoration:none;position:relative;min-width:0}.es2-service-card h3,.es2-step h3,.es2-patient-card h3,.card h3{margin-bottom:.52rem}.es2-service-card p,.card p,.es2-step p,.es2-patient-card p{color:var(--dim);font-size:.94rem}.es2-service-card:hover,.es2-patient-card:hover,.card:hover{border-color:#84a397}.es2-service-dark{background:var(--dark);color:white}.es2-service-dark p,.es2-service-dark .es2-card-index{color:#e1eee6}.es2-service-arrow{position:absolute;top:13px;right:16px}.es2-service-foot,.es2-doctor-note{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:20px;flex-wrap:wrap}.es2-task-band,.es2-clinic,.es2-contacts{background:var(--mist)}.es2-task-layout,.es2-clinic-grid,.es2-contact-grid,.split{display:grid;grid-template-columns:1fr 1fr;gap:clamp(16px,4vw,54px)}.es2-task-grid,.es2-doctor-grid,.es2-clinic-mini{display:grid;grid-template-columns:1fr 1fr;gap:12px}.es2-task{background:var(--white);padding:.75rem;border-radius:8px;text-decoration:none}.es2-doctor{display:flex;align-items:center;gap:14px;border:1px solid var(--line);border-radius:12px;padding:16px;overflow:hidden}.es2-doctor-photo img{width:96px;aspect-ratio:1;object-fit:cover;border-radius:8px}.es2-doctor-photo:empty,.es2-clinic-photo:empty{display:none}.es2-doctor-info h3{margin-bottom:.4rem}.es2-doctor-info p{margin-bottom:.55rem}.es2-clinic-links,.es2-clinic-mini{margin-top:1rem}.es2-clinic-links a{display:inline-block;margin-right:10px}.es2-price,.es2-arrival,.contact-card{background:var(--white);border:1px solid var(--line);border-radius:12px;padding:22px}.es2-faq,.es2-price{margin-top:24px}.es2-contact-phone{display:block;font-size:1.3rem;font-weight:650}.es2-hours{margin:.7rem 0}.es2-hours>div{display:flex;gap:20px;justify-content:space-between;max-width:300px}.es2-bottom-note{margin-top:15px;color:var(--dim)}.site-footer{background:var(--dark);color:#edf3ee;padding:34px 0}.site-footer a{color:inherit}.footer-row{display:grid;grid-template-columns:1.1fr 1fr;gap:24px}.footer-nav{gap:7px 18px}.footer-note{margin-top:16px;padding-top:12px;border-top:1px solid #ffffff35;color:#e1ece6}.breadcrumbs{font-size:.84rem;color:var(--dim);margin-bottom:20px;overflow-wrap:anywhere}.page{padding:34px 0 60px}.page-title{max-width:24ch;margin:0 0 22px;overflow-wrap:anywhere}.content,.wp-content{overflow-wrap:anywhere}.prose{max-width:850px}.prose :is(p,ul,ol,figure,blockquote,table,details,pre){margin-block:.8rem}.prose :is(h2,h3,h4){margin-top:1.65rem;margin-bottom:.55rem}.prose h2{font-size:clamp(1.55rem,3vw,2.45rem)}.prose blockquote{border-left:3px solid #95ae9c;padding:.65rem 1rem;background:var(--mist);margin-inline:0}.prose img{border-radius:8px}.prose :is(video,audio){max-width:100%}.prose figure,.prose .wp-block-group{max-width:100%}.prose pre{white-space:pre-wrap}.prose .wp-block-columns{display:flex;flex-wrap:wrap;gap:12px}.prose .wp-block-column{flex:1 1 220px;min-width:0}.prose hr{border:0;border-top:1px solid var(--line);margin-block:1.5rem}.section-title{margin-bottom:16px}.pills{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.listing{padding-left:0;list-style:none}.listing li{padding:.57rem 0;border-bottom:1px solid var(--line)}.pager{display:flex;gap:15px;margin-top:20px}.contact-card p,.contact-card h3{margin-bottom:.55rem}.contact-card address{font-style:normal}.section > .grid{margin-top:16px}.media-note{color:var(--dim);font-size:.83rem;border-left:2px solid var(--line);padding:.1rem .6rem}.cta{margin-top:30px;background:var(--mist);border-radius:10px;padding:18px;max-width:850px}.cta p{margin-bottom:10px}.scroll-table,.ep-scroll{overflow:auto;max-width:100%}table{border-collapse:collapse;width:100%;font-size:.94rem;background:var(--white)}th,td{padding:.58rem .68rem;border:1px solid var(--line);vertical-align:top;text-align:left}th{background:var(--mist)}caption{text-align:left;font-weight:700}.scroll-table table,.ep-scroll table{min-width:460px}.ep-hero,.ep-help,.ep-tools,.ep-group,.ep-booking,.ep-note{margin-block:1rem 1.5rem}.ep-help,.ep-tools,.ep-booking,.ep-note{padding:18px;background:var(--mist);border-radius:10px}.ep-intro,.ep-points,.ep-disclaimer{margin-top:10px}.ep-nav{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}.ep-nav a{background:#fff;padding:.4rem .65rem;border-radius:8px;text-decoration:none}.ep-search-row{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0}.ep-search,.catalog-search{padding:.54rem .65rem;border:1px solid #9bb2a7;border-radius:7px;background:white;color:var(--ink);max-width:100%;width:min(100%,420px)}.ep-clear,.ep-expand{background:#fff;border:1px solid #aabdb3;border-radius:7px;padding:.35rem .65rem;color:var(--ink)}.ep-group-head{display:flex;gap:10px;align-items:baseline;justify-content:space-between;margin-bottom:9px}.ep-group-head h2{font-size:clamp(1.45rem,3vw,2.35rem)}.ep-back{font-size:.84rem}.ep-card,details.faq{border:1px solid var(--line);background:#fff;border-radius:8px;padding:.55rem .78rem;margin:.42rem 0}.ep-card summary,details.faq summary{cursor:pointer;font-weight:650}.ep-card[open] summary{margin-bottom:.45rem}.ep-contact{margin-top:13px}.ep-booking-inner p{margin:.45rem 0}.ep-scroll :is(h3,h4){margin:0;font:inherit;font-weight:650}.skip{position:absolute;left:12px;top:-200px;z-index:1}.skip:focus{top:12px}.count{font-size:.87rem;color:var(--dim);padding:.3rem 0}.card-list{display:grid;gap:12px}.card-list a{color:inherit}.extra-content{margin-top:28px}.clinic-illustration{position:relative}.clinic-illustration img{object-position:center}.recovery-banner{background:var(--cream);border:1px solid var(--line);padding:.7rem .9rem;border-radius:8px;margin:.5rem 0 1rem;color:var(--dim)}[hidden]{display:none!important}
@media(max-width:920px){.header-row{flex-wrap:wrap;gap:9px 14px;padding-block:12px}.header-nav{order:3;width:100%;padding:0 0 3px}.es2-service-grid,.es2-steps,.es2-patient-grid,.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.es2-doctor{align-items:start}.es2-doctor-photo img{width:68px}}
@media(max-width:620px){.wrap,.es2-container,.es2-hero{width:calc(100% - 32px)}.es2-hero,.es2-task-layout,.es2-clinic-grid,.es2-contact-grid,.split,.footer-row,.es2-doctor-grid{grid-template-columns:1fr}.header-nav{gap:8px 14px}.header-nav a{font-size:.83rem}.header-row>.button{min-height:41px;padding:.45rem .55rem;font-size:.78rem}.brand{gap:7px;font-size:.9rem}.brand-mark{width:33px;height:33px;font-size:1.15rem}.brand small{font-size:.63rem}.es2-hero-photo img{aspect-ratio:1.55;min-height:210px}.es2-hero-photo{min-height:210px}.es2-hero{gap:23px}.es2-head{display:block}.es2-head p{margin-top:.65rem}.es2-service-card,.card,.es2-step,.es2-patient-card{padding:13px}.es2-service-grid,.grid,.es2-steps,.es2-patient-grid{gap:8px}.es2-service-card h3,.card h3{font-size:1rem}.es2-service-card p{font-size:.84rem}.es2-card-index{font-size:.6rem;padding-right:8px}.es2-service-arrow{right:7px;top:6px}.notice{font-size:.65rem}.page{padding-top:24px}.ep-group-head{display:block}}

/* Clinic imagery and section icons */
.clinic-icon{display:inline-grid;place-items:center;flex:0 0 auto;width:2.4rem;height:2.4rem;border-radius:10px;background:var(--mist);color:var(--green);vertical-align:middle}
.clinic-icon svg{display:block;width:1.32rem;height:1.32rem}
.clinic-icon-small{width:1.55rem;height:1.55rem;border-radius:6px}
.clinic-icon-small svg{width:1rem;height:1rem}
.clinic-icon-light,.es2-service-dark .clinic-icon{background:#ffffff20;color:#e1eee6}
.es2-service-card>.clinic-icon,.card:not(.visual-service)>.clinic-icon,.es2-step>.clinic-icon,.es2-patient-card>.clinic-icon,.contact-card>.clinic-icon{margin-bottom:.6rem}
.es2-quickbar .clinic-icon{margin-right:.45rem}
.ep-nav a,.icon-action{display:inline-flex;align-items:center;gap:.45rem}
.ep-nav .clinic-icon,.icon-action .clinic-icon{background:transparent}
.icon-action.button:not(.outline) .clinic-icon{color:#fff}
.es2-container>.es2-hero{width:100%}
.es2-hero-photo img{object-position:center}
.es2-clinic-photo{align-self:center}
.es2-clinic-photo figcaption{position:absolute;bottom:.75rem;left:.75rem;right:.75rem;background:#fff;border-radius:8px;padding:.5rem .7rem;font-size:.83rem}
.es2-doctor-photo{display:block;flex:0 0 auto}
.es2-doctor-photo img{width:clamp(64px,9vw,108px)}
.visual-service{padding:0;overflow:hidden}
.visual-service>img{width:100%;aspect-ratio:16/9;object-fit:cover;background:var(--mist)}
.visual-service-copy{padding:16px 19px}
.visual-service-copy .clinic-icon{margin-bottom:.55rem}
.visual-service h3{line-height:1.25}
.page-visual{position:relative;overflow:hidden;border-radius:14px;background:var(--mist);margin:0 0 1.35rem;max-width:850px}
.page-visual img{width:100%;aspect-ratio:16/9;object-fit:cover}
.page-visual figcaption,.visual-card figcaption{padding:.45rem .8rem;color:var(--dim);font-size:.8rem;background:#f1f5ef}
.page-visual-room img{aspect-ratio:1.65}
.prose .page-visual-inline{margin:1rem 0 1.35rem}
.profile-visual{max-width:310px}
.profile-visual img{aspect-ratio:1;object-position:center}
.visual-contact{margin-top:18px}
.visual-contact .page-visual{max-width:none;margin-bottom:0}
.visual-contact .page-visual img{aspect-ratio:1.65;object-position:center 32%}
.visual-visit-photo{max-width:610px}
.visual-gallery{margin:0 0 1.55rem}
.visual-gallery .grid{margin-top:.85rem}
.visual-case{padding:0;overflow:hidden}
.visual-case figure{margin:0}
.visual-case figure img{width:100%;aspect-ratio:1.55;object-fit:contain;background:#edf1ea;border-radius:0}
.visual-case strong{display:block;padding:.75rem .8rem}
.visual-case:focus-visible{outline-offset:3px}
@media(max-width:620px){
  .visual-service-copy{padding:.65rem .7rem}
  .visual-service h3{font-size:1rem}
  .clinic-icon{width:2rem;height:2rem}
  .clinic-icon-small{width:1.35rem;height:1.35rem}
  .es2-doctor-photo img{width:68px}
  .visual-case strong{font-size:.85rem}
  .page-visual{border-radius:10px}
}

.hero-doctors{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.hero-doctor{display:block;position:relative;overflow:hidden;border:1px solid var(--line);border-radius:14px;background:var(--mist);text-decoration:none;color:var(--ink)}
.hero-doctor img{width:100%;height:auto;aspect-ratio:4/5;object-fit:cover;object-position:center 46%}
.hero-doctor span{display:block;padding:.65rem .75rem;font-size:.82rem;line-height:1.3;font-weight:650;background:#fff}
.es2-clinic-grid:has(>.es2-clinic-photo):not(:has(>.es2-clinic-photo img)),.es2-clinic-grid:not(:has(>.es2-clinic-photo)){grid-template-columns:minmax(0,1fr)}
.profile-visual img{aspect-ratio:4/5;object-position:center 45%}
.es-campaign-section{margin:2rem 0}
.es-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:1rem 0}
.es-card{border:1px solid var(--line);background:#fff;border-radius:12px;overflow:hidden}
.es-card>img,.es-card>figure img{width:100%;aspect-ratio:16/9;object-fit:cover}
.es-card-body{padding:.9rem 1rem}
.es-card-body h3{margin:.45rem 0}
.es-offer-price{font-size:1.55rem;font-weight:700;color:var(--green)}
.es-badge,.es-period{color:var(--green);font-weight:650}
.es-btn{display:inline-block;padding:.45rem .7rem;border:1px solid var(--line);border-radius:7px}
.blog-preview-link{display:inline-flex;gap:12px;align-items:center}
.blog-preview-link img{width:88px;height:54px;object-fit:cover;border-radius:7px}
.prose img{object-position:center}
@media(max-width:620px){.hero-doctors{gap:8px}.hero-doctor img{aspect-ratio:1}.hero-doctor span{font-size:.75rem;padding:.48rem}.es-grid{grid-template-columns:1fr}.blog-preview-link img{width:65px;height:43px}}

.ep-analytics{margin-top:1rem;font-size:.875rem}
.ep-analytics button{font:inherit;cursor:pointer}
.ep-analytics-settings{border:0;padding:.35rem 0;background:transparent;color:inherit;text-decoration:underline}
.ep-analytics-panel{margin-top:.35rem;padding:.75rem;border:1px solid currentColor;border-radius:.5rem;max-width:36rem}
.ep-analytics-panel p{margin:0 0 .5rem}
.ep-analytics-actions{display:flex;flex-wrap:wrap;gap:.5rem}
.ep-analytics-actions button{border:1px solid currentColor;border-radius:.35rem;background:transparent;color:inherit;padding:.3rem .65rem}

/* Keep clinic navigation available while reading long pages. */
html { scroll-padding-top: calc(var(--clinic-header-height, 90px) + 12px); }
.site-header { position: sticky; top: 0; z-index: 40; box-shadow: 0 2px 10px #173e340b; }
.skip { z-index: 60; }
.clinic-menu-toggle { display: none; }
@media (max-width: 920px) {
  .site-header.is-menu-ready .header-row { gap: 8px; min-height: 62px; padding-block: 8px; }
  .site-header.is-menu-ready .brand { order: 0; min-width: 0; margin-right: auto; }
  .site-header.is-menu-ready .brand-mark { flex: 0 0 auto; }
  .site-header.is-menu-ready .header-row > .button { order: 1; flex: 0 0 auto; min-height: 40px; }
  .site-header.is-menu-ready .clinic-menu-toggle {
    order: 2;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 9px;
    color: var(--green);
    background: #f2f6f0;
    cursor: pointer;
  }
  .clinic-menu-toggle svg { width: 22px; height: 22px; }
  .clinic-menu-toggle .clinic-menu-close,
  .clinic-menu-toggle[aria-expanded="true"] .clinic-menu-open { display: none; }
  .clinic-menu-toggle[aria-expanded="true"] .clinic-menu-close { display: block; }
  .site-header.is-menu-ready .header-nav {
    order: 3;
    display: none;
    width: 100%;
    padding: 7px 0 1px;
    border-top: 1px solid var(--line);
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px 7px;
  }
  .site-header.is-menu-open .header-nav { display: grid; }
  .site-header.is-menu-ready .header-nav a {
    display: grid;
    align-items: center;
    min-height: 40px;
    padding: 6px 9px;
    border-radius: 7px;
    font-size: .84rem;
    background: #f3f7f1;
  }
}
@media (max-width: 620px) {
  .site-header.is-menu-ready .brand { flex: 1 1 0; line-height: 1.18; }
  .site-header.is-menu-ready .brand strong { font-size: clamp(.72rem, 2.9vw, .88rem); }
  .site-header.is-menu-ready .brand small { display: none; }
  .site-header.is-menu-ready .header-row > .button { font-size: .74rem; padding-inline: 7px; }
}

body .hp-header { position: sticky; top: 0; z-index: 40; box-shadow: 0 2px 10px #173e340b; }
@media (max-width: 620px) {
  .hp-header .hp-header-row { min-height: 61px; gap: 7px; }
  .hp-header .hp-brand { flex: 1 1 0; min-width: 0; gap: 6px; }
  .hp-header .hp-brand-mark { width: 33px; height: 33px; flex: 0 0 33px; }
  .hp-header .hp-brand strong { font-size: clamp(.71rem, 2.85vw, .86rem); }
  .hp-header .hp-brand small { display: none; }
  .hp-header .hp-header-row > .hp-pill { display: inline-flex; flex: 0 0 auto; margin: 0; padding: 7px; min-height: 39px; font-size: .74rem; }
  .hp-header .hp-mobile summary { min-width: 58px; min-height: 40px; padding: 6px; gap: 3px; font-size: .73rem; }
}
@media (max-width: 350px) {
  .site-header.is-menu-ready .header-row > .button,
  .hp-header .hp-header-row > .hp-pill { max-width: 105px; white-space: normal; text-align: center; }
  .site-header.is-menu-ready .header-row > .button > [aria-hidden="true"],
  .hp-header .hp-header-row > .hp-pill > [aria-hidden="true"] { display: none; }
  .site-header.is-menu-ready .brand > span:last-child,
  .hp-header .hp-brand > span:last-child { min-width: 0; overflow-wrap: anywhere; }
}

/* Shared responsive content width */
:root {
  --site-content-max: 1280px;
  --site-gutter: clamp(16px, 4vw, 40px);
  --site-content-width: min(var(--site-content-max), calc(100% - 2 * var(--site-gutter)));
  --site-reading-width: 860px;
}

.wrap,
.es2-container,
.es2-hero {
  width: var(--site-content-width);
  margin-inline: auto;
}

.es2-container > .es2-hero {
  width: 100%;
}

/* These templates also declare widths in their own stylesheets. */
body.hp-page :is(.hp-wrap, .site-footer .wrap),
body #main > :is(.lp-page, #heel-guide) {
  width: var(--site-content-width) !important;
  max-width: var(--site-content-max) !important;
  margin-inline: auto;
}

body #main > #heel-guide {
  padding-inline: 0;
}

#main {
  min-inline-size: 0;
  overflow-wrap: anywhere;
}

.prose {
  width: 100%;
  max-width: var(--site-reading-width);
}

.prose:has(> :is(.es-warts, .es2-container, .es2-hero, .ep-group, .ep-nav, .wp-block-columns, .wp-block-gallery, .grid)),
.prose:has(> :where(#es-offers, #es-gallery, .es-catalog, .epil-laser-service, [data-layout="wide"])) {
  max-width: none;
}

.prose > :is(p, ul, ol, blockquote) {
  max-inline-size: var(--site-reading-width);
}

.prose > .es2-container,
.prose > .es2-hero {
  width: 100%;
}

#main :is(img, video, iframe, embed, object, input, select, textarea) {
  max-inline-size: 100%;
}

#main :is(.scroll-table, .ep-scroll, .wp-block-table, pre) {
  max-inline-size: 100%;
  overflow-x: auto;
}

@media (max-width: 620px) {
  #main .prose > table {
    display: block;
    max-inline-size: 100%;
    overflow-x: auto;
  }
}

@media (max-width: 380px) {
  #main :is(.grid, .es2-service-grid, .es2-steps, .es2-patient-grid) {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Align the shared header with the page and keep the menu inside narrow screens. */
body #epil-header .eh-wrap {
  width: var(--site-content-width);
  max-width: var(--site-content-max);
  padding-inline: 0;
}

@media (max-width: 600px) {
  body #epil-header .eh-brand {
    flex: 1 1 0;
    min-width: 0;
  }

  body #epil-header .eh-brand > span:last-child {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  body #epil-header .eh-mark,
  body #epil-header .eh-mobile {
    flex: 0 0 auto;
  }

  body #epil-header .eh-mobile summary {
    white-space: nowrap;
  }

  body #epil-header .eh-top a {
    flex: 0 0 auto;
    white-space: nowrap;
  }
}

/* Couperose service page */
:is(#es-kup-28012, #es-kup-27970, #es-kup-37974, #es-kup-37975){--ink:#17382f;--pine:#17463a;--line:#dce7df;--mist:#eef5ef;--paper:#fafbf7;color:var(--ink);font-size:clamp(16px,1.5vw,18px);line-height:1.65}
:is(#es-kup-28012, #es-kup-27970, #es-kup-37974, #es-kup-37975) *,:is(#es-kup-28012, #es-kup-27970, #es-kup-37974, #es-kup-37975) *::before,:is(#es-kup-28012, #es-kup-27970, #es-kup-37974, #es-kup-37975) *::after{box-sizing:border-box}
:is(#es-kup-28012, #es-kup-27970, #es-kup-37974, #es-kup-37975) h2,:is(#es-kup-28012, #es-kup-27970, #es-kup-37974, #es-kup-37975) h3{color:inherit;line-height:1.13;text-wrap:balance;margin:0 0 .65em}
:is(#es-kup-28012, #es-kup-27970, #es-kup-37974, #es-kup-37975) h2{font-size:clamp(27px,4vw,47px);letter-spacing:-.035em}
:is(#es-kup-28012, #es-kup-27970, #es-kup-37974, #es-kup-37975) h3{font-size:clamp(20px,2.2vw,26px);letter-spacing:-.02em}
:is(#es-kup-28012, #es-kup-27970, #es-kup-37974, #es-kup-37975) p{margin:0 0 .85em}
:is(#es-kup-28012, #es-kup-27970, #es-kup-37974, #es-kup-37975) p:last-child{margin-bottom:0}
:is(#es-kup-28012, #es-kup-27970, #es-kup-37974, #es-kup-37975) .esw-kicker{font-size:.76rem;line-height:1.45;font-weight:750;letter-spacing:.09em;text-transform:uppercase;color:#456959}
:is(#es-kup-28012, #es-kup-27970, #es-kup-37974, #es-kup-37975) .esw-back{display:inline-block;margin:0 0 16px;font-size:.9rem}
:is(#es-kup-28012, #es-kup-27970, #es-kup-37974, #es-kup-37975) .esw-hero,:is(#es-kup-28012, #es-kup-27970, #es-kup-37974, #es-kup-37975) .esw-section{padding:clamp(20px,4vw,52px);margin:0 0 clamp(16px,2.4vw,28px);border:1px solid var(--line);border-radius:clamp(18px,2.7vw,32px);background:#fff;scroll-margin-top:110px;min-width:0}
:is(#es-kup-28012, #es-kup-27970, #es-kup-37974, #es-kup-37975) .esw-hero{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);align-items:center;gap:clamp(24px,4vw,48px);background:linear-gradient(126deg,#edf5ee,#f9f6ed);box-shadow:0 15px 40px #2444380e}
:is(#es-kup-28012, #es-kup-27970, #es-kup-37974, #es-kup-37975) .esw-hero h2{font-size:clamp(32px,5.5vw,64px);line-height:1.02}
:is(#es-kup-28012, #es-kup-27970, #es-kup-37974, #es-kup-37975) .esw-lead{max-width:44ch}
:is(#es-kup-28012, #es-kup-27970, #es-kup-37974, #es-kup-37975) .esw-location,:is(#es-kup-28012, #es-kup-27970, #es-kup-37974, #es-kup-37975) .esw-small,:is(#es-kup-28012, #es-kup-27970, #es-kup-37974, #es-kup-37975) .esw-legal{font-size:.9rem}
:is(#es-kup-28012, #es-kup-27970, #es-kup-37974, #es-kup-37975) .esw-photo,:is(#es-kup-28012, #es-kup-27970, #es-kup-37974, #es-kup-37975) .esw-secondary{display:block;width:100%;max-width:100%;height:auto;object-fit:cover;border-radius:20px;margin:0}
:is(#es-kup-28012, #es-kup-27970, #es-kup-37974, #es-kup-37975) .esw-photo{aspect-ratio:4/3}
:is(#es-kup-28012, #es-kup-27970, #es-kup-37974, #es-kup-37975) .esw-secondary{margin-bottom:16px}
:is(#es-kup-28012, #es-kup-27970, #es-kup-37974, #es-kup-37975) .esw-actions,:is(#es-kup-28012, #es-kup-27970, #es-kup-37974, #es-kup-37975) .esw-nav{display:flex;flex-wrap:wrap;gap:9px;margin:16px 0}
:is(#es-kup-28012, #es-kup-27970, #es-kup-37974, #es-kup-37975) .esw-nav{padding:5px 0 12px}
:is(#es-kup-28012, #es-kup-27970, #es-kup-37974, #es-kup-37975) .esw-btn,:is(#es-kup-28012, #es-kup-27970, #es-kup-37974, #es-kup-37975) .esw-nav a{display:inline-flex;align-items:center;min-height:44px;padding:8px 16px;border:1px solid var(--line);border-radius:999px;font-weight:700;font-size:.9rem;text-decoration:none}
:is(#es-kup-28012, #es-kup-27970, #es-kup-37974, #es-kup-37975) .esw-btn{background:var(--pine);color:#fff;border-color:var(--pine)}
:is(#es-kup-28012, #es-kup-27970, #es-kup-37974, #es-kup-37975) .esw-btn--outline,:is(#es-kup-28012, #es-kup-27970, #es-kup-37974, #es-kup-37975) .esw-nav a{background:#fff;color:var(--pine)}
:is(#es-kup-28012, #es-kup-27970, #es-kup-37974, #es-kup-37975) .esw-btn:hover{filter:brightness(1.13)}
:is(#es-kup-28012, #es-kup-27970, #es-kup-37974, #es-kup-37975) .esw-nav a:hover{background:var(--mist)}
:is(#es-kup-28012, #es-kup-27970, #es-kup-37974, #es-kup-37975) :is(a,summary):focus-visible{outline:3px solid #92734d;outline-offset:3px}
:is(#es-kup-28012, #es-kup-27970, #es-kup-37974, #es-kup-37975) .esw-intro{max-width:72ch;margin-bottom:24px}
:is(#es-kup-28012, #es-kup-27970, #es-kup-37974, #es-kup-37975) .esw-grid,:is(#es-kup-28012, #es-kup-27970, #es-kup-37974, #es-kup-37975) .esw-split,:is(#es-kup-28012, #es-kup-27970, #es-kup-37974, #es-kup-37975) .esw-doctor,:is(#es-kup-28012, #es-kup-27970, #es-kup-37974, #es-kup-37975) .esw-cta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(12px,2.2vw,24px)}
:is(#es-kup-28012, #es-kup-27970, #es-kup-37974, #es-kup-37975) .esw-grid--3{grid-template-columns:repeat(3,minmax(0,1fr))}
:is(#es-kup-28012, #es-kup-27970, #es-kup-37974, #es-kup-37975) #price .esw-split{grid-template-columns:1fr}
:is(#es-kup-28012, #es-kup-27970, #es-kup-37974, #es-kup-37975) #price,:is(#es-kup-28012, #es-kup-27970, #es-kup-37974, #es-kup-37975) .esw-doctor{background:var(--paper)}
:is(#es-kup-28012, #es-kup-27970, #es-kup-37974, #es-kup-37975) .esw-card,:is(#es-kup-28012, #es-kup-27970, #es-kup-37974, #es-kup-37975) .esw-band{min-width:0;padding:clamp(16px,2.5vw,28px);border-radius:18px;background:var(--mist);border:1px solid var(--line)}
:is(#es-kup-28012, #es-kup-27970, #es-kup-37974, #es-kup-37975) .esw-stepno{display:inline-grid;place-items:center;min-width:40px;height:40px;margin-bottom:14px;border-radius:50%;background:#d8e8dd;font-weight:750;color:var(--pine)}
:is(#es-kup-28012, #es-kup-27970, #es-kup-37974, #es-kup-37975) .esw-list{padding-left:1.25em}
:is(#es-kup-28012, #es-kup-27970, #es-kup-37974, #es-kup-37975) .esw-list li{padding-left:.15em;margin-bottom:.55em}
:is(#es-kup-28012, #es-kup-27970, #es-kup-37974, #es-kup-37975) .esw-faq details{background:var(--paper);border:1px solid var(--line);border-radius:14px;margin:9px 0;padding:0 16px}
:is(#es-kup-28012, #es-kup-27970, #es-kup-37974, #es-kup-37975) .esw-faq summary{cursor:pointer;padding:13px 0;font-weight:700}
:is(#es-kup-28012, #es-kup-27970, #es-kup-37974, #es-kup-37975) .esw-faq details p{padding-bottom:14px}
:is(#es-kup-28012, #es-kup-27970, #es-kup-37974, #es-kup-37975) .esw-cta{background:#183f35;color:#fff;align-items:center}
:is(#es-kup-28012, #es-kup-27970, #es-kup-37974, #es-kup-37975) .esw-cta .esw-kicker,:is(#es-kup-28012, #es-kup-27970, #es-kup-37974, #es-kup-37975) .esw-cta a{color:#e0efe5}
:is(#es-kup-28012, #es-kup-27970, #es-kup-37974, #es-kup-37975) .esw-cta .esw-btn{background:#eaf4ec;color:#17382f;border-color:#eaf4ec}
@media(max-width:740px){:is(#es-kup-28012, #es-kup-27970, #es-kup-37974, #es-kup-37975) :is(.esw-hero,.esw-grid,.esw-split,.esw-doctor,.esw-cta){grid-template-columns:minmax(0,1fr)}:is(#es-kup-28012, #es-kup-27970, #es-kup-37974, #es-kup-37975) .esw-photo{aspect-ratio:16/10}:is(#es-kup-28012, #es-kup-27970, #es-kup-37974, #es-kup-37975) .esw-section{scroll-margin-top:80px}}

#main .page:has(:is(#es-kup-28012, #es-kup-27970, #es-kup-37974, #es-kup-37975)) > .page-title {
  max-width: 32ch;
  font-size: clamp(30px, 4.5vw, 60px);
}

:is(#es-kup-28012, #es-kup-27970, #es-kup-37974, #es-kup-37975) > a:not(.esw-back) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: 0 8px 10px 0;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--pine);
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
}

:is(#es-kup-28012, #es-kup-27970, #es-kup-37974, #es-kup-37975) > a:not(.esw-back):hover {
  background: var(--mist);
}

:is(#es-kup-28012, #es-kup-27970, #es-kup-37974, #es-kup-37975) #about {
  margin-top: 8px;
}

/* Site layout: readable text, wide catalogues, local table scrolling. */
#main .prose > [data-layout="wide"] {
  max-inline-size: 100%;
  min-inline-size: 0;
}

#main .prose > .epil-laser-service > :where(p, ul, ol, blockquote),
#main .es-catalog > :where(p, ul, ol, blockquote),
#main .es-catalog :where(.cat-hero, .cat-process-copy, .cat-start-copy) > :where(p, ul, ol) {
  max-inline-size: var(--site-reading-width);
}

#main #es-gallery {
  max-inline-size: 100%;
  margin-inline: 0;
}

#main .es-catalog .cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(12px, 2vw, 22px);
}

#main .es-catalog .cat-service {
  display: block;
  min-inline-size: 0;
  padding: clamp(14px, 2vw, 24px);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}

#main :where(.scroll-table, .ep-scroll, .wp-block-table, .epil-child-table-scroll, .derm-table) {
  min-inline-size: 0;
  max-inline-size: 100%;
  overflow-x: auto;
}

@media (max-width: 520px) {
  #main .grid:has(> a.card) {
    grid-template-columns: minmax(0, 1fr);
  }

  #main .grid > a.card {
    min-inline-size: 0;
  }

  #main .grid > a.card.epil-destination-link {
    flex-wrap: wrap;
  }

  #main .grid > a.card.epil-destination-link > :where(h2, h3, p) {
    flex-basis: 100%;
    min-inline-size: 0;
  }
}

/* Related articles and services */
main .epil-read-next {
  --related-ink: #234b3c;
  --related-line: #d5dfd6;
  --related-paper: #fff;
  width: 100%;
  max-width: 1280px;
  margin: clamp(2rem, 5vw, 4rem) auto 1rem;
  padding: clamp(1rem, 2.5vw, 1.75rem);
  box-sizing: border-box;
  border: 1px solid var(--related-line);
  border-radius: 18px;
  background: #f0f5ef;
}

main .epil-read-next > h2 {
  margin: 0 0 1.2rem;
  color: var(--related-ink);
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  line-height: 1.16;
}

main .epil-read-next :is(.epil-read-next-grid, .cap-related-columns, .cap-more),
main .ep-story-related {
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}

main .epil-read-next .cap-related-columns {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

main .epil-read-next :is(.epil-read-next-card, .cap-related-group) {
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

main .epil-read-next :is(.epil-read-next-card, .cap-related-group) > h3 {
  margin: 0 0 .55rem;
  color: var(--related-ink);
  font: 700 .91rem/1.35 system-ui, sans-serif;
}

main .epil-read-next :is(.epil-read-next-card ul, .cap-related-list, .cap-more) {
  padding: 0;
  list-style: none;
}

main .epil-read-next :is(.epil-read-next-card ul, .cap-related-list) {
  display: grid;
  gap: .6rem;
  margin: 0;
}

main .epil-read-next .cap-more {
  margin: 1rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--related-line);
}

main .epil-read-next li,
main .ep-story-related > * {
  min-width: 0;
}

main .epil-read-next li > a,
main .epil-read-next .epil-read-next-card li > a.epil-destination-link,
main .ep-story-related > a {
  display: flex !important;
  align-items: center;
  gap: .65rem;
  box-sizing: border-box;
  min-height: 4.85rem;
  height: 100%;
  padding: .5rem !important;
  border: 1px solid #d5dfd6;
  border-radius: 10px;
  background: #fff;
  color: #234b3c;
  text-decoration: none !important;
  font: 650 .95rem/1.35 system-ui, sans-serif;
  overflow-wrap: anywhere;
}

main .epil-read-next li > a > img,
main .epil-read-next .epil-read-next-card li > a.epil-destination-link > img,
main .ep-story-related > a > img {
  display: block !important;
  width: 5.2rem !important;
  height: auto !important;
  aspect-ratio: 16/10 !important;
  margin: 0 !important;
  object-fit: cover;
  border-radius: 6px;
  flex: none;
}

main .epil-read-next li > a:hover,
main .ep-story-related > a:hover {
  border-color: #8da897;
  background: #f8fbf7;
  text-decoration: underline !important;
}

main .epil-read-next li > a:focus-visible,
main .ep-story-related > a:focus-visible {
  outline: 2px solid #245b42;
  outline-offset: 3px;
}

@media (max-width: 760px) {
  main .epil-read-next .cap-related-columns {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 620px) {
  main .epil-read-next :is(.epil-read-next-grid, .cap-more),
  main .ep-story-related {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Shared heading typography for the clinic site. */
:root {
  --epil-heading-ink: #183e34;
  --epil-heading-serif: Georgia, "Times New Roman", serif;
  --epil-heading-h1: clamp(1.95rem, 1.45rem + 2.4vw, 3.65rem);
  --epil-heading-h2: clamp(1.52rem, 1.23rem + 1.2vw, 2.32rem);
  --epil-heading-h3: clamp(1.12rem, 1.04rem + .38vw, 1.38rem);
}

main h1,
main h2,
main h3 {
  overflow-wrap: break-word;
}

main h1,
main h2 {
  font-family: var(--epil-heading-serif);
  letter-spacing: -.025em;
  text-wrap: balance;
}

main h1,
main h1.page-title,
main .es2-hero h1,
main .cap-wrap .cap-hero-info h1.page-title {
  font-size: var(--epil-heading-h1);
  line-height: 1.1;
}

main h1.page-title {
  max-inline-size: 32ch;
}

main h2 {
  font-size: var(--epil-heading-h2);
  line-height: 1.19;
}

main h3 {
  font-size: var(--epil-heading-h3);
  line-height: 1.3;
  text-wrap: pretty;
}

main :is(.prose, .ep-story-article, .cap-wrap .cap-content) h2 {
  margin-block: clamp(1.9rem, 1.35rem + 2vw, 3.35rem) .9rem;
  color: var(--epil-heading-ink);
  font-size: var(--epil-heading-h2);
  line-height: 1.19;
  scroll-margin-block-start: 7.5rem;
}

main :is(.prose, .ep-story-article, .cap-wrap .cap-content) h3:not(summary *) {
  margin-block: clamp(1.22rem, 1rem + .65vw, 1.85rem) .55rem;
  color: var(--epil-heading-ink);
  font-size: var(--epil-heading-h3);
  font-weight: 700;
  line-height: 1.32;
  scroll-margin-block-start: 7.5rem;
}

main :is(.prose, .ep-story-article, .cap-wrap .cap-content) h2 + h3:not(summary *) {
  margin-block-start: 1rem;
}

/* Keep the heading levels distinct in the home and service layouts. */
main .hp-hero h1 {
  font-size: clamp(2.12rem, 1.55rem + 2.8vw, 4rem);
  line-height: 1.08;
}

main.hp-page h2,
.hp-page main h2,
main .hp-page h2 {
  font-size: clamp(1.65rem, 1.3rem + 1.5vw, 2.65rem);
  line-height: 1.16;
}

main .derm-heading h1.page-title {
  font-size: clamp(1.95rem, 1.48rem + 2vw, 3.2rem);
  line-height: 1.1;
}

main .derm-page :is(.hub-hero, .esw-hero, .epil-service-hero) h2,
.derm-page main :is(.hub-hero, .esw-hero, .epil-service-hero) h2 {
  margin-block-start: 0;
}

main .prose :is(.esw-card, .esw-band) > h3 {
  margin-block-start: 0;
}

/* Shared article author card. */
main :is(.epil-article-byline, .epil-author-portrait, [data-epil-author-card]),
main .ep-story-byline:has(img.epil-author-avatar, img[src*="/yuriy-team.webp"]) {
  display: flex !important;
  align-items: center;
  gap: 14px;
  box-sizing: border-box;
  min-width: 0;
  margin: 28px 0 20px !important;
  padding: 14px 18px !important;
  background: #eef3ed;
  border: 1px solid #d9e3d7;
  border-radius: 14px;
  color: #243d34;
  font-size: 15px;
  line-height: 1.45;
}

main :is(.epil-article-byline, .epil-author-portrait, [data-epil-author-card]) img,
main .ep-story-byline img:is(.epil-author-avatar, [src*="/yuriy-team.webp"]) {
  display: block !important;
  flex: 0 0 72px !important;
  width: 72px !important;
  height: 72px !important;
  max-width: none !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
  object-position: 50% 39% !important;
  border-radius: 50% !important;
  margin: 0 !important;
  border: 2px solid #fff;
  box-sizing: border-box;
}

main :is(.epil-article-byline, .epil-author-portrait, [data-epil-author-card]) > :not(img) {
  min-width: 0;
  overflow-wrap: anywhere;
}

main :is(.epil-article-byline, .epil-author-portrait, [data-epil-author-card]) strong {
  font-size: 1rem;
  font-weight: 700;
}

main :is(.epil-article-byline, .epil-author-portrait, [data-epil-author-card]) small {
  font-size: .875rem;
  color: #435a4f;
}

@media (max-width: 480px) {
  main :is(.epil-article-byline, .epil-author-portrait, [data-epil-author-card]),
  main .ep-story-byline:has(img.epil-author-avatar, img[src*="/yuriy-team.webp"]) {
    gap: 12px;
    padding: 12px !important;
  }
}
