
/* A heading made in the editor, by its tool or by pasting, is a bare element
   of any level, yet is saved as the one heading there is and shown as such. */
.text-heading,
.text-editor > .content :is(h1, h2, h3, h4, h5, h6) {
  font-family: var(--heading-font-family);font-weight: var(--heading-font-weight);;
  font-size: 1.25em;
  text-transform: uppercase;
  margin: 1.6em 0 .6em;
}
.text-heading:first-child {
  margin-top: 0;
}

/* The editor's paragraphs are the browser's, and so bare elements too. */
.text-paragraph,
.text-editor > .content > p {
  margin: 1em 0;
}
.text-paragraph:first-child,
.text-editor > .content > p:first-child {
  margin-top: 0;
}
.text-paragraph:last-child,
.text-editor > .content > p:last-child {
  margin-bottom: 0;
}

.text-list,
.text-editor > .content > :is(ul, ol) {
  margin: 1em 0;
  padding-left: 1.5em;
}
.text-list:first-child {
  margin-top: 0;
}
.text-list:last-child {
  margin-bottom: 0;
}
.text-list > li {
  margin: .2em 0;
}
