/**
 * archives.css — category and archive pages (/category/…/), printed by
 * rn27_archive_loop() in inc/archives.php.
 *
 * The post list itself reuses .rn27-latest-list from home.css; this file adds
 * the page wrapper, heading, empty state, pagination and the town/village
 * filter chips (a GET form, so it works without JavaScript).
 */

/* Archive page wrapper, heading, empty state and pagination */
.rn27-archive {
    padding: 60px 0;
}

.rn27-archive__header {
    margin-bottom: 10px;
}

.rn27-archive__description {
    max-width: 700px;
}

.rn27-archive__empty {
    margin-top: 36px;
    color: #606f7b;
    font-size: 1rem;
}

.rn27-archive__pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.rn27-archive__pagination a,
.rn27-archive__pagination span {
    display: inline-block;
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    background: var(--neutral-light);
    color: var(--neutral-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
}

.rn27-archive__pagination a:hover {
    background: var(--brand-teal);
    color: var(--white);
}

.rn27-archive__pagination span.current {
    background: var(--brand-teal);
    color: var(--white);
}

/* Filter chips (All, Monsey, Suffern …) */
.rn27-filter-chips {
    display: flex;
    align-items: center;
    gap: 12px;

    width: 100%;

    margin: 24px 0 40px;
    padding: 2px 0 8px;

    overflow-x: auto;
    overflow-y: hidden;

    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;

    position: relative !important;
    z-index: 20 !important;
    pointer-events: auto !important;
}

.rn27-filter-chip {
    display: inline-flex;
    flex: 0 0 auto;

    align-items: center;
    justify-content: center;

    min-height: 46px;

    padding: 11px 24px;

    border: 1px solid #d8dfe0;
    border-radius: var(--radius-pill);

    background: #f0f2f2;

    color: var(--neutral-dark) !important;

    font-size: 0.95rem;
    line-height: 1;
    font-weight: 700;

    text-decoration: none !important;
    white-space: nowrap;

    position: relative !important;
    z-index: 21 !important;
    pointer-events: auto !important;
    cursor: pointer !important;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.rn27-filter-chip:not(.is-active):hover {
    background: #e8eeee;

    color: var(--brand-teal) !important;

    border-color: var(--brand-teal);

    transform: translateY(-1px);
}

.rn27-filter-chip.is-active,
.rn27-filter-chip[aria-current="page"] {
    background: var(--brand-teal) !important;

    color: var(--white) !important;

    border-color: var(--brand-teal) !important;
}

.rn27-filter-chip.is-active:hover,
.rn27-filter-chip[aria-current="page"]:hover {
    background: var(--brand-teal) !important;

    color: var(--white) !important;

    border-color: var(--brand-teal) !important;

    transform: none;
}

@media (max-width: 699px) {
    .rn27-filter-chips {
            gap: 9px;
            margin-bottom: 30px;
        }

    .rn27-filter-chip {
            min-height: 42px;

            padding: 9px 18px;

            font-size: 0.88rem;
        }
}

@media (min-width: 700px) {
    .rn27-filter-chips {
            flex-wrap: wrap;

            overflow: visible;

            padding-bottom: 0;
        }
}
