.duri-document [data-history-root] [hidden] {
    display: none;
}

.duri-document .history-timeline {
    --history-year-width: 90px;
}

.duri-document .history-timeline::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 var(--history-year-width);
    width: 2px;
    background: #e0e0e0;
}

.duri-document [data-history-ready] .history-timeline:has(> [hidden]) .timeline-item {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
    animation-delay: 0s;
}

.duri-document .history-timeline .event-content {
    white-space: pre-line;
    overflow-wrap: anywhere;
}

@media (max-width: 768px) {
    .duri-document .history-timeline { --history-year-width: 70px; }
}

@media (max-width: 480px) {
    .duri-document .history-timeline { --history-year-width: 50px; }
}

@media (prefers-reduced-motion: reduce) {
    .duri-document .history-timeline .timeline-item {
        animation: none;
        opacity: 1;
        transform: none;
    }
}
