/* ============================================================
   AI Lighthouse Holding — Arabic / right-to-left overrides
   ------------------------------------------------------------
   Loaded ONLY by the pages under /ar/, after site.css.
   site.css is never modified, so the English site cannot break.

   Three jobs:
     1. Swap the Latin typefaces for Arabic ones
     2. Flip every physical direction (left/right, padding, borders)
     3. Re-tune the few places where Arabic text needs more room
   ============================================================ */

:root{
  /* IBM Plex Sans Arabic carries the same grotesque character as Archivo;
     Noto Kufi Arabic gives headlines the institutional weight Newsreader
     gives in English. Latin fallbacks keep brand names and URLs readable. */
  --body:'IBM Plex Sans Arabic','Archivo',-apple-system,BlinkMacSystemFont,'Segoe UI',Tahoma,sans-serif;
  --display:'Noto Kufi Arabic','IBM Plex Sans Arabic',Georgia,serif;
}

html{direction:rtl}
body{direction:rtl;text-align:right}

/* Arabic has no case, so letter-spaced capitals do nothing but damage
   legibility. Reset every tracked/uppercased label. */
.eyebrow,.kicker,.pillstrip span,.engine .num,.tcard .lbl,.rcard .num,
.founder .from,.col .lbl,.teaser .num,.nextnav .lbl,.person .role,
.fstep .n,.triple div span{
  letter-spacing:normal;
  text-transform:none;
}

/* Arabic glyphs sit lower and need more leading than Latin at the same size */
h1,h2,h3,h4{line-height:1.3}
h1{line-height:1.25}
p,li,dd{line-height:1.8}
.lede{line-height:1.7}

/* ---------- header ---------- */
.mark b{letter-spacing:normal}
.mark span{letter-spacing:normal}

/* the language switch sits at the far edge of the bar */
.langswitch{
  display:inline-flex;align-items:center;gap:7px;
  color:rgba(231,237,236,.82);text-decoration:none;
  font-size:.8rem;font-weight:600;padding:7px 13px;
  border:1px solid rgba(231,237,236,.28);
  transition:color .18s,border-color .18s;
  white-space:nowrap;
}
.langswitch:hover,.langswitch:focus-visible{color:var(--signal);border-color:var(--signal)}

/* ---------- eyebrow rule ---------- */
/* the trailing rule is a flex sibling, so it follows direction automatically */

/* ---------- hero ---------- */
/* The photograph puts the group on the LEFT and open sky on the right.
   Arabic reads right-to-left, so the copy belongs on the right — which is
   where it already sits. In RTL, flex-end resolves to the left, so this
   has to be flipped back to flex-start to hold its position. */
.hero-in.to-right{justify-content:flex-start}

.kicker{
  padding-left:0;padding-right:14px;
  border-left:none;border-right:2px solid var(--signal);
}

@media(max-width:900px){
  .hero-photo.flip picture img,
  .hero-photo.flip img,
  .hero-photo.flip video{object-position:72% center}
}

/* ---------- statement blocks ---------- */
.closer{
  padding-left:0;padding-right:clamp(18px,2.5vw,28px);
  border-left:none;border-right:3px solid var(--gold);
}
.band-dark .closer,.band-deep .closer{
  border-left-color:transparent;
  border-right-color:var(--signal);
}

.stance{border-top-color:var(--gold)}

/* inline quote/callout paragraphs built with a left accent in the English
   pages — the Arabic fragments use .accent instead */
.accent{
  border-right:6px solid var(--signal);
  padding:28px 36px;
}
.band .accent{background:var(--panel);border-radius:4px}

/* ---------- lists ---------- */
.ticks li{padding-left:0;padding-right:24px}
.ticks li::before{left:auto;right:2px}

/* ---------- pillar strip ---------- */
.pillstrip span{border-right:none;border-left:1px solid var(--line-dk)}
.pillstrip span:last-child{border-left:none}

/* ---------- flow arrows ---------- */
/* a right-pointing arrow in LTR must point left in Arabic */
.arrow{transform:scaleX(-1)}

/* ---------- founders / teaser underlines ---------- */
.teaser a,.founder a.site{align-self:flex-start}

/* ---------- mobile nav ---------- */
@media(max-width:1020px){
  nav{padding-inline:var(--gut)}
}

/* ---------- numerals ---------- */
/* Western digits throughout: standard in Gulf and North African business
   and technical writing, and they keep the numbered sections legible. */
.eyebrow,.engine .num,.rcard .num,.teaser .num,table{
  font-variant-numeric:lining-nums;
}

/* ---------- tables ---------- */
table{text-align:right}
th,td{text-align:right}

/* ---------- diagram captions ---------- */
.figtitle{max-width:62ch}

/* Arabic words are longer than their English equivalents, so headings that
   were measured for Latin need a wider column here. */
.head--solo{max-width:min(720px,100%)}


/* ---------- Arabic hero sizing ---------- */
/* Arabic sets larger than Latin at the same px size and carries taller
   ascenders, so the English display scale overwhelms the photograph. */
.hero h1{font-size:clamp(1.95rem,4.8vw,3.5rem);line-height:1.35}
.hero-copy{max-width:none;width:min(600px,100%)}
.hero .lede{font-size:clamp(1rem,1.6vw,1.16rem)}
.hero p.sub{font-size:.95rem}
@media(max-width:900px){
  .hero-copy{width:100%}
  .hero h1{font-size:clamp(1.75rem,6.4vw,2.4rem)}
}

/* promoted section headings carry the same correction */
.as-h2{font-size:clamp(1.6rem,3.4vw,2.5rem);line-height:1.35}
h2{font-size:clamp(1.6rem,3.4vw,2.5rem)}
