/*
Theme Name: Kalam - RTL Stylesheet
Description: Native right-to-left layout rules, mirror transforms, and Urdu/Arabic typography optimizations for WordPress.
*/

html[dir="rtl"],
body.rtl,
body.kalam-rtl,
[dir="rtl"] {
  direction: rtl !important;
  unicode-bidi: embed;
  text-align: right;
}

/* Global Font & Line Height Overrides for RTL */
html[dir="rtl"] body,
body.rtl,
body.kalam-rtl {
  font-family: var(--kalam-font-urdu, 'Noto Nastaliq Urdu', serif);
  line-height: 2.1;
  text-align: right;
}

html[lang^="ar"] body,
body.rtl.lang-ar,
body.kalam-rtl.lang-ar {
  font-family: var(--kalam-font-arabic, 'Noto Naskh Arabic', 'Amiri', serif);
  line-height: 1.85;
}

/* Headings in RTL */
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3, html[dir="rtl"] h4, html[dir="rtl"] h5, html[dir="rtl"] h6,
body.rtl h1, body.rtl h2, body.rtl h3, body.rtl h4, body.rtl h5, body.rtl h6,
body.kalam-rtl h1, body.kalam-rtl h2, body.kalam-rtl h3, body.kalam-rtl h4, body.kalam-rtl h5, body.kalam-rtl h6 {
  line-height: 1.75;
  text-align: right;
}

/* Text Alignment & Floats */
html[dir="rtl"] .alignleft,
body.rtl .alignleft,
body.kalam-rtl .alignleft {
  float: right;
  margin: 0.5rem 0 1.5rem 1.5rem;
}

html[dir="rtl"] .alignright,
body.rtl .alignright,
body.kalam-rtl .alignright {
  float: left;
  margin: 0.5rem 1.5rem 1.5rem 0;
}

/* Blockquotes in RTL */
html[dir="rtl"] .wp-block-quote,
html[dir="rtl"] blockquote,
body.rtl .wp-block-quote,
body.rtl blockquote,
body.kalam-rtl .wp-block-quote,
body.kalam-rtl blockquote {
  border-right: 4px solid var(--kalam-primary);
  border-left: none;
  padding-right: 1.5rem;
  padding-left: 0.75rem;
  border-radius: 0.5rem 0 0 0.5rem;
  text-align: right;
}

/* Lists */
html[dir="rtl"] ul,
html[dir="rtl"] ol,
body.rtl ul,
body.rtl ol,
body.kalam-rtl ul,
body.kalam-rtl ol {
  padding-right: 1.5rem;
  padding-left: 0;
  text-align: right;
}

/* Code & Preformatted Blocks (Must remain strictly LTR) */
html[dir="rtl"] pre,
html[dir="rtl"] code,
html[dir="rtl"] kbd,
html[dir="rtl"] samp,
body.rtl pre,
body.rtl code,
body.rtl kbd,
body.rtl samp,
body.kalam-rtl pre,
body.kalam-rtl code,
body.kalam-rtl kbd,
body.kalam-rtl samp,
.ltr-text,
[dir="ltr"] {
  direction: ltr !important;
  text-align: left !important;
  unicode-bidi: isolate;
}

/* Input Fields for Email & URL in RTL (Must remain LTR for standard notation) */
html[dir="rtl"] input[type="email"],
html[dir="rtl"] input[type="url"],
html[dir="rtl"] input[type="tel"],
body.rtl input[type="email"],
body.rtl input[type="url"],
body.rtl input[type="tel"],
body.kalam-rtl input[type="email"],
body.kalam-rtl input[type="url"],
body.kalam-rtl input[type="tel"] {
  direction: ltr !important;
  text-align: left !important;
}

/* Tables in Content */
html[dir="rtl"] article:not(.post-dir-ltr) .kalam-prose table th,
html[dir="rtl"] article:not(.post-dir-ltr) .kalam-prose table td,
body.rtl article:not(.post-dir-ltr) .kalam-prose table th,
body.rtl article:not(.post-dir-ltr) .kalam-prose table td,
body.kalam-rtl article:not(.post-dir-ltr) .kalam-prose table th,
body.kalam-rtl article:not(.post-dir-ltr) .kalam-prose table td,
article.post-dir-rtl .kalam-prose table th,
article.post-dir-rtl .kalam-prose table td {
  text-align: right;
}

article.post-dir-ltr .kalam-prose table th,
article.post-dir-ltr .kalam-prose table td,
article.post-dir-ltr .entry-content table th,
article.post-dir-ltr .entry-content table td {
  text-align: left !important;
}

/* Header & Branding in RTL */
html[dir="rtl"] .header-inner,
body.rtl .header-inner,
body.kalam-rtl .header-inner {
  direction: rtl;
}

html[dir="rtl"] .site-branding,
body.rtl .site-branding,
body.kalam-rtl .site-branding {
  text-align: right;
}

html[dir="rtl"] .main-navigation ul,
body.rtl .main-navigation ul,
body.kalam-rtl .main-navigation ul {
  direction: rtl;
}

/* Desktop Navigation Submenu in RTL */
html[dir="rtl"] .main-navigation .sub-menu,
body.rtl .main-navigation .sub-menu,
body.kalam-rtl .main-navigation .sub-menu {
  left: auto !important;
  right: 0 !important;
  text-align: right;
  transform-origin: top right;
}

html[dir="rtl"] .main-navigation .sub-menu .sub-menu,
body.rtl .main-navigation .sub-menu .sub-menu,
body.kalam-rtl .main-navigation .sub-menu .sub-menu {
  right: 100% !important;
  left: auto !important;
}

/* Mobile Navigation Drawer in RTL (Slides smoothly from Right edge) */
html[dir="rtl"] .mobile-nav-panel,
body.rtl .mobile-nav-panel,
body.kalam-rtl .mobile-nav-panel {
  left: auto !important;
  right: 0 !important;
  transform: translateX(100%) !important;
  text-align: right;
  direction: rtl;
}

html[dir="rtl"] .mobile-nav-drawer.is-active .mobile-nav-panel,
body.rtl .mobile-nav-drawer.is-active .mobile-nav-panel,
body.kalam-rtl .mobile-nav-drawer.is-active .mobile-nav-panel {
  transform: translateX(0) !important;
}

html[dir="rtl"] .mobile-navigation-menu a,
body.rtl .mobile-navigation-menu a,
body.kalam-rtl .mobile-navigation-menu a {
  text-align: right;
}

html[dir="rtl"] .mobile-navigation-menu .sub-menu,
body.rtl .mobile-navigation-menu .sub-menu,
body.kalam-rtl .mobile-navigation-menu .sub-menu {
  padding-left: 0 !important;
  padding-right: 1.25rem !important;
  border-right: 2px solid var(--kalam-border);
  border-left: none;
}

/* Search Modal */
html[dir="rtl"] .search-modal-box,
body.rtl .search-modal-box,
body.kalam-rtl .search-modal-box {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .search-modal-header,
body.rtl .search-modal-header,
body.kalam-rtl .search-modal-header {
  direction: rtl;
}

html[dir="rtl"] .search-modal-body input[type="search"],
html[dir="rtl"] .search-modal-body input[type="text"],
body.rtl .search-modal-body input[type="search"],
body.rtl .search-modal-body input[type="text"],
body.kalam-rtl .search-modal-body input[type="search"],
body.kalam-rtl .search-modal-body input[type="text"] {
  direction: rtl;
  text-align: right;
}

/* Layout Wrapper & Sidebar Direction in RTL */
@media (min-width: 1024px) {
  /* Generic Archive / Index in RTL: Sidebar Right Setting (Main Content on Right, Sidebar on Left in RTL flow) */
  html[dir="rtl"] .kalam-layout-wrapper.kalam-has-sidebar.kalam-sidebar-right,
  body.rtl .kalam-layout-wrapper.kalam-has-sidebar.kalam-sidebar-right,
  body.kalam-rtl .kalam-layout-wrapper.kalam-has-sidebar.kalam-sidebar-right {
    grid-template-columns: minmax(0, 1fr) 320px;
    direction: rtl;
    width: 100%;
  }

  html[dir="rtl"] .kalam-layout-wrapper.kalam-has-sidebar.kalam-sidebar-right > .site-main,
  body.rtl .kalam-layout-wrapper.kalam-has-sidebar.kalam-sidebar-right > .site-main,
  body.kalam-rtl .kalam-layout-wrapper.kalam-has-sidebar.kalam-sidebar-right > .site-main {
    order: 1;
    min-width: 0;
    width: 100%;
  }

  html[dir="rtl"] .kalam-layout-wrapper.kalam-has-sidebar.kalam-sidebar-right > .widget-area,
  body.rtl .kalam-layout-wrapper.kalam-has-sidebar.kalam-sidebar-right > .widget-area,
  body.kalam-rtl .kalam-layout-wrapper.kalam-has-sidebar.kalam-sidebar-right > .widget-area {
    order: 2;
    min-width: 0;
    width: 100%;
  }

  /* Generic Archive / Index in RTL: Sidebar Left Setting */
  html[dir="rtl"] .kalam-layout-wrapper.kalam-has-sidebar.kalam-sidebar-left,
  body.rtl .kalam-layout-wrapper.kalam-has-sidebar.kalam-sidebar-left,
  body.kalam-rtl .kalam-layout-wrapper.kalam-has-sidebar.kalam-sidebar-left {
    grid-template-columns: 320px minmax(0, 1fr);
    direction: rtl;
    width: 100%;
  }

  html[dir="rtl"] .kalam-layout-wrapper.kalam-has-sidebar.kalam-sidebar-left > .widget-area,
  body.rtl .kalam-layout-wrapper.kalam-has-sidebar.kalam-sidebar-left > .widget-area,
  body.kalam-rtl .kalam-layout-wrapper.kalam-has-sidebar.kalam-sidebar-left > .widget-area {
    order: 1;
    min-width: 0;
    width: 100%;
  }

  html[dir="rtl"] .kalam-layout-wrapper.kalam-has-sidebar.kalam-sidebar-left > .site-main,
  body.rtl .kalam-layout-wrapper.kalam-has-sidebar.kalam-sidebar-left > .site-main,
  body.kalam-rtl .kalam-layout-wrapper.kalam-has-sidebar.kalam-sidebar-left > .site-main {
    order: 2;
    min-width: 0;
    width: 100%;
  }

  /*
   * ==========================================================================
   * DESKTOP SINGLE POST IN RTL (Sidebar LEFT | Main Article RIGHT)
   * Strictly scoped to Single Post layouts only (never applied to Homepage/Archive)
   * ==========================================================================
   */
  html[dir="rtl"] .kalam-single-layout-wrapper.kalam-has-sidebar,
  html[dir="rtl"] .kalam-single-layout-wrapper.kalam-sidebar-left,
  html[dir="rtl"] body.single .kalam-layout-wrapper.kalam-has-sidebar,
  html[dir="rtl"] body.single-post .kalam-layout-wrapper.kalam-has-sidebar,
  body.rtl.single .kalam-layout-wrapper.kalam-has-sidebar,
  body.rtl.single-post .kalam-layout-wrapper.kalam-has-sidebar,
  body.kalam-rtl.single .kalam-layout-wrapper.kalam-has-sidebar,
  body.kalam-rtl.single-post .kalam-layout-wrapper.kalam-has-sidebar,
  body.single.rtl .kalam-layout-wrapper.kalam-has-sidebar,
  body.single.kalam-rtl .kalam-layout-wrapper.kalam-has-sidebar,
  body.single-post.rtl .kalam-layout-wrapper.kalam-has-sidebar,
  body.single-post.kalam-rtl .kalam-layout-wrapper.kalam-has-sidebar {
    display: grid !important;
    grid-template-columns: 320px minmax(0, 1fr) !important;
    direction: ltr !important;
    width: 100%;
  }

  html[dir="rtl"] .kalam-single-layout-wrapper > .widget-area,
  html[dir="rtl"] body.single .kalam-layout-wrapper > .widget-area,
  html[dir="rtl"] body.single-post .kalam-layout-wrapper > .widget-area,
  body.rtl.single .kalam-layout-wrapper > .widget-area,
  body.rtl.single-post .kalam-layout-wrapper > .widget-area,
  body.kalam-rtl.single .kalam-layout-wrapper > .widget-area,
  body.kalam-rtl.single-post .kalam-layout-wrapper > .widget-area,
  body.single.rtl .kalam-layout-wrapper > .widget-area,
  body.single.kalam-rtl .kalam-layout-wrapper > .widget-area,
  body.single-post.rtl .kalam-layout-wrapper > .widget-area,
  body.single-post.kalam-rtl .kalam-layout-wrapper > .widget-area {
    order: 1 !important;
    grid-column: 1 !important;
    grid-row: 1 !important;
    min-width: 0 !important;
    width: 100% !important;
  }

  html[dir="rtl"] .kalam-single-layout-wrapper > .site-main,
  html[dir="rtl"] body.single .kalam-layout-wrapper > .site-main,
  html[dir="rtl"] body.single-post .kalam-layout-wrapper > .site-main,
  body.rtl.single .kalam-layout-wrapper > .site-main,
  body.rtl.single-post .kalam-layout-wrapper > .site-main,
  body.kalam-rtl.single .kalam-layout-wrapper > .site-main,
  body.kalam-rtl.single-post .kalam-layout-wrapper > .site-main,
  body.single.rtl .kalam-layout-wrapper > .site-main,
  body.single.kalam-rtl .kalam-layout-wrapper > .site-main,
  body.single-post.rtl .kalam-layout-wrapper > .site-main,
  body.single-post.kalam-rtl .kalam-layout-wrapper > .site-main {
    order: 2 !important;
    grid-column: 2 !important;
    grid-row: 1 !important;
    min-width: 0 !important;
    width: 100% !important;
  }

  /* Content inside site-main and widget-area retains natural RTL document direction */
  html[dir="rtl"] .kalam-single-layout-wrapper > .site-main,
  html[dir="rtl"] .kalam-single-layout-wrapper > .widget-area,
  body.rtl.single .kalam-layout-wrapper > .site-main,
  body.rtl.single .kalam-layout-wrapper > .widget-area,
  body.rtl.single-post .kalam-layout-wrapper > .site-main,
  body.rtl.single-post .kalam-layout-wrapper > .widget-area,
  body.kalam-rtl.single .kalam-layout-wrapper > .site-main,
  body.kalam-rtl.single .kalam-layout-wrapper > .widget-area,
  body.kalam-rtl.single-post .kalam-layout-wrapper > .site-main,
  body.kalam-rtl.single-post .kalam-layout-wrapper > .widget-area {
    direction: rtl;
    text-align: right;
  }
}

/* Breadcrumbs in RTL */
html[dir="rtl"] .kalam-breadcrumbs-nav:not(.post-dir-ltr),
body.rtl .kalam-breadcrumbs-nav:not(.post-dir-ltr),
body.kalam-rtl .kalam-breadcrumbs-nav:not(.post-dir-ltr) {
  direction: rtl;
  text-align: right;
}

/* Single Post Elements in RTL - Strictly Scoped to RTL Articles */
html[dir="rtl"] article.kalam-single-article:not(.post-dir-ltr),
html[dir="rtl"] article.kalam-single-article:not(.post-dir-ltr) .entry-header,
html[dir="rtl"] article.kalam-single-article:not(.post-dir-ltr) .entry-content,
html[dir="rtl"] article.kalam-single-article:not(.post-dir-ltr) .entry-title,
html[dir="rtl"] article.kalam-single-article:not(.post-dir-ltr) .entry-excerpt,
html[dir="rtl"] article.kalam-single-article:not(.post-dir-ltr) .kalam-prose,
body.rtl article.kalam-single-article:not(.post-dir-ltr),
body.rtl article.kalam-single-article:not(.post-dir-ltr) .entry-header,
body.rtl article.kalam-single-article:not(.post-dir-ltr) .entry-content,
body.rtl article.kalam-single-article:not(.post-dir-ltr) .entry-title,
body.rtl article.kalam-single-article:not(.post-dir-ltr) .entry-excerpt,
body.rtl article.kalam-single-article:not(.post-dir-ltr) .kalam-prose,
body.kalam-rtl article.kalam-single-article:not(.post-dir-ltr),
body.kalam-rtl article.kalam-single-article:not(.post-dir-ltr) .entry-header,
body.kalam-rtl article.kalam-single-article:not(.post-dir-ltr) .entry-content,
body.kalam-rtl article.kalam-single-article:not(.post-dir-ltr) .entry-title,
body.kalam-rtl article.kalam-single-article:not(.post-dir-ltr) .entry-excerpt,
body.kalam-rtl article.kalam-single-article:not(.post-dir-ltr) .kalam-prose,
article.kalam-single-article.post-dir-rtl,
article.kalam-single-article.post-dir-rtl .entry-header,
article.kalam-single-article.post-dir-rtl .entry-content,
article.kalam-single-article.post-dir-rtl .entry-title,
article.kalam-single-article.post-dir-rtl .entry-excerpt,
article.kalam-single-article.post-dir-rtl .kalam-prose {
  text-align: right;
  direction: rtl;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: normal;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  inline-size: 100%;
  max-inline-size: 100%;
  box-sizing: border-box;
}

html[dir="rtl"] article.kalam-single-article:not(.post-dir-ltr) .entry-content p,
html[dir="rtl"] article.kalam-single-article:not(.post-dir-ltr) .kalam-prose p,
body.rtl article.kalam-single-article:not(.post-dir-ltr) .entry-content p,
body.rtl article.kalam-single-article:not(.post-dir-ltr) .kalam-prose p,
body.kalam-rtl article.kalam-single-article:not(.post-dir-ltr) .entry-content p,
body.kalam-rtl article.kalam-single-article:not(.post-dir-ltr) .kalam-prose p,
article.kalam-single-article.post-dir-rtl .entry-content p,
article.kalam-single-article.post-dir-rtl .kalam-prose p {
  text-align: right;
  direction: rtl;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: normal;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  inline-size: 100%;
  max-inline-size: 100%;
  box-sizing: border-box;
}

/* Mixed Directional Runs & Inline Elements in RTL */
html[dir="rtl"] article.kalam-single-article:not(.post-dir-ltr) .entry-content span,
html[dir="rtl"] article.kalam-single-article:not(.post-dir-ltr) .entry-content a,
html[dir="rtl"] article.kalam-single-article:not(.post-dir-ltr) .entry-content strong,
html[dir="rtl"] article.kalam-single-article:not(.post-dir-ltr) .entry-content em,
html[dir="rtl"] article.kalam-single-article:not(.post-dir-ltr) .entry-content b,
html[dir="rtl"] article.kalam-single-article:not(.post-dir-ltr) .entry-content i,
html[dir="rtl"] article.kalam-single-article:not(.post-dir-ltr) .entry-content code,
html[dir="rtl"] article.kalam-single-article:not(.post-dir-ltr) .kalam-prose span,
html[dir="rtl"] article.kalam-single-article:not(.post-dir-ltr) .kalam-prose a,
html[dir="rtl"] article.kalam-single-article:not(.post-dir-ltr) .kalam-prose strong,
html[dir="rtl"] article.kalam-single-article:not(.post-dir-ltr) .kalam-prose em,
html[dir="rtl"] article.kalam-single-article:not(.post-dir-ltr) .kalam-prose b,
html[dir="rtl"] article.kalam-single-article:not(.post-dir-ltr) .kalam-prose i,
html[dir="rtl"] article.kalam-single-article:not(.post-dir-ltr) .kalam-prose code,
body.rtl article.kalam-single-article:not(.post-dir-ltr) .entry-content span,
body.rtl article.kalam-single-article:not(.post-dir-ltr) .entry-content a,
body.rtl article.kalam-single-article:not(.post-dir-ltr) .entry-content strong,
body.rtl article.kalam-single-article:not(.post-dir-ltr) .entry-content em,
body.rtl article.kalam-single-article:not(.post-dir-ltr) .entry-content b,
body.rtl article.kalam-single-article:not(.post-dir-ltr) .entry-content i,
body.rtl article.kalam-single-article:not(.post-dir-ltr) .entry-content code,
body.rtl article.kalam-single-article:not(.post-dir-ltr) .kalam-prose span,
body.rtl article.kalam-single-article:not(.post-dir-ltr) .kalam-prose a,
body.rtl article.kalam-single-article:not(.post-dir-ltr) .kalam-prose strong,
body.rtl article.kalam-single-article:not(.post-dir-ltr) .kalam-prose em,
body.rtl article.kalam-single-article:not(.post-dir-ltr) .kalam-prose b,
body.rtl article.kalam-single-article:not(.post-dir-ltr) .kalam-prose i,
body.rtl article.kalam-single-article:not(.post-dir-ltr) .kalam-prose code,
body.kalam-rtl article.kalam-single-article:not(.post-dir-ltr) .entry-content span,
body.kalam-rtl article.kalam-single-article:not(.post-dir-ltr) .entry-content a,
body.kalam-rtl article.kalam-single-article:not(.post-dir-ltr) .entry-content strong,
body.kalam-rtl article.kalam-single-article:not(.post-dir-ltr) .entry-content em,
body.kalam-rtl article.kalam-single-article:not(.post-dir-ltr) .entry-content b,
body.kalam-rtl article.kalam-single-article:not(.post-dir-ltr) .entry-content i,
body.kalam-rtl article.kalam-single-article:not(.post-dir-ltr) .entry-content code,
body.kalam-rtl article.kalam-single-article:not(.post-dir-ltr) .kalam-prose span,
body.kalam-rtl article.kalam-single-article:not(.post-dir-ltr) .kalam-prose a,
body.kalam-rtl article.kalam-single-article:not(.post-dir-ltr) .kalam-prose strong,
body.kalam-rtl article.kalam-single-article:not(.post-dir-ltr) .kalam-prose em,
body.kalam-rtl article.kalam-single-article:not(.post-dir-ltr) .kalam-prose b,
body.kalam-rtl article.kalam-single-article:not(.post-dir-ltr) .kalam-prose i,
body.kalam-rtl article.kalam-single-article:not(.post-dir-ltr) .kalam-prose code {
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: normal;
  max-width: 100%;
  box-sizing: border-box;
}

html[dir="rtl"] article.kalam-single-article:not(.post-dir-ltr) .entry-content bdi,
html[dir="rtl"] article.kalam-single-article:not(.post-dir-ltr) .kalam-prose bdi,
body.rtl article.kalam-single-article:not(.post-dir-ltr) .entry-content bdi,
body.rtl article.kalam-single-article:not(.post-dir-ltr) .kalam-prose bdi,
body.kalam-rtl article.kalam-single-article:not(.post-dir-ltr) .entry-content bdi,
body.kalam-rtl article.kalam-single-article:not(.post-dir-ltr) .kalam-prose bdi {
  unicode-bidi: isolate;
}

html[dir="rtl"] article.kalam-single-article:not(.post-dir-ltr) .entry-meta,
body.rtl article.kalam-single-article:not(.post-dir-ltr) .entry-meta,
body.kalam-rtl article.kalam-single-article:not(.post-dir-ltr) .entry-meta,
article.kalam-single-article.post-dir-rtl .entry-meta {
  direction: rtl;
  text-align: right;
  justify-content: flex-start;
  max-width: 100%;
  box-sizing: border-box;
}

html[dir="rtl"] article.kalam-single-article:not(.post-dir-ltr) .author-bio-inner,
body.rtl article.kalam-single-article:not(.post-dir-ltr) .author-bio-inner,
body.kalam-rtl article.kalam-single-article:not(.post-dir-ltr) .author-bio-inner,
article.kalam-single-article.post-dir-rtl .author-bio-inner {
  text-align: right;
  direction: rtl;
  max-width: 100%;
  box-sizing: border-box;
}

html[dir="rtl"] article.kalam-single-article:not(.post-dir-ltr) .author-header-line,
body.rtl article.kalam-single-article:not(.post-dir-ltr) .author-header-line,
body.kalam-rtl article.kalam-single-article:not(.post-dir-ltr) .author-header-line,
article.kalam-single-article.post-dir-rtl .author-header-line {
  justify-content: flex-start;
}

/* Post Navigation in RTL */
html[dir="rtl"] article.kalam-single-article:not(.post-dir-ltr) .kalam-post-navigation,
body.rtl article.kalam-single-article:not(.post-dir-ltr) .kalam-post-navigation,
body.kalam-rtl article.kalam-single-article:not(.post-dir-ltr) .kalam-post-navigation,
article.kalam-single-article.post-dir-rtl .kalam-post-navigation {
  direction: rtl;
}

html[dir="rtl"] article.kalam-single-article:not(.post-dir-ltr) .nav-card,
body.rtl article.kalam-single-article:not(.post-dir-ltr) .nav-card,
body.kalam-rtl article.kalam-single-article:not(.post-dir-ltr) .nav-card,
article.kalam-single-article.post-dir-rtl .nav-card {
  text-align: right;
}

/* Archive Cards & Badges in RTL */
html[dir="rtl"] .archive-card-cat-badge,
body.rtl .archive-card-cat-badge,
body.kalam-rtl .archive-card-cat-badge {
  left: auto !important;
  right: 0.75rem !important;
}

html[dir="rtl"] .archive-card-body,
body.rtl .archive-card-body,
body.kalam-rtl .archive-card-body {
  text-align: right;
}

html[dir="rtl"] .archive-card-meta,
body.rtl .archive-card-meta,
body.kalam-rtl .archive-card-meta {
  direction: rtl;
  text-align: right;
}

/* Social Share Bar in RTL */
html[dir="rtl"] article.kalam-single-article:not(.post-dir-ltr) .kalam-social-share-container,
body.rtl article.kalam-single-article:not(.post-dir-ltr) .kalam-social-share-container,
body.kalam-rtl article.kalam-single-article:not(.post-dir-ltr) .kalam-social-share-container,
article.kalam-single-article.post-dir-rtl .kalam-social-share-container {
  direction: rtl;
  text-align: right;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

html[dir="rtl"] article.kalam-single-article:not(.post-dir-ltr) .kalam-share-header,
body.rtl article.kalam-single-article:not(.post-dir-ltr) .kalam-share-header,
body.kalam-rtl article.kalam-single-article:not(.post-dir-ltr) .kalam-share-header,
article.kalam-single-article.post-dir-rtl .kalam-share-header {
  direction: rtl;
  justify-content: flex-start;
  max-width: 100%;
  box-sizing: border-box;
}

html[dir="rtl"] article.kalam-single-article:not(.post-dir-ltr) .kalam-share-buttons,
body.rtl article.kalam-single-article:not(.post-dir-ltr) .kalam-share-buttons,
body.kalam-rtl article.kalam-single-article:not(.post-dir-ltr) .kalam-share-buttons,
article.kalam-single-article.post-dir-rtl .kalam-share-buttons {
  direction: rtl;
  justify-content: flex-start;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

html[dir="rtl"] .kalam-share-btn,
body.rtl .kalam-share-btn,
body.kalam-rtl .kalam-share-btn {
  box-sizing: border-box;
}

/* Sidebar Widgets in RTL */
html[dir="rtl"] .kalam-sidebar,
body.rtl .kalam-sidebar,
body.kalam-rtl .kalam-sidebar {
  text-align: right;
}

html[dir="rtl"] .kalam-sidebar .widget-title,
body.rtl .kalam-sidebar .widget-title,
body.kalam-rtl .kalam-sidebar .widget-title {
  text-align: right;
}

/* Comments Area in RTL */
html[dir="rtl"] article.kalam-single-article:not(.post-dir-ltr) .comments-area,
html[dir="rtl"] article.kalam-single-article:not(.post-dir-ltr) .comments-title,
html[dir="rtl"] article.kalam-single-article:not(.post-dir-ltr) .comment-body,
body.rtl article.kalam-single-article:not(.post-dir-ltr) .comments-area,
body.rtl article.kalam-single-article:not(.post-dir-ltr) .comments-title,
body.rtl article.kalam-single-article:not(.post-dir-ltr) .comment-body,
body.kalam-rtl article.kalam-single-article:not(.post-dir-ltr) .comments-area,
body.kalam-rtl article.kalam-single-article:not(.post-dir-ltr) .comments-title,
body.kalam-rtl article.kalam-single-article:not(.post-dir-ltr) .comment-body,
article.kalam-single-article.post-dir-rtl .comments-area,
article.kalam-single-article.post-dir-rtl .comments-title,
article.kalam-single-article.post-dir-rtl .comment-body {
  text-align: right;
  direction: rtl;
}

html[dir="rtl"] article.kalam-single-article:not(.post-dir-ltr) .comment-list .children,
body.rtl article.kalam-single-article:not(.post-dir-ltr) .comment-list .children,
body.kalam-rtl article.kalam-single-article:not(.post-dir-ltr) .comment-list .children,
article.kalam-single-article.post-dir-rtl .comment-list .children {
  margin-left: 0 !important;
  margin-right: 1.75rem !important;
  padding-left: 0 !important;
  padding-right: 1rem !important;
  border-right: 2px solid var(--kalam-border);
  border-left: none;
}

@media (max-width: 640px) {
  html[dir="rtl"] .comment-list .children,
  body.rtl .comment-list .children,
  body.kalam-rtl .comment-list .children {
    margin-right: 0.75rem !important;
    padding-right: 0.5rem !important;
  }
}

/* Footer Info Bar in RTL */
html[dir="rtl"] .site-footer,
html[dir="rtl"] .info-inner,
body.rtl .site-footer,
body.rtl .info-inner,
body.kalam-rtl .site-footer,
body.kalam-rtl .info-inner {
  direction: rtl;
  text-align: right;
}

/* ==========================================================================
   FINAL SCOPED LTR OVERRIDES (English & Left-to-Right Posts in RTL Context)
   ========================================================================== */

/* 1. Scoped Article Container */
html[dir="rtl"] article.post-dir-ltr,
body.rtl article.post-dir-ltr,
body.kalam-rtl article.post-dir-ltr,
article.post-dir-ltr,
html[dir="rtl"] [dir="ltr"].kalam-single-article,
body.rtl [dir="ltr"].kalam-single-article,
[dir="ltr"].kalam-single-article,
[dir="ltr"].kalam-single-post-wrapper {
  display: block;
  visibility: visible;
  min-width: 0;
  width: 100%;
  direction: ltr !important;
  text-align: left !important;
  unicode-bidi: isolate;
}

/* 2. Article Title */
html[dir="rtl"] article.post-dir-ltr .entry-title,
html[dir="rtl"] article.post-dir-ltr .single-post-title,
body.rtl article.post-dir-ltr .entry-title,
body.rtl article.post-dir-ltr .single-post-title,
body.kalam-rtl article.post-dir-ltr .entry-title,
body.kalam-rtl article.post-dir-ltr .single-post-title,
article.post-dir-ltr .entry-title,
article.post-dir-ltr .single-post-title,
article.post-dir-ltr .archive-card-title,
article.post-dir-ltr .kalam-latest-card-title,
article.post-dir-ltr .related-post-title {
  direction: ltr !important;
  text-align: left !important;
  max-width: 100%;
  min-width: 0;
  font-family: var(--kalam-font-sans, "Plus Jakarta Sans", system-ui, sans-serif);
  line-height: 1.35;
}

/* 3. Article Excerpt / Lead */
html[dir="rtl"] article.post-dir-ltr .entry-excerpt,
html[dir="rtl"] article.post-dir-ltr .post-excerpt-intro,
body.rtl article.post-dir-ltr .entry-excerpt,
body.rtl article.post-dir-ltr .post-excerpt-intro,
body.kalam-rtl article.post-dir-ltr .entry-excerpt,
body.kalam-rtl article.post-dir-ltr .post-excerpt-intro,
article.post-dir-ltr .entry-excerpt,
article.post-dir-ltr .post-excerpt-intro,
article.post-dir-ltr .archive-card-excerpt,
article.post-dir-ltr .kalam-latest-card-excerpt {
  direction: ltr !important;
  text-align: left !important;
  font-family: var(--kalam-font-sans, "Plus Jakarta Sans", system-ui, sans-serif);
  line-height: 1.65;
}

/* 4. Article Meta Bar */
html[dir="rtl"] article.post-dir-ltr .entry-meta,
html[dir="rtl"] article.post-dir-ltr .post-meta-bar,
body.rtl article.post-dir-ltr .entry-meta,
body.rtl article.post-dir-ltr .post-meta-bar,
body.kalam-rtl article.post-dir-ltr .entry-meta,
body.kalam-rtl article.post-dir-ltr .post-meta-bar,
article.post-dir-ltr .entry-meta,
article.post-dir-ltr .post-meta-bar,
article.post-dir-ltr .archive-card-meta {
  direction: ltr !important;
  text-align: left !important;
  justify-content: flex-start;
}

/* 5. Article Content & Prose Containers */
html[dir="rtl"] article.post-dir-ltr .entry-content,
html[dir="rtl"] article.post-dir-ltr .article-body-content,
html[dir="rtl"] article.post-dir-ltr .kalam-prose,
body.rtl article.post-dir-ltr .entry-content,
body.rtl article.post-dir-ltr .article-body-content,
body.rtl article.post-dir-ltr .kalam-prose,
body.kalam-rtl article.post-dir-ltr .entry-content,
body.kalam-rtl article.post-dir-ltr .article-body-content,
body.kalam-rtl article.post-dir-ltr .kalam-prose,
article.post-dir-ltr .entry-content,
article.post-dir-ltr .article-body-content,
article.post-dir-ltr .kalam-prose {
  display: block;
  visibility: visible;
  min-width: 0;
  width: 100%;
  direction: ltr !important;
  text-align: left !important;
  overflow-wrap: break-word;
  word-break: normal;
  font-family: var(--kalam-font-sans, "Plus Jakarta Sans", system-ui, sans-serif);
  line-height: 1.7;
}

/* 6. Content Paragraphs */
html[dir="rtl"] article.post-dir-ltr .entry-content p,
html[dir="rtl"] article.post-dir-ltr .article-body-content p,
html[dir="rtl"] article.post-dir-ltr .kalam-prose p,
body.rtl article.post-dir-ltr .entry-content p,
body.rtl article.post-dir-ltr .article-body-content p,
body.rtl article.post-dir-ltr .kalam-prose p,
body.kalam-rtl article.post-dir-ltr .entry-content p,
body.kalam-rtl article.post-dir-ltr .article-body-content p,
body.kalam-rtl article.post-dir-ltr .kalam-prose p,
article.post-dir-ltr .entry-content p,
article.post-dir-ltr .article-body-content p,
article.post-dir-ltr .kalam-prose p {
  direction: ltr !important;
  text-align: left !important;
  font-family: var(--kalam-font-sans, "Plus Jakarta Sans", system-ui, sans-serif);
  line-height: 1.7;
}

/* 7. Content Headings */
html[dir="rtl"] article.post-dir-ltr .entry-content h1,
html[dir="rtl"] article.post-dir-ltr .entry-content h2,
html[dir="rtl"] article.post-dir-ltr .entry-content h3,
html[dir="rtl"] article.post-dir-ltr .entry-content h4,
html[dir="rtl"] article.post-dir-ltr .entry-content h5,
html[dir="rtl"] article.post-dir-ltr .entry-content h6,
html[dir="rtl"] article.post-dir-ltr .article-body-content h1,
html[dir="rtl"] article.post-dir-ltr .article-body-content h2,
html[dir="rtl"] article.post-dir-ltr .article-body-content h3,
html[dir="rtl"] article.post-dir-ltr .article-body-content h4,
html[dir="rtl"] article.post-dir-ltr .article-body-content h5,
html[dir="rtl"] article.post-dir-ltr .article-body-content h6,
html[dir="rtl"] article.post-dir-ltr .kalam-prose h1,
html[dir="rtl"] article.post-dir-ltr .kalam-prose h2,
html[dir="rtl"] article.post-dir-ltr .kalam-prose h3,
html[dir="rtl"] article.post-dir-ltr .kalam-prose h4,
html[dir="rtl"] article.post-dir-ltr .kalam-prose h5,
html[dir="rtl"] article.post-dir-ltr .kalam-prose h6,
body.rtl article.post-dir-ltr .entry-content h1,
body.rtl article.post-dir-ltr .entry-content h2,
body.rtl article.post-dir-ltr .entry-content h3,
body.rtl article.post-dir-ltr .entry-content h4,
body.rtl article.post-dir-ltr .entry-content h5,
body.rtl article.post-dir-ltr .entry-content h6,
body.rtl article.post-dir-ltr .article-body-content h1,
body.rtl article.post-dir-ltr .article-body-content h2,
body.rtl article.post-dir-ltr .article-body-content h3,
body.rtl article.post-dir-ltr .article-body-content h4,
body.rtl article.post-dir-ltr .article-body-content h5,
body.rtl article.post-dir-ltr .article-body-content h6,
body.rtl article.post-dir-ltr .kalam-prose h1,
body.rtl article.post-dir-ltr .kalam-prose h2,
body.rtl article.post-dir-ltr .kalam-prose h3,
body.rtl article.post-dir-ltr .kalam-prose h4,
body.rtl article.post-dir-ltr .kalam-prose h5,
body.rtl article.post-dir-ltr .kalam-prose h6,
body.kalam-rtl article.post-dir-ltr .entry-content h1,
body.kalam-rtl article.post-dir-ltr .entry-content h2,
body.kalam-rtl article.post-dir-ltr .entry-content h3,
body.kalam-rtl article.post-dir-ltr .entry-content h4,
body.kalam-rtl article.post-dir-ltr .entry-content h5,
body.kalam-rtl article.post-dir-ltr .entry-content h6,
body.kalam-rtl article.post-dir-ltr .article-body-content h1,
body.kalam-rtl article.post-dir-ltr .article-body-content h2,
body.kalam-rtl article.post-dir-ltr .article-body-content h3,
body.kalam-rtl article.post-dir-ltr .article-body-content h4,
body.kalam-rtl article.post-dir-ltr .article-body-content h5,
body.kalam-rtl article.post-dir-ltr .article-body-content h6,
body.kalam-rtl article.post-dir-ltr .kalam-prose h1,
body.kalam-rtl article.post-dir-ltr .kalam-prose h2,
body.kalam-rtl article.post-dir-ltr .kalam-prose h3,
body.kalam-rtl article.post-dir-ltr .kalam-prose h4,
body.kalam-rtl article.post-dir-ltr .kalam-prose h5,
body.kalam-rtl article.post-dir-ltr .kalam-prose h6,
article.post-dir-ltr .entry-content h1,
article.post-dir-ltr .entry-content h2,
article.post-dir-ltr .entry-content h3,
article.post-dir-ltr .entry-content h4,
article.post-dir-ltr .entry-content h5,
article.post-dir-ltr .entry-content h6,
article.post-dir-ltr .article-body-content h1,
article.post-dir-ltr .article-body-content h2,
article.post-dir-ltr .article-body-content h3,
article.post-dir-ltr .article-body-content h4,
article.post-dir-ltr .article-body-content h5,
article.post-dir-ltr .article-body-content h6,
article.post-dir-ltr .kalam-prose h1,
article.post-dir-ltr .kalam-prose h2,
article.post-dir-ltr .kalam-prose h3,
article.post-dir-ltr .kalam-prose h4,
article.post-dir-ltr .kalam-prose h5,
article.post-dir-ltr .kalam-prose h6 {
  direction: ltr !important;
  text-align: left !important;
  font-family: var(--kalam-font-sans, "Plus Jakarta Sans", system-ui, sans-serif);
  line-height: 1.35;
}

/* 8. Lists & Blockquotes */
html[dir="rtl"] article.post-dir-ltr .entry-content ul,
html[dir="rtl"] article.post-dir-ltr .entry-content ol,
html[dir="rtl"] article.post-dir-ltr .article-body-content ul,
html[dir="rtl"] article.post-dir-ltr .article-body-content ol,
html[dir="rtl"] article.post-dir-ltr .kalam-prose ul,
html[dir="rtl"] article.post-dir-ltr .kalam-prose ol,
body.rtl article.post-dir-ltr .entry-content ul,
body.rtl article.post-dir-ltr .entry-content ol,
body.rtl article.post-dir-ltr .article-body-content ul,
body.rtl article.post-dir-ltr .article-body-content ol,
body.rtl article.post-dir-ltr .kalam-prose ul,
body.rtl article.post-dir-ltr .kalam-prose ol,
body.kalam-rtl article.post-dir-ltr .entry-content ul,
body.kalam-rtl article.post-dir-ltr .entry-content ol,
body.kalam-rtl article.post-dir-ltr .article-body-content ul,
body.kalam-rtl article.post-dir-ltr .article-body-content ol,
body.kalam-rtl article.post-dir-ltr .kalam-prose ul,
body.kalam-rtl article.post-dir-ltr .kalam-prose ol,
article.post-dir-ltr .entry-content ul,
article.post-dir-ltr .entry-content ol,
article.post-dir-ltr .article-body-content ul,
article.post-dir-ltr .article-body-content ol,
article.post-dir-ltr .kalam-prose ul,
article.post-dir-ltr .kalam-prose ol {
  direction: ltr !important;
  text-align: left !important;
  padding-left: 1.5rem;
  padding-right: 0;
}

html[dir="rtl"] article.post-dir-ltr .entry-content blockquote,
html[dir="rtl"] article.post-dir-ltr .article-body-content blockquote,
html[dir="rtl"] article.post-dir-ltr .kalam-prose blockquote,
body.rtl article.post-dir-ltr .entry-content blockquote,
body.rtl article.post-dir-ltr .article-body-content blockquote,
body.rtl article.post-dir-ltr .kalam-prose blockquote,
body.kalam-rtl article.post-dir-ltr .entry-content blockquote,
body.kalam-rtl article.post-dir-ltr .article-body-content blockquote,
body.kalam-rtl article.post-dir-ltr .kalam-prose blockquote,
article.post-dir-ltr .entry-content blockquote,
article.post-dir-ltr .article-body-content blockquote,
article.post-dir-ltr .kalam-prose blockquote {
  direction: ltr !important;
  text-align: left !important;
  border-left: 3px solid var(--kalam-primary, #0f766e);
  border-right: none;
  padding-left: 1rem;
  padding-right: 0;
}

/* 8b. Wide Gutenberg & Embed Element Containment for LTR Articles */
article.post-dir-ltr .entry-content img,
article.post-dir-ltr .entry-content figure,
article.post-dir-ltr .entry-content video,
article.post-dir-ltr .entry-content iframe,
article.post-dir-ltr .entry-content embed,
article.post-dir-ltr .entry-content object,
article.post-dir-ltr .entry-content table,
article.post-dir-ltr .entry-content pre,
article.post-dir-ltr .article-body-content img,
article.post-dir-ltr .article-body-content figure,
article.post-dir-ltr .article-body-content video,
article.post-dir-ltr .article-body-content iframe,
article.post-dir-ltr .article-body-content embed,
article.post-dir-ltr .article-body-content object,
article.post-dir-ltr .article-body-content table,
article.post-dir-ltr .article-body-content pre,
article.post-dir-ltr .kalam-prose img,
article.post-dir-ltr .kalam-prose figure,
article.post-dir-ltr .kalam-prose video,
article.post-dir-ltr .kalam-prose iframe,
article.post-dir-ltr .kalam-prose embed,
article.post-dir-ltr .kalam-prose object,
article.post-dir-ltr .kalam-prose table,
article.post-dir-ltr .kalam-prose pre {
  max-width: 100%;
  box-sizing: border-box;
}

/* Local Horizontal Scrolling for Tables inside LTR Articles */
article.post-dir-ltr .wp-block-table,
article.post-dir-ltr .overflow-x-auto {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}

article.post-dir-ltr .wp-block-table table,
article.post-dir-ltr .overflow-x-auto table {
  max-width: none;
  box-sizing: border-box;
}

article.post-dir-ltr .entry-content > table,
article.post-dir-ltr .article-body-content > table,
article.post-dir-ltr .kalam-prose > table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}

/* Preformatted Code Blocks */
article.post-dir-ltr .entry-content pre,
article.post-dir-ltr .article-body-content pre,
article.post-dir-ltr .kalam-prose pre {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}

/* 9. Tags, Author Bio, Breadcrumbs & Comments */
html[dir="rtl"] article.post-dir-ltr .entry-tags,
html[dir="rtl"] article.post-dir-ltr .tag-pills,
body.rtl article.post-dir-ltr .entry-tags,
body.rtl article.post-dir-ltr .tag-pills,
article.post-dir-ltr .entry-tags,
article.post-dir-ltr .tag-pills {
  direction: ltr !important;
  text-align: left !important;
}

html[dir="rtl"] article.post-dir-ltr .author-bio-inner,
body.rtl article.post-dir-ltr .author-bio-inner,
body.kalam-rtl article.post-dir-ltr .author-bio-inner,
article.post-dir-ltr .author-bio-inner {
  direction: ltr !important;
  text-align: left !important;
}

html[dir="rtl"] article.post-dir-ltr .author-header-line,
body.rtl article.post-dir-ltr .author-header-line,
body.kalam-rtl article.post-dir-ltr .author-header-line,
article.post-dir-ltr .author-header-line {
  justify-content: flex-start;
}

html[dir="rtl"] article.post-dir-ltr .kalam-breadcrumbs-nav,
html[dir="rtl"] article.post-dir-ltr .kalam-breadcrumbs,
body.rtl article.post-dir-ltr .kalam-breadcrumbs-nav,
body.rtl article.post-dir-ltr .kalam-breadcrumbs,
article.post-dir-ltr .kalam-breadcrumbs-nav,
article.post-dir-ltr .kalam-breadcrumbs {
  direction: ltr !important;
  text-align: left !important;
}

html[dir="rtl"] article.post-dir-ltr .comments-area,
html[dir="rtl"] article.post-dir-ltr .comment-body,
body.rtl article.post-dir-ltr .comments-area,
body.rtl article.post-dir-ltr .comment-body,
article.post-dir-ltr .comments-area,
article.post-dir-ltr .comment-body {
  direction: ltr !important;
  text-align: left !important;
}

html[dir="rtl"] article.post-dir-ltr .comment-list .children,
body.rtl article.post-dir-ltr .comment-list .children,
body.kalam-rtl article.post-dir-ltr .comment-list .children,
article.post-dir-ltr .comment-list .children {
  margin-left: 1.75rem !important;
  margin-right: 0 !important;
  padding-left: 1rem !important;
  padding-right: 0 !important;
  border-left: 2px solid var(--kalam-border, #e5e5e5) !important;
  border-right: none !important;
}

/* 10. Mobile Responsive Overrides */
@media (max-width: 640px) {
  html[dir="rtl"] article.post-dir-ltr,
  body.rtl article.post-dir-ltr,
  body.kalam-rtl article.post-dir-ltr,
  article.post-dir-ltr {
    display: block;
    visibility: visible;
    min-width: 0;
    width: 100%;
    direction: ltr !important;
    text-align: left !important;
  }

  html[dir="rtl"] article.post-dir-ltr .single-post-title,
  html[dir="rtl"] article.post-dir-ltr .entry-title,
  body.rtl article.post-dir-ltr .single-post-title,
  body.rtl article.post-dir-ltr .entry-title,
  body.kalam-rtl article.post-dir-ltr .single-post-title,
  body.kalam-rtl article.post-dir-ltr .entry-title,
  article.post-dir-ltr .single-post-title,
  article.post-dir-ltr .entry-title {
    direction: ltr !important;
    text-align: left !important;
    max-width: 100%;
    min-width: 0;
  }

  html[dir="rtl"] article.post-dir-ltr .article-body-content,
  html[dir="rtl"] article.post-dir-ltr .entry-content,
  html[dir="rtl"] article.post-dir-ltr .kalam-prose,
  body.rtl article.post-dir-ltr .article-body-content,
  body.rtl article.post-dir-ltr .entry-content,
  body.rtl article.post-dir-ltr .kalam-prose,
  body.kalam-rtl article.post-dir-ltr .article-body-content,
  body.kalam-rtl article.post-dir-ltr .entry-content,
  body.kalam-rtl article.post-dir-ltr .kalam-prose,
  article.post-dir-ltr .article-body-content,
  article.post-dir-ltr .entry-content,
  article.post-dir-ltr .kalam-prose {
    display: block;
    visibility: visible;
    min-width: 0;
    width: 100%;
    direction: ltr !important;
    text-align: left !important;
    overflow-wrap: break-word;
    word-break: normal;
  }

  html[dir="rtl"] article.post-dir-ltr .author-bio-inner,
  body.rtl article.post-dir-ltr .author-bio-inner,
  body.kalam-rtl article.post-dir-ltr .author-bio-inner,
  article.post-dir-ltr .author-bio-inner {
    align-items: flex-start;
    text-align: left !important;
    direction: ltr !important;
  }

  html[dir="rtl"] article.post-dir-ltr .author-header-line,
  body.rtl article.post-dir-ltr .author-header-line,
  body.kalam-rtl article.post-dir-ltr .author-header-line,
  article.post-dir-ltr .author-header-line {
    justify-content: flex-start;
  }

  html[dir="rtl"] article.post-dir-ltr .comment-list .children,
  body.rtl article.post-dir-ltr .comment-list .children,
  body.kalam-rtl article.post-dir-ltr .comment-list .children,
  article.post-dir-ltr .comment-list .children {
    margin-left: 0.75rem !important;
    padding-left: 0.5rem !important;
  }
}