/* ===== News and Updates: timeline in the home page's right-hand column =====
   Markup comes from _static/news-sidebar.js, built from docs/news.md. */

.news-panel {
    margin: 1.6rem 0 1.5rem;
    padding: 0.95rem 1rem 0.35rem;
    border: 1px solid var(--color-background-border);
    border-radius: 12px;
    background:
        linear-gradient(180deg, rgba(0, 102, 204, 0.05), rgba(0, 102, 204, 0) 6rem),
        var(--color-background-primary);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.news-panel-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--color-background-border);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-foreground-primary);
}

.news-panel-title::before {
    content: "";
    width: 4px;
    height: 1.05em;
    border-radius: 2px;
    background: var(--color-brand-primary);
}

.news-timeline {
    list-style: none;
    margin: 0;
    padding: 0 0 0 1.1rem;
}

.news-entry {
    position: relative;
    margin: 0;
    padding: 0 0 0.85rem;
}

/* the dot */
.news-entry::before {
    content: "";
    position: absolute;
    top: 0.2rem;
    left: -1.1rem;
    width: 0.6rem;
    height: 0.6rem;
    box-sizing: border-box;
    border: 2px solid var(--color-brand-primary);
    border-radius: 50%;
    background: var(--color-background-primary);
}

/* the rail between one dot and the next */
.news-entry:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 0.9rem;
    bottom: -0.1rem;
    left: calc(-1.1rem + 0.3rem - 1px);
    width: 2px;
    border-radius: 1px;
    background: var(--color-background-border);
}

/* the latest item */
.news-entry:first-child::before {
    background: var(--color-brand-primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.18);
}

.news-when {
    display: block;
    margin-bottom: 0.1rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1.2;
    text-transform: uppercase;
    color: var(--color-brand-primary);
}

.news-what {
    font-size: 0.82rem;
    line-height: 1.45;
    color: var(--color-foreground-secondary);
}

.news-entry:first-child .news-what {
    color: var(--color-foreground-primary);
}

.news-what p {
    margin: 0;
}

.news-what a {
    color: var(--color-brand-content);
    text-decoration: none;
    border-bottom: 1px solid currentColor;
}
