/**
 Table and List-specific code for the WYSIWYG block lives in
 their own files now. Interactions between those elements and
 other elements should live in this file still, however.
 */
.wysiwyg-block {
    font-family: 'Red Hat Text', sans-serif;
    font-size: 18px;
    font-weight: normal;
    font-style: normal;
    font-stretch: normal;
    line-height: 1.5;
    letter-spacing: normal;
    color: var(--charcoal-grey);
    margin: 0 0 32px 0;
}

.dark-band .wysiwyg-block {
    color: var(--white) !important;
}

.wysiwyg-block h1,
.wysiwyg-block h2,
.wysiwyg-block h3,
.wysiwyg-block h4,
.wysiwyg-block h5,
.wysiwyg-block h6 {
    font-family: 'Red Hat Display', sans-serif;
    font-size: 23px;
    font-weight: bold;
    font-style: normal;
    font-stretch: normal;
    line-height: 1.13;
    letter-spacing: normal;
    color: var(--scarlet);
    margin: 0 0 32px 0;
}

.wysiwyg-block h1:before,
.wysiwyg-block h2:before,
.wysiwyg-block h3:before,
.wysiwyg-block h4:before,
.wysiwyg-block h5:before,
.wysiwyg-block h6:before {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: ' ';
    clear: both;
    height: 0;
    margin: 0 0 32px 0;
}

.wysiwyg-block h4 {
    font-size: 20px;
}

.wysiwyg-block h5 {
    font-size: 18px;
}

.wysiwyg-block h6 {
    font-size: 17px;
}

.wysiwyg-block ul + h2,
.wysiwyg-block ul + h3,
.wysiwyg-block ul + h4,
.wysiwyg-block ul + h5,
.wysiwyg-block ul + h6,
.wysiwyg-block p + h2,
.wysiwyg-block p + h3,
.wysiwyg-block p + h4,
.wysiwyg-block p + h5,
.wysiwyg-block p + h6 {
    margin-top: 36px;
}

.wysiwyg-block blockquote {
    margin-bottom: 36px;
}

.wysiwyg-block hr {
    border: none;
    background-color: var(--pale-sky-blue);
    color: var(--pale-sky-blue);
    height: 1px;
    margin: 32px 0 32px 0;
}

.wysiwyg-block p {
    margin: 0 0 var(--margin-m) 0;
    padding: 0;
}

.wysiwyg-block p:first-child {
    margin-top: 0;
}

.wysiwyg-block p:last-child {
    margin-bottom: 0;
}

.wysiwyg-block figure {
    margin: 0 0 1.5em 0;
}

.wysiwyg-block figure:last-child {
    margin-bottom: 0;
}

.wysiwyg-block figure img {
    display: block;
}

.wysiwyg-block figure figcaption {
    font-family: 'Red Hat Display', sans-serif;
    font-size: 18px;
    font-weight: normal;
    font-style: normal;
    font-stretch: normal;
    line-height: normal;
    letter-spacing: normal;
    color: var(--slate-grey);
    margin-top: 16px;
}

.wysiwyg-block figure figcaption svg {
    margin-right: 16px;
    vertical-align: bottom;
    width: 24px;
}

.wysiwyg-block figure.alignnone {
    width: auto !important;
}

.wysiwyg-block :not(figure) > img.alignleft,
.wysiwyg-block figure.alignleft {
    float: left;
    margin: 0 2rem 1.5rem 0;
}

.wysiwyg-block :not(figure) > img.alignright,
.wysiwyg-block figure.alignright {
    float: right;
    margin: 0 0 1.5rem 2rem;
}

.wysiwyg-block a {
    color: var(--charcoal-grey);
    text-decoration: underline;
}

.wysiwyg-block a:hover {
    opacity: 0.75;
}

.wysiwyg-block a:focus {
    outline: 5px auto #ff8c00;
}
