:root {
    --color-card:       #ffffff;
    --color-border:     var(--line);
    --color-text:       #2C3E50;
    --color-text-light: #576574;
    --color-ocean:      #0084B4;
    --card-radius:      12px;
    --shadow-sm:        0 4px 20px rgba(0, 0, 0, 0.05);
    --shadow-lg:        0 24px 60px rgba(16, 30, 46, 0.14);
    --radius-lg:        20px;
}

/* --------------------------------- */
/* Animations */
/* --------------------------------- */

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* --------------------------------- */
/* Page layout */
/* --------------------------------- */

.updates-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 2rem;
    align-items: start;
    max-width: var(--page-max);
    width: 100%;
    margin: 0 auto;
}

@media (max-width: 900px) {
    .updates-layout {
        grid-template-columns: 1fr;
    }
}

/* --------------------------------- */
/* Timeline */
/* --------------------------------- */

.timeline {
    --rail: 0.5rem;       /* where the line runs, from the timeline's left edge */
    --gutter: 2.25rem;    /* room left of the cards */
    --dot-y: 1.95rem;     /* level of each card's date row */
    position: relative;
    padding-left: var(--gutter);
    margin-bottom: 0;
}

/* --------------------------------- */
/* Timeline items */
/* --------------------------------- */

.timeline-item {
    position: relative;
    margin-bottom: 1.2rem;
    animation: fadeInUp 0.5s ease both;
    animation-delay: var(--delay, 0s);
}

.timeline-item:last-child {
    margin-bottom: 0;
}

/* The line, drawn piece by piece from each dot to the next, so it starts at
   the first dot and stops at the last. */
.timeline-item::before {
    content: '';
    position: absolute;
    left: calc(var(--rail) - var(--gutter) - 1px);
    top: var(--dot-y);
    bottom: calc(-1.2rem - var(--dot-y));
    width: 2px;
    background: var(--line-2);
}

.timeline-item:last-child::before { display: none; }

/* Dot on the line, centred on it and level with the card's date */
.timeline-dot {
    position: absolute;
    left: calc(var(--rail) - var(--gutter));
    top: var(--dot-y);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 4px var(--color-bg, #FBF9F4); /* a gap where it meets the line */
    z-index: 1;
}

.timeline-dot.ocean  { background: var(--color-ocean); }
.timeline-dot.palm   { background: var(--color-palm); }
.timeline-dot.sunset { background: var(--color-sunset); }
.timeline-dot.gold   { background: var(--color-gold); }

/* --------------------------------- */
/* Update card */
/* --------------------------------- */

.timeline-card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg, var(--card-radius));
    padding: 1.35rem 1.55rem;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.22s, transform 0.22s;
}

.timeline-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.09);
}

.card-top {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
    flex-wrap: wrap;
}

.tag {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 20px;
}

.tag.new {
    background: rgba(0, 132, 180, 0.12);
    color: var(--color-ocean);
}

.tag.vip {
    background: rgba(226, 172, 63, 0.16);
    color: #8A6418;
}

.date {
    font-size: 0.73rem;
    font-weight: 500;
    color: var(--color-text-light);
}

.timeline-card h2 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 0.45rem;
}

.timeline-card h2 i {
    margin-right: 0.5rem;
    font-size: 0.92em;
}

.timeline-card p {
    font-size: 0.875rem;
    color: var(--color-text-light);
    line-height: 1.65;
    margin: 0 0 0.6rem;
}

.timeline-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
}

.timeline-card ul li {
    font-size: 0.84rem;
    color: var(--color-text-light);
    padding-left: 1.1rem;
    position: relative;
    line-height: 1.55;
}

.timeline-card ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--color-ocean);
    font-size: 0.7rem;
    top: 0.15em;
}

/* --------------------------------- */
/* Sidebar column — compat + sources */
/* --------------------------------- */

.updates-side {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    animation: fadeInUp 0.5s 0.15s ease both;
}

.compat-card {
    background: #E9F7EB;
    border: 1px solid #B8E4C2;
    border-left: 4px solid var(--color-palm);
    border-radius: var(--card-radius);
    padding: 1.1rem 1.4rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.compat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(16, 172, 132, 0.15);
    color: #0B6B52;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.compat-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #0B6B52;
    margin: 0 0 0.2rem;
}

.compat-value {
    font-size: 0.9rem;
    font-weight: 700;
    color: #155724;
    margin: 0;
}

.roadmap-card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--card-radius);
    padding: 1.1rem 1.4rem;
    box-shadow: var(--shadow-sm);
}

.roadmap-card h3 {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--color-text-light);
    margin: 0 0 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.roadmap-card h3 i {
    color: var(--color-sunset);
}

.roadmap-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.roadmap-list li {
    font-size: 0.84rem;
    color: var(--color-text-light);
    line-height: 1.5;
    padding-left: 1.1rem;
    position: relative;
}

.roadmap-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    border: 1.5px solid var(--color-sunset);
}

.sources-card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--card-radius);
    padding: 1.1rem 1.4rem;
    box-shadow: var(--shadow-sm);
}

.sources-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--color-text-light);
    margin: 0 0 0.6rem;
}

.sources-label i {
    margin-right: 0.35rem;
}

.sources-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.sources-card ul li a {
    font-size: 0.83rem;
    color: var(--color-ocean);
    text-decoration: none;
    transition: color 0.18s;
}

.sources-card ul li a:hover {
    color: var(--color-palm);
    text-decoration: underline;
}
