/*
 * Atlas Site 1.5.8 — Arabic/RTL completion pass.
 *
 * Scope covers the published Arabic Atlas pages only.
 * AMM remains the owner of language routing and the html lang/dir attributes.
 * This file changes presentation only: no content, DOM, links or SEO output.
 */

@font-face {
  font-family: "Noto Sans Arabic Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/noto-sans-arabic/NotoSansArabic-Variable.woff2") format("woff2-variations");
  unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC,U+102E0-102FB,U+10E60-10E7E,U+10EC2-10EC4,U+10EFC-10EFF,U+1EE00-1EE03,U+1EE05-1EE1F,U+1EE21-1EE22,U+1EE24,U+1EE27,U+1EE29-1EE32,U+1EE34-1EE37,U+1EE39,U+1EE3B,U+1EE42,U+1EE47,U+1EE49,U+1EE4B,U+1EE4D-1EE4F,U+1EE51-1EE52,U+1EE54,U+1EE57,U+1EE59,U+1EE5B,U+1EE5D,U+1EE5F,U+1EE61-1EE62,U+1EE64,U+1EE67-1EE6A,U+1EE6C-1EE72,U+1EE74-1EE77,U+1EE79-1EE7C,U+1EE7E,U+1EE80-1EE89,U+1EE8B-1EE9B,U+1EEA1-1EEA3,U+1EEA5-1EEA9,U+1EEAB-1EEBB,U+1EEF0-1EEF1;
}

/* This selector is the release boundary for phase one. */
html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar:is(
  .home.page-id-990063,
  .page-id-15,
  .page-id-990012,
  .postid-990229,
  .page-id-27,
  .postid-990241,
  .postid-990331
) {
  --atlas-ar-font: "Noto Sans Arabic Variable", "Helvetica Neue", Arial, sans-serif;
}

/* Arabic glyphs use the local face; Latin technical text falls through to the
 * existing Atlas sans stack because the font file contains Arabic only. */
html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar:is(
  .home.page-id-990063,
  .page-id-15,
  .page-id-990012,
  .postid-990229,
  .page-id-27,
  .postid-990241,
  .postid-990331
) :where(
  h1,h2,h3,h4,h5,h6,p,li,dt,dd,blockquote,figcaption,summary,
  label,button,input,textarea,select,
  .at-nav-link,.at-project-link,.at-kicker,.eyebrow,
  .aa-kicker,.aa-eyebrow,.aa-link,
  .aj-mono,.aj-kicker,.pm-kicker,.pm-text-link
) {
  font-family: var(--atlas-ar-font);
}

/* Neutralize the AMM-wide heading zoom on the approved phase-one pages. Each
 * large heading is sized below with normal font metrics instead. */
html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar:is(
  .home.page-id-990063,
  .page-id-15,
  .page-id-990012,
  .postid-990229,
  .page-id-27,
  .postid-990241,
  .postid-990331
) :is(h1,h2,h3) {
  zoom: 1;
  letter-spacing: normal;
  overflow-wrap: break-word;
}

html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar:is(
  .home.page-id-990063,
  .page-id-15,
  .page-id-990012,
  .postid-990229,
  .page-id-27,
  .postid-990241,
  .postid-990331
) :where(h1,h2,h3,h4,h5,h6,p,li,dt,blockquote,figcaption,summary,label,button) {
  direction: rtl;
  text-align: right;
  letter-spacing: normal;
  unicode-bidi: plaintext;
}

/* -------------------------------------------------------------------------
 * Shared header, footer and controls.
 * ---------------------------------------------------------------------- */
html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar:is(
  .home.page-id-990063,
  .page-id-15,
  .page-id-990012,
  .postid-990229,
  .page-id-27,
  .postid-990241,
  .postid-990331
) .at-shell {
  direction: rtl;
  text-align: start;
}

html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar:is(
  .home.page-id-990063,
  .page-id-15,
  .page-id-990012,
  .postid-990229,
  .page-id-27,
  .postid-990241,
  .postid-990331
) .at-header :is(.at-nav-link,.at-products > summary,.at-project-link,.at-mobile-menu > summary,.at-mobile-panel a) {
  direction: rtl;
  text-align: right;
  letter-spacing: normal;
}

html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar:is(
  .home.page-id-990063,
  .page-id-15,
  .page-id-990012,
  .postid-990229,
  .page-id-27,
  .postid-990241,
  .postid-990331
) .at-header .at-nav-link::after {
  transform-origin: right;
}

html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar:is(
  .home.page-id-990063,
  .page-id-15,
  .page-id-990012,
  .postid-990229,
  .page-id-27,
  .postid-990241,
  .postid-990331
) .at-header .at-dropdown {
  right: -26px;
  left: auto;
  text-align: right;
}

html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar:is(
  .home.page-id-990063,
  .page-id-15,
  .page-id-990012,
  .postid-990229,
  .page-id-27,
  .postid-990241,
  .postid-990331
) .at-footer :is(.at-invitation,.at-footer-grid,.at-bottom,.at-footer-nav,.at-contact-note,.at-origin) {
  direction: rtl;
  text-align: right;
}

html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar:is(
  .home.page-id-990063,
  .page-id-15,
  .page-id-990012,
  .postid-990229,
  .page-id-27,
  .postid-990241,
  .postid-990331
) .at-footer .at-invitation h2 {
  font-size: clamp(42px,5.1vw,79px);
  line-height: 1.16;
}

html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar:is(
  .home.page-id-990063,
  .page-id-15,
  .page-id-990012,
  .postid-990229,
  .page-id-27,
  .postid-990241,
  .postid-990331
) .at-footer :is(.at-conversation,.at-footer-contact) {
  direction: rtl;
  text-align: right;
  unicode-bidi: plaintext;
}

html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar:is(
  .home.page-id-990063,
  .page-id-15,
  .page-id-990012,
  .postid-990229,
  .page-id-27,
  .postid-990241,
  .postid-990331
) .at-footer :is(.at-mail,.at-footer-contact bdi) {
  direction: ltr;
  unicode-bidi: isolate;
}

/* Form copy remains RTL. Technical entry fields are isolated, without
 * changing submission, validation or field markup. */
html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar:is(
  .home.page-id-990063,
  .page-id-15,
  .page-id-990012,
  .postid-990229,
  .page-id-27,
  .postid-990241,
  .postid-990331
) :where(input:not([type="email"]):not([type="tel"]):not([type="url"]):not([type="number"]),textarea,select) {
  direction: rtl;
  text-align: right;
}

html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar:is(
  .home.page-id-990063,
  .page-id-15,
  .page-id-990012,
  .postid-990229,
  .page-id-27,
  .postid-990241,
  .postid-990331
) :where(input[type="email"],input[type="tel"],input[type="url"],input[type="number"]) {
  direction: ltr;
  text-align: left;
  unicode-bidi: isolate;
}

/* -------------------------------------------------------------------------
 * Home — layout and machinery artwork stay in their approved orientation.
 * ---------------------------------------------------------------------- */
html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar.home.page-id-990063 .atlas-home-content {
  direction: rtl;
  text-align: right;
}

html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar.home.page-id-990063 .atlas-home .ah-hero h1 {
  font-size: clamp(46px,5.8vw,84px);
  line-height: 1.14;
  white-space: normal;
}

html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar.home.page-id-990063 .atlas-home :is(.ah-story-copy,.ah-section-head,.ah-possibility-copy,.ah-demo-copy,.ah-component-grid,.ah-journal-grid,.ah-contact-band) h2 {
  font-size: clamp(31px,3.15vw,46px);
  line-height: 1.25;
}

html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar.home.page-id-990063 .atlas-home :is(.ah-button,.ah-text-link,.ah-range-links a,.ah-article-list a) {
  direction: rtl;
  text-align: right;
}

html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar.home.page-id-990063 .atlas-home :is(.ah-stats dd,.ah-demo-number,.ah-model,.ah-stage-caption strong) {
  direction: ltr;
  unicode-bidi: isolate;
}

/* -------------------------------------------------------------------------
 * About Us.
 * ---------------------------------------------------------------------- */
html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar.page-id-15 .atlas-about {
  direction: rtl;
  text-align: right;
}

html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar.page-id-15 .atlas-about h1 {
  font-size: clamp(50px,6.1vw,88px);
  line-height: 1.16;
}

html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar.page-id-15 .atlas-about h2 {
  font-size: clamp(34px,4.2vw,60px);
  line-height: 1.25;
}

html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar.page-id-15 .atlas-about :is(.aa-link,.aa-line-link,.aa-button,.aa-close-button) {
  direction: rtl;
  text-align: right;
}

html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar.page-id-15 .atlas-about :is(.aa-small-line,.aa-number,.aa-warranty-number) {
  unicode-bidi: plaintext;
}

html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar.page-id-15 .atlas-about :is(.aa-process-list li > span,.aa-warranty-number) {
  direction: ltr;
  unicode-bidi: isolate;
}

/* -------------------------------------------------------------------------
 * Atlas Journal hub.
 * ---------------------------------------------------------------------- */
html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar.page-id-990012 .aj-journal {
  direction: rtl;
  text-align: right;
}

html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar.page-id-990012 .aj-journal .aj-hero-h1 {
  font-size: clamp(52px,6.75vw,96px);
  line-height: 1.08;
}

html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar.page-id-990012 .aj-journal h2 {
  font-size: clamp(30px,3.5vw,56px);
  line-height: 1.24;
}

html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar.page-id-990012 .aj-journal :is(.aj-hero-aside,.aj-record-intro) {
  border-left: 0;
  border-inline-start: 2px solid var(--aj-gold);
  padding-left: 0;
  padding-inline-start: 27px;
}

html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar.page-id-990012 .aj-journal :is(a,.aj-hero-description,.aj-hero-strap,.aj-evidence-disclaimer) {
  direction: rtl;
  text-align: right;
  unicode-bidi: plaintext;
}

/* -------------------------------------------------------------------------
 * One approved Journal article.
 * ---------------------------------------------------------------------- */
html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar.postid-990229 .aj-article {
  direction: rtl;
  text-align: right;
}

html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar.postid-990229 .aj-article .aj-intro h1 {
  font-size: clamp(38px,4vw,52px);
  line-height: 1.2;
}

html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar.postid-990229 .aj-article :is(.aj-process-top,.aj-section-head,.aj-brief,.aj-related-header,.aj-closing) h2 {
  font-size: clamp(28px,3vw,44px);
  line-height: 1.3;
}

html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar.postid-990229 .aj-article .aj-evidence-block h3 {
  font-size: clamp(26px,2.4vw,34px);
  line-height: 1.3;
}

html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar.postid-990229 .aj-article .aj-intro-aside {
  border-left: 0;
  border-inline-start: 1px solid var(--aj-gold);
  padding-left: 0;
  padding-inline-start: 27px;
}

html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar.postid-990229 .aj-article .aj-brief {
  border-left: 0;
  border-inline-start: 3px solid var(--aj-gold);
}

html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar.postid-990229 .aj-article :is(.aj-breadcrumbs,.aj-kicker,.aj-lede,.aj-copy,.aj-toc,.aj-faq,.aj-related-card,figcaption) {
  direction: rtl;
  text-align: right;
  unicode-bidi: plaintext;
}

html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar.postid-990229 .aj-article .aj-data-table :is(th,td,caption) {
  direction: rtl;
  text-align: right;
  unicode-bidi: plaintext;
}

html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar.postid-990229 .aj-article :is(a[href*="doi.org"],a[href^="mailto:"],code) {
  direction: ltr;
  unicode-bidi: isolate;
}

/* -------------------------------------------------------------------------
 * Contact.
 * ---------------------------------------------------------------------- */
html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar.page-id-27 .atlas-contact {
  direction: rtl;
  text-align: right;
}

html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar.page-id-27 .atlas-contact .ac-hero h1 {
  font-size: clamp(46px,4.6vw,66px);
  line-height: 1.18;
}

html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar.page-id-27 .atlas-contact h2 {
  font-size: clamp(30px,3.5vw,50px);
  line-height: 1.26;
}

html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar.page-id-27 .atlas-contact h3 {
  font-size: clamp(23px,2.3vw,34px);
  line-height: 1.3;
}

html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar.page-id-27 .atlas-contact :is(.ac-button,.ac-text-link,.ac-path-card-footer a,.ac-direct-bottom,.ac-faq-item,.ac-field) {
  direction: rtl;
  text-align: right;
}

html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar.page-id-27 .atlas-contact :is(.ac-direct-value[href^="mailto:"],.ac-direct-value[href^="tel:"]) {
  direction: ltr;
  text-align: left;
  unicode-bidi: isolate;
}

/* -------------------------------------------------------------------------
 * CCL300 — prose is RTL; machinery, process arrows and imagery remain as-is.
 * ---------------------------------------------------------------------- */
html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar.postid-990241 .atlas-ccl300 {
  direction: rtl;
  text-align: right;
}

html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar.postid-990241 .atlas-ccl300 .hero h1 {
  font-size: clamp(44px,4.2vw,60px);
  line-height: 1.15;
}

html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar.postid-990241 .atlas-ccl300 .section h2 {
  font-size: clamp(30px,3.2vw,46px);
  line-height: 1.28;
}

html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar.postid-990241 .atlas-ccl300 :is(a,button,.jump a,.proposal-form label) {
  direction: rtl;
  text-align: right;
}

html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar.postid-990241 .atlas-ccl300 .table-scroll :is(th,td) {
  direction: rtl;
  text-align: right;
  unicode-bidi: plaintext;
}

/* The four value rows below are purely technical in the approved CCL300
 * specification table. Mixed Arabic/technical rows are deliberately excluded. */
html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar.postid-990241 .atlas-ccl300 .table-scroll thead th,
html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar.postid-990241 .atlas-ccl300 .table-scroll tbody tr:is(:nth-child(1),:nth-child(2),:nth-child(5),:nth-child(6)) > td {
  direction: ltr;
  text-align: left;
  unicode-bidi: isolate;
}

html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar.postid-990241 .atlas-ccl300 .atlas-production-lines-grid :is(thead th,tbody th) {
  direction: rtl;
  text-align: right;
  unicode-bidi: plaintext;
}

html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar.postid-990241 .atlas-ccl300 .atlas-production-lines-grid tbody td:is(:nth-child(1),:nth-child(3),:nth-child(5),:nth-child(6),:nth-child(7)) {
  direction: ltr;
  text-align: left;
  unicode-bidi: isolate;
}

html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar.postid-990241 .atlas-ccl300 .atlas-production-lines-grid tbody td:nth-child(4) {
  direction: rtl;
  text-align: right;
  unicode-bidi: plaintext;
}

html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar.postid-990241 .atlas-ccl300 :is(.hero-model,.hero-stats strong,.process-timeline .step > span,.model-code,.technical-number,.spec-value) {
  direction: ltr;
  unicode-bidi: isolate;
}

/* -------------------------------------------------------------------------
 * PMWF70 — retain the approved LTR media/grid geometry, repair text only.
 * ---------------------------------------------------------------------- */
html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar.postid-990331 .atlas-packaging :where(
  h1,h2,h3,h4,p,li,dt,figcaption,summary,label,.pm-breadcrumb a,
  .pm-model-description,.pm-lead,.pm-note,.pm-text-link,.pm-jump-links a,
  .pm-button,.pm-card-foot a
) {
  direction: rtl;
  text-align: right;
  unicode-bidi: plaintext;
  letter-spacing: normal;
}

html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar.postid-990331 .atlas-packaging .pm-model {
  direction: ltr;
  unicode-bidi: isolate;
  font-size: clamp(56px,7.04vw,99px);
  letter-spacing: -.055em;
}

html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar.postid-990331 .atlas-packaging .pm-model-description {
  font-size: clamp(21px,2.1vw,28px);
  line-height: 1.45;
}

html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar.postid-990331 .atlas-packaging .pm-section h2 {
  font-size: clamp(29px,2.9vw,44px);
  line-height: 1.3;
}

html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar.postid-990331 .atlas-packaging .pm-stats dt {
  direction: rtl;
  text-align: right;
}

html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar.postid-990331 .atlas-packaging .pm-stats dd {
  direction: ltr;
  text-align: left;
  unicode-bidi: isolate;
}

/* Values and explanatory copy are separate nodes. plaintext selects the base
 * direction from each node; no mixed Arabic table cell is forced to LTR. */
html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar.postid-990331 .atlas-packaging :is(.pm-spec-table td > strong,.pm-spec-table td > small,.pm-card-specs dd) {
  display: block;
  unicode-bidi: plaintext;
}

html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar.postid-990331 .atlas-packaging .pm-spec-table :is(th,td) {
  direction: rtl;
  text-align: right;
  unicode-bidi: plaintext;
}

html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar.postid-990331 .atlas-packaging .pm-card-specs dd {
  direction: rtl;
  text-align: right;
  unicode-bidi: plaintext;
}

html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar.postid-990331 .atlas-packaging :is(.pm-process-number,.pm-card-index,.pm-format-word) {
  direction: ltr;
  unicode-bidi: isolate;
}

@media (max-width: 780px) {
  html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar:is(
    .home.page-id-990063,
    .page-id-15,
    .page-id-990012,
    .postid-990229,
    .page-id-27,
    .postid-990241,
    .postid-990331
  ) :where(p,li,figcaption,summary,label,a,button) {
    overflow-wrap: anywhere;
  }

  html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar.postid-990331 .atlas-packaging .pm-model {
    font-size: clamp(46px,11.6vw,64px);
  }
}

@media (max-width: 520px) {
  html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar:is(
    .home.page-id-990063,
    .page-id-15,
    .page-id-990012,
    .postid-990229,
    .page-id-27,
    .postid-990241,
    .postid-990331
  ) .at-footer .at-invitation h2 {
    font-size: clamp(38px,10vw,50px);
  }
}

/* -------------------------------------------------------------------------
 * Phase two — published Arabic sitemap coverage.
 *
 * AMM continues to own routing and html lang/dir. These rules do not mirror
 * media, machinery, diagrams or layout grids. They correct textual flow only.
 * ---------------------------------------------------------------------- */
html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar {
  --atlas-ar-font: "Noto Sans Arabic Variable", "Helvetica Neue", Arial, sans-serif;
}

html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar :where(
  h1,h2,h3,h4,h5,h6,p,li,dt,dd,blockquote,figcaption,summary,
  label,button,input,textarea,select,
  .at-nav-link,.at-project-link,.at-kicker,.eyebrow,
  .aa-kicker,.aa-eyebrow,.aa-link,
  .aj-mono,.aj-kicker,.pm-kicker,.pm-text-link
) {
  font-family: var(--atlas-ar-font);
}

html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar :where(
  h1,h2,h3,h4,h5,h6,p,li,dt,blockquote,figcaption,summary,label,button
) {
  direction: rtl;
  text-align: right;
  letter-spacing: normal;
  unicode-bidi: plaintext;
}

html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar :is(h1,h2) {
  letter-spacing: normal;
  overflow-wrap: break-word;
}

/* The seven phase-one pages currently render H1/H2 at zoom:1. Their new
 * final factor is therefore .6. Every other Arabic page currently inherits
 * AMM's .8 factor, so .48 is the direct replacement (.48 / .8 = .6).
 * No font-size declaration or responsive clamp() is replaced here. */
html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar:is(
  .home.page-id-990063,
  .page-id-15,
  .page-id-990012,
  .postid-990229,
  .page-id-27,
  .postid-990241,
  .postid-990331
) :is(h1,h2) {
  zoom: .6;
}

html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar:not(:is(
  .home.page-id-990063,
  .page-id-15,
  .page-id-990012,
  .postid-990229,
  .page-id-27,
  .postid-990241,
  .postid-990331
)) :is(h1,h2) {
  zoom: .48;
}

/* Shared shell and controls. */
html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar .at-shell {
  direction: rtl;
  text-align: start;
}

html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar .at-header :is(
  .at-nav-link,.at-products > summary,.at-project-link,.at-mobile-menu > summary,.at-mobile-panel a
) {
  direction: rtl;
  text-align: right;
  letter-spacing: normal;
}

html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar .at-header .at-nav-link::after {
  transform-origin: right;
}

html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar .at-header .at-dropdown {
  right: -26px;
  left: auto;
  text-align: right;
}

html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar .at-footer :is(
  .at-invitation,.at-footer-grid,.at-bottom,.at-footer-nav,.at-contact-note,.at-origin,
  .at-conversation,.at-footer-contact
) {
  direction: rtl;
  text-align: right;
  unicode-bidi: plaintext;
}

html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar .at-footer :is(
  .at-mail,.at-footer-contact bdi
) {
  direction: ltr;
  unicode-bidi: isolate;
}

html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar :where(
  input:not([type="email"]):not([type="tel"]):not([type="url"]):not([type="number"]),
  textarea,select
) {
  direction: rtl;
  text-align: right;
}

html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar :where(
  input[type="email"],input[type="tel"],input[type="url"],input[type="number"]
) {
  direction: ltr;
  text-align: left;
  unicode-bidi: isolate;
}

/* Journal articles share one renderer; the phase-one article remains the
 * reference and receives the same flow and border treatment. */
html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar.single-post .aj-article {
  direction: rtl;
  text-align: right;
}

html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar.single-post .aj-article .aj-intro-aside {
  border-left: 0;
  border-inline-start: 1px solid var(--aj-gold);
  padding-left: 0;
  padding-inline-start: 27px;
}

html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar.single-post .aj-article .aj-brief {
  border-left: 0;
  border-inline-start: 3px solid var(--aj-gold);
}

html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar.single-post .aj-article :is(
  .aj-breadcrumbs,.aj-kicker,.aj-lede,.aj-copy,.aj-toc,.aj-faq,.aj-related-card,figcaption
) {
  direction: rtl;
  text-align: right;
  unicode-bidi: plaintext;
}

html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar.single-post .aj-article .aj-data-table :is(
  th,td,caption
) {
  direction: rtl;
  text-align: right;
  unicode-bidi: plaintext;
}

html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar.single-post .aj-article :is(
  a[href*="doi.org"],a[href^="mailto:"],code
) {
  direction: ltr;
  unicode-bidi: isolate;
}

/* Production-line pages: prose and labels are RTL. Shared technical columns
 * and explicitly named numeric/model nodes stay LTR; mixed cells stay natural. */
html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar.single-production_line .atlas-ccl300 :is(
  a,button,.jump a,.proposal-form label
) {
  direction: rtl;
  text-align: right;
}

html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar.single-production_line .atlas-ccl300 .table-scroll :is(
  th,td
) {
  direction: rtl;
  text-align: right;
  unicode-bidi: plaintext;
}

html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar.single-production_line .atlas-ccl300 .atlas-production-lines-grid :is(
  thead th,tbody th
) {
  direction: rtl;
  text-align: right;
  unicode-bidi: plaintext;
}

html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar.single-production_line .atlas-ccl300 .atlas-production-lines-grid tbody td:is(
  :nth-child(1),:nth-child(3),:nth-child(5),:nth-child(6),:nth-child(7)
) {
  direction: ltr;
  text-align: left;
  unicode-bidi: isolate;
}

html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar.single-production_line .atlas-ccl300 .atlas-production-lines-grid tbody td:nth-child(4) {
  direction: rtl;
  text-align: right;
  unicode-bidi: plaintext;
}

html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar.single-production_line .atlas-ccl300 :is(
  .hero-model,.hero-stats strong,.process-timeline .step > span,.model-code,.technical-number,.spec-value
) {
  direction: ltr;
  unicode-bidi: isolate;
}

/* Packaging hub and machine pages: text flow changes, but all media and card
 * geometry retain their existing order. */
html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar .atlas-packaging :where(
  h1,h2,h3,h4,p,li,dt,figcaption,summary,label,.pm-breadcrumb a,
  .pm-model-description,.pm-lead,.pm-note,.pm-text-link,.pm-jump-links a,
  .pm-button,.pm-card-foot a,.pm-card-system,.pm-family-tag,.pm-showcase-note
) {
  direction: rtl;
  text-align: right;
  unicode-bidi: plaintext;
  letter-spacing: normal;
}

html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar.single-packaging_machine .atlas-packaging .pm-stats dt {
  direction: rtl;
  text-align: right;
}

html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar.single-packaging_machine .atlas-packaging .pm-stats dd {
  direction: ltr;
  text-align: left;
  unicode-bidi: isolate;
}

html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar.single-packaging_machine .atlas-packaging :is(
  .pm-spec-table td > strong,.pm-spec-table td > small,.pm-card-specs dd
) {
  display: block;
  unicode-bidi: plaintext;
}

html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar.single-packaging_machine .atlas-packaging .pm-spec-table :is(
  th,td
) {
  direction: rtl;
  text-align: right;
  unicode-bidi: plaintext;
}

html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar.single-packaging_machine .atlas-packaging .pm-card-specs dd {
  direction: rtl;
  text-align: right;
  unicode-bidi: plaintext;
}

html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar .atlas-packaging :is(
  .pm-model,.pm-process-number,.pm-card-index,.pm-format-word,.pm-spec-value,.pm-spec-unit,.pm-portfolio-numbers strong
) {
  direction: ltr;
  unicode-bidi: isolate;
}

/* Remaining shared page types. Only textual nodes are addressed; layout
 * containers, images, diagrams and equipment sequences are untouched. */
html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar .a360v3 :where(
  a,button,.a360v3-kicker,.a360v3-text,.a360v3-section-top,.a360v3-library-item span
),
html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar.atlas-production-hub .atlas-hub :where(
  a,button,.eyebrow,.hero-copy,.jump-label,.capacity-label,.mode-label,.model-name,.variant-kind,.special-name,.family-note,.table-note
),
html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar .atlas-projects :where(
  a,button,.eyebrow,.opening-copy,.video-kind,.video-description,.video-fact,.expand-action,.pending-pill,.preview-note
) {
  direction: rtl;
  text-align: right;
  unicode-bidi: plaintext;
  letter-spacing: normal;
}

html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar.atlas-production-hub .atlas-hub :is(
  .model-code,.card-index,.output,.variant-output,.special-output,.capacity-cell,.hero-facts strong
) {
  direction: ltr;
  unicode-bidi: isolate;
}

html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar.atlas-production-hub .atlas-hub .comparison-scroll :is(
  th,td,caption
) {
  direction: rtl;
  text-align: right;
  unicode-bidi: plaintext;
}

html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar.atlas-production-hub .atlas-hub .comparison-scroll :is(
  th strong,.capacity-cell
) {
  direction: ltr;
  unicode-bidi: isolate;
}

@media (max-width: 780px) {
  html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar :where(
    p,li,figcaption,summary,label,a,button
  ) {
    overflow-wrap: anywhere;
  }
}

/* -------------------------------------------------------------------------
 * 1.5.8 — Arabic type completion and verified text-flow corrections.
 *
 * The local font contains Arabic glyphs only. Latin model names, units and
 * identifiers therefore continue to fall through to the established Atlas
 * sans stack. These selectors cover semantic inline/table text that the
 * component styles set explicitly after their container font declarations.
 * ---------------------------------------------------------------------- */
html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar :where(
  a,span,strong,small,em,b,time,address,th,td,caption
) {
  font-family: var(--atlas-ar-font);
}

/* Put the Arabic navigation at the far right and the logo at the far left.
 * Direction is restored on each navigation surface so link order and reading
 * flow stay RTL; only the two header regions exchange physical sides. */
html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar .at-header .at-bar {
  direction: ltr;
}

html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar .at-header :is(
  .at-desktop-nav,.at-mobile-menu
) {
  direction: rtl;
}

@media (min-width: 1121px) {
  html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar .at-header .at-desktop-nav {
    margin-left: auto;
    margin-right: 0;
  }
}

/* ATLAS 360 uses local font shorthands on its inline labels. Correct only
 * text-bearing nodes: no grid, image, diagram or equipment order is mirrored. */
html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar .a360v3 .a360v3-kicker,
html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar .a360v3 :where(
  a,span,strong,small,em
) {
  font-family: var(--atlas-ar-font);
  direction: rtl;
  text-align: right;
  unicode-bidi: plaintext;
  letter-spacing: normal;
}

/* Pure identifiers and figures remain isolated LTR inside the Arabic copy. */
html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar .a360v3 :is(
  .a360v3-photo-number,
  .a360v3-nav-id,
  .a360v3-metric > strong,
  .a360v3-support-signal > span,
  .a360v3-warranty-mark > span
) {
  direction: ltr;
  unicode-bidi: isolate;
}

/* The fifth Production Lines comparison column is translated process prose,
 * not a numeric/model column. The surrounding technical columns stay LTR. */
html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar.single-production_line .atlas-ccl300 .atlas-production-lines-grid tbody td:nth-child(5) {
  direction: rtl;
  text-align: right;
  unicode-bidi: plaintext;
}

/* Some packaging statistics are translated descriptions rather than numbers.
 * plaintext keeps embedded models/units in their natural LTR runs without
 * forcing the whole mixed cell to LTR. */
html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar.single-packaging_machine .atlas-packaging .pm-stats dd {
  direction: rtl;
  text-align: right;
  unicode-bidi: plaintext;
}

/* Component selectors with ID-level or repeated class specificity need an
 * equally scoped Arabic font override; no sizing or layout is changed. */
html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar.home .atlas-home-content #packaging .packaging-speed-metric span,
html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar.single-post .aj-article :is(
  .aj-aside-bottom,.aj-record-verdict,.aj-evidence-foot,.aj-method-note,.aj-unpublished
),
html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar .atlas-contact :is(
  .ac-route-board-footer,.ac-index,.ac-side-index,.ac-address-label,.ac-visit-note
),
html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar.single-production_line .atlas-ccl300 :is(
  #customer-projects-and-production-videos,
  [data-atlas-kind="videos"],
  [data-atlas-kind="projects"]
) .atlas-video-collection :where(h3,.video-kind) {
  font-family: var(--atlas-ar-font);
}

/* -------------------------------------------------------------------------
 * 1.5.9 — verified RTL container placement and Arabic header states.
 *
 * Text alignment was already RTL in 1.5.8, but a small set of text-only
 * Grid/Flex containers still used LTR auto-placement. Reverse only those
 * containers. Media grids, machinery order, process diagrams and technical
 * tables remain untouched.
 * ---------------------------------------------------------------------- */

/* Packaging pages: headings, family markers, text controls and text-only
 * cards start from the physical right. Product-card and media grids keep
 * their established LTR equipment order. */
html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar .atlas-packaging :is(
  .pm-breadcrumb,
  .pm-hero-title,
  .pm-jump > .pm-wrap,
  .pm-jump-links,
  .pm-family-head,
  .pm-section-head,
  .pm-faq-layout,
  .pm-card-top,
  .pm-card-foot,
  .pm-applications > div,
  .pm-film-note,
  .pm-machine-note,
  .pm-buttons
) {
  direction: rtl;
}

html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar .atlas-packaging .pm-family-index {
  direction: ltr;
  text-align: right;
  unicode-bidi: isolate;
}

html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar .atlas-packaging .pm-applications > div > span:first-child {
  direction: ltr;
  unicode-bidi: isolate;
}

/* Production Lines Hub: move textual heading/marker containers to the RTL
 * side without reversing model cards, machine imagery or the process path. */
html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar.atlas-production-hub :is(
  .hero-top,
  .hero-actions,
  .hub-jump > .hub-wrap,
  .family-head,
  .series-heading,
  .card-bottom
) {
  direction: rtl;
}

html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar.atlas-production-hub .section-count {
  direction: ltr;
  text-align: right;
  unicode-bidi: isolate;
}

/* Contact cards use a textual label plus an arrow; mirror that control only. */
html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar .atlas-contact .ac-direct-top {
  direction: rtl;
}

/* Unified Arabic desktop navigation states. Production Lines Hub previously
 * disabled the underline entirely, and the dropdown summary inherited a
 * permanent gold color. An open dropdown is an interaction state only; the
 * current page/section is derived independently below. */
html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar .at-header :is(
  .at-nav-link,
  .at-products > summary
) {
  color: var(--at-ink);
}

html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar .at-header .at-desktop-nav > .at-nav-link::after,
html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar .at-header .at-desktop-nav > .at-products > summary::after {
  content: "";
  display: block;
  position: absolute;
  right: 0;
  bottom: 6px;
  left: 0;
  height: 1px;
  background: var(--at-gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .2s;
}

html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar .at-header .at-desktop-nav > .at-nav-link:is(:hover,:focus-visible,:active)::after,
html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar .at-header .at-desktop-nav > .at-products > summary:is(:hover,:focus-visible,:active)::after,
html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar .at-header .at-desktop-nav > .at-products[open] > summary::after {
  transform: scaleX(1);
}

/* Current-section color. aria-current remains supported if the navigation
 * provider adds it later; current output is matched by Arabic page context
 * and route suffix, never by dropdown open state. */
html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar .at-header .at-nav-link[aria-current],
html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar.home .at-header .at-nav-link[href$="/ar/"],
html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar:is(.atlas-production-hub,.single-production_line) .at-header .at-nav-link[href$="/production-lines/"],
html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar.atlas-packaging-page .at-header .at-nav-link[href$="/packaging-machines/"],
html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar:has(.a360v3) .at-header .at-nav-link[href$="/atlas-360/"],
html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar:has(.atlas-projects) .at-header .at-nav-link[href$="/projects/"],
html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar:is(.single-post,:has(.aj-journal)) .at-header .at-nav-link[href$="/blog/"],
html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar:has(.atlas-about) .at-header .at-nav-link[href$="/about-us/"],
html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar:has(.atlas-contact) .at-header .at-nav-link[href$="/contact-us/"] {
  color: var(--at-gold);
}

html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar.home .at-header .at-mobile-panel a[href$="/ar/"],
html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar:is(.atlas-production-hub,.single-production_line) .at-header .at-mobile-panel a[href$="/production-lines/"],
html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar.atlas-packaging-page .at-header .at-mobile-panel a[href$="/packaging-machines/"],
html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar:has(.a360v3) .at-header .at-mobile-panel a[href$="/atlas-360/"],
html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar:has(.atlas-projects) .at-header .at-mobile-panel a[href$="/projects/"],
html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar:is(.single-post,:has(.aj-journal)) .at-header .at-mobile-panel a[href$="/blog/"],
html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar:has(.atlas-about) .at-header .at-mobile-panel a[href$="/about-us/"],
html[lang="ar"][dir="rtl"] body.atlas-amm-language.atlas-amm-lang-ar:has(.atlas-contact) .at-header .at-mobile-panel a[href$="/contact-us/"] {
  color: var(--at-gold);
}
