.article-hub,
.article-detail-page {
    --article-ink: #172033;
    --article-muted: #687286;
    --article-line: #e5e9f0;
    --article-primary: #3157d5;
    --article-primary-soft: #eef2ff;
    min-height: calc(100vh - 74px);
    color: var(--article-ink);
    background: #f7f8fb;
}

.article-container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.article-hero {
    padding: 54px 0 42px;
    color: #fff;
    background: #172033;
}

.article-eyebrow {
    margin: 0 0 8px;
    color: #91a9ff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
}

.article-hero h1 {
    margin: 0;
    color: #fff;
    font-size: 38px;
    line-height: 1.25;
}

.article-announcement {
    margin: 12px 0 0;
    color: #c8d0df;
    font-size: 16px;
    line-height: 1.7;
    white-space: pre-line;
}

.article-search {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    width: min(680px, 100%);
    min-height: 52px;
    margin-top: 26px;
    padding: 6px 7px 6px 16px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 8px;
    background: #fff;
}

.article-search i {
    color: #7b8496;
}

.article-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    color: var(--article-ink);
    font-size: 15px;
    background: transparent;
}

.article-search button {
    min-height: 40px;
    padding: 0 22px;
    border: 0;
    border-radius: 6px;
    color: #fff;
    font-weight: 700;
    background: var(--article-primary);
}

.article-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 34px;
    padding-top: 38px;
    padding-bottom: 60px;
}

.article-categories {
    align-self: start;
    border-top: 1px solid var(--article-line);
}

.article-categories a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 48px;
    padding: 0 12px;
    border-bottom: 1px solid var(--article-line);
    color: #485166;
    text-decoration: none;
}

.article-categories a:hover,
.article-categories a.is-active {
    color: var(--article-primary);
    background: var(--article-primary-soft);
}

.article-categories a.is-active {
    font-weight: 700;
}

.article-categories em {
    font-style: normal;
    color: #929bad;
}

.article-results-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.article-results-head h2 {
    margin: 0;
    font-size: 24px;
}

.article-results-head p {
    margin: 5px 0 0;
    color: var(--article-muted);
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.article-card {
    overflow: hidden;
    border: 1px solid var(--article-line);
    border-radius: 8px;
    background: #fff;
}

.article-cover {
    display: block;
    aspect-ratio: 16 / 8.5;
    overflow: hidden;
    background: #edf0f5;
}

.article-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
}

.article-card:hover .article-cover img {
    transform: scale(1.025);
}

.article-card-body {
    padding: 20px;
}

.article-meta,
.article-card-foot,
.article-detail-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--article-muted);
    font-size: 13px;
}

.article-meta span {
    color: var(--article-primary);
    font-weight: 700;
}

.article-card h3 {
    margin: 12px 0 9px;
    font-size: 19px;
    line-height: 1.45;
}

.article-card h3 a {
    color: var(--article-ink);
    text-decoration: none;
}

.article-card h3 a:hover {
    color: var(--article-primary);
}

.article-card-body > p {
    display: -webkit-box;
    min-height: 48px;
    margin: 0;
    overflow: hidden;
    color: var(--article-muted);
    line-height: 1.65;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.article-card-foot {
    justify-content: space-between;
    margin-top: 18px;
    padding-top: 15px;
    border-top: 1px solid var(--article-line);
}

.article-card-foot span,
.article-card-foot a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.article-card-foot a {
    color: var(--article-primary);
    font-weight: 700;
    text-decoration: none;
}

.article-empty {
    padding: 70px 24px;
    border: 1px dashed #cfd5df;
    text-align: center;
    background: #fff;
}

.article-empty > i {
    color: #a6afc0;
    font-size: 42px;
}

.article-empty h3 {
    margin: 16px 0 6px;
}

.article-empty p {
    color: var(--article-muted);
}

.article-empty a {
    display: inline-block;
    margin-top: 8px;
    color: var(--article-primary);
    font-weight: 700;
}

.article-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.article-pagination a {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid var(--article-line);
    border-radius: 6px;
    color: var(--article-ink);
    text-decoration: none;
    background: #fff;
}

.article-pagination a.is-current {
    border-color: var(--article-primary);
    color: #fff;
    background: var(--article-primary);
}

.article-detail-page {
    padding: 28px 0 64px;
}

.article-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 24px;
    color: var(--article-muted);
    font-size: 13px;
}

.article-breadcrumb a {
    color: inherit;
    text-decoration: none;
}

.article-breadcrumb i {
    font-size: 10px;
}

.article-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 32px;
    align-items: start;
}

.article-detail {
    min-width: 0;
    padding: 38px 42px;
    border: 1px solid var(--article-line);
    border-radius: 8px;
    background: #fff;
}

.article-detail-category {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 4px;
    color: var(--article-primary);
    font-size: 13px;
    font-weight: 700;
    background: var(--article-primary-soft);
}

.article-detail h1 {
    margin: 16px 0 14px;
    font-size: 34px;
    line-height: 1.35;
}

.article-detail-meta i {
    margin-right: 5px;
}

.article-lead {
    margin: 24px 0 0;
    padding: 16px 18px;
    border-left: 3px solid var(--article-primary);
    color: #596378;
    line-height: 1.75;
    background: #f6f8fc;
}

.article-detail-cover {
    width: 100%;
    max-height: 460px;
    margin-top: 24px;
    border-radius: 6px;
    object-fit: cover;
}

.article-content {
    margin-top: 30px;
    color: #2b3446;
    font-size: 16px;
    line-height: 1.85;
    overflow-wrap: anywhere;
}

.article-content h2,
.article-content h3,
.article-content h4 {
    margin: 1.7em 0 .7em;
    color: var(--article-ink);
    line-height: 1.4;
}

.article-content img,
.article-content video,
.article-content iframe {
    max-width: 100%;
}

.article-content img {
    height: auto;
    border-radius: 6px;
}

.article-content table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
}

.article-content th,
.article-content td {
    padding: 10px;
    border: 1px solid var(--article-line);
}

.article-content pre {
    max-width: 100%;
    padding: 16px;
    overflow-x: auto;
    border-radius: 6px;
    color: #edf2ff;
    background: #172033;
}

.article-detail-foot {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-top: 36px;
    padding-top: 22px;
    border-top: 1px solid var(--article-line);
}

.article-detail-foot a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--article-primary);
    font-weight: 700;
    text-decoration: none;
}

.article-related {
    padding: 22px;
    border-top: 3px solid var(--article-primary);
    background: #fff;
}

.article-related h2 {
    margin: 0 0 14px;
    font-size: 18px;
}

.article-related > p {
    color: var(--article-muted);
}

.article-related-list a {
    display: block;
    padding: 14px 0;
    border-top: 1px solid var(--article-line);
    color: var(--article-ink);
    text-decoration: none;
}

.article-related-list strong {
    display: block;
    line-height: 1.5;
}

.article-related-list time {
    display: block;
    margin-top: 5px;
    color: var(--article-muted);
    font-size: 12px;
}

@media (max-width: 900px) {
    .article-layout,
    .article-detail-layout {
        grid-template-columns: 1fr;
    }

    .article-categories {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        border: 0;
        padding-bottom: 4px;
    }

    .article-categories a {
        flex: 0 0 auto;
        min-height: 40px;
        border: 1px solid var(--article-line);
        border-radius: 6px;
    }

    .article-related {
        border-top-width: 1px;
    }
}

@media (max-width: 640px) {
    .article-container {
        width: min(100% - 22px, 1180px);
    }

    .article-hero {
        padding: 34px 0 30px;
    }

    .article-hero h1 {
        font-size: 29px;
    }

    .article-search {
        grid-template-columns: 20px minmax(0, 1fr);
        padding: 9px 12px;
    }

    .article-search button {
        grid-column: 1 / -1;
        width: 100%;
    }

    .article-layout {
        gap: 22px;
        padding-top: 24px;
        padding-bottom: 42px;
    }

    .article-grid {
        grid-template-columns: 1fr;
    }

    .article-results-head h2 {
        font-size: 21px;
    }

    .article-detail-page {
        padding-top: 18px;
    }

    .article-detail {
        padding: 26px 20px;
    }

    .article-detail h1 {
        font-size: 26px;
    }

    .article-detail-meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .article-detail-foot {
        align-items: flex-start;
        flex-direction: column;
    }
}
