/* Shared document defaults for the editor, its safe preview and public pages.
   Inline formatting is the final authority; do not add !important here. */
:is(.rich-content, .jodit-wysiwyg) {
    color: var(--ink, #172b2b);
    font-family: var(--body-font, inherit);
    font-size: var(--body-size, 16px);
    line-height: var(--body-line-height, 1.9);
    overflow-wrap: anywhere;
    overflow-x: auto;
}
:is(.rich-content, .jodit-wysiwyg) :is(p, div, li, td, th, caption) {
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    white-space: normal;
    text-align: inherit;
}
:is(.rich-content, .jodit-wysiwyg) p { margin: 0 0 1em; }
:is(.rich-content, .jodit-wysiwyg) :is(h1, h2, h3, h4, h5, h6) {
    color: inherit;
    font-family: inherit;
    line-height: 1.5;
    letter-spacing: normal;
    font-weight: 700;
    margin: 1.4em 0 .6em;
}
:is(.rich-content, .jodit-wysiwyg) h1 { font-size: 2em; }
:is(.rich-content, .jodit-wysiwyg) h2 { font-size: 1.65em; }
:is(.rich-content, .jodit-wysiwyg) h3 { font-size: 1.35em; }
:is(.rich-content, .jodit-wysiwyg) h4 { font-size: 1.15em; }
:is(.rich-content, .jodit-wysiwyg) h5 { font-size: 1em; }
:is(.rich-content, .jodit-wysiwyg) h6 { font-size: .9em; }
:is(.rich-content, .jodit-wysiwyg) > :first-child { margin-top: 0; }
:is(.rich-content, .jodit-wysiwyg) > :last-child { margin-bottom: 0; }
:is(.rich-content, .jodit-wysiwyg) :is(ul, ol) { margin: 0 0 1em; padding-inline-start: 1.8em; }
:is(.rich-content, .jodit-wysiwyg) ul { list-style-type: disc; }
:is(.rich-content, .jodit-wysiwyg) ol { list-style-type: decimal; }
:is(.rich-content, .jodit-wysiwyg) li { margin-block: .25em; }
:is(.rich-content, .jodit-wysiwyg) li > :is(ul, ol) { margin-block: .35em; }
:is(.rich-content, .jodit-wysiwyg) blockquote {
    margin: 1em 0;
    padding: .7em 1.2em;
    border-inline-start: 3px solid #237e6c;
    background: #f2f7f5;
}
:is(.rich-content, .jodit-wysiwyg) a {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    text-decoration: underline;
    text-underline-offset: .15em;
    overflow-wrap: anywhere;
}
:is(.rich-content, .jodit-wysiwyg) :is(img, video, iframe) {
    display: inline-block;
    max-width: 100%;
    width: auto;
    height: auto;
    min-height: 0;
    aspect-ratio: auto;
    object-fit: contain;
    vertical-align: middle;
    margin: .5em 0;
    border: 0;
    border-radius: .4rem;
}
:is(.rich-content, .jodit-wysiwyg) iframe:not([width]):not([style*="width:"]) {
    width: 100%;
    aspect-ratio: 16 / 9;
}
:is(.rich-content, .jodit-wysiwyg) table {
    display: table;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin: 1em 0;
    border-collapse: collapse;
    border-spacing: 0;
    font: inherit;
    white-space: normal;
    text-align: inherit;
    overflow: visible;
}
:is(.rich-content, .jodit-wysiwyg) :is(td, th) {
    padding: .6em .75em;
    border: 1px solid #dce5e1;
    vertical-align: top;
    background: transparent;
}
:is(.rich-content, .jodit-wysiwyg) th { font-weight: 700; }
:is(.rich-content, .jodit-wysiwyg) tbody tr:last-child td { border: 1px solid #dce5e1; }
:is(.rich-content, .jodit-wysiwyg) tbody tr:hover { background: transparent; }
:is(.rich-content, .jodit-wysiwyg) caption { margin-bottom: .5em; }
:is(.rich-content, .jodit-wysiwyg) hr { margin: 1.5em 0; border: 0; border-top: 1px solid #dce5e1; }
