/* 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.75;
    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.75 !important;
    font-weight: 400;
    color: #000;
    display: block;
    margin: 0 0 1.35em 0 !important;
    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: 1.6em 0 0.7em !important;
}

.tinymce-content > :first-child,
body.mce-content-body > :first-child {
    margin-top: 0 !important;
}

.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: 0 0 1.35em 0 !important;
    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: 0 0 1.35em 0 !important;
    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;
    margin: 0.4em 0 !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,
body.mce-content-body {
    min-width: 0;
    max-width: 100%;
}

.content-table-scroll {
    display: block;
    box-sizing: border-box;
    /* width:0 + min-width:100% keeps this box as wide as the article,
       even when the table inside is wider, so the extra columns scroll
       instead of being clipped by the page. */
    width: 0;
    min-width: 100%;
    max-width: 100%;
    margin: 1.6em 0 1.8em;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    touch-action: pan-x pan-y;
    padding: 0 0 4px;
}

.tinymce-content table,
body.mce-content-body table {
    border-collapse: collapse !important;
    width: 100%;
    max-width: 100%;
    margin: 0 !important;
    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: 12px 14px !important;
    vertical-align: top;
    color: #0f172a !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.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;
    margin: 1.5em 0 !important;
}

.tinymce-content figure,
body.mce-content-body figure {
    display: block;
    margin: 1.6em 0 !important;
}

.tinymce-content figcaption,
body.mce-content-body figcaption {
    display: block;
    margin: 0.6em 0 0 !important;
    font-size: 14px;
    color: #475569;
}

.tinymce-content blockquote,
body.mce-content-body blockquote {
    display: block;
    margin: 1.6em 0 !important;
    padding: 0.75em 0 0.75em 1.1em !important;
    border-left: 4px solid #facc15;
    color: #1e293b;
}

.tinymce-content hr,
body.mce-content-body hr {
    display: block;
    margin: 2em 0 !important;
    border: 0;
    border-top: 1px solid #cbd5e1;
}

.tinymce-content iframe,
.tinymce-content video,
body.mce-content-body iframe,
body.mce-content-body video {
    display: block;
    max-width: 100%;
    margin: 1.6em 0 !important;
}

.tinymce-content img.alignleft,
body.mce-content-body img.alignleft {
    float: left;
    margin: 0.5em 1.5em 1.25em 0 !important;
    max-width: 50%;
}

.tinymce-content img.alignright,
body.mce-content-body img.alignright {
    float: right;
    margin: 0.5em 0 1.25em 1.5em !important;
    max-width: 50%;
}

.tinymce-content img.aligncenter,
body.mce-content-body img.aligncenter {
    display: block;
    float: none;
    margin: 1.5em auto !important;
}

.tinymce-content img.alignfull,
body.mce-content-body img.alignfull {
    display: block;
    float: none;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 1.5em 0 !important;
}

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

.blog-post-title {
    font-family: "Open Sans", Arial, Helvetica, sans-serif !important;
    font-size: 44px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    text-transform: none !important;
    margin: 0 0 0.85em 0 !important;
}

.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;
    text-transform: none !important;
}

.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; }

    .tinymce-content table,
    body.mce-content-body table {
        width: max-content;
        min-width: 100%;
        max-width: none;
    }
    .tinymce-content table th,
    .tinymce-content table td,
    body.mce-content-body table th,
    body.mce-content-body table td {
        min-width: 7.5rem;
        max-width: 16rem;
    }
}
