/* -------------------- Typography -------------------- */
.b-wysiwyg { font: 400 1em/1.4375 'Lato', sans-serif; }

/* * * Wysiwyg :: headers * * */
.b-wysiwyg h2 { margin: 30px 0 20px; font: 300 2.3125em/1.1351 'Lato', sans-serif; }
.b-wysiwyg h3 { margin: 34px 0 16px; font: 300 2.0000em/1.1875 'Lato', sans-serif; }
.b-wysiwyg h4 { margin: 56px 0 32px; font: 300 1.6250em/1.3461 'Lato', sans-serif; }
.b-wysiwyg h5 { margin: 44px 0 30px; font: 400 1.2500em/1.3000 'Lato', sans-serif; }
.b-wysiwyg h6 { margin: 44px 0 18px; font: 400 1em/2 'Lato', sans-serif; letter-spacing: .05em; text-transform: uppercase; }

@media (max-width: 979px) {

    .b-wysiwyg h2 { font: 300 1.875em/1.1351 'Lato', sans-serif; }
    .b-wysiwyg h3 { font: 300 1.750em/1.1875 'Lato', sans-serif; }
    .b-wysiwyg h4 { font: 300 1.625em/1.3461 'Lato', sans-serif; }

    .b-wysiwyg h5 { font: 400 1.125em 'Lato', sans-serif; }

}

@media (max-width: 767px) {

    .b-wysiwyg h2 { font: 300 1.750em 'Lato', sans-serif; }
    .b-wysiwyg h3 { font: 300 1.625em 'Lato', sans-serif; }
    .b-wysiwyg h4 { font: 300 1.375em 'Lato', 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.4375em; margin-bottom: 1.4375em; }
.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.4375em; margin-bottom: 1.4375em; max-width: 100%; height: 0; background: none; border: none; border-bottom: 1px solid #eee; }

.b-wysiwyg a { text-decoration: none; color: #0d56a6; }
.b-wysiwyg a:visited { text-decoration: none; color: #8a8a8a; }

.b-wysiwyg a:hover { text-decoration: none; color: #ff6400; }

/* * * Wysiwyg :: figs * * */
.b-wysiwyg blockquote { margin: 1.5em 0; padding: 10px 20px; color: #606900; background: #f1fd72; }

@media (min-width: 980px) {

    .b-wysiwyg blockquote { margin: 2em 0; padding: 2.25em 8.33333333% 2.5em; }

}

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

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

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

.b-wysiwyg ul > li:before { left: 0; top: .625em; width: 6px; height: 6px; background: #ff6400; border-radius: 50%; content: ''; }

.b-wysiwyg ol { margin-left: 40px; 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: 30px; }
.b-wysiwyg ol ol > li { padding-left: 42px; }
.b-wysiwyg ol ol ol > li { padding-left: 64px; }

.b-wysiwyg ol > li:before { left: 0; top: 0; font: 400 1em 'Lato', sans-serif; line-height: inherit !important; text-align: left; color: #ff6400; 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) "."; }

@media (max-width: 767px) {

    .b-wysiwyg ul,
    .b-wysiwyg ol { margin-left: 10px; }

}

/* * * 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_grid { margin-bottom: -1.4375em !important; }
.b-wysiwyg_grid > [class*="col-"] { margin-bottom: 1.4375em; }


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

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

.b-wysiwyg_grid table:first-child { margin-top: .5em; }

.b-wysiwyg table td { vertical-align: top; padding: 8px 18px 10px; }
.b-wysiwyg table th { vertical-align: top; padding: 12px 18px 10px; font-weight: inherit; font-size: .875em; text-align: left; color: #748aa4; }

.b-wysiwyg table th ~ th,
.b-wysiwyg table td ~ td { border-left: 1px solid #fff; }

.b-wysiwyg table tr ~ tr th,
.b-wysiwyg table tr ~ tr td { border-top: 1px solid #fff; }

/* * * 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; }


/* -------------------- Additional -------------------- */
.b-wysiwyg .head_center { margin: 25px 0; font-weight: bold; text-align: center; color: #ef6e06; }
