/* ============================================================
   THELMORE — Arabic / RTL layer
   Load after thelmore.css. The base stylesheet uses logical
   properties, so this file only handles what direction alone
   cannot fix: typefaces, tracking, and a few mirrored details.
   ============================================================ */
[dir="rtl"]{--f-display:"IBM Plex Sans Arabic","Archivo",system-ui,sans-serif;
  --f-text:"Noto Naskh Arabic",Georgia,serif;

  /* Arabic sits taller in the line and reads better with more leading */
  --step-0:1.04rem;}
[dir="rtl"] body{line-height:1.85;font-weight:400}
/* Letterspacing breaks Arabic joining. Remove it everywhere. */
[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] h4,
[dir="rtl"] .data,
[dir="rtl"] .titleblock__key,
[dir="rtl"] .nav a,
[dir="rtl"] .btn,
[dir="rtl"] .field span{letter-spacing:0}
[dir="rtl"] h1,[dir="rtl"] h2,[dir="rtl"] h3,[dir="rtl"] h4{line-height:1.32;font-weight:700}
/* The wordmark stays Latin and keeps its tracking */
[dir="rtl"] .mark{font-family:"Archivo",sans-serif;
  letter-spacing:.24em;text-indent:.24em;direction:ltr;}
/* Uppercase has no meaning in Arabic */
[dir="rtl"] .titleblock__key{text-transform:none;font-size:.76rem}
/* Prices, references, areas and dates stay in Latin order */
[dir="rtl"] .entry__price,
[dir="rtl"] .entry__ref,
[dir="rtl"] .record__price,
[dir="rtl"] .spec dd,
[dir="rtl"] .titleblock__val,
[dir="rtl"] .prov time{direction:ltr;unicode-bidi:isolate}
[dir="rtl"] .entry__price,
[dir="rtl"] .spec dd{text-align:end}
/* Breadcrumb separator leans the other way */
[dir="rtl"] .crumb li::after{content:"\\"}
/* Italics are a Latin convention; Arabic uses weight or colour instead */
[dir="rtl"] .entry__place,
[dir="rtl"] .record__place{font-style:normal;color:var(--slate)}
/* Numerals inside body copy */
[dir="rtl"] .prov li span{text-align:start}
/* The plan legend used in place of labels drawn inside the SVG */

/* Arabic labels run longer than their English counterparts, so the key
   column is widened. A wrapped label makes its row taller than the rest
   and the borders stop lining up. */
[dir="rtl"] .cgrid{--key:10rem}

/* The pager chevrons are drawn with fixed coordinates, so the layout
   mirroring does not reach them. Flipping the glyph is enough — the
   buttons themselves already swap sides with the flex row. */
[dir="rtl"] .cgrid__nav svg{transform:scaleX(-1)}
