/**
 * Block rhythm for TinyMCE output: matches the admin iframe (.mce-content-body)
 * via content_css and the public site (.rich-text). Only margin, padding, and
 * line-height on the listed flow elements.
 */

.mce-content-body {
  margin: 0;
  line-height: 1.6;
}

.rich-text {
  line-height: 1.6;
}

.mce-content-body h1,
.mce-content-body h2,
.mce-content-body h3,
.mce-content-body h4,
.mce-content-body p,
.mce-content-body blockquote,
.rich-text h1,
.rich-text h2,
.rich-text h3,
.rich-text h4,
.rich-text p,
.rich-text blockquote {
  margin: 0 0 1rem;
  padding: 0;
  line-height: 1.6;
}

.mce-content-body ul,
.mce-content-body ol,
.rich-text ul,
.rich-text ol {
  margin: 0 0 1rem;
  padding: 0 0 0 1.25rem;
  line-height: 1.6;
}

.mce-content-body li,
.rich-text li {
  margin: 0 0 0.25rem;
  padding: 0;
  line-height: 1.6;
}

.mce-content-body li:last-child,
.rich-text li:last-child {
  margin-bottom: 0;
}

.mce-content-body > :last-child,
.rich-text > :last-child {
  margin-bottom: 0;
}

.mce-content-body pre,
.rich-text pre {
  margin: 0 0 1rem;
  padding: 1rem 1.1rem;
  line-height: 1.6;
}
