/* ==========================================================================
   DCM INSTITUTIONAL TIMELINE — AUDIT LOG ARCHITECTURE
   ========================================================================== */

.timeline-container {
    max-width: 900px;
    margin: 100px auto 60px;
    padding: 0 24px;
    position: relative;
}

/* ─── THE CHRONO RAIL ──────────────────────────────────────────── */
.timeline-rail {
    position: absolute;
    left: 50px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, 
        rgba(59, 130, 246, 0) 0%, 
        var(--term-border) 15%, 
        var(--term-border) 85%, 
        rgba(59, 130, 246, 0) 100%);
}

@media (max-width: 600px) {
    .timeline-rail { left: 20px; }
}

/* ─── TIMELINE BLOCK (YEAR GROUP) ──────────────────────────────── */
.timeline-event {
    position: relative;
    margin-bottom: 48px;
    padding-left: 90px; /* Space for date and rail node */
}

@media (max-width: 600px) {
    .timeline-event { padding-left: 50px; }
}

/* The chronological node (the circle on the rail) */
.timeline-node {
    position: absolute;
    left: 51px; /* Center aligned on 2px rail */
    top: 6px;
    width: 12px;
    height: 12px;
    background: #1e293b;
    border: 2px solid var(--term-border);
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 2;
    transition: all 0.2s ease;
}

.timeline-event:hover .timeline-node {
    border-color: var(--term-blue);
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.6);
    background: var(--term-blue);
}

/* The floating date label */
.timeline-year-label {
    position: absolute;
    left: 0;
    top: 2px;
    width: 40px;
    text-align: right;
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: -0.5px;
}

@media (max-width: 600px) {
    .timeline-year-label {
        position: relative;
        text-align: left;
        width: auto;
        display: block;
        margin-bottom: 8px;
        color: var(--term-blue);
    }
}

/* ─── EVENT CARD BODY ──────────────────────────────────────────── */
.event-card {
    background: var(--term-panel-bg);
    border: 1px solid var(--term-border);
    border-radius: 10px;
    padding: 20px 24px;
    position: relative;
    transition: border-color 0.2s, transform 0.2s;
}

.event-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateX(4px);
}

/* Card Header elements */
.event-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.event-category-badge {
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 4px;
}

.cat-pilot { background: rgba(245, 158, 11, 0.12); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.2); }
.cat-infra { background: rgba(59, 130, 246, 0.12); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.2); }
.cat-regulation { background: rgba(16, 185, 129, 0.12); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.2); }
.cat-production { background: rgba(139, 92, 246, 0.12); color: #a78bfa; border: 1px solid rgba(139, 92, 246, 0.2); }

.event-month {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--term-text-sub);
    font-weight: 500;
}

/* Typography */
.event-title {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    line-height: 1.4;
    margin-bottom: 8px;
}

.event-desc {
    font-size: 13px;
    color: var(--term-text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
}

/* Institutional takeaways */
.event-takeaway {
    font-size: 11px;
    font-style: italic;
    color: var(--term-text-sub);
    background: rgba(255, 255, 255, 0.02);
    padding: 10px 14px;
    border-radius: 6px;
    border-left: 2px solid var(--term-border);
}
.event-card:hover .event-takeaway {
    border-left-color: rgba(255,255,255,0.3);
}

/* ─── SYSTEM STATE BANNER ──────────────────────────────────────── */
.timeline-state-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    background: rgba(59, 130, 246, 0.1);
    color: var(--term-blue);
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 24px;
}
