/* =========================================================
   Arabic: typography and right-to-left mirroring.
   Loaded only on pages with <html lang="ar" dir="rtl">, after style.css.
   ========================================================= */

:root {
  --serif: "Amiri", "Noto Naskh Arabic", "Times New Roman", serif;
  --sans: "IBM Plex Sans Arabic", "Noto Sans Arabic", "Segoe UI", Tahoma, sans-serif;
}
body { font-size: 17.5px; line-height: 1.85; }

/* Arabic has no capitals and is never letter-spaced */
.eyebrow, .post-meta, .act__meta, .brand__sub, .announce__tag, .news-feature__flag, .footer h3,
.press-strip__label, .mv__kicker, .facts-row dt, .proj__facts dt, .prog-facts__title, .prog-facts dt,
.member p, .letter__sign span, .share__label, .doc-group__head > span, .gallery__label, .phone-list__lang,
.stat p, .card__stat, .news__tag, .partners__label, .section-label {
  letter-spacing: 0 !important; text-transform: none !important;
}
.eyebrow, .post-meta, .act__meta, .news-feature__flag { font-size: 14.5px; }
.brand__sub { font-size: 11.5px; margin-bottom: 3px; }
.brand__name { font-size: 21px; }

/* Headings: Amiri needs more room than Newsreader */
.display, .h2, .article-title, .mv__statement, .news-feature h2, .proj__title, .album__title, .doc-group__title,
.post-card h3, .act h3, .card h3, .member h3, .value h3, .way h3, .numlist strong, .prow__title, .stat__num,
.president blockquote, .quote blockquote, .letter__body p, .mission p, .statement {
  letter-spacing: 0 !important; line-height: 1.35;
}
.display { line-height: 1.28; font-weight: 400; }
.display em, .h2 em { font-style: normal; }
.letter__body p, .quote blockquote { line-height: 1.85; }
.prose { line-height: 1.95; }
.prose h2, .prose h3, .prose h4 { line-height: 1.45; }

/* Numbers, phones and emails keep left-to-right order */
a[href^="tel:"], a[href^="mailto:"], .stat__num, .axis__stats strong, .doc__size { direction: ltr; unicode-bidi: isolate; }
.stat__num, .axis__stats strong { display: inline-block; }

/* ---------- Mirroring ---------- */
.skip { left: auto; right: 16px; }
.btn--link::after { transform-origin: right; }
.btn--link:hover span, .way__link:hover span, .post-card a:hover .post-card__more span { transform: translateX(-4px); }
.prow:hover .prow__arrow { transform: translateX(-4px); }
.nav { margin-left: 0; margin-right: auto; }

.hero__pattern, .hero::before, .page-hero__pattern, .page-hero::before { inset: 0 auto 0 0; }
.hero::before { background: linear-gradient(270deg, var(--paper) 0%, rgba(251, 247, 239, 0) 40%), linear-gradient(0deg, var(--paper) 0%, rgba(251, 247, 239, 0) 30%); }
.page-hero::before { background: linear-gradient(270deg, var(--paper) 0%, rgba(251, 247, 239, 0) 45%), linear-gradient(0deg, var(--paper) 0%, rgba(251, 247, 239, 0) 40%); }
.arch--hero { margin-left: 0; margin-right: auto; }
.hero__badge { left: auto; right: clamp(-56px, -3.5vw, -20px); }
.hero__media figcaption { text-align: left; }

.marquee.is-animated .partners__logos { padding-right: 0; padding-left: 72px; animation-name: marquee-rtl; }
@keyframes marquee-rtl { to { transform: translateX(100%); } }

.stat + .stat { padding-left: 0; padding-right: 28px; border-left: 0; border-right: 1px solid var(--line-light); }
.stat { padding: 34px 0 8px 28px; }
.stat::before { left: auto; right: 0; }
.stat + .stat::before { left: auto; right: 28px; }
.stat__plus { margin-left: 0; margin-right: .02em; }

.story__media::after { background: linear-gradient(270deg, rgba(15, 19, 48, .55) 0%, rgba(15, 19, 48, .1) 60%, rgba(15, 19, 48, 0) 100%); }
.facts div + div { padding-left: 0; padding-right: 16px; border-left: 0; border-right: 1px solid var(--line); }
.voices__portraits::after { right: auto; left: -18px; }
.voices__tabs button { text-align: right; padding: 20px 0 6px 16px; }
.voices__tabs button::before { left: 16px; right: 0; }
.president::before { right: auto; left: 28px; }
.quote::before { right: auto; left: 22px; }
.footer__ar { text-align: right; }

.facts-row > div { padding: 20px 0 0 20px; }
.facts-row > div + div { padding-left: 20px; padding-right: 20px; border-left: 0; border-right: 1px solid var(--line); }

.prose ul > li { padding-left: 0; padding-right: 30px; }
.prose ul > li::before { left: auto; right: 4px; }
.prose ol { padding-left: 0; padding-right: 1.4em; }
.prose blockquote { padding-left: 0; padding-right: 24px; border-left: 0; border-right: 3px solid var(--saffron-500); }
.prose th, .prose td { text-align: right; padding: 12px 0 12px 10px; }
.prose ul.points > li { padding: 20px 56px 20px 22px; }
.prose ul.points > li::before { left: auto; right: 24px; }

.share__label { margin-right: 0; margin-left: 8px; }
.doc__title { text-align: right; }
.proj__facts > div { padding: 16px 0 0 16px; }
.proj__facts > div + div { padding-left: 16px; padding-right: 16px; border-left: 0; border-right: 1px solid var(--line); }
.axis__num { margin-right: 0; margin-left: 4px; }
.axis__stats li { padding: 26px 0 22px 24px; }
.axis__stats li:not(:nth-child(3n+1)) { padding-left: 24px; padding-right: 24px; border-left: 0; border-right: 1px solid var(--line); }
.lightbox__close { right: auto; left: 18px; }
.values li { text-align: right; }

@media (max-width: 1180px) {
  .header__actions { margin-left: 0; margin-right: auto; }
}
@media (max-width: 1000px) {
  .hero__badge { left: auto; right: 16px; }
  .stat:nth-child(3) { border-right: 0; padding-right: 0; }
  .stat:nth-child(3)::before { right: 0; }
}
@media (max-width: 720px) {
  .announce__link { margin-left: 0; margin-right: auto; }
  .announce__close { margin-right: 0; margin-left: -6px; }
  .hero__badge { right: auto; }
  .hero__media figcaption { text-align: right; }
  .stat, .stat + .stat { padding: 24px 0 4px; border-right: 0; }
  .stat + .stat::before, .stat:nth-child(3)::before { right: 0; }
  .voices__tabs button::before { left: auto; right: -14px; }
  .facts-row > div:nth-child(3) { padding-right: 0; border-right: 0; }
  .proj__facts > div + div { padding-right: 0; border-right: 0; }
  .axis__stats li, .axis__stats li:not(:nth-child(3n+1)) { padding: 20px 0 18px 14px; border-right: 0; }
  .axis__stats li:nth-child(even) { padding-right: 14px; border-right: 1px solid var(--line); }
  .prose ul.points > li { padding: 18px 46px 18px 18px; }
  .prose ul.points > li::before { right: 18px; }
  .brand__name { font-size: 16.5px; }
  .brand__sub { font-size: 9.5px; }
}
