.news-timeline-shell {
    width: min(94vw, 1040px);
    margin: 0 auto 56px;
}

.news-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 0 0 32px;
}

.news-filter {
    padding: 9px 16px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.18);
    color: #fff;
    font: inherit;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.news-filter:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.45);
}

.news-filter[aria-pressed="true"] {
    background: rgba(160, 160, 160, 0.24);
    border-color: rgba(255, 255, 255, 0.52);
}

.news-timeline {
    display: grid;
    gap: 26px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.timeline-entry {
    position: relative;
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.timeline-entry[hidden] {
    display: none;
}

.timeline-entry::before {
    position: absolute;
    top: 26px;
    bottom: -34px;
    left: 164px;
    width: 1px;
    background: linear-gradient(rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.04));
    content: '';
}

.timeline-entry:last-child::before {
    display: none;
}

.timeline-date {
    padding-top: 24px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.95rem;
    text-align: right;
}

.news-timeline-card {
    position: relative;
    isolation: isolate;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--site-card-border);
    border-radius: var(--site-card-radius);
    background: rgba(0, 0, 0, 0.08);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition: border-color 0.25s ease, background-color 0.25s ease;
}

.news-timeline-card::after {
    position: absolute;
    z-index: 0;
    inset: 0;
    background: url('cobra.webp') no-repeat center center fixed;
    background-size: cover;
    content: '';
    opacity: 0.92;
    pointer-events: none;
}

.news-timeline-card::before {
    position: absolute;
    top: 23px;
    left: -21px;
    z-index: 2;
    width: 12px;
    height: 12px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    background: #171820;
    content: '';
}

.news-timeline-card[open],
.news-timeline-card:hover {
    border-color: rgba(255, 255, 255, 0.52);
}

.news-timeline-summary {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 22px;
    cursor: pointer;
    list-style: none;
}

.news-timeline-summary::-webkit-details-marker {
    display: none;
}

.news-timeline-summary:focus-visible,
.news-filter:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.news-timeline-image {
    width: 68px;
    height: 68px;
    flex: 0 0 68px;
    border-radius: 16px;
    object-fit: cover;
}

.news-timeline-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
}

body .news-timeline-summary .news-category {
    margin: 0 0 8px;
    padding: 4px 9px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.78rem;
    font-weight: 600 !important;
}

body .news-timeline-summary .news-timeline-title {
    color: #fff;
    font-size: clamp(1.25rem, 2.4vw, 1.65rem);
    font-weight: 700 !important;
    line-height: 1.3;
}

.news-timeline-excerpt {
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.6;
}

body .news-timeline-summary .news-timeline-hint {
    margin-top: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 600 !important;
}

.news-timeline-content {
    position: relative;
    z-index: 1;
    padding: 0 22px 24px 110px;
}

.news-timeline-card:not([open]) > .news-timeline-content {
    display: none;
}

.news-timeline-card[open] > .news-timeline-content {
    display: block;
}

.news-article-body {
    color: rgba(255, 255, 255, 0.88);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.75;
}

.news-article-body h3 {
    margin: 24px 0 8px;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
}

.news-article-body h3:first-child {
    margin-top: 0;
}

.news-article-body p {
    margin: 0 0 16px;
}

.news-article-body p:last-child {
    margin-bottom: 0;
}

.news-empty-state {
    padding: 24px;
    border: 1px solid var(--site-card-border);
    border-radius: var(--site-card-radius);
    color: #fff;
    text-align: center;
}

@media (max-width: 640px) {
    .news-timeline {
        gap: 20px;
    }

    .timeline-entry {
        display: block;
        padding-left: 22px;
    }

    .timeline-entry::before {
        top: 17px;
        bottom: -26px;
        left: 5px;
    }

    .timeline-date {
        display: block;
        padding: 0 0 8px;
        text-align: left;
    }

    .news-timeline-card::before {
        top: 19px;
        left: -24px;
        width: 10px;
        height: 10px;
    }

    .news-timeline-summary {
        gap: 14px;
        padding: 16px;
    }

    .news-timeline-image {
        width: 52px;
        height: 52px;
        flex-basis: 52px;
        border-radius: 12px;
    }

    .news-timeline-content {
        padding: 0 16px;
    }

    .news-timeline-card[open] > .news-timeline-content {
        padding-bottom: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .news-filter,
    .news-timeline-card {
        transition: none;
    }
}
