/* ═══════════════════════════════════════════════════════════════
   blog-pager.css — Blog list pager (Views/Pagers/blog_pager.php)

   PATH: public/css/blog-pager.css
   ROLE: Styles the numbered pager on the blog index/category/tag/search
         list pages — Newer/Older arrows, page number pills, the current
         page marker (data-state="current"), the ellipsis, and the
         "Page N of M" status line. Kept out of public.css (WP-B owns
         that file this round); loaded from blog.php's styles section.
         Tokens (--teal/--accent/--border/--text-dark/--text-light)
         confirmed identical to roof's public.css :root block.
   PORTED FROM: /var/www/roof/public/css/blog-pager.css (SEO round
         2026-09-21, WP-P), byte-for-byte plus the override block below.
   ═══════════════════════════════════════════════════════════════ */

.blog-pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 8px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.blog-pager-arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}

a.blog-pager-arrow:hover {
    border-color: var(--teal);
    background: var(--teal);
    color: #fff;
}

.blog-pager-arrow[data-state="disabled"] {
    color: var(--text-light);
    opacity: 0.55;
}

.blog-pager-pages {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.blog-pager-page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0 6px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}

a.blog-pager-page:hover {
    border-color: var(--teal);
    background: var(--teal);
    color: #fff;
}

.blog-pager-page[data-state="current"] {
    border-color: var(--teal);
    background: var(--teal);
    color: #fff;
}

.blog-pager-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    min-height: 44px;
    color: var(--text-light);
    font-size: 14px;
}

.blog-pager-status {
    flex-basis: 100%;
    margin: 2px 0 0;
    text-align: center;
    font-size: 12px;
    color: var(--text-light);
}

@media (max-width: 480px) {
    .blog-pager {
        gap: 8px 6px;
    }

    .blog-pager-arrow {
        padding: 0 12px;
        font-size: 13px;
    }
}

/* ───────────────────────────────────────────────────────────────
   Legacy-rule shield — TEMPORARY, remove once WP-B strips the old
   `.blog-pager` / `#blog-pagination ul.pagination` block from
   public/css/public.css:767-816. `#blog-pagination li a` and
   `#blog-pagination li a:hover` there use an ID-scoped selector,
   so they beat the plain-class rules above on padding/border-radius/
   hover color regardless of stylesheet load order. These two rules
   match that ID specificity so the new pager renders correctly in
   the meantime. Requested removal reported in wp-p/REPORT.md.
   ─────────────────────────────────────────────────────────────── */
#blog-pagination .blog-pager-page {
    padding: 0 6px;
    border-radius: 8px;
}

#blog-pagination a.blog-pager-page:hover {
    background: var(--teal);
    border-color: var(--teal);
}
