/*
 * Public output from administrative WYSIWYG editors.
 *
 * Keep these rules scoped: menus, cards, sliders and other interface lists rely
 * on the frontend theme's reset and component-specific list styling.
 */
.frontend-rich-text {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: normal;
}

.frontend-rich-text > :first-child {
    margin-top: 0;
}

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

.frontend-rich-text p {
    margin: 0 0 1em;
    line-height: 1.7;
}

.frontend-rich-text h1,
.frontend-rich-text h2,
.frontend-rich-text h3,
.frontend-rich-text h4,
.frontend-rich-text h5,
.frontend-rich-text h6 {
    margin: 1.35em 0 0.55em;
    line-height: 1.25;
}

.frontend-rich-text h1 {
    font-size: 2rem;
}

.frontend-rich-text h2 {
    font-size: 1.75rem;
}

.frontend-rich-text h3 {
    font-size: 1.5rem;
}

.frontend-rich-text h4 {
    font-size: 1.25rem;
}

.frontend-rich-text h5 {
    font-size: 1.1rem;
}

.frontend-rich-text h6 {
    font-size: 1rem;
}

.frontend-rich-text.frontend-rich-text ul,
.frontend-rich-text.frontend-rich-text ol {
    display: block;
    margin: 0 0 1em;
    padding-left: 2rem;
}

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

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

.frontend-rich-text.frontend-rich-text ul ul,
.frontend-rich-text.frontend-rich-text ol ul {
    list-style-type: circle;
}

.frontend-rich-text.frontend-rich-text ul ul ul,
.frontend-rich-text.frontend-rich-text ol ul ul,
.frontend-rich-text.frontend-rich-text ol ol ul,
.frontend-rich-text.frontend-rich-text ul ol ul {
    list-style-type: square;
}

.frontend-rich-text.frontend-rich-text ol ol {
    list-style-type: lower-alpha;
}

.frontend-rich-text.frontend-rich-text ol ol ol {
    list-style-type: lower-roman;
}

.frontend-rich-text.frontend-rich-text li {
    display: list-item;
    margin: 0.35em 0;
    padding: 0;
    text-indent: 0;
}

.frontend-rich-text.frontend-rich-text li::before {
    content: none;
}

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

.frontend-rich-text strong,
.frontend-rich-text b {
    font-weight: 700;
}

.frontend-rich-text em,
.frontend-rich-text i {
    font-style: italic;
}

.frontend-rich-text a {
    color: #3367c1;
    text-decoration: underline;
    overflow-wrap: anywhere;
}

.frontend-rich-text a:hover,
.frontend-rich-text a:focus {
    text-decoration: none;
}

.frontend-rich-text blockquote {
    margin: 1.25em 0;
    padding: 0.75em 1.25em;
    border-left: 4px solid #3367c1;
    background: rgba(51, 103, 193, 0.07);
    color: inherit;
}

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

.frontend-rich-text hr {
    height: 0;
    margin: 1.5em 0;
    border: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.18);
}

.frontend-rich-text img {
    max-width: 100%;
    height: auto;
}

.frontend-rich-text figure {
    max-width: 100%;
    margin: 1.25em 0;
}

.frontend-rich-text figcaption {
    margin-top: 0.4em;
    color: #6c757d;
    font-size: 0.9em;
}

.frontend-rich-text table {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 1.25em 0;
    overflow-x: auto;
    border-collapse: collapse;
    -webkit-overflow-scrolling: touch;
}

.frontend-rich-text th,
.frontend-rich-text td {
    min-width: 7.5rem;
    padding: 0.65rem 0.75rem;
    border: 1px solid #bbb;
    text-align: left;
    vertical-align: top;
    overflow-wrap: anywhere;
}

.frontend-rich-text th {
    background: #ddd;
    font-weight: 700;
}

.frontend-rich-text pre,
.frontend-rich-text code {
    max-width: 100%;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

@media (max-width: 767.98px) {
    .frontend-rich-text h1 {
        font-size: 1.75rem;
    }

    .frontend-rich-text h2 {
        font-size: 1.5rem;
    }

    .frontend-rich-text h3 {
        font-size: 1.3rem;
    }

    .frontend-rich-text.frontend-rich-text ul,
    .frontend-rich-text.frontend-rich-text ol {
        padding-left: 1.5rem;
    }

    .frontend-rich-text th,
    .frontend-rich-text td {
        min-width: 6.5rem;
        padding: 0.55rem 0.6rem;
    }
}
