/* Site-wide arrow language: pill CTAs and compact circular arrow controls. */
:root {
    --bb-arrow-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M8 24 24 8M11 8h13v13' fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    --bb-arrow-icon-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M8 24 24 8M11 8h13v13' fill='none' stroke='%23171717' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.bb-arrow-link {
    display: inline-flex;
    align-items: center;
    gap: var(--wp--preset--spacing--12);
}

.bb-arrow-link::after {
    content: "";
    flex: 0 0 var(--wp--preset--spacing--24);
    width: var(--wp--preset--spacing--24);
    height: var(--wp--preset--spacing--24);
    background-color: currentColor;
    -webkit-mask: var(--bb-arrow-icon) center / contain no-repeat;
    mask: var(--bb-arrow-icon) center / contain no-repeat;
    transition: transform .2s ease;
}

.bb-arrow-link:hover::after,
.bb-arrow-link:focus-visible::after {
    transform: translate(2px, -2px);
}

:where(.wp-site-blocks, .editor-styles-wrapper) :is(
    .wp-block-button .wp-block-button__link,
    .wp-block-search .wp-block-search__button
),
:where(.wp-site-blocks, .editor-styles-wrapper) :is(
    .bb-intelligence__cta,
    .bb-news__view-all
) .wp-block-button__link {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--wp--preset--spacing--16);
    min-height: 56px;
    box-sizing: border-box;
    padding: var(--wp--preset--spacing--12) var(--wp--preset--spacing--24);
    border: 0;
    border-radius: 999px;
    background: var(--wp--preset--color--ink);
    color: var(--wp--preset--color--white);
    font-family: var(--wp--preset--font-family--switzer);
    font-size: var(--wp--preset--font-size--medium);
    font-weight: 500;
    line-height: 1.555556;
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

:where(.wp-site-blocks, .editor-styles-wrapper) :is(
    .wp-block-button .wp-block-button__link,
    .wp-block-search .wp-block-search__button
)::after,
:where(.wp-site-blocks, .editor-styles-wrapper) :is(
    .bb-intelligence__cta,
    .bb-news__view-all
) .wp-block-button__link::after {
    content: "";
    flex: 0 0 var(--wp--preset--spacing--24);
    width: var(--wp--preset--spacing--24);
    height: var(--wp--preset--spacing--24);
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M8 24 24 8M11 8h13v13' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M8 24 24 8M11 8h13v13' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
    transition: transform .2s ease;
}

:where(.wp-site-blocks, .editor-styles-wrapper) :is(
    .wp-block-button .wp-block-button__link,
    .wp-block-search .wp-block-search__button,
    .bb-intelligence__cta .wp-block-button__link,
    .bb-news__view-all .wp-block-button__link
):hover {
    background: var(--wp--preset--color--accent);
    color: var(--wp--preset--color--ink);
    text-decoration: none;
    transform: translateY(-2px);
}

:where(.wp-site-blocks, .editor-styles-wrapper) :is(
    .wp-block-button .wp-block-button__link,
    .wp-block-search .wp-block-search__button,
    .bb-intelligence__cta .wp-block-button__link,
    .bb-news__view-all .wp-block-button__link
):hover::after {
    transform: translate(2px, -2px);
}

:where(.wp-site-blocks, .editor-styles-wrapper) :is(
    .wp-block-button .wp-block-button__link,
    .wp-block-search .wp-block-search__button,
    .bb-intelligence__cta .wp-block-button__link,
    .bb-news__view-all .wp-block-button__link
):active {
    background: var(--wp--custom--color--action--orange--pressed);
    color: var(--wp--preset--color--ink);
    transform: translateY(0);
}

/* Preserve intentional color variants while sharing the same pill and arrow geometry. */
.wp-block-button.is-style-brand-green .wp-block-button__link {
    background: var(--wp--custom--color--action--green--base);
    color: var(--wp--preset--color--ink);
}
.wp-block-button.is-style-outline .wp-block-button__link {
    border: 2px solid currentColor;
    background: transparent;
    color: var(--bb-heading);
}

@media (max-width: 600px) {
    :where(.wp-site-blocks, .editor-styles-wrapper) :is(
        .wp-block-button .wp-block-button__link,
        .wp-block-search .wp-block-search__button,
        .bb-intelligence__cta .wp-block-button__link,
        .bb-news__view-all .wp-block-button__link
    ) {
        min-height: var(--wp--preset--spacing--48);
        gap: var(--wp--preset--spacing--12);
        padding: var(--wp--preset--spacing--12) var(--wp--preset--spacing--20);
        font-size: var(--wp--preset--font-size--body);
        line-height: 1.5;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bb-arrow-link::after,
    :where(.wp-site-blocks, .editor-styles-wrapper) :is(
        .wp-block-button .wp-block-button__link,
        .wp-block-search .wp-block-search__button,
        .bb-intelligence__cta .wp-block-button__link,
        .bb-news__view-all .wp-block-button__link
    ),
    :where(.wp-site-blocks, .editor-styles-wrapper) :is(
        .wp-block-button .wp-block-button__link,
        .wp-block-search .wp-block-search__button,
        .bb-intelligence__cta .wp-block-button__link,
        .bb-news__view-all .wp-block-button__link
    )::after { transition: none; }
}
