/* checkpoint 10: cms public pages */

.cctp-cms {
    width: 100%;
    padding: 24px 18px 96px;
}

.cctp-cms h1 {
    margin: 0 0 20px;
    font-size: 32px;
    line-height: 1.15;
}

.cctp-cms__content {
    font-size: 17px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.cctp-cms__content > :first-child {
    margin-top: 0;
}

.cctp-cms__content p {
    margin: 0 0 16px;
}

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

.cctp-cms__content h2,
.cctp-cms__content h3,
.cctp-cms__content h4 {
    line-height: 1.25;
    margin: 1.4em 0 .55em;
}

.cctp-cms__content h2 {
    font-size: 24px;
}

.cctp-cms__content h3 {
    font-size: 20px;
}

.cctp-cms__content h4 {
    font-size: 18px;
}

.cctp-cms__content a {
    color: #3366cc;
}

.cctp-cms__content strong {
    font-weight: 700;
}

.cctp-cms__content ul,
.cctp-cms__content ol {
    margin: 14px 0 18px;
    padding-left: 22px;
}

.cctp-cms__content li {
    margin-bottom: 8px;
}

.cctp-cms__content blockquote {
    margin: 18px 0;
    padding: 10px 14px;
    border-left: 3px solid var(--cctp-border);
    background: #f7f8fa;
    border-radius: var(--cctp-radius);
}

/* shared CMS section: content stays white */
.cctp-cms__section {
    margin: 0 -18px;
    padding: 22px 18px;
    background: #fff;
    border-bottom: 1px solid var(--cctp-border);
}

.cctp-cms__section:first-child {
    padding-top: 0;
}

.cctp-cms__section:last-child {
    border-bottom: 0;
}

/* keep old HTML compatible, but do not tint whole content */
.cctp-cms__section--soft {
    background: #fff;
}

/* shared CMS heading: background only on heading row */
.cctp-cms__heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    padding: 12px 14px;
    background: #3366cc;
    border-top: 1px solid var(--cctp-border);
    border-bottom: 1px solid var(--cctp-border);
    border-radius: var(--cctp-radius);
}

.cctp-cms__section:first-child .cctp-cms__heading {
    border-top: 0;
}

.cctp-cms__heading-icon {
    display: inline-flex;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: var(--cctp-radius);
    background: rgba(255, 255, 255, .62);
    font-size: 19px;
    line-height: 1;
}

.cctp-cms__content .cctp-cms__heading h2,
.cctp-cms__content .cctp-cms__heading h3 {
    margin: 0;
    font-size: 22px;
    line-height: 1.25;
	color: #ffffff;
}

/* reusable emphasis boxes */
.cctp-cms__highlight {
    margin: 18px 0 0;
    padding: 14px 15px;
    background: #eef3ff;
    border-radius: var(--cctp-radius);
    line-height: 1.55;
}

.cctp-cms__statement {
    margin: 18px 0 0;
    padding: 14px 15px;
    border-left: 3px solid #3366cc;
    background: #f7f8fa;
    border-radius: var(--cctp-radius);
    line-height: 1.55;
}

.cctp-cms__footer-note {
    margin: 24px 0 0;
    padding: 16px 14px;
    background: #f7f8fa;
    border-radius: var(--cctp-radius);
    color: #65676b;
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
}

@media (max-width: 720px) {
    .cctp-cms {
        padding: 22px 16px 92px;
    }

    .cctp-cms h1 {
        font-size: 29px;
    }

    .cctp-cms__section {
        margin-inline: -16px;
        padding-inline: 16px;
    }

    .cctp-cms__heading {
        margin-left: -16px;
        margin-right: -16px;
        padding-left: 16px;
        padding-right: 16px;
    }
}


@media (max-width: 430px) {
    .cctp-cms {
        padding: 20px 14px 88px;
    }

    .cctp-cms h1 {
        font-size: 27px;
    }

    .cctp-cms__content {
        font-size: 16px;
    }

    .cctp-cms__content .cctp-cms__heading h2,
    .cctp-cms__content .cctp-cms__heading h3 {
        font-size: 21px;
    }

    .cctp-cms__section {
        margin-inline: -14px;
        padding-inline: 14px;
    }

    .cctp-cms__heading {
        margin-left: -14px;
        margin-right: -14px;
        padding-left: 14px;
        padding-right: 14px;
    }
}


@media (max-width: 390px) {
    .cctp-cms {
        padding-inline: 12px;
    }

    .cctp-cms h1 {
        font-size: 26px;
    }

    .cctp-cms__section {
        margin-inline: -12px;
        padding-inline: 12px;
    }

    .cctp-cms__heading {
        margin-left: -12px;
        margin-right: -12px;
        padding-left: 12px;
        padding-right: 12px;
    }
}

