﻿.rte p+h1, .rte p+.heading-1, .rte p+h2, .rte p+.heading-2, .rte p+h3, .rte p+.heading-3, .rte p+h4, .rte p+.heading-4, .rte p+h5, .rte p+.heading-5, .rte p+h6, .rte p+.heading-6, .rte a+h1, .rte a+.heading-1, .rte a+h2, .rte a+.heading-2, .rte a+h3, .rte a+.heading-3, .rte a+h4, .rte a+.heading-4, .rte a+h5, .rte a+.heading-5, .rte a+h6, .rte a+.heading-6, .rte ul+h1, .rte ul+.heading-1, .rte ul+h2, .rte ul+.heading-2, .rte ul+h3, .rte ul+.heading-3, .rte ul+h4, .rte ul+.heading-4, .rte ul+h5, .rte ul+.heading-5, .rte ul+h6, .rte ul+.heading-6, .rte ol+h1, .rte ol+.heading-1, .rte ol+h2, .rte ol+.heading-2, .rte ol+h3, .rte ol+.heading-3, .rte ol+h4, .rte ol+.heading-4, .rte ol+h5, .rte ol+.heading-5, .rte ol+h6, .rte ol+.heading-6
{
    margin-top: 2rem;
}
.rte table
{
    margin: 2rem 0;
}
.rte table:first-child
{
    margin-top: 0;
}
.rte table:last-child
{
    margin-bottom: 0;
}
.rte img
{
    height: auto;
    max-width: 100%;
    margin: 2rem 0;
}
.rte img:first-child
{
    margin-top: 0;
}
.rte img:last-child
{
    margin-bottom: 0;
}
.rte img+.caption
{
    text-align: left;
    margin-top: -1.5rem;
}
.rte p:last-child
{
    margin-bottom: 0;
}
.rte p>img
{
    margin: 1rem 0;
}
.rte p>img:first-child, .rte p>img:last-child
{
    margin: 1rem 0;
}
.rte p>table
{
    margin: 1rem 0;
}
.rte p>table:first-child, .rte p>table:last-child
{
    margin: 1rem 0;
}
.rte ul
{
    list-style-position: inside;
    padding-left: 0;
    margin: 1rem 0;
    list-style-type: none;
}
.rte ul:first-child
{
    margin-top: 0;
}
.rte ul:last-child
{
    margin-bottom: 0;
}
.rte ul li
{
    font-size: 16px;
    line-height: var(--line-height-base);
}
.rte ul li+li
{
    margin-top: .5rem;
}
.rte ul li
{
    position: relative;
    padding-left: 1.2em;
    text-indent: -1.2em;
}
.rte ul li::before
{
    content: "";
    display: inline-block;
    position: relative;
    top: -.2em;
    width: .5rem;
    height: .5rem;
    margin-right: .75rem;
    border-radius: 100%;
    background-color: var(--color-primary);
    font-size: 1em;
}
.rte ol
{
    list-style-position: inside;
    padding-left: 0;
    margin: 1rem 0;
}
.rte ol:first-child
{
    margin-top: 0;
}
.rte ol:last-child
{
    margin-bottom: 0;
}
.rte ol li
{
    font-size: 16px;
    line-height: var(--line-height-base);
}
.rte ol li+li
{
    margin-top: .5rem;
}
.rte ol:marker
{
    font-weight: var(--font-weight-bold);
}
.rte iframe
{
    width: 100%;
}