/* Editorial reading surfaces only. Figure, SVG, canvas and iframe palettes stay authored. */
body {
  background: #fff !important;
  color: #000 !important;
}
:is(.post-body, .article-body, .article-content, .reading, .post-hero, main > article, body > article, article.blog-post, main.s4-article, main#content) {
  background-color: #fff !important;
  color: #000 !important;
  color-scheme: light;
}
.post-hero {
  background-image: none !important;
  border-color: #d0d0d0 !important;
}
:is(.post-hero, .article-header) :is(h1, a, .deck, .byline, [class^="post-hero__"]) {
  color: #000 !important;
  text-shadow: none !important;
}
:is(.post-hero__tag, .post-hero__back) {
  background-color: #fff !important;
  border-color: #888 !important;
}
:is(.post-body, .article-body, .article-content, .reading, main > article, body > article, article.blog-post, main.s4-article, main#content)
  :is(h1, h2, h3, h4, p, li, dt, dd, a:not([class*="btn"], [class*="button"], [role="button"]), b, strong, em, small, time, figcaption, cite, caption, th, td, code):not(svg *, canvas *, iframe *, [data-chart] *, [data-visualization] *, [class*="chart"] *, [class*="diagram"] *, [class*="plot"] *, [class*="viz"] *) {
  color: #000 !important;
}
:is(.post-body, .article-body, .article-content, .reading, main > article, body > article, article.blog-post, main.s4-article, main#content)
  :is(blockquote, pre, .post-callout, .callout, .takeaway, .key-point, .evidence-note, .sources, th, td):not(figure *, [data-chart] *, [data-visualization] *, [class*="chart"] *, [class*="diagram"] *, [class*="plot"] *, [class*="viz"] *) {
  background: #fff !important;
  border-color: #aaa !important;
  color: #000 !important;
}
:is(.post-body, .article-body, .article-content, .reading, main > article, body > article, article.blog-post, main.s4-article, main#content) blockquote {
  border-left: 0 !important;
  border-top: 1px solid #bbb;
  border-bottom: 1px solid #bbb;
}
:is(.post-body, .article-body, .article-content, .reading, main > article, body > article, article.blog-post, main.s4-article, main#content) a:not([class*="btn"], [class*="button"], [role="button"], [class*="chart"] *, [class*="diagram"] *, [class*="plot"] *, [class*="viz"] *) {
  text-decoration: underline;
  text-underline-offset: .17em;
}
:is(.post-body, .article-body, .article-content, .reading, main > article, body > article, article.blog-post, main.s4-article, main#content) :is(a, button, summary):focus-visible {
  outline: 2px solid #000 !important;
  outline-offset: 3px;
}
:is(.post-body, .article-body, .article-content, .reading, main > article, body > article, article.blog-post, main.s4-article, main#content) :is(h2,h3,h4) {
  text-wrap: balance;
  line-height: 1.25;
}

.post-hero__title { text-transform: none; letter-spacing: normal; }
.post-body :is(h2, h3, h4) { text-transform: none; letter-spacing: normal; }
.post-body .post-divider { background-color: #888 !important; }
.post-callout__label { color: #000 !important; }

/* One-off article templates. These selectors do not change any shared screen. */
:is(.swarm-hero, .article-head, .article-hero, .post-tldr, .pf-abstract, .sf-abstract, .eafm-abstract, .sf-callout) {
  background: #fff !important;
  color: #000 !important;
}
:is(.swarm-hero .hero-copy, .article-head .header-copy, .article-hero) :is(h1,h2,p,small,time) {
  color: #000 !important;
}
main > .hero:has(> h1) {
  background: #fff !important;
  color: #000 !important;
}
main > .hero:has(> h1) > :is(h1,p,a) { color: #000 !important; }

/* Reading summaries and older inline text callouts, not figure containers. */
article #tldr,
.post-body .post-body__inner > div[style*="border-left"][style*="background"]:not(figure *, [data-chart] *, [data-visualization] *, [class*="chart"], [class*="diagram"], [class*="plot"], [class*="viz"]) {
  background: #fff !important;
  border-left: 0 !important;
  border-block: 1px solid #bbb;
  border-radius: 0 !important;
}
