:root {
    --bpbe-accent: #087ea4;
    --bpbe-accent-hover: #076c8f;
    --bpbe-text: #17212b;
    --bpbe-muted: #52636f;
    --bpbe-surface: #f6fafc;
    --bpbe-border: #d7e4ea;
    --bpbe-radius: 14px;
}

.bpbe-toc {
    margin: 24px 0 34px;
    overflow: clip;
    border: 1px solid var(--bpbe-border);
    border-radius: var(--bpbe-radius);
    background: var(--bpbe-surface);
    color: var(--bpbe-text);
}

.bpbe-toc__summary {
    position: relative;
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 16px;
    color: var(--bpbe-text);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    cursor: pointer;
    list-style: none;
}

.bpbe-toc__summary::-webkit-details-marker {
    display: none;
}

.bpbe-toc__summary::after {
    width: 9px;
    height: 9px;
    flex: 0 0 9px;
    border-right: 2px solid var(--bpbe-accent);
    border-bottom: 2px solid var(--bpbe-accent);
    content: "";
    transform: translateY(-2px) rotate(45deg);
}

.bpbe-toc[open] .bpbe-toc__summary::after {
    transform: translateY(3px) rotate(225deg);
}

.bpbe-toc__summary:focus-visible,
.bpbe-toc__link:focus-visible,
.bpbe-inline-cta__button:focus-visible,
.bpbe-sidebar-cta__button:focus-visible,
.bpbe-sidebar-cta__phone:focus-visible,
.bpbe-mobile-cta__link:focus-visible {
    outline: 3px solid rgb(8 126 164 / 32%);
    outline-offset: 3px;
}

.bpbe-toc__nav {
    padding: 0 18px 16px;
    border-top: 1px solid var(--bpbe-border);
}

.bpbe-toc__list,
.bpbe-toc__sublist {
    margin: 0;
    padding: 12px 0 0 20px;
}

.bpbe-toc__sublist {
    padding-top: 6px;
    padding-left: 20px;
}

.bpbe-toc__item {
    margin: 0;
    padding: 3px 0;
}

.bpbe-toc__link {
    color: #23404f;
    text-decoration: none;
    text-underline-offset: 3px;
}

.bpbe-toc__link:hover {
    color: var(--bpbe-accent-hover);
    text-decoration: underline;
}

.bpbe-blog-enhancements .entry-content-wrapper h2[id],
.bpbe-blog-enhancements .entry-content-wrapper h3[id] {
    scroll-margin-top: 104px;
}

.bpbe-inline-cta {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 190px;
    align-items: center;
    gap: clamp(22px, 3vw, 38px);
    margin: 34px 0 40px;
    padding: 18px 22px;
    border: 0;
    border-radius: var(--bpbe-radius);
    background: var(--bpbe-accent);
    color: #fdfefe;
    box-shadow: none;
}

.bpbe-inline-cta .bpbe-inline-cta__title {
    max-width: 560px;
    margin: 0 0 5px;
    color: #fdfefe;
    font-size: clamp(19px, 1.6vw, 21px);
    font-weight: 700;
    line-height: 1.24;
    letter-spacing: -0.012em;
}

.bpbe-inline-cta .bpbe-inline-cta__text {
    max-width: 600px;
    margin: 0;
    color: #fdfefe;
    font-size: 13px;
    line-height: 1.45;
}

.bpbe-inline-cta__action {
    display: grid;
    align-self: center;
    align-content: center;
    gap: 9px;
}

.bpbe-inline-cta .bpbe-inline-cta__button,
.bpbe-sidebar-cta .bpbe-sidebar-cta__button {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
}

.bpbe-inline-cta .bpbe-inline-cta__button {
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid #fdfefe;
    background: #fdfefe;
    color: var(--bpbe-accent-hover);
    font-size: 14px;
}

.bpbe-inline-cta .bpbe-inline-cta__button:hover,
.bpbe-inline-cta .bpbe-inline-cta__button:focus-visible {
    border-color: #eef7fa;
    background: #eef7fa;
    color: #065f7f;
    text-decoration: none;
}

.bpbe-inline-cta .bpbe-inline-cta__button:focus-visible {
    outline-color: #fdfefe;
}

.bpbe-inline-cta__note {
    color: #fdfefe;
    font-size: 11px;
    line-height: 1.45;
    text-align: center;
}

.bpbe-inline-cta__note strong {
    color: #fdfefe;
    font-weight: 700;
}

.bpbe-inline-cta .bpbe-inline-cta__button:active {
    transform: translateY(1px);
}

.bpbe-sidebar-cta {
    position: sticky;
    z-index: 1;
    top: 92px;
    overflow: hidden;
    box-sizing: border-box;
    max-width: 100%;
    margin: 28px 0 40px;
    border: 1px solid var(--bpbe-border);
    border-radius: var(--bpbe-radius);
    background: #fdfefe;
    color: var(--bpbe-text);
    box-shadow: 0 16px 44px rgb(23 33 43 / 10%);
}

.bpbe-sidebar-cta__top {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 21px 21px 17px;
    background: var(--bpbe-surface);
}

.bpbe-sidebar-cta .bpbe-sidebar-cta__photo {
    width: 82px;
    height: 82px;
    flex: 0 0 82px;
    margin: 0;
    border: 3px solid #fdfefe;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 5px 16px rgb(23 33 43 / 12%);
}

.bpbe-sidebar-cta .bpbe-sidebar-cta__person,
.bpbe-sidebar-cta .bpbe-sidebar-cta__role,
.bpbe-sidebar-cta .bpbe-sidebar-cta__text,
.bpbe-sidebar-cta .bpbe-sidebar-cta__metric,
.bpbe-sidebar-cta .bpbe-sidebar-cta__mail-note {
    margin: 0;
}

.bpbe-sidebar-cta .bpbe-sidebar-cta__person {
    color: var(--bpbe-text);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
}

.bpbe-sidebar-cta .bpbe-sidebar-cta__role {
    margin-top: 2px;
    color: #62727d;
    font-size: 12px;
    line-height: 1.45;
}

.bpbe-sidebar-cta__body {
    padding: 21px;
}

.bpbe-sidebar-cta .bpbe-sidebar-cta__title {
    margin: 0 0 8px;
    color: #14232d;
    font-size: 22px;
    line-height: 1.22;
    letter-spacing: -0.015em;
}

.bpbe-sidebar-cta .bpbe-sidebar-cta__text {
    margin-bottom: 17px;
    color: var(--bpbe-muted);
    font-size: 14px;
    line-height: 1.55;
}

.bpbe-sidebar-cta__metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: 0 0 18px;
    padding: 14px 0;
    border-top: 1px solid var(--bpbe-border);
    border-bottom: 1px solid var(--bpbe-border);
}

.bpbe-sidebar-cta .bpbe-sidebar-cta__metric {
    min-width: 0;
    padding-right: 12px;
}

.bpbe-sidebar-cta .bpbe-sidebar-cta__metric + .bpbe-sidebar-cta__metric {
    padding-right: 0;
    padding-left: 14px;
    border-left: 1px solid var(--bpbe-border);
}

.bpbe-sidebar-cta__metric strong,
.bpbe-sidebar-cta__metric span {
    display: block;
}

.bpbe-sidebar-cta__metric strong {
    display: flex;
    align-items: baseline;
    gap: 4px;
    color: var(--bpbe-accent);
    font-size: 19px;
    line-height: 1.15;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.bpbe-sidebar-cta__metric .bpbe-sidebar-cta__metric-value,
.bpbe-sidebar-cta__metric .bpbe-sidebar-cta__metric-unit {
    display: inline;
    margin: 0;
    color: inherit;
}

.bpbe-sidebar-cta__metric .bpbe-sidebar-cta__metric-value {
    font-size: inherit;
    line-height: inherit;
}

.bpbe-sidebar-cta__metric .bpbe-sidebar-cta__metric-unit {
    font-size: 0.56em;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.bpbe-sidebar-cta__metric span {
    margin-top: 3px;
    color: #536772;
    font-size: 11px;
    line-height: 1.35;
}

.bpbe-sidebar-cta .bpbe-sidebar-cta__button {
    width: 100%;
    min-height: 48px;
    padding: 12px 18px;
    border: 1px solid var(--bpbe-accent);
    background: var(--bpbe-accent);
    color: #fdfefe !important;
}

.bpbe-sidebar-cta .bpbe-sidebar-cta__button:hover,
.bpbe-sidebar-cta .bpbe-sidebar-cta__button:focus-visible {
    border-color: var(--bpbe-accent-hover);
    background: var(--bpbe-accent-hover);
    color: #fdfefe !important;
    text-decoration: none;
}

.bpbe-sidebar-cta__phone {
    display: block;
    margin-top: 8px;
    color: #536772;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.45;
    text-align: center;
    text-decoration: none;
}

.bpbe-sidebar-cta__phone:hover,
.bpbe-sidebar-cta__phone:focus-visible {
    color: var(--bpbe-accent-hover);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.bpbe-sidebar-cta .bpbe-sidebar-cta__mail-note {
    margin-top: 12px;
    color: #60727d;
    font-size: 11px;
    line-height: 1.45;
    text-align: center;
}

.bpbe-sidebar-cta__mail-note strong {
    color: #3c515d;
    font-weight: 700;
}

.bpbe-sidebar-cta .bpbe-sidebar-cta__button:active,
.bpbe-sidebar-cta__phone:active {
    transform: translateY(1px);
}

.bpbe-mobile-cta {
    display: none;
}

@media (min-width: 990px) {
    html,
    body.bpbe-blog-enhancements {
        overflow-x: clip !important;
        overflow-y: visible !important;
    }

    .bpbe-blog-enhancements #wrap_all {
        overflow: clip !important;
    }

    .bpbe-blog-enhancements .sidebar {
        display: flow-root !important;
        overflow: clip !important;
    }
}

@media (max-width: 989px) {
    body.bpbe-has-mobile-cta {
        padding-bottom: calc(72px + env(safe-area-inset-bottom));
    }

    .bpbe-inline-cta,
    .bpbe-sidebar-cta {
        display: none;
    }

    .bpbe-mobile-cta {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 95;
        display: block;
        box-sizing: border-box;
        padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
        border-top: 1px solid var(--bpbe-border);
        background: rgb(253 254 254 / 96%);
    }

    .bpbe-mobile-cta.is-hidden {
        display: none;
    }

    .bpbe-mobile-cta .bpbe-mobile-cta__link {
        box-sizing: border-box;
        display: grid;
        width: 100%;
        min-height: 52px;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 12px;
        align-items: center;
        padding: 5px 5px 5px 13px;
        border: 1px solid var(--bpbe-border);
        border-radius: 12px;
        background: #fdfefe;
        color: var(--bpbe-text);
        text-decoration: none;
        box-shadow: 0 8px 24px rgb(23 33 43 / 8%);
    }

    .bpbe-mobile-cta__context,
    .bpbe-mobile-cta__action {
        display: block;
    }

    .bpbe-mobile-cta__context {
        overflow: hidden;
        color: #4c606b;
        font-size: 12px;
        font-weight: 700;
        line-height: 1.3;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .bpbe-mobile-cta__action {
        padding: 10px 13px;
        border-radius: 9px;
        background: var(--bpbe-accent);
        color: #fdfefe;
        font-size: 13px;
        font-weight: 700;
        line-height: 1.2;
        white-space: nowrap;
    }

    .bpbe-mobile-cta__link:hover .bpbe-mobile-cta__action,
    .bpbe-mobile-cta__link:focus-visible .bpbe-mobile-cta__action {
        background: var(--bpbe-accent-hover);
    }

    .bpbe-mobile-cta .bpbe-mobile-cta__link:hover,
    .bpbe-mobile-cta .bpbe-mobile-cta__link:focus-visible {
        color: var(--bpbe-text);
        text-decoration: none;
    }

    .bpbe-toc {
        margin: 20px 0 28px;
    }

    .bpbe-toc__summary {
        padding-right: 18px;
        padding-left: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bpbe-inline-cta .bpbe-inline-cta__button:active,
    .bpbe-sidebar-cta .bpbe-sidebar-cta__button:active,
    .bpbe-sidebar-cta__phone:active {
        transform: none;
    }
}
