/* Same content width and horizontal gutters as the approved after-sales page.
   These classes occur only on Home and corporate pages, never on product pages. */
.mrm-home-section,.mrm-about-page,.mrm-contact-page,.mrm-production-page{
 --mrm-content-width:1440px;
 --mrm-content-gutter:clamp(20px,5vw,80px);
}
.mrm-home-section{padding-inline:var(--mrm-content-gutter)!important;}
.mrm-home-section>.mrm-home-inner{width:100%!important;max-width:var(--mrm-content-width)!important;margin-inline:auto!important;min-width:0;}
.mrm-about-page .mrm-about-section,.mrm-about-page .mrm-about-hero,.mrm-about-page #projenizi-konusalim{padding-inline:var(--mrm-content-gutter)!important;}
.mrm-about-page .mrm-about-inner,.mrm-about-page .mrm-about-production>.mrm-about-inner,.mrm-about-page #projenizi-konusalim>.wp-block-spectra-container{width:100%!important;max-width:var(--mrm-content-width)!important;margin-inline:auto!important;}
.mrm-about-page .mrm-about-power-band{width:calc(100% + 2 * var(--mrm-content-gutter))!important;margin-inline:calc(-1 * var(--mrm-content-gutter))!important;padding-inline:var(--mrm-content-gutter)!important;}
.mrm-contact-page .mrm-contact-message .mrm-cat-inner{max-width:var(--mrm-content-width)!important;}
.mrm-production-page{--prod-gutter:var(--mrm-content-gutter);}
.mrm-production-page .mrm-prod-hero,.mrm-production-page .mrm-prod-closing{padding-inline:var(--mrm-content-gutter)!important;}
.mrm-production-page .mrm-prod-inner{max-width:var(--mrm-content-width)!important;}

/* Share the icon, heading and description tracks across the fact columns. */
.mrm-home-section .mrm-home-manufacturing-facts {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 8px 0 !important;
    width: 100% !important;
    padding: 0 !important;
    container-type: inline-size;
    --mrm-fact-title-size: clamp(12px, 2.5cqw, 14px);
    --mrm-fact-number-size: clamp(18px, 4.18cqw, 25px);
    --mrm-fact-description-size: 11px;
}

.mrm-home-section .mrm-home-manufacturing-facts > div {
    display: grid !important;
    grid-column: span 1 !important;
    grid-row: span 3 !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: subgrid !important;
    row-gap: inherit !important;
    align-items: start !important;
    justify-items: center !important;
    min-width: 0;
    min-height: 0 !important;
    padding: 0 7px !important;
    text-align: center;
}

.mrm-home-section .mrm-home-manufacturing-facts>div+div{border-left:1px solid #ef661370!important;}
.mrm-home-section .mrm-home-manufacturing-facts>div>.wp-block-spectra-icons{width:100%!important;height:32px!important;display:flex!important;justify-content:center!important;align-items:center!important;}
.mrm-home-section .mrm-home-manufacturing-facts .wp-block-spectra-icon{display:flex!important;justify-content:center!important;align-items:center!important;width:auto!important;}
.mrm-home-section .mrm-home-manufacturing-facts svg{width:32px!important;height:32px!important;color:var(--ast-global-color-0,#ef6613);}

.mrm-home-section .mrm-home-manufacturing-facts > div > p {
    width: 100% !important;
    margin: 0 !important;
    text-align: center;
    text-wrap: balance;
}

.mrm-home-section .mrm-home-manufacturing-facts > div > p:first-of-type {
    align-self: first baseline !important;
    font-size: var(--mrm-fact-title-size) !important;
    line-height: 1.25 !important;
    font-weight: 750 !important;
    color: var(--ast-global-color-0, #ef6613) !important;
}

.mrm-home-section .mrm-home-manufacturing-facts > div:nth-child(-n+2) > p:first-of-type {
    font-size: var(--mrm-fact-number-size) !important;
    white-space: nowrap;
}

.mrm-home-section .mrm-home-manufacturing-facts > div:nth-child(n+3) > p:first-of-type {
    max-width: 9em;
}

.mrm-home-section .mrm-home-manufacturing-facts > div > p:last-child {
    font-size: var(--mrm-fact-description-size) !important;
    line-height: 1.5 !important;
    color: #21272d !important;
}

.mrm-home-section .mrm-home-manufacturing-facts>div>p span{color:inherit!important;}

@media (max-width: 1200px) {
    .mrm-home-section .mrm-home-manufacturing-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        --mrm-fact-title-size: 14px;
        --mrm-fact-number-size: clamp(18px, 7.4cqw, 25px);
        --mrm-fact-description-size: 12px;
    }

    .mrm-home-section .mrm-home-manufacturing-facts > div:nth-child(-n+2) {
        padding-bottom: 14px !important;
    }

    .mrm-home-section .mrm-home-manufacturing-facts > div:nth-child(3) {
        border-left: 0 !important;
    }
}

/* Approved dotted map, with stronger grey dots; positions and orange markers retained. */
.mrm-home-world-map,.mrm-home-world-map .wp-block-spectra-icons,.mrm-home-world-map .wp-block-spectra-icon,.mrm-home-world-map svg{opacity:1!important;}
.mrm-home-world-map svg{display:block;width:100%!important;height:auto!important;max-width:100%;}
.mrm-home-world-section .mrm-home-project-actions{display:flex!important;width:100%!important;justify-content:flex-end!important;align-items:center!important;}

/* The map is a background layer, so it cannot push the projects downward. */
.mrm-home-world-section>.mrm-home-inner{gap:16px!important;isolation:isolate;}
.mrm-home-world-intro{display:block!important;position:relative!important;width:100%!important;min-height:0!important;}
.mrm-home-world-copy{position:relative;z-index:1;width:44%!important;gap:18px!important;}
.mrm-home-world-intro>.mrm-home-world-map{position:absolute!important;inset:0 0 auto auto!important;width:56%!important;min-height:0!important;height:auto!important;pointer-events:none;z-index:0;overflow:visible!important;}
.mrm-home-world-stats {
    --mrm-world-stat-gap: clamp(24px, 3.6vw, 58px);
    width: max-content !important;
    max-width: 100%;
    grid-template-columns: repeat(3, max-content) !important;
    gap: 0 var(--mrm-world-stat-gap) !important;
}
.mrm-home-world-stats > div {
    position: relative;
    padding-inline: 0 !important;
    border-inline: 0 !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    text-align: left !important;
}
.mrm-home-world-stats > div + div::before {
    content: "";
    position: absolute;
    inset-block: 0;
    inset-inline-start: calc(var(--mrm-world-stat-gap) / -2);
    width: 1px;
    background: var(--ast-global-color-0, #ef6613);
    transform: translateX(-50%);
}
.mrm-home-world-stats p{text-align:left!important;}
.mrm-home-world-stats>div>p:first-child{white-space:nowrap;}
.mrm-home-world-section .mrm-home-project-actions{position:relative;z-index:2;margin-top:-12px!important;}
.mrm-home-world-carousel{position:relative;z-index:1;}
.mrm-home-world-carousel .mrm-home-project-algeria-photo img{filter:brightness(1.025) contrast(1.015);}
.mrm-home-world-carousel .mrm-home-project-ukraine-photo img{filter:brightness(1.12) contrast(1.035) saturate(.9) sepia(.055);}
.mrm-home-world-carousel .mrm-project-carousel{padding-bottom:28px!important;}
.mrm-home-world-carousel .mrm-project-carousel>.swiper{margin-bottom:0!important;}
.mrm-home-world-carousel .cb-pagination{top:auto!important;bottom:0!important;}
.mrm-home-world-carousel .cb-button-prev,.mrm-home-world-carousel .cb-button-next{top:calc(50% - 14px)!important;width:34px;height:34px;margin-top:-17px;border:0;border-radius:50%;padding:0;background:rgba(33,39,45,.72);color:#fff!important;opacity:1;transition:background-color .3s;}
.mrm-home-world-carousel .cb-button-prev::after,.mrm-home-world-carousel .cb-button-next::after{content:"";width:16px;height:16px;background:currentColor;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M502.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L402.7 224 32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l370.7 0-105.4 105.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160z'/%3E%3C/svg%3E") center/contain no-repeat;}
.mrm-home-world-carousel .cb-button-prev::after{transform:rotate(180deg);}
.mrm-home-world-carousel .cb-button-prev:hover,.mrm-home-world-carousel .cb-button-next:hover,.mrm-home-world-carousel .cb-button-prev:focus,.mrm-home-world-carousel .cb-button-next:focus{background:#ef6613;}
.mrm-home-world-carousel .cb-button-prev:focus,.mrm-home-world-carousel .cb-button-next:focus{outline:3px solid #fff;outline-offset:0;}
@media(min-width:781px) and (max-width:1100px){
 .mrm-home-world-copy{width:65%!important;}
 .mrm-home-world-intro>.mrm-home-world-map{width:58%!important;opacity:.3!important;}
}
@media(max-width:780px){
 .mrm-home-world-copy{width:100%!important;}
 .mrm-home-world-intro>.mrm-home-world-map{top:30px!important;width:100%!important;opacity:.16!important;}
 .mrm-home-world-section .mrm-home-project-actions{margin-top:4px!important;}
}
@media(max-width:480px){
 .mrm-home-world-stats>div>p:first-child{font-size:27px!important;}
}

/* Two main cards above; mobile plant and three accessory cards below. */
.mrm-home-section .mrm-product-grid{grid-template-columns:repeat(14,minmax(0,1fr))!important;}
.mrm-home-section .mrm-product-card--fixed,.mrm-home-section .mrm-product-card--compact{grid-column:span 7!important;}
.mrm-home-section .mrm-product-card--mobile{grid-column:span 5!important;}
.mrm-home-section .mrm-home-accessory-card{grid-column:span 3!important;--spectra-overlay-position:50% calc(100% - 10px)!important;--spectra-overlay-size:auto 112px!important;padding:18px!important;}
.mrm-home-section .mrm-home-accessory-card .mrm-product-card-text{width:calc(100% - 24px)!important;flex-basis:auto!important;}
.mrm-home-section .mrm-home-accessory-card h3{font-size:20px!important;line-height:1.12!important;}
.mrm-home-section .mrm-home-accessory-card .mrm-card-action{font-size:11px!important;min-height:30px!important;padding:7px 10px!important;line-height:1.3!important;white-space:nowrap;}
.mrm-home-section .mrm-product-card--bunkers{--spectra-overlay-size:auto 108px!important;}
@media(min-width:1101px){
 .mrm-home-section .mrm-product-card--fixed,.mrm-home-section .mrm-product-card--compact{--spectra-overlay-size:auto 208px!important;--spectra-overlay-position:calc(100% - 20px) calc(100% - 10px)!important;}
}
@media (min-width: 781px) and (max-width: 839px), (min-width: 1101px) and (max-width: 1399px) {
 .mrm-home-section .mrm-home-accessory-card h3{font-size:16px!important;}
}

@media(max-width:1100px){
 .mrm-home-section,.mrm-about-page,.mrm-contact-page,.mrm-production-page{--mrm-content-gutter:28px;}
 .mrm-home-section .mrm-product-grid{grid-template-columns:repeat(6,minmax(0,1fr))!important;}
 .mrm-home-section .mrm-product-card--fixed,.mrm-home-section .mrm-product-card--compact{grid-column:span 3!important;}
 .mrm-home-section .mrm-product-card--mobile{grid-column:span 6!important;}
 .mrm-home-section .mrm-home-accessory-card{grid-column:span 2!important;}
}
@media(max-width:780px){
 .mrm-home-section,.mrm-about-page,.mrm-contact-page,.mrm-production-page{--mrm-content-gutter:18px;}
 .mrm-home-section .mrm-product-grid{grid-template-columns:minmax(0,1fr)!important;}
 .mrm-home-section .mrm-product-card{grid-column:span 1!important;}
 .mrm-home-section .mrm-home-accessory-card{height:228px!important;min-height:228px!important;--spectra-overlay-size:auto 118px!important;}
}
@media(max-width:767px){
 .mrm-about-page .mrm-about-hero-photo{width:calc(100% + 2 * var(--mrm-content-gutter))!important;margin-inline:calc(-1 * var(--mrm-content-gutter))!important;}
}

/* Use the accessory cards' existing space without changing their layout or images. */
.mrm-home-section .mrm-home-accessory-card{height:228px!important;min-height:228px!important;}
.mrm-home-section .mrm-product-card--silos.mrm-home-accessory-card{--spectra-overlay-size:auto 144px!important;--spectra-overlay-position:72% calc(100% - 10px)!important;}
.mrm-home-section .mrm-product-card--mixer.mrm-home-accessory-card{--spectra-overlay-size:auto 136px!important;}
.mrm-home-section .mrm-product-card--bunkers.mrm-home-accessory-card{--spectra-overlay-size:auto 122px!important;}

/* Align the visible base of the fixed plant with the compact plant. */
.mrm-home-section .mrm-product-card--fixed {
    --spectra-overlay-size: 230px auto !important;
    --spectra-overlay-position: calc(100% - 28px) calc(100% + 10px) !important;
}

@media (max-width: 480px) {
    .mrm-home-section .mrm-product-card--fixed {
        --spectra-overlay-size: 205px auto !important;
        --spectra-overlay-position: calc(100% - 28px) calc(100% + 7px) !important;
    }
}

@media (min-width: 1101px) {
    .mrm-home-section .mrm-product-card--fixed {
        --mrm-fixed-model-height: clamp(244px, 18vw, 260px);
        --spectra-overlay-size: auto var(--mrm-fixed-model-height) !important;
        /* The fixed plant asset has 16.2% transparent space below the model. */
        --spectra-overlay-position: calc(100% - 45px) calc(100% - 12px + var(--mrm-fixed-model-height) * .162) !important;
    }
}

@media (min-width: 781px) {
    .mrm-home-section .mrm-product-card:is(.mrm-product-card--mobile, .mrm-home-accessory-card) {
        padding-top: 20px !important;
    }

    .mrm-home-section :is(.mrm-product-card--mobile, .mrm-home-accessory-card) .mrm-product-card-text {
        gap: 6px !important;
    }

    .mrm-home-section :is(.mrm-product-card--mobile, .mrm-home-accessory-card) .mrm-product-card-text h3 {
        min-block-size: 54px;
    }

    .mrm-home-section :is(.mrm-product-card--mobile, .mrm-home-accessory-card) .mrm-card-action {
        min-height: 31px !important;
        white-space: nowrap;
    }

    .mrm-home-section .mrm-product-card--mobile .mrm-card-action {
        max-width: none;
    }

    .mrm-home-section .mrm-product-card--bunkers.mrm-home-accessory-card {
        --spectra-overlay-size: auto 112px !important;
        --spectra-overlay-position: 50% calc(100% - 4px) !important;
    }
}

@media (min-width: 1101px) and (max-width: 1240px) {
    .mrm-home-section .mrm-product-card--silos.mrm-home-accessory-card {
        --spectra-overlay-position: 94% calc(100% - 10px) !important;
    }
}

/* Requested mobile refinements; desktop layout remains unchanged. */
@media(max-width:780px){
 .mrm-home-world-section .mrm-home-project-actions{justify-content:flex-start!important;}
 .mrm-home-world-carousel .mrm-project-carousel>.swiper,
 .mrm-home-world-carousel .mrm-project-carousel .swiper-wrapper,
 .mrm-home-world-carousel .mrm-project-carousel .swiper-slide{height:auto!important;}
 .mrm-home-world-carousel .swiper-slide>.wp-block-spectra-container{height:auto!important;min-height:100%!important;box-sizing:border-box;}
 .mrm-home-section .mrm-product-card:is(.mrm-product-card--fixed,.mrm-product-card--compact,.mrm-product-card--mobile){height:310px!important;min-height:310px!important;}
 .mrm-home-section .mrm-product-card--fixed{--spectra-overlay-size:285px auto!important;--spectra-overlay-position:calc(100% - 16px) calc(100% + 17px)!important;}
 .mrm-home-section .mrm-product-card--compact{--spectra-overlay-size:auto 190px!important;--spectra-overlay-position:calc(100% - 14px) calc(100% - 12px)!important;}
 .mrm-home-section .mrm-product-card--mobile{--spectra-overlay-size:auto 190px!important;--spectra-overlay-position:calc(100% - 14px) calc(100% - 12px)!important;}
}
