/* ============================================================
   Page Section Nav — floating "next section" button
   ============================================================ */

   .page-section-nav {
    position: fixed;
    right: 2rem;
    bottom: 2rem;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Invisible 44px hit area for touch-target size, matching the
       SVG slider's own nav buttons — no visible circle/background. */
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

/*
 * Same convention as .site-hud in custom.css: dark text/icon by
 * default (matches --wp--preset--color--contrast, the theme's default
 * text colour), flipped to white via .is-dark — toggled in JS based
 * on whether the active section carries has-contrast-background-color.
 * Same colour and easing as .site-hud.is-dark for visual consistency.
 */
.page-section-nav svg {
    display: block;
    width: 18px;
    height: auto;
    color: var(--wp--preset--color--contrast, #000);
    transition: color 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.page-section-nav.is-dark svg {
    color: #fff;
}

.page-section-nav:hover,
.page-section-nav:focus-visible {
    opacity: 0.6;
}

.page-section-nav:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px #1d1d1b;
    border-radius: 50%;
}

/*
 * Hidden on the last section. The button is also `disabled` in JS at
 * the same time — opacity/pointer-events alone would hide it visually
 * but leave a focusable, inert button reachable via keyboard.
 */
.page-section-nav.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.page-section-nav:disabled {
    cursor: default;
}

@media (max-width: 900px) {
    .page-section-nav {
        right: 1rem;
        bottom: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .page-section-nav {
        transition: none !important;
    }
}