.custom-page-content-outer {
    width: min(100% - 2rem, 70rem);
    margin: 2.5rem auto;
}

.custom-page-content-outer--wide {
    width: min(100% - 2rem, 96rem);
}

.custom-page-rich-text {
    display: flow-root;
    color: #212529;
    font: 16px/1.6 system-ui, sans-serif;
    overflow-wrap: anywhere;
}

.custom-page-rich-text:is(body) {
    box-sizing: border-box;
    max-width: 70rem;
    margin: 0 auto;
    padding: 1rem;
}

.custom-page-rich-text.custom-page-rich-text--wide {
    max-width: 96rem;
}

.custom-page-rich-text :is(p, ul, ol, blockquote, pre, figure, table, hr) {
    margin: 0 0 1rem;
}

.custom-page-rich-text :is(h1, h2, h3, h4, h5, h6):not([class]) {
    margin: 1.2em 0 .5em;
    color: inherit;
    font-family: inherit;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: normal;
}
.custom-page-rich-text h1:not([class]) { font-size: 2em; }
.custom-page-rich-text h2:not([class]) { font-size: 1.65em; }
.custom-page-rich-text h3:not([class]) { font-size: 1.4em; }
.custom-page-rich-text h4:not([class]) { font-size: 1.25em; }
.custom-page-rich-text h5:not([class]) { font-size: 1.125em; }
.custom-page-rich-text h6:not([class]) { font-size: 1em; }

.custom-page-rich-text p { line-height: inherit; }

.custom-page-rich-text :is(ol, ul) { padding-left: 1.75em; }
.custom-page-rich-text ol { list-style-type: decimal; }
.custom-page-rich-text ul { list-style-type: disc; }
.custom-page-rich-text li > :is(ol, ul) { margin-bottom: 0; }
.custom-page-rich-text blockquote { border-left: .25rem solid #a6afba; padding-left: 1rem; }
.custom-page-rich-text hr { border: 0; border-top: 1px solid #a6afba; opacity: 1; }
.custom-page-rich-text pre { white-space: pre-wrap; }

.custom-page-rich-text :is(p, div, li, td, th, figcaption) > a {
    color: #15567c;
    text-decoration: underline;
}
.custom-page-rich-text img { display: inline-block; max-width: 100%; height: auto; }
.custom-page-rich-text figure.image { display: table; max-width: 100%; }
.custom-page-rich-text figure.align-center { margin-inline: auto; }
.custom-page-rich-text .align-left { float: left; margin-right: 1em; }
.custom-page-rich-text .align-right { float: right; margin-left: 1em; }
.custom-page-rich-text figcaption { caption-side: bottom; display: table-caption; color: #46505d; font-size: .875em; }
.custom-page-rich-text table { border-collapse: collapse; max-width: 100%; width: auto; }
.custom-page-rich-text :is(td, th) { border: 1px solid #a6afba; padding: .35em .55em; vertical-align: top; }
.custom-page-rich-text caption { caption-side: top; color: inherit; padding: .35em 0; }

@media (max-width: 600px) {
    .custom-page-content-outer { margin-block: 1.5rem; }
    .custom-page-rich-text table { display: block; overflow-x: auto; }
    .custom-page-rich-text .align-left, .custom-page-rich-text .align-right {
        float: none;
        margin-inline: 0;
    }
}
