/*
 * Weazel News — Knowledge document typography.
 * Этот файл используется одновременно на публичной странице и внутри TinyMCE.
 */

body.wn-knowledge-editor {
    box-sizing: border-box;
    max-width: 1120px;
    margin: 0 auto;
    padding: 32px 38px 72px;
    background: #0e1219;
}

:where(body.wn-knowledge-editor, .knowledge-document) {
    color: #d9dee7;
    font-family: Inter, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.78;
}

:where(body.wn-knowledge-editor, .knowledge-document) > :first-child {
    margin-top: 0 !important;
}

:where(body.wn-knowledge-editor, .knowledge-document) > :last-child {
    margin-bottom: 0 !important;
}

:where(body.wn-knowledge-editor, .knowledge-document) p {
    margin: .82em 0;
}

:where(body.wn-knowledge-editor, .knowledge-document) h2,
:where(body.wn-knowledge-editor, .knowledge-document) h3,
:where(body.wn-knowledge-editor, .knowledge-document) h4 {
    scroll-margin-top: 116px;
    font-family: Manrope, Inter, Arial, sans-serif;
    letter-spacing: -.025em;
}

:where(body.wn-knowledge-editor, .knowledge-document) h2 {
    margin: 2em 0 .72em;
    padding: 0;
    border: 0;
    color: #ff4d57;
    font-size: 30px;
    line-height: 1.2;
}

:where(body.wn-knowledge-editor, .knowledge-document) h3 {
    margin: 1.7em 0 .55em;
    color: #f4f6f9;
    font-size: 22px;
    line-height: 1.28;
}

:where(body.wn-knowledge-editor, .knowledge-document) h4 {
    margin: 1.45em 0 .5em;
    color: #f4f6f9;
    font-size: 18px;
    line-height: 1.3;
}

:where(body.wn-knowledge-editor, .knowledge-document) .wn-chapter-title {
    margin: 2.15em 0 .85em;
    color: #ff4d57 !important;
    text-align: center;
    font-size: 31px;
}

:where(body.wn-knowledge-editor, .knowledge-document) .wn-section-title {
    color: #ff5963 !important;
}

:where(body.wn-knowledge-editor, .knowledge-document) .wn-heading-centered {
    text-align: center;
}

:where(body.wn-knowledge-editor, .knowledge-document) strong,
:where(body.wn-knowledge-editor, .knowledge-document) b {
    color: #f5f7fa;
    font-weight: 800;
}

:where(body.wn-knowledge-editor, .knowledge-document) ul,
:where(body.wn-knowledge-editor, .knowledge-document) ol {
    margin: 1em 0;
    padding-left: 28px;
}

:where(body.wn-knowledge-editor, .knowledge-document) li + li {
    margin-top: .32em;
}

:where(body.wn-knowledge-editor, .knowledge-document) a {
    color: #ff5963;
    text-decoration: underline;
    text-underline-offset: 3px;
}

:where(body.wn-knowledge-editor, .knowledge-document) blockquote {
    margin: 24px 0;
    padding: 14px 18px;
    border-left: 3px solid #e21e2b;
    background: #151a23;
    color: #c6ccd6;
}

:where(body.wn-knowledge-editor, .knowledge-document) hr {
    height: 1px;
    margin: 32px 0;
    border: 0;
    background: #2a313d;
}

:where(body.wn-knowledge-editor, .knowledge-document) table {
    width: 100%;
    margin: 24px 0;
    border-collapse: collapse;
    border: 1px solid #303744;
    font-size: 13px;
}

:where(body.wn-knowledge-editor, .knowledge-document) th,
:where(body.wn-knowledge-editor, .knowledge-document) td {
    padding: 11px 13px;
    border: 1px solid #303744;
    text-align: left;
    vertical-align: top;
}

:where(body.wn-knowledge-editor, .knowledge-document) th {
    background: #171d27;
    color: #fff;
    font-weight: 800;
}

:where(body.wn-knowledge-editor, .knowledge-document) tr:nth-child(even) td {
    background: rgba(255, 255, 255, .012);
}

:where(body.wn-knowledge-editor, .knowledge-document) img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 22px auto;
    border-radius: 12px;
}

:where(body.wn-knowledge-editor, .knowledge-document) figure.image {
    max-width: 100%;
    margin: 24px auto;
    text-align: center;
}

:where(body.wn-knowledge-editor, .knowledge-document) figure.image img {
    margin: 0 auto;
}

:where(body.wn-knowledge-editor, .knowledge-document) figcaption {
    margin-top: 8px;
    color: #7f8898;
    font-size: 12px;
}

:where(body.wn-knowledge-editor, .knowledge-document) .wn-text-accent {
    color: #ff4d57 !important;
    font-weight: 700;
}

:where(body.wn-knowledge-editor, .knowledge-document) .wn-text-purple {
    color: #8b5cf6 !important;
    font-weight: 700;
}

:where(body.wn-knowledge-editor, .knowledge-document) .wn-text-muted {
    color: #818999 !important;
}

:where(body.wn-knowledge-editor, .knowledge-document) .wn-highlight {
    padding: 1px 4px;
    border-radius: 4px;
    background: rgba(226, 30, 43, .2) !important;
    color: #fff !important;
}

:where(body.wn-knowledge-editor, .knowledge-document) .wn-callout {
    margin: 24px 0;
    padding: 15px 18px;
    border: 1px solid #303744;
    border-radius: 12px;
    background: #141a23;
}

:where(body.wn-knowledge-editor, .knowledge-document) .wn-callout p:first-child {
    margin-top: 0;
}

:where(body.wn-knowledge-editor, .knowledge-document) .wn-callout p:last-child {
    margin-bottom: 0;
}

:where(body.wn-knowledge-editor, .knowledge-document) .wn-callout-info {
    border-left: 3px solid #6e9cff;
}

:where(body.wn-knowledge-editor, .knowledge-document) .wn-callout-warning {
    border-left: 3px solid #e21e2b;
}

@media (max-width: 760px) {
    body.wn-knowledge-editor {
        padding: 22px 18px 54px;
    }

    :where(body.wn-knowledge-editor, .knowledge-document) {
        font-size: 13px;
        line-height: 1.72;
    }

    :where(body.wn-knowledge-editor, .knowledge-document) h2,
    :where(body.wn-knowledge-editor, .knowledge-document) .wn-chapter-title {
        font-size: 25px;
    }

    :where(body.wn-knowledge-editor, .knowledge-document) h3 {
        font-size: 20px;
    }
}
