/* ==========================================================================
   [content-flow-section] — editorial content flow
   Georgia small-caps headings (primary colour for the big ones, dark for the
   sub-heads), 15px body copy, one image floated beside the whole block and
   inline video embeds the copy wraps around.
   ========================================================================== */

.cfs {
    --cfs-heading-font: Georgia, "Times New Roman", serif;
    --cfs-accent: var(--primary-color, #8b1a1a);
    --cfs-ink: #333333;
    --cfs-sub-ink: #3a3a3a;

    padding: 40px 0;
    background: #ffffff;
}

/* The flow owns the floats, so it has to contain them. */
.cfs__flow::after {
    content: '';
    display: block;
    clear: both;
}

/* --- Headings ------------------------------------------------------------ */

.cfs__heading {
    margin: 0 0 10px;
    font-family: var(--cfs-heading-font);
    font-variant: small-caps;
    letter-spacing: 0.4px;
    line-height: 1.25;
}

.cfs__heading--primary {
    color: var(--cfs-accent);
    font-size: 24px;
    font-weight: 700;
}

.cfs__heading--dark {
    color: var(--cfs-sub-ink);
    font-size: 20px;
    font-weight: 400;
}

/* Breathing room between a finished section and the next heading. */
.cfs__body + .cfs__heading,
.cfs__media + .cfs__heading,
.cfs__heading + .cfs__heading {
    margin-top: 22px;
}

.cfs__heading--clear-left {
    clear: left;
}

.cfs__heading--clear-both {
    clear: both;
}

/* --- Body copy ---------------------------------------------------------- */

.cfs__body {
    font-size: 15px;
    line-height: 1.7;
    color: var(--cfs-ink);
}

.cfs__body p {
    margin: 0 0 14px;
}

.cfs__body p:last-child {
    margin-bottom: 0;
}

.cfs__body ul,
.cfs__body ol {
    margin: 0 0 14px;
    padding-left: 20px !important;
    list-style-type: disc !important;
}

.cfs__body ol {
    list-style-type: decimal !important;
}

.cfs__body li {
    display: list-item !important;
    list-style-type: inherit !important;
    margin-bottom: 6px;
}

.cfs__body a {
    color: var(--cfs-accent);
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.25s ease;
}

.cfs__body a:hover {
    color: #000000;
    text-decoration: underline;
}

/* --- Side image (floats beside the whole block) -------------------------- */

.cfs__side-image {
    max-width: 100%;
    margin: 0;
}

.cfs__side-image--right {
    float: right;
    margin: 4px 0 20px 28px;
}

.cfs__side-image--left {
    float: left;
    margin: 4px 28px 20px 0;
}

.cfs__side-image img {
    display: block;
    width: 100%;
    height: auto;
}

/* --- Inline media (rendered by the core [media] shortcode) --------------- */

.cfs__media {
    margin-bottom: 14px;
}

.cfs__media--left {
    float: left;
    margin: 6px 24px 14px 0;
}

.cfs__media--right {
    float: right;
    margin: 6px 0 14px 24px;
}

.cfs__media--full {
    clear: both;
    width: 100%;
}

.cfs__media iframe,
.cfs__media video {
    max-width: 100%;
}

/* --- Small screens: floats stack ---------------------------------------- */

@media (max-width: 767px) {
    .cfs {
        padding: 28px 0;
    }

    .cfs__side-image--left,
    .cfs__side-image--right,
    .cfs__media--left,
    .cfs__media--right {
        float: none;
        width: 100% !important;
        margin: 0 0 18px;
    }

    .cfs__heading--primary {
        font-size: 21px;
    }

    .cfs__heading--dark {
        font-size: 18px;
    }

    .cfs__body {
        font-size: 14px;
    }
}
