/* MeGyn Stable - fixed layout derived from the accepted V5 geometry and original site assets */
:root{
    --mg-ink:#24201f;
    --mg-copy:#747474;
    --mg-peach:#ee9e77;
    --mg-rose:#d1a2a2;
    --mg-rose-dark:#c79393;
    --mg-blush:#fff4ee;
    --mg-hero:#cec3c4;
    --mg-footer:#101d23;
    --mg-line:#edd5c9;
    --mg-container:1160px;
    --mg-wide:1740px;
    --mg-serif:Cormorant,"EB Garamond",Georgia,"Times New Roman",serif;
    --mg-sans:"Nunito Sans",Arial,Helvetica,sans-serif;
    --mg-body:Roboto,Arial,Helvetica,sans-serif;
}
html{scroll-behavior:smooth}
body.megyn-stable-body{margin:0!important;background:#fff;color:var(--mg-copy);font-family:var(--mg-body);font-size:16px;line-height:1.62;overflow-x:hidden}
body.megyn-stable-body *{box-sizing:border-box}
body.megyn-stable-body img{display:block;max-width:100%;height:auto}
body.megyn-stable-body a{color:inherit;text-decoration:none}
body.megyn-stable-body .mg-site{overflow:hidden;background:#fff}
.mg-container{width:calc(100% - 56px);max-width:var(--mg-container);margin-left:auto;margin-right:auto}
.mg-skip{position:fixed;left:14px;top:-100px;z-index:99999;background:#fff;color:#000;padding:10px 16px}.mg-skip:focus{top:14px}
.mg-eyebrow{margin:0 0 16px;color:var(--mg-peach);font-family:var(--mg-sans);font-size:11px;font-weight:700;letter-spacing:.17em;text-transform:uppercase}
.mg-site h1,.mg-site h2,.mg-site h3{margin:0;color:var(--mg-ink);font-family:var(--mg-serif);font-weight:400;line-height:1.08}
.mg-site h1{font-size:58px}.mg-site h2{font-size:52px}.mg-site h3{font-size:27px}
.mg-button{display:inline-flex;min-width:138px;height:48px;align-items:center;justify-content:center;padding:0 28px;background:var(--mg-rose);color:#fff!important;border:1px solid var(--mg-rose);font-family:var(--mg-sans);font-size:11px;font-weight:700;letter-spacing:.13em;text-transform:uppercase;transition:.2s}
.mg-button:hover{background:var(--mg-rose-dark);border-color:var(--mg-rose-dark)}
.mg-button-light{background:#fff;color:var(--mg-rose-dark)!important}
.mg-hours{font-family:var(--mg-serif);font-size:13px;letter-spacing:.12em;text-transform:uppercase;color:var(--mg-ink)}

/* Header */
.mg-header{position:relative;z-index:40;background:#fff;height:94px}
.mg-header-inner{width:calc(100% - 100px);max-width:var(--mg-wide);height:100%;margin:auto;display:grid;grid-template-columns:190px 1fr auto;align-items:center}
.mg-brand{display:inline-flex;width:120px;align-items:center}.mg-brand img{width:100%;filter:invert(1);opacity:.78}
.mg-nav{justify-self:end}.mg-menu{display:flex;gap:38px;align-items:center;list-style:none;margin:0;padding:0}.mg-menu>li{position:relative}.mg-menu a{font-family:var(--mg-serif);font-size:16px;color:#25211f;padding:34px 0 27px;display:block}.mg-menu .current-menu-item>a,.mg-menu a:hover{border-bottom:1px solid #26211f}
.mg-menu-toggle{display:none;border:0;background:transparent;padding:8px}.mg-menu-toggle span{display:block;width:27px;height:1px;background:#222;margin:6px 0}
.mg-phone-dot{display:none}
.mg-header-home{position:absolute;top:0;left:0;right:0;background:transparent;height:82px}.mg-header-home .mg-header-inner{width:calc(100% - 110px);max-width:var(--mg-wide);grid-template-columns:120px auto 1fr}.mg-header-home .mg-brand{width:82px}.mg-header-home .mg-nav{justify-self:start;margin-left:28px}.mg-header-home .mg-menu{gap:28px}.mg-header-home .mg-menu a{font-size:13px;padding:27px 0 20px}.mg-header-home .mg-phone-dot{display:flex;justify-self:end;width:38px;height:38px;border-radius:50%;align-items:center;justify-content:center;background:#e4ae89;color:#fff;font-size:14px}

/* Home */
.mg-home-hero{height:900px;background:var(--mg-hero);display:flex;align-items:center;justify-content:center}.mg-home-hero>img{width:520px;max-width:54vw;margin-top:34px}
.mg-home-welcome{padding:130px 0 82px}.mg-home-welcome-grid{display:grid;grid-template-columns:1fr 1fr;gap:112px;align-items:center}.mg-home-welcome-image img{width:100%;max-width:520px;margin-left:auto}.mg-home-welcome-copy{max-width:510px;padding-top:18px}.mg-home-welcome-copy h1{font-size:59px;margin-bottom:26px}.mg-home-welcome-copy>p:not(.mg-eyebrow):not(.mg-hours){max-width:480px;margin:0 0 24px}.mg-home-welcome-copy .mg-hours{margin:26px 0}.mg-home-welcome-copy .mg-button{margin-top:2px}
.mg-home-services{padding:34px 0 92px}.mg-home-services-grid{display:grid;grid-template-columns:340px 1fr;gap:78px;align-items:start}.mg-home-services-title h2{font-size:48px;margin-bottom:20px}.mg-home-services-title>p:last-child{font-size:15px}.mg-service-icons{display:grid;grid-template-columns:repeat(3,1fr);column-gap:55px;row-gap:62px}.mg-service-icon{min-height:130px;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:flex-start}.mg-service-icon img{width:78px;height:72px;object-fit:contain;margin-bottom:14px}.mg-service-icon span{font-family:var(--mg-serif);font-size:18px;color:var(--mg-ink)}
.mg-medical-strip{display:block;width:100%;height:390px;overflow:hidden;background:#111}.mg-medical-strip img{width:100%;height:100%;object-fit:cover}
.mg-home-team{background:var(--mg-blush);padding:120px 30px}.mg-home-team-copy{max-width:610px;margin:auto;text-align:center}.mg-home-team-copy h2{font-size:55px;margin-bottom:25px}.mg-home-team-copy p:not(.mg-eyebrow){margin:0 auto 30px;max-width:610px}.mg-home-team-copy .mg-button{margin-top:4px}
.mg-reception{height:830px;position:relative;overflow:hidden}.mg-reception>img:first-child{width:100%;height:100%;object-fit:cover}.mg-reception-logo{position:absolute;left:50%;top:49%;transform:translate(-50%,-50%);width:240px;filter:none}
.mg-contact-section{padding:120px 0 108px;background:#fff}.mg-contact-grid{display:grid;grid-template-columns:1fr 1.15fr;gap:125px;align-items:start}.mg-contact-copy h2{font-size:54px;margin-bottom:30px}.mg-contact-copy>p:not(.mg-eyebrow){max-width:490px;margin-bottom:25px}.mg-contact-list{list-style:none;margin:0;padding:0}.mg-contact-list li{display:flex;align-items:center;gap:14px;margin:17px 0;color:#676767}.mg-contact-list li span{width:22px;color:var(--mg-peach);font-size:20px;text-align:center}.mg-contact-list a:hover{text-decoration:underline}
.mg-contact-safe{border-top:1px solid var(--mg-line);padding-top:30px;min-height:310px}.mg-contact-safe-label{margin:0 0 11px;color:#aaa;font-size:10px;letter-spacing:.17em;font-weight:700}.mg-contact-safe h3{font-size:36px;margin-bottom:17px}.mg-contact-safe>p:not(.mg-contact-safe-label){max-width:590px}.mg-contact-actions{display:flex;gap:18px;flex-wrap:wrap;margin-top:33px}
.mg-partners{padding:20px 0 100px;text-align:center}.mg-partners-block{max-width:860px;margin:0 auto 25px}.mg-partners h2{font-size:38px;display:inline-block;padding:0 20px 18px;border-bottom:1px solid var(--mg-line);margin-bottom:23px}.mg-partner-logos{display:grid;grid-template-columns:repeat(3,1fr);gap:55px;align-items:center}.mg-payment-logos{display:grid;grid-template-columns:1fr 1fr;gap:100px;align-items:center;max-width:650px;margin:auto}.mg-partner-logos img,.mg-payment-logos img{width:100%;height:85px;object-fit:contain}
.mg-footer-home{padding:40px 20px 18px;text-align:center;background:#fff}.mg-footer-home-logo{width:72px;margin:0 auto 18px;filter:invert(1);opacity:.8}.mg-footer-home nav{display:flex;justify-content:center;gap:30px;margin-bottom:14px}.mg-footer-home nav a{font-family:var(--mg-serif);font-size:13px;color:#3c3735}.mg-social{display:flex;gap:10px;align-items:center}.mg-footer-home .mg-social{justify-content:center;margin-bottom:50px}.mg-social span{display:inline-flex;width:30px;height:30px;border:1px solid rgba(30,30,30,.16);border-radius:50%;align-items:center;justify-content:center;font-size:12px}.mg-footer-home>p{border-top:1px solid #eee;margin:0;padding-top:18px;font-size:9px;color:#999}

/* Internal shared */
.mg-internal-banner{height:310px;position:relative;overflow:hidden}.mg-internal-banner>img{width:100%;height:100%;object-fit:cover}.mg-banner-a11y{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.mg-services-intro{padding:100px 0 0}.mg-services-intro-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:100px;align-items:start;margin-bottom:56px}.mg-services-intro-grid h2{font-size:54px}.mg-services-intro-grid>p{padding-top:38px;max-width:510px}.mg-services-intro .mg-service-icons{grid-template-columns:repeat(5,1fr);gap:0;margin:0 -18px 60px}.mg-services-intro .mg-service-icon{border-right:1px solid var(--mg-line);min-height:150px}.mg-services-intro .mg-service-icon:last-child{border-right:0}.mg-services-intro .mg-service-icon img{width:82px;height:74px}.mg-marquee{display:flex;align-items:center;gap:40px;white-space:nowrap;overflow:hidden;padding:14px 0 58px;font-family:var(--mg-serif);font-size:42px;color:#241f1d;transform:translateX(-5%);width:112%}.mg-marquee b{color:var(--mg-peach);font-family:var(--mg-sans);font-weight:300}
.mg-popular{background:var(--mg-blush);padding:95px 0 112px}.mg-centered-title{text-align:center;margin-bottom:52px}.mg-centered-title h2{font-size:50px}.mg-treatment-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}.mg-treatment-grid article,.mg-treatment-grid>a{display:block}.mg-treatment-grid img{width:100%;height:285px;object-fit:cover}.mg-treatment-grid>*>div{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--mg-line);padding:17px 0 14px}.mg-treatment-grid h3{font-size:25px}.mg-treatment-grid span{display:flex;width:32px;height:32px;border:1px solid var(--mg-line);border-radius:50%;align-items:center;justify-content:center;color:var(--mg-peach)}
.mg-doctor-grid{display:grid;grid-template-columns:480px 1fr;gap:115px;align-items:center;margin-top:110px}.mg-doctor-image img{width:100%;height:620px;object-fit:cover}.mg-doctor-copy{max-width:560px}.mg-doctor-copy h2{font-size:54px;margin-bottom:24px}.mg-doctor-copy h3{font-size:34px;margin:40px 0 14px}.mg-doctor-copy>p{padding-bottom:22px;border-bottom:1px solid var(--mg-line)}.mg-doctor-copy .mg-button{margin-top:22px}

/* About */
.mg-about-intro{padding:105px 0 100px}.mg-about-intro> .mg-container>h2{font-size:55px;margin-bottom:45px}.mg-about-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:56px;position:relative;align-items:start}.mg-about-photo img{width:100%;height:550px;object-fit:cover;filter:grayscale(1)}.mg-about-copy{padding:8px 40px 0 0}.mg-about-copy>p{font-size:17px;line-height:1.65}.mg-about-copy>img{width:220px;filter:invert(1);margin:40px auto 0}.mg-stats{grid-column:2;grid-row:2;width:100%;min-height:190px;margin-top:-105px;background:linear-gradient(120deg,#d9a99d,#e4ad8d);display:grid;grid-template-columns:1fr 1fr;color:#fff;padding:42px 55px;position:relative;z-index:2}.mg-stats>div{display:flex;flex-direction:column;gap:6px}.mg-stats span,.mg-stats small{font-family:var(--mg-serif);font-size:16px}.mg-stats strong{font-family:var(--mg-serif);font-size:54px;font-weight:400;line-height:1.1}.mg-about-strip{width:100%;height:210px;object-fit:cover;margin-top:70px}
.mg-mission{background:var(--mg-blush);padding:115px 0}.mg-mission-grid{display:grid;grid-template-columns:1fr 1fr;gap:100px;align-items:center}.mg-mission-collage{position:relative;height:610px}.mg-mission-door{position:absolute;left:0;top:0;width:58%;height:520px;object-fit:cover}.mg-mission-cert{position:absolute;right:0;bottom:0;width:56%;height:400px;object-fit:cover}.mg-mission-copy{max-width:500px}.mg-mission-copy h2{font-size:58px;margin-bottom:25px}.mg-mission-copy>p:not(.mg-eyebrow):not(.mg-hours){line-height:1.65}.mg-mission-copy .mg-hours{margin:28px 0}

/* Contact */
.mg-static-map{position:relative;display:block;width:100%;height:610px;overflow:hidden;background:#eef0ef}.mg-static-map img{width:100%;height:100%;object-fit:cover}.mg-static-map span{position:absolute;right:40px;bottom:34px;background:#fff;color:#222;padding:14px 20px;font-size:11px;letter-spacing:.12em;font-weight:700}

/* Detail */
.mg-detail-visual{position:relative}.mg-detail-visual>img{width:100%;height:620px;object-fit:cover}.mg-detail-title{position:absolute;left:50%;bottom:-78px;transform:translateX(-50%);width:70vw;max-width:920px;height:170px;background:var(--mg-blush);display:flex;align-items:center;justify-content:center}.mg-detail-title h1{font-size:58px}.mg-detail-content{padding:185px 0 120px}.mg-detail-intro{width:calc(100% - 50px);max-width:610px;margin:0 auto 55px}.mg-detail-intro p{font-size:16px}.mg-detail-intro p:first-letter{float:left;font-family:var(--mg-serif);font-size:64px;line-height:.7;margin:10px 16px 0 0;color:var(--mg-ink)}.mg-detail-main-image{width:calc(100% - 70px);max-width:1180px;height:1020px;object-fit:cover;margin:0 auto 62px}.mg-detail-list{width:calc(100% - 50px);max-width:600px;margin:auto}.mg-detail-list h2{text-align:center;font-size:35px;margin-bottom:22px}.mg-detail-list ul{margin:0;padding-left:20px}.mg-detail-list li{margin:3px 0}

/* Dark footer */
.mg-footer-dark{background:var(--mg-footer);color:#9ea7aa;padding:100px 0 30px}.mg-footer-grid{display:grid;grid-template-columns:1.35fr 1fr .7fr .75fr;gap:70px;align-items:start}.mg-footer-logo img{width:250px}.mg-footer-dark h2{font-family:var(--mg-serif);font-size:21px;color:#fff;margin-bottom:24px}.mg-footer-dark p{margin:11px 0}.mg-footer-dark a:hover{color:#fff}.mg-footer-dark strong{display:block;color:#fff;font-family:var(--mg-serif);font-size:16px;font-weight:400}.mg-footer-bottom{display:flex;justify-content:space-between;align-items:center;border-top:1px solid rgba(255,255,255,.15);margin-top:70px;padding-top:25px}.mg-footer-bottom p{font-size:12px}.mg-footer-dark .mg-social span{color:#fff;border-color:rgba(255,255,255,.15);background:rgba(255,255,255,.04)}
.mg-editor{padding:100px 0}

@media (max-width:1100px){
    .mg-header-inner{width:calc(100% - 50px)}.mg-header-home .mg-header-inner{width:calc(100% - 50px)}
    .mg-home-welcome-grid,.mg-home-services-grid,.mg-services-intro-grid,.mg-contact-grid,.mg-about-grid,.mg-mission-grid{gap:55px}
    .mg-doctor-grid{grid-template-columns:390px 1fr;gap:65px}.mg-stats{width:500px}
    .mg-footer-grid{grid-template-columns:1.2fr 1fr 1fr;}.mg-footer-grid>div:last-child{grid-column:2/4}
}
@media (max-width:780px){
    .mg-container{width:calc(100% - 36px);max-width:var(--mg-container)}.mg-site h1{font-size:45px}.mg-site h2{font-size:40px}
    .mg-header,.mg-header-home{position:relative;height:78px;background:#fff}.mg-header-inner,.mg-header-home .mg-header-inner{width:calc(100% - 34px);grid-template-columns:1fr auto}.mg-header-home .mg-brand,.mg-brand{width:92px}.mg-header-home .mg-brand img,.mg-brand img{filter:invert(1)}.mg-phone-dot{display:none!important}.mg-menu-toggle{display:block;justify-self:end}.mg-nav,.mg-header-home .mg-nav{display:none;position:absolute;left:0;right:0;top:78px;background:#fff;padding:20px 26px;margin:0;box-shadow:0 18px 25px rgba(0,0,0,.08)}.mg-nav.is-open{display:block}.mg-menu{display:block}.mg-menu a,.mg-header-home .mg-menu a{padding:12px 0;font-size:18px}.mg-menu .current-menu-item>a,.mg-menu a:hover{border:0;color:var(--mg-rose)}
    .mg-home-hero{height:520px}.mg-home-hero>img{width:72vw;margin:0}.mg-home-welcome{padding:75px 0}.mg-home-welcome-grid,.mg-home-services-grid,.mg-services-intro-grid,.mg-contact-grid,.mg-about-grid,.mg-mission-grid,.mg-doctor-grid{grid-template-columns:1fr}.mg-home-welcome-grid{gap:45px}.mg-home-welcome-image{order:2}.mg-home-welcome-image img{margin:auto}.mg-home-welcome-copy{order:1}.mg-home-welcome-copy h1{font-size:47px}.mg-home-services{padding:10px 0 70px}.mg-home-services-grid{gap:45px}.mg-service-icons{grid-template-columns:1fr 1fr;gap:35px 20px}.mg-medical-strip{height:190px}.mg-home-team{padding:80px 22px}.mg-home-team-copy h2{font-size:44px}.mg-reception{height:430px}.mg-reception-logo{width:150px}
    .mg-contact-section{padding:75px 0}.mg-contact-grid{gap:55px}.mg-contact-copy h2{font-size:44px}.mg-contact-safe{min-height:0}.mg-partners{padding-bottom:65px}.mg-partners h2{font-size:30px}.mg-partner-logos{gap:18px}.mg-payment-logos{gap:30px}.mg-partner-logos img,.mg-payment-logos img{height:60px}.mg-footer-home nav{gap:15px;flex-wrap:wrap}
    .mg-internal-banner{height:230px}.mg-internal-banner h1{font-size:46px}.mg-services-intro{padding-top:70px}.mg-services-intro-grid h2{font-size:43px}.mg-services-intro-grid>p{padding-top:0}.mg-services-intro .mg-service-icons{grid-template-columns:1fr 1fr;margin-inline:0}.mg-services-intro .mg-service-icon{border:0;border-bottom:1px solid var(--mg-line)}.mg-marquee{font-size:30px;gap:25px}
    .mg-popular{padding:75px 0}.mg-treatment-grid{grid-template-columns:1fr}.mg-treatment-grid img{height:260px}.mg-doctor-grid{margin-top:75px}.mg-doctor-image img{height:540px}.mg-doctor-copy h2{font-size:44px}
    .mg-about-intro{padding:75px 0}.mg-about-intro>.mg-container>h2{font-size:45px}.mg-about-photo img{height:420px}.mg-about-copy{padding:0}.mg-stats{grid-column:auto;grid-row:auto;width:100%;margin-top:0;padding:28px 25px}.mg-stats strong{font-size:42px}.mg-about-strip{margin-top:45px;height:120px}.mg-mission{padding:75px 0}.mg-mission-collage{height:480px}.mg-mission-door{height:390px}.mg-mission-cert{height:300px}.mg-mission-copy h2{font-size:46px}
    .mg-static-map{height:370px}.mg-detail-visual>img{height:340px}.mg-detail-title{bottom:-48px;height:105px;width:82vw}.mg-detail-title h1{font-size:43px}.mg-detail-content{padding-top:115px}.mg-detail-main-image{height:auto;width:calc(100% - 36px)}
    .mg-footer-dark{padding-top:70px}.mg-footer-grid{grid-template-columns:1fr;gap:35px}.mg-footer-grid>div:last-child{grid-column:auto}.mg-footer-logo img{width:210px}.mg-footer-bottom{margin-top:50px}
}

/* V5 corrections derived from the complete saved pages */
:root{--mg-container:1290px}
.mg-eyebrow{font-family:var(--mg-sans);font-size:14px;line-height:18px;font-weight:700;letter-spacing:1.8px}

/* Exact logo assets and source typography proportions */
.mg-header-inner{grid-template-columns:150px 1fr auto}
.mg-brand{width:auto;height:40px}.mg-brand img{width:auto;height:40px;max-width:none;filter:none;opacity:1}
.mg-menu a{font-size:19px;line-height:1.5;letter-spacing:.19px}
.mg-header-home .mg-header-inner{grid-template-columns:150px auto 1fr}
.mg-header-home .mg-brand{width:auto;height:40px}.mg-header-home .mg-brand img{width:auto;height:40px;filter:none;opacity:1}
.mg-header-home .mg-menu a{font-size:19px;line-height:1.5;letter-spacing:.19px}
.mg-header-home .mg-menu{gap:34px}
.mg-phone-dot svg{width:16px;height:16px;fill:currentColor}

/* Service icons retain the actual SVG outlines exported with the source page */
.mg-service-icon img{object-fit:contain}
.mg-services-intro .mg-service-icon img{width:76px;height:68px}

/* Continuous ThemeREX-style service marquee */
.mg-marquee{display:block;width:100%;transform:none;overflow:hidden;padding:14px 0 58px}
.mg-marquee-track{display:flex;width:max-content;will-change:transform;animation:mg-marquee-scroll 34s linear infinite}
.mg-marquee-group{display:flex;align-items:center;flex:none;gap:40px;padding-right:40px;white-space:nowrap;font-family:var(--mg-serif);font-size:42px;color:#241f1d}
.mg-marquee-group b{color:var(--mg-peach);font-family:var(--mg-sans);font-weight:300}
.mg-marquee:hover .mg-marquee-track{animation-play-state:paused}
@keyframes mg-marquee-scroll{from{transform:translateX(0)}to{transform:translateX(-50%)}}
@media (prefers-reduced-motion:reduce){.mg-marquee-track{animation:none;transform:none}.mg-marquee{overflow-x:auto}}

/* Popular-treatment cards: whole image and title are links */
.mg-treatment-grid>a{display:block}
.mg-treatment-grid>a:focus-visible{outline:2px solid var(--mg-rose);outline-offset:5px}

/* Real social links */
.mg-social{display:flex;gap:10px;align-items:center}
.mg-social a{display:inline-flex;width:34px;height:34px;border:1px solid rgba(30,30,30,.16);border-radius:50%;align-items:center;justify-content:center;transition:.2s}
.mg-social svg{width:15px;height:15px;fill:currentColor}
.mg-social a:hover,.mg-social a:focus-visible{color:var(--mg-peach);border-color:var(--mg-peach)}
.mg-footer-home-logo{width:auto;height:40px;margin:0 auto 22px;filter:none;opacity:1}
.mg-footer-home nav{gap:34px}
.mg-footer-home nav a{font-size:17px;line-height:1.5;letter-spacing:.17px}
.mg-footer-home .mg-social{justify-content:center;margin-bottom:50px}
.mg-footer-home>p a{text-decoration:underline;text-underline-offset:2px}
.mg-footer-dark .mg-social a{color:#fff;border-color:rgba(255,255,255,.15);background:rgba(255,255,255,.04)}
.mg-footer-logo img{width:auto;height:117px;max-width:100%;object-fit:contain;object-position:left center}

/* OpenStreetMap replaces the screenshot image */
.mg-osm-map{position:relative;width:100%;height:610px;background:#eef0ef;overflow:hidden}
.mg-osm-map iframe{display:block;width:100%;height:100%;border:0;filter:saturate(.82)}
.mg-osm-map>a{position:absolute;right:40px;bottom:34px;background:#fff;color:#222;padding:14px 20px;font-size:11px;letter-spacing:.12em;font-weight:700;box-shadow:0 3px 20px rgba(0,0,0,.12)}
.mg-osm-map>a:hover,.mg-osm-map>a:focus-visible{background:var(--mg-rose);color:#fff}

/* Detail-page content now follows each saved source page */
.mg-detail-intro{max-width:760px}
.mg-detail-intro p{font-size:16px;margin:0 0 18px}
.mg-detail-intro .mg-dropcap:first-letter{float:left;font-family:var(--mg-serif);font-size:64px;line-height:.7;margin:10px 16px 0 0;color:var(--mg-ink)}
.mg-detail-intro p:not(.mg-dropcap):first-letter{float:none;font-family:inherit;font-size:inherit;line-height:inherit;margin:0;color:inherit}
.mg-detail-main-image{width:calc(100% - 70px);max-width:1000px;height:auto;aspect-ratio:1/1;object-fit:cover;margin:0 auto 62px}
.mg-detail-ginekologija .mg-detail-main-image{max-width:1180px;aspect-ratio:auto}
.mg-detail-gallery{width:calc(100% - 70px);max-width:1000px;margin:0 auto 62px;display:grid;grid-template-columns:1fr 1fr;gap:24px;align-items:stretch}
.mg-detail-gallery img{width:100%;height:100%;min-height:430px;object-fit:cover}
.mg-detail-feature{width:calc(100% - 50px);max-width:760px;margin:0 auto 48px;text-align:center}
.mg-detail-feature h2{font-size:35px;margin-bottom:18px}
.mg-detail-feature p{text-align:left;line-height:1.65}
.mg-detail-list{max-width:760px}
.mg-detail-list>p{margin:0 0 10px}
.mg-detail-list li{line-height:1.55}
.mg-detail-kolposkopija .mg-detail-main-image{margin-top:14px}

@media (max-width:780px){
    .mg-header-inner,.mg-header-home .mg-header-inner{grid-template-columns:1fr auto}
    .mg-header-home .mg-brand,.mg-brand{height:34px;width:auto}.mg-header-home .mg-brand img,.mg-brand img{height:34px;width:auto;filter:none}
    .mg-menu a,.mg-header-home .mg-menu a{font-size:19px}
    .mg-marquee-group{font-size:30px;gap:25px;padding-right:25px}
    .mg-footer-home-logo{height:38px}
    .mg-footer-home nav{gap:15px}.mg-footer-home nav a{font-size:16px}
    .mg-osm-map{height:370px}.mg-osm-map>a{right:18px;bottom:18px}
    .mg-detail-gallery{grid-template-columns:1fr;width:calc(100% - 36px);gap:18px}.mg-detail-gallery img{min-height:0}
    .mg-detail-main-image{width:calc(100% - 36px)}
    .mg-footer-logo img{height:92px}
}
/* Specificity fixes against parent-theme image rules */
.mg-site .mg-brand img,.mg-site .mg-header-home .mg-brand img{width:108px;height:auto;max-width:none}
.mg-site .mg-service-icon img{width:78px;height:72px;object-fit:contain}
.mg-site .mg-services-intro .mg-service-icon img{width:76px;height:68px}
.mg-site .mg-footer-home .mg-footer-home-logo{width:108px;height:auto;max-width:none}
.mg-site .mg-footer-dark .mg-footer-logo img{width:250px;height:auto;max-width:100%}
@media (max-width:780px){.mg-site .mg-brand img,.mg-site .mg-header-home .mg-brand img{width:92px;height:auto}.mg-site .mg-footer-home .mg-footer-home-logo{width:104px}.mg-site .mg-footer-dark .mg-footer-logo img{width:210px;height:auto}}
/* Preserve fixed hero/gallery geometry against global image height:auto */
.mg-site .mg-internal-banner>img{width:100%;height:100%;object-fit:cover}
.mg-site .mg-detail-visual>img{width:100%;height:620px;object-fit:cover}
.mg-site .mg-detail-gallery img{width:100%;height:100%;min-height:430px;object-fit:cover}
.mg-site .mg-detail-main-image{height:auto}
@media (max-width:780px){.mg-site .mg-detail-visual>img{height:340px}.mg-site .mg-detail-gallery img{height:auto;min-height:0}}
.mg-layout-ginekologija .mg-detail-main-image{max-width:1180px;aspect-ratio:auto}
.mg-layout-kolposkopija .mg-detail-main-image{margin-top:14px}

/* V5.1 corrections after visual review */
.mg-home-welcome-collage{
    position:relative;
    width:100%;
    max-width:650px;
    height:610px;
    margin-left:auto;
    overflow:visible;
}
.mg-site .mg-home-welcome-collage .mg-home-welcome-building,
.mg-site .mg-home-welcome-collage .mg-home-welcome-sign{
    position:absolute;
    display:block;
    height:auto;
    max-width:none;
    margin:0;
    opacity:0;
    transform:translateY(28px);
    animation:mg-collage-reveal .8s ease-out forwards;
}
.mg-site .mg-home-welcome-collage .mg-home-welcome-building{
    z-index:1;
    top:0;
    left:0;
    width:67.7%;
}
.mg-site .mg-home-welcome-collage .mg-home-welcome-sign{
    z-index:2;
    right:0;
    bottom:0;
    width:63.1%;
    animation-delay:.12s;
}
@keyframes mg-collage-reveal{
    to{opacity:1;transform:translateY(0)}
}
@media (prefers-reduced-motion:reduce){
    .mg-site .mg-home-welcome-collage .mg-home-welcome-building,
    .mg-site .mg-home-welcome-collage .mg-home-welcome-sign{animation:none;opacity:1;transform:none}
}

/* The source icon contains a substantially smaller painted area than the
   other service SVGs. The cropped local asset and these dimensions align the
   visible stroke size without altering the other four icons. */
.mg-site .mg-service-icon img[src$="estetika.png"]{
    width:88px;
    height:72px;
    object-fit:contain;
}
.mg-site .mg-services-intro .mg-service-icon img[src$="estetika.png"]{
    width:86px;
    height:68px;
}

/* Gutenberg-like image flow used by the original detail posts. */
.mg-detail-main-figure,
.mg-source-gallery,
.mg-source-gallery-item{
    padding:0;
    border:0;
}
.mg-detail-main-figure{
    width:calc(100% - 70px);
    max-width:1000px;
    margin:0 auto 62px;
}
.mg-site .mg-detail-main-figure .mg-detail-main-image{
    display:block;
    width:100%;
    max-width:none;
    height:auto;
    aspect-ratio:auto;
    object-fit:contain;
    margin:0;
}
.mg-service-kolposkopija .mg-detail-main-figure,
.mg-service-estetski-tretmani .mg-detail-main-figure,
.mg-layout-treatment .mg-detail-main-figure{
    max-width:760px;
}
.mg-source-gallery{
    width:calc(100% - 70px);
    max-width:1000px;
    margin:0 auto 62px;
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:16px;
    align-items:stretch;
    overflow:visible;
}
.mg-source-gallery-item{
    width:100%;
    margin:0;
    overflow:hidden;
    aspect-ratio:1/1;
}
.mg-site .mg-source-gallery-item img{
    display:block;
    width:100%;
    height:100%;
    min-height:0;
    object-fit:cover;
}
.mg-service-kolposkopija .mg-detail-feature{
    margin-bottom:52px;
}
.mg-service-kolposkopija .mg-detail-main-figure{
    margin-top:0;
}
.mg-service-estetski-tretmani .mg-detail-list{
    margin-top:0;
}
.mg-layout-treatment .mg-detail-intro{
    max-width:760px;
}
.mg-medical-notice{
    width:calc(100% - 50px);
    max-width:760px;
    margin:-20px auto 48px;
    padding:20px 24px;
    border-left:3px solid var(--mg-peach);
    background:var(--mg-blush);
    font-size:15px;
    line-height:1.65;
}

@media (max-width:780px){
    .mg-home-welcome-collage{
        width:min(100%,520px);
        height:500px;
        margin:0 auto;
    }
    .mg-site .mg-home-welcome-collage .mg-home-welcome-building{width:68%}
    .mg-site .mg-home-welcome-collage .mg-home-welcome-sign{width:63%}
    .mg-detail-main-figure,
    .mg-source-gallery{width:calc(100% - 36px)}
    .mg-source-gallery{grid-template-columns:1fr;gap:18px}
    .mg-source-gallery-item{aspect-ratio:auto}
    .mg-site .mg-source-gallery-item img{height:auto;object-fit:contain}
}
.mg-terms-placeholder{min-height:560px;padding-top:150px;padding-bottom:150px}
.mg-terms-placeholder h1{font-size:58px;margin-bottom:28px}
.mg-terms-placeholder p:last-child{max-width:760px}

/* ================================================================
   Stable v7 contract
   These rules are intentionally final and narrowly scoped to .mg-site.
   They prevent the Plastica parent theme from changing the fixed layout.
   ================================================================ */
body.megyn-stable-body{font-family:var(--mg-body)!important;font-size:16px!important;line-height:1.62!important}
.mg-site,.mg-site p,.mg-site li,.mg-site input,.mg-site textarea,.mg-site button{font-family:var(--mg-body)}
.mg-site .mg-eyebrow,.mg-site .mg-button,.mg-site .mg-hours{font-family:var(--mg-sans)}
.mg-site h1,.mg-site h2,.mg-site h3,.mg-site h4,.mg-site .mg-menu a,.mg-site .mg-service-icon-label{font-family:var(--mg-serif)}

/* The shared inner-page banner is the real source photograph, so its title is
   rendered as text instead of being baked into a screenshot. */
.mg-site .mg-internal-banner{height:310px;position:relative;overflow:hidden}
.mg-site .mg-internal-banner>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.mg-site .mg-internal-banner::after{content:"";position:absolute;inset:0;background:rgba(30,25,23,.08)}
.mg-site .mg-internal-banner>h1{position:absolute;z-index:2;left:50%;top:50%;transform:translate(-50%,-50%);margin:0;color:#fff;font-size:58px;font-weight:400;white-space:nowrap;text-shadow:0 1px 5px rgba(0,0,0,.15)}

/* Five real source images replace the old screenshot crop. */
.mg-site .mg-medical-strip-link{display:block;width:100%}
.mg-site .mg-medical-strip{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));width:100%;height:390px;overflow:hidden;background:#111}
.mg-site .mg-medical-strip>img{display:block;width:100%;height:100%;max-width:none;object-fit:cover;margin:0}
.mg-site .mg-about-strip{height:210px;margin-top:70px}

/* Source ThemeREX icon for Estetski tretmani. It shares a fixed visual box with
   the four supplied SVG icons so no icon appears smaller than the others. */
.mg-site .mg-service-icon-art{height:74px;width:88px;margin:0 auto 14px;display:flex;align-items:center;justify-content:center;color:var(--mg-peach);line-height:1}
.mg-site .mg-service-icon-art img{display:block;width:78px;height:72px;object-fit:contain;margin:0}
.mg-site .mg-service-icon-art i{font-family:"fontello"!important;font-style:normal!important;font-size:67px!important;line-height:1!important;color:var(--mg-peach)!important;display:block!important;width:78px!important;height:72px!important;display:flex!important;align-items:center!important;justify-content:center!important}
.mg-site .mg-services-intro .mg-service-icon-art{height:72px;margin-bottom:13px}
.mg-site .mg-services-intro .mg-service-icon-art img{width:76px;height:68px}
.mg-site .mg-services-intro .mg-service-icon-art i{font-size:64px!important;width:76px!important;height:68px!important}
.mg-site .mg-service-icon-label{font-size:18px;color:var(--mg-ink)}

/* Contact component: no image/input overlap and no Gutenberg wrappers. */
.mg-site .mg-contact-form-slot{padding-top:18px;min-width:0}
.mg-site .mg-contact-form-slot .mgcf-wrap{width:100%;margin:0}
.mg-site .mg-contact-plugin-missing{border-top:1px solid var(--mg-line);padding-top:28px}
.mg-site .mg-contact-list svg{display:block;width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}

/* Full-width continuous ticker. No wrapping and no transform on the viewport. */
.mg-site .mg-marquee{display:block!important;position:relative!important;width:100vw!important;max-width:none!important;margin-left:calc(50% - 50vw)!important;transform:none!important;overflow:hidden!important;white-space:nowrap!important;padding:14px 0 58px!important}
.mg-site .mg-marquee-track{display:flex!important;width:max-content!important;max-width:none!important;flex-wrap:nowrap!important;will-change:transform;animation:mg-marquee-scroll 34s linear infinite}
.mg-site .mg-marquee-group{display:flex!important;flex:none!important;align-items:center!important;gap:40px!important;padding-right:40px!important;white-space:nowrap!important;font-family:var(--mg-serif)!important;font-size:42px!important;line-height:1.2!important}
.mg-site .mg-marquee-group span,.mg-site .mg-marquee-group b{display:inline-block!important;flex:none!important;white-space:nowrap!important}

/* Source-like fixed post geometry. These margins deliberately reproduce the
   generous WordPress post spacing rather than Gutenberg's dynamic wrappers. */
.mg-site .mg-detail-content{padding:185px 0 130px}
.mg-site .mg-detail-intro{width:calc(100% - 56px);max-width:760px;margin:0 auto 58px}
.mg-site .mg-detail-intro p{font-family:var(--mg-body);font-size:16px;line-height:1.68;margin:0 0 20px}
.mg-site .mg-detail-feature{width:calc(100% - 56px);max-width:760px;margin:0 auto 58px}
.mg-site .mg-detail-feature h2{text-align:center;font-size:35px;margin:0 0 22px}
.mg-site .mg-detail-feature p{font-size:16px;line-height:1.68;margin:0}
.mg-site .mg-detail-main-figure{width:calc(100% - 70px);max-width:1000px;margin:0 auto 68px}
.mg-site .mg-detail-main-figure .mg-detail-main-image{display:block;width:100%;height:auto;max-width:none;object-fit:contain;margin:0}
.mg-site .mg-layout-ginekologija .mg-detail-main-figure{max-width:1180px}
.mg-site .mg-service-kolposkopija .mg-detail-main-figure,.mg-site .mg-service-estetski-tretmani .mg-detail-main-figure,.mg-site .mg-layout-treatment .mg-detail-main-figure{max-width:760px}
.mg-site .mg-detail-gallery{width:calc(100% - 70px);max-width:1000px;margin:0 auto 68px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:start}
.mg-site .mg-detail-gallery figure{margin:0;padding:0;min-width:0}
.mg-site .mg-detail-gallery img{display:block;width:100%;height:auto;min-height:0;max-width:none;object-fit:contain}
.mg-site .mg-gallery-square figure{aspect-ratio:1/1;overflow:hidden}
.mg-site .mg-gallery-square img{height:100%;object-fit:cover}
.mg-site .mg-gallery-pregnancy{align-items:start}
.mg-site .mg-gallery-pregnancy figure:first-child img{aspect-ratio:1/1;object-fit:cover}
.mg-site .mg-gallery-pregnancy figure:last-child{padding-top:0}
.mg-site .mg-gallery-pregnancy figure:last-child img{width:80%;margin:0 auto;object-fit:contain}
.mg-site .mg-detail-list{width:calc(100% - 56px);max-width:760px;margin:0 auto}
.mg-site .mg-detail-list h2{font-size:35px;text-align:center;margin:0 0 24px}
.mg-site .mg-detail-list>p{margin:0 0 14px;font-size:16px}
.mg-site .mg-detail-list ul{margin:0;padding-left:22px}
.mg-site .mg-detail-list li{font-size:16px;line-height:1.62;margin:4px 0}
.mg-site .mg-medical-notice{width:calc(100% - 56px);max-width:760px;margin:-20px auto 54px;padding:20px 24px;border-left:3px solid var(--mg-peach);background:var(--mg-blush);font-size:15px;line-height:1.65}

/* Terms are intentionally simple: content is awaiting legal review. */
.mg-site .mg-terms{padding:90px 0 120px}
.mg-site .mg-terms-inner{max-width:900px}
.mg-site .mg-terms p{margin:0 0 22px;font-size:16px;line-height:1.72}

@media(max-width:780px){
    .mg-site .mg-internal-banner{height:230px}
    .mg-site .mg-internal-banner>h1{font-size:44px;white-space:normal;text-align:center;width:90%}
    .mg-site .mg-medical-strip{height:190px}
    .mg-site .mg-about-strip{height:120px;margin-top:45px}
    .mg-site .mg-service-icon-art{height:67px}
    .mg-site .mg-service-icon-art i{font-size:59px!important}
    .mg-site .mg-marquee-group{font-size:30px!important;gap:25px!important;padding-right:25px!important}
    .mg-site .mg-contact-form-slot{padding-top:0}
    .mg-site .mg-detail-content{padding-top:120px;padding-bottom:90px}
    .mg-site .mg-detail-intro,.mg-site .mg-detail-feature,.mg-site .mg-detail-list,.mg-site .mg-medical-notice{width:calc(100% - 36px)}
    .mg-site .mg-detail-main-figure,.mg-site .mg-detail-gallery{width:calc(100% - 36px);margin-bottom:48px}
    .mg-site .mg-detail-gallery{grid-template-columns:1fr;gap:20px}
    .mg-site .mg-gallery-square figure{aspect-ratio:auto}
    .mg-site .mg-gallery-square img{height:auto;object-fit:contain}
    .mg-site .mg-gallery-pregnancy figure:last-child img{width:100%}
}
/* Original logo files already contain the correct dark/white artwork. */
.mg-site .mg-brand img,.mg-site .mg-header-home .mg-brand img,.mg-site .mg-footer-home-logo,.mg-site .mg-about-copy>img{filter:none!important;opacity:1!important}

/* ================================================================
   Stable 8.0 - approved-layout delta only
   1) source-like linked medical strip with hover
   2) source-like About stats overlap
   3) compact language switcher (optional Polylang)
   ================================================================ */
.mg-site .mg-medical-strip{
    grid-template-columns:repeat(5,minmax(0,1fr));
}
.mg-site .mg-strip-item{
    position:relative;
    display:block;
    min-width:0;
    height:100%;
    overflow:hidden;
    background:#171313;
}
.mg-site .mg-strip-item>img{
    display:block;
    width:100%;
    height:100%;
    max-width:none;
    margin:0;
    object-fit:cover;
    transition:transform .45s ease;
}
.mg-site .mg-strip-mask{
    position:absolute;
    inset:0;
    z-index:1;
    background:rgba(36,32,31,.54);
    opacity:0;
    transition:opacity .35s ease;
}
.mg-site .mg-strip-info{
    position:absolute;
    z-index:2;
    left:24px;
    right:18px;
    bottom:22px;
    display:flex;
    flex-direction:column;
    gap:3px;
    color:#fff;
    opacity:0;
    transform:translateY(12px);
    transition:opacity .35s ease,transform .35s ease;
    pointer-events:none;
}
.mg-site .mg-strip-info strong{
    color:#fff;
    font-family:var(--mg-serif);
    font-size:25px;
    font-weight:400;
    line-height:1.08;
}
.mg-site .mg-strip-info small{
    color:rgba(255,255,255,.78);
    font-family:var(--mg-sans);
    font-size:10px;
    font-weight:700;
    letter-spacing:.12em;
    text-transform:uppercase;
}
.mg-site .mg-strip-item:hover>img,
.mg-site .mg-strip-item:focus-visible>img{transform:scale(1.045)}
.mg-site .mg-strip-item:hover .mg-strip-mask,
.mg-site .mg-strip-item:focus-visible .mg-strip-mask,
.mg-site .mg-strip-item:hover .mg-strip-info,
.mg-site .mg-strip-item:focus-visible .mg-strip-info{opacity:1}
.mg-site .mg-strip-item:hover .mg-strip-info,
.mg-site .mg-strip-item:focus-visible .mg-strip-info{transform:translateY(0)}
.mg-site .mg-strip-item:focus-visible{outline:3px solid var(--mg-peach);outline-offset:-3px}

/* Original About section: the gradient statistics box crosses the lower-right
   edge of the doctor's photograph and is visually larger than in Stable 7. */
@media (min-width:1101px){
    .mg-site .mg-about-grid{grid-template-columns:1.15fr .85fr;gap:56px}
    .mg-site .mg-about-photo{grid-column:1;grid-row:1 / span 2}
    .mg-site .mg-about-copy{grid-column:2;grid-row:1}
    .mg-site .mg-stats{
        grid-column:2;
        grid-row:2;
        width:570px;
        min-height:225px;
        margin-top:-150px;
        margin-left:-125px;
        padding:50px 58px;
        z-index:4;
    }
    .mg-site .mg-stats strong{font-size:58px}
    .mg-site .mg-stats span,.mg-site .mg-stats small{font-size:17px}
}
@media (min-width:781px) and (max-width:1100px){
    .mg-site .mg-stats{width:520px;min-height:205px;margin-top:-115px;margin-left:-80px;padding:42px 45px}
}

/* Language switcher is intentionally quiet so it does not alter the accepted
   main menu proportions. It is rendered only when Polylang is active. */
.mg-site .mg-nav{display:flex;align-items:center;gap:22px}
.mg-site .mg-lang-switcher{display:flex;align-items:center;gap:8px;margin-left:2px;white-space:nowrap}
.mg-site .mg-lang-switcher a{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:3px 0;
    border:0!important;
    color:#777;
    font-family:var(--mg-sans);
    font-size:10px;
    line-height:1;
    font-weight:700;
    letter-spacing:.08em;
}
.mg-site .mg-lang-switcher a:hover,
.mg-site .mg-lang-switcher a[aria-current="page"]{color:var(--mg-ink)}
.mg-site .mg-lang-switcher a[aria-current="page"]{text-decoration:underline;text-underline-offset:3px}

@media (max-width:780px){
    .mg-site .mg-nav{display:none;align-items:stretch}
    .mg-site .mg-nav.is-open{display:block}
    .mg-site .mg-lang-switcher{margin:12px 0 2px;gap:16px}
    .mg-site .mg-lang-switcher a{font-size:12px;padding:8px 0}
    .mg-site .mg-strip-info{left:14px;bottom:14px}
    .mg-site .mg-strip-info strong{font-size:19px}
    .mg-site .mg-stats{margin-left:0}
}
@media (prefers-reduced-motion:reduce){
    .mg-site .mg-strip-item>img,.mg-site .mg-strip-mask,.mg-site .mg-strip-info{transition:none!important}
    .mg-site .mg-strip-item:hover>img,.mg-site .mg-strip-item:focus-visible>img{transform:none}
}
