html[dir="rtl"] body {
  text-align: start;
}

html[dir="rtl"] :is(h1, h2, h3, h4, p, button, a, small, span) {
  letter-spacing: normal !important;
}

html[dir="rtl"] :is(.project-detail-content, .project-section, .project-breadcrumb, .about-text) {
  text-align: start;
}

html[dir="rtl"] #home .about-text p.hero-entry-copy {
  text-align: right !important;
}

html[dir="rtl"] #home .pl-hero-title :is(.hero-line-row, .hero-rotator, .hero-rotator span) {
  text-align: start !important;
  line-height: 1.3 !important;
}

html[dir="rtl"] #home .pl-hero-title .hero-rotator span {
  right: 0 !important;
  left: auto !important;
}

@media (min-width: 768px) {
  html[dir="rtl"] #home .hero-rotator span:nth-child(3) {
    font-size: .85em;
  }
}

html[dir="rtl"] :is(.katex, [data-expression], input[type="number"], input[type="email"], .club-rail, .project-katex, .heatmap, #chart svg, .methodology-viewport, .process-horizontal-guide, .pl-area-nav__items) {
  direction: ltr;
  unicode-bidi: isolate;
}

html[dir="rtl"] :is(.process-horizontal-panel, .pl-area-chip, .club-button) {
  direction: rtl;
}

html[dir="rtl"] .language-menu {
  right: auto;
  left: 0;
}
