@charset "utf-8";

/* Keep backend UEditor content independent from the website's typography reset. */
.ckjr-rich-text {
    line-height: normal;
    text-indent: 0;
    word-break: break-word;
}

.ckjr-rich-text span,
.ckjr-rich-text p {
    color: inherit;
    font-size: inherit;
    line-height: normal;
}

.ckjr-rich-text p {
    margin: 1em 0;
}

.ckjr-rich-text h1,
.ckjr-rich-text h2,
.ckjr-rich-text h3,
.ckjr-rich-text h4,
.ckjr-rich-text h5,
.ckjr-rich-text h6 {
    font-weight: bold;
    line-height: normal;
}

.ckjr-rich-text h1 {
    margin: .67em 0;
    font-size: 2em;
}

.ckjr-rich-text h2 {
    margin: .83em 0;
    font-size: 1.5em;
}

.ckjr-rich-text h3 {
    margin: 1em 0;
    font-size: 1.17em;
}

.ckjr-rich-text h4 {
    margin: 1.33em 0;
    font-size: 1em;
}

.ckjr-rich-text h5 {
    margin: 1.67em 0;
    font-size: .83em;
}

.ckjr-rich-text h6 {
    margin: 2.33em 0;
    font-size: .67em;
}

.ckjr-rich-text img {
    width: auto;
    max-width: 100%;
    height: auto;
}

.ckjr-rich-text table {
    display: table;
    margin-bottom: .1rem;
    border-collapse: collapse;
    line-height: normal;
}

.ckjr-rich-text td,
.ckjr-rich-text th {
    padding: .05rem .1rem;
    border: 1px solid #DDD;
    background: #FFF;
    line-height: normal;
}

.ckjr-rich-text th {
    border-top-color: #BBB;
    background: #F7F7F7;
    font-weight: bold;
}

.ckjr-rich-text table tr.firstRow th {
    border-top: 2px solid #BBB;
    background: #F7F7F7;
}

.ckjr-rich-text tr.ue-table-interlace-color-single td {
    background: #FCFCFC;
}

.ckjr-rich-text tr.ue-table-interlace-color-double td {
    background: #F7FAFF;
}

.ckjr-rich-text td p,
.ckjr-rich-text th p {
    margin: 0;
    padding: 0;
}

.ckjr-rich-text ul,
.ckjr-rich-text ol {
    margin: 1em 0;
    padding-left: .4rem;
}

.ckjr-rich-text ul,
.ckjr-rich-text ul li {
    list-style: disc;
    list-style-type: disc;
}

.ckjr-rich-text ol,
.ckjr-rich-text ol li {
    list-style: decimal;
    list-style-type: decimal;
}

.ckjr-rich-text li {
    margin-bottom: .08rem;
}

.ckjr-rich-text li p {
    margin-bottom: 0;
}

@media (max-width: 750px) {
    .ckjr-rich-text {
        max-width: 100%;
        overflow: hidden;
        overflow-wrap: anywhere;
    }

    .ckjr-rich-text table {
        width: 100% !important;
        max-width: 100%;
        table-layout: fixed;
    }

    .ckjr-rich-text col,
    .ckjr-rich-text td,
    .ckjr-rich-text th {
        width: auto !important;
        min-width: 0;
    }

    .ckjr-rich-text td,
    .ckjr-rich-text th {
        padding: .05rem;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .ckjr-rich-text img,
    .ckjr-rich-text video,
    .ckjr-rich-text iframe,
    .ckjr-rich-text embed {
        max-width: 100% !important;
    }

    .ckjr-rich-text pre {
        max-width: 100%;
        overflow-x: auto;
        white-space: pre-wrap;
        overflow-wrap: anywhere;
    }
}
