/* Blog-detail service navigation: keep styles isolated from other sidebars. */
.blog-services-card {
    background: #fff;
    border: 1px solid #e0e2ee;
    border-top: 4px solid #ee483d;
    border-radius: 1.25rem;
    padding: 1.5rem 1rem 1rem;
}

.blog-services-heading {
    padding: 0 .5rem 1.125rem;
    border-bottom: 1px solid #eceef4;
    margin-bottom: .5rem;
}

.blog-services-heading h3 {
    margin: 0 0 .375rem;
    color: #1e1e5c;
    font-size: 1.375rem;
    font-weight: 800;
    line-height: 1.3;
}

.blog-services-heading p {
    margin: 0;
    color: #626779;
    font-size: .875rem;
    line-height: 1.6;
}

.blog-services-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.blog-services-list > li + li {
    border-top: 1px solid #f0f1f6;
}

.blog-service-link {
    display: flex;
    align-items: center;
    gap: .75rem;
    min-height: 4.75rem;
    padding: .75rem .5rem;
    border-radius: .75rem;
    color: #1e1e5c;
    text-decoration: none;
    transition: background-color .18s ease, color .18s ease;
}

.blog-service-icon {
    display: grid;
    place-items: center;
    flex: 0 0 2.5rem;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid #e6e5f4;
    border-radius: .75rem;
    background: #f5f5fc;
    color: #49499a;
    font-size: 1.125rem;
    transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}

.blog-service-copy {
    flex: 1;
    min-width: 0;
}

.blog-service-name,
.blog-service-description {
    display: block;
    overflow-wrap: anywhere;
}

.blog-service-name {
    font-size: .9375rem;
    font-weight: 700;
    line-height: 1.45;
}

.blog-service-description {
    margin-top: .2rem;
    color: #626779;
    font-size: .875rem;
    line-height: 1.45;
}

.blog-service-arrow {
    flex: 0 0 auto;
    color: #777c91;
    font-size: .875rem;
    transition: color .18s ease, transform .18s ease;
}

.blog-service-link:hover,
.blog-service-link:focus-visible {
    background: #f5f5fc;
    color: #49499a;
}

.blog-service-link:hover .blog-service-icon,
.blog-service-link:focus-visible .blog-service-icon {
    background: #49499a;
    border-color: #49499a;
    color: #fff;
}

.blog-service-link:hover .blog-service-arrow,
.blog-service-link:focus-visible .blog-service-arrow {
    color: #ee483d;
    transform: translateX(2px);
}

.blog-service-link:focus-visible {
    outline: 2px solid #49499a;
    outline-offset: 2px;
}

@media (min-width: 1024px) {
    /* Stretch the containing sidebar to the article so sticky has room to move. */
    .blog-post-layout > .blog-sidebar {
        align-self: stretch;
    }

    .blog-services-card {
        position: sticky;
        top: 5rem; /* Existing 4rem navigation plus a 1rem breathing gap. */
        max-height: calc(100vh - 6rem);
        max-height: calc(100dvh - 6rem);
        overflow-y: auto;
        overscroll-behavior-y: contain;
        scrollbar-width: thin;
        scrollbar-color: #b8b8d1 transparent;
        scroll-padding-block: .75rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .blog-service-link,
    .blog-service-icon,
    .blog-service-arrow {
        transition: none;
    }
}

@media print {
    .blog-services-card {
        position: static;
        max-height: none;
        overflow: visible;
    }
}
