/* P1 v27 — Arabic layout corrections (scoped, geometry preserved). */
@media (min-width:981px){
  /* Field / Feed: each 3-line Arabic phrase lives in a dedicated readable poster zone. */
  html[lang="ar"] .field-feed-intro { padding-top:clamp(144px,17vh,184px); }
  html[lang="ar"] .field-feed-statement-wrap {
    width:min(690px,58vw)!important;
    height:clamp(270px,28vw,420px)!important;
    margin-right:0!important;
    margin-left:auto!important;
  }
  html[lang="ar"] .field-feed-statement{
    width:100%!important;
    max-width:100%!important;
    font-size:clamp(52px,5.05vw,84px)!important;
    line-height:1.24!important;
    text-align:right!important;
    right:0!important;
    left:auto!important;
  }
  html[lang="ar"] .field-feed-statement > span{white-space:nowrap!important;display:block;}
  html[lang="ar"] .field-feed-intro-copy{
    left:var(--gutter)!important;
    right:auto!important;
    width:min(360px,29vw)!important;
    text-align:right!important;
    bottom:clamp(64px,9vh,110px)!important;
  }
  /* Pinned logo roll: reserve separate vertical zones for Arabic heading and cards. */
  html[lang="ar"] .good-company-sticky{padding-top:clamp(76px,9vh,102px)!important;}
  html[lang="ar"] .good-company-intro h2{
    max-width:min(760px,57vw)!important;
    font-size:clamp(51px,5.1vw,84px)!important;
    line-height:1.28!important;
    letter-spacing:0!important;
    text-align:right!important;
    margin-left:auto!important;
    margin-right:0!important;
  }
  html[lang="ar"] .good-company-intro h2 em{
    font-style:normal!important;
    font-family:'IBM Plex Sans Arabic','Noto Kufi Arabic',sans-serif!important;
  }
  html[lang="ar"] .good-company-note{
    top:20px!important;bottom:auto!important;
    left:0!important;right:auto!important;
    width:min(285px,22vw)!important;
    font-size:clamp(11px,.8vw,13px)!important;
    line-height:1.6!important;
    text-align:right!important;
  }
  html[lang="ar"] .good-company-viewport{bottom:0!important;height:33vh!important;min-height:300px!important;margin-top:30px!important;}
  html[lang="ar"] .good-company-counter{bottom:calc(37vh + 16px)!important;}
}
html[lang="ar"] .field-feed-statement { word-break:keep-all!important; }
html[lang="ar"] .good-company-intro h2 {word-break:keep-all!important;overflow-wrap:normal!important;}
html[lang="ar"] .process-step-copy {direction:rtl;text-align:right;}
html[lang="ar"] .process-step-copy h3 {word-break:keep-all!important;line-height:1.2!important;letter-spacing:0!important;}
html[lang="ar"] .process-step-copy p {line-height:1.8!important;}
/* Work: keep Latin client names isolated from RTL punctuation reordering. */
html[lang="ar"] .work-readable-row strong,
html[lang="ar"] .work-readable-preview-type,
html[lang="ar"] .work-readable-preview [data-readable-title],
html[lang="ar"] .work-selected-card h3,
html[lang="ar"] .work-readable-row [data-title]{direction:ltr!important;unicode-bidi:isolate!important;}
html[lang="ar"] .work-readable-row strong {text-align:left!important;white-space:normal;line-height:1.08;}
html[lang="ar"] .work-readable-group-head,html[lang="ar"] .work-readable-row {line-height:1.4;}
html[lang="ar"] .work-readable-row > span:not(:first-child) {letter-spacing:0!important;line-height:1.5!important;}
html[lang="ar"] .work-readable-head p{line-height:1.8!important;}
@media (max-width:980px){
  html[lang="ar"] .good-company-intro h2{
    font-size:clamp(45px,8.4vw,76px)!important;
    line-height:1.27!important;
    letter-spacing:0!important;
    max-width:100%!important;
    margin:0!important;
    text-align:right!important;
  }
  html[lang="ar"] .good-company-note{
    position:static!important;display:block!important;
    margin-top:20px!important;width:min(460px,85vw)!important;text-align:right!important;
    font-size:12px!important;line-height:1.6!important;
  }
  html[lang="ar"] .good-company-viewport{bottom:auto!important;height:auto!important;min-height:0!important;margin-top:0!important;}
  html[lang="ar"] .field-feed-statement-wrap{width:100%!important;margin:0!important;}
  html[lang="ar"] .field-feed-statement{
    font-size:clamp(43px,10vw,75px)!important;
    line-height:1.23!important;
    text-align:right!important;
  }
  html[lang="ar"] .field-feed-intro-copy{width:min(360px,83vw)!important;left:auto!important;right:var(--gutter)!important;}
}
@media (max-width:560px){
  html[lang="ar"] .field-feed-statement{font-size:clamp(37px,9.5vw,52px)!important;}
  html[lang="ar"] .field-feed-statement > span{white-space:nowrap!important;}
  html[lang="ar"] .good-company-intro h2{font-size:clamp(39px,11vw,61px)!important;}
  html[lang="ar"] .process-step-copy h3{font-size:clamp(40px,9vw,63px)!important;}
}
