/* Shared typography for TinyMCE and the public course/news/blog content.
   Inline formatting saved by the editor always takes precedence.
   Keep this file readable: it is intentionally not minified. */
/* Font faces are deliberately not loaded here: they are global, even when
   this stylesheet only uses scoped selectors. Keep the public layout's
   original font files and weights unchanged. */

.sg-editor-content.sg-editor-content {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    font-weight: 400;
    font-style: normal;
    line-height: 1.7;
    color: #1f2937;
    text-align: start;
    text-transform: none;
    letter-spacing: normal;
    word-spacing: normal;
    overflow-wrap: break-word;
}

/* Restore semantic HTML defaults inside the document only. This neutralizes
   Bootstrap/theme rules, without !important and without changing saved HTML. */
.sg-editor-content.sg-editor-content :where(
    p, div, span, h1, h2, h3, h4, h5, h6, a, strong, b, em, i, u, s, strike,
    sub, sup, ul, ol, li, blockquote, table, thead, tbody, tfoot, tr, th, td,
    img, figure, figcaption, hr, pre, code
) {
    all: revert;
}

.sg-editor-content.sg-editor-content :where(p, div, li, span, td, th, blockquote) {
    font-family: inherit;
    line-height: inherit;
    color: inherit;
}

.sg-editor-content.sg-editor-content p {
    margin: 1em 0;
}

.sg-editor-content.sg-editor-content :where(h1, h2, h3, h4, h5, h6) {
    font-family: inherit;
    font-weight: bold;
    line-height: inherit;
    color: inherit;
    letter-spacing: normal;
    text-transform: none;
}

.sg-editor-content.sg-editor-content h1 {
    font-size: 2em;
    margin: 0.67em 0;
}
.sg-editor-content.sg-editor-content h2 {
    font-size: 1.5em;
    margin: 0.83em 0;
}
.sg-editor-content.sg-editor-content h3 {
    font-size: 1.17em;
    margin: 1em 0;
}
.sg-editor-content.sg-editor-content h4 {
    font-size: 1em;
    margin: 1.33em 0;
}
.sg-editor-content.sg-editor-content h5 {
    font-size: 0.83em;
    margin: 1.67em 0;
}
.sg-editor-content.sg-editor-content h6 {
    font-size: 0.67em;
    margin: 2.33em 0;
}

.sg-editor-content.sg-editor-content :where(ul, ol) {
    margin: 1em 0;
    padding-inline-start: 40px;
}

.sg-editor-content.sg-editor-content li {
    display: list-item;
}

.sg-editor-content.sg-editor-content a {
    color: #0000ee;
    text-decoration: underline;
}

.sg-editor-content.sg-editor-content blockquote {
    margin: 1em 40px;
    border-left: 4px solid #2563eb;
    padding-left: 16px;
    background: #f8fafc;
    color: #475569;
}

.sg-editor-content.sg-editor-content table {
    border-collapse: collapse;
    width: 100%;
}

.sg-editor-content.sg-editor-content :where(td, th) {
    border: 1px solid #d1d5db;
    padding: 8px;
}

.sg-editor-content.sg-editor-content img {
    max-width: 100%;
}

.sg-editor-content.sg-editor-content figure {
    display: table;
    margin: 1em auto;
}

.sg-editor-content.sg-editor-content figcaption {
    color: #666;
    text-align: center;
}

.sg-editor-content.sg-editor-content hr {
    border: 0;
    border-top: 1px solid #ccc;
}
