.rich-formatted { display: grid; gap: .9em; min-width: 0; }
.rich-formatted.compact { gap: .45em; }
.rich-formatted > :first-child { margin-top: 0; }
.rich-formatted > :last-child { margin-bottom: 0; }
.rich-formatted p { margin: 0; }
.rich-formatted ul,
.rich-formatted ol { display: grid; gap: .45em; margin: .15em 0; padding-inline-start: 1.35em; }
.rich-formatted blockquote {
  margin: .2em 0;
  padding: .7em 0 .7em 1.1em;
  border-inline-start: 2px solid var(--accent);
  color: var(--text-muted);
}
.rich-formatted a,
main :where(h1,h2,h3,h4,p,span,strong,small,figcaption) > a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: .08em;
  text-underline-offset: .18em;
}
.rich-formatted a:hover,
main :where(h1,h2,h3,h4,p,span,strong,small,figcaption) > a:hover { color: var(--text); }

.rich-formatted u,
main :where(h1,h2,h3,h4,p,span,strong,small,figcaption) > u {
  text-decoration-thickness: .08em;
  text-underline-offset: .16em;
}
.rich-formatted del,
main :where(h1,h2,h3,h4,p,span,strong,small,figcaption) > del {
  color: var(--text-muted);
  text-decoration-thickness: .08em;
}
.rich-inline-icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  margin: 0 .12em;
  vertical-align: -.13em;
  object-fit: contain;
  color: currentColor;
}
