/* Article Next Pages v2.1.0 — scoped to the post pagination only. */
.anp-f5,
.anp-f5 * { box-sizing: border-box; }
.anp-f5 {
    --anp-ink: #1b2626;
    --anp-gold: #ffbd31;
    --anp-green: #7ed13d;
    container-type: inline-size;
    clear: both;
    display: grid;
    width: 100%;
    grid-template-columns: max-content minmax(0, 1fr) max-content;
    align-items: center;
    justify-content: space-between;
    gap: 14px 12px;
    margin: 36px auto 20px;
    padding: 28px 4px 4px;
    border-top: 1px solid #e9edf1;
    font-family: inherit;
    text-align: center;
    isolation: isolate;
}
.anp-f5 .anp-f5__action,
.anp-f5 .anp-f5__action:visited {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 64px;
    padding: 5px 15px 5px 5px;
    border: 0;
    border-radius: 100px;
    color: var(--anp-ink);
    font-size: clamp(15px, 1.6vw, 22px);
    font-weight: 900;
    letter-spacing: .015em;
    text-decoration: none;
    text-transform: uppercase;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 5px 13px rgba(20, 35, 40, .12);
    transition: transform .25s cubic-bezier(.22, 1.2, .36, 1), filter .25s ease, box-shadow .25s ease;
    overflow: visible;
}
.anp-f5 .anp-f5__prev { background: linear-gradient(145deg, #ffcf54, #ffaf1c); box-shadow: 0 5px 16px rgba(235, 150, 3, .22); }
.anp-f5 .anp-f5__next { background: linear-gradient(145deg, #a0df5b, #6fc832); padding: 5px 5px 5px 16px; box-shadow: 0 5px 16px rgba(91, 177, 39, .20); }
.anp-f5 .anp-f5__word { position: relative; z-index: 1; }
.anp-f5 .anp-f5__circle {
    position: relative;
    display: inline-grid;
    place-items: center;
    flex: 0 0 54px;
    width: 54px;
    height: 54px;
    background: rgba(255,255,255,.18);
    border: 3px solid #d68b00;
    color: #1c292c;
    border-radius: 50%;
    transition: transform .3s cubic-bezier(.2, 1.4, .3, 1), background-color .3s ease;
}
.anp-f5 .anp-f5__next .anp-f5__circle { border-color: #409a20; }
.anp-f5 .anp-f5__circle::after {
    position: absolute;
    content: '';
    inset: -8px;
    border: 3px solid #dc930a;
    border-right-color: transparent;
    border-radius: 50%;
    pointer-events: none;
    transition: transform .42s ease;
}
.anp-f5 .anp-f5__next .anp-f5__circle::after { border-color: #4aa721; border-left-color: transparent; border-right-color: #4aa721; }
.anp-f5 .anp-f5__circle svg { width: 39px; height: 39px; display: block; }
.anp-f5 a.anp-f5__action:hover,
.anp-f5 a.anp-f5__action:focus-visible {
    transform: translateY(-4px) scale(1.045);
    filter: brightness(1.04) saturate(1.09);
}
.anp-f5 a.anp-f5__prev:hover,
.anp-f5 a.anp-f5__prev:focus-visible { box-shadow: 0 12px 26px rgba(225, 139, 5, .34); }
.anp-f5 a.anp-f5__next:hover,
.anp-f5 a.anp-f5__next:focus-visible { box-shadow: 0 12px 26px rgba(73, 166, 26, .32); }
.anp-f5 a.anp-f5__action:hover .anp-f5__circle,
.anp-f5 a.anp-f5__action:focus-visible .anp-f5__circle {
    background: rgba(255,255,255,.46);
    transform: scale(1.06);
}
.anp-f5 a.anp-f5__prev:hover .anp-f5__circle::after { transform: rotate(-44deg); }
.anp-f5 a.anp-f5__next:hover .anp-f5__circle::after { transform: rotate(44deg); }
.anp-f5 a.anp-f5__prev:hover svg { animation: anp-chevron-left .52s ease-in-out infinite alternate; }
.anp-f5 a.anp-f5__next:hover svg { animation: anp-chevron-right .52s ease-in-out infinite alternate; }
@keyframes anp-chevron-left { from { transform: translateX(2px); } to { transform: translateX(-3px); } }
@keyframes anp-chevron-right { from { transform: translateX(-2px); } to { transform: translateX(3px); } }
.anp-f5 .anp-f5__disabled { opacity: .49; cursor: not-allowed; box-shadow: none; }
.anp-f5 .anp-f5__numbers {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: clamp(5px, .8vw, 12px);
    min-width: 0;
}
.anp-f5 .anp-f5__number,
.anp-f5 .anp-f5__number:visited {
    display: inline-grid;
    place-items: center;
    flex: 0 1 61px;
    width: 61px;
    min-width: 0;
    height: 67px;
    padding: 4px 0;
    border: 2px solid #263133;
    border-radius: 13px;
    background: #fff;
    color: #162427;
    font-size: clamp(21px, 2.5vw, 32px);
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 3px 0 rgba(31, 43, 44, .14);
    transition: transform .22s cubic-bezier(.2, 1.5, .34, 1), border-color .22s ease, box-shadow .22s ease, background .22s ease, color .22s ease;
}
.anp-f5 a.anp-f5__number:hover,
.anp-f5 a.anp-f5__number:focus-visible {
    transform: translateY(-5px) scale(1.08);
    color: #171f22;
    border-color: #ecaa18;
    background: #fff7e3;
    box-shadow: 0 9px 19px rgba(239, 168, 32, .27);
}
.anp-f5 .anp-f5__current {
    background: linear-gradient(145deg, #283b43, #14262a);
    border-color: #1d3337;
    color: #fff;
    box-shadow: 0 7px 18px rgba(14, 33, 40, .22);
    cursor: default;
}
.anp-f5 .anp-f5__status {
    grid-column: 1 / -1;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    color: #64707c;
    letter-spacing: .02em;
}
.anp-f5 a:focus-visible { outline: 3px solid #1677ee; outline-offset: 4px; }
@container (max-width: 630px) {
    .anp-f5 { gap: 20px 8px; grid-template-columns: 1fr 1fr; padding-top: 22px; }
    .anp-f5__numbers { grid-column: 1 / -1; grid-row: 1; }
    .anp-f5 .anp-f5__prev { grid-column: 1; grid-row: 2; justify-self: start; }
    .anp-f5 .anp-f5__next { grid-column: 2; grid-row: 2; justify-self: end; }
    .anp-f5 .anp-f5__status { grid-row: 3; }
    .anp-f5 .anp-f5__number { flex-basis: 60px; }
}
@container (max-width: 380px) {
    .anp-f5 .anp-f5__number { height: 53px; flex-basis: 51px; font-size: 23px; border-radius: 10px; }
    .anp-f5 .anp-f5__numbers { gap: 6px; }
    .anp-f5 .anp-f5__action { min-height: 53px; font-size: 16px; }
    .anp-f5 .anp-f5__circle { width: 44px; height: 44px; flex-basis: 44px; }
    .anp-f5 .anp-f5__circle svg { width: 32px; height: 32px; }
}
@media (prefers-reduced-motion: reduce) {
    .anp-f5 *, .anp-f5 *::after { animation: none !important; transition: none !important; }
}

/* v2.1 Optional Continue Reading CTA and opt-in theme-level Read More hiding. */
.anp-continue-wrap { clear: both; margin: 24px auto 28px; text-align: center; }
.anp-continue-button, .anp-continue-button:visited { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 58px; padding: 14px 30px; border-radius: 999px; background: linear-gradient(135deg, #167aff, #054bd8); color: #fff; text-decoration: none; font-weight: 800; font-size: 18px; box-shadow: 0 10px 24px rgba(0,75,210,.20); transition: transform .2s ease, box-shadow .2s ease; }
.anp-continue-button:hover, .anp-continue-button:focus-visible { transform: translateY(-3px); color: #fff; box-shadow: 0 13px 30px rgba(0,75,210,.32); }
.anp-continue-done { display: inline-block; color: #64707c; font-size: 15px; font-weight: 600; }
.anp-continue-button:focus-visible { outline: 3px solid #f6b521; outline-offset: 3px; }
/* Strict direct-child selectors avoid hiding ordinary text links within the story. */
body.anp-hide-theme-continue.single-post .entry-content > a.more-link,
body.anp-hide-theme-continue.single-post .entry-content > .read-more,
body.anp-hide-theme-continue.single-post .entry-content > .continue-reading,
body.anp-hide-theme-continue.single-post .entry-content > .post-read-more { display: none !important; }
@media (prefers-reduced-motion: reduce) { .anp-continue-button { transition: none; } }
