/* Scoped to the services router; existing content and list order are retained. */
body:has(#meg-services-style-scope) .main{font:16px/1.65 "Golos Text",sans-serif;color:#23313d;-webkit-font-smoothing:antialiased}
body:has(#meg-services-style-scope) .main *{box-sizing:border-box}
body:has(#meg-services-style-scope) .main .maxwidth-theme{max-width:1280px}
body:has(#meg-services-style-scope) .main .page-top{padding:48px 0 36px;background:#fff;border:0}
body:has(#meg-services-style-scope) .main .page-top h1{font:600 42px/1.2 "Golos Text",sans-serif;letter-spacing:-.025em;color:#23313d;max-width:1100px;margin:0 0 20px}
body:has(#meg-services-style-scope) .main .page-top .breadcrumb{font-size:13px;color:#52616d;margin:0}
body:has(#meg-services-style-scope) .main .content-md{padding-bottom:64px}
body:has(#meg-services-style-scope) .main p{line-height:1.7}
body:has(#meg-services-style-scope) .main h2{font-family:"Golos Text",sans-serif;font-size:30px;line-height:1.25;font-weight:600;letter-spacing:-.025em;color:#23313d}
body:has(#meg-services-style-scope) .main h3{font-family:"Golos Text",sans-serif;font-size:22px;line-height:1.3;font-weight:600;color:#23313d}
body:has(#meg-services-style-scope) .main a:focus-visible,body:has(#meg-services-style-scope) .main button:focus-visible,body:has(#meg-services-style-scope) .main summary:focus-visible{outline:3px solid #d52330;outline-offset:4px}
body:has(#meg-services-style-scope) .main ::selection{background:#142d43;color:white}
body:has(#meg-services-style-scope) .main .btn,body:has(#meg-services-style-scope) .main .msp-button{background:#d52330;border:1px solid #d52330;border-radius:4px;color:white;font:500 14px/1.5 "Golos Text",sans-serif;text-transform:none;letter-spacing:0;min-height:46px;padding:12px 20px;box-shadow:none}
body:has(#meg-services-style-scope) .main .btn:hover,body:has(#meg-services-style-scope) .main .msp-button:hover{background:#b91824;border-color:#b91824;color:white}
body:has(#meg-services-style-scope) .main .side-menu>li>a{font-size:14px;line-height:1.5;padding:16px 18px 16px 0;border-color:#dce2e7;color:#23313d;background:white}
body:has(#meg-services-style-scope) .main .side-menu>li>a:hover{color:#d52330;background:#f3f6f8}
body:has(#meg-services-style-scope) .main .sidearea{font-size:13px;line-height:1.7;margin-top:24px;color:#52616d}
body:has(#meg-services-style-scope) .main .sidearea i{font-style:normal}
body:has(#meg-services-style-scope) .main .meg-services-intro{padding:0 0 30px;max-width:76ch}
body:has(#meg-services-style-scope) .main .meg-services-intro p{font-size:16px;color:#52616d;margin:0 0 18px}
body:has(#meg-services-style-scope) .main .item-views.services.list .items{display:block;margin:0}
body:has(#meg-services-style-scope) .main .item-views.services.list .items>.col-md-12{width:100%;padding:0;float:none}
body:has(#meg-services-style-scope) .main .item-views.services.list .item{margin:0;padding:32px 0;border:0;border-top:1px solid #dce2e7;border-radius:0;box-shadow:none;background:white}
body:has(#meg-services-style-scope) .main .item-views.services.list .item>.row{display:flex;align-items:flex-start;gap:30px;margin:0}
body:has(#meg-services-style-scope) .main .item-views.services.list .item>.row::before,body:has(#meg-services-style-scope) .main .item-views.services.list .item>.row::after{display:none}
body:has(#meg-services-style-scope) .main .item-views.services.list .item>.row>.col-md-4{width:34%;flex:0 0 34%;padding:0}
body:has(#meg-services-style-scope) .main .item-views.services.list .item>.row>.col-md-8{width:auto;flex:1;min-width:0;padding:0}
body:has(#meg-services-style-scope) .main .item-views.services.list .image{float:none;width:100%;height:auto;max-height:none;margin:0;border:0;border-radius:4px;overflow:hidden}
body:has(#meg-services-style-scope) .main .item-views.services.list .image img{width:100%;height:auto;aspect-ratio:4/3;object-fit:contain;background:#f3f6f8;max-height:none}
body:has(#meg-services-style-scope) .main .item-views.services.list .text{padding:0;margin:0}
body:has(#meg-services-style-scope) .main .item-views.services.list .title{font:600 23px/1.3 "Golos Text",sans-serif;margin:0 0 14px;color:#23313d;letter-spacing:-.02em}
body:has(#meg-services-style-scope) .main .item-views.services.list .title a{color:inherit}
body:has(#meg-services-style-scope) .main .item-views.services.list .title a:hover{color:#d52330}
body:has(#meg-services-style-scope) .main .item-views.services.list .previewtext{font-size:15px;line-height:1.7;color:#52616d;margin-bottom:20px}
body:has(#meg-services-style-scope) .main .detail.services{font-size:16px;line-height:1.7}
body:has(#meg-services-style-scope) .main .detail.services p{max-width:78ch}
body:has(#meg-services-style-scope) .main .detail.services table{width:100%;border-collapse:collapse;font-size:14px;font-variant-numeric:tabular-nums}
body:has(#meg-services-style-scope) .main .detail.services td,body:has(#meg-services-style-scope) .main .detail.services th{padding:14px 16px;border:1px solid #dce2e7;text-align:left}
body:has(#meg-services-style-scope) .main .detail.services th{background:#f3f6f8;font-weight:600}
body:has(#meg-services-style-scope) .main .meg-service-page{--msp-accent:#d52330;--msp-ink:#23313d;--msp-soft:#f3f6f8;font-size:16px}
body:has(#meg-services-style-scope) .main .msp-hero{border-radius:4px;min-height:420px}
body:has(#meg-services-style-scope) .main .msp-hero-copy{padding:40px}
body:has(#meg-services-style-scope) .main .msp-hero h2{font-size:36px;line-height:1.2;letter-spacing:-.025em}
body:has(#meg-services-style-scope) .main .msp-lead{font-size:17px;line-height:1.7}
body:has(#meg-services-style-scope) .main .msp-eyebrow,body:has(#meg-services-style-scope) .main .msp-index{display:none}
body:has(#meg-services-style-scope) .main .msp-hero-points li{background:white;font-size:13px}
body:has(#meg-services-style-scope) .main .msp-trust{font-size:14px;border-color:#dce2e7}
body:has(#meg-services-style-scope) .main .msp-trust span::before{display:none}
body:has(#meg-services-style-scope) .main .msp-metrics{gap:24px;background:#f3f6f8;padding:24px;border:0;border-radius:4px;margin-top:28px}
body:has(#meg-services-style-scope) .main .msp-metrics div{border:0;padding:0}
body:has(#meg-services-style-scope) .main .msp-metrics strong{font-size:24px;font-weight:500}
body:has(#meg-services-style-scope) .main .msp-metrics span{font-size:14px;color:#52616d}
body:has(#meg-services-style-scope) .main .msp-section{margin:48px 0}
body:has(#meg-services-style-scope) .main .msp-cards{display:block}
body:has(#meg-services-style-scope) .main .msp-cards article{display:grid;grid-template-columns:1fr 2fr;gap:32px;padding:22px 0;border:0;border-top:1px solid #dce2e7;border-radius:0;background:white}
body:has(#meg-services-style-scope) .main .msp-cards h3{font-size:21px;margin:0;color:#23313d}
body:has(#meg-services-style-scope) .main .msp-cards p{font-size:16px;color:#52616d}
body:has(#meg-services-style-scope) .main .msp-materials,body:has(#meg-services-style-scope) .main .msp-checklist{border-radius:4px;background:#f3f6f8}
body:has(#meg-services-style-scope) .main .msp-tags span{font-size:14px;border-radius:4px}
body:has(#meg-services-style-scope) .main .msp-estimate{background:#142d43;border-radius:4px;padding:36px}
body:has(#meg-services-style-scope) .main .msp-estimate h2{color:white}
body:has(#meg-services-style-scope) .main .msp-estimate p{color:#dce2e7}
body:has(#meg-services-style-scope) .main .order-block{border:1px solid #dce2e7;background:#f3f6f8;border-radius:4px;box-shadow:none;margin-top:36px}
@media(max-width:980px){
body:has(#meg-services-style-scope) .main .page-top h1{font-size:34px}
body:has(#meg-services-style-scope) .main .left-menu-md{display:none}
body:has(#meg-services-style-scope) .main .content-md{width:100%;float:none}
body:has(#meg-services-style-scope) .main .msp-hero-copy{padding:28px}
body:has(#meg-services-style-scope) .main .msp-hero h2{font-size:30px}
}
@media(max-width:600px){
body:has(#meg-services-style-scope) .main .maxwidth-theme{padding-left:20px;padding-right:20px}
body:has(#meg-services-style-scope) .main .page-top{padding:30px 0 22px}
body:has(#meg-services-style-scope) .main .page-top h1{font-size:28px;margin-bottom:16px}
body:has(#meg-services-style-scope) .main h2{font-size:25px}
body:has(#meg-services-style-scope) .main h3{font-size:20px}
body:has(#meg-services-style-scope) .main .item-views.services.list .item{padding:26px 0}
body:has(#meg-services-style-scope) .main .item-views.services.list .item>.row{display:block}
body:has(#meg-services-style-scope) .main .item-views.services.list .item>.row>.col-md-4{width:100%;margin-bottom:20px}
body:has(#meg-services-style-scope) .main .item-views.services.list .item>.row>.col-md-8{width:100%}
body:has(#meg-services-style-scope) .main .item-views.services.list .title{font-size:22px}
body:has(#meg-services-style-scope) .main .item-views.services.list .image img{max-height:280px}
body:has(#meg-services-style-scope) .main .msp-hero-copy{padding:24px}
body:has(#meg-services-style-scope) .main .msp-hero h2{font-size:28px}
body:has(#meg-services-style-scope) .main .msp-cards article{display:block;padding:22px 0}
body:has(#meg-services-style-scope) .main .msp-cards h3{margin-bottom:10px}
body:has(#meg-services-style-scope) .main .msp-metrics{padding:20px;gap:20px}
body:has(#meg-services-style-scope) .main .msp-estimate{padding:24px}
body:has(#meg-services-style-scope) .main .detail.services table{font-size:12px;display:block;overflow-x:auto}
}
body:has(#meg-services-style-scope) .main .text_before_items{margin-bottom:0}
body:has(#meg-services-style-scope) .main .meg-services-intro{padding-bottom:16px}
@media(max-width:600px){
body:has(#meg-services-style-scope) .main .maxwidth-theme>.content-md{padding-left:0;padding-right:0}
body:has(#meg-services-style-scope) .main .page-top .maxwidth-theme>.col-md-12{padding-left:0;padding-right:0}
}

/* Match the project catalog's open layout while retaining a single service list. */
body:has(#meg-services-style-scope) .main .left-menu-md{display:none}
body:has(#meg-services-style-scope) .main .content-md{width:100%;float:none}
body:has(#meg-services-style-scope) .main .maxwidth-theme{max-width:1280px}
body:has(#meg-services-style-scope) .main .page-top{padding:28px 0 24px}
body:has(#meg-services-style-scope) .main .page-top .maxwidth-theme>.col-md-12{display:flex;flex-direction:column-reverse}
body:has(#meg-services-style-scope) .main .page-top h1{font-size:44px;max-width:1000px;margin:28px 0 0}
body:has(#meg-services-style-scope) .main .meg-services-intro{max-width:none;display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);column-gap:72px;padding:0 0 40px}
body:has(#meg-services-style-scope) .main .meg-services-intro>p:first-child{grid-column:1;grid-row:1 / 3;font-size:17px;max-width:65ch;margin:0}
body:has(#meg-services-style-scope) .main .meg-services-intro>p:not(:first-child){grid-column:2;font-size:14px;margin:0 0 16px}
body:has(#meg-services-style-scope) .main .meg-services-intro .btn{justify-self:start}
body:has(#meg-services-style-scope) .main .item-views.services.list .item{padding:36px 0;border-top:1px solid #dce2e7!important}
body:has(#meg-services-style-scope) .main .item-views.services.list .item>.row{gap:48px;align-items:center}
body:has(#meg-services-style-scope) .main .item-views.services.list .item>.row>.col-md-4{width:42%;flex:0 0 42%}
body:has(#meg-services-style-scope) .main .item-views.services.list .image img{aspect-ratio:1.5;object-fit:cover;background:#f3f6f8}
body:has(#meg-services-style-scope) .main .item-views.services.list .title{font-size:28px;line-height:1.3;max-width:28ch;margin-bottom:18px}
body:has(#meg-services-style-scope) .main .item-views.services.list .previewtext{font-size:16px;line-height:1.75;max-width:62ch;margin-bottom:24px}
body:has(#meg-services-style-scope) .main .item-views.services.list .btn{display:inline-flex;align-items:center;gap:16px;background:transparent;border:0;border-radius:0;color:#d52330;padding:8px 0;min-height:44px;font-weight:600}
body:has(#meg-services-style-scope) .main .item-views.services.list .btn::after{content:"";width:18px;height:18px;background:currentColor;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='1.7' d='M4 12h16M14 6l6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat}
body:has(#meg-services-style-scope) .main .item-views.services.list .btn:hover{color:#b91824;text-decoration:underline;text-underline-offset:5px}
body:has(#meg-services-style-scope) #footer{background:#102334;color:#c3cfd8}
body:has(#meg-services-style-scope) #footer a{color:#dce2e7}
@media(max-width:900px){
body:has(#meg-services-style-scope) .main .meg-services-intro{column-gap:32px}
body:has(#meg-services-style-scope) .main .item-views.services.list .item>.row{gap:28px}
body:has(#meg-services-style-scope) .main .item-views.services.list .title{font-size:24px}
}
@media(max-width:600px){
body:has(#meg-services-style-scope) .main .page-top{padding:20px 0 24px}
body:has(#meg-services-style-scope) .main .page-top h1{font-size:32px;margin-top:22px}
body:has(#meg-services-style-scope) .main .meg-services-intro{display:block;padding-bottom:24px}
body:has(#meg-services-style-scope) .main .meg-services-intro>p:first-child{font-size:16px;margin-bottom:20px}
body:has(#meg-services-style-scope) .main .item-views.services.list .item{padding:28px 0}
body:has(#meg-services-style-scope) .main .item-views.services.list .item>.row>.col-md-4{width:100%;margin-bottom:22px}
body:has(#meg-services-style-scope) .main .item-views.services.list .title{font-size:24px}
body:has(#meg-services-style-scope) .main .item-views.services.list .previewtext{font-size:15px;margin-bottom:12px}
}
body:has(#meg-services-style-scope) .main .item-views.services.list .btn,body:has(#meg-services-style-scope) .main .item-views.services.list .btn span{color:#d52330!important}
body:has(#meg-services-style-scope) .main .item-views.services.list .item::after{display:none}

/* Compact service rows; preserve the sidebar and every description. */
@media(min-width:981px){
body:has(#meg-services-style-scope):has(.item-views.services.list) .main .left-menu-md{display:block;width:25%;float:left}
body:has(#meg-services-style-scope):has(.item-views.services.list) .main .content-md{width:75%;float:left}
}
body:has(#meg-services-style-scope) .main .meg-services-intro{column-gap:28px;padding-bottom:24px}
body:has(#meg-services-style-scope) .main .meg-services-intro>p:first-child{font-size:15px}
body:has(#meg-services-style-scope) .main .item-views.services.list .item{padding:16px 0}
body:has(#meg-services-style-scope) .main .item-views.services.list .item>.row{gap:24px;align-items:center}
body:has(#meg-services-style-scope) .main .item-views.services.list .item>.row>.col-md-4{width:24%;flex:0 0 24%}
body:has(#meg-services-style-scope) .main .item-views.services.list .image img{aspect-ratio:1.3;max-height:176px;object-fit:cover}
body:has(#meg-services-style-scope) .main .item-views.services.list .title{font-size:21px;line-height:1.3;max-width:none;margin-bottom:8px}
body:has(#meg-services-style-scope) .main .item-views.services.list .previewtext{font-size:14px;line-height:1.55;max-width:none;margin-bottom:4px}
body:has(#meg-services-style-scope) .main .item-views.services.list .previewtext p{line-height:1.55;margin-bottom:0}
body:has(#meg-services-style-scope) .main .item-views.services.list .btn{padding:6px 0;min-height:40px;font-size:13px}
@media(max-width:600px){
body:has(#meg-services-style-scope) .main .item-views.services.list .item>.row>.col-md-4{width:100%;margin-bottom:14px}
body:has(#meg-services-style-scope) .main .item-views.services.list .image img{aspect-ratio:2;max-height:160px}
body:has(#meg-services-style-scope) .main .item-views.services.list .title{font-size:21px}
}

/* Keep dark service heroes independent from light catalog typography. */
body:has(#meg-services-style-scope) .main .meg-service-page:is(.msp-turning,.msp-welding,.msp-laser,.msp-tooling) .msp-hero h2{color:#fff}
body:has(#meg-services-style-scope) .main .meg-service-page:is(.msp-turning,.msp-welding,.msp-laser,.msp-tooling) .msp-hero p{color:#e0e5e8}
body:has(#meg-services-style-scope) .main .meg-service-page:is(.msp-turning,.msp-welding,.msp-laser,.msp-tooling) .msp-hero-points li{color:#fff;background:#283b49;border-color:#667986}
body:has(#meg-services-style-scope) .main .meg-service-page:is(.msp-turning,.msp-welding,.msp-laser,.msp-tooling) .msp-hero-contact{color:#fff}
