/* Defence Study blog typography — desktop / mobile */

.tinymce-content,
body.mce-content-body {
    font-family: "Open Sans", Arial, Helvetica, sans-serif;
    font-size: 17px;
    line-height: 1.6;
    color: #000;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.tinymce-content p,
body.mce-content-body p {
    font-family: "Open Sans", Arial, Helvetica, sans-serif;
    font-size: 17px !important;
    line-height: 1.6;
    font-weight: 400;
    color: #000;
    display: block;
    margin: 1em 0;
    text-transform: none;
}

.tinymce-content small,
body.mce-content-body small {
    font-size: 14px;
    font-weight: 400;
}

.tinymce-content h1,
.tinymce-content h2,
.tinymce-content h3,
.tinymce-content h4,
.tinymce-content h5,
.tinymce-content h6,
body.mce-content-body h1,
body.mce-content-body h2,
body.mce-content-body h3,
body.mce-content-body h4,
body.mce-content-body h5,
body.mce-content-body h6 {
    font-family: "Open Sans", Arial, Helvetica, sans-serif !important;
    line-height: 1.3 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    color: #000 !important;
    display: block;
    margin: 0.8em 0 0.5em;
}

.tinymce-content h1, body.mce-content-body h1 { font-size: 44px !important; font-weight: 700 !important; }
.tinymce-content h2, body.mce-content-body h2 { font-size: 34px !important; font-weight: 700 !important; }
.tinymce-content h3, body.mce-content-body h3 { font-size: 28px !important; font-weight: 700 !important; }
.tinymce-content h4, body.mce-content-body h4 { font-size: 23px !important; font-weight: 600 !important; }
.tinymce-content h5, body.mce-content-body h5 { font-size: 19px !important; font-weight: 600 !important; }
.tinymce-content h6, body.mce-content-body h6 { font-size: 17px !important; font-weight: 600 !important; }

.tinymce-content ul,
body.mce-content-body ul {
    font-size: 17px;
    display: block !important;
    list-style-type: disc !important;
    list-style-position: outside !important;
    margin: 1em 0;
    padding-inline-start: 40px !important;
    max-width: none !important;
}

.tinymce-content ol,
body.mce-content-body ol {
    font-size: 17px;
    display: block !important;
    list-style-type: decimal !important;
    list-style-position: outside !important;
    margin: 1em 0;
    padding-inline-start: 40px !important;
    max-width: none !important;
}

.tinymce-content li,
body.mce-content-body li {
    font-size: 17px;
    display: list-item !important;
    list-style-position: outside !important;
    padding-top: 0.15rem;
    padding-bottom: 0.15rem;
    white-space: normal !important;
    max-width: none !important;
}

.tinymce-content li p,
body.mce-content-body li p {
    display: inline !important;
    margin: 0 !important;
    padding: 0 !important;
    white-space: normal !important;
    font-size: 17px !important;
    font-weight: 400;
}

.tinymce-content li span,
body.mce-content-body li span {
    white-space: normal !important;
}

.tinymce-content table,
body.mce-content-body table {
    border-collapse: collapse !important;
    width: calc(100% - 6px);
    max-width: calc(100% - 6px);
    margin: 1em 6px 1.4em 0;
    border: 2px solid #2c3e2e !important;
    box-shadow: 3px 3px 0 #2c3e2e;
    background: #fff;
    border-radius: 2px;
    table-layout: auto !important;
    font-size: 17px;
}

.tinymce-content table th,
.tinymce-content table td,
body.mce-content-body table th,
body.mce-content-body table td {
    border: 1px solid #2c3e2e !important;
    padding: 10px 12px;
    vertical-align: top;
    color: #0f172a !important;
}

.tinymce-content table td,
body.mce-content-body table td {
    background: #fff !important;
    font-weight: 400;
}

.tinymce-content table tbody tr:nth-child(even) td,
body.mce-content-body table tbody tr:nth-child(even) td {
    background: #f8fafc !important;
}

.tinymce-content table th,
body.mce-content-body table th,
.tinymce-content table thead td,
body.mce-content-body table thead td,
.tinymce-content table:not(:has(th)) tr:first-child td,
body.mce-content-body table:not(:has(th)) tr:first-child td {
    background: #facc15 !important;
    color: #0f172a !important;
    font-weight: 700 !important;
}

.tinymce-content b,
.tinymce-content strong,
body.mce-content-body b,
body.mce-content-body strong {
    font-weight: 700;
}

.tinymce-content img,
body.mce-content-body img {
    max-width: 100%;
    height: auto;
}

.tinymce-content pre,
body.mce-content-body pre {
    font-size: 17px;
    display: block;
    font-family: monospace;
    white-space: pre;
    margin: 1em 0;
}

.blog-post-title {
    font-family: "Open Sans", Arial, Helvetica, sans-serif !important;
    font-size: 44px !important;
    font-weight: 700 !important;
    line-height: 1.2;
}

.blog-post-meta {
    font-size: 13px !important;
    font-weight: 400 !important;
}

.blog-card-title {
    font-family: "Open Sans", Arial, Helvetica, sans-serif !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1.3;
}

.blog-card-excerpt {
    font-size: 15px !important;
    font-weight: 400 !important;
    line-height: 1.5;
}

.blog-card-meta {
    font-size: 13px !important;
    font-weight: 400 !important;
}

@media (max-width: 767px) {
    .tinymce-content,
    body.mce-content-body {
        font-size: 16px;
    }
    .tinymce-content p,
    body.mce-content-body p,
    .tinymce-content ul,
    .tinymce-content ol,
    .tinymce-content li,
    .tinymce-content table,
    body.mce-content-body ul,
    body.mce-content-body ol,
    body.mce-content-body li,
    body.mce-content-body table {
        font-size: 16px !important;
    }
    .tinymce-content li p,
    body.mce-content-body li p {
        font-size: 16px !important;
    }
    .tinymce-content h1, body.mce-content-body h1 { font-size: 32px !important; }
    .tinymce-content h2, body.mce-content-body h2 { font-size: 26px !important; }
    .tinymce-content h3, body.mce-content-body h3 { font-size: 23px !important; }
    .tinymce-content h4, body.mce-content-body h4 { font-size: 20px !important; }
    .tinymce-content h5, body.mce-content-body h5 { font-size: 17px !important; }
    .tinymce-content h6, body.mce-content-body h6 { font-size: 16px !important; }
    .tinymce-content small,
    body.mce-content-body small {
        font-size: 13px;
    }
    .blog-post-title { font-size: 32px !important; }
    .blog-post-meta { font-size: 12px !important; }
    .blog-card-title { font-size: 17px !important; }
    .blog-card-excerpt { font-size: 14px !important; }
    .blog-card-meta { font-size: 12px !important; }
}
