/* ============================================================
   ARABIC (RTL) locale overrides — loaded only by /ar/ pages.
   Mirror of the approach used by style-ru.css: every rule is
   scoped under html[lang="ar"], and this file is only linked
   from ar/*.html, so nothing here can reach EN/RU pages.

   Base pages are LTR-designed. With dir="rtl" on <html> the
   block flow, flex order and grid order flip automatically;
   what does NOT flip automatically:
   - physical properties: left/right offsets, padding-left,
     border-left, text-align
   - ::before bullet markers positioned with left:0
   ============================================================ */

/* Arabic renders taller than Latin at the same font-size: Arabic
   script has ascenders/descenders plus connected letterforms, and
   Inter has no Arabic glyphs — the browser falls back to a system
   Arabic font whose x-height differs. Keep Latin UI chrome (logo,
   numbers, prices) in Inter, let text fall back for Arabic. */
html[lang="ar"] body{
  font-family:"Noto Naskh Arabic","Noto Sans Arabic","Segoe UI",Tahoma,Arial,sans-serif}
html[lang="ar"] .logo span,
html[lang="ar"] .pr-cn,
html[lang="ar"] .pr-us,
html[lang="ar"] .s-num,
html[lang="ar"] .lang-switch,
html[lang="ar"] .mm-lang{
  font-family:Inter,"Noto Sans Arabic",Tahoma,sans-serif}

/* --- header: nav gap a bit tighter (Arabic labels are wider) --- */
html[lang="ar"] .nav-links{gap:18px;font-size:.88rem}
html[lang="ar"] .nav-links a{font-size:.85rem;white-space:nowrap}

/* --- hero badge hangs off the photo's LEFT edge in LTR; in RTL
      mirror it to the right edge and keep it inside the frame --- */
html[lang="ar"] .hero-badge{left:auto;right:-26px}
@media(max-width:1220px){html[lang="ar"] .hero-badge{right:12px}}
@media(max-width:640px){
  html[lang="ar"] .hero-badge{left:10px;right:10px}}

/* --- bullet lists: marker was positioned left:0 + padding-left;
      mirror both sides --- */
html[lang="ar"] .t-card ul li,
html[lang="ar"] .v-step .v-list li,
html[lang="ar"] .hs-list li,
html[lang="ar"] .treat-grid ul li{
  padding-left:0;padding-right:16px}
html[lang="ar"] .t-card ul li::before,
html[lang="ar"] .v-step .v-list li::before{
  left:auto;right:0}
html[lang="ar"] .hs-list li{padding-right:18px}
html[lang="ar"] .hs-list li::before{left:auto;right:0}
@media(max-width:640px){
  html[lang="ar"] .treat-grid.cols-5 ul li{padding-left:0;padding-right:9px}
  html[lang="ar"] .hs-list li{padding-right:9px}
}

/* --- note-box accent bar was border-left --- */
html[lang="ar"] .note-box{border-left:none;border-right:4px solid var(--teal)}

/* --- match-note accent bar (inline style on home page) --- */
html[lang="ar"] .match-note{border-left:none;border-right:4px solid #5fd4a8}

/* --- entry-link "More →" sits right-aligned in LTR; mirror --- */
html[lang="ar"] .entry-link{text-align:left}

/* --- fee tables (shared component): keep column order natural for
      RTL readers; numbers stay LTR inside cells --- */
html[lang="ar"] table.fee td.fee-amt{white-space:normal}
html[lang="ar"] table.fee th,
html[lang="ar"] table.fee td{overflow-wrap:break-word}
html[lang="ar"] table.fee td.fee-amt{direction:ltr;text-align:right}
html[lang="ar"] .pr-row span,
html[lang="ar"] .pr-cn,
html[lang="ar"] .pr-us{unicode-bidi:isolate}
html[lang="ar"] .pr-cn,html[lang="ar"] .pr-us{direction:ltr}

/* --- lang switcher: Arabic item gets breathing room in LTR order --- */
html[lang="ar"] .lang-switch .sep{margin:0 2px}

/* --- misc text shaping --- */
html[lang="ar"] h1,html[lang="ar"] h2,html[lang="ar"] h3{line-height:1.45}
html[lang="ar"] p,html[lang="ar"] li{line-height:1.75}
