.blog-page {
    background: #fff;
    color: #0f172a;
}

.blog-shell {
    width: min(1120px, calc(100vw - 40px));
    margin: 0 auto;
}

.blog-index-hero {
    min-height: 300px;
    padding: 0;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    background: linear-gradient(180deg, #f8fbff 0%, #fff 100%);
}

.blog-index-hero h1 {
    margin: 0.2rem 0 0.65rem;
    max-width: 1040px;
    text-wrap: balance;
    word-break: keep-all;
    overflow-wrap: break-word;
    font-size: clamp(2.05rem, 3.9vw, 3.35rem);
    line-height: 1.1;
    letter-spacing: 0;
}

.blog-index-hero p {
    max-width: 860px;
    margin: 0;
    color: #475569;
    text-wrap: pretty;
    word-break: keep-all;
    overflow-wrap: break-word;
    font-size: 1.03rem;
    line-height: 1.7;
}

.blog-kicker {
    margin: 0;
    color: #2563eb;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.blog-index-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 3rem;
    padding: 2rem 0 4.8rem;
    min-height: 540px;
}

.blog-side {
    align-self: start;
    position: sticky;
    top: 84px;
}

.blog-menu {
    display: grid;
    gap: 0.2rem;
    padding: 0.35rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 8px;
    background: #fff;
}

.blog-menu a {
    display: block;
    padding: 0.62rem 0.72rem;
    border-radius: 6px;
    color: #475569;
    font-size: 0.92rem;
    text-decoration: none;
}

.blog-menu a:hover,
.blog-menu a.is-active {
    background: #f1f5f9;
    color: #0f172a;
}

.blog-feed {
    min-width: 0;
}

.blog-filter-summary {
    margin-bottom: 0.9rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.blog-filter-summary h2 {
    margin: 0;
    color: #0f172a;
    font-size: 1.25rem;
    line-height: 1.25;
}

.blog-featured {
    margin-bottom: 1rem;
    border: 1px solid rgba(37, 99, 235, 0.18);
    border-radius: 8px;
    background: #f8fbff;
}

.blog-featured-link,
.blog-feed-link {
    display: grid;
    color: inherit;
    text-decoration: none;
}

.blog-featured-link {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
}

.blog-featured-media {
    margin: 0;
    max-height: 360px;
    overflow: hidden;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.blog-featured-media img,
.blog-feed-media img,
.blog-article-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-featured-body {
    padding: 1.25rem 1.35rem 1.35rem;
}

.blog-featured h2,
.blog-feed-item h2 {
    margin: 0;
    color: #0f172a;
    letter-spacing: 0;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.blog-featured h2 {
    font-size: clamp(1.35rem, 2.6vw, 2rem);
    line-height: 1.24;
}

.blog-featured p,
.blog-feed-item p {
    color: #475569;
    line-height: 1.65;
}

.blog-featured p {
    margin: 0.65rem 0 0;
}

.blog-list {
    display: grid;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.blog-feed-item {
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    background: #fff;
    transition: background 0.16s;
}

.blog-feed-item:hover {
    background: #f8fafc;
}

.blog-feed-link {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
    padding: 1rem 0.1rem;
    align-items: center;
}

.blog-feed-link.has-media {
    grid-template-columns: minmax(0, 1fr) 184px;
}

.blog-feed-link:hover h2 {
    color: #2563eb;
}

.blog-feed-body {
    min-width: 0;
}

.blog-feed-item h2 {
    font-size: 1.18rem;
    line-height: 1.35;
}

.blog-feed-item p {
    margin: 0.45rem 0 0;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.blog-feed-media {
    margin: 0;
    height: 112px;
    overflow: hidden;
    border-radius: 8px;
    background: #f1f5f9;
}

.blog-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.8rem;
    margin: 0;
    color: #64748b;
    font-size: 0.82rem;
    line-height: 1.45;
}

.blog-meta-row a,
.blog-meta-row span:first-child {
    color: #2563eb;
    font-weight: 700;
    text-decoration: none;
}

.blog-empty {
    padding: 4rem 0;
    color: #64748b;
    text-align: center;
}

.blog-empty h2 {
    margin: 0 0 0.4rem;
    color: #0f172a;
    font-size: 1.2rem;
}

.blog-empty p {
    margin: 0;
}

.blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.blog-pagination a {
    padding: 0.55rem 0.8rem;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 8px;
    color: #0f172a;
    text-decoration: none;
}

.blog-pagination span {
    color: #64748b;
    font-size: 0.9rem;
}

.blog-article {
    width: min(820px, calc(100vw - 40px));
    margin: 0 auto;
    padding: 4rem 0 3rem;
}

.blog-article-head {
    padding-bottom: 1.6rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.blog-article-topline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.25rem;
    margin: 0.45rem 0 1.15rem;
}

.blog-list-link {
    display: inline-flex;
    align-items: center;
    margin-bottom: 0.5rem;
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
}

.blog-list-link::before {
    content: "‹";
    margin-right: 0.24rem;
}

.blog-list-link:hover {
    color: #2563eb;
}

.blog-article h1 {
    margin: 0;
    max-width: 100%;
    color: #0f172a;
    word-break: keep-all;
    overflow-wrap: normal;
    font-size: clamp(2rem, 3.1vw, 2.75rem);
    line-height: 1.22;
    letter-spacing: 0;
}

.blog-article-head > p {
    max-width: 100%;
    margin: 1rem 0 0;
    color: #475569;
    word-break: keep-all;
    overflow-wrap: normal;
    font-size: 1.05rem;
    line-height: 1.75;
}

.blog-share-button {
    min-width: 46px;
    min-height: 28px;
    padding: 0.2rem 0.46rem;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 7px;
    background: #fff;
    color: #334155;
    cursor: pointer;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 650;
    line-height: 1;
    white-space: nowrap;
}

.blog-share-button:hover {
    background: #f8fafc;
}

.blog-share-button:disabled {
    cursor: default;
    color: #2563eb;
    background: #eff6ff;
}

.blog-article-media {
    margin: 1.7rem 0 2rem;
    max-height: 460px;
    overflow: hidden;
    border-radius: 8px;
    background: #f1f5f9;
}

.blog-article-content {
    margin-top: 2rem;
    color: #1e293b;
    font-size: 1.05rem;
    line-height: 1.82;
}

.blog-article-content > *:first-child {
    margin-top: 0;
}

.blog-article-content p,
.blog-article-content ul,
.blog-article-content ol,
.blog-article-content blockquote,
.blog-article-content pre,
.blog-article-content table {
    margin-top: 0;
    margin-bottom: 1.15rem;
}

.blog-article-content h2 {
    margin: 2.4rem 0 0.85rem;
    color: #0f172a;
    font-size: 1.55rem;
    line-height: 1.3;
}

.blog-article-content h3 {
    margin: 1.8rem 0 0.65rem;
    color: #0f172a;
    font-size: 1.22rem;
    line-height: 1.35;
}

.blog-article-content ul,
.blog-article-content ol {
    padding-left: 1.35rem;
}

.blog-article-content li {
    margin-bottom: 0.4rem;
}

.blog-article-content blockquote {
    padding: 0.85rem 1rem;
    border-left: 3px solid #2563eb;
    background: #f8fafc;
    color: #334155;
}

.blog-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.blog-article-content code {
    padding: 0.12rem 0.28rem;
    border-radius: 5px;
    background: #f1f5f9;
    font-size: 0.94em;
}

.blog-article-content pre {
    overflow-x: auto;
    padding: 1rem;
    border-radius: 8px;
    background: #0f172a;
    color: #e2e8f0;
}

.blog-article-content pre code {
    padding: 0;
    background: transparent;
    color: inherit;
}

.blog-article-content table {
    display: block;
    width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
    font-size: 0.96rem;
    line-height: 1.55;
}

.blog-article-content th,
.blog-article-content td {
    min-width: 9rem;
    padding: 0.72rem 0.8rem;
    border: 1px solid rgba(15, 23, 42, 0.12);
    text-align: left;
    vertical-align: top;
}

.blog-article-content th {
    background: #f8fafc;
    color: #0f172a;
    font-weight: 750;
}

.blog-article-cta {
    margin-top: 2rem;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.blog-article-cta a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0.62rem 0.9rem;
    border-radius: 8px;
    background: #2563eb;
    color: #fff;
    font-weight: 750;
    text-decoration: none;
}

.blog-post-nav {
    padding: 0 0 3rem;
}

.blog-post-nav-all {
    display: inline-block;
    margin-bottom: 0.7rem;
    color: #64748b;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
}

.blog-post-nav-all:hover {
    color: #2563eb;
}

.blog-post-nav-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.blog-post-nav-card {
    min-height: 112px;
    padding: 1rem;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 8px;
    color: inherit;
    text-decoration: none;
    background: #fff;
}

.blog-post-nav-card:hover strong {
    color: #2563eb;
}

.blog-post-nav-card span {
    display: block;
    margin-bottom: 0.45rem;
    color: #64748b;
    font-size: 0.84rem;
    font-weight: 700;
}

.blog-post-nav-card strong {
    display: block;
    color: #0f172a;
    font-size: 1rem;
    line-height: 1.45;
}

@media (max-width: 760px) {
    .blog-shell,
    .blog-article {
        width: min(100vw - 28px, 820px);
    }

    .blog-index-hero {
        min-height: 318px;
    }

    .blog-index-layout {
        grid-template-columns: 1fr;
        gap: 1.4rem;
        padding-top: 1rem;
        min-height: 520px;
    }

    .blog-side {
        position: static;
        overflow-x: auto;
    }

    .blog-menu {
        display: flex;
        width: max-content;
        max-width: 100%;
        overflow-x: auto;
    }

    .blog-menu a {
        white-space: nowrap;
    }

    .blog-feed-link {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .blog-feed-media {
        height: auto;
        aspect-ratio: 16 / 9;
        order: -1;
    }

    .blog-article {
        padding-top: 3.4rem;
    }

    .blog-article h1 {
        font-size: clamp(1.85rem, 7vw, 2.25rem);
        line-height: 1.2;
    }

    .blog-article-head > p {
        font-size: 1rem;
        line-height: 1.72;
    }

    .blog-article-topline {
        align-items: flex-start;
    }

    .blog-post-nav {
        display: block;
    }

    .blog-post-nav-grid {
        grid-template-columns: 1fr;
    }
}
