/* Right-to-left overrides for the website (I18N-PLAN.md 16.25). Linked ONLY by pages with <html dir="rtl">, so the English
   stylesheet, which is inlined in every page, stays byte for byte what it was. Each rule mirrors one physical-direction
   declaration in the site's styles; test/rtl-css.test.ts lists those declarations and requires an override here or a
   written excuse there. `html[dir='rtl']` out-ranks Astro's scoped selectors. */
html[dir='rtl'] th,
html[dir='rtl'] td {
  text-align: right;
}
html[dir='rtl'] .prose th,
html[dir='rtl'] .prose td {
  text-align: right;
}
html[dir='rtl'] .mk {
  margin-right: 0;
  margin-left: 0.4rem;
}
html[dir='rtl'] .points li,
html[dir='rtl'] .tier li {
  padding-left: 0;
  padding-right: 1.15rem;
}
html[dir='rtl'] .points li::before,
html[dir='rtl'] .tier li::before {
  left: auto;
  right: 0;
}
html[dir='rtl'] .when {
  margin-left: 0;
  margin-right: auto;
}
html[dir='rtl'] .vlabel {
  margin-right: 0;
  margin-left: 0.35rem;
}
html[dir='rtl'] .broad span {
  margin-left: 0;
  margin-right: 0.4rem;
}
html[dir='rtl'] .alert {
  border-left: 1px solid rgb(var(--line));
  border-right: 3px solid rgb(var(--up));
}
html[dir='rtl'] .prose ul,
html[dir='rtl'] .prose ol {
  padding-left: 0;
  padding-right: 1.4rem;
}
html[dir='rtl'] main.wrap ul {
  padding-left: 0;
  padding-right: 1.3rem;
}
/* Code and terminal panes, URLs and addresses read left to right inside right-to-left text. */
html[dir='rtl'] pre,
html[dir='rtl'] code {
  direction: ltr;
  text-align: left;
  unicode-bidi: isolate;
}
html[dir='rtl'] .contact-form input,
html[dir='rtl'] .contact-form textarea {
  unicode-bidi: plaintext;
  text-align: start;
}
