/* Shared rich-text content styles for the CMS editor and public pages. */
.cms-richtext {
    color: #171717;
    font-family: "Barlow", Arial, sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.85;
    overflow-wrap: anywhere;
    word-break: normal;
}

.cms-richtext * {
    box-sizing: border-box;
}

.cms-richtext p {
    margin: 0 0 1.2em;
}

.cms-richtext p:last-child {
    margin-bottom: 0;
}

.cms-richtext h1,
.cms-richtext h2,
.cms-richtext h3,
.cms-richtext h4,
.cms-richtext h5,
.cms-richtext h6 {
    margin: 1.6em 0 .65em;
    color: #171717;
    font-weight: 600;
    line-height: 1.2;
}

.cms-richtext h1:first-child,
.cms-richtext h2:first-child,
.cms-richtext h3:first-child,
.cms-richtext h4:first-child,
.cms-richtext h5:first-child,
.cms-richtext h6:first-child {
    margin-top: 0;
}

.cms-richtext h1 { font-size: 2em; }
.cms-richtext h2 { font-size: 1.7em; }
.cms-richtext h3 { font-size: 1.4em; }
.cms-richtext h4 { font-size: 1.2em; }
.cms-richtext h5,
.cms-richtext h6 { font-size: 1em; }

.cms-richtext strong,
.cms-richtext b { font-weight: 600; }
.cms-richtext em,
.cms-richtext i { font-style: italic; }

.cms-richtext a {
    color: #306090;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cms-richtext a:hover,
.cms-richtext a:focus { color: #173b5f; }

.cms-richtext ul,
.cms-richtext ol {
    margin: 1.2em 0;
    padding-left: 1.6em;
}

.cms-richtext ul { list-style: disc; }
.cms-richtext ol { list-style: decimal; }
.cms-richtext li + li { margin-top: .4em; }

.cms-richtext blockquote {
    margin: 1.8em 0;
    padding: 1em 1.25em;
    border-left: 3px solid #306090;
    background: #edf3f8;
    color: #171717;
}

.cms-richtext pre {
    margin: 1.2em 0;
    padding: 1em 1.2em;
    overflow-x: auto;
    background: #f0f1ef;
    color: #171717;
    font-family: Consolas, Monaco, monospace;
    font-size: .9em;
    line-height: 1.6;
    white-space: pre-wrap;
}

.cms-richtext code {
    padding: .1em .3em;
    background: #f0f1ef;
    font-family: Consolas, Monaco, monospace;
    font-size: .9em;
}

.cms-richtext pre code {
    padding: 0;
    background: transparent;
    font-size: inherit;
}

.cms-richtext hr {
    margin: 2em 0;
    border: 0;
    border-top: 1px solid #dedfdd;
}

.cms-richtext img,
.cms-richtext video,
.cms-richtext iframe {
    display: block;
    max-width: 100%;
    height: auto;
}

.cms-richtext img { margin: 1.2em 0; }
.cms-richtext figure { margin: 1.5em 0; }
.cms-richtext figure img { margin: 0; }

.cms-richtext figcaption {
    margin-top: .6em;
    color: #616161;
    font-size: .9em;
    line-height: 1.5;
    text-align: center;
}

.cms-richtext table {
    width: 100%;
    max-width: 100%;
    margin: 1.5em 0;
    border-collapse: collapse;
    border-spacing: 0;
}

.cms-richtext th,
.cms-richtext td {
    padding: .75em .9em;
    border: 1px solid #dedfdd;
    text-align: left;
    vertical-align: top;
}

.cms-richtext th {
    background: #edf3f8;
    color: #173b5f;
    font-weight: 600;
}

@media (max-width: 767px) {
    .cms-richtext {
        font-size: 14px;
        line-height: 1.75;
    }

    .cms-richtext table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .cms-richtext blockquote { padding: .9em 1em; }
}

/* The preview is rendered in an isolated document so the public stylesheet
   can be used without changing the surrounding admin page. */
.cms-richtext-iframe-preview {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    border: 0;
    background: #fff;
    pointer-events: none;
    visibility: hidden;
}

.note-editing-area.cms-richtext-iframe-active.cms-richtext-iframe-ready .cms-richtext-iframe-preview {
    visibility: visible;
}

.cms-richtext-iframe-preview iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #fff;
    pointer-events: none;
}

.note-editing-area.cms-richtext-iframe-active {
    position: relative;
}

.note-editing-area.cms-richtext-iframe-active.cms-richtext-iframe-ready .note-editable.cms-richtext-iframe-source {
    position: relative;
    z-index: 2;
    background: transparent !important;
    color: transparent !important;
    caret-color: #171717;
    text-shadow: none !important;
}

.note-editing-area.cms-richtext-iframe-active.cms-richtext-iframe-ready .note-editable.cms-richtext-iframe-source * {
    color: transparent !important;
    background-color: transparent !important;
    border-color: transparent !important;
    text-shadow: none !important;
}

.note-editing-area.cms-richtext-iframe-active.cms-richtext-iframe-ready .note-editable.cms-richtext-iframe-source img,
.note-editing-area.cms-richtext-iframe-active.cms-richtext-iframe-ready .note-editable.cms-richtext-iframe-source video,
.note-editing-area.cms-richtext-iframe-active.cms-richtext-iframe-ready .note-editable.cms-richtext-iframe-source iframe {
    visibility: hidden !important;
}

.note-editing-area.cms-richtext-iframe-active.cms-richtext-iframe-ready .note-editable.cms-richtext-iframe-source::selection,
.note-editing-area.cms-richtext-iframe-active.cms-richtext-iframe-ready .note-editable.cms-richtext-iframe-source *::selection {
    background: rgba(48, 96, 144, .24);
    color: transparent;
}

.note-editing-area.cms-richtext-iframe-active.cms-richtext-iframe-codeview .cms-richtext-iframe-preview {
    display: none;
}

.reveal {
	opacity: 1;
	transform: translateY(0);
}