.blog-rich-text {
  overflow-wrap: anywhere;
  white-space: normal;
  line-height: 1.9;
  min-width: 0;
  display: flow-root;
}
.blog-rich-text > :first-child { margin-top: 0; }
.blog-rich-text > :last-child { margin-bottom: 0; }
.blog-rich-text p, .blog-rich-text ul, .blog-rich-text ol { margin: 0 0 1em; }
.blog-rich-text h2, .blog-rich-text h3, .blog-rich-text h4,
.blog-rich-text h5, .blog-rich-text h6 { margin: 1.25em 0 .5em; line-height: 1.5; color: inherit; }
.blog-rich-text ul { list-style: disc outside; }
.blog-rich-text ol { list-style: decimal outside; }
.blog-rich-text ul, .blog-rich-text ol { padding-inline-start: 1.75em; }
.blog-rich-text li { margin-block: .35em; }
.blog-rich-text li > p { margin-bottom: .35em; }
.blog-rich-text a { color: var(--gl-gold, #9063cd); text-decoration: underline; }
.blog-rich-text blockquote { margin: 1em 0; padding: .7em 1em; border-inline-start: 4px solid var(--gl-gold, #9063cd); background: rgba(144, 99, 205, .08); }
.blog-rich-text img { max-width: 100%; height: auto !important; object-fit: contain; }
.blog-rich-text table { display: block; overflow-x: auto; max-width: 100%; border-collapse: collapse; margin-block: 1em; }
.blog-rich-text td, .blog-rich-text th { padding: .6em .8em; border: 1px solid currentColor; min-width: 5em; }
.blog-rich-text pre { overflow-x: auto; max-width: 100%; padding: 1em; direction: ltr; text-align: left; background: rgba(128, 128, 128, .12); }
.blog-rich-text hr { border: 0; border-top: 1px solid currentColor; opacity: .3; margin-block: 1.5em; }
.blog-rich-text-preview { padding: 1rem; border: 1px solid #ddd; border-radius: .5rem; margin-bottom: 1rem; }
.gl-blog__article-title, .gl-blog__card-title { overflow-wrap: anywhere; }
.gl-blog__excerpt.blog-rich-text { display: -webkit-box; line-height: 1.7; max-height: 5.1em; }
.gl-blog__excerpt.blog-rich-text p { margin: 0; }

/* Public article colors follow the selected theme, including saved editor colors.
   Scope this to the public blog so editing and dashboard previews are unaffected. */
.gl-page--blog { --gl-blog-text: #fff; }
html[data-gl-mode="light"] .gl-page--blog,
html[data-theme="light"] .gl-page--blog { --gl-blog-text: #000; }

.gl-page--blog .gl-blog__card { background: var(--gl-bg-elev); }
.gl-page--blog :is(.blog-rich-text, .gl-blog__article-title, .gl-blog__card-title) {
  color: var(--gl-blog-text) !important;
}
.gl-page--blog :is(.blog-rich-text, .gl-blog__article-title, .gl-blog__card-title) * {
  color: inherit !important;
  background-color: transparent !important;
}
.gl-page--blog .blog-rich-text a,
.gl-page--blog .gl-blog__card-title a:hover { color: var(--gl-accent) !important; }
.gl-page--blog .gl-blog__back:hover,
.gl-page--blog .gl-blog__more:hover { color: var(--gl-blog-text); }
