/* Rendered output of the blog content blocks.
   Loaded by the editor preview AND the public post page, so both look the same. */

.cm-content {
    /* overridden per post by the editor's Design settings (Blocks.themeStyle) */
    --cmf-heading: inherit;
    --cmf-body: inherit;
    --cm-heading-color: #003557;
    --cm-accent: #f74254;
    --cm-gutter: 40px;
    --cm-rule: rgba(0, 0, 0, .14);
    --cm-rule-strong: rgba(0, 0, 0, .3);

    color: #273041;
    font-family: var(--cmf-body);
    font-size: 17px;
    line-height: 1.75;
}

.cm-content .cm-block + .cm-block { margin-top: 34px; }

/* a styled block is wrapped in .cm-sec, so spacing has to work either way */
.cm-content > .cm-sec + .cm-sec,
.cm-content > .cm-sec + .cm-block,
.cm-content > .cm-block + .cm-sec { margin-top: 34px; }

/* stacked colour bands butt up against each other, like a landing page */
.cm-content > .cm-sec--filled + .cm-sec--filled { margin-top: 0; }

/* A divider owns the whole gap it makes, so the standard block spacing is
   dropped on both sides of it - "Space (px)" is the number you actually get.
   These come after the rules above and match their specificity, so they win. */
.cm-content > .cm-block + .cm-block--divider,
.cm-content > .cm-sec + .cm-block--divider,
.cm-content > .cm-block + .cm-sec--divider,
.cm-content > .cm-sec + .cm-sec--divider,
.cm-content > .cm-block--divider + .cm-block,
.cm-content > .cm-block--divider + .cm-sec,
.cm-content > .cm-sec--divider + .cm-block,
.cm-content > .cm-sec--divider + .cm-sec { margin-top: 0; }

.cm-content p { margin: 0 0 16px; }
.cm-content p:last-child { margin-bottom: 0; }

.cm-content img { max-width: 100%; height: auto; }

.cm-heading {
    font-family: var(--cmf-heading);
    font-size: 26px;
    line-height: 1.25;
    font-weight: 700;
    color: var(--cm-heading-color);
    margin: 0 0 14px;
}

.cm-align--left   { text-align: left; }
.cm-align--center { text-align: center; }
.cm-align--right  { text-align: right; }

/* buttons (used by hero, cta and the buttons block) */

.cm-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.cm-buttons:empty { display: none; }

.cm-align--center .cm-buttons { justify-content: center; }
.cm-align--right .cm-buttons  { justify-content: flex-end; }

.cm-block--buttons .cm-buttons { margin-top: 0; }

.cmb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 26px;
    border: 2px solid var(--cm-heading-color);
    border-radius: 8px;
    background: var(--cm-heading-color);
    color: #fff !important;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none !important;
    transition: filter .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}

.cmb-btn:hover { filter: brightness(.87); }

.cmb-btn--secondary { background: var(--cm-accent); border-color: var(--cm-accent); }

.cmb-btn--outline { background: transparent; color: var(--cm-heading-color) !important; }
.cmb-btn--outline:hover { background: var(--cm-heading-color); color: #fff !important; filter: none; }

.cmb-btn--link {
    padding: 12px 6px;
    border-color: transparent;
    background: transparent;
    color: var(--cm-heading-color) !important;
    text-decoration: underline !important;
}

.cmb-btn--link:hover { background: transparent; border-color: transparent; color: var(--cm-accent) !important; filter: none; }

/* hero */

.cm-block--hero { border-radius: 10px; overflow: hidden; }

.cm-hero__image {
    display: block;
    width: 100%;
    max-height: 460px;
    object-fit: cover;
    border-radius: 10px;
}

/* "Show the whole image": drop the height cap so nothing is cut off */
.cm-hero--fit-contain .cm-hero__image {
    max-height: none;
    height: auto;
    object-fit: contain;
}

.cm-hero--image-top .cm-hero__copy { padding-top: 26px; }
.cm-hero--image-bottom .cm-hero__copy { padding-bottom: 26px; }

.cm-hero__copy.cm-align--center { max-width: 760px; margin-left: auto; margin-right: auto; }

.cm-hero__headline {
    font-family: var(--cmf-heading);
    font-size: 40px;
    line-height: 1.15;
    font-weight: 700;
    margin: 0 0 14px;
    color: var(--cm-heading-color);
}

.cm-hero__subheading {
    font-size: 19px;
    line-height: 1.6;
    color: #4b5563;
    margin: 0;
}

.cm-hero--split,
.cm-hero--split-reverse {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.cm-hero--split .cm-hero__image,
.cm-hero--split-reverse .cm-hero__image { max-height: 420px; }

.cm-hero--background,
.cm-hero--background-center {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    background: #003557 no-repeat center center;
    background-size: cover;
    padding: 60px 48px;
}

.cm-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 32, 56, .85) 0%, rgba(0, 32, 56, .45) 100%);
}

.cm-hero--background .cm-hero__copy,
.cm-hero--background-center .cm-hero__copy {
    position: relative;
    max-width: 640px;
}

.cm-hero--background-center { justify-content: center; text-align: center; }
.cm-hero--background-center .cm-hero__overlay { background: rgba(0, 32, 56, .65); }
.cm-hero--background-center .cm-hero__copy { max-width: 760px; }

.cm-hero--background .cm-hero__headline,
.cm-hero--background .cm-hero__subheading,
.cm-hero--background-center .cm-hero__headline,
.cm-hero--background-center .cm-hero__subheading { color: #fff; }

.cm-hero--background .cmb-btn--outline,
.cm-hero--background-center .cmb-btn--outline { color: #fff !important; border-color: #fff; }
.cm-hero--background .cmb-btn--outline:hover,
.cm-hero--background-center .cmb-btn--outline:hover { background: #fff; color: #003557 !important; }
.cm-hero--background .cmb-btn--link,
.cm-hero--background-center .cmb-btn--link { color: #fff !important; }

.cm-hero--text .cm-hero__copy { padding: 10px 0; }

/* image / video */

.cm-block--media { margin: 0; }

.cm-media__media { margin: 0; }

.cm-block--image img {
    display: block;
    width: 100%;
    border-radius: 10px;
}

.cm-media--medium .cm-media__media { max-width: 70%; }
.cm-media--small .cm-media__media  { max-width: 45%; }

.cm-align--center .cm-media__media { margin-left: auto; margin-right: auto; }
.cm-align--right .cm-media__media  { margin-left: auto; }

.cm-media--split,
.cm-media--split-reverse {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.cm-media__copy .cm-heading { margin-bottom: 12px; }
.cm-media__copy .cm-buttons { margin-top: 18px; }

.cm-media__media figcaption {
    margin-top: 10px;
    font-size: 13.5px;
    color: #8b9099;
    text-align: center;
}

/* quote */

.cm-block--quote {
    margin: 0;
    padding: 6px 0 6px 22px;
    border-left: 3px solid var(--cm-accent);
}

.cm-block--quote p {
    font-family: inherit;
    font-size: 22px;
    line-height: 1.5;
    font-style: italic;
    margin: 0;
}

.cm-block--quote cite {
    display: block;
    margin-top: 12px;
    font-size: 14px;
    font-style: normal;
    color: #8b9099;
}

/* call to action */

.cm-block--cta {
    padding: 40px 34px;
    border-radius: 10px;
    text-align: center;
    background: #f3f4f6;
}

.cm-block--cta h3 {
    font-family: var(--cmf-heading);
    font-size: 28px;
    font-weight: 700;
    color: var(--cm-heading-color);
    margin: 0 0 10px;
}

.cm-block--cta p { max-width: 620px; margin: 0 auto; }

.cm-block--cta .cm-buttons { justify-content: center; }

.cm-cta--navy { background: #003557; }
.cm-cta--navy h3, .cm-cta--navy p { color: #fff; }
.cm-cta--navy .cmb-btn { background: #fff; border-color: #fff; color: #003557 !important; }
.cm-cta--navy .cmb-btn--secondary { background: #f74254; border-color: #f74254; color: #fff !important; }
.cm-cta--navy .cmb-btn--outline { background: transparent; color: #fff !important; }
.cm-cta--navy .cmb-btn--link { background: transparent; border-color: transparent; color: #fff !important; }

.cm-cta--accent { background: #f74254; }
.cm-cta--accent h3, .cm-cta--accent p { color: #fff; }
.cm-cta--accent .cmb-btn { background: #fff; border-color: #fff; color: #f74254 !important; }
.cm-cta--accent .cmb-btn--secondary { background: #003557; border-color: #003557; color: #fff !important; }
.cm-cta--accent .cmb-btn--outline { background: transparent; color: #fff !important; }
.cm-cta--accent .cmb-btn--link { background: transparent; border-color: transparent; color: #fff !important; }

/* faq accordion */

.cm-block--faq .cm-heading { margin-bottom: 18px; }

.cm-faq__item {
    border: 1px solid #e4e6eb;
    border-radius: 8px;
    background: #fff;
}

.cm-faq__item + .cm-faq__item { margin-top: 10px; }

.cm-faq__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 20px;
    font-family: var(--cmf-heading);
    font-size: 17px;
    font-weight: 600;
    color: var(--cm-heading-color);
    cursor: pointer;
    list-style: none;
}

.cm-faq__question::-webkit-details-marker { display: none; }

.cm-faq__icon {
    position: relative;
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #eef3f8;
}

.cm-faq__icon::before,
.cm-faq__icon::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 10px;
    height: 2px;
    background: #003557;
    transform: translate(-50%, -50%);
}

.cm-faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .15s ease; }

.cm-faq__item[open] .cm-faq__icon::after { transform: translate(-50%, -50%) rotate(0); }

.cm-faq__answer {
    padding: 0 20px 18px;
    font-size: 16px;
    color: #374151;
}

/* email signup (lead magnet) */

.cm-block--signup {
    padding: 34px;
    border-radius: 10px;
    background: #f3f4f6;
    border: 1px solid #e4e6eb;
}

.cm-signup__copy h3 {
    font-family: var(--cmf-heading);
    font-size: 26px;
    font-weight: 700;
    color: var(--cm-heading-color);
    margin: 0 0 8px;
}

.cm-signup__copy p { margin: 0; color: #4b5563; }

.cm-signup__form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.cm-signup__input {
    flex: 1 1 200px;
    padding: 12px 14px;
    border: 1px solid #d3d7de;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    outline: none;
    background: #fff;
    color: #273041;
}

.cm-signup__input:focus { border-color: #003557; }
.cm-signup__input.is-invalid { border-color: #f74254; }

.cm-signup__form .cmb-btn { flex: 0 0 auto; }

.cm-signup__consent {
    margin: 12px 0 0;
    font-size: 12.5px;
    color: #8b9099;
}

.cm-signup__error { margin: 10px 0 0; font-size: 14px; color: #c0392b; }

.cm-signup__thanks { font-size: 17px; font-weight: 600; color: #003557; margin: 20px 0 14px; }

.cm-signup--navy { background: #003557; border-color: #003557; }
.cm-signup--navy .cm-signup__copy h3,
.cm-signup--navy .cm-signup__copy p,
.cm-signup--navy .cm-signup__thanks { color: #fff; }
.cm-signup--navy .cm-signup__consent { color: rgba(255, 255, 255, .7); }

/* divider */

/* the block IS the gap: its height is the whole space the divider makes and
   the mark sits centred in it. The height comes inline from "Space (px)". */
.cm-block--divider {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 32px;
}

/* translucent, so a rule stays visible on white and on any tinted band;
   .cm-sec--text-light flips both tokens for dark backgrounds */
.cm-divider--line span {
    display: block;
    width: 100%;
    height: 1px;
    background: var(--cm-rule);
}

.cm-divider--dots span {
    display: block;
    font-size: 0;
    line-height: 1;
    color: var(--cm-rule-strong);
}

.cm-divider--dots span::after {
    content: "\2022 \2022 \2022";
    font-size: 18px;
    letter-spacing: 10px;
    color: inherit;
}

.cm-divider--space span { display: none; }

/* two columns */

.cm-block--columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px;
}

.cm-block--columns .cm-heading { font-size: 22px; }

/* video player */

.cm-video__frame {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    border-radius: 10px;
    overflow: hidden;
    background: #000;
}

.cm-video__frame video,
.cm-video__frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: #000;
}

/* gallery */

.cm-block--gallery { display: grid; gap: 12px; }

.cm-gallery--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cm-gallery--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cm-gallery--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.cm-block--gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

/* letterboxed rather than uncapped, so the grid stays even */
.cm-gallery--fit-contain img {
    object-fit: contain;
    background: rgba(0, 0, 0, .04);
}

/* ===================================================================
   Section styling - background, width, padding, font. Applied to any
   block through the "Section & typography" group in the editor.
   =================================================================== */

.cm-sec {
    position: relative;
    padding: 34px var(--cm-gutter);
    background-repeat: repeat;
}

.cm-sec__inner { position: relative; z-index: 1; }

/* the background colour itself is written inline, from Blocks.backgroundColor */

/* patterns sit above the background colour, under the content */
.cm-sec--pat-blobs::before,
.cm-sec--pat-dots::before,
.cm-sec--pat-grid::before,
.cm-sec--pat-waves::before,
.cm-sec--pat-rings::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-repeat: repeat;
}

.cm-sec--pat-blobs::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'%3E%3Cg fill='%23000' opacity='.055'%3E%3Cpath d='M34 26c30-20 72-8 76 22s-28 46-60 52-54-6-56-30 14-30 40-44z'/%3E%3Cpath d='M156 22c32-6 54 22 44 50s-46 34-68 16-14-48 4-58 14-6 20-8z'/%3E%3Cpath d='M28 148c24-22 66-16 74 12s-22 48-52 54-50-4-54-26 14-26 32-40z'/%3E%3Cpath d='M154 142c30-12 56 10 52 40s-38 38-60 24-12-48 2-58 4-5 6-6z'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 240px 240px;
}

.cm-sec--pat-dots::before {
    background-image: radial-gradient(currentColor 1.6px, transparent 1.6px);
    background-size: 22px 22px;
    color: #000;
    opacity: .09;
}

.cm-sec--pat-grid::before {
    background-image: linear-gradient(currentColor 1px, transparent 1px), linear-gradient(90deg, currentColor 1px, transparent 1px);
    background-size: 36px 36px;
    color: #000;
    opacity: .06;
}

.cm-sec--pat-waves::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='40' viewBox='0 0 120 40'%3E%3Cpath d='M0 20c15-14 30-14 45 0s30 14 45 0 22-10 30-4' fill='none' stroke='%23000' stroke-opacity='.07' stroke-width='3'/%3E%3C/svg%3E");
    background-size: 120px 40px;
}

.cm-sec--pat-rings::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cg fill='none' stroke='%23000' stroke-opacity='.07' stroke-width='2'%3E%3Ccircle cx='40' cy='40' r='26'/%3E%3Ccircle cx='120' cy='110' r='34'/%3E%3Ccircle cx='128' cy='28' r='14'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 160px 160px;
}

/* on dark bands the pattern has to be light instead */
.cm-sec--text-light.cm-sec--pat-blobs::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'%3E%3Cg fill='%23fff' opacity='.1'%3E%3Cpath d='M34 26c30-20 72-8 76 22s-28 46-60 52-54-6-56-30 14-30 40-44z'/%3E%3Cpath d='M156 22c32-6 54 22 44 50s-46 34-68 16-14-48 4-58 14-6 20-8z'/%3E%3Cpath d='M28 148c24-22 66-16 74 12s-22 48-52 54-50-4-54-26 14-26 32-40z'/%3E%3Cpath d='M154 142c30-12 56 10 52 40s-38 38-60 24-12-48 2-58 4-5 6-6z'/%3E%3C/g%3E%3C/svg%3E");
}

.cm-sec--text-light.cm-sec--pat-dots::before,
.cm-sec--text-light.cm-sec--pat-grid::before { color: #fff; opacity: .14; }

.cm-sec--text-light.cm-sec--pat-waves::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='40' viewBox='0 0 120 40'%3E%3Cpath d='M0 20c15-14 30-14 45 0s30 14 45 0 22-10 30-4' fill='none' stroke='%23fff' stroke-opacity='.14' stroke-width='3'/%3E%3C/svg%3E");
}

.cm-sec--text-light.cm-sec--pat-rings::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cg fill='none' stroke='%23fff' stroke-opacity='.14' stroke-width='2'%3E%3Ccircle cx='40' cy='40' r='26'/%3E%3Ccircle cx='120' cy='110' r='34'/%3E%3Ccircle cx='128' cy='28' r='14'/%3E%3C/g%3E%3C/svg%3E");
}

/* width: "full" breaks out of the article column, edge to edge */
.cm-sec--w-wide .cm-sec__inner { max-width: none; }

.cm-sec--w-full {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: max(var(--cm-gutter), calc(50vw - 520px));
    padding-right: max(var(--cm-gutter), calc(50vw - 520px));
}

.cm-sec--w-full.cm-sec--w-wide { padding-left: max(var(--cm-gutter), calc(50vw - 660px)); padding-right: max(var(--cm-gutter), calc(50vw - 660px)); }

/* padding */
.cm-sec--pad-none { padding-top: 0; padding-bottom: 0; }
.cm-sec--pad-s    { padding-top: 18px; padding-bottom: 18px; }
.cm-sec--pad-m    { padding-top: 40px; padding-bottom: 40px; }
.cm-sec--pad-l    { padding-top: 64px; padding-bottom: 64px; }
.cm-sec--pad-xl   { padding-top: 96px; padding-bottom: 96px; }

/* a section with no background does not need side padding */
.cm-sec:not(.cm-sec--filled):not([class*="cm-sec--pat-"]):not(.cm-sec--w-full) {
    padding-left: 0;
    padding-right: 0;
}

/* corners */
.cm-sec--r-s { border-radius: 8px; overflow: hidden; }
.cm-sec--r-m { border-radius: 18px; overflow: hidden; }
.cm-sec--r-l { border-radius: 32px; overflow: hidden; }

/* text colour on dark bands */
.cm-sec--text-light,
.cm-sec--text-light p,
.cm-sec--text-light li,
.cm-sec--text-light .cm-hero__subheading,
.cm-sec--text-light .cm-faq__answer,
.cm-sec--text-light .cm-signup__copy p { color: #fff; }

.cm-sec--text-light .cm-heading,
.cm-sec--text-light .cm-hero__headline,
.cm-sec--text-light .cm-card__title,
.cm-sec--text-light .cm-checklist__title,
.cm-sec--text-light .cm-faq__question,
.cm-sec--text-light .cm-block--cta h3,
.cm-sec--text-light .cm-signup__copy h3 { color: #fff; }

.cm-sec--text-light { --cm-rule: rgba(255, 255, 255, .34); --cm-rule-strong: rgba(255, 255, 255, .6); }

.cm-sec--text-light .cmb-btn { background: #fff; border-color: #fff; color: var(--cm-heading-color) !important; }
.cm-sec--text-light .cmb-btn--secondary { background: var(--cm-accent); border-color: var(--cm-accent); color: #fff !important; }
.cm-sec--text-light .cmb-btn--outline,
.cm-sec--text-light .cmb-btn--link { background: transparent; border-color: #fff; color: #fff !important; }
.cm-sec--text-light .cmb-btn--outline:hover { background: #fff; color: var(--cm-heading-color) !important; }

.cm-sec--text-dark,
.cm-sec--text-dark p { color: #273041; }
.cm-sec--text-dark .cm-heading,
.cm-sec--text-dark .cm-hero__headline { color: var(--cm-heading-color); }

/* blocks that paint their own light surface keep dark text on a dark band */
.cm-sec--text-light .cm-cta--light h3,
.cm-sec--text-light .cm-signup--light .cm-signup__copy h3,
.cm-sec--text-light .cm-signup--light .cm-signup__thanks,
.cm-sec--text-light .cm-faq__question,
.cm-sec--text-light .cm-cards--card .cm-card__title { color: var(--cm-heading-color); }

.cm-sec--text-light .cm-cta--light p,
.cm-sec--text-light .cm-signup--light .cm-signup__copy p,
.cm-sec--text-light .cm-faq__answer,
.cm-sec--text-light .cm-cards--card .cm-card__body p { color: #4b5563; }

.cm-sec--text-light .cm-signup--light .cm-signup__consent,
.cm-sec--text-light .cm-media__media figcaption { color: #8b9099; }

.cm-sec--text-light .cm-cards--card .cm-card__link { color: var(--cm-accent); }

/* ... and their buttons stay on the post colours, not the light-on-dark set */
.cm-sec--text-light .cm-cta--light .cmb-btn,
.cm-sec--text-light .cm-signup--light .cmb-btn {
    background: var(--cm-heading-color);
    border-color: var(--cm-heading-color);
    color: #fff !important;
}

.cm-sec--text-light .cm-cta--light .cmb-btn--secondary,
.cm-sec--text-light .cm-signup--light .cmb-btn--secondary {
    background: var(--cm-accent);
    border-color: var(--cm-accent);
}

.cm-sec--text-light .cm-cta--light .cmb-btn--outline,
.cm-sec--text-light .cm-signup--light .cmb-btn--outline {
    background: transparent;
    border-color: var(--cm-heading-color);
    color: var(--cm-heading-color) !important;
}

/* per-section heading font, size and case */
.cm-sec .cm-heading,
.cm-sec .cm-hero__headline,
.cm-sec .cm-card__title,
.cm-sec .cm-checklist__title,
.cm-sec .cm-block--cta h3,
.cm-sec .cm-signup__copy h3 { font-family: var(--cm-sec-font, var(--cmf-heading)); }

.cm-font--epilogue { --cm-sec-font: 'Epilogue', system-ui, sans-serif; }
.cm-font--inter    { --cm-sec-font: 'Inter', system-ui, sans-serif; }
.cm-font--poppins  { --cm-sec-font: 'Poppins', system-ui, sans-serif; }
.cm-font--fredoka  { --cm-sec-font: 'Fredoka', system-ui, sans-serif; }
.cm-font--baloo    { --cm-sec-font: 'Baloo 2', system-ui, sans-serif; }
.cm-font--space    { --cm-sec-font: 'Space Grotesk', system-ui, sans-serif; }
.cm-font--bebas    { --cm-sec-font: 'Bebas Neue', Impact, sans-serif; }
.cm-font--playfair { --cm-sec-font: 'Playfair Display', Georgia, serif; }
.cm-font--dmserif  { --cm-sec-font: 'DM Serif Display', Georgia, serif; }
.cm-font--lora     { --cm-sec-font: 'Lora', Georgia, serif; }
.cm-font--caveat   { --cm-sec-font: 'Caveat', cursive; }
.cm-font--mono     { --cm-sec-font: 'JetBrains Mono', ui-monospace, monospace; }

/* per-section body font: everything in the section that is not a heading */
.cm-sec { font-family: var(--cm-sec-body, inherit); }

.cm-bodyfont--epilogue { --cm-sec-body: 'Epilogue', system-ui, sans-serif; }
.cm-bodyfont--inter    { --cm-sec-body: 'Inter', system-ui, sans-serif; }
.cm-bodyfont--poppins  { --cm-sec-body: 'Poppins', system-ui, sans-serif; }
.cm-bodyfont--fredoka  { --cm-sec-body: 'Fredoka', system-ui, sans-serif; }
.cm-bodyfont--baloo    { --cm-sec-body: 'Baloo 2', system-ui, sans-serif; }
.cm-bodyfont--space    { --cm-sec-body: 'Space Grotesk', system-ui, sans-serif; }
.cm-bodyfont--bebas    { --cm-sec-body: 'Bebas Neue', Impact, sans-serif; }
.cm-bodyfont--playfair { --cm-sec-body: 'Playfair Display', Georgia, serif; }
.cm-bodyfont--dmserif  { --cm-sec-body: 'DM Serif Display', Georgia, serif; }
.cm-bodyfont--lora     { --cm-sec-body: 'Lora', Georgia, serif; }
.cm-bodyfont--caveat   { --cm-sec-body: 'Caveat', cursive; }
.cm-bodyfont--mono     { --cm-sec-body: 'JetBrains Mono', ui-monospace, monospace; }

.cm-sec--h-s  .cm-heading { font-size: 20px; }
.cm-sec--h-m  .cm-heading { font-size: 30px; }
.cm-sec--h-l  .cm-heading { font-size: 40px; }
.cm-sec--h-xl .cm-heading { font-size: 54px; }

.cm-sec--h-s  .cm-hero__headline { font-size: 30px; }
.cm-sec--h-m  .cm-hero__headline { font-size: 46px; }
.cm-sec--h-l  .cm-hero__headline { font-size: 58px; }
.cm-sec--h-xl .cm-hero__headline { font-size: 72px; }

.cm-sec--case-upper .cm-heading, .cm-sec--case-upper .cm-hero__headline, .cm-sec--case-upper .cm-card__title { text-transform: uppercase; }
.cm-sec--case-lower .cm-heading, .cm-sec--case-lower .cm-hero__headline, .cm-sec--case-lower .cm-card__title { text-transform: lowercase; }
.cm-sec--case-title .cm-heading, .cm-sec--case-title .cm-hero__headline, .cm-sec--case-title .cm-card__title { text-transform: capitalize; }

/* hero: image card with the buttons overlapping it -------------------- */

.cm-hero--card,
.cm-hero--card-reverse {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
    align-items: center;
    border-radius: 0;
    overflow: visible;
}

.cm-hero__card {
    position: relative;
    padding: 14px 14px 46px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 18px 40px rgba(16, 24, 40, .16);
}

.cm-hero__card-image {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 6px;
}

.cm-hero--fit-contain .cm-hero__card-image {
    aspect-ratio: auto;
    height: auto;
    object-fit: contain;
}

/* the buttons overlap the image, so an uncropped card needs room for them */
.cm-hero--fit-contain .cm-hero__card { padding-bottom: 14px; }
.cm-hero--fit-contain .cm-hero__card-buttons { position: static; margin-top: 12px; }

.cm-hero__card-buttons {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cm-hero__card-buttons .cmb-btn {
    flex: 1 1 auto;
    padding: 16px 20px;
    border-radius: 4px;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: .02em;
    text-transform: uppercase;
    box-shadow: 0 8px 20px rgba(16, 24, 40, .22);
}

.cm-hero--card .cm-hero__copy,
.cm-hero--card-reverse .cm-hero__copy { padding: 0; }

/* checklist ----------------------------------------------------------- */

.cm-checklist__head { margin-bottom: 26px; }
.cm-checklist__head .cm-heading { margin-bottom: 8px; }
.cm-checklist__head p:last-child { margin-bottom: 0; }

.cm-checklist {
    display: grid;
    gap: 22px 34px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cm-checklist--1 { grid-template-columns: minmax(0, 1fr); }
.cm-checklist--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cm-checklist--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.cm-checklist__item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.cm-checklist__mark {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin-top: 1px;
    background: #fff;
    color: var(--cm-accent);
    box-shadow: 0 2px 8px rgba(16, 24, 40, .12);
}

.cm-checklist__mark svg { width: 20px; height: 20px; }

.cm-checklist__mark--circle { border-radius: 50%; }
.cm-checklist__mark--square { border-radius: 9px; }
.cm-checklist__mark--plain  { background: transparent; box-shadow: none; width: 24px; height: 24px; }

.cm-checklist__mark--number {
    font-family: var(--cm-sec-font, var(--cmf-heading));
    font-size: 16px;
    font-weight: 700;
}

.cm-checklist__body p { margin: 0; font-size: 15.5px; line-height: 1.6; }
.cm-checklist__body p + p { margin-top: 8px; }

.cm-checklist__title {
    display: block;
    margin-bottom: 4px;
    font-family: var(--cm-sec-font, var(--cmf-heading));
    font-size: 17px;
    font-weight: 700;
    color: var(--cm-heading-color);
}

/* feature cards -------------------------------------------------------- */

.cm-block--cards > .cm-heading { margin-bottom: 22px; }

.cm-cards {
    display: grid;
    gap: 22px;
}

.cm-cards--cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cm-cards--cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cm-cards--cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.cm-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 12px;
}

.cm-card__image img {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: cover;
}

/* letterboxed rather than uncapped, so the cards in a row stay level */
.cm-cards--fit-contain .cm-card__image img {
    object-fit: contain;
    background: rgba(0, 0, 0, .04);
}

.cm-card__body { padding: 20px; }

.cm-card__title {
    margin: 0 0 8px;
    font-family: var(--cmf-heading);
    font-size: 19px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--cm-heading-color);
}

.cm-card__body p { font-size: 15.5px; line-height: 1.65; }

.cm-card__link {
    display: inline-block;
    margin-top: 6px;
    font-size: 15px;
    font-weight: 600;
    color: var(--cm-accent);
    text-decoration: none;
}

.cm-card__link:hover { text-decoration: underline; }

.cm-cards--card .cm-card    { background: #fff; box-shadow: 0 6px 20px rgba(16, 24, 40, .1); }
.cm-cards--outline .cm-card { background: transparent; border: 1px solid #e4e6eb; }
.cm-cards--tint .cm-card    { background: rgba(0, 0, 0, .04); }
.cm-cards--plain .cm-card   { background: transparent; }
.cm-cards--plain .cm-card__body { padding: 16px 0 0; }

.cm-sec--text-light .cm-cards--outline .cm-card { border-color: rgba(255, 255, 255, .3); }
.cm-sec--text-light .cm-cards--tint .cm-card { background: rgba(255, 255, 255, .12); }
.cm-sec--text-light .cm-card__link { color: #fff; }

.cm-align--center .cm-card__body { text-align: center; }

@media (max-width: 1023px) {
    .cm-cards--cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cm-checklist--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
    .cm-sec { padding-left: 20px; padding-right: 20px; }
    .cm-sec--w-full { padding-left: 20px; padding-right: 20px; }
    .cm-sec--pad-l, .cm-sec--pad-xl { padding-top: 44px; padding-bottom: 44px; }

    .cm-hero--card,
    .cm-hero--card-reverse { grid-template-columns: 1fr; gap: 30px; }
    .cm-hero--card-reverse .cm-hero__copy { order: 2; }

    .cm-checklist--2,
    .cm-checklist--3 { grid-template-columns: minmax(0, 1fr); }

    .cm-cards--cols-2,
    .cm-cards--cols-3,
    .cm-cards--cols-4 { grid-template-columns: minmax(0, 1fr); }

    .cm-sec--h-l .cm-hero__headline,
    .cm-sec--h-xl .cm-hero__headline { font-size: 38px; }
    .cm-sec--h-l .cm-heading,
    .cm-sec--h-xl .cm-heading { font-size: 30px; }
}

@media (max-width: 767px) {
    .cm-block--columns,
    .cm-gallery--2,
    .cm-gallery--3,
    .cm-gallery--4,
    .cm-hero--split,
    .cm-hero--split-reverse { grid-template-columns: 1fr; }
    .cm-hero--split-reverse .cm-hero__copy { order: 2; }
    .cm-media--split,
    .cm-media--split-reverse { grid-template-columns: 1fr; }
    .cm-media--split-reverse .cm-media__copy { order: 2; }
    .cm-media--medium .cm-media__media,
    .cm-media--small .cm-media__media { max-width: 100%; }

    .cm-hero__headline { font-size: 30px; }
    .cm-hero--background,
    .cm-hero--background-center { padding: 40px 22px; min-height: 320px; }
    .cm-block--cta { padding: 28px 20px; }
}

/* custom html block: author markup, given sensible defaults --------------- */

.cm-block--html h1, .cm-block--html h2, .cm-block--html h3, .cm-block--html h4 {
    font-family: var(--cmf-heading);
    color: var(--cm-heading-color);
    line-height: 1.25;
    margin: 0 0 12px;
}
.cm-block--html h1 { font-size: 36px; }
.cm-block--html h2 { font-size: 28px; }
.cm-block--html h3 { font-size: 22px; }
.cm-block--html h4 { font-size: 18px; }
.cm-block--html p, .cm-block--html li { font-size: 17px; line-height: 1.75; }
.cm-block--html p { margin: 0 0 16px; }
.cm-block--html ul, .cm-block--html ol { margin: 0 0 16px; padding-left: 24px; }
.cm-block--html img { max-width: 100%; height: auto; border-radius: 8px; }
.cm-block--html iframe { max-width: 100%; border: 0; border-radius: 8px; }
.cm-block--html a:not(.cmb-btn) { color: var(--cm-accent); text-decoration: underline; }
.cm-block--html table { width: 100%; border-collapse: collapse; margin: 0 0 16px; font-size: 15px; }
.cm-block--html th, .cm-block--html td { padding: 10px 12px; border: 1px solid #e4e6eb; text-align: left; vertical-align: top; }
.cm-block--html th { background: rgba(0, 0, 0, .04); font-weight: 600; }
.cm-block--html blockquote { margin: 0 0 16px; padding: 4px 0 4px 18px; border-left: 3px solid var(--cm-accent); color: #4b5563; }
.cm-block--html pre { padding: 14px 16px; background: #f1f4f7; border-radius: 8px; overflow-x: auto; font-size: 13.5px; }
.cm-block--html hr { border: 0; border-top: 1px solid var(--cm-rule); margin: 24px 0; }
.cm-sec--text-light .cm-block--html th, .cm-sec--text-light .cm-block--html td { border-color: rgba(255, 255, 255, .25); }
.cm-sec--text-light .cm-block--html blockquote { color: inherit; }

/* embed / form block --------------------------------------------------- */

.cm-block--embed > .cm-heading { margin-bottom: 16px; }

.cm-embed__frame iframe {
    display: block;
    width: 100%;
    border: 0;
    border-radius: 8px;
    background: #f5f7fa;
}

.cm-embed--video .cm-embed__frame iframe { aspect-ratio: 16 / 9; height: auto; }

.cm-embed__placeholder {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 28px 22px;
    border: 1px dashed #c3cad4;
    border-radius: 8px;
    background: #f5f7fa;
    color: #596680;
    font-size: 14px;
    text-align: center;
}

.cm-embed__placeholder strong { font-size: 16px; color: #273041; }
