/* ============================================================
   RTL overrides — loaded only for Arabic (dir="rtl")
   ============================================================ */

/* Keep the brand mark/badge order natural */
[dir="rtl"] .logo{flex-direction:row}

/* Match rows: mirror alignment but keep scores/numbers LTR */
[dir="rtl"] .r-home{justify-content:flex-start;text-align:right}
[dir="rtl"] .r-away{justify-content:flex-end}
[dir="rtl"] .r-score,
[dir="rtl"] .r-ht,
[dir="rtl"] .mh-score strong,
[dir="rtl"] .mh-ht,
[dir="rtl"] .gpts,
[dir="rtl"] .gtable td,
[dir="rtl"] .info td{direction:ltr;unicode-bidi:isolate}

/* Standings + info tables: right-align the first (team) column text */
[dir="rtl"] .gtable th,
[dir="rtl"] .gtable td{text-align:center}
[dir="rtl"] .gl{text-align:right}
[dir="rtl"] .gteam{flex-direction:row}
[dir="rtl"] .info th,
[dir="rtl"] .info td{text-align:right}
[dir="rtl"] .gtable tr.adv td:first-child{box-shadow:inset -3px 0 0 var(--accent)}
[dir="rtl"] .standings tr.ucl td:first-child{box-shadow:inset -3px 0 0 var(--ucl)}

/* Band/section icons and headings flip naturally with flex; nudge spacing */
[dir="rtl"] .band-ico{transform:scaleX(-1)}

/* Cards / cells with left borders → right borders */
[dir="rtl"] .hero{border-left:0;border-right:5px solid var(--green)}
[dir="rtl"] .notice{border-left:0;border-right:4px solid var(--accent)}

/* Breadcrumb separators spacing */
[dir="rtl"] .crumbs span{margin:0 6px}

/* Language switcher stays visually consistent */
[dir="rtl"] .langsw{margin-inline-start:auto}

/* Affiliate CTA arrow-free; keep button on the reading-end */
[dir="rtl"] .aff-offer{flex-direction:row}

/* Date input & tools remain LTR internally */
[dir="rtl"] .dform input{direction:ltr}

/* Use a font stack with good Arabic coverage for body text */
[dir="rtl"] body{font-family:"Segoe UI","Noto Naskh Arabic",Tahoma,"Inter",sans-serif}
[dir="rtl"] .logo-text,
[dir="rtl"] .page-head h1,
[dir="rtl"] .card-head,
[dir="rtl"] .band,
[dir="rtl"] .block-title{font-family:"Segoe UI",Tahoma,sans-serif;letter-spacing:0}
