/* Right-to-left fixes for ar/industry-real-estate.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 each 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}

/* ── 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 step names (Procurement, Technical, Finance) are outlined
   inside the SVG. The picture is never flipped and cannot be edited here, so the three
   English words are cut away (a static clip, nothing animates) and the same names are set
   in HTML on the same spots, each ending where the English word ended, next to its block.
   "ERP" stays as drawn. Positions are physical on purpose: they follow the drawing, not
   the page. Sizes follow the drawing's own width (container units, with a vw fallback). */
[dir="rtl"] .sol .sol-hero__art{position:relative;container-type:inline-size}
[dir="rtl"] .sol .sol-hero__art img{clip-path:polygon(evenodd,
  0 0,100% 0,100% 100%,0 100%,0 0,
  3.6% 38.2%,25.8% 38.2%,25.8% 43.8%,3.6% 43.8%,3.6% 38.2%,0 0,
  24% 51.2%,40.6% 51.2%,40.6% 56.8%,24% 56.8%,24% 51.2%,0 0,
  43% 64.4%,56.8% 64.4%,56.8% 70%,43% 70%,43% 64.4%,0 0)}
[dir="rtl"] .sol .sol-hero__steps{position:absolute;inset:0;margin:0;padding:0;list-style:none;pointer-events:none}
[dir="rtl"] .sol .sol-hero__steps li{position:absolute;white-space:nowrap;transform:translateY(-50%);
  font:500 clamp(12px,1.5vw,22px)/1.5 var(--body);color:#fff}
@supports (font-size:1cqw){
  [dir="rtl"] .sol .sol-hero__steps li{font-size:max(12px,3.5cqw)}
}
[dir="rtl"] .sol .sol-hero__steps li:nth-child(1){right:74.6%;top:40.6%}
[dir="rtl"] .sol .sol-hero__steps li:nth-child(2){right:59.8%;top:53.6%}
[dir="rtl"] .sol .sol-hero__steps li:nth-child(3){right:43.6%;top:66.8%}
