/* ==========================================================================
   Listing pagination (partials/pagination-nav.hbs): plain page numbers.
   Also the author page header links, which reuse the author box chips.
   ========================================================================== */

.mx-pagination {
    margin: 56px 0 16px;
    font-family: var(--bf-sans, "Geist", system-ui, sans-serif);
}

.mx-page-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mx-page-list li {
    margin: 0;
    padding: 0;
}

.mx-page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 6px;
    box-sizing: border-box;
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    color: #6b7280;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease;
}

a.mx-page:hover {
    color: #0a3d4a;
    border-bottom-color: #d1d5db;
}

a.mx-page:focus-visible {
    outline: 2px solid #0a3d4a;
    outline-offset: 2px;
}

.mx-page.is-current {
    color: #0a3d4a;
    font-weight: 700;
    border-bottom-color: var(--bf-primary, #33c09e);
}

.mx-page-gap {
    min-width: 24px;
    font-size: 15px;
    text-align: center;
    color: #9ca3af;
}

/* ---------------------------------------------- Author page header links */

.mx-author-page-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.mx-author-page-links li {
    margin: 0;
    padding: 0;
}

/* Author with no links filled in */
.mx-author-page-links:not(:has(li)) {
    display: none;
}

@media (prefers-reduced-motion: reduce) {
    .mx-page {
        transition: none;
    }
}
