.view-id-tpg_news_page_view .pager,
body:has(.tpg-news-page-cards) .pager {
  --tpg-news-pager-ink: #07143d;
  --tpg-news-pager-muted: #65718b;
  --tpg-news-pager-border: #d8dee8;
  --tpg-news-pager-shadow: 0 4px 12px rgba(7, 20, 61, 0.08);
  --tpg-news-pager-blue: #0f55d8;
  --tpg-news-pager-blue-dark: #073ca7;
  clear: both;
  margin: 28px 0 16px;
}

.view-id-tpg_news_page_view .pager__items,
body:has(.tpg-news-page-cards) .pager__items {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.view-id-tpg_news_page_view .pager__item,
body:has(.tpg-news-page-cards) .pager__item {
  display: inline-flex;
  margin: 0;
  padding: 0;
  color: var(--tpg-news-pager-ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}

.view-id-tpg_news_page_view .pager__item a,
.view-id-tpg_news_page_view .pager__item.is-active,
.view-id-tpg_news_page_view .pager__item--active,
body:has(.tpg-news-page-cards) .pager__item a,
body:has(.tpg-news-page-cards) .pager__item.is-active,
body:has(.tpg-news-page-cards) .pager__item--active {
  display: inline-flex;
  min-width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  border: 1px solid var(--tpg-news-pager-border);
  border-radius: 8px;
  background: #fff;
  color: var(--tpg-news-pager-ink);
  box-shadow: var(--tpg-news-pager-shadow);
  text-decoration: none;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.view-id-tpg_news_page_view .pager__item a:hover,
.view-id-tpg_news_page_view .pager__item a:focus,
body:has(.tpg-news-page-cards) .pager__item a:hover,
body:has(.tpg-news-page-cards) .pager__item a:focus {
  border-color: #9fb3d6;
  color: var(--tpg-news-pager-blue-dark);
  box-shadow: 0 5px 14px rgba(7, 20, 61, 0.13);
}

.view-id-tpg_news_page_view .pager__item.is-active,
.view-id-tpg_news_page_view .pager__item--active,
body:has(.tpg-news-page-cards) .pager__item.is-active,
body:has(.tpg-news-page-cards) .pager__item--active {
  border-color: transparent;
  background: linear-gradient(180deg, var(--tpg-news-pager-blue) 0%, var(--tpg-news-pager-blue-dark) 100%);
  color: #fff;
  box-shadow: 0 6px 14px rgba(15, 85, 216, 0.2);
}

.view-id-tpg_news_page_view .pager__item.is-active a,
.view-id-tpg_news_page_view .pager__item--active a,
body:has(.tpg-news-page-cards) .pager__item.is-active a,
body:has(.tpg-news-page-cards) .pager__item--active a {
  border: 0;
  background: transparent;
  color: inherit;
  box-shadow: none;
}

.view-id-tpg_news_page_view .pager__item--first,
body:has(.tpg-news-page-cards) .pager__item--first {
  display: none;
}

.view-id-tpg_news_page_view .pager__item--previous a,
.view-id-tpg_news_page_view .pager__item--next a,
.view-id-tpg_news_page_view .pager__item--last a,
body:has(.tpg-news-page-cards) .pager__item--previous a,
body:has(.tpg-news-page-cards) .pager__item--next a,
body:has(.tpg-news-page-cards) .pager__item--last a {
  min-width: 88px;
  gap: 9px;
  padding: 0 14px;
}

.view-id-tpg_news_page_view .pager__item--last a,
body:has(.tpg-news-page-cards) .pager__item--last a {
  min-width: 76px;
}

.view-id-tpg_news_page_view .pager__item--previous a > span,
.view-id-tpg_news_page_view .pager__item--next a > span,
.view-id-tpg_news_page_view .pager__item--last a > span,
body:has(.tpg-news-page-cards) .pager__item--previous a > span,
body:has(.tpg-news-page-cards) .pager__item--next a > span,
body:has(.tpg-news-page-cards) .pager__item--last a > span {
  display: none !important;
}

.view-id-tpg_news_page_view .pager__item--previous a::after,
body:has(.tpg-news-page-cards) .pager__item--previous a::after {
  content: "Previous";
}

.view-id-tpg_news_page_view .pager__item--next a::before,
body:has(.tpg-news-page-cards) .pager__item--next a::before {
  content: "Next";
}

.view-id-tpg_news_page_view .pager__item--last a::before,
body:has(.tpg-news-page-cards) .pager__item--last a::before {
  content: "Last";
}

.view-id-tpg_news_page_view .pager__item--previous a::before,
.view-id-tpg_news_page_view .pager__item--last a::after,
body:has(.tpg-news-page-cards) .pager__item--previous a::before,
body:has(.tpg-news-page-cards) .pager__item--last a::after {
  content: "";
  width: 9px;
  height: 9px;
  border-color: currentColor;
  border-style: solid;
  border-width: 2px 2px 0 0;
}

.view-id-tpg_news_page_view .pager__item--next a::after,
body:has(.tpg-news-page-cards) .pager__item--next a::after {
  content: "";
  width: 9px;
  height: 9px;
  border-color: currentColor;
  border-style: solid;
  border-width: 2px 2px 0 0;
}

.view-id-tpg_news_page_view .pager__item--previous a::before,
body:has(.tpg-news-page-cards) .pager__item--previous a::before {
  transform: rotate(-135deg);
}

.view-id-tpg_news_page_view .pager__item--next a::after,
body:has(.tpg-news-page-cards) .pager__item--next a::after {
  transform: rotate(45deg);
}

.view-id-tpg_news_page_view .pager__item--last a::after,
body:has(.tpg-news-page-cards) .pager__item--last a::after {
  content: "";
  width: 14px;
  height: 14px;
  border: 0;
  background: currentColor;
  box-shadow: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 3l5 5-5 5M8 3l5 5-5 5' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px 14px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 3l5 5-5 5M8 3l5 5-5 5' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px 14px no-repeat;
  transform: none;
}

.view-id-tpg_news_page_view .pager__item--ellipsis,
body:has(.tpg-news-page-cards) .pager__item--ellipsis {
  min-width: 30px;
  align-items: center;
  justify-content: center;
  color: var(--tpg-news-pager-ink);
  font-size: 20px;
  letter-spacing: 0;
}

html.dark-mode .view-id-tpg_news_page_view .pager,
body.dark-mode .view-id-tpg_news_page_view .pager,
html[data-theme="dark"] .view-id-tpg_news_page_view .pager,
body[data-theme="dark"] .view-id-tpg_news_page_view .pager,
html.dark-mode body:has(.tpg-news-page-cards) .pager,
body.dark-mode:has(.tpg-news-page-cards) .pager,
html[data-theme="dark"] body:has(.tpg-news-page-cards) .pager,
body[data-theme="dark"]:has(.tpg-news-page-cards) .pager {
  --tpg-news-pager-ink: #e8eefc;
  --tpg-news-pager-muted: #a8b5cf;
  --tpg-news-pager-border: #26334a;
  --tpg-news-pager-shadow: 0 5px 14px rgba(0, 0, 0, 0.24);
}

html.dark-mode .view-id-tpg_news_page_view .pager__item a,
body.dark-mode .view-id-tpg_news_page_view .pager__item a,
html[data-theme="dark"] .view-id-tpg_news_page_view .pager__item a,
body[data-theme="dark"] .view-id-tpg_news_page_view .pager__item a,
html.dark-mode body:has(.tpg-news-page-cards) .pager__item a,
body.dark-mode:has(.tpg-news-page-cards) .pager__item a,
html[data-theme="dark"] body:has(.tpg-news-page-cards) .pager__item a,
body[data-theme="dark"]:has(.tpg-news-page-cards) .pager__item a {
  background: #101a2e;
}

html.dark-mode .view-id-tpg_news_page_view .pager__item.is-active a,
body.dark-mode .view-id-tpg_news_page_view .pager__item.is-active a,
html[data-theme="dark"] .view-id-tpg_news_page_view .pager__item.is-active a,
body[data-theme="dark"] .view-id-tpg_news_page_view .pager__item.is-active a,
html.dark-mode body:has(.tpg-news-page-cards) .pager__item.is-active a,
body.dark-mode:has(.tpg-news-page-cards) .pager__item.is-active a,
html[data-theme="dark"] body:has(.tpg-news-page-cards) .pager__item.is-active a,
body[data-theme="dark"]:has(.tpg-news-page-cards) .pager__item.is-active a,
html.dark-mode .view-id-tpg_news_page_view .pager__item--active a,
body.dark-mode .view-id-tpg_news_page_view .pager__item--active a,
html[data-theme="dark"] .view-id-tpg_news_page_view .pager__item--active a,
body[data-theme="dark"] .view-id-tpg_news_page_view .pager__item--active a,
html.dark-mode body:has(.tpg-news-page-cards) .pager__item--active a,
body.dark-mode:has(.tpg-news-page-cards) .pager__item--active a,
html[data-theme="dark"] body:has(.tpg-news-page-cards) .pager__item--active a,
body[data-theme="dark"]:has(.tpg-news-page-cards) .pager__item--active a {
  border-color: transparent;
  background: transparent;
  color: #fff;
  box-shadow: none;
}

@media (max-width: 1199px) {
  .view-id-tpg_news_page_view .pager__items,
  body:has(.tpg-news-page-cards) .pager__items {
    gap: 8px;
  }

  .view-id-tpg_news_page_view .pager__item a,
  .view-id-tpg_news_page_view .pager__item.is-active,
  .view-id-tpg_news_page_view .pager__item--active,
  body:has(.tpg-news-page-cards) .pager__item a,
  body:has(.tpg-news-page-cards) .pager__item.is-active,
  body:has(.tpg-news-page-cards) .pager__item--active {
    min-width: 40px;
    height: 40px;
  }

  .view-id-tpg_news_page_view .pager__item--previous a,
  .view-id-tpg_news_page_view .pager__item--next a,
  .view-id-tpg_news_page_view .pager__item--last a,
  body:has(.tpg-news-page-cards) .pager__item--previous a,
  body:has(.tpg-news-page-cards) .pager__item--next a,
  body:has(.tpg-news-page-cards) .pager__item--last a {
    min-width: 84px;
    padding: 0 12px;
  }
}

@media (max-width: 900px) {
  .view-id-tpg_news_page_view .pager__items,
  body:has(.tpg-news-page-cards) .pager__items {
    gap: 8px;
  }

  .view-id-tpg_news_page_view .pager__items > li:nth-child(n+8):not(.is-active):not(.pager__item--active):not(.pager__item--next):not(.pager__item--last):not(.pager__item--ellipsis):not(.pager__item--last-page),
  body:has(.tpg-news-page-cards) .pager__items > li:nth-child(n+8):not(.is-active):not(.pager__item--active):not(.pager__item--next):not(.pager__item--last):not(.pager__item--ellipsis):not(.pager__item--last-page) {
    display: none;
  }
}

@media (max-width: 767px) {
  .view-id-tpg_news_page_view .pager,
  body:has(.tpg-news-page-cards) .pager {
    margin-top: 24px;
  }

  .view-id-tpg_news_page_view .pager::after,
  body:has(.tpg-news-page-cards) .pager::after {
    content: attr(data-page-summary);
    display: block;
    margin-top: 16px;
    color: var(--tpg-news-pager-muted);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
  }

  .view-id-tpg_news_page_view .pager__items,
  body:has(.tpg-news-page-cards) .pager__items {
    gap: 8px;
    max-width: 100%;
    overflow-x: auto;
    padding: 2px 8px 8px;
    justify-content: flex-start;
    scrollbar-width: none;
  }

  .view-id-tpg_news_page_view .pager__items::-webkit-scrollbar,
  body:has(.tpg-news-page-cards) .pager__items::-webkit-scrollbar {
    display: none;
  }

  .view-id-tpg_news_page_view .pager__item,
  body:has(.tpg-news-page-cards) .pager__item {
    flex: 0 0 auto;
    font-size: 15px;
  }

  .view-id-tpg_news_page_view .pager__item a,
  .view-id-tpg_news_page_view .pager__item.is-active,
  .view-id-tpg_news_page_view .pager__item--active,
  body:has(.tpg-news-page-cards) .pager__item a,
  body:has(.tpg-news-page-cards) .pager__item.is-active,
  body:has(.tpg-news-page-cards) .pager__item--active {
    min-width: 40px;
    height: 40px;
  }

  .view-id-tpg_news_page_view .pager__item--previous a,
  .view-id-tpg_news_page_view .pager__item--next a,
  body:has(.tpg-news-page-cards) .pager__item--previous a,
  body:has(.tpg-news-page-cards) .pager__item--next a {
    min-width: 92px;
    padding: 0 12px;
  }

  .view-id-tpg_news_page_view .pager__item--last,
  body:has(.tpg-news-page-cards) .pager__item--last {
    display: none;
  }

  .view-id-tpg_news_page_view .pager__items > li:nth-child(n+6):not(.is-active):not(.pager__item--active):not(.pager__item--next):not(.pager__item--ellipsis):not(.pager__item--last-page),
  body:has(.tpg-news-page-cards) .pager__items > li:nth-child(n+6):not(.is-active):not(.pager__item--active):not(.pager__item--next):not(.pager__item--ellipsis):not(.pager__item--last-page) {
    display: none;
  }
}
