/* assets/css/components/pagination.css
   Core pagination（the_posts_pagination）
   記事/固定ページでは読み幅に揃える
================================================ */

@layer comp {

  /* 読み幅に吸着（記事・固定ページのみ） */
  .single .navigation.pagination,
  .page  .navigation.pagination{
    max-width: var(--cd-read-width);
    margin-inline: auto;
    padding-inline: 0;
  }

  .navigation.pagination{
    margin: 28px 0 22px;
  }

  .navigation.pagination .nav-links{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
  }

  .navigation.pagination .page-numbers{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 10px;
    border: 1px solid var(--cd-border);
    background: color-mix(in oklab, var(--cd-bg), white 6%);
    color: var(--cd-muted);
    text-decoration: none;
    line-height: 1;
    font-size: 14px;
  }

  .navigation.pagination .page-numbers:hover{
    background: color-mix(in oklab, var(--cd-bg), white 9%);
    border-color: color-mix(in oklab, var(--cd-accent), var(--cd-border) 60%);
    color: var(--cd-accent);
  }

  .navigation.pagination .page-numbers.current{
    background: var(--cd-accent);
    color: #000;
    border-color: transparent;
    cursor: default;
  }

  .navigation.pagination .page-numbers.dots{
    background: transparent;
    border: 0;
    min-width: auto;
    padding: 0 2px;
    opacity: .7;
  }

  .navigation.pagination .page-numbers.prev,
  .navigation.pagination .page-numbers.next{
    padding: 0 12px;
  }

  .navigation.pagination .page-numbers:focus-visible{
    outline: 2px solid var(--cd-accent);
    outline-offset: 2px;
  }

} /* @layer comp */
