/* DESKTOP (default): fixed right, middle of page */
.timeline-navigation {
    display: block;
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 100px;
    z-index: 999999999;
    padding: 15px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.timeline-navigation--inner {
    width: 100%;
    background: none;
    text-align: center;
    line-height:25px;
}

.timeline-nav-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
}

.timeline-nav-list {
    width: 100%;
    list-style: none;
    padding: 0;
    margin: 0;
}

.timeline-nav-list li {
    margin-bottom: 2px;
    position: relative;
    padding-bottom: 5px;
}

.timeline-nav-list li:not(:last-child)::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 10%;
    width: 80%;
    height: 1px;
    background-color: #ccc;
}

.timeline-nav-list li a {
    text-decoration: none;
    color: #000;
    display: block;
    padding: 4px 0;
}

/* Default: show list, hide select */
.timeline-nav-list {
    display: block;
}

.timeline-nav-select {
    display: none;
    width: 100%;
    padding: 8px;
    font-size: 16px;
}

/* MOBILE: sticky top, full width */
@media (max-width: 767px) {
 
    .timeline-navigation {
        
        position: sticky;
        top: 0;
        left: 0;
        right: 0;
        width: calc(100vw + 0px) !important;
         max-width: calc(100vw + 0px) !important;
        margin: 0 -20px; /* REMOVE margin hack */

        transform: none;
        padding: 10px 15px;
        box-sizing: border-box;
        background: #fff;
        z-index: 999999999;
        display: flex;
        justify-content: center;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }
 


    .timeline-nav-list {
        display: none;
    }

    .timeline-nav-select {
        display: block;
    }
}



.theme-content .timeline-row:nth-of-type(3n+1) {
  background: linear-gradient(to bottom, #ECF1EA 0%, #F5F7F5 100%);
}

.theme-content .timeline-row:nth-of-type(3n+2) {
  background: linear-gradient(to bottom, #F2EED1 0%, #F9F7E6 100%);
}

.theme-content .timeline-row:nth-of-type(3n+3) {
  background: linear-gradient(to bottom, #ECE8E4 0%, #F6F4F2 100%);
}

