.hero.sm-articles-hero {
    padding: 36px 0 40px;
}

.hero.sm-articles-hero h1 {
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
    font-size: 32px;
}

.hero.sm-articles-hero p {
    margin-bottom: 0;
    font-size: 16px;
}

.hero.sm-articles-hero .sm-article-badge {
    margin-bottom: 12px;
}

.sm-article-date {
    margin-top: 12px;
    color: #cbd5e1;
    font-size: 14px;
}

.sm-articles-archive,
.sm-articles-single {
    padding: 28px 0 48px;
}

.sm-articles-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.sm-article-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 3px;
    border-left: 3px solid var(--accent);
    padding: 18px 20px 16px;
}

.sm-article-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 0 8px;
    color: var(--text-light);
    font-size: 13px;
}

.sm-article-chip {
    display: inline-block;
    margin-bottom: 6px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.sm-article-card h2 {
    margin: 0 0 8px;
    font-size: 20px;
    line-height: 1.35;
    font-weight: 800;
}

.sm-article-card h2 a {
    color: var(--primary);
}

.sm-article-card h2 a:hover {
    color: var(--accent);
}

.sm-article-card-lead {
    margin: 0;
    color: var(--text-main);
    font-size: 15px;
    line-height: 1.5;
}

.sm-article-badge {
    display: inline-block;
    padding: 2px 8px;
    border: 1px solid #cbd5e1;
    border-radius: 3px;
    background: #f8fafc;
    color: var(--text-dark);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
}

.sm-article-badge-ad {
    border-color: #fdba74;
    background: #fff7ed;
    color: #9a3412;
}

.sm-articles-empty {
    margin: 12px 0 28px;
    color: var(--text-light);
}

.sm-articles-archive .navigation {
    margin: 28px 0 0;
}

.sm-articles-archive .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.sm-articles-archive .page-numbers {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: 3px;
    background: var(--white);
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 600;
}

.sm-articles-archive .page-numbers.current {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.sm-articles-archive a.page-numbers:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.sm-article-body {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 3px;
    padding: 32px 36px;
    line-height: 1.7;
    color: var(--text-main);
    overflow-x: auto;
}

.sm-article-body h2 {
    margin: 1.5em 0 0.55em;
    color: var(--primary);
    font-size: 22px;
    line-height: 1.3;
}

.sm-article-body h2:first-child {
    margin-top: 0;
}

.sm-article-body p {
    margin: 0 0 16px;
}

.sm-article-body h3 {
    margin: 1.15em 0 0.4em;
    color: var(--primary);
    font-size: 18px;
    line-height: 1.35;
}

.sm-article-body ul,
.sm-article-body ol {
    margin: 0 0 16px;
    padding-left: 20px;
}

.sm-article-body ul {
    list-style: disc;
}

.sm-article-body ol {
    list-style: decimal;
}

.sm-article-body li {
    margin-bottom: 8px;
}

.sm-article-body blockquote,
.sm-article-callout {
    margin: 0 0 18px;
    padding: 14px 16px;
    border-left: 3px solid var(--accent);
    background: var(--bg-body);
    border-radius: 0 3px 3px 0;
}

.sm-article-body blockquote p:last-child {
    margin-bottom: 0;
}

.sm-article-table-wrap {
    overflow-x: auto;
    margin: 0 0 18px;
}

.sm-article-body a {
    color: var(--accent);
    font-weight: 600;
}

.sm-article-body a:hover {
    color: var(--accent-hover);
}

.sm-article-body em {
    color: var(--text-light);
    font-size: 14px;
}

.sm-article-body table {
    width: 100%;
    min-width: 640px;
    margin: 0 0 18px;
    border-collapse: collapse;
    font-size: 15px;
}

.sm-article-table-wrap table {
    margin: 0;
}

.sm-article-body th,
.sm-article-body td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}

.sm-article-body th {
    background: var(--bg-body);
    color: var(--primary);
    font-weight: 700;
}

.sm-articles-related {
    margin-top: 28px;
}

.sm-articles-related h2 {
    margin: 0 0 14px;
    color: var(--primary);
    font-size: 22px;
}

.sm-articles-front {
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: 36px 0 48px;
}

.sm-articles-front-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.sm-articles-front-head h2 {
    margin: 0;
    color: var(--primary);
    font-size: 22px;
}

.sm-articles-front-head a {
    color: var(--accent);
    font-size: 14px;
    font-weight: 700;
}

.sm-articles-front-head a:hover {
    color: var(--accent-hover);
}

.sm-articles-front-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.sm-articles-front-item {
    display: block;
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: 3px;
    background: var(--white);
}

.sm-articles-related .sm-articles-front-item {
    background: var(--bg-body);
}

.sm-articles-front-item:hover {
    border-color: var(--accent);
}

.sm-articles-front-item .sm-article-badge {
    margin-bottom: 8px;
}

.sm-articles-front-title {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    margin-bottom: 6px;
    color: var(--primary);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
}

.sm-articles-front-item:hover .sm-articles-front-title {
    color: var(--accent);
}

.sm-articles-front-lead {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.4;
}

@media (max-width: 900px) {
    .sm-articles-grid,
    .sm-articles-front-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .sm-article-body table {
        min-width: 0;
    }
}

@media (max-width: 768px) {
    .hero.sm-articles-hero h1 {
        font-size: 26px;
    }

    .sm-article-body {
        padding: 22px 16px;
    }

    .sm-articles-front-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }
}

@media (max-width: 640px) {
    .sm-article-body table.sm-table-cards {
        min-width: 0;
        width: 100%;
    }

    .sm-article-body table.sm-table-cards thead {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .sm-article-body table.sm-table-cards tbody {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .sm-article-body table.sm-table-cards tbody tr {
        display: block;
        border: 1px solid var(--border);
        border-radius: 4px;
        padding: 12px 14px;
        background: var(--white);
    }

    .sm-article-body table.sm-table-cards tbody td {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: baseline;
        gap: 2px 12px;
        padding: 6px 0;
        border-bottom: 1px dashed #e2e8f0;
        font-size: 14px;
        line-height: 1.45;
        text-align: left;
    }

    .sm-article-body table.sm-table-cards tbody td:last-child {
        border-bottom: 0;
        padding-bottom: 0;
    }

    .sm-article-body table.sm-table-cards tbody td:first-child {
        display: block;
        padding: 0 0 8px;
        margin-bottom: 4px;
        border-bottom: 1px solid var(--border);
        font-size: 15px;
        font-weight: 700;
        color: var(--primary);
    }

    .sm-article-body table.sm-table-cards tbody td:not(:first-child)::before {
        content: attr(data-label);
        font-size: 13px;
        font-weight: 600;
        color: var(--text-light);
        flex: 0 1 auto;
    }
}
