.blog-index,
.blog-article {
    background: #f7f8fa;
    color: #202124;
}

.blog-breadcrumbs {
    display: flex;
    gap: .55rem;
    align-items: center;
    margin-bottom: 2rem;
    color: #62676d;
    font-size: .92rem;
}

.blog-breadcrumbs a {
    color: #39424e;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.blog-filter {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) minmax(210px, .45fr) auto auto;
    gap: .85rem;
    align-items: end;
    padding: 1.25rem;
    margin-bottom: 2.5rem;
    border: 1px solid #dfe3e8;
    border-radius: 14px;
    background: #fff;
}

.blog-filter label {
    display: block;
    margin-bottom: .35rem;
    font-weight: 700;
}

.blog-index__heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.blog-index__heading h2 {
    margin: 0;
}

.blog-card {
    overflow: hidden;
    border: 1px solid #e0e4e8;
    border-radius: 14px;
    background: #fff;
}

.blog-card__image-link {
    display: flex;
    aspect-ratio: 16 / 9;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #eef0f2;
}

.blog-card__image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.blog-card__meta,
.blog-card__footer {
    display: flex;
    justify-content: space-between;
    gap: .75rem;
    color: #62676d;
    font-size: .78rem;
}

.blog-card__meta {
    margin-bottom: .8rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-weight: 700;
}

.blog-card h3 a {
    color: #17191c;
}

.blog-card .card-text {
    color: #575d64;
}

.blog-card__footer a {
    color: #5f4a00;
    font-weight: 700;
}

.blog-sidebar {
    position: sticky;
    top: 100px;
    align-self: flex-start;
}

.blog-sidebar section,
.blog-rail-book {
    padding: 1.15rem;
    margin-bottom: 1rem;
    border: 1px solid #e0e4e8;
    border-radius: 12px;
    background: #fff;
}

.blog-sidebar h2 {
    font-size: 1rem;
}

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

.blog-sidebar li + li {
    border-top: 1px solid #eceff1;
}

.blog-sidebar li a {
    display: flex;
    justify-content: space-between;
    gap: .5rem;
    padding: .7rem 0;
    color: #343a40;
    font-size: .9rem;
}

.blog-sidebar__book {
    display: block;
    padding: 1rem;
    border-radius: 12px;
    background: #ffc107;
    color: #171717;
    text-align: center;
    font-weight: 800;
}

.blog-pagination,
.blog-article-nav {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    margin: 1rem 0 2rem;
}

.blog-empty {
    padding: 2rem;
    border: 1px solid #dfe3e8;
    border-radius: 14px;
    background: #fff;
}

.blog-reading-progress {
    position: fixed;
    z-index: 1035;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
}

.blog-reading-progress span {
    display: block;
    width: 0;
    height: 100%;
    background: #ffc107;
}

.blog-article {
    padding: 2.5rem 0 5rem;
}

.blog-article__header {
    max-width: 920px;
    margin: 0 auto 2rem;
    text-align: center;
}

.blog-category {
    display: inline-flex;
    padding: .35rem .7rem;
    border-radius: 999px;
    background: #fff1b8;
    color: #473800;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.blog-article__header h1 {
    margin: 1rem 0;
    font-size: clamp(2rem, 5vw, 3.7rem);
    line-height: 1.08;
}

.blog-article__summary {
    max-width: 760px;
    margin: 0 auto 1.3rem;
    color: #555e68;
    font-size: 1.14rem;
}

.blog-author-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .75rem;
    color: #596068;
    font-size: .85rem;
}

.blog-author-meta__mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 50%;
    background: #181818;
    color: #ffc107;
    font-size: .72rem;
    font-weight: 900;
}

.blog-author-meta > div {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.blog-author-meta__dates {
    padding-left: .8rem;
    border-left: 1px solid #ccd1d6;
}

.blog-featured-image {
    width: fit-content;
    max-width: 100%;
    margin: 0 auto 2.5rem;
    overflow: hidden;
    border-radius: 18px;
    background: #e9ecef;
}

.blog-featured-image img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: none;
    margin: 0 auto;
    object-fit: contain;
}

.blog-article__rail {
    position: sticky;
    top: 100px;
    align-self: flex-start;
}

.blog-toc {
    padding: 1rem;
    margin-bottom: 1rem;
    border-left: 3px solid #ffc107;
    background: #fff;
}

.blog-toc summary {
    cursor: pointer;
    font-weight: 800;
}

.blog-toc ol {
    padding-left: 1.15rem;
    margin: .75rem 0 0;
}

.blog-toc li {
    margin: .45rem 0;
}

.blog-toc__level-3 {
    margin-left: .7rem !important;
    font-size: .9rem;
}

.blog-toc a {
    color: #4e5660;
}

.blog-toc a.is-active {
    color: #171717;
    font-weight: 800;
}

.blog-quick-answer,
.blog-event-notice {
    padding: 1.2rem 1.35rem;
    margin-bottom: 1.5rem;
    border-radius: 12px;
}

.blog-quick-answer {
    border: 1px solid #e4c34c;
    background: #fff9df;
}

.blog-quick-answer p {
    margin: .4rem 0 0;
}

.blog-event-notice {
    border-left: 4px solid #9a6800;
    background: #fff2d0;
}

.blog-content {
    padding: clamp(1.25rem, 3vw, 2.4rem);
    border: 1px solid #e0e4e8;
    border-radius: 14px;
    background: #fff;
    font-size: 1.04rem;
    line-height: 1.78;
}

.blog-content h2,
.blog-content h3 {
    scroll-margin-top: 110px;
    margin-top: 2rem;
    line-height: 1.25;
}

.blog-content h2 {
    padding-bottom: .55rem;
    border-bottom: 2px solid #f1d46b;
}

.blog-content img {
    max-width: 100%;
    height: auto;
}

.blog-content table {
    width: 100%;
    min-width: 560px;
}

.blog-table-wrap {
    max-width: 100%;
    overflow-x: auto;
}

.blog-service-links,
.blog-faq,
.blog-related {
    margin-top: 2.8rem;
}

.blog-service-links > div {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem;
}

.blog-service-links a,
.blog-tags span {
    padding: .55rem .75rem;
    border: 1px solid #ccd2d8;
    border-radius: 999px;
    background: #fff;
    color: #343a40;
}

.blog-faq .card {
    border-color: #dfe3e8;
}

.blog-faq .card-header,
.blog-faq .card-body {
    background: #fff;
}

.blog-faq .btn-link {
    color: #24282d;
    font-weight: 700;
}

.blog-tags,
.blog-share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .55rem;
    margin-top: 2rem;
}

.blog-share a,
.blog-share button {
    border: 0;
    background: transparent;
    color: #4b3c00;
    text-decoration: underline;
}

.blog-cta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    margin: 2.5rem 0;
    border-radius: 16px;
    background: #171717;
    color: #fff;
}

.blog-cta h2 {
    color: #fff;
}

.blog-cta__actions {
    display: flex;
    flex-shrink: 0;
    gap: .6rem;
}

.blog-article-nav a {
    display: flex;
    max-width: 48%;
    flex-direction: column;
    color: #252a2f;
}

.blog-article-nav a:last-child {
    margin-left: auto;
    text-align: right;
}

.blog-mobile-call {
    display: none;
}

html.dark-mode .blog-index,
html.dark-mode .blog-article {
    background: #111;
    color: #f3f3f3;
}

html.dark-mode .blog-card,
html.dark-mode .blog-filter,
html.dark-mode .blog-sidebar section,
html.dark-mode .blog-rail-book,
html.dark-mode .blog-empty,
html.dark-mode .blog-toc,
html.dark-mode .blog-content,
html.dark-mode .blog-faq .card-header,
html.dark-mode .blog-faq .card-body,
html.dark-mode .blog-service-links a,
html.dark-mode .blog-tags span {
    border-color: #444;
    background: #202020;
    color: #eee;
}

html.dark-mode .blog-card h3 a,
html.dark-mode .blog-card__footer a,
html.dark-mode .blog-sidebar li a,
html.dark-mode .blog-breadcrumbs a,
html.dark-mode .blog-toc a,
html.dark-mode .blog-faq .btn-link,
html.dark-mode .blog-article-nav a,
html.dark-mode .blog-share a,
html.dark-mode .blog-share button,
html.dark-mode .blog-service-links a {
    color: #f2f2f2;
}

html.dark-mode .blog-card .card-text,
html.dark-mode .blog-card__meta,
html.dark-mode .blog-card__footer,
html.dark-mode .blog-breadcrumbs,
html.dark-mode .blog-article__summary,
html.dark-mode .blog-author-meta {
    color: #bfc3c8;
}

html.dark-mode .blog-quick-answer {
    border-color: #765e00;
    background: #302900;
}

html.dark-mode .blog-event-notice {
    background: #352600;
}

@media (max-width: 991.98px) {
    .blog-filter {
        grid-template-columns: 1fr 1fr;
    }

    .blog-sidebar,
    .blog-article__rail {
        position: static;
        margin-top: 2rem;
    }

    .blog-article__rail {
        order: 2;
    }

    .blog-toc {
        margin-top: 1rem;
    }

    .blog-cta {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 575.98px) {
    .blog-filter {
        grid-template-columns: 1fr;
    }

    .blog-author-meta {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .blog-author-meta__dates {
        width: 100%;
        padding: .75rem 0 0;
        border-top: 1px solid #ccd1d6;
        border-left: 0;
        text-align: center;
    }

    .blog-cta__actions {
        width: 100%;
        flex-direction: column;
    }

    .blog-mobile-call {
        display: block;
        position: fixed;
        z-index: 1020;
        right: 12px;
        bottom: 12px;
        left: 12px;
        padding: .8rem;
        border-radius: 10px;
        background: #ffc107;
        color: #151515;
        text-align: center;
        font-weight: 800;
        box-shadow: 0 8px 24px rgba(0, 0, 0, .3);
    }
}
