/* Arabic/RTL translation display only. English requests never enqueue this stylesheet.
   0.5.1 adds scoped product text alignment while preserving product graphics. */
html[dir="rtl"] body.atlas-amm-language {
    direction: rtl;
}
/* Let browser font fallback supply Arabic glyphs without distributing fonts. */
html[dir="rtl"] body.atlas-amm-language [data-acm-field],
html[dir="rtl"] body.atlas-amm-language .hero h1,
html[dir="rtl"] body.atlas-amm-language .aj-article-title {
    letter-spacing: normal;
}
html[dir="rtl"] body.atlas-amm-language a[href^="tel:"],
html[dir="rtl"] body.atlas-amm-language a[href^="mailto:"],
html[dir="rtl"] body.atlas-amm-language a[href*="wa.me/"],
html[dir="rtl"] body.atlas-amm-language code,
html[dir="rtl"] body.atlas-amm-language .brand-logo,
html[dir="rtl"] body.atlas-amm-language .brand-origin,
html[dir="rtl"] body.atlas-amm-language .brand-country {
    direction: ltr;
    unicode-bidi: isolate;
}
/* No blanket width/height override, logo resize, font-size change, hidden
   overflow, DOM rewrite, or JavaScript is used to conceal layout failures. */

/* Align only the two translated text probes whose original layouts explicitly
   use left alignment. No size, spacing, assets or English-page rule is changed. */
html[dir="rtl"] body.atlas-amm-language .hero h1,
html[dir="rtl"] body.atlas-amm-language .aj-lede {
    text-align: right;
}
html[dir="rtl"] body.atlas-amm-language .hero-model {
    direction: ltr;
    unicode-bidi: isolate;
}

/* -------------------------------------------------------------------------
 * 0.5.1 — text-first RTL compatibility for Atlas products and both hub pages.
 * Scoped to translated requests. Original English output is byte-for-byte
 * unaffected; no transforms of machinery images, schematics or flow arrows.
 * ------------------------------------------------------------------------- */
html[dir="rtl"] body.atlas-amm-language .atlas-ccl300 {
    direction: rtl;
    text-align: right;
}
html[dir="rtl"] body.atlas-amm-language .atlas-ccl300 :is(h1,h2,h3,h4,p,li,dt,dd,figcaption,summary,.eyebrow,.prose,.section-head,.hero-lead,.step-content) {
    direction: rtl;
    text-align: right;
    letter-spacing: normal;
}
/* The geometry and physical direction of manufacturing remain untouched. */
html[dir="rtl"] body.atlas-amm-language .atlas-ccl300 :is(.feature-journey,.journey-steps) {
    direction: ltr;
}
html[dir="rtl"] body.atlas-amm-language .atlas-ccl300 :is(.feature-journey,.journey-steps) span {
    direction: rtl;
    unicode-bidi: isolate;
    text-align: center;
}
html[dir="rtl"] body.atlas-amm-language .atlas-ccl300 .process-timeline {
    direction: rtl;
}
html[dir="rtl"] body.atlas-amm-language .atlas-ccl300 .process-timeline::before {
    left: auto;
    right: 28px;
}
html[dir="rtl"] body.atlas-amm-language .atlas-ccl300 .process-timeline .step > span {
    direction: ltr;
    unicode-bidi: isolate;
}
/* Theme changes 58px circles to 48px below 1200px. Keep the connecting
 * stroke centered through every circle at each responsive breakpoint. */
@media(max-width:960px) {
    html[dir="rtl"] body.atlas-amm-language .atlas-ccl300 .process-timeline::before {
        right: 23px;
    }
}
html[dir="rtl"] body.atlas-amm-language .atlas-ccl300 .atlas-shape-note {
    border-left: 0;
    border-right: 3px solid #d3a300;
    text-align: right;
}
html[dir="rtl"] body.atlas-amm-language .atlas-ccl300 .hero-model,
html[dir="rtl"] body.atlas-amm-language .atlas-ccl300 :is(.model-code,.technical-number,.spec-value) {
    direction: ltr;
    unicode-bidi: isolate;
}
/* Packaging and archive compositions retain their approved left-to-right
 * image/column arrangement. Only natural-language text is right-to-left. */
html[dir="rtl"] body.atlas-amm-language .atlas-packaging,
html[dir="rtl"] body.atlas-amm-language.atlas-production-hub .atlas-hub {
    direction: ltr;
}
html[dir="rtl"] body.atlas-amm-language .atlas-packaging :is(h1,h2,h3,h4,p,li,dt,dd,figcaption,summary,.pm-kicker,.pm-lead,.pm-model-description,.pm-family-tag,.pm-note,.pm-text-link),
html[dir="rtl"] body.atlas-amm-language.atlas-production-hub .atlas-hub :is(h1,h2,h3,h4,p,li,dt,dd,figcaption,.eyebrow,.hero-copy,.model-name,.table-note,.family-note) {
    direction: rtl;
    text-align: right;
    letter-spacing: normal;
}
/* Technical comparison columns and model image positions are not mirrored. */
html[dir="rtl"] body.atlas-amm-language .atlas-packaging .pm-table,
html[dir="rtl"] body.atlas-amm-language.atlas-production-hub .atlas-hub :is(table,.process-path,.model-grid,.family-visual) {
    direction: ltr;
}
html[dir="rtl"] body.atlas-amm-language .atlas-packaging .pm-table :is(th,td),
html[dir="rtl"] body.atlas-amm-language.atlas-production-hub .atlas-hub :is(th,td) {
    text-align: right;
}
html[dir="rtl"] body.atlas-amm-language .atlas-packaging :is(.pm-model,.pm-process-number,.pm-card-index,.pm-spec-value,.pm-spec-unit),
html[dir="rtl"] body.atlas-amm-language.atlas-production-hub .atlas-hub :is(.model-code,.card-index,.output,strong.capacity-value) {
    direction: ltr;
    unicode-bidi: isolate;
}
/* Keep navigation and control arrows in their physical orientation. */
html[dir="rtl"] body.atlas-amm-language .atlas-packaging :is(.pm-arrow,.pm-jump-links,.pm-card-cta-arrow),
html[dir="rtl"] body.atlas-amm-language.atlas-production-hub .atlas-hub :is(.arrow,.hub-jump,.process-path) {
    direction: ltr;
}
/* Narrow layouts: allow Arabic copy to wrap instead of widening its column. */
@media(max-width:780px) {
    html[dir="rtl"] body.atlas-amm-language .atlas-packaging :is(.pm-lead,.pm-card h3 span,.pm-model-description),
    html[dir="rtl"] body.atlas-amm-language.atlas-production-hub .atlas-hub :is(.hero-copy,.model-name,.family-head p),
    html[dir="rtl"] body.atlas-amm-language .atlas-ccl300 :is(.step-content,.prose,.atlas-shape-note) {
        overflow-wrap: anywhere;
    }
}

/* 0.5.2 — the approved customer carousel's keyframes run leftwards from a
   left-to-right flex track. Do not reverse the track when the surrounding
   language is RTL: that places both repeated sequences outside the viewport. */
html[dir="rtl"] body.atlas-amm-language :is(.atlas-ccl300,.atlas-home-content,.atlas-about,.a360v3,.atlas-packaging) .client-carousel,
html[dir="rtl"] body.atlas-amm-language :is(.atlas-ccl300,.atlas-home-content,.atlas-about,.a360v3,.atlas-packaging) :is(.client-row,.client-track,.client-sequence,.client-logo-card) {
    direction:ltr;
}
/* Text inside a customer placeholder may be Arabic; the animation and its
   actual image geometry remain LTR, while captions follow the chosen locale. */
html[dir="rtl"] body.atlas-amm-language :is(.atlas-ccl300,.atlas-home-content,.atlas-about,.a360v3,.atlas-packaging) .client-logo-slot:not(:has(img)) {
    direction:rtl;
    unicode-bidi:isolate;
}
/* Shared brand cards: preserve image/country geometry without reversing
   artwork; only prose and headings are RTL. */
html[dir="rtl"] body.atlas-amm-language .atlas-source-brand-grid,
html[dir="rtl"] body.atlas-amm-language .atlas-source-brand-head {
    direction:ltr;
}
html[dir="rtl"] body.atlas-amm-language .atlas-source-brand-card :is(h3,p) {
    direction:rtl;
    text-align:right;
    unicode-bidi:plaintext;
}
/* Leave model numbers, table capacities, linked images and diagrams unchanged. */
html[dir="rtl"] body.atlas-amm-language .atlas-production-lines-table {
    direction:ltr;
}
html[dir="rtl"] body.atlas-amm-language .atlas-production-lines-table :is(h2,.eyebrow) {
    direction:rtl;
    text-align:right;
}
html[dir="rtl"] body.atlas-amm-language .atlas-production-lines-table :is(th,td) {
    unicode-bidi:plaintext;
}
