/* -------------------- Typography -------------------- */
.b-wysiwyg { font: 400 1em/1.625 'Roboto', sans-serif; color: #272a33; }

/* * * Wysiwyg :: headers * * */
.b-wysiwyg h2,
.b-wysiwyg h3 { margin: 1em 0 .5em; font: 500 24px 'Roboto', sans-serif; color: #1b2140; }

@media (max-width: 1199px) {

    .b-wysiwyg h2,
    .b-wysiwyg h3 { margin: 1.5em 0 .75em; font: 500 18px 'Roboto', sans-serif; }

}

.b-wysiwyg h2:first-child, .b-wysiwyg h3:first-child,
.b-wysiwyg h4:first-child, .b-wysiwyg h5:first-child, .b-wysiwyg h6:first-child { margin-top: auto; }

.b-wysiwyg h2:last-child, .b-wysiwyg h3:last-child,
.b-wysiwyg h4:last-child, .b-wysiwyg h5:last-child, .b-wysiwyg h6:last-child { margin-bottom: auto; }

.b-wysiwyg h2 + *, .b-wysiwyg h3 + *,
.b-wysiwyg h4 + *, .b-wysiwyg h5 + *, .b-wysiwyg h6 + * { margin-top: auto !important; }

/* * * Wysiwyg :: defaults * * */
.b-wysiwyg p,
.b-wysiwyg ul,
.b-wysiwyg ol,

.b-wysiwyg table { margin-top: 1.625em; margin-bottom: 1.625em; }
.b-wysiwyg td table { margin-top: auto; margin-bottom: auto; }

.b-wysiwyg img { max-width: 100%; height: auto; }
.b-wysiwyg hr { display: block; margin-top: 1.625em; margin-bottom: 1.625em; max-width: 100%; height: 0; background: none; border: none; border-bottom: 1px solid #ccc; }

.b-wysiwyg strong { font-weight: 600; }

.b-wysiwyg a { text-decoration: none; color: #2e5070; }
.b-wysiwyg a:hover { text-decoration: underline; }

.b-wysiwyg a[href^="tel:"] { text-decoration: none; color: inherit; }
.b-wysiwyg a[href^="tel:"]:hover { text-decoration: none; color: #2e5070; }

/* * * Wysiwyg :: lists * * */
.b-wysiwyg ul,
.b-wysiwyg ol { list-style: none; clear: both; margin-left: 0; }

.b-wysiwyg li ul,
.b-wysiwyg li ol { margin: 5px 0 0 20px !important; }

.b-wysiwyg li { position: relative; margin: 0 0 .9375em; padding-left: 30px; }
.b-wysiwyg li:before { position: absolute; left: 0; top: 0; }

.b-wysiwyg ul > li:before { left: 0; top: 6px; width: 12px; height: 12px; background: #d41b20; content: ''; }

.b-wysiwyg ol { margin-left: 0; counter-reset: list; }
.b-wysiwyg ol ol { margin-left: 18px; counter-reset: sublist; }
.b-wysiwyg ol ol ol { margin-left: auto; counter-reset: thirdlist; }

.b-wysiwyg ol > li { padding-left: 1.25em; }
.b-wysiwyg ol ol > li { padding-left: 2.00em; }
.b-wysiwyg ol ol ol > li { padding-left: 3.00em; }

.b-wysiwyg ol > li:before { left: 0; top: 0; font: inherit; line-height: inherit !important; text-align: left; background: none; counter-increment: list; content: counter(list) "."; }
.b-wysiwyg ol ol > li:before { counter-increment: sublist; content: counter(list) "." counter(sublist) "."; }
.b-wysiwyg ol ol ol > li:before { counter-increment: thirdlist; content: counter(list) "." counter(sublist) "." counter(thirdlist) "."; }

/* * * Wysiwyg :: collapsing * * */
.b-wysiwyg p:first-child,
.b-wysiwyg li:first-child,
.b-wysiwyg ul:first-child,
.b-wysiwyg ol:first-child,
.b-wysiwyg dl:first-child,
.b-wysiwyg hr:first-child,
.b-wysiwyg table:first-child { margin-top: auto; }

.b-wysiwyg p:last-child,
.b-wysiwyg li:last-child,
.b-wysiwyg ul:last-child,
.b-wysiwyg ol:last-child,
.b-wysiwyg dl:last-child,
.b-wysiwyg hr:last-child,
.b-wysiwyg table:last-child { margin-bottom: auto; }

/* * * Wysiwyg :: grid * * */
.b-wysiwyg .flex { margin-bottom: -1.625em; }
.b-wysiwyg .flex > [class*="col-"] { margin-bottom: 1.625em; }


/* -------------------- Tables -------------------- */
.b-wysiwyg table { margin: 32px 0; width: 100%; color: inherit; border-collapse: collapse; }

.b-wysiwyg table:first-child { margin-top: auto; }
.b-wysiwyg table:last-child { margin-bottom: auto; }

.b-wysiwyg table td { vertical-align: top; padding: 10px 18px; border: 1px solid #ccc; }
.b-wysiwyg table th { vertical-align: top; padding: 10px 18px; font-weight: 600; text-align: left; border: 1px solid #ccc; }

/* * * Tables :: scroll box * * */
.b-wysiwyg .b-table_overflow { position: relative; margin: 30px 0; }
.b-wysiwyg .b-table_overflow.scrollable { overflow-x: auto; overflow-y: visible; }

.b-wysiwyg .b-table_overflow:first-child { margin-top: auto; }
.b-wysiwyg .b-table_overflow:last-child { margin-bottom: auto; }
