/* Right-to-left fixes for ar/industry-manufacturing.html (everything inside <main class="sol">).
   Load after css/teradix-rtl.css. Every selector starts with [dir="rtl"].
   The grids and flex rows follow the direction on their own; this file only swaps what is
   physical (margins, paddings, the text arrow) and gives Arabic the line-height it needs.
   The illustrations (.ill) change side with their column and are never flipped. */

/* ── type: Arabic needs more leading than the Latin values ──────────────── */
[dir="rtl"] .sol .sol-hero h1{line-height:var(--lh-ar-h1);max-width:16ch}
[dir="rtl"] .sol .sol-hero .lead{line-height:1.75}
[dir="rtl"] .sol .sect-head .lead,
[dir="rtl"] .sol .sol-proof .sect-head .lead,
[dir="rtl"] .sol .sol-cta .lead{line-height:1.75}
[dir="rtl"] .sol .sol-link{line-height:var(--lh-ar-ui)}
[dir="rtl"] .sol .sol-prob h3,
[dir="rtl"] .sol .sol-ans h3{line-height:var(--lh-ar-h3)}
[dir="rtl"] .sol .sol-prob p,
[dir="rtl"] .sol .sol-ans p{line-height:var(--lh-ar-copy)}
[dir="rtl"] .sol .sol-nums span,
[dir="rtl"] .sol .sol-facts,
[dir="rtl"] .sol .sol-also__c span,
[dir="rtl"] .sol .sol-proof__note,
[dir="rtl"] .sol .sol-sec{line-height:1.75}
[dir="rtl"] .sol .sol-also__c b{line-height:var(--lh-ar-h3)}
[dir="rtl"] .sol .sol-also__c i{line-height:var(--lh-ar-ui)}

/* ── the answers ───────────────────────────────────────────────────────── */
/* "تعالج المشكلة 01": the number follows the words, so its gap moves to the right */
[dir="rtl"] .sol .sol-ans__tag{line-height:var(--lh-ar-ui);font-size:13px}
[dir="rtl"] .sol .sol-ans__tag b{margin-left:0;margin-right:6px}

/* the remaining module: label gap and the icon side of the pill */
[dir="rtl"] .sol .sol-mods__h{margin-right:0;margin-left:8px;line-height:var(--lh-ar-ui)}
[dir="rtl"] .sol .sol-mod{padding:7px 7px 7px 16px;line-height:var(--lh-ar-ui)}

/* ── proof band: figures stay in their Latin order (<bdi> in the markup) ── */
[dir="rtl"] .sol .sol-nums b{letter-spacing:0}
[dir="rtl"] .sol .sol-proof h2{max-width:26ch}

/* the Modern Bakeries card: the gradient is decorative and stays; only the type is lifted */
[dir="rtl"] .sol .sol-story__who span{line-height:var(--lh-ar-ui);font-size:13px;padding:5px 12px}
[dir="rtl"] .sol .sol-story h3{line-height:var(--lh-ar-h3);max-width:26ch}
[dir="rtl"] .sol .sol-story p{line-height:var(--lh-ar-copy)}
[dir="rtl"] .sol .sol-story__pts b{line-height:var(--lh-ar-h3);letter-spacing:0}
[dir="rtl"] .sol .sol-story__pts span{line-height:1.75}

/* ── on top of your ERP ────────────────────────────────────────────────── */
/* system names are Latin: keep their line box tight so the pills stay the English height */
[dir="rtl"] .sol .sol-chips li{line-height:1}

/* ── the other pages: the text arrow is a glyph, so it is swapped, not mirrored ── */
[dir="rtl"] .sol .sol-also__c i::after{content:" \2190"}

/* ── hero drawing: its three source labels (ERP, Email, Files) are outlined inside the SVG ──
   "ERP" stays Latin. The picture is never flipped and cannot be edited here, so the two
   English words are cut away (a static clip that follows the edge of each platform, nothing
   animates) and the Arabic words are set in HTML on the same spots, ending where the English
   ones ended. Positions are physical on purpose: they follow the drawing, not the page. */
[dir="rtl"] .sol .sol-hero__art{position:relative;container-type:inline-size}
[dir="rtl"] .sol .sol-hero__art img{clip-path:polygon(0 0,100% 0,100% 100%,0 100%,
  0 90.9%,14% 90.9%,14% 84%,0 84%,
  0 59.6%,7.9% 59.6%,10.4% 56.8%,10.4% 51%,0 51%)}
[dir="rtl"] .sol .sol-hero__src{position:absolute;inset:0;margin:0;padding:0;list-style:none;pointer-events:none;
  font:600 clamp(10px,2.7cqw,17px)/1 var(--display);color:#fff}
[dir="rtl"] .sol .sol-hero__src li{position:absolute;white-space:nowrap;transform:translateY(-50%)}
[dir="rtl"] .sol .sol-hero__src li:nth-child(1){right:90.4%;top:55.6%}
[dir="rtl"] .sol .sol-hero__src li:nth-child(2){right:86.4%;top:88%}
