.odis-timeline-modern {
    --odis-blue: #233586;
    --odis-blue-dark: #171f5f;
    --odis-surface: #ffffff;
    --odis-muted-surface: #f5f7fb;
    --odis-border: #d9deea;
    --odis-text: #1f2937;
    --odis-muted-text: #5f6b7a;
    color: var(--odis-text);
    max-width: var(--odis-max-width, 1180px);
    margin: 0 auto;
    padding: 24px 16px;
}

.odis-timeline-modern *,
.odis-timeline-modern *::before,
.odis-timeline-modern *::after {
    box-sizing: border-box;
}

.odis-timeline-modern button,
.odis-timeline-modern a {
    font: inherit;
}

.odis-timeline-modern button:focus-visible,
.odis-timeline-modern a:focus-visible,
.odis-timeline-modal__dialog:focus-visible {
    outline: 3px solid rgba(35, 53, 134, 0.35);
    outline-offset: 3px;
}

.odis-timeline-link-button,
.odis-timeline-load-more {
    border: 1px solid var(--odis-blue);
    border-radius: 6px;
    background: var(--odis-blue);
    color: #fff;
    cursor: pointer;
    font-weight: 700;
}

.odis-timeline-link-button {
    padding: 8px 12px;
}

.odis-timeline-load-more {
    margin-top: 14px;
    padding: 10px 16px;
}

.odis-timeline-link-button:hover,
.odis-timeline-load-more:hover {
    background: var(--odis-blue-dark);
}

.odis-timeline-compact-card {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 16px;
    min-height: 132px;
    padding: 12px;
    border: 1px solid var(--odis-border);
    border-left: 5px solid var(--odis-event-color, var(--odis-blue));
    border-radius: 8px;
    background: var(--odis-surface);
    box-shadow: 0 8px 18px rgba(17, 24, 39, 0.08);
}

.odis-timeline-compact-card__media {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 108px;
    overflow: hidden;
    border-radius: 6px;
    background: #e9edf5;
    color: var(--odis-blue);
}

.odis-timeline-compact-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.odis-timeline-compact-card__media span {
    font-size: 28px;
}

.odis-timeline-compact-card__body {
    min-width: 0;
}

.odis-timeline-compact-card__meta {
    color: var(--odis-blue);
    font-size: 13px;
    font-weight: 800;
}

.odis-timeline-compact-card h3 {
    margin: 5px 0 6px;
    color: var(--odis-text);
    font-size: 18px;
    line-height: 1.25;
}

.odis-timeline-compact-card p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: var(--odis-muted-text);
    font-size: 14px;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.odis-timeline-compact-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
    margin-top: 12px;
    text-align: right;
}

.odis-timeline-compact-card__actions a {
    color: var(--odis-blue);
    font-weight: 700;
    text-decoration: none;
}

.odis-timeline-compact-card__actions a:hover {
    text-decoration: underline;
}

.odis-timeline-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
}

.odis-timeline-modal.is-open {
    display: block;
}

.odis-timeline-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 16, 32, 0.58);
}

.odis-timeline-modal__dialog {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(720px, calc(100vw - 28px));
    max-height: min(82vh, 820px);
    overflow: auto;
    transform: translate(-50%, -50%);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.odis-timeline-modal__close {
    position: sticky;
    top: 10px;
    float: right;
    z-index: 1;
    width: 38px;
    height: 38px;
    margin: 10px;
    border: 1px solid var(--odis-border);
    border-radius: 50%;
    background: #fff;
    color: var(--odis-text);
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
}

.odis-timeline-modal__content {
    padding: 24px;
}

.odis-timeline-modal__image {
    margin: -24px -24px 20px;
    background: #edf1f7;
}

.odis-timeline-modal__image img {
    display: block;
    width: 100%;
    max-height: 360px;
    object-fit: cover;
}

.odis-timeline-modal__date {
    color: var(--odis-blue);
    font-size: 14px;
    font-weight: 800;
}

.odis-timeline-modal__content h2 {
    margin: 8px 0 14px;
    color: var(--odis-text);
    font-size: 26px;
    line-height: 1.2;
}

.odis-timeline-modal__text {
    color: var(--odis-text);
    font-size: 16px;
    line-height: 1.65;
}

.odis-timeline-modal__button {
    display: inline-flex;
    margin-top: 16px;
    padding: 10px 16px;
    border-radius: 6px;
    background: var(--odis-blue);
    color: #fff;
    font-weight: 800;
    text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {
    .odis-timeline-modern *,
    .odis-timeline-modal__dialog {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

@media (max-width: 680px) {
    .odis-timeline-modern {
        padding-inline: 12px;
    }

    .odis-timeline-compact-card {
        grid-template-columns: 88px minmax(0, 1fr);
        gap: 12px;
        min-height: 112px;
    }

    .odis-timeline-compact-card__media {
        min-height: 88px;
    }

    .odis-timeline-compact-card h3 {
        font-size: 16px;
    }

    .odis-timeline-compact-card p {
        -webkit-line-clamp: 3;
    }

    .odis-timeline-compact-card__actions {
        justify-content: flex-start;
        text-align: left;
    }

    .odis-timeline-modal__dialog {
        top: auto;
        bottom: 0;
        left: 0;
        width: 100%;
        max-height: 88vh;
        transform: none;
        border-radius: 10px 10px 0 0;
    }
}
