/* CMS text pages: editor styles/classes are removed before rendering. */
.td-text-page {
    width: min(900px, 90%);
    margin: 60px auto 80px;
    padding: clamp(20px, 4vw, 36px);
    background: var(--surface-color, #1a1a1a);
    border: 1px solid var(--border-color, #333);
}
.td-page-content {
    color: #fff;
    font: 400 1rem/1.75 'Inter', sans-serif;
    overflow-wrap: anywhere;
}
.td-page-content :where(div, section, article, p, ul, ol, li, blockquote, table, td, th) {
    font-size: inherit;
    line-height: inherit;
    color: inherit;
}
.td-page-content :where(h1, h2, h3, h4, h5, h6) {
    font-family: inherit;
    color: var(--accent-color, #d4ff00);
    font-weight: 700;
    line-height: 1.3;
    margin: 1.8em 0 .75em;
    text-transform: none;
}
.td-page-content h1 {
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 900;
    text-transform: uppercase;
    margin-top: 0;
}
.td-page-content h2 { font-size: 1.35rem; }
.td-page-content h3 { font-size: 1.15rem; }
.td-page-content :where(h4, h5, h6) { font-size: 1rem; }
.td-page-content :where(p, ul, ol, blockquote, table) { margin: 0 0 1em; }
.td-page-content :where(ul, ol) { padding-left: 1.6em; }
.td-page-content ul { list-style: disc; }
.td-page-content ol { list-style: decimal; }
.td-page-content ol[type="a"] { list-style-type: lower-alpha; }
.td-page-content ol[type="A"] { list-style-type: upper-alpha; }
.td-page-content ol[type="i"] { list-style-type: lower-roman; }
.td-page-content ol[type="I"] { list-style-type: upper-roman; }
.td-page-content li { margin-bottom: .4em; }
.td-page-content :where(strong, b) { font-weight: 700; }
.td-page-content a { color: var(--accent-color, #d4ff00); text-decoration: underline; }
.td-page-content a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.td-page-content blockquote { border-left: 3px solid #d4ff00; padding-left: 1em; }
.td-page-content table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.td-page-content :where(th, td) { padding: .6em; border: 1px solid #444; }
.td-page-content img { max-width: 100%; height: auto; }
.td-page-content hr { border: 0; border-top: 1px solid #444; margin: 1.5em 0; }
