/* =============================================================
   RTL / Persian helpers — direction edge-cases & Latin runs
   The base is RTL-first (logical properties); this is the
   small set of explicit-direction utilities on top.
   ============================================================= */

/* Force LTR islands inside an RTL doc (phone numbers, prices in
   Latin digits, URLs, time ranges like 09:00-18:00). */
.bk-ltr { direction: ltr; unicode-bidi: isolate; }
.bk-num { font-feature-settings: "tnum" 1; font-variant-numeric: tabular-nums; }

/* Latin brand/word runs keep Inter for crispness */
.bk-latin { font-family: 'Inter', var(--bk-font); }

/* Inline chevrons used for "next/prev" should point with reading
   direction. In RTL, a "next" chevron visually points left. Use
   these helpers so icon fonts/SVGs don't need per-instance flips. */
.bk-chevron-next { transform: scaleX(1); }   /* author SVGs already drawn for RTL */
[dir="ltr"] .bk-flip-x { transform: scaleX(-1); }

/* Horizontal scrollers must scroll naturally in RTL */
.bk-hscroll {
  display: flex; gap: var(--bk-space-4);
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.bk-hscroll::-webkit-scrollbar { display: none; }
.bk-hscroll > * { scroll-snap-align: start; flex: 0 0 auto; }

/* Map embeds & media should stay LTR internally */
.bk-map, .bk-embed { direction: ltr; }
