/* RTL overrides — Arabic (/ar/). First pass: correct text flow; keep grade codes, standards
   numbers, temperatures and spec tables left-to-right, since those read LTR in any language.
   Layout mirroring beyond this is intended to be refined visually after review. */

html[dir="rtl"] body { text-align: right; }

html[dir="rtl"] .eyebrow,
html[dir="rtl"] .section-head,
html[dir="rtl"] .lead,
html[dir="rtl"] p,
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] li,
html[dir="rtl"] .pb-cap,
html[dir="rtl"] .card { text-align: right; }

/* Keep alphanumeric technical content left-to-right: grade codes (HK40), standards (ASTM A297),
   UNS/EN numbers (1.4848), service temperatures. */
html[dir="rtl"] .mono,
html[dir="rtl"] .g,
html[dir="rtl"] code,
html[dir="rtl"] table.spec { direction: ltr; unicode-bidi: embed; }

html[dir="rtl"] table.spec th,
html[dir="rtl"] table.spec td { text-align: right; }
html[dir="rtl"] table.spec td.mono,
html[dir="rtl"] table.spec td.g { text-align: left; }

/* Switcher sits on the opposite side in RTL. */
html[dir="rtl"] .langswitch { margin-left: 0; margin-right: 12px; }
html[dir="rtl"] .langswitch-menu { right: auto; left: 0; }
