/* ==========================================================================
   Iguazu Noticias — Pager

   The numbered pager under a list of posts (inc/Components/Pagination.php).
   Current page and links share .ig-pager__link so the row keeps its rhythm
   whether an item is clickable or not; only the fill and the weight change.
   ========================================================================== */

.ig-pager {
    display: flex;
    justify-content: center;
    padding-top: var(--space-4);
}

.ig-pager__list {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex-wrap: wrap;
    justify-content: center;
}

.ig-pager__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border-radius: var(--radius);
    border: 1px solid var(--neutral-200);
    background: #fff;
    color: var(--ink);
    font-size: 14.5px;
    font-weight: var(--weight-semibold);
    text-decoration: none;
    transition:
        background var(--dur) var(--ease-out),
        border-color var(--dur) var(--ease-out);
}

a.ig-pager__link:hover {
    background: var(--green-100);
    border-color: var(--green-100);
    color: var(--ink);
}

.ig-pager__link--current {
    background: var(--green-400);
    border-color: var(--green-400);
    font-weight: var(--weight-bold);
}

/* The word beside the chevron is the label; the chevron is decoration, so the
   two must not be allowed to break apart. */
.ig-pager__link--prev,
.ig-pager__link--next {
    white-space: nowrap;
}

.ig-pager__ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 42px;
    color: var(--neutral-400);
}

@media (max-width: 560px) {
    /* Prev and Next keep their words; the numbers are what give way, and the
       chevrons alone would leave the row without a readable label. */
    .ig-pager__link {
        min-width: 38px;
        height: 38px;
        padding: 0 10px;
        font-size: 13.5px;
    }

    .ig-pager__ellipsis {
        height: 38px;
    }
}
