/* EMIRMAK V6 global visual integrity layer — loaded last on every HTML page */
:root{--em-v6-ink:#111820;--em-v6-text:#202832;--em-v6-muted:#5e6873;--em-v6-yellow:#f1cb00}
html{overflow-x:hidden}
body.em2026{color:var(--em-v6-text);background:#fff}
body.em2026 img{max-width:100%;height:auto}
body.em2026 iframe{max-width:100%}

/* Prevent legacy .container {background:white} from destroying dark hero areas. */
body.em2026 .em-carbon-hero,
body.em2026 .em-carbon-hero .container,
body.em2026 .em-carbon-hero .em-carbon-grid{background:transparent!important}
body.em2026 .em-carbon-hero{background:linear-gradient(115deg,#0e1115 0%,#181d23 52%,#242b33 100%)!important;color:#fff!important}
body.em2026 .em-carbon-hero h1,
body.em2026 .em-carbon-hero h2,
body.em2026 .em-carbon-hero h3{color:#fff!important;text-shadow:none!important}
body.em2026 .em-carbon-hero p{color:#d8dfe5!important}
body.em2026 .em-carbon-hero .em-btn-primary{background:var(--em-v6-yellow)!important;color:#111!important;border-color:var(--em-v6-yellow)!important}
body.em2026 .em-carbon-hero .em-btn-secondary{background:transparent!important;color:#fff!important;border:1px solid #87919b!important}
body.em2026 .em-carbon-kicker{color:#111!important;background:var(--em-v6-yellow)!important}

/* White/light areas must always use dark readable text. */
body.em2026 .em-ba-section,
body.em2026 .seo-hub,
body.em2026 .about_section,
body.em2026 .service_section,
body.em2026 .why_us_section,
body.em2026 .contact_section,
body.em2026 .product_section,
body.em2026 .layout_padding:not(.em-direct-maker):not(.em-model-showcase),
body.em2026 main,
body.em2026 .content-section,
body.em2026 .machine-detail,
body.em2026 .product-detail,
body.em2026 .carbon-detail-v6,
body.em2026 .carbon-specs-v6{color:var(--em-v6-text)}

body.em2026 .em-ba-section h1,body.em2026 .em-ba-section h2,body.em2026 .em-ba-section h3,
body.em2026 .seo-hub h1,body.em2026 .seo-hub h2,body.em2026 .seo-hub h3,
body.em2026 .about_section h1,body.em2026 .about_section h2,body.em2026 .about_section h3,body.em2026 .about_section h4,body.em2026 .about_section h5,
body.em2026 .service_section h1,body.em2026 .service_section h2,body.em2026 .service_section h3,body.em2026 .service_section h4,body.em2026 .service_section h5,
body.em2026 .why_us_section h1,body.em2026 .why_us_section h2,body.em2026 .why_us_section h3,body.em2026 .why_us_section h4,body.em2026 .why_us_section h5,
body.em2026 .contact_section h1,body.em2026 .contact_section h2,body.em2026 .contact_section h3,
body.em2026 .product_section h1,body.em2026 .product_section h2,body.em2026 .product_section h3,
body.em2026 .carbon-detail-v6 h1,body.em2026 .carbon-detail-v6 h2,body.em2026 .carbon-detail-v6 h3,
body.em2026 .carbon-specs-v6 h1,body.em2026 .carbon-specs-v6 h2,
body.em2026 main h1,body.em2026 main h2,body.em2026 main h3{color:var(--em-v6-ink)!important;text-shadow:none!important}

body.em2026 .em-ba-section p,body.em2026 .seo-hub p,
body.em2026 .about_section p,body.em2026 .service_section p,body.em2026 .why_us_section p,
body.em2026 .contact_section p,body.em2026 .product_section p,
body.em2026 .carbon-detail-v6 p,body.em2026 main p{color:var(--em-v6-muted)!important}

/* Explicit white cards — protect against old white-on-white typography rules. */
body.em2026 .box,
body.em2026 .seo-guide-card,
body.em2026 .machine-model-card,
body.em2026 .product-card,
body.em2026 .carbon-detail-v6 .media,
body.em2026 .carbon-detail-v6 .features li,
body.em2026 [style*="background:#fff"],
body.em2026 [style*="background: #fff"],
body.em2026 [style*="background:white"],
body.em2026 [style*="background: white"]{color:var(--em-v6-text)!important}
body.em2026 .box h1,body.em2026 .box h2,body.em2026 .box h3,body.em2026 .box h4,body.em2026 .box h5,
body.em2026 .seo-guide-card h1,body.em2026 .seo-guide-card h2,body.em2026 .seo-guide-card h3,
body.em2026 .machine-model-card h1,body.em2026 .machine-model-card h2,body.em2026 .machine-model-card h3,
body.em2026 .product-card h1,body.em2026 .product-card h2,body.em2026 .product-card h3{color:var(--em-v6-ink)!important;text-shadow:none!important}
body.em2026 .box p,body.em2026 .seo-guide-card p,body.em2026 .machine-model-card p,body.em2026 .product-card p{color:var(--em-v6-muted)!important}

/* Preserve intended dark sections after broad readability rules. */
body.em2026 .em-model-showcase,
body.em2026 .em-direct-maker,
body.em2026 .em-profit-calculator,
body.em2026 .site-footer,
body.em2026 footer.site-footer{color:#fff!important}
body.em2026 .em-model-showcase h1,body.em2026 .em-model-showcase h2,body.em2026 .em-model-showcase h3,
body.em2026 .em-direct-maker h1,body.em2026 .em-direct-maker h2,body.em2026 .em-direct-maker h3,
body.em2026 .site-footer h1,body.em2026 .site-footer h2,body.em2026 .site-footer h3,body.em2026 .site-footer h4,body.em2026 .site-footer h5,body.em2026 .site-footer h6{color:#fff!important}
body.em2026 .em-model-showcase p{color:#aeb7c1!important}
body.em2026 .em-direct-maker p,body.em2026 .site-footer p{color:#cbd2d9!important}

/* Header/menu consistency and no accidental raw margins from malformed source. */
body.em2026 .header{background:#fff!important;padding:18px 16px!important;text-align:center!important}
body.em2026 .header>img{display:block!important;width:auto!important;max-width:280px!important;max-height:150px!important;height:auto!important;margin:0 auto!important;object-fit:contain!important}
body.em2026 .menu{position:relative;z-index:100;background:#fff!important;border-top:1px solid #e6e9ec;border-bottom:1px solid #e6e9ec;box-shadow:0 8px 24px rgba(15,24,32,.06)!important}
body.em2026 .menu>ul>li>a,body.em2026 .menu>ul>li{color:#171d23!important}
body.em2026 .menu>ul>li:hover,body.em2026 .menu>ul>li.active{background:#fff5bf!important}
body.em2026 .menu>ul>li:hover>a,body.em2026 .menu>ul>li.active>a{color:#111!important;text-shadow:none!important}
body.em2026 .menu ul>li>ul{background:#fff!important;border:1px solid #e4e7ea!important;box-shadow:0 16px 35px rgba(0,0,0,.12)!important}
body.em2026 .menu>ul>li>ul>li>a{color:#171d23!important}
body.em2026 .menu>ul>li>ul>li:hover{background:#fff5bf!important}
body.em2026 .menu>ul>li>ul>li:hover>a{color:#111!important;background:transparent!important}

/* Product grids and cards cannot collapse or overflow. */
body.em2026 .row{min-width:0}
body.em2026 .row>*{min-width:0}
body.em2026 .machine-model-card,body.em2026 .product-card,body.em2026 .box{overflow-wrap:anywhere}
body.em2026 table{max-width:100%}
body.em2026 .table-responsive{overflow-x:auto;-webkit-overflow-scrolling:touch}

/* Video/iframe wrappers stay responsive. */
body.em2026 .em-youtube-frame{width:100%!important;max-width:960px!important;aspect-ratio:16/9!important;height:auto!important;min-height:0!important;margin-left:auto!important;margin-right:auto!important}
body.em2026 iframe.em-youtube-frame{display:block!important}

/* Arabic RTL integrity */
html[dir="rtl"] body.em2026{text-align:right}
html[dir="rtl"] .menu>ul,html[dir="rtl"] .em-langbar-inner{direction:rtl}
html[dir="rtl"] .em-carbon-actions,html[dir="rtl"] .em-ba-pills{justify-content:flex-start}

@media(max-width:900px){
  body.em2026 .header{padding:12px!important}
  body.em2026 .header>img{max-width:210px!important;max-height:105px!important}
  body.em2026 .em-carbon-grid{grid-template-columns:1fr!important}
  body.em2026 .em-carbon-media{order:-1}
  body.em2026 .em-carbon-hero h1{font-size:clamp(2.4rem,11vw,4.2rem)!important}
  body.em2026 .em-carbon-actions{display:grid!important;grid-template-columns:1fr!important}
  body.em2026 .em-carbon-actions a{width:100%!important}
  body.em2026 .menu .mobile-menu{display:block;background:var(--em-v6-yellow)!important;color:#111!important}
}
@media(max-width:600px){
  body.em2026 .container{padding-left:16px!important;padding-right:16px!important}
  body.em2026 .em-langbar-inner{width:calc(100% - 20px)!important}
}
