/**
 * Mennati Researcher Theme — rtl.css
 * Overrides layout rules for right-to-left Persian text.
 */

body.rtl,
html[dir="rtl"] body {
  direction: rtl;
  text-align: right;
  font-family: 'Vazirmatn', system-ui, -apple-system, sans-serif;
}

body.rtl h1,
body.rtl h2,
body.rtl h3,
body.rtl h4,
body.rtl h5,
body.rtl h6 {
  font-family: 'Vazirmatn', system-ui, -apple-system, sans-serif;
  letter-spacing: 0;
}

/* Header Adjustments */
body.rtl #site-header {
  left: 0;
  right: 0;
}

body.rtl .nav-inner {
  flex-direction: row-reverse;
}

body.rtl .nav-right-wrapper {
  flex-direction: row-reverse;
}

body.rtl .menu-container {
  left: auto;
  right: 0;
}

/* Navigation Lists */
body.rtl #nav-menu-list {
  padding-left: 0;
  padding-right: 0;
  flex-direction: row-reverse;
}

body.rtl #nav-menu-list li {
  margin-right: 0;
  margin-left: 1.5rem;
}

/* Hero Section */
body.rtl .hero__buttons {
  justify-content: flex-start;
  gap: 1.5rem;
}

body.rtl .section-label::before {
  margin-right: 0;
  margin-left: 10px;
}

/* Bio Journey Stage Cards */
body.rtl .journey-step-card {
  grid-template-columns: 1fr 50px;
  text-align: right;
}

body.rtl .journey-step-num {
  grid-column: 2;
  text-align: left;
}

body.rtl .journey-step-body {
  grid-column: 1;
  grid-row: 1;
}

/* Sample Submission Workflow Timeline */
body.rtl .workflow-step-item::after {
  content: '←';
  right: auto;
  left: -1.4rem;
}

body.rtl .workflow-step-item:last-child::after {
  display: none;
}

/* Cards & Lists */
body.rtl .card__link-more svg {
  transform: scaleX(-1);
}

body.rtl .breadcrumbs .sep {
  transform: scaleX(-1);
  display: inline-block;
}

/* Footer Adjustments */
body.rtl .footer-grid {
  direction: rtl;
}

body.rtl .footer-socials {
  justify-content: flex-start;
}

body.rtl .footer-contact-list li {
  padding-left: 0;
  padding-right: 1.5rem;
}

body.rtl .footer-contact-list li::before {
  left: auto;
  right: 0;
}

/* Utilities */
body.rtl .text-right-ltr {
  text-align: left;
}

body.rtl .text-left-ltr {
  text-align: right;
}

@media (max-width: 768px) {
  body.rtl .menu-container {
    left: 0;
    right: auto;
    transform: translateX(-100%);
  }

  body.rtl .menu-container.is-open {
    transform: translateX(0);
  }
}
