/* RTL / Persian adjustments, loaded after app-rtl.css (mirrored design). */

/* Letter-spacing breaks the joining of Persian letters. */
html[dir="rtl"] body,
html[dir="rtl"] body * { letter-spacing: 0 !important; }

/* Directional icons (arrows, chevrons) point the other way. */
html[dir="rtl"] .icon-dir { scale: -1 1; }

/* Game-mode video wedge: mirrored diagonal edge. */
@media (min-width: 1024px) {
	html[dir="rtl"] .game-mode-wrapper > .absolute { clip-path: polygon(50% 0%, 100% 0%, 100% 100%, 0% 100%) !important; }
	html[dir="rtl"] .game-mode-wrapper.active > .absolute { clip-path: polygon(4% 0%, 100% 0%, 100% 100%, 0% 100%) !important; }
}

/* Slider cursor is positioned from the left edge by the script. */
html[dir="rtl"] #swiper-cursor { left: 0; right: auto; }

/* Hero artwork faces the (now right-aligned) headline. */
html[dir="rtl"] #hero .perspective-animation-mouse img { scale: -1 1; }

/* Persian display type (Lalezar) needs more line height than Aurochs. */
html[dir="rtl"] .h1,
html[dir="rtl"] .h2,
html[dir="rtl"] .h3,
html[dir="rtl"] .h4,
html[dir="rtl"] .h4-smaller,
html[dir="rtl"] .h5,
html[dir="rtl"] .h6 { line-height: 1.15; }
html[dir="rtl"] #hero h1.h2 { line-height: 1; margin-bottom: -0.15em; }
html[dir="rtl"] #hero h2.h1 { line-height: 0.95; }
html[dir="rtl"] footer .h1 { line-height: 1; }
html[dir="rtl"] #newsletter .h2 { line-height: 1.1; }
html[dir="rtl"] .button { line-height: 1.2; }
html[dir="rtl"] p, html[dir="rtl"] .format-content { line-height: 1.8; }
html[dir="rtl"] .format-content :where(p, li) { line-height: 1.9; }

/* Form fields: text starts on the right. */
html[dir="rtl"] input[type="email"],
html[dir="rtl"] input[type="text"] { direction: rtl; text-align: right; }
html[dir="rtl"] [data-otp] { direction: ltr; }

/* Toasts */
html[dir="rtl"] .hooligan-toast { direction: rtl; font-family: Vazirmatn, var(--font-body), sans-serif; }

/* Keep the compact line height of the hero "wishlist" label (like the original). */
html[dir="rtl"] .hero-actions p { line-height: 1; }

/* Digi Ghaf has a smaller optical size than Aurochs: enlarge short UI labels. */
html[dir="rtl"] .button > span,
html[dir="rtl"] .select-button span,
html[dir="rtl"] p.date { font-size: 1.3em; }
html[dir="rtl"] .navigation-links .navigation-link > span { font-size: 1.25em; }
html[dir="rtl"] .hero-actions p { font-size: 1.25em; }
