/* TutorMe Main Languages: Arabic (RTL).
   The page runs right-to-left. Photo-led and swipe components keep the English geometry
   (Peter's photo is never mirrored, and the swipe/carousel scripts keep their left/right maths);
   the text inside them still runs right-to-left. */
html[dir=rtl] body{overflow-x:hidden}
html[dir=rtl] :is(.hero,.tm-bold-benefits,.press-carousel,.wins-carousel,.wins-swipe,.stage-rail,.upcoming-rail,.go-public-preview,.peter-contact){direction:ltr}
html[dir=rtl] :is(.hero,.tm-bold-benefits,.press-carousel,.wins-carousel,.wins-swipe,.stage-rail,.upcoming-rail,.go-public-preview,.peter-contact) :is(h1,h2,h3,h4,p,li,dt,dd,small,figcaption,label,blockquote){direction:rtl;unicode-bidi:isolate}
html[dir=rtl] :is(.hero,.tm-bold-benefits,.press-carousel,.wins-carousel,.wins-swipe,.stage-rail,.upcoming-rail,.go-public-preview,.peter-contact) :is(a,button,span,strong,em){unicode-bidi:plaintext}
/* hero and contact: text column sits beside the photo, as on the English page */
html[dir=rtl] .hero .hero-copy :is(h1,h2,p),html[dir=rtl] .peter-contact-copy :is(h2,p),html[dir=rtl] .tm-bold-benefits :is(h2,h3,p){text-align:left}
html[dir=rtl] .hero .hero-label{padding-inline:21px;text-align:left}
/* Arabic script needs a little more line height than Latin display type */
html[dir=rtl] :is(h1,h2,h3){letter-spacing:0!important;line-height:1.25}
html[dir=rtl] .hero h1{line-height:1.15}
/* arrows point the reading way */
html[dir=rtl] .action-arrow{transform:scaleX(-1)}
/* photos keep their own shape */
html[dir=rtl] img{max-width:100%}
html[dir=rtl] img[width][height]:not([class*=hand]):not([class*=trouser]){height:auto}
html[dir=rtl] .hero img,html[dir=rtl] .peter-contact img{max-width:none}
/* long Arabic words in narrow cards */
html[dir=rtl] :is(p,li,h2,h3,dd){overflow-wrap:anywhere}
/* "Sign up with them. Practise with us." note sits beside the title: put it on the title's left */
html[dir=rtl] .upcoming-heading .tm-signup-note{left:auto!important;right:calc(100% + 40px)!important}
