.rich-text {
    --wp--preset--font-size--small: 0.875rem;
    --wp--preset--font-size--medium: clamp(1rem, 0.964rem + 0.179vw, 1.125rem);
    --wp--preset--font-size--large: clamp(1.125rem, 1.054rem + 0.357vw, 1.375rem);
    --wp--preset--font-size--x-large: clamp(1.75rem, 1.679rem + 0.357vw, 2rem);
    --wp--preset--font-size--xx-large: clamp(2.15rem, 1.907rem + 1.214vw, 3rem);
    --wp--preset--spacing--20: 10px;
    --wp--preset--spacing--30: 20px;
    --wp--preset--spacing--40: 30px;
    --wp--preset--spacing--50: clamp(30px, 5vw, 50px);
    --wp--preset--spacing--60: clamp(30px, 7vw, 70px);
    --wp--preset--spacing--70: clamp(50px, 7vw, 90px);
    --wp--preset--spacing--80: clamp(70px, 10vw, 140px);
    min-width: 0;
    color: inherit;
    font-size: 16px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.rich-text > :first-child { margin-top: 0; }
.rich-text > :last-child { margin-bottom: 0; }

.rich-text p,
.rich-text h2,
.rich-text h3,
.rich-text h4,
.rich-text h5,
.rich-text h6,
.rich-text ul,
.rich-text ol,
.rich-text blockquote,
.rich-text figure,
.rich-text table,
.rich-text pre,
.rich-text .wp-block-buttons,
.rich-text .wp-block-columns,
.rich-text .wp-block-group,
.rich-text .wp-block-media-text,
.rich-text .wp-block-embed {
    margin-top: 0;
    margin-bottom: 16px;
}

.rich-text p:empty { min-height: 1.6em; }

.rich-text h2,
.rich-text h3,
.rich-text h4,
.rich-text h5,
.rich-text h6 {
    color: var(--cke-ink, #0f263b);
    line-height: 1.35;
}

.rich-text h2 { font-size: 24px; }
.rich-text h3 { font-size: 20px; }
.rich-text h4 { font-size: 18px; }
.rich-text h5,
.rich-text h6 { font-size: 16px; }

.rich-text .is-style-text-display {
    font-size: clamp(2.2rem, calc(2.2rem + ((1vw - 0.2rem) * 1.333)), 3.5rem);
    line-height: 1.2;
}

.rich-text .is-style-text-subtitle {
    font-size: clamp(1.5rem, calc(1.5rem + ((1vw - 0.2rem) * 0.392)), 1.75rem);
    line-height: 1.2;
}

.rich-text .is-style-text-annotation {
    width: fit-content;
    max-width: 100%;
    padding: 0.2rem 0.6rem 0.25rem;
    border: 1px solid currentColor;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.5;
    letter-spacing: normal;
}

.rich-text .has-small-font-size { font-size: var(--wp--preset--font-size--small); }
.rich-text .has-medium-font-size { font-size: var(--wp--preset--font-size--medium); }
.rich-text .has-large-font-size { font-size: var(--wp--preset--font-size--large); }
.rich-text .has-x-large-font-size { font-size: var(--wp--preset--font-size--x-large); }
.rich-text .has-xx-large-font-size { font-size: var(--wp--preset--font-size--xx-large); }

.rich-text strong,
.rich-text b { font-weight: 700; }

.rich-text em,
.rich-text i { font-style: italic; }

.rich-text u { text-decoration: underline; }

.rich-text s,
.rich-text del { text-decoration: line-through; }

.rich-text sub,
.rich-text sup {
    position: relative;
    font-size: 0.75em;
    line-height: 0;
    vertical-align: baseline;
}

.rich-text sub { bottom: -0.25em; }
.rich-text sup { top: -0.5em; }

.rich-text ul,
.rich-text ol { padding-left: 32px; }
.rich-text li + li { margin-top: 4px; }

.rich-text .wp-block-separator,
.rich-text hr { margin: 24px 0; }

.rich-text blockquote {
    padding: 16px 20px;
    border-left: 4px solid var(--cke-brand, #004488);
    background: var(--semantic-surface-muted, #f8fafc);
    color: var(--cke-ink, #0f263b);
}

.rich-text a:not(.document-files__file) {
    color: var(--cke-brand, #004488);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.rich-text .is-style-text-annotation a:not(.document-files__file) {
    color: inherit;
    text-decoration: none;
}

.rich-text img,
.rich-text video,
.rich-text iframe { max-width: 100%; height: auto; }
.rich-text .content-video-embed iframe {
    width: 100%;
    height: 100%;
}
.rich-text figure { max-width: 100%; }

.rich-text figcaption {
    margin-top: 8px;
    color: var(--cke-ink-soft, #37506e);
    font-size: 14px;
    line-height: 1.45;
}

.rich-text table { width: 100%; border-collapse: collapse; }

.rich-text th,
.rich-text td {
    padding: 10px 12px;
    border: 1px solid var(--cke-border, #c1cddb);
    text-align: left;
    vertical-align: top;
}

.rich-text th {
    background: var(--semantic-surface-muted, #f8fafc);
    color: var(--cke-ink, #0f263b);
    font-weight: 700;
}

.rich-text pre {
    max-width: 100%;
    padding: 16px;
    overflow-x: auto;
    background: var(--semantic-surface-muted, #f8fafc);
    border: 1px solid var(--cke-border, #c1cddb);
    border-radius: 8px;
    white-space: pre-wrap;
}

.rich-text code {
    padding: 0.1em 0.3em;
    border-radius: 3px;
    background: var(--semantic-surface-muted, #f8fafc);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 0.9em;
    overflow-wrap: anywhere;
}

.rich-text pre code {
    padding: 0;
    border-radius: 0;
    background: transparent;
    font-size: inherit;
}

.rich-text .has-text-align-left { text-align: left; }
.rich-text .has-text-align-center { text-align: center; }
.rich-text .has-text-align-right,
.rich-text [align="right"] { text-align: right; }
.rich-text .has-text-align-justify { text-align: justify; }

.rich-text .alignleft {
    float: left;
    margin: 0 24px 16px 0;
}

.rich-text .alignright {
    float: right;
    margin: 0 0 16px 24px;
}

.rich-text .aligncenter {
    display: block;
    margin-right: auto;
    margin-left: auto;
}

.rich-text .wp-block-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.rich-text .wp-block-button__link {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 6px;
    background: var(--cke-brand, #004488);
    color: #fff;
    text-decoration: none;
}

.rich-text .wp-block-button__link:focus-visible,
.rich-text a:focus-visible {
    outline: 3px solid #004488;
    outline-offset: 3px;
    box-shadow: 0 0 0 6px #f2b84b;
}

.rich-text .wp-block-embed__wrapper { max-width: 100%; }

.rich-text .wp-block-embed iframe {
    display: block;
    width: 100%;
    min-height: 320px;
    border: 0;
}

@media (max-width: 640px) {
    .rich-text .alignleft,
    .rich-text .alignright {
        float: none;
        margin-right: 0;
        margin-left: 0;
    }
}
