/* SEKEM Annual Report — Arabic / right-to-left overrides (loaded only by /ar/ pages) */

/* Arabic typeface: Cairo (already the closest match to the SEKEM brand font). Icons keep their own font. */
html[dir="rtl"] body,
html[dir="rtl"] :where(h1,h2,h3,h4,h5,h6,p,li,a,button,td,th,label,span,div,input,textarea,select,figcaption,blockquote,small,strong,em,b,i):not(.material-symbols-outlined) {
  font-family: 'Cairo', 'Plus Jakarta Sans', 'Inter', sans-serif !important;
}
html[dir="rtl"] svg text { font-family: 'Cairo', 'Plus Jakarta Sans', sans-serif !important; }

/* Arabic letters join: tracking, caps and italics break the script */
html[dir="rtl"] *:not(.material-symbols-outlined) { letter-spacing: normal !important; }
html[dir="rtl"] .uppercase { text-transform: none !important; }
html[dir="rtl"] .italic, html[dir="rtl"] em, html[dir="rtl"] i:not(.material-symbols-outlined) { font-style: normal !important; }

/* Arabic needs more line height than Latin */
html[dir="rtl"] p, html[dir="rtl"] li, html[dir="rtl"] td, html[dir="rtl"] blockquote { line-height: 1.85; }
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3, html[dir="rtl"] h4 { line-height: 1.4 !important; }

/* Charts and the Vision Flower keep their drawn geometry; only the words inside change */
html[dir="rtl"] svg { direction: ltr; }
html[dir="rtl"] .flower-stage svg text { unicode-bidi: plaintext; }

/* Directional icons (arrows, chevrons) point the other way */
html[dir="rtl"] .rtl-flip { transform: scaleX(-1); }

/* Vision Flower popup: dock to the opposite corner, accent bar on the reading edge */
html[dir="rtl"] .flower-tooltip {
  right: auto; left: 16px; text-align: right;
  box-shadow: inset -5px 0 0 0 var(--tt-accent, transparent), 0 22px 56px -12px rgba(0,63,38,.18), 0 6px 18px -6px rgba(0,0,0,.08);
}
html[dir="rtl"] .flower-tooltip .ttl-icon { float: left; margin: 2px 0 10px 14px; }
@media (max-width: 767px) { html[dir="rtl"] .flower-tooltip { left: auto; } }

/* KPI strip on the home page scrolls with scrollLeft: keep the scroller LTR, text RTL */
html[dir="rtl"] #kpi-track { direction: ltr; }
html[dir="rtl"] .kpi-slide { direction: rtl; text-align: right; }

/* Language switch pill in the menu */
.lang-switch { font-family: 'Cairo', 'Inter', sans-serif; }
