/* NETA articles listing */

.articles-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 8px;
    background: #fff;
    border: 1px solid #e4e7ef;
    border-radius: 12px;
    padding: 10px 12px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.articles-filter-inputs {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.af-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    flex: 0 1 auto;
    min-width: 0;
}

.af-input-wrap .af-icon {
    position: absolute;
    left: 10px;
    font-size: 12px;
    color: #9ca3af;
    pointer-events: none;
    z-index: 1;
}

.af-input-wrap .af-chevron {
    position: absolute;
    right: 8px;
    font-size: 10px;
    color: #9ca3af;
    pointer-events: none;
}

.af-input-wrap input,
.af-input-wrap select {
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid #e4e7ef;
    border-radius: 8px;
    padding: 8px 26px 8px 30px;
    font-size: 13px;
    color: #374151;
    background: #f9fafb;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
    min-width: 0;
    text-overflow: ellipsis;
}

.af-input-wrap select {
    padding-right: 26px;
}

.af-input-wrap--category {
    flex: 0 1 150px;
    max-width: 170px;
}

.af-input-wrap--author {
    flex: 0 1 140px;
    max-width: 160px;
}

.af-input-wrap--year {
    flex: 0 0 118px;
    width: 118px;
}

.af-input-wrap--sort {
    flex: 0 0 132px;
    width: 132px;
}

.af-search-wrap {
    flex: 1 1 auto;
    min-width: 140px;
}

.af-search-wrap input {
    width: 100%;
    min-width: 0;
    padding-right: 12px;
}

.af-input-wrap input:focus,
.af-input-wrap select:focus {
    border-color: #1a3c5e;
    box-shadow: 0 0 0 3px rgba(26, 60, 94, 0.12);
    background: #fff;
}

.articles-state {
    text-align: center;
    padding: 48px 12px;
    color: #888;
    font-size: 15px;
}

.articles-state--error {
    color: #b02a37;
}

.articles-listing .neta-articles-card {
    min-height: 340px;
}

@media (max-width: 991px) {
    .articles-filter-bar {
        flex-wrap: wrap;
    }

    .articles-filter-inputs {
        flex-wrap: wrap;
        width: 100%;
    }

    .af-input-wrap--category,
    .af-input-wrap--author,
    .af-input-wrap--year,
    .af-input-wrap--sort {
        flex: 1 1 calc(50% - 8px);
        max-width: none;
        width: auto;
    }

    .af-search-wrap {
        flex: 1 1 100%;
        min-width: 100%;
    }
}

@media (max-width: 575px) {
    .articles-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .articles-filter-inputs {
        flex-direction: column;
    }

    .af-input-wrap--category,
    .af-input-wrap--author,
    .af-input-wrap--year,
    .af-input-wrap--sort,
    .af-search-wrap {
        flex: 1 1 100%;
        width: 100%;
        max-width: none;
    }
}
