/*
 * Shared TinyMCE + public article components.
 * Keep this CTA visually aligned with .cta in blog-inner.css.
 */
:is(.blog-article__content, .blog-article-content) .blog-content-cta {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 58px;
    border: 0;
    border-radius: 28px;
    background: #cd0f36;
    color: #fff;
}

:is(.blog-article__content, .blog-article-content) .blog-content-cta__title {
    order: 2;
    margin: 12px 0 30px;
    color: #fff;
    font-family: inherit;
    font-size: 65px;
    font-weight: 600;
    line-height: 0.94;
    letter-spacing: -0.06em;
}

:is(.blog-article__content, .blog-article-content) .blog-content-cta__description {
    order: 1;
    margin: 0;
    color: #ddd;
    font-family: inherit;
    font-size: 11px;
    font-weight: 800;
    line-height: normal;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

:is(.blog-article__content, .blog-article-content) .blog-content-cta__button {
    align-self: flex-start;
    order: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 18px;
    border-radius: 999px;
    background-color: #fff;
    color: #111;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
    transition: filter 160ms ease, transform 160ms ease;
}

/* TinyMCE has no site JS: show the automatic arrow without storing it in button text. */
:is(.blog-article__content, .blog-article-content) :is(.blog-content-cta__button, .news-content-cta__button):not(.bi-btn-hover)::after {
    content: "↗";
    display: inline-grid;
    place-items: center;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    margin-left: 12px;
    border-radius: 50%;
    background: linear-gradient(145deg, #e31442 0%, #cd0f36 48%, #a00b2b 100%);
    color: #fff;
    font-size: 13px;
    line-height: 1;
}

:is(.blog-article__content, .blog-article-content) .blog-content-cta__button:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

:is(.blog-article__content, .blog-article-content) .blog-content-cta__button:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.42);
    outline-offset: 3px;
}

/* News CTA keeps its own layout while using the site's existing button hover renderer. */
:is(.blog-article__content, .blog-article-content) .news-content-cta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin: 0;
    padding: 68px 58px 62px;
    border: 0;
    border-radius: 28px;
    background: #cd0f36;
    color: #fff;
}

:is(.blog-article__content, .blog-article-content) .news-content-cta__title {
    max-width: 850px;
    margin: 0;
    color: #fff;
    font-family: inherit;
    font-size: clamp(38px, 5vw, 65px);
    font-weight: 600;
    line-height: 0.94;
    letter-spacing: -0.06em;
}

:is(.blog-article__content, .blog-article-content) .news-content-cta__description {
    margin: 30px 0 18px;
    color: #fff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.45;
}

:is(.blog-article__content, .blog-article-content) .news-content-cta__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 9px 9px 9px 20px;
    border-radius: 999px;
    background-color: #fff;
    color: #111;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
    transition: filter 160ms ease, transform 160ms ease;
}

:is(.blog-article__content, .blog-article-content) .news-content-cta__button:hover {
    filter: brightness(1.04);
    transform: translateY(-1px);
}

:is(.blog-article__content, .blog-article-content) .news-content-cta__button:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.42);
    outline-offset: 3px;
}

/*
 * Docked arrow badge — matches the site-wide .btn .bi-btn-arrow "signal capsule"
 * (public/web-assets/css/styles.css). custom.js auto-enhances any in-article
 * anchor whose text ends in an arrow character (both the editor-built CTA box
 * button and the plain `.cta a` band news stories use), adding a `.bi-btn-arrow`
 * span with no size or color of its own. Scoping the real button's docked-circle
 * look to `.blog-article-content` makes every in-article CTA — blog or news,
 * editor-built or hand-written — render the same red circular arrow.
 */
:is(.blog-article__content, .blog-article-content) .bi-btn-arrow {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(145deg, #e31442 0%, #cd0f36 48%, #a00b2b 100%);
    color: #fff;
    font-size: 13px;
    line-height: 1;
}

@media (max-width: 640px) {
    :is(.blog-article__content, .blog-article-content) .blog-content-cta {
        padding: 32px 25px;
    }

    :is(.blog-article__content, .blog-article-content) .blog-content-cta__title {
        font-size: 28px;
    }

    :is(.blog-article__content, .blog-article-content) .news-content-cta {
        padding: 34px 25px;
        border-radius: 22px;
    }

    :is(.blog-article__content, .blog-article-content) .news-content-cta__title {
        font-size: 34px;
        line-height: 0.98;
    }

    :is(.blog-article__content, .blog-article-content) .news-content-cta__description {
        margin: 24px 0 16px;
        font-size: 14px;
    }
}
