/* rich text
   ============================ */

.rich-text.white-bg {
    -moz-box-shadow: none;
    -webkit-box-shadow: none;
    box-shadow: none;
}
.rich-text .wrapper {
    padding-bottom: 40px;
    padding-top: 38px;
}
.content-with-rail .rich-text.grey-bg .wrapper {
    padding-left: 30px;
    padding-right: 30px;
}

/* snippets */
.rich-text .text-with-image {
    margin-bottom: 41px;
    margin-top: 32px;
}
.rich-text .text-with-image p + img {
    margin-top: 46px;
}

.rich-text .text-with-borders {
    border-bottom: 1px solid #f2f2f2;
    border-top: 1px solid #f2f2f2;
    display: table;
    padding: 32px 0 16px;
    width: 100%;
}
.rich-text .text-with-borders header h3 {
    color: #6caddf;
}
.rich-text .text-with-borders header,
.rich-text .text-with-borders .text {
    display: table-cell;
    padding-right: 30px;
    vertical-align: middle;
    width: auto;
}
.rich-text .text-with-borders .text {
    width: 72%;
}
.rich-text .text-with-borders .text a {
    font-family: "AvenirLTStd-Medium", Arial, "Helvetica Neue", Helvetica, sans-serif;
    font-size: 2.1rem;
    line-height: 3rem;
}
.rich-text.grey-bg .text-with-borders {
    border-color: #ffffff;
}
.rich-text .text-with-borders + p,
.rich-text .text-with-borders + ul,
.rich-text .text-with-borders + ol {
    margin-top: 45px;
}
.content-with-rail .rich-text .text-with-borders .text {
    width: 62%;
}

.rich-text .heading-with-text.two-column {
    margin-bottom: 20px;
    margin-top: 40px;
}

/* headings */
.rich-text.feature h2,
.feature .rich-text h2 {
    margin-bottom: 15px;
}
.rich-text h3,
.rich-text h4,
.rich-text h5 {
    color: #21016b;
    margin-bottom: 16px;
}
.rich-text h5,
.rich-text h6 {
    margin-bottom: 8px;
}

/* paragraphs */
.rich-text p,
.rich-text ul,
.rich-text ol {
    margin-bottom: 16px;
}

/* lists */
.rich-text ul > li {
    padding-bottom: 5px;
    padding-left: 16px;
}
.rich-text ul > li::before {
    background-color: #6caddf;
    -moz-border-radius: 50%;
    -webkit-border-radius: 50%;
    border-radius: 50%;
    content: "";
    display: block;
    height: 6px;
    left: 0;
    position: absolute;
    top: 10px;
    width: 6px;
}
.rich-text ul > li:first-child::before {
    top: 10px;
}
.rich-text ol {
    counter-reset: item;
    padding-left: 0;
    margin-left: 0;
}
.rich-text ol > li {
    padding-bottom: 5px;
    padding-left: 22px;
}
.rich-text ol > li::before {
    color: #6caddf;
    content: counter(item) ") ";
    counter-increment: item;
    display: block;
    font-family: "AvenirLTStd-Black", Arial, "Helvetica Neue", Helvetica, sans-serif;
    font-size: 1.6rem;
    height: 100%;
    left: 0;
    line-height: 2.8rem;
    position: absolute;
    top: 0;
}
.ie .rich-text ol > li::before {
    top: 13px;
}

/* images */
.rich-text img.align-left {
    float: left;
    height: auto !important;
    margin: 9px 40px 20px 0;
    max-width: 50%;
    width: auto !important;
}
.rich-text img.align-right {
    float: right;
    height: auto !important;
    margin: 9px 0 20px 40px;
    max-width: 50%;
    width: auto !important;
}
.rich-text img.full-width {
    height: auto !important;
    max-width: 100%;
    width: 100%;
}

/* tables */
.rich-text .table-container {
    margin-bottom: 41px;
    margin-top: 37px;
}
.rich-text .table-container table {
    margin-bottom: 0;
    margin-top: 0;
}
.rich-text table {
    border: 1px solid #f2f2f2;
    table-layout: initial;
    margin-bottom: 41px;
    margin-top: 37px;
    width: 100%;
}
.rich-text table th {
    background: #260349;
    color: #ffffff;
    font-family: "AvenirLTStd-Medium", Arial, "Helvetica Neue", Helvetica, sans-serif;
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 2.7rem;
    padding: 8px 21px;
    text-align: left;
}
.rich-text table td {
    color: #1f1f1f;
    font-size: 1.2rem;
    line-height: 2.2rem;
    padding: 14px 21px;
    vertical-align: top;
}
.rich-text table tr:nth-child(even) td {
    background: #e8e8e8;
}
.content-with-rail .rich-text table {
    table-layout: fixed;
}

/* ctas */
.rich-text .cta {
    margin-top: 40px;
    text-align: center;
}
.rich-text .align-left ~ .cta,
.rich-text .align-right ~ .cta {
    clear: none;
    margin-top: 31px;
    text-align: left;
}
.rich-text .button + .button {
    margin-left: 30px;
}

/* anchors */
.rich-text a:not(.button) {
    font-weight: 700;
    text-decoration: underline;
}
.ru .rich-text a:not(.button) {
    font-weight: 700;
}
.rich-text a:not(.button):hover {
    text-decoration: none;
}

/* responsive
   ============================ */

@media screen and (max-width: 1024px) {

    /* tables */
    .rich-text .table-container {
        overflow-x: auto;
        overflow-y: hidden;
        width: 100%;
    }
    .rich-text table {
        table-layout: fixed;
        width: 150%;
    }
    .content-with-rail .rich-text table {
        width: 200%;
    }

    /* snippets */
    .rich-text .text-with-borders .text {
        width: 62%;
    }
}

@media screen and (max-width: 736px) {

    /* rich text */
    .rich-text {
        line-height: 2.6rem;
    }
    .rich-text .wrapper {
        padding-top: 30px;
    }
    .rich-text ul,
    .rich-text ol {
        margin-bottom: 9px;
    }
    .rich-text ul > li,
    .rich-text ol > li {
        padding-bottom: 3px;
    }
    .rich-text ul > li + li,
    .rich-text ol > li + li {
        padding-top: 4px;
    }
    .rich-text ul > li + li::before {
        top: 14px;
    }
    .rich-text ol > li + li::before {
        top: 6px;
    }
    .rich-text p {
        margin-bottom: 18px;
    }
    .content-with-rail .rich-text .wrapper {
        padding-bottom: 0;
    }

    /* headings */
    .rich-text h3,
    .rich-text h4,
    .rich-text h5,
    .rich-text h6 {
        margin-bottom: 12px;
    }

    /* snippets */
    .rich-text .text-with-image {
        margin-bottom: 50px;
        margin-top: 35px;
    }
    .rich-text .text-with-borders {
        padding-top: 21px;
    }
    .rich-text .text-with-borders,
    .rich-text .text-with-borders header,
    .rich-text .text-with-borders .text,
    .content-with-rail .rich-text .text-with-borders .text {
        display: block;
        padding-bottom: 2px;
        padding-right: 0;
        width: 100%;
    }
    .rich-text .text-with-borders .text h3 {
        margin-bottom: 6px;
    }
    .rich-text .text-with-borders .text p {
        margin-bottom: 7px;
    }
    .rich-text .text-with-borders .text a {
        font-size: 1.8rem;
        line-height: 3rem;
    }
    .rich-text .text-with-borders .text ul,
    .rich-text .text-with-borders .text ol {
        margin-bottom: 11px;
    }
    .rich-text .text-with-borders .text ul > li {
        padding-left: 11px;
    }
    .rich-text .heading-with-text.two-column .column {
        padding-bottom: 10px;
    }
    .rich-text .heading-with-text.two-column .column:last-of-type p:last-of-type {
        margin-bottom: 0;
    }
    .rich-text .heading-with-text h5 {
        margin-bottom: 12px;
    }

    /* images */
    .rich-text img.align-left,
    .rich-text img.align-right {
        float: none;
        margin: 0 auto 17px;
        max-width: 100%;
    }

    /* tables */
    .rich-text table,
    .content-with-rail .rich-text table {
        width: 300%;
    }

    /* ctas */
    .rich-text .cta {
        text-align: left;
    }
    .rich-text .align-left ~ .cta,
    .rich-text .align-right ~ .cta {
        margin-top: 18px;
    }
    .rich-text .button + .button {
        margin-left: 0;
    }
}
