.articles-masthead {
    padding: 32px 0 48px;
    background: #f4f6f8;
}

.articles-intro {
    max-width: 710px;
    margin: 0 auto 36px;
    text-align: center;
}

.articles-intro h1 {
    margin: 0 0 20px;
    color: var(--navy);
    font-size: clamp(40px, 5vw, 64px);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -.055em;
}

.articles-intro h1 > span {
    color: var(--blue);
}

.articles-intro p {
    max-width: 660px;
    margin: 0 auto;
    color: #5e6b79;
}

.articles-filter {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 245px auto;
    align-items: center;
    gap: 14px;
    padding: 20px;
    background: #fff;
    border: 1px solid #e6e9ed;
    border-radius: 12px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.articles-search,
.articles-category {
    position: relative;
    min-width: 0;
}

.articles-search > svg,
.articles-category > svg {
    position: absolute;
    top: 50%;
    width: 21px;
    height: 21px;
    transform: translateY(-50%);
    fill: none;
    stroke: var(--blue);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}

.articles-search > svg { left: 17px; }
.articles-category > svg { right: 14px; width: 18px; }

.articles-filter input,
.articles-filter select {
    display: block;
    width: 100%;
    min-height: 52px;
    padding: 12px 16px;
    border: 1px solid #dce3eb;
    border-radius: 8px;
    background: #fff;
    color: var(--navy);
    font: inherit;
    font-size: 14px;
    line-height: 1.5;
}

.articles-filter input { padding-left: 49px; }
.articles-filter input::placeholder { color: #7b8794; }
.articles-filter select { padding-right: 42px; appearance: none; cursor: pointer; }
.articles-filter input:focus-visible,
.articles-filter select:focus-visible { outline: 3px solid #82abe2; outline-offset: 2px; }
.articles-search-button { min-height: 52px; padding-inline: 25px; cursor: pointer; font-family: inherit; }

.article-listing {
    padding: 36px 0 80px;
    background: #fff;
    scroll-margin-top: 20px;
}

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

.articles-page .articles-results p {
    margin: 0;
    color: #6b7784;
    font-size: 14px;
}

.articles-results strong { color: var(--navy); font-weight: 500; }
.articles-reset { display: inline-flex; align-items: center; gap: 9px; flex: none; color: var(--blue); font-size: 14px; font-weight: 500; }
.articles-reset span { font-size: 22px; line-height: 1; }
.articles-reset:hover { text-decoration: underline; }
.article-listing .article-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 24px; }
.article-listing .article-copy { padding: 22px; }
.article-listing .article-meta { align-items: center; flex-wrap: wrap; gap: 8px; font-size: 14px; }
.article-category-label { padding: 3px 10px; color: var(--blue); background: #edf3fb; border-radius: 6px; font-weight: 500; }
.article-category-label:hover { background: #deebfb; }
.article-listing .article-meta time { color: #707984; }

.articles-page .article-copy h2 {
    margin: 16px 0 10px;
    color: var(--navy);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: -.025em;
}

.article-copy h2 a:hover { color: var(--blue); }
.article-listing .article-copy p { margin-bottom: 22px; color: #667382; }
.article-listing .article-readmore { gap: 12px; font-size: 14px; }
.article-readmore svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.article-readmore:hover svg { transform: translateX(3px); }

.articles-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 46px;
}

.articles-pagination > a,
.articles-pagination > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid #e0e6ed;
    border-radius: 20px;
    color: #4e6278;
    font-size: 14px;
    font-weight: 500;
}

.articles-pagination > a:hover { border-color: var(--blue); background: #edf3fb; color: var(--blue); }
.articles-pagination > .pagination-current { background: var(--blue); color: #fff; border-color: var(--blue); }
.articles-pagination > .is-disabled { background: #f4f6f8; color: #b5bec8; }
.articles-pagination > .pagination-ellipsis { width: 26px; border: 0; }
.pagination-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.article-empty-state {
    padding: 64px 24px;
    border-radius: 12px;
    background: #f4f6f8;
    text-align: center;
}

.article-empty-state > svg { width: 58px; height: 58px; margin-bottom: 20px; fill: none; stroke: var(--blue); stroke-width: 1.8; stroke-linecap: round; }
.articles-page .article-empty-state h2 { margin: 0 0 12px; color: var(--navy); font-size: 28px; }
.article-empty-state p { margin: 0 auto 22px; max-width: 480px; color: #667382; }

@media (max-width: 1000px) {
    .articles-filter { grid-template-columns: minmax(0, 1fr) 205px auto; padding: 16px; gap: 10px; }
    .articles-search-button { padding-inline: 18px; }
    .article-listing .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
}

@media (max-width: 760px) {
    .articles-masthead { padding: 25px 0 30px; }
    .articles-intro { margin-bottom: 26px; }
    .articles-intro h1 { font-size: 40px; margin-bottom: 15px; }
    .articles-masthead .detail-breadcrumb { margin-bottom: 28px; }
    .articles-filter { grid-template-columns: minmax(0, 1fr) auto; padding: 14px; }
    .articles-search { grid-column: 1 / -1; }
    .articles-search-button { padding-inline: 16px; }
    .article-listing { padding: 28px 0 55px; }
    .articles-results { align-items: flex-start; flex-direction: column; gap: 8px; margin-bottom: 21px; }
    .article-listing .article-grid { grid-template-columns: 1fr; gap: 22px; }
    .article-listing .article-copy { padding: 20px; }
    .articles-pagination { margin-top: 32px; }
    .articles-page .article-empty-state h2 { font-size: 25px; }
}

@media (max-width: 380px) {
    .articles-filter { grid-template-columns: 1fr; }
    .articles-search { grid-column: 1; }
    .articles-search-button { width: 100%; }
}
