.mmdb-rich-text {
    width: 100%;
}

/*
 * Keep rich-text rhythm predictable regardless of theme/browser defaults.
 * Imported editor markup often brings nested spans/classes, so spacing is
 * applied to the semantic block elements rather than links themselves.
 */
.mmdb-rich-text > :first-child {
    margin-top: 0;
}

.mmdb-rich-text > :last-child {
    margin-bottom: 0;
}

.mmdb-rich-text p {
    margin: 0 0 0.8em;
}

.mmdb-rich-text h1,
.mmdb-rich-text h2,
.mmdb-rich-text h3,
.mmdb-rich-text h4,
.mmdb-rich-text h5,
.mmdb-rich-text h6 {
    margin-bottom: 0.55em;
}

.mmdb-rich-text h1,
.mmdb-rich-text h2 {
    margin-top: 1em;
}

.mmdb-rich-text h3,
.mmdb-rich-text h4,
.mmdb-rich-text h5,
.mmdb-rich-text h6 {
    margin-top: 0.9em;
}

.mmdb-rich-text ul,
.mmdb-rich-text ol {
    margin: 0 0 0.8em;
    padding-left: 1.4em;
}

.mmdb-rich-text ul {
    list-style: disc outside;
}

.mmdb-rich-text ol {
    list-style: decimal outside;
}

.mmdb-rich-text li {
    margin: 0 0 0.25em;
    padding: 0;
}

.mmdb-rich-text li:last-child {
    margin-bottom: 0;
}

.mmdb-rich-text li > ul,
.mmdb-rich-text li > ol {
    margin-top: 0.25em;
    margin-bottom: 0.25em;
}

/* Links inherit the surrounding text rhythm. No link-specific margins. */
.mmdb-rich-text a {
    margin: 0;
    padding: 0;
}

.mmdb-rich-text img,
.mmdb-rich-text video,
.mmdb-rich-text iframe {
    max-width: 100%;
}

.mmdb-block-placeholder {
    padding: 12px 14px;
    border: 1px dashed currentColor;
    border-radius: 4px;
    opacity: .65;
}
