/* Arabic presentation overrides. Load after site.css/presentation.css.
 * Set lang="ar" dir="rtl" on <html>. Keep scene/photo/sprite coordinates intact.
 * System Arabic-capable fonts keep the page independent of external font hosts.
 */
html[dir="rtl"] {
  --font: Tahoma, Arial, "Noto Sans Arabic", "DejaVu Sans", sans-serif;
  --head: Tahoma, Arial, "Noto Sans Arabic", "DejaVu Sans", sans-serif;
}
html[dir="rtl"] body { direction: rtl; text-align: start; line-height: 1.85; }
html[dir="rtl"] :is(h1,h2,h3,h4) { letter-spacing: normal; line-height: 1.5; }
html[dir="rtl"] :is(.eyebrow,.identity-label,.footer-heading,.category-label,.filter-panel summary,.world-prompt,.manufacturing-caption) {
  letter-spacing: normal; text-transform: none;
}
html[dir="rtl"] :is(p,li,.field,.language-list a,.filter,.solution-tab,.showcase-tab) { line-height: 1.85; }
html[dir="rtl"] :is(.solution-tab,.showcase-tab,.filter,.spec-table th,.spec-table td,.es-consent) { text-align: start; }
html[dir="rtl"] :is(.nav,.header-right,.language-wrap,.brief-intro,.detail-copy,.showcase-copy,.world-info,.footer-top,.editorial-content) { min-width: 0; }
html[dir="rtl"] :is(h1,h2,h3,.identity-label,.btn,.footer-links a,.product-card,.breadcrumb span) { overflow-wrap: anywhere; }
html[dir="rtl"] :is(.hero-copy h1,.world-intro h1,.page-head h1,.brief-intro h1,.solution-hero h1,.capability-hero h1) {
  font-size: clamp(36px,4.1vw,61px); line-height: 1.5;
}
html[dir="rtl"] .detail-copy h1 { font-size: clamp(30px,2.8vw,43px); }
html[dir="rtl"] :is(.world-info h2,.showcase-copy h3,.solution-card h2,.strength-item h3) { line-height: 1.6; }

/* Flex/grid use the inherited reading direction; move physical offsets only. */
html[dir="rtl"] .skip { left: auto; right: 12px; }
html[dir="rtl"] .nav { margin-left: 0; margin-right: auto; }
html[dir="rtl"] .header-right { margin-left: 0; margin-right: 19px; }
html[dir="rtl"] .identity-label { font-size: 12px; max-width: 185px; line-height: 1.65; }
html[dir="rtl"] .nav a { font-size: 14px; line-height: 1.7; }
html[dir="rtl"] .language-list { right: auto; left: 0; text-align: start; max-width: calc(100vw - 36px); }
html[dir="rtl"] .language-list a { unicode-bidi: plaintext; }
html[dir="rtl"] .solution-tab .arrow { margin-left: 0; margin-right: auto; }
html[dir="rtl"] .search-box svg { left: auto; right: 18px; }
html[dir="rtl"] .card-tag { left: auto; right: 12px; unicode-bidi: plaintext; }
html[dir="rtl"] .spec-table th { padding-right: 0; padding-left: 20px; }
html[dir="rtl"] .spec-table td { unicode-bidi: plaintext; }
html[dir="rtl"] .input-panel ul { padding-left: 0; padding-right: 17px; }
html[dir="rtl"] .cap-photo-secondary { right: auto; left: -20px; }
html[dir="rtl"] .cap-caption { left: auto; right: 0; }
html[dir="rtl"] .detail-media .visual-caption { left: auto; right: 15px; }
html[dir="rtl"] .family-image:after { right: auto; left: 14px; content: "↖"; }
html[dir="rtl"] .range-item { border-right: 0; border-left: 1px solid var(--line); }
html[dir="rtl"] .range-item:last-child { border-left: 0; }
html[dir="rtl"] .range-item strong span { margin-left: 0; margin-right: 7px; }
html[dir="rtl"] .wa-inline { margin-left: 0; margin-right: 12px; }
html[dir="rtl"] .wa-float { right: auto; left: 24px; }
html[dir="rtl"] .es-consent { left: auto; right: 20px; }
html[dir="rtl"] .section-navigation { right: auto; left: 20px; }
html[dir="rtl"] .section-navigation span { right: auto; left: 25px; }
html[dir="rtl"] .showcase-visual .visual-caption { right: auto; left: 20px; }
html[dir="rtl"] .manufacturing-thumbnails { right: auto; left: 7%; }
html[dir="rtl"] .strength-item { border-right: 0; border-left: 1px solid #ffffff35; }
html[dir="rtl"] .strength-item:first-child { padding-right: 0; padding-left: 33px; }
html[dir="rtl"] .strength-item:last-child { border-left: 0; padding-left: 0; padding-right: 33px; }

/* Mirror navigation glyphs, never product images, logos, QR codes or sprites. */
html[dir="rtl"] .arrow,
html[dir="rtl"] .showcase-product-link > span[aria-hidden="true"] svg { transform: scaleX(-1); }
html[dir="rtl"] :is(.cap-list li:before,.step-number:after) { content: "↖"; }

/* Shade the Arabic reading area without reflecting the background photograph.
 * Hotspot left/top coordinates still refer to the unmodified scene image.
 */
html[dir="rtl"] .world-scene:after {
  background: linear-gradient(270deg,#f1f7fbe6 0%,#f1f7fbb3 23%,transparent 54%),linear-gradient(0deg,#dcebf555,transparent 45%);
}
html[dir="rtl"] .manufacturing-world:after {
  background: linear-gradient(270deg,#032b4df5 2%,#032b4dd9 42%,#032b4d33 100%);
}
html[dir="rtl"] .world-hotspot { direction: ltr; text-align: right; }
html[dir="rtl"] .hotspot-label { direction: rtl; unicode-bidi: isolate; letter-spacing: normal; }

/* The URL/number is one LTR island inside an Arabic sentence. Use <bdi dir="ltr">
 * or .es-ltr for mixed model/capacity tokens supplied by the renderer.
 */
html[dir="rtl"] :is(a[href^="mailto:"],a[href^="tel:"],input[type="email"],input[type="tel"],input[type="url"],.es-ltr,[dir="ltr"]) {
  direction: ltr; unicode-bidi: isolate;
}
html[dir="rtl"] :is(a[href^="mailto:"],a[href^="tel:"],.es-ltr) { display: inline-block; }
html[dir="rtl"] :is(input[type="email"],input[type="tel"],input[type="url"]) { text-align: left; }
html[dir="rtl"] :is(.detail-tag,.card-tag,.result-count,.range-item strong,.scope-list li span,.showcase-number) { unicode-bidi: plaintext; }

@media (max-width:1180px) {
  html[dir="rtl"] .header-right { margin-right: 7px; }
  html[dir="rtl"] .identity-label { font-size: 11px; max-width: 165px; }
}
@media (max-width:1050px) {
  html[dir="rtl"] .strength-item:first-child { padding-left: 22px; }
  html[dir="rtl"] .strength-item:last-child { padding-right: 22px; }
}
@media (max-width:900px) {
  html[dir="rtl"] .header-right { margin-left: 0; margin-right: auto; }
  html[dir="rtl"] .nav { margin: 0; }
  html[dir="rtl"] .nav a { font-size: 17px; }
  html[dir="rtl"] .cap-photo-secondary { left: -10px; }
  html[dir="rtl"] .section-navigation { left: 10px; }
}
@media (max-width:800px) {
  html[dir="rtl"] :is(.strength-item,.strength-item:first-child,.strength-item:last-child) {
    padding: 23px 0; border-left: 0;
  }
}
@media (max-width:650px) {
  html[dir="rtl"] .header-inner { gap: 12px; }
  html[dir="rtl"] .identity { max-width: calc(100% - 100px); }
  html[dir="rtl"] .identity-label { max-width: 145px; font-size: 10px; }
  html[dir="rtl"] .header-right { gap: 14px; }
  html[dir="rtl"] :is(.hero-copy h1,.world-intro h1,.page-head h1,.brief-intro h1,.solution-hero h1,.capability-hero h1) {
    font-size: 35px; line-height: 1.55;
  }
  html[dir="rtl"] .detail-copy h1 { font-size: 30px; line-height: 1.6; }
  html[dir="rtl"] .manufacturing-content h2 { font-size: 29px; line-height: 1.65; }
  html[dir="rtl"] .showcase-heading h2 { font-size: 28px; line-height: 1.6; }
  html[dir="rtl"] .showcase-copy h3 { font-size: 26px; line-height: 1.65; }
  html[dir="rtl"] :is(.world-intro p,.brief-intro p,.solution-hero p,.capability-hero p,.detail-copy p,.privacy-page p,.editorial-content) { line-height: 1.95; }
  html[dir="rtl"] :is(.product-card h3,.family-card h3) { font-size: 14px; line-height: 1.8; }
  html[dir="rtl"] .family-card p { line-height: 1.9; }
  html[dir="rtl"] .showcase-tab { font-size: 11px; line-height: 1.85; padding: 12px 7px 15px; }
  html[dir="rtl"] .solution-card h2 { font-size: 20px; line-height: 1.65; }
  html[dir="rtl"] .range-item { padding-right: 0; padding-left: 8px; }
  html[dir="rtl"] .range-item strong span { margin: 0; }
  html[dir="rtl"] .cap-montage { margin-right: 0; margin-left: 8px; }
  html[dir="rtl"] .family-image:after { left: 9px; }
  html[dir="rtl"] .search-box svg { right: 15px; }
  html[dir="rtl"] .search-box input { padding-left: 14px; padding-right: 42px; }
  html[dir="rtl"] .card-tag { right: 9px; }
  html[dir="rtl"] .spec-table th { padding-left: 12px; }
  html[dir="rtl"] .wa-inline { margin-right: 0; }
  html[dir="rtl"] .wa-float { left: 18px; }
  html[dir="rtl"] .showcase-visual .visual-caption { left: 4px; }
  html[dir="rtl"] .world-scene:after { background: linear-gradient(0deg,#e3eff733,transparent 30%); }
  html[dir="rtl"] .manufacturing-world:after { background: linear-gradient(270deg,#032b4deb,#032b4d9c); }
}
@media (max-width:480px) {
  html[dir="rtl"] .es-consent { right: 12px; left: auto; }
}
