
/* FleetOS — authoritative Arabic and RTL layer */
html[dir="rtl"]{direction:rtl}
html[dir="rtl"] body{font-family:"Cairo","Segoe UI",Tahoma,"Noto Kufi Arabic",sans-serif;text-align:right}
html[dir="rtl"] .header-inner,html[dir="rtl"] .desktop-nav,html[dir="rtl"] .actions,html[dir="rtl"] .btns,html[dir="rtl"] .split,html[dir="rtl"] .sec-head,html[dir="rtl"] .card,html[dir="rtl"] .mini,html[dir="rtl"] .workflow,html[dir="rtl"] .footer,html[dir="rtl"] .footer-base{text-align:right}
html[dir="rtl"] .desktop-nav{margin-inline-start:auto;margin-inline-end:0}
html[dir="rtl"] .mega{left:auto;right:0;transform:none;max-width:min(760px,calc(100vw - 32px))}
html[dir="rtl"] .nav-item:last-of-type .mega{right:auto;left:0}
html[dir="rtl"] .mega.wide{right:clamp(-160px,-8vw,-24px)}
html[dir="rtl"] .hero-grid,html[dir="rtl"] .split,html[dir="rtl"] .solution-proof-grid{direction:rtl}
html[dir="rtl"] .v22-browser-bar,html[dir="rtl"] .v22-browser-view,html[dir="rtl"] .v22-phone img{direction:ltr}
html[dir="rtl"] .v22-browser-bar span{direction:ltr;text-align:left}
html[dir="rtl"] .product-triptych{direction:rtl}
html[dir="rtl"] .product-triptych .trip-device:nth-child(1){order:1}
html[dir="rtl"] .product-triptych .trip-device:nth-child(2){order:2}
html[dir="rtl"] .product-triptych .trip-device:nth-child(3){order:3}
html[dir="rtl"] .proof-grid,html[dir="rtl"] .solution-metrics,html[dir="rtl"] .trust-flow{direction:rtl}
html[dir="rtl"] .calc input,html[dir="rtl"] .calc select{text-align:right}
html[dir="rtl"] .footer .cols{direction:rtl}
html[dir="rtl"] .mobile-menu{text-align:right}
@media(max-width:1180px){html[dir="rtl"] .mega.wide{right:auto;left:auto}}

/* RTL component refinement */
html[dir="rtl"] .page-join-join-timeline .step:before{right:0;left:auto}html[dir="rtl"] .proof-card figcaption{text-align:right}html[dir="rtl"] .page-platform-platform-proof .proof-grid{direction:rtl}html[dir="rtl"] .inline-icon{margin-inline:0 .15em}

/* RTL workflow alignment */
html[dir="rtl"] .workflow .step{padding:20px 66px 20px 20px;min-width:0}
html[dir="rtl"] .workflow .step:before{right:20px;left:auto}
html[dir="rtl"] .page-academy-academy-progress .workflow,
html[dir="rtl"] body[data-solution="airport"] .workflow{grid-template-columns:repeat(5,minmax(0,1fr))}
@media(max-width:980px){
 html[dir="rtl"] .page-academy-academy-progress .workflow,
 html[dir="rtl"] body[data-solution="airport"] .workflow{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:640px){
 html[dir="rtl"] .page-academy-academy-progress .workflow,
 html[dir="rtl"] body[data-solution="airport"] .workflow{grid-template-columns:1fr}
}

/* Fleet Office Arabic typography */
html[dir="rtl"] body[data-page="dashboard"] .note{font-family:"Cairo","Segoe UI",Tahoma,"Noto Kufi Arabic",sans-serif;letter-spacing:0;line-height:1.8}

/* Keep RTL desktop mega menus inside the viewport */
@media(min-width:1001px){
  html[dir="rtl"] .desktop-nav .mega{
    position:fixed;
    top:72px;
    right:max(16px,calc((100vw - 1180px)/2));
    left:auto;
    width:min(720px,calc(100vw - 32px));
    max-width:calc(100vw - 32px);
    transform:none;
  }
}

/* v29 approved Arabic typography and bidirectional rules */
html[dir="rtl"] body{font-family:"Cairo","Segoe UI",Tahoma,"Noto Kufi Arabic",sans-serif;line-height:1.8}
html[dir="rtl"] h1,html[dir="rtl"] h2,html[dir="rtl"] h3{font-family:"Cairo","Segoe UI",Tahoma,sans-serif;line-height:1.6;letter-spacing:0}
html[dir="rtl"] p,html[dir="rtl"] .lede,html[dir="rtl"] .card p,html[dir="rtl"] .card li{line-height:1.85;letter-spacing:0}
html[dir="rtl"] .eyebrow{letter-spacing:0;text-transform:none}
html[dir="rtl"] .brand-pricing-row,html[dir="rtl"] .brand-calc-results .result-row{direction:rtl}
html[dir="rtl"] .brand-pricing-row span:not(:first-child),html[dir="rtl"] .brand-pricing-row strong:last-child,html[dir="rtl"] .brand-calc-results b{direction:ltr;unicode-bidi:isolate}
