/* ===================================================================
 * Per-article direction
 *
 * The chrome stays in the site's language; the article reads in its own.
 * An English article inside an RTL document otherwise renders with every
 * sentence's punctuation on the wrong end — ".remove completely",
 * "?Why Formula Stains Are Difficult to Remove" — which is the exact
 * defect this redesign was commissioned to fix.
 *
 * body carries sm-article-ltr or sm-article-rtl (functions.php).
 * ================================================================= */

.sm-article-ltr .sm-arthead,
.sm-article-ltr .sm-prose,
.sm-article-ltr .sm-artcta__body {
	direction: ltr;
	text-align: start;
}

.sm-article-rtl .sm-arthead,
.sm-article-rtl .sm-prose,
.sm-article-rtl .sm-artcta__body {
	direction: rtl;
	text-align: start;
}

/* Lists need the direction too, or the markers sit on the far side of the
   text they belong to. */
.sm-article-ltr .sm-prose ul,
.sm-article-ltr .sm-prose ol { direction: ltr; }
.sm-article-rtl .sm-prose ul,
.sm-article-rtl .sm-prose ol { direction: rtl; }

/* The contents list mirrors the article, not the chrome, so a reader can
   match an entry against the heading it points at. */
.sm-article-ltr .sm-toc ol { direction: ltr; }
.sm-article-rtl .sm-toc ol { direction: rtl; }

/* Dates and numerals inside an otherwise-Arabic byline must not be
   reordered by the bidi algorithm. */
.sm-byline time,
.sm-card__date { unicode-bidi: isolate; }
