nav.lp-mobile-pager { display: none !important; }

/* Jobs and housing offer the same page links and all 24 results at every width. */
.lp-unified-pager { display: grid; justify-items: center; gap: .5rem; margin: 1.25rem auto; }
.lp-unified-pager > div { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .25rem; }
.lp-unified-pager a, .lp-unified-pager [aria-current] {
  box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; padding: .25rem .65rem; border-radius: 9px;
  border: 1px solid #bfd0df; background: #fff; color: #173952; font-weight: 600; text-decoration: none;
}
.lp-unified-pager [aria-current] { background: #153852; border-color: #153852; color: #fff; }
.lp-unified-pager a:focus-visible { outline: 3px solid #bd173e; outline-offset: 2px; }

@media (max-width: 899px) {
  /* The ordinary first page is shared with desktop. Mobile page 2 starts at SQL offset 20. */
  #public-content .lp-paged-results > :nth-child(n+21), #public-content .lp-desktop-pager { display: none !important; }
  #oferty, #oferty-pracy, #lpa-results, #firmy-wyniki { scroll-margin-top: 76px; }
  nav.lp-mobile-pager { display: grid !important; justify-items: center; gap: 8px; margin: 20px auto; color: #14334c; }
  .lp-mobile-page-numbers, .lp-mobile-page-steps { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 4px; max-width: 100%; }
  .lp-mobile-pager a, .lp-mobile-pager [aria-current] {
    box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center;
    min-width: 44px; min-height: 44px; padding: 4px 8px; border-radius: 9px;
    border: 1px solid #bfd0df; background: #fff; color: #173952; font: inherit;
    font-weight: 600; text-decoration: none;
  }
  .lp-mobile-pager [aria-current] { background: #153852; border-color: #153852; color: #fff; }
  .lp-mobile-pager .lp-mobile-page-steps a { padding-inline: 14px; }
  .lp-mobile-pager a:focus-visible { outline: 3px solid #bd173e; outline-offset: 2px; }
}

/* A few legacy phone card styles use !important. A layered important declaration
   outranks those unlayered rules without tying pagination to an individual card type. */
@layer lp-mobile-listing-boundary {
  @media (max-width: 899px) {
    .lp-paged-results > :nth-child(n+21) { display: none !important; }
  }
}
