.articles-shell {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    min-height: 100vh;
    background:
        linear-gradient(180deg, #f8fafc 0%, #eef4f8 48%, #ffffff 100%);
    color: #0f172a;
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
}

.articles-hero {
    background:
        linear-gradient(135deg, rgba(17, 24, 39, 0.97), rgba(17, 94, 89, 0.9)),
        linear-gradient(45deg, rgba(59, 130, 246, 0.14), rgba(245, 158, 11, 0.16));
}

.articles-hero-inner {
    max-width: 80rem;
    margin: 0 auto;
    padding: 2.75rem 1rem;
}

.articles-kicker {
    color: #5eead4;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
}

.articles-hero h1 {
    max-width: 58rem;
    margin: 0.75rem 0 0;
    color: #ffffff;
    font-size: 2rem;
    line-height: 1.18;
    font-weight: 800;
}

@media (min-width: 768px) {
    .articles-hero h1 {
        font-size: 3rem;
    }
}

.articles-hero p:not(.articles-kicker) {
    max-width: 54rem;
    margin-top: 1rem;
    color: #dbeafe;
    line-height: 1.75;
}

.articles-stats {
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 44rem;
    gap: 0.75rem;
}

.articles-stats div {
    border: 1px solid rgba(226, 232, 240, 0.2);
    background: rgba(15, 23, 42, 0.36);
    border-radius: 8px;
    padding: 0.9rem;
}

.articles-stats span {
    display: block;
    color: #cbd5e1;
    font-size: 0.76rem;
    font-weight: 800;
}

.articles-stats strong {
    display: block;
    margin-top: 0.2rem;
    color: #ffffff;
    font-size: 1.45rem;
}

.articles-content {
    width: 100%;
    max-width: 80rem;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.articles-toolbar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    align-items: center;
    min-width: 0;
}

@media (min-width: 900px) {
    .articles-toolbar {
        grid-template-columns: minmax(0, 1fr) 13rem 10rem auto auto;
    }
}

.articles-input,
.articles-select {
    width: 100%;
    min-width: 0;
    min-height: 2.875rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    padding: 0.75rem 0.95rem;
    color: #0f172a;
}

.articles-input:focus,
.articles-select:focus {
    outline: 3px solid rgba(20, 184, 166, 0.24);
    border-color: #0f766e;
}

.articles-button,
.articles-reset,
.article-read-link {
    min-height: 2.875rem;
    border-radius: 8px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-weight: 800;
    text-decoration: none;
}

.articles-button {
    color: #ffffff;
    background: #0f766e;
    padding: 0.7rem 1.1rem;
}

.articles-reset {
    color: #334155;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    padding: 0.7rem 1rem;
}

.articles-topic-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0 1.75rem;
    max-width: 100%;
    min-width: 0;
}

.articles-topic-menu a {
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #ffffff;
    color: #334155;
    padding: 0.45rem 0.8rem;
    font-size: 0.86rem;
    font-weight: 800;
    text-decoration: none;
}

.articles-topic-menu a:hover,
.articles-topic-menu .is-active {
    border-color: #0f766e;
    background: #ccfbf1;
    color: #115e59;
}

.articles-grid {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    gap: 1.25rem;
}

@media (min-width: 760px) {
    .articles-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1120px) {
    .articles-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.article-card {
    display: flex;
    flex-direction: column;
    position: relative;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #dbe3ee;
    border-radius: 8px;
    background:
        linear-gradient(180deg, #ffffff, #f8fafc);
    min-height: 19.5rem;
    padding: 1rem;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    content-visibility: auto;
    contain-intrinsic-size: 0 320px;
}

.article-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    border-radius: 8px 8px 0 0;
    background: linear-gradient(90deg, #14b8a6, #2563eb, #f59e0b);
}

.article-card:hover {
    transform: translateY(-3px);
    border-color: rgba(20, 184, 166, 0.55);
    box-shadow: 0 24px 56px rgba(15, 23, 42, 0.14);
}

.article-card-top,
.article-card-metrics {
    display: flex;
    flex-wrap: wrap;
    max-width: 100%;
    min-width: 0;
    gap: 0.45rem;
}

.article-card-top span,
.article-card-metrics span {
    max-width: 100%;
    border-radius: 999px;
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
    font-size: 0.74rem;
    font-weight: 800;
    padding: 0.25rem 0.55rem;
    overflow-wrap: anywhere;
    white-space: normal;
}

.article-card h2 {
    max-width: 100%;
    margin: 0.9rem 0 0;
    color: #0f172a;
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.article-card p {
    max-width: 100%;
    color: #475569;
    line-height: 1.65;
    margin: 0.75rem 0 1rem;
    font-size: 0.93rem;
    overflow-wrap: anywhere;
}

.article-read-link {
    width: 100%;
    max-width: 100%;
    margin-top: auto;
    color: #ffffff;
    background: #1d4ed8;
    padding: 0.78rem 1rem;
}

.article-read-link:hover {
    background: #0f766e;
}

.articles-pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 2.25rem 0 0;
}

.articles-pagination a {
    width: 2.55rem;
    height: 2.55rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    color: #0f172a;
    background: #ffffff;
    font-weight: 800;
    text-decoration: none;
}

.articles-pagination a:hover {
    border-color: #0f766e;
    color: #0f766e;
}

.articles-pagination .is-active {
    background: #0f766e;
    border-color: #0f766e;
    color: #ffffff;
}

.articles-pagination .is-disabled {
    pointer-events: none;
    opacity: 0.45;
}

.articles-empty {
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    padding: 2rem;
    text-align: center;
}

@media (max-width: 640px) {
    .articles-hero-inner,
    .articles-content {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .articles-stats {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    .articles-grid {
        gap: 0.9rem;
    }

    .article-card {
        min-height: auto;
        padding: 0.9rem;
    }

    .article-card h2 {
        font-size: 1rem;
        line-height: 1.42;
    }
}

@media (prefers-reduced-motion: reduce) {
    .article-card,
    .article-read-link,
    .articles-button,
    .articles-reset {
        transition: none;
    }

    .article-card:hover {
        transform: none;
    }
}
