/* English (LTR) overrides: loaded only by the /en/ pages, after the inline CSS of each page. */

/* arrows: the shared icon (#arw) points left for RTL; flip it for LTR */
use[href="#arw"]{transform:scaleX(-1);transform-box:fill-box;transform-origin:center}
[dir="ltr"] .btn:hover .ar{transform:translateX(4px)}

/* headings: Latin text needs tighter leading and a smaller size than the Arabic design */
html[lang="en"] .h2,html[lang="en"] .ab-big{font-size:clamp(28px,3.5vw,46px);line-height:1.22}
html[lang="en"] .ab-team-h{font-size:clamp(24px,2.7vw,36px);line-height:1.25}
html[lang="en"] .hero.v-b .h1{font-size:clamp(32px,min(4.4vw,6.6svh),64px);line-height:1.18}
html[lang="en"] .hero.v-b .h1 .ln{white-space:normal}
html[lang="en"] .hero.v-b .hero-body{max-width:1000px}
html[lang="en"] .wp-h1,html[lang="en"] .tp-h1{line-height:1.15}
html[lang="en"] .bl-h1{line-height:1.25}
html[lang="en"] .svc-t{line-height:1.3}
@media (min-width:700px){
  html[lang="en"] .sec-head{grid-template-columns:minmax(0,1.6fr) minmax(0,1fr)}
}
@media (min-width:900px){
  html[lang="en"] .faq{grid-template-columns:minmax(0,5fr) minmax(0,7fr)}
}

/* project cards: category lines are longer in English, allow two lines */
html[lang="en"] .pj-txt span{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}

/* country list in the contact popup: dial code pushed to the end of the row */
[dir="ltr"] .cc-list li b{margin-right:0;margin-left:auto}

/* project popup: previous/next chevrons */
.pjm.en .pjm-nav.prev svg{transform:scaleX(-1)}
.pjm.en .pjm-nav.next svg{transform:none}

/* contact popup: the round arrow sits on the seam between the two panels (info panel first in LTR) */
[dir="ltr"] .join{left:calc((100% - 16px) * 1 / 2.15 + 8px)}

/* project popup (website projects): English descriptions are longer, allow three lines on wide screens */
@media (min-width:900px){
  .pjm.en.web .pjm-info .pjm-desc{-webkit-line-clamp:3}
}

/* header: English labels are wider; tighten the links and switch to the menu button earlier than the Arabic design */
html[lang="en"] .nav a{padding-inline:clamp(6px,.62vw,9px);font-size:14px}
html[lang="en"] .nav a.lang{margin-inline-start:4px}
@media (max-width:1279px){
  html[lang="en"] .nav{display:none}
  html[lang="en"] .menu-btn{display:grid}
  html[lang="en"] .float-hdr .btn.dark{margin-inline-start:auto}
}

/* Carina page: the Latin duplicate of the program name is redundant in English */
html[lang="en"] .cr-name span{display:none}
