/* ===========================================================
   ICRBI — right-to-left adjustments (Arabic pages only)
   Loaded after css/styles.css. Reuses the same design tokens;
   no new visual design, only direction and script handling.
   =========================================================== */

html[dir="rtl"] {
  --font-body: "Noto Sans Arabic", "Segoe UI", Tahoma, system-ui, sans-serif;
  --font-display: "Noto Kufi Arabic", "Noto Naskh Arabic", Georgia, serif;
}
html[dir="rtl"] body { line-height: 1.85; }
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3, html[dir="rtl"] h4 {
  letter-spacing: 0; line-height: 1.35;
}
html[dir="rtl"] .hero h1, html[dir="rtl"] h1 { letter-spacing: 0; }
html[dir="rtl"] .eyebrow, html[dir="rtl"] .spell-attrib,
html[dir="rtl"] .brand-sub, html[dir="rtl"] th, html[dir="rtl"] .footer-col h4 {
  letter-spacing: 0;
}

/* Lists */
html[dir="rtl"] ul, html[dir="rtl"] .gov-block ul { padding-left: 0; padding-right: 1.15rem; }

/* Tables */
html[dir="rtl"] th, html[dir="rtl"] td { text-align: right; }

/* Left-bordered blocks mirror to the right edge */
html[dir="rtl"] .callout {
  border-left: 0; border-right: 4px solid var(--rust);
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}
html[dir="rtl"] .callout--teal { border-right-color: var(--teal); }
html[dir="rtl"] .spell-accountability {
  border-left: 0; border-right: 4px solid var(--teal);
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}
html[dir="rtl"] .spell-outcome {
  border-left: 1px solid var(--border); border-right: 4px solid var(--teal);
}

/* Nav / footer direction details */
html[dir="rtl"] .nav-lang { border-inline-start: 1px solid var(--border-strong); }
html[dir="rtl"] .dl-item:hover { transform: translateX(-2px); }

/* Latin and numeric runs (phone, EIN, addresses, URLs, product names) */
html[dir="rtl"] [dir="ltr"] { unicode-bidi: isolate; }
