/* KTheme GSAP fullpage navigation: runtime is opt-in and desktop-only. */
.ktheme-gsap-fullpage-navigation {
    position: fixed;
    z-index: 1001;
    top: 0;
    right: clamp(16px, 2.2vw, 36px);
    display: flex;
    width: 28px;
    height: 100dvh;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 24px;
    margin: 0;
    padding: 0;
    isolation: isolate;
}

/* A paired white/black hairline remains legible over either page surface. */
.ktheme-gsap-fullpage-navigation::before {
    position: absolute;
    z-index: 0;
    top: 0;
    left: 50%;
    width: 1px;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 1px 0 rgba(8, 9, 10, 0.08), 0 0 2px rgba(255, 255, 255, 0.06);
    content: '';
    transform: translateX(-50%);
}

.ktheme-gsap-fullpage-navigation__link {
    position: relative;
    z-index: 1;
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    color: inherit;
    text-decoration: none;
}

.ktheme-gsap-fullpage-navigation__link::before {
    box-sizing: border-box;
    width: 8px;
    height: 8px;
    border: 1px solid #08090A;
    border-radius: 50%;
    background: #FFFFFF;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.52), 0 0 0 2px rgba(8, 9, 10, 0.16);
    content: '';
    transition: width 0.18s ease, height 0.18s ease, border-width 0.18s ease, transform 0.18s ease;
}

.ktheme-gsap-fullpage-navigation__link:hover::before {
    transform: scale(1.16);
}

.ktheme-gsap-fullpage-navigation__link[aria-current="location"]::before {
    width: 14px;
    height: 14px;
    border-width: 2px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.7), 0 0 0 2px rgba(8, 9, 10, 0.22);
}

.ktheme-gsap-fullpage-navigation__link:focus-visible {
    outline: 1px solid #FFFFFF;
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(8, 9, 10, 0.8);
}

@media (max-width: 767.98px) {
    .ktheme-gsap-fullpage-navigation {
        display: none;
    }

    .ktheme-gsap-fullpage-root .ktheme-gsap-section {
        min-block-size: max(100svh, var(--ktheme-gsap-mobile-content-height, 100svh)) !important;
    }

    .ktheme-gsap-fullpage-root .ktheme-gsap-section > .e-con-inner {
        /* Mobile sections are normal-flow containers, so their inner row must not collapse to 100vh. */
        flex: 0 0 auto !important;
        min-block-size: var(--ktheme-gsap-mobile-content-height, auto) !important;
    }

    .ktheme-gsap-fullpage-root .ktheme-gsap-section--mobile-overflow > .e-con-inner {
        justify-content: flex-start !important;
    }

    .ktheme-gsap-fullpage-root .ktheme-gsap-section > .elementor-element,
    .ktheme-gsap-fullpage-root .ktheme-gsap-section > .e-con-inner > .elementor-element {
        /* Elementor flex children must contribute their intrinsic height in mobile flow. */
        flex-shrink: 0;
        min-block-size: max-content;
        block-size: max-content;
    }
    .ktheme-gsap-fullpage-root .ktheme-gsap-section .elementor-widget {
        min-block-size: var(--ktheme-gsap-mobile-widget-height, auto) !important;
    }


}

@media (prefers-reduced-motion: reduce) {
    .ktheme-gsap-fullpage-navigation {
        display: none;
    }

    .ktheme-gsap-fullpage-navigation__link::before {
        transition: none;
    }
}
