
#jump-wrapper{
    height: 45px;
    position: relative;
    margin-bottom: 2rem;
    display:none;
}

#jump-wrapper.active{
    display: block;
}

#jump-container.fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: #fff;
    box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.15);
}

#jumplinks{
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    transition: all 0.3s ease; /* Smooth transition for visual polish */
    max-width: var(--article-container-width);
    max-height: unset;
    margin: 0 auto;
    
}

.fixed #jumplinks{
    padding: 1rem;
}

@media screen and (min-width: 768px) {
    #jumplinks{
        max-height: 45px;
    }

    .fixed #jumplinks{
        padding: 0;
    }
}

#jumplinks ul{
    display: flex;
    flex-direction: row;
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: var(--color-light-grey);
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none; /* For Firefox */
}

#jumplinks ul::-webkit-scrollbar {
    display: none; /* For Chrome, Safari, and Edge */
}

#jumplinks ul li{
    padding: 0.5rem 1rem;
    margin: 2px 0 0 0;
    white-space: nowrap;
    border-width: 0 0 4px 0;
    border-style: solid;
    border-color: transparent;
    user-select: none; /* Standard */
    -webkit-user-select: none; /* Safari/Chrome */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none;
}

#jumplinks ul li.active{
    border-color: var(--color-text-Breaking-Bar)
}

#jumplinks ul li.empty{
    width: 50px;
}

#jumplinks ul li .jumplink{
    text-decoration: none;
    user-select: none; /* Standard */
    -webkit-user-select: none; /* Safari/Chrome */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none;
    -webkit-user-drag: none; /* Disable dragging for Chrome/Safari */
}

#jumplinks .jump-label{
    margin-right: 1rem;
    white-space: nowrap;
}

#jump-wrapper .gradient{
    width: 75px;
    height: 100%;
    position: absolute;
    top: 0;
    right: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
    pointer-events: none;
    display: none;
    align-items: center;
    justify-content: flex-end;
}

#jump-wrapper .gradient.show{
    display: flex;
}

#jump-wrapper .arrow {
    cursor: pointer;
    height: 15px;
    position: absolute;
    width: 15px;
    right: 10px;
    pointer-events: all;
    border: 0px;
    padding: 0px;
    background: none;
}

#jump-wrapper .arrow:hover,
#jump-wrapper .arrow:focus,
#jump-wrapper .arrow:active {
    background: none;
    box-shadow: none;
}
  
#jump-wrapper .arrow-top, .arrow-bottom {
    background-color: var(--main-nav-blue);
    height: 2px;
    left: -5px;
    position: absolute;
    top: 50%;
    width: 100%;
}
  
#jump-wrapper .arrow-top:after, .arrow-bottom:after {
    background-color: var(--color-text-Breaking-Bar);
    content: "";
    height: 100%;
    position: absolute;
    top: 0;
    transition: all 0.15s;
}
  
#jump-wrapper .arrow-top {
    transform: rotate(45deg);
    transform-origin: bottom right;
}
  
#jump-wrapper .arrow-top:after {
    left: 100%;
    right: 0;
    transition-delay: 0s;
}
  
#jump-wrapper .arrow-bottom {
    transform: rotate(-45deg);
    transform-origin: top right;
}
  
#jump-wrapper .arrow-bottom:after {
    left: 0;
    right: 100%;
    transition-delay: 0.15s;
}
  
#jump-wrapper .arrow:hover .arrow-top:after {
    left: 0;
    transition-delay: 0.15s;
}
  
#jump-wrapper .arrow:hover .arrow-bottom:after {
    right: 0;
    transition-delay: 0s;
}

#jump-wrapper .jump-label{
    display: none;
}


@media screen and (min-width: 768px) {

    #jump-wrapper .jump-label{
        display: block;
    }

}