/* event log — sticky timeline rail with tick marks, repository masthead, numbered records */
.event-log__tick::before {
    content: "";
    position: absolute;
    top: 0.65rem;
    left: 0;
    width: 1rem;
    border-top: 2px solid currentColor;
    opacity: 0.5;
}

/* Wide screens: a vertical rail of ticks, the chip frame and bar stay off. */
@media (min-width: 992px) {
    .event-log__chip {
        border-width: 0 !important;
        border-radius: 0 !important;
    }

    .event-log__bar {
        display: none;
    }
}

/* Phones and tablets: the rail turns into one row of framed chips that scrolls sideways. */
@media (max-width: 991.98px) {
    .event-log__track {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 0.5rem !important;
        overflow-x: auto;
        border-left-width: 0 !important;
        padding-bottom: 0.25rem;
        scroll-snap-type: x proximity;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }

    .event-log__tick {
        flex: 0 0 auto;
        padding-left: 0 !important;
        scroll-snap-align: start;
    }

    .event-log__tick::before {
        display: none;
    }

    .event-log__chip {
        flex-direction: row !important;
        align-items: baseline !important;
        gap: 0.5rem !important;
        white-space: nowrap;
        padding: 0.45rem 0.75rem 0.45rem 1rem;
        overflow: hidden;
    }

    .event-log__bar {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        width: 3px;
    }
}

.event-log__record,
.event-log__mast {
    scroll-margin-top: 2rem;
}

/* The rail links glide to their record instead of jumping; off for visitors who limit motion. */
@media (prefers-reduced-motion: no-preference) {
    html:has(.event-log) {
        scroll-behavior: smooth;
    }
}


/* legal pages — lists, sub-headings, notes and links inside the event-log cards */
.legal-list { list-style: disc; padding-left: 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; }
.legal-list li::marker { color: #85bd7a; }
.legal-subtitle { margin-top: 0.5rem !important; }
.legal-note { border-left: 4px solid #f0a020; padding-left: 1rem; font-style: italic; }
.legal-link { color: #a9d39f; text-decoration: underline; text-underline-offset: 2px; }
.legal-link:hover { color: #cfe6c9; }
