.notendop-timeline-items {
    display: flex;
    flex-direction: column;
}
.timeline-time {
    font-size: 1rem;
    white-space: nowrap;
    padding: 0.2rem 0.5rem;
    background-color: #f0f0f0;
    width: 60px;
    text-align: center;
}

.timeline-source-tag {
    white-space: nowrap;
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border: 1px solid #000;
    font-size: 0.8rem;
    border-radius: 0.25rem;
    width: fit-content;
}

.timeline-item {
    display: grid;
    grid-template-columns: 60px 1fr auto;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.timeline-item:hover .timeline-title a {
    text-decoration: underline;
}

.timeline-item .timeline-title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.timeline-item .timeline-title a {
    text-decoration: none;
}

.timeline-date-header {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #2563eb;
    border: 2px solid #1d4ed8;
    border-radius: 0.375rem;
    text-decoration: none;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.button:hover {
    background-color: #1d4ed8;
    border-color: #1d4ed8;
}

@media (max-width: 768px) {
    .timeline-item {
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
        grid-template-areas: 
            "title title"
            "time source";
        gap: 0.25rem 0.5rem;
    }
    .timeline-item .timeline-time {
        grid-area: time;
        font-size: 0.8rem;
    }
    .timeline-item .timeline-title {
        grid-area: title;
        overflow: visible;
        white-space: normal;
        font-size: 1rem;
    }
    .timeline-item .timeline-source-tag {
        grid-area: source;
        font-size: 0.8rem;
    }
}

.notendop-timeline-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    margin: 1rem 0;
}

.notendop-timeline-filter-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    width: auto;
}