/* Language-scoped typography: never alter the English geometry or animation. */
html[data-profile-locale=ar] [data-edition=editorial] [data-content-page] :where(h1,h2,h3,h4,p,label,legend,small,option,[class*="chapterLabel"],[class*="runningHead"] > span){
  direction:rtl;
  text-align:right;
  text-align-last:right;
  letter-spacing:normal;
  word-spacing:normal;
  hyphens:none;
  font-style:normal;
}
html[data-profile-locale=ar] [data-edition=editorial] [data-editorial-page] :is(h1,h2){font-size:clamp(1.15rem,2.25vw,2.5rem);line-height:1.5;}
html[data-profile-locale=ar] [data-edition=editorial] [data-editorial-page] :is(h1,h2) br{display:none;}
html[data-profile-locale=ar] [data-edition=editorial] [data-content-page] :is(h3,h4){line-height:1.5;font-weight:600;}
html[data-profile-locale=ar] [data-edition=editorial] [data-content-page] p{line-height:1.7;}
html[data-profile-locale=ar] [data-content-page] [class*="runningHead"]{direction:ltr;}
html[data-profile-locale=ar] [data-content-page] [class*="runningHead"] > span{margin-right:auto;text-align:left;}
[data-ar-heading-icon]{display:none!important;}
html[data-profile-locale=ar] [data-ar-heading-icon]{display:inline-flex!important;flex-shrink:0;}
html[data-profile-locale=ar] #contact-locations [class*="branches"] > article{display:grid;grid-template-columns:1.65rem minmax(0,1fr);align-content:start;align-items:center;column-gap:.7rem;direction:rtl;}
html[data-profile-locale=ar] #contact-locations [class*="branches"] > article > [class*="icon"]{grid-column:1;grid-row:1;}
html[data-profile-locale=ar] #contact-locations [class*="branches"] > article > h3{grid-column:2;grid-row:1;margin-top:0;}
/* Reset both grid axes: the English tablet address spans rows 1–3.
   Keeping that inherited row span caused it to overlap the Arabic city. */
html[data-profile-locale=ar] #contact-locations [class*="branches"] > article > :is(p,a){grid-column:1 / -1;grid-row:auto;}
html[data-profile-locale=ar] [data-edition=editorial] :is([data-page-scroll],[class*="spread"],[class*="pairedColumns"],[class*="companyColumns"],[class*="directoryHeading"],[class*="directoryBody"],[class*="entries"],[class*="regions"],[class*="branches"],[class*="licenceLine"]){direction:rtl;}
/* Preserve the header/logo and intro. Mirror only the content reading area
   and its reserved navigation rail; keep exactly the same available width. */
html[data-profile-locale=ar] [data-edition=editorial]{
  --arabic-content-edge:clamp(1.5rem,4.5vw,6rem);
  --arabic-control-rail:var(--profile-page-right);
}
html[data-profile-locale=ar] [data-edition=editorial] [data-page-scroll]{
  margin-left:calc(var(--arabic-control-rail) - var(--arabic-content-edge));
  margin-right:calc(var(--arabic-content-edge) - var(--profile-page-right));
}
html[data-profile-locale=ar] [data-edition=editorial] [data-content-page][data-variant=glass]{
  padding-left:var(--arabic-control-rail);
  padding-right:var(--arabic-content-edge);
}
html[data-profile-locale=ar] [data-edition=editorial] [data-editorial=true] [data-intro=false]{
  right:auto;
  left:clamp(.8rem,1.5vw,2rem);
}
@media(max-width:900px){
  html[data-profile-locale=ar] [data-edition=editorial]{
    --arabic-content-edge:max(1.2rem,env(safe-area-inset-right,0px));
    --arabic-control-rail:calc(4.75rem + env(safe-area-inset-left,0px));
  }
  html[data-profile-locale=ar] [data-edition=editorial] [data-editorial=true] [data-intro=false]{
    right:auto;
    left:calc(.125rem + env(safe-area-inset-left,0px));
  }
}
html[data-profile-locale=ar] [data-content-page] :is([class*="entry"],[class*="vision"]){direction:rtl;}
html[data-profile-locale=ar] [data-content-page] :is([class*="fieldGrid"],[class*="documents"]){direction:rtl;}
html[data-profile-locale=ar] [data-content-page] :is(input,select,button){letter-spacing:normal;}
html[data-profile-locale=ar] [data-content-page] :is(input[type=text],select){direction:rtl;text-align:right;}
html[data-profile-locale=ar] [data-content-page] :is(input[type=email],input[type=tel],input[type=number],a[href^="mailto:"],a[href^="tel:"]){direction:ltr;unicode-bidi:isolate;}
html[data-profile-locale=ar] [data-edition=editorial] nav a{letter-spacing:normal;}
html[data-profile-locale=ar] [data-edition=editorial] footer{direction:ltr;}
/* Page one starts at the right; preserve DOM order and navigation targets. */
html[data-profile-locale=ar] [data-edition=editorial] nav[class*="_progress_"]{direction:rtl;}
html[data-profile-locale=ar] [data-content-page] [class*="lead"] h2{max-width:none;}
html[data-profile-locale=ar] [data-content-page] [class*="licenceLine"] > span{direction:rtl;text-align:right;}
/* September Arabic revision. The user's justification request supersedes
   the older natural-alignment default; headings and short data stay aligned. */
html[data-profile-locale=ar] [data-edition=editorial] [data-content-page] p{
  text-align:justify;text-align-last:right;text-justify:inter-word;
  text-wrap:wrap;word-break:normal;overflow-wrap:normal;hyphens:none;
}
html[data-profile-locale=ar] [data-edition=editorial] [data-editorial-page] :is(h3,h4,[class*="chapterLabel"]){font-weight:600;}
html[data-profile-locale=ar] [data-edition=editorial] [data-editorial-page] [class*="chapterLabel"]{font-size:1rem;line-height:1.65;letter-spacing:normal;}
html[data-profile-locale=ar] [data-edition=editorial] #content-page-7 [class*="columnTitle"]{font-size:1rem;font-weight:600;}
html[data-profile-locale=ar] [data-edition=editorial] #content-page-3 [class*="columnTitle"]{font-size:.875rem;font-weight:600;}
html[data-profile-locale=ar] [data-edition=editorial] [data-content-page] [class*="icon"]{animation:none;}
html[data-profile-locale=ar] [data-edition=editorial] [data-content-page] [class*="icon"] svg{stroke-width:1.6;}
html[data-profile-locale=ar] [data-edition=editorial] #contact-locations :is([class*="branchCaption"],[class*="address"]){text-align:right;}
html[data-profile-locale=ar] [data-edition=editorial] #contact-locations [class*="contactLine"]{direction:rtl;align-items:start;}
html[data-profile-locale=ar] [data-edition=editorial] #contact-locations [class*="contactLine"] a{display:grid;grid-template-columns:1.15rem minmax(0,1fr);direction:rtl;align-items:center;column-gap:.65rem;max-width:100%;unicode-bidi:isolate;}
html[data-profile-locale=ar] [data-edition=editorial] #contact-locations [class*="contactLine"] a svg{grid-column:1;grid-row:1;}
html[data-profile-locale=ar] .ar-service-groups{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:clamp(1.5rem,3.5vw,3.5rem);margin-top:1.75rem;}
html[data-profile-locale=ar] .ar-service-groups .ar-service-group:first-child [class*="entries"]{grid-template-columns:repeat(2,minmax(0,1fr));}
html[data-profile-locale=ar] .ar-service-groups [class*="entries"]{gap:1.2rem 1.4rem;}
html[data-profile-locale=ar] .ar-service-groups [class*="entry"]{grid-template-columns:1.5rem minmax(0,1fr);}
html[data-profile-locale=ar] .ar-catalogue [class*="deck"]{max-width:78ch;}
/* Inset group-booking copy from the left controls without shrinking the type. */
html[data-profile-locale=ar] #content-page-2 .ar-service-group:last-child article:first-child p{max-inline-size:min(22rem,calc(100% - 1.5rem));margin-inline-end:auto;}
html[data-profile-locale=ar] #content-page-2.ar-catalogue [class*="columnTitle"]{font-size:1rem;font-weight:600;}
html[data-profile-locale=ar] #content-page-3 .ar-service-groups{grid-template-columns:minmax(0,1fr) minmax(0,1.35fr);}
html[data-profile-locale=ar] #content-page-3 .ar-service-group:first-child [class*="entries"]{grid-template-columns:1fr;}
html[data-profile-locale=ar] #content-page-3 .ar-service-group:last-child [class*="entries"]{grid-template-columns:repeat(2,minmax(0,1fr));}
html[data-profile-locale=ar] .ar-business-groups [class*="entries"]{grid-template-columns:repeat(2,minmax(0,1fr));gap:1.4rem;}
html[data-profile-locale=ar] .ar-business-groups [class*="columnTitle"]{font-size:1rem;font-weight:600;}
html[data-profile-locale=ar] #content-page-5 .ar-company-columns{margin-top:1.25rem;align-items:start;}
/* Match the intro: opaque colour fields are painted through ONE glyph mask.
   Do not put antialiased blue lettering over an existing white text layer.
   company-word.js drives both edges with the intro's own logoPaintFrame(). */
html[data-profile-locale=ar] #content-page-5 .ar-company-word{position:relative;display:inline-block;color:#fff;white-space:nowrap;}
html[data-profile-locale=ar] #content-page-5 .ar-company-word[data-company-paint]{
  background-image:linear-gradient(to right,#fff 0%,#fff var(--company-white-edge),#070658 var(--company-white-edge),#070658 var(--company-blue-edge),#fff var(--company-blue-edge),#fff 100%);
  background-clip:text;-webkit-background-clip:text;
  color:transparent;-webkit-text-fill-color:transparent;
}
@media(prefers-reduced-motion:reduce){
  html[data-profile-locale=ar] #content-page-5 .ar-company-word[data-company-paint]{background-image:none;color:#fff;-webkit-text-fill-color:#fff;}
}
html[data-profile-locale=ar] #content-page-5 .ar-company-introduction > [class*="overview"]{margin-top:0;max-width:none;}
html[data-profile-locale=ar] #content-page-5 .ar-company-principles{display:grid;gap:1.25rem;margin-top:1.5rem;}
html[data-profile-locale=ar] #content-page-5 [class*="companyDetails"]{align-content:start;}
html[data-profile-locale=ar] .ar-company-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.5rem;padding-top:1.5rem;margin-top:2.5rem;direction:rtl;}
html[data-profile-locale=ar] .ar-company-fact{display:grid;grid-template-columns:1.4rem minmax(0,1fr);align-items:center;column-gap:.65rem;text-align:right;min-width:0;}
html[data-profile-locale=ar] [data-edition=editorial] .ar-company-fact > [class*="icon"]{grid-column:1;grid-row:1;width:1.4rem;height:1.4rem;}
html[data-profile-locale=ar] .ar-fact-value{grid-column:2;grid-row:1;min-width:0;font-size:.9375rem;line-height:1.65;}
html[data-profile-locale=ar] #contact-locations [class*="branches"] a{display:grid;grid-template-columns:1rem minmax(0,1fr);align-items:center;column-gap:.6rem;direction:rtl;max-width:100%;}
html[data-profile-locale=ar] #contact-locations [class*="branches"] a svg{width:1rem;height:1rem;stroke-width:1.6;}
html[data-profile-locale=ar] #contact-locations a bdi{min-width:0;direction:ltr;text-align:left;unicode-bidi:isolate;overflow-wrap:anywhere;}
html[data-profile-locale=ar] #contact-locations [class*="contactLine"] a{justify-self:start;}
@media(min-width:901px){
  html[data-profile-locale=ar] [data-edition=editorial] #content-page-2 [class*="deck"]{font-size:1.125rem;line-height:1.85;}
}
@media(max-width:900px){
  html[data-profile-locale=ar] [data-edition=editorial] [data-editorial-page] p{font-size:.8125rem;line-height:1.85;}
  html[data-profile-locale=ar] [data-edition=editorial] [data-editorial-page] h3{font-size:.875rem;line-height:1.6;}
  html[data-profile-locale=ar] [data-edition=editorial] [data-editorial-page] :is(h1,h2){font-size:clamp(1.125rem,4.5vw,1.6rem);line-height:1.55;}
  html[data-profile-locale=ar] [data-edition=editorial] [data-editorial-page] [class*="entry"]{grid-template-columns:1.3rem minmax(0,1fr);gap:.6rem;}
  html[data-profile-locale=ar] [data-edition=editorial] [data-editorial-page] [class*="icon"]{width:1.3rem;height:1.3rem;}
  html[data-profile-locale=ar] [data-edition=editorial] #contact-locations [class*="contactLine"]{display:grid;grid-template-columns:minmax(0,1fr);gap:.8rem;}
  html[data-profile-locale=ar] [data-edition=editorial] #contact-locations :is([class*="contactLine"],[class*="branches"]) a{font-size:.875rem;}
  html[data-profile-locale=ar] .ar-service-groups,html[data-profile-locale=ar] #content-page-3 .ar-service-groups{grid-template-columns:1fr;gap:1.5rem;margin-top:1.3rem;}
  html[data-profile-locale=ar] .ar-service-groups .ar-service-group [class*="entries"],html[data-profile-locale=ar] #content-page-3 .ar-service-group:last-child [class*="entries"]{grid-template-columns:repeat(2,minmax(0,1fr));}
  /* Override the more-specific desktop first-group rule on mobile as well. */
  html[data-profile-locale=ar] #content-page-2 .ar-service-group:first-child [class*="entries"]{grid-template-columns:minmax(0,1fr);}
  html[data-profile-locale=ar] [data-edition=editorial] [data-editorial=true] [data-intro=false] [class*="shortcut"]{width:auto;min-height:2.75rem;padding:.2rem 0;font-size:.75rem;line-height:1.4;white-space:nowrap;text-wrap:nowrap;text-align:center;position:relative;left:.25rem;}
  html[data-profile-locale=ar] #content-page-5 .ar-company-columns{margin-top:.5rem;}
  /* Keep the reading column and navigation rail unchanged, while centring the
     final facts block against the full page instead of the offset text column. */
  html[data-profile-locale=ar] #content-page-5 [data-page-scroll]{margin-left:0;}
  html[data-profile-locale=ar] #content-page-5 [data-page-scroll] > :not(.ar-company-facts){margin-left:calc(var(--arabic-control-rail) - var(--arabic-content-edge));}
  html[data-profile-locale=ar] .ar-company-facts{display:flex;flex-direction:column;align-items:center;gap:.7rem;}
  html[data-profile-locale=ar] .ar-company-fact{display:flex;align-items:center;justify-content:center;gap:.5rem;max-width:100%;text-align:center;}
  html[data-profile-locale=ar] [data-edition=editorial] .ar-company-fact > [class*="icon"]{flex:0 0 1.15rem;width:1.15rem;height:1.15rem;}
  html[data-profile-locale=ar] .ar-fact-value{font-size:.8125rem;line-height:1.65;text-align:center;text-wrap:balance;}
}
@media(max-width:620px){
  html[data-profile-locale=ar] .ar-service-groups .ar-service-group [class*="entries"],html[data-profile-locale=ar] #content-page-3 .ar-service-group:last-child [class*="entries"],html[data-profile-locale=ar] .ar-business-groups [class*="entries"]{grid-template-columns:1fr;}
}
/* Shared scene lifecycle (both languages): release hidden compositing layers,
   rather than retaining a backdrop surface behind the active spread. Incoming
   and outgoing scenes retain the approved transition and form styling. */
[data-edition=editorial] [data-content-page][data-scene=hidden]{display:none!important;}
[data-edition=editorial] #business-inquiry form{
  -webkit-backdrop-filter:blur(24px);
  backdrop-filter:blur(24px);
}
[data-edition=editorial] #business-inquiry[data-scene=hidden] form{
  -webkit-backdrop-filter:none!important;
  backdrop-filter:none!important;
  animation:none!important;
  transform:none!important;
  will-change:auto!important;
}
