/*
 * Shared rich-text presentation.
 * Loaded by both CKEditor and the public site so content keeps the same
 * proportions, spacing and responsive behaviour after publishing.
 */
:where(.ck-content, .richtext-content, .product-richtext) {
    color: #34495a;
    font-size: 1rem;
    line-height: 1.85;
    overflow-wrap: anywhere;
}

:where(.ck-content, .richtext-content, .product-richtext) > :first-child {
    margin-top: 0;
}

:where(.ck-content, .richtext-content, .product-richtext) > :last-child {
    margin-bottom: 0;
}

:where(.ck-content, .richtext-content, .product-richtext) p {
    margin: 0 0 1.15em;
}

:where(.ck-content, .richtext-content, .product-richtext) h2,
:where(.ck-content, .richtext-content, .product-richtext) h3,
:where(.ck-content, .richtext-content, .product-richtext) h4 {
    color: #123b52;
    font-weight: 700;
    line-height: 1.35;
    margin: 1.8em 0 0.7em;
}

:where(.ck-content, .richtext-content, .product-richtext) h2 {
    font-size: clamp(1.4rem, 2vw, 1.8rem);
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #dce6eb;
}

:where(.ck-content, .richtext-content, .product-richtext) h3 {
    font-size: clamp(1.2rem, 1.7vw, 1.45rem);
}

:where(.ck-content, .richtext-content, .product-richtext) h4 {
    font-size: 1.12rem;
}

:where(.ck-content, .richtext-content, .product-richtext) a {
    color: #0d6f91;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

:where(.ck-content, .richtext-content, .product-richtext) ul,
:where(.ck-content, .richtext-content, .product-richtext) ol {
    margin: 0 0 1.25em;
    padding-left: 1.5em;
}

:where(.ck-content, .richtext-content, .product-richtext) li + li {
    margin-top: 0.35em;
}

:where(.ck-content, .richtext-content, .product-richtext) blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    color: #415d6b;
    background: #f2f7f9;
    border-left: 4px solid #d88a2d;
}

:where(.ck-content, .richtext-content, .product-richtext) img {
    display: block;
    max-width: 100%;
    height: auto;
}

:where(.ck-content, .richtext-content, .product-richtext) figure {
    max-width: 100%;
    margin: 1.6rem auto;
}

:where(.ck-content, .richtext-content, .product-richtext) figcaption {
    margin-top: 0.55rem;
    color: #71838c;
    font-size: 0.88rem;
    line-height: 1.55;
    text-align: center;
}

:where(.ck-content, .richtext-content, .product-richtext) figure.table {
    display: block;
    overflow-x: auto;
}

:where(.ck-content, .richtext-content, .product-richtext) table {
    width: 100%;
    margin: 1.5rem 0;
    border-collapse: collapse;
}

:where(.ck-content, .richtext-content, .product-richtext) th,
:where(.ck-content, .richtext-content, .product-richtext) td {
    min-width: 7rem;
    padding: 0.7rem 0.8rem;
    border: 1px solid #d4e0e5;
    text-align: left;
    vertical-align: top;
}

:where(.ck-content, .richtext-content, .product-richtext) th {
    color: #123b52;
    background: #eef4f6;
    font-weight: 700;
}

:where(.ck-content, .richtext-content, .product-richtext) iframe,
:where(.ck-content, .richtext-content, .product-richtext) video {
    max-width: 100%;
}

.ck-editor__editable.ck-content {
    min-height: 26rem;
    padding: 1.5rem 1.75rem;
}

@media (max-width: 575.98px) {
    .ck-editor__editable.ck-content {
        min-height: 20rem;
        padding: 1rem;
    }
}
