/* Blog call to action v3, "Meet FocusMe" (inc/blog-cta-card.php; Fable's visual spec, 30 Nov 2026).
   Loaded only with the card on (option fme_blog_cta_card, or ?fme_cta_preview=1), and every rule keys
   on body.fme-cta3-on, so blog-post.css and the posts' critical CSS stay as they were. */

/* ---------- One frame for the card, the end panel, the top box and the rail card ---------- */
.fme-cta3-on .post.type-post .page-content .fme-cta3,
.fme-cta3-on .fme-cta3--rail {
    background: linear-gradient(160deg, #eef5ff, #f7faff);
    border: 1px solid #d6e5fb;
    border-radius: 12px;
    color: #1e293b;
    padding: 20px;
}

.fme-cta3-on .post.type-post .page-content .fme-cta3 {
    margin: 1.6em 0 2em;
}

.fme-cta3-on .post.type-post .page-content .fme-cta3 p,
.fme-cta3-on .fme-cta3--rail p {
    margin: 0;
    text-align: left !important;
}

/* Label: the FocusMe mark and "Meet FocusMe", sentence case. */
.fme-cta3-on .post.type-post .page-content .fme-cta3 .fme-cta3__label,
.fme-cta3-on .fme-cta3--rail .fme-cta3__label {
    align-items: center;
    color: #2e6bd9;
    display: flex;
    font-size: 12.5px;
    font-weight: 700;
    gap: 7px;
    letter-spacing: 0;
    line-height: 1.4;
    margin: 0 0 8px;
    text-transform: none;
}

.fme-cta3__mark {
    background: #2e6bd9;
    display: inline-block;
    flex: 0 0 auto;
    height: 17px;
    -webkit-mask: url('../img/focusme-mark-white.svg') center / contain no-repeat;
    mask: url('../img/focusme-mark-white.svg') center / contain no-repeat;
    width: 14px;
}

.fme-cta3-on .post.type-post .page-content .fme-cta3 .fme-cta3__title,
.fme-cta3-on .fme-cta3--rail .fme-cta3__title {
    color: var(--fme-color-ink, #0f172a);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 12px;
}

.fme-cta3-on .post.type-post .page-content .fme-cta3 .fme-cta3__line,
.fme-cta3-on .post.type-post .page-content .fme-cta3 .fme-cta3__text {
    color: #475569;
    font-size: 16px;
    line-height: 1.5;
    margin: 0 0 16px;
}

.fme-cta3-on .post.type-post .page-content .fme-cta3 .fme-cta3__text {
    color: #1e293b;
    margin: 0 0 6px;
}

/* Ticks. */
.fme-cta3-on .post.type-post .page-content .fme-cta3 .fme-cta3__ticks {
    list-style: none;
    margin: 0 0 16px;
    max-width: none;
    padding: 0;
}

.fme-cta3-on .post.type-post .page-content .fme-cta3 .fme-cta3__ticks li {
    color: #1e293b;
    font-size: 15px;
    line-height: 1.45;
    margin: 0 0 8px;
    padding-left: 26px;
    position: relative;
}

.fme-cta3-on .post.type-post .page-content .fme-cta3 .fme-cta3__ticks li:last-child {
    margin-bottom: 0;
}

.fme-cta3-on .post.type-post .page-content .fme-cta3 .fme-cta3__ticks li::before {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='8' fill='%234F97F0'/%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-4.9' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
    content: "";
    height: 17px;
    left: 0;
    position: absolute;
    top: 2px;
    width: 17px;
}

/* Picture and caption. */
.fme-cta3-on .post.type-post .page-content .fme-cta3 .fme-cta3__pic {
    margin: 0;
    max-width: none;
}

.fme-cta3-on .post.type-post .page-content .fme-cta3 .fme-cta3__pic img {
    border: 1px solid #d6e5fb;
    border-radius: 8px;
    display: block;
    height: auto;
    margin: 0;
    max-width: 100%;
    width: 100%;
}

.fme-cta3-on .post.type-post .page-content .fme-cta3 .fme-cta3__cap {
    color: #64748b;
    font-size: 13px;
    font-style: normal;
    line-height: 1.4;
    margin: 6px 0 0;
}

/* Buttons: filled in the text and the end panel, outline in the rail; 44 px or taller. */
.fme-cta3-on .post.type-post .page-content .fme-cta3 .fme-cta3__btn,
.fme-cta3-on .fme-cta3--rail .fme-cta3__btn {
    margin: 0;
    min-height: 44px;
    padding: 10px 22px;
    text-align: center;
    text-decoration: none;
    text-transform: none;
}

.fme-cta3-on .post.type-post .page-content .fme-cta3 .fme-btn--primary.fme-cta3__btn {
    background: #4f97f0;
    border-color: #4f97f0;
    color: #fff;
}

.fme-cta3-on .post.type-post .page-content .fme-cta3 .fme-btn--primary.fme-cta3__btn:hover,
.fme-cta3-on .post.type-post .page-content .fme-cta3 .fme-btn--primary.fme-cta3__btn:focus-visible {
    background: var(--fme-color-primary-dark, #2f6fc4);
    border-color: var(--fme-color-primary-dark, #2f6fc4);
}

.fme-cta3-on .fme-cta3--rail .fme-btn--secondary.fme-cta3__btn {
    background: #fff;
    border: 1.5px solid #4f97f0;
    color: #2e6bd9;
    font-weight: 600;
    width: 100%;
}

.fme-cta3-on .fme-cta3--rail .fme-btn--secondary.fme-cta3__btn:hover,
.fme-cta3-on .fme-cta3--rail .fme-btn--secondary.fme-cta3__btn:focus-visible {
    background: #f5f9ff;
}

.fme-cta3-on .post.type-post .page-content .fme-cta3 .fme-cta3__fine,
.fme-cta3-on .fme-cta3--rail .fme-cta3__fine {
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
    margin: 10px 0 0;
}

.fme-cta3-on .post.type-post .page-content .fme-cta3 .fme-cta3__fine a,
.fme-cta3-on .post.type-post .page-content .fme-cta3 .fme-cta3__link {
    color: var(--fme-color-primary-dark, #2f6fc4);
    font-weight: 600;
    text-decoration: none;
}

.fme-cta3-on .post.type-post .page-content .fme-cta3 .fme-cta3__link {
    font-size: 16px;
}

.fme-cta3-on .post.type-post .page-content .fme-cta3 .fme-cta3__link:hover,
.fme-cta3-on .post.type-post .page-content .fme-cta3 .fme-cta3__link:focus-visible {
    text-decoration: underline;
}

/* ---------- In-text card and guide end panel: text left, picture right ---------- */
@media (min-width: 768px) {
    .fme-cta3-on .post.type-post .page-content .fme-cta3--grid {
        align-items: center;
        column-gap: 24px;
        display: grid;
        grid-template-columns: 1.35fr 1fr;
        grid-template-rows: 1fr auto auto auto auto 1fr;
    }

    .fme-cta3-on .post.type-post .page-content .fme-cta3--grid > * {
        grid-column: 1;
    }

    .fme-cta3-on .post.type-post .page-content .fme-cta3--grid > .fme-cta3__label { grid-row: 2; }
    .fme-cta3-on .post.type-post .page-content .fme-cta3--grid > .fme-cta3__title { grid-row: 3; }
    .fme-cta3-on .post.type-post .page-content .fme-cta3--grid > .fme-cta3__ticks,
    .fme-cta3-on .post.type-post .page-content .fme-cta3--grid > .fme-cta3__line { grid-row: 4; }
    .fme-cta3-on .post.type-post .page-content .fme-cta3--grid > .fme-cta3__act { grid-row: 5; }

    .fme-cta3-on .post.type-post .page-content .fme-cta3--grid > .fme-cta3__pic {
        align-self: center;
        grid-column: 2;
        grid-row: 1 / -1;
    }
}

/* ---------- Rail (1200 px and wider): no picture, 16 px title, outline button ---------- */
.fme-cta3-on .fme-cta3--rail {
    padding: 16px;
}

.fme-cta3-on .fme-cta3--rail .fme-cta3__title {
    font-size: 16px;
}

/* ---------- Phones: one column, label, title, picture, ticks, full-width button ---------- */
@media (max-width: 767px) {
    .fme-cta3-on .post.type-post .page-content .fme-cta3 {
        padding: 16px;
    }

    .fme-cta3-on .post.type-post .page-content .fme-cta3 .fme-cta3__title {
        font-size: 19px;
    }

    .fme-cta3-on .post.type-post .page-content .fme-cta3 .fme-cta3__pic {
        margin: 0 0 14px;
    }

    .fme-cta3-on .post.type-post .page-content .fme-cta3 .fme-cta3__btn {
        width: 100%;
    }

    .fme-cta3-on .post.type-post .page-content .fme-cta3 .fme-cta3__ticks li,
    .fme-cta3-on .post.type-post .page-content .fme-cta3 .fme-cta3__line,
    .fme-cta3-on .post.type-post .page-content .fme-cta3 .fme-cta3__text {
        font-size: 15px;
    }
}
