/* Arabic (RTL) overrides for ar.dirhamfont.com */
html[dir="rtl"] body{font-family:"Geeza Pro","Noto Naskh Arabic","Segoe UI",Tahoma,Arial,sans-serif;letter-spacing:0}
html[dir="rtl"] h1,html[dir="rtl"] h2,html[dir="rtl"] h3,html[dir="rtl"] p,html[dir="rtl"] a,html[dir="rtl"] summary,html[dir="rtl"] button,html[dir="rtl"] label{letter-spacing:0;text-transform:none}
html[dir="rtl"] h1,html[dir="rtl"] h2{line-height:1.25}
html[dir="rtl"] .hero-copy,html[dir="rtl"] .section-copy,html[dir="rtl"] .release-copy,html[dir="rtl"] .tamer-story,html[dir="rtl"] .footer-faq{text-align:right}
html[dir="rtl"] kbd,html[dir="rtl"] .usage-amount,html[dir="rtl"] .printed-price,html[dir="rtl"] .cut-lines b{direction:ltr;unicode-bidi:isolate}
html[dir="rtl"] .button svg,html[dir="rtl"] .release-download svg{transform:scaleX(-1)}
html[dir="rtl"] .button .dirham-glyph svg{transform:none}
/* The 3D scene and section grids are composed for LTR; keep their placement and set Arabic text blocks RTL. */
html[dir="rtl"] body{direction:ltr}
html[dir="rtl"] .site-header,html[dir="rtl"] .hero-copy,html[dir="rtl"] .section-copy,html[dir="rtl"] .proof-copy,html[dir="rtl"] .section-heading,html[dir="rtl"] .rules-rail,html[dir="rtl"] .usage-heading,html[dir="rtl"] .usage-steps,html[dir="rtl"] .release-copy,html[dir="rtl"] .tamer-story,html[dir="rtl"] .download-copy,html[dir="rtl"] .download-gate,html[dir="rtl"] footer,html[dir="rtl"] .usage-note,html[dir="rtl"] .mock-print{direction:rtl}
@media (min-width:900px){html[dir="rtl"] .hero-copy,html[dir="rtl"] .section-copy,html[dir="rtl"] .proof-copy{max-width:500px;box-sizing:border-box}}
html[dir="rtl"] .header-cta,html[dir="rtl"] .lang-switch{white-space:nowrap}
@media (max-width:700px){html[dir="rtl"] .header-cta{padding-inline:.8rem;font-size:.85rem}}
@media (max-width:700px){html[dir="rtl"] .site-header .brand-name{font-size:1.4rem;letter-spacing:0}html[dir="rtl"] .site-header .site-brand{min-width:0}}


/* Staging pass 2: symbol size, RTL alignment, logo, language switch */
html[dir="rtl"] .printed-price .dirham-glyph,html[dir="rtl"] .cut-lines b .dirham-glyph{align-self:center}
html[dir="rtl"] .printed-price .dirham-glyph svg,html[dir="rtl"] .cut-lines b .dirham-glyph svg{width:.72em;height:.72em}
html[dir="rtl"] .printed-price{align-items:center;gap:.14em}
html[dir="rtl"] .usage-symbol svg{width:.74em;height:.74em}
html[dir="rtl"] .usage-symbol{top:.2em}
html[dir="rtl"] .mock-print:not(.tag-print),html[dir="rtl"] .mock-print:not(.tag-print) .cut-title,html[dir="rtl"] .mock-print:not(.tag-print) .cut-small,html[dir="rtl"] .mock-print .cut-lines{text-align:right}
html[dir="rtl"] .phone-topline{flex-direction:row-reverse}
html[dir="rtl"] .usage-steps button,html[dir="rtl"] .usage-steps button strong,html[dir="rtl"] .usage-steps button span{text-align:right}
html[dir="rtl"] .usage-steps button{align-items:flex-start}
html[dir="rtl"] .lang-switch{text-decoration:none;font-weight:700;font-size:1rem;padding:.55rem 1.1rem;border-width:2px;opacity:1;letter-spacing:.02em}
html[dir="rtl"] .brand-edition .brand-name{font-family:"Noto Kufi Arabic","Geeza Pro","Noto Naskh Arabic","Segoe UI",Tahoma,sans-serif;font-weight:900;font-size:40px;line-height:1;letter-spacing:0}
html[dir="rtl"] .brand-edition .brand-label{font-family:"Noto Kufi Arabic","Geeza Pro","Segoe UI",Tahoma,sans-serif;font-weight:700;font-size:12px;letter-spacing:0;text-align:right;border-top:2px solid;padding-top:2px;margin-top:2px}
@media (max-width:700px){html[dir="rtl"] .site-header .brand-name{font-size:1.9rem}html[dir="rtl"] .lang-switch{font-size:.85rem;padding:.4rem .7rem}}
html[dir="rtl"] .site-brand .brand-edition{flex-direction:column;align-items:stretch;gap:0;width:max-content}
html[dir="rtl"] .site-brand,html[dir="rtl"] .site-brand *,html[dir="rtl"] .lang-switch,html[dir="rtl"] .lang-switch *,html[dir="rtl"] .header-cta{text-decoration:none!important}
html[dir="rtl"] .cut-lines b .dirham-glyph svg{width:.85em;height:.85em}

/* Loaded Arabic fonts (Google Fonts link in ar/index.html). Latin and digits stay in Space Grotesk. */
html[dir="rtl"]{--ar-body:"Alan Sans","Geeza Pro","Segoe UI",Tahoma,sans-serif;--ar-display:"Alan Sans","Geeza Pro","Segoe UI",Tahoma,sans-serif}
html[dir="rtl"] body,html[dir="rtl"] h1,html[dir="rtl"] h2,html[dir="rtl"] h3,html[dir="rtl"] p,html[dir="rtl"] a,html[dir="rtl"] span,html[dir="rtl"] summary,html[dir="rtl"] button,html[dir="rtl"] label,html[dir="rtl"] li,html[dir="rtl"] strong,html[dir="rtl"] b{font-family:var(--ar-body);letter-spacing:0;word-spacing:0;font-kerning:normal;font-feature-settings:normal}
html[dir="rtl"] h1,html[dir="rtl"] h2{font-family:var(--ar-display);font-weight:800;line-height:1.3}
html[dir="rtl"] .brand-edition .brand-name,html[dir="rtl"] .brand-edition .brand-label{font-family:var(--ar-display)}
html[dir="rtl"] .brand-edition .brand-name{font-weight:900}
html[dir="rtl"] .mock-print .cut-title{font-family:var(--ar-display);font-style:normal;font-weight:800;text-transform:none;letter-spacing:0;line-height:1.25;font-size:5.6cqw}
html[dir="rtl"] .phone-print .cut-title{font-size:3.6cqw}
html[dir="rtl"] .tag-print .cut-title{font-size:6.4cqw}
html[dir="rtl"] .document-print .cut-title{font-size:5.4cqw}
html[dir="rtl"] .receipt-print .cut-title{font-size:5cqw}
html[dir="rtl"] .menu-print .cut-title{font-size:5.8cqw}

/* Alan Sans (T's pick) covers Arabic with joining forms; force it over the Space Grotesk / Big Shoulders rules. */
html[dir="rtl"] :is(body,h1,h2,h3,p,a,span,li,button,summary,label,strong,b,small,figcaption,div,details,nav){font-family:var(--ar-body)!important}
html[dir="rtl"] :is(h1,h2,.cut-title,.brand-name,.brand-label){font-family:var(--ar-display)!important}
html[dir="rtl"] :is(h1,h2){font-weight:700!important;letter-spacing:0!important}
html[dir="rtl"] .brand-edition .brand-name{font-weight:900!important}
html[dir="rtl"],html[dir="rtl"] body,html[dir="rtl"] main,html[dir="rtl"] footer{--site-font:"Alan Sans","Geeza Pro","Segoe UI",Tahoma,sans-serif}

/* Round 3: no nav underline, logo label on top, no orphans, bigger eyebrow */
html[dir="rtl"] .site-header nav a,html[dir="rtl"] .site-header nav a:hover,html[dir="rtl"] .site-header nav a:focus-visible{text-decoration:none!important;background-image:none!important;border-bottom:0!important;box-shadow:none!important}
html[dir="rtl"] .site-brand .brand-edition{flex-direction:column-reverse}
html[dir="rtl"] .brand-edition .brand-label{border-top:0!important;border-bottom:2px solid;padding-top:0;padding-bottom:3px;margin-top:0;margin-bottom:2px;font-size:13px}
html[dir="rtl"] :is(h1,h2,h3,.tamer-intro,summary,.cut-title,.section-heading p,.usage-heading p,.proof-copy p){text-wrap:balance}
html[dir="rtl"] :is(p,li,.download-note,.footer-faq p,.usage-note){text-wrap:pretty}
html[dir="rtl"] :is(a[rel=author],.tamer-story a,.intro a){white-space:nowrap}
html[dir="rtl"] .eyebrow{font-size:clamp(17px,1.5vw,22px)!important;font-weight:600;letter-spacing:0}
@media(max-width:809px){html[dir="rtl"] .eyebrow{font-size:17px!important}}


/* Round 4 */
@media(min-width:810px){html[dir="rtl"] .site-header nav a{font-size:19px!important;font-weight:500}html[dir="rtl"] .site-header nav{gap:34px}}
html[dir="rtl"] .scroll-chapter:has(>#hero),html[dir="rtl"] .scroll-chapter:has(>#manifest),html[dir="rtl"] .scroll-chapter:has(>#services){height:calc(var(--chapter-height,100svh) + 10svh)!important}
html[dir="rtl"] .tamer-experience>p{text-align:right!important;width:100%;font-size:16px}
html[dir="rtl"] footer .footer-identity{display:flex;flex-direction:column;align-items:flex-start;gap:18px}
html[dir="rtl"] footer .footer-identity p{margin:0;font-size:16px;line-height:1.7;text-align:right}
html[dir="rtl"] footer .brand-name{font-weight:900}
html[dir="rtl"] footer .brand-name,html[dir="rtl"] footer .brand-label,html[dir="rtl"] footer .brand-edition{letter-spacing:0!important;word-spacing:0!important;text-transform:none!important}
html[dir="rtl"] footer .brand-name{font-size:60px;line-height:1.1;font-weight:900;font-variation-settings:normal}
html[dir="rtl"] footer .site-brand .brand-edition .brand-name{font-family:"Alan Sans",sans-serif!important}
html[dir="rtl"] .tamer-work-link,html[dir="rtl"] .tamer-work-link:hover,html[dir="rtl"] a.button,html[dir="rtl"] .release-download{text-decoration:none!important;border-bottom:0!important;background-image:none!important}
