.rich-body {
    min-width: 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    line-height: 1.7;
}

.rich-body p, .rich-body ul, .rich-body ol { margin: 0 0 .55em; }
.rich-body ul, .rich-body ol { padding-inline-start: 1.55em; }
.rich-body h2, .rich-body h3 { margin: .7em 0 .25em; line-height: 1.35; word-break: keep-all; }
.rich-body h2 { font-size: 1.45em; }
.rich-body h3 { font-size: 1.2em; }
.rich-body a { color: #214c98; text-underline-offset: .18em; }
.rich-body hr { margin: 1.1rem 0; border: 0; border-top: 1px solid #cfc6d9; }

.rich-body blockquote, .rich-body :is(.notice-info, .notice-success, .notice-warning) {
    margin: .65em 0;
    padding: .55em .8em;
    border-inline-start: 3px solid #9177aa;
    border-radius: 0 .3rem .3rem 0;
    background: #f4eff9;
}

.rich-body .notice-success { border-color: #468968; background: #ecf7ef; }
.rich-body .notice-warning { border-color: #a77322; background: #fff5e0; }
.rich-body a.action-link {
    display: inline-block;
    max-width: 100%;
    padding: .4em .85em;
    border-radius: .35rem;
    background: #5f4380;
    color: white;
    font-weight: 650;
    text-decoration: none;
}

.rich-body .rich-table-scroll { max-width: 100%; overflow-x: auto; }
.rich-body table { width: 100%; min-width: 15rem; margin: .65em 0; border-collapse: collapse; }
.rich-body th, .rich-body td { padding: .45em .55em; border: 1px solid #ddd3e6; vertical-align: top; white-space: pre-wrap; }
.rich-body th { background: #f2edf7; text-align: start; }

.rich-body figure { width: fit-content; max-width: 100%; margin: .8em auto; }
.rich-body figure img { display: block; width: 100%; max-width: 100%; height: auto; margin-inline: auto; }
.rich-body .image-25 { width: 25%; }
.rich-body .image-50 { width: 50%; }
.rich-body .image-75 { width: 75%; }
.rich-body .image-100 { width: 100%; }
.rich-body figure.align-left { margin-inline-start: 0; }
.rich-body figure.align-right { margin-inline-end: 0; }
.rich-body figcaption { padding-top: .3em; color: #625d6a; font-size: .88em; text-align: inherit; }
.rich-body .rich-photo { text-align: center; }
.rich-body .rich-photo-open { display: block; cursor: zoom-in; }
.rich-body .rich-photo-close { display: none; }

.rich-body .rich-photo:target {
    position: fixed;
    z-index: 2;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: auto;
    max-width: none;
    margin: 0;
    padding: 3rem 1rem 1rem;
    overflow: auto;
    background: #211f28;
}

.rich-body .rich-photo:target .rich-photo-open { cursor: default; }
.rich-body .rich-photo:target img { width: auto; max-height: 75vh; max-height: 75dvh; object-fit: contain; }
.rich-body .rich-photo:target figcaption { color: white; }
.rich-body .rich-photo:target .rich-photo-close {
    position: absolute;
    inset-block-start: .4rem;
    inset-inline-end: .5rem;
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    color: white;
    font-size: 1.55rem;
    line-height: 1;
    text-decoration: none;
}

.rich-body .font-sans { font-family: system-ui, "Malgun Gothic", sans-serif; }
.rich-body .font-serif { font-family: Georgia, Batang, serif; }
.rich-body .font-mono { font-family: Consolas, "Malgun Gothic", monospace; }
.rich-body .size-14 { font-size: .875rem; }
.rich-body .size-16 { font-size: 1rem; }
.rich-body .size-18 { font-size: 1.125rem; }
.rich-body .size-20 { font-size: 1.25rem; }
.rich-body .size-24 { font-size: 1.5rem; }
.rich-body .size-28 { font-size: 1.75rem; }
.rich-body .size-32 { font-size: 2rem; }
.rich-body .color-black { color: #211f28; }
.rich-body .color-gray { color: #625d6a; }
.rich-body .color-red { color: #b63036; }
.rich-body .color-orange { color: #9c4b11; }
.rich-body .color-green { color: #246744; }
.rich-body .color-blue { color: #235aab; }
.rich-body .color-purple { color: #725397; }
.rich-body .highlight-yellow { background: #fff2a6; }
.rich-body .highlight-pink { background: #ffdbe5; }
.rich-body .highlight-blue { background: #dcecff; }
.rich-body .highlight-green { background: #d8f0df; }
.rich-body .align-left { text-align: left; }
.rich-body .align-center { text-align: center; }
.rich-body .align-right { text-align: right; }
.rich-body .line-compact { line-height: 1.35; }
.rich-body .line-normal { line-height: 1.7; }
.rich-body .line-relaxed { line-height: 2.05; }
.rich-body .indent-1 { padding-inline-start: 1em; }
.rich-body .indent-2 { padding-inline-start: 2em; }
.rich-body .indent-3 { padding-inline-start: 3em; }
