.blog-hero,
.blog-topic-header {
    background:
        radial-gradient(circle at top right, rgba(13, 110, 253, 0.18), transparent 42%),
        linear-gradient(135deg, #f4f8ff 0%, #eef7f5 100%);
    border: 1px solid rgba(13, 110, 253, 0.12);
}

.blog-filter-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(13, 110, 253, 0.12);
    box-shadow: 0 0.75rem 2rem rgba(33, 37, 41, 0.08);
}

.blog-card {
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.blog-card:hover,
.blog-card:focus-within {
    transform: translateY(-2px);
    box-shadow: 0 1rem 2.25rem rgba(33, 37, 41, 0.12) !important;
}

.blog-card .stretched-link::after {
    z-index: 1;
}

.blog-share-menu,
.blog-card .badge {
    position: relative;
    z-index: 3;
}

.blog-avatar-link {
    position: relative;
    z-index: 2;
    text-decoration: none;
}

.blog-avatar {
    display: inline-flex;
    width: 64px;
    height: 64px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 50%;
    background: var(--bs-primary);
    color: #fff;
    font-size: 1.35rem;
    font-weight: 700;
    border: 3px solid #fff;
    box-shadow: 0 0 0 1px rgba(13, 110, 253, 0.18);
}

.blog-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-meta {
    column-gap: 1rem;
    row-gap: 0.35rem;
}

.blog-meta > span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.blog-meta--color-coded {
    column-gap: 0.9rem;
    row-gap: 0.42rem;
}

.blog-meta__item {
    --blog-meta-color: #4f5a63;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--blog-meta-color) !important;
    font-size: 0.75rem;
    font-weight: 680;
    line-height: 1.4;
    box-shadow: none;
}

.blog-meta__item i {
    color: inherit !important;
    font-size: 0.82rem;
}

.blog-meta__link {
    color: inherit;
    text-decoration: none;
}

.blog-meta__link:hover,
.blog-meta__link:focus-visible {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 0.18em;
    outline: none;
}

.blog-meta__item--author {
    --blog-meta-color: #225f86;
}

.blog-meta__item--date {
    --blog-meta-color: #9a1a24;
}

.blog-meta__item--reading {
    --blog-meta-color: #226847;
}

.blog-meta__item--views {
    --blog-meta-color: #275d93;
}

.blog-meta__item--comments {
    --blog-meta-color: #1f6b58;
}

.blog-meta__item--rating {
    --blog-meta-color: #795900;
}

.blog-detail-title {
    max-width: 24ch;
    font-size: clamp(2rem, 5vw, 3.25rem);
    line-height: 1.08;
    letter-spacing: -0.025em;
}

.blog-detail-author-row,
.blog-detail-author-row > div {
    min-width: 0;
}

.blog-detail-meta {
    max-width: 100%;
}

.post-content {
    color: var(--bs-body-color);
    font-size: 1.075rem;
    line-height: 1.85;
    overflow-wrap: anywhere;
}

.post-content > :first-child {
    margin-top: 0;
}

.post-content > :last-child {
    margin-bottom: 0;
}

.post-content h2,
.post-content h3,
.post-content h4 {
    margin-top: 1.8em;
    margin-bottom: 0.65em;
    line-height: 1.25;
}

.post-content h2 {
    font-size: clamp(1.45rem, 3vw, 1.9rem);
}

.post-content h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.55rem);
}

.post-content p,
.post-content ul,
.post-content ol,
.post-content blockquote {
    margin-bottom: 1.25rem;
}

.post-content img,
.post-content video,
.post-content iframe {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
}

.post-content table {
    display: block;
    width: 100%;
    overflow-x: auto;
    margin-bottom: 1.25rem;
}

.post-content blockquote {
    padding: 1rem 1.25rem;
    border-left: 4px solid var(--bs-primary);
    background: var(--bs-tertiary-bg);
    border-radius: 0 0.5rem 0.5rem 0;
}

.blog-screening-cta {
    position: relative;
    isolation: isolate;
    min-width: 0;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    overflow: hidden;
    padding: 1.25rem 1.35rem;
    border: 1px solid rgba(46, 111, 149, 0.2);
    border-radius: 1rem;
    background:
        radial-gradient(circle at 100% 0%, rgba(181, 30, 42, 0.075), transparent 10rem),
        linear-gradient(135deg, #f7fbfd, #eef6fa);
    box-shadow: 0 0.8rem 2rem rgba(32, 36, 40, 0.075);
}

.blog-screening-cta::before {
    position: absolute;
    top: 0;
    right: 1.25rem;
    left: 1.25rem;
    height: 3px;
    border-radius: 0 0 999px 999px;
    background: linear-gradient(90deg, #2e6f95 0 78%, #b51e2a 78% 100%);
    content: "";
}

.blog-screening-cta__icon {
    width: 3.15rem;
    height: 3.15rem;
    display: grid;
    place-items: center;
    border: 1px solid rgba(46, 111, 149, 0.18);
    border-radius: 0.92rem;
    background: #ffffff;
    color: #2e6f95;
    box-shadow: 0 0.45rem 1rem rgba(46, 111, 149, 0.1);
}

.blog-screening-cta__icon svg {
    width: 1.55rem;
    height: 1.55rem;
}

.blog-screening-cta__copy {
    min-width: 0;
}

.blog-screening-cta__eyebrow {
    display: block;
    margin-bottom: 0.18rem;
    color: #2e6f95;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.blog-screening-cta__title {
    margin: 0;
    color: #252a2f;
    font-size: clamp(1.05rem, 2vw, 1.22rem);
    font-weight: 790;
    letter-spacing: -0.015em;
    line-height: 1.28;
}

.blog-screening-cta__description {
    max-width: 49rem;
    margin: 0.35rem 0 0;
    color: #65717a;
    font-size: 0.78rem;
    line-height: 1.55;
}

.blog-screening-cta__button {
    min-height: 2.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.52rem;
    padding: 0.7rem 1rem;
    border: 1px solid #245a78;
    border-radius: 0.78rem;
    background: linear-gradient(135deg, #397fa6, #245a78);
    color: #ffffff !important;
    font-size: 0.8rem;
    font-weight: 760;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 0.55rem 1.25rem rgba(46, 111, 149, 0.2);
    transition: transform 150ms ease, background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.blog-screening-cta__button:hover,
.blog-screening-cta__button:focus-visible {
    border-color: #1d4963;
    background: linear-gradient(135deg, #2e6f95, #1d4963);
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 0.75rem 1.5rem rgba(46, 111, 149, 0.27);
    outline: none;
}

.blog-screening-cta__button svg {
    width: 1rem;
    height: 1rem;
    flex: 0 0 1rem;
}

.comment-card,
.comment-replies article {
    overflow-wrap: anywhere;
}

.comment-content {
    white-space: normal;
    line-height: 1.65;
}

.rating-input {
    display: inline-flex;
    flex-direction: row-reverse;
    gap: 0.15rem;
    border: 0;
    padding: 0;
    margin: 0;
}

.rating-input input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.rating-input label {
    color: #adb5bd;
    cursor: pointer;
    font-size: 1.75rem;
    line-height: 1;
}

.rating-input label:hover,
.rating-input label:hover ~ label,
.rating-input input:checked ~ label,
.rating-input input:focus-visible + label {
    color: #ffc107;
}

.rating-input input:focus-visible + label {
    outline: 2px solid var(--bs-primary);
    outline-offset: 2px;
    border-radius: 0.2rem;
}

.accordion-button:not(.collapsed) {
    color: var(--bs-primary);
    background: transparent;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

.gap-x-3 {
    column-gap: 1rem;
}

.gap-y-1 {
    row-gap: 0.25rem;
}

.min-w-0 {
    min-width: 0;
}

@media (max-width: 767.98px) {
    .blog-screening-cta {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .blog-screening-cta__button {
        grid-column: 1 / -1;
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .blog-avatar {
        width: 52px;
        height: 52px;
        font-size: 1.1rem;
    }

    .blog-card .card-body,
    .blog-detail .card-body {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .blog-meta--color-coded {
        column-gap: 0.68rem;
        row-gap: 0.36rem;
    }

    .blog-meta__item {
        font-size: 0.69rem;
    }

    .blog-detail-title {
        font-size: 2rem;
    }

    .post-content {
        font-size: 1rem;
        line-height: 1.75;
    }

    .blog-screening-cta {
        grid-template-columns: 1fr;
        gap: 0.8rem;
        padding: 1.15rem 1rem 1rem;
    }

    .blog-screening-cta__icon {
        width: 2.8rem;
        height: 2.8rem;
    }

    .blog-screening-cta__button {
        grid-column: auto;
    }

    .comment-replies {
        margin-left: 0;
    }
}

@media (forced-colors: active) {
    .blog-meta__item {
        color: CanvasText !important;
        forced-color-adjust: auto;
    }

    .blog-screening-cta,
    .blog-screening-cta__icon,
    .blog-screening-cta__button {
        border: 1px solid CanvasText;
        forced-color-adjust: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .blog-screening-cta__button {
        transition: none;
    }
}

@media print {
    .blog-sidebar,
    .blog-actions,
    .blog-screening-cta,
    #comments,
    .rating-input,
    nav,
    .navbar,
    footer {
        display: none !important;
    }

    .blog-detail {
        box-shadow: none !important;
        border: 0 !important;
    }

    .post-content {
        font-size: 11pt;
        line-height: 1.5;
    }
}
