/* ------------------------------------------------------------------
   rtl-fa.css — Persian (فارسی) edition overrides.
   Loaded last. Everything specific to the RTL/Persian build lives
   here so the other stylesheets stay byte-identical to the English
   edition.
   ------------------------------------------------------------------ */

:root {
  /* Bookish naskh for display + body, Vazirmatn for UI/instrument text.
     IBM Plex Mono stays first in the mono stack so Latin digits on the
     year axis keep their tabular, instrument-like look; Persian glyphs
     fall through to Vazirmatn. */
  --font-display: "Noto Naskh Arabic", Georgia, "Times New Roman", serif;
  --font-body: "Noto Naskh Arabic", Georgia, serif;
  --font-mono: "IBM Plex Mono", "Vazirmatn", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --font-ui: "Vazirmatn", "Noto Naskh Arabic", system-ui, sans-serif;
}

/* Naskh sits smaller on the line than Spectral; give the page air. */
.chronicle-page {
  font-size: 17px;
}
.chronicle-page .ch-overview p,
.chronicle-page .ch-era-transition,
.chronicle-page .lede {
  line-height: 2.05;
}
.chronicle-page .ch-card p { line-height: 1.95; }

/* UI / instrument text in Vazirmatn (labels, buttons, chips, badges) */
.chronicle-page .ch-lane-label,
.chronicle-page .ch-lane-sub,
.chronicle-page .ch-chron select,
.chronicle-page .ch-merge-toggle,
.chronicle-page .ch-map-tool,
.chronicle-page .ch-map-key,
.chronicle-page .ch-map-snaplegend,
.chronicle-page .ch-map-note,
.chronicle-page .badge,
.chronicle-page .ch-chip,
.chronicle-page .ch-claim-chip,
.chronicle-page .ch-card-type,
.chronicle-page .ch-meta-label,
.chronicle-page .ch-date-basis,
.chronicle-page .ch-evidence-count,
.chronicle-page .ch-claim-sources,
.chronicle-page .eyebrow,
.chronicle-page .ch-hero-note,
.chronicle-page .ch-topbar .brand,
.chronicle-page .ch-now,
.chronicle-page .ch-map-tip,
.chronicle-page .ch-clock-tip {
  font-family: var(--font-ui);
}

/* --------------------------------------------------- layout mirroring */

/* Keep the atlas (map) column on the LEFT, story on the right, exactly
   as in the English edition; only the text inside runs RTL. */
.ch-layout { direction: ltr; }
.ch-layout .ch-story,
.ch-layout .ch-atlas-sticky { direction: rtl; }

/* The time navigator stays a left-to-right instrument: years increase
   to the right, as on the map's own axis. Persian text inside its
   labels still shapes correctly via the bidi algorithm. */
.ch-clock { direction: ltr; }
.ch-clock .ch-lane-label { text-align: left; }
.ch-clock-tip { direction: rtl; text-align: right; }

/* Small physical-property fixes for RTL flow */
.ch-now ul { padding-left: 0; padding-right: 1.1rem; }
.ch-chip { margin-right: 0; margin-left: 0.3rem; }
.ch-claim-list { padding-right: 1.1rem; }

/* Persian type detail: keep Latin-digit year readout crisp */
.ch-year-readout span { font-family: "IBM Plex Mono", monospace; }

/* Naskh headline weights render heavy; ease them slightly */
.chronicle-page h1, .chronicle-page h2 { font-weight: 600; letter-spacing: 0; }
.chronicle-page .ch-card h4 { font-weight: 600; }
