/* Match public rich text to TinyMCE 6 defaults. Saved inline styles and the
   generated csp-inline classes are loaded after this file and remain primary. */
.article-content,
.desc-content {
    color: #000;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
        Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    font-size: 16px;
    line-height: 1.4;
}

:where(.article-content, .desc-content) :where(p, h1, h2, h3, h4, h5, h6, ul, ol, dl, blockquote, pre, figure) {
    margin: revert;
    padding: revert;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6,
.desc-content h1,
.desc-content h2,
.desc-content h3,
.desc-content h4,
.desc-content h5,
.desc-content h6 {
    color: inherit;
    font-size: revert;
    font-weight: revert;
    line-height: 1.4;
    margin: revert;
}

.article-content pre,
.desc-content pre {
    background: revert;
    border: revert;
    border-radius: revert;
    color: revert;
    font-size: revert;
    overflow-x: auto;
    padding: revert;
}

.article-content a,
.desc-content a {
    color: revert;
    text-decoration: revert;
    text-underline-offset: revert;
}

.article-content table,
.desc-content table {
    border-collapse: collapse;
}

.article-content table td,
.article-content table th,
.desc-content table td,
.desc-content table th {
    background: revert;
    border: revert;
}

.article-content table:not([cellpadding]) td,
.article-content table:not([cellpadding]) th,
.desc-content table:not([cellpadding]) td,
.desc-content table:not([cellpadding]) th {
    padding: 0.4rem;
}

.article-content table[border]:not([border="0"]):not([style*="border-width"]) td,
.article-content table[border]:not([border="0"]):not([style*="border-width"]) th,
.desc-content table[border]:not([border="0"]):not([style*="border-width"]) td,
.desc-content table[border]:not([border="0"]):not([style*="border-width"]) th {
    border-width: 1px;
}

.article-content table[border]:not([border="0"]):not([style*="border-style"]) td,
.article-content table[border]:not([border="0"]):not([style*="border-style"]) th,
.desc-content table[border]:not([border="0"]):not([style*="border-style"]) td,
.desc-content table[border]:not([border="0"]):not([style*="border-style"]) th {
    border-style: solid;
}

.article-content table[border]:not([border="0"]):not([style*="border-color"]) td,
.article-content table[border]:not([border="0"]):not([style*="border-color"]) th,
.desc-content table[border]:not([border="0"]):not([style*="border-color"]) td,
.desc-content table[border]:not([border="0"]):not([style*="border-color"]) th {
    border-color: #ccc;
}

.article-content figure,
.desc-content figure {
    display: table;
    margin: 1rem auto;
}

.article-content figure figcaption,
.desc-content figure figcaption {
    color: #999;
    display: block;
    margin-top: 0.25rem;
    text-align: center;
}

.article-content hr,
.desc-content hr {
    border-color: #ccc;
    border-style: solid;
    border-width: 1px 0 0;
}

.article-content code,
.desc-content code {
    background-color: #e8e8e8;
    border-radius: 3px;
    padding: 0.1rem 0.2rem;
}

.article-content blockquote,
.desc-content blockquote {
    border-left: 2px solid #ccc;
    margin-left: 1.5rem;
    padding-left: 1rem;
}

/* The page title remains the only semantic H1. A duplicate body H1 becomes
   H2 for SEO but retains the native H1 visual size and spacing. */
.article-content .tinymce-original-h1 {
    display: block;
    font-size: 2em;
    font-weight: bold;
    margin-block: 0.67em;
}

.article-content img,
.desc-content img {
    max-width: 100%;
    height: auto;
}
