/* Persian / RTL presentation. Keep code and technical identifiers LTR. */
html,
body {
  direction: rtl;
  text-align: right;
}

.content {
  direction: rtl;
  text-align: right;
}

.sidebar {
  text-align: right;
}

/* Apply RTL list indentation to the lesson body, not only the sidebar. */
.content ul,
.content ol {
  padding-right: 1.5em;
  padding-left: 0;
}

/* Inline technical identifiers should remain isolated and readable in RTL text. */
.content code {
  direction: ltr;
  unicode-bidi: isolate;
}

/* Code blocks and syntax-highlighted content use a consistent LTR layout. */
.content pre,
.content pre code,
.content pre .hljs {
  direction: ltr;
  text-align: left;
  unicode-bidi: normal;
}

.fa,
.icon-button {
  direction: ltr;
  unicode-bidi: isolate;
}
