.tam-pagination {
    margin: 0 auto;
    color: #5b1222;
    font-size: 13px;
}
.directory-result-summary,
.gr-result-summary {
    margin: 16px 0 12px;
    color: #6b5148;
    text-align: left;
    font: 500 14px/1.45 var(--tam-font-body, Arial, sans-serif);
}
.tam-pagination-summary {
    margin: 0 0 12px;
    color: #6b5148;
    text-align: center;
}
.tam-pagination-nav,
.tam-pagination-jump {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    flex-wrap: wrap;
}
.tam-pagination-nav {
    padding: 10px 12px;
    border: 1px solid #e2c991;
    border-radius: 14px;
    background: #fffaf0;
    box-shadow: 0 4px 16px rgba(72, 31, 17, .1);
}
.tam-pagination-control,
.tam-pagination-page,
.tam-pagination-jump input,
.tam-pagination-jump button {
    min-height: 40px;
    box-sizing: border-box;
    border: 1px solid #d8b875;
    border-radius: 9px;
    background: #fffdf7;
    color: #5b1222;
    font: inherit;
    font-weight: 700;
}
.tam-pagination-control,
.tam-pagination-page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}
.tam-pagination-control { min-width: 74px; padding: 0 11px; gap: 3px; }
.tam-pagination-page { width: 40px; }
.tam-pagination-page.is-current { border-color: #5b1222; background: #5b1222; color: #fffaf0; }
.tam-pagination-control:hover,
.tam-pagination-page:hover,
.tam-pagination-jump button:hover { background: #f4e2bd; color: #5b1222; }
.tam-pagination-control.is-disabled { opacity: .45; pointer-events: none; }
.tam-pagination-ellipsis { padding: 0 2px; }
.tam-pagination-page-state { padding: 0 5px; white-space: nowrap; }
.tam-pagination-jump { position: relative; margin-top: 12px; color: #6b5148; }
.tam-pagination-jump label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.tam-pagination-jump input { width: 52px; padding: 0 5px; text-align: center; }
.tam-pagination-jump button { padding: 0 12px; cursor: pointer; }
.tam-pagination-error { color: #8b1e2d; }
.tam-pagination:focus-within { scroll-margin-bottom: 24px; }

@media (max-width: 700px) {
    .directory-result-summary,
    .gr-result-summary {
        margin: 12px 0 8px;
        font-size: 13px;
    }
    .tam-pagination-nav { gap: 5px; padding: 8px 6px; }
    .tam-pagination-pages { display: none; }
    .tam-pagination-control { min-width: 58px; min-height: 44px; padding: 0 8px; }
    .tam-pagination-control span { display: none; }
    .tam-pagination-page-state { min-width: 56px; text-align: center; }
    .tam-pagination-jump { margin-top: 10px; }
    .tam-pagination-summary { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    .tam-pagination * { scroll-behavior: auto; }
}
