/* Typography and media refinements for the content-only treatment pages. */
.failed-ivf-page p,
.failed-ivf-page li,
.cervical-mucus-page p,
.cervical-mucus-page li {
    color: #475569;
    font-size: 16px;
    line-height: 1.75;
}

.failed-ivf-page .lead-text,
.cervical-mucus-page .lead-text {
    font-size: 17px;
    line-height: 1.8;
}

.cervical-mucus-page h2 {
    color: #20296e;
    font-size: clamp(25px, 2.35vw, 32px);
    font-weight: 700;
    letter-spacing: -0.35px;
    line-height: 1.3;
}

.cervical-mucus-page h3 {
    color: #20296e;
    font-size: clamp(19px, 1.7vw, 22px);
    font-weight: 700;
    line-height: 1.35;
}

.cervical-mucus-page h4 {
    color: #20296e;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
}

.cervical-mucus-page .tp-section-eyebrow {
    font-size: 13px;
}

.cervical-mucus-page .tp-cause-card p,
.cervical-mucus-page .tp-section p {
    font-size: 16px;
}

.cervical-mucus-page .cervical-mucus-media-column {
    display: flex;
    align-self: stretch;
}

.cervical-mucus-page .cervical-mucus-media-frame {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 340px;
    padding: 16px;
    border: 1px solid #dce2ed;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(19, 31, 78, 0.09);
}

.cervical-mucus-page .cervical-mucus-media-frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cervical-mucus-page .cervical-mucus-closing-card {
    padding: clamp(24px, 4vw, 40px);
    border: 1px solid #e2e8f0;
    border-left: 4px solid #ff70a3;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(19, 31, 78, 0.06);
}

.cervical-mucus-page .cervical-mucus-closing-card h2 {
    margin-bottom: 12px;
    font-size: clamp(23px, 2vw, 28px);
}

.cervical-mucus-page .cervical-mucus-closing-card a,
.failed-ivf-page .failed-ivf-followup a {
    color: #20296e;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.failed-ivf-page .failed-ivf-followup {
    padding: 24px 28px;
    border-left: 4px solid #ff70a3;
    border-radius: 14px;
    background: #f4f5ff;
}

@media (max-width: 991.98px) {
    .cervical-mucus-page .cervical-mucus-media-frame {
        height: 320px;
        min-height: 0;
    }
}

@media (max-width: 575.98px) {
    .failed-ivf-page p,
    .failed-ivf-page li,
    .cervical-mucus-page p,
    .cervical-mucus-page li,
    .cervical-mucus-page .tp-cause-card p,
    .cervical-mucus-page .tp-section p {
        font-size: 15.5px;
        line-height: 1.75;
    }

    .cervical-mucus-page .cervical-mucus-media-frame {
        height: 260px;
        padding: 12px;
    }

    .failed-ivf-page .failed-ivf-followup {
        padding: 20px;
    }
}
