/* Shared timeline tokens */
.timeline .track-label {
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
    font-weight: 400;
}

.timeline .track-green,
.timeline .tl-green {
    color: var(--accent-green-dark);
}

.timeline .track-blue,
.timeline .tl-purple {
    color: var(--accent-purple);
}

.timeline .track-note {
    font-size: 11px;
    color: var(--text-label);
    font-style: italic;
    margin-top: -0.75rem;
    margin-bottom: 1.25rem;
}

.timeline .now-badge,
.timeline .phase-badge {
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-green);
    margin-bottom: 4px;
}

.timeline .end-badge,
.timeline .phase-badge-end {
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-purple);
    margin-bottom: 4px;
}

.timeline .phase-badge-future,
.timeline .phase-meta,
.timeline .bp-badge-future {
    font-size: 11px;
    color: var(--text-label);
    margin-bottom: 4px;
}

.timeline .phase-title,
.timeline .bp-name {
    font-size: var(--font-size-base);
    font-weight: 500;
    color: var(--text);
    margin-bottom: 0.25rem;
    line-height: var(--line-height-snug);
}

.timeline .phase-line,
.timeline .phase-desc,
.timeline .bp-desc {
    font-size: var(--font-size-sm);
    color: var(--text-very-muted);
    line-height: var(--line-height-body);
    font-weight: 400;
}

.timeline .phase-tangent,
.timeline .tangent {
    display: inline-block;
    font-size: 11px;
    color: var(--text-label);
    border-bottom: 0.5px solid var(--border-light);
    margin-top: 6px;
    text-decoration: none;
}

.timeline .tangent-wrap {
    margin-top: 10px;
    padding: 8px 10px;
    background: var(--bg-card);
    border-left: 1.5px solid var(--border);
}

.timeline .tangent-label,
.timeline .tc-label {
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-label);
    margin-bottom: 3px;
}

.timeline .tangent-preview {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
    font-weight: 300;
}

.timeline .tangent-more {
    font-size: 11px;
    color: var(--text-very-muted);
    text-decoration: none;
    display: inline-block;
    margin-top: 4px;
    border-bottom: 0.5px solid var(--border-light);
}

.timeline .converge {
    margin-top: 2rem;
    padding: 1rem 1.25rem;
    border: 0.5px solid var(--accent-purple-border);
    background: var(--bg);
}

.timeline .converge-label {
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-purple);
    margin-bottom: 4px;
}

.timeline .converge-title {
    font-size: 14px;
    color: var(--text);
    font-weight: 400;
    margin-bottom: 3px;
}

.timeline .converge-line {
    font-size: 12px;
    color: var(--text-very-muted);
    font-weight: 300;
}

/* LEGACY — roadmap grid (samples/groundtruth-roadmap.html) */
.timeline-legacy .roadmap-grid,
.timeline .roadmap-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

.timeline-legacy .phase-item,
.timeline .phase-item {
    display: flex;
    gap: 0.875rem;
    margin-bottom: 0;
}

.timeline-legacy .phase-spine,
.timeline .phase-spine {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.timeline-legacy .phase-dot,
.timeline .phase-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    border: 1.5px solid var(--border-light);
    background: var(--bg);
    margin-top: 4px;
    flex-shrink: 0;
}

.timeline-legacy .phase-dot.now,
.timeline .phase-dot.now {
    background: var(--accent-green);
    border-color: var(--accent-green);
}

.timeline-legacy .phase-dot.end,
.timeline .phase-dot.end {
    background: var(--accent-purple);
    border-color: var(--accent-purple);
}

.timeline-legacy .phase-dot.blue,
.timeline .phase-dot.blue {
    border-color: var(--accent-blue);
}

.timeline-legacy .phase-line,
.timeline .phase-line {
    width: 1px;
    background: var(--border-faint);
    flex: 1;
    margin: 4px 0;
}

.timeline-legacy .phase-line.blue,
.timeline .phase-line.blue {
    background: var(--accent-blue-pale);
}

.timeline-legacy .phase-content,
.timeline .phase-content {
    padding-bottom: 1.5rem;
    flex: 1;
}

.timeline-legacy .phase-badge-future.blue,
.timeline .phase-badge-future.blue {
    color: var(--accent-blue-dark);
}

/* VERTICAL + IMAGES — spine columns */
.timeline-vertical .roadmap-wrap,
.timeline-images .roadmap-wrap,
.timeline-vertical .v1-wrap,
.timeline-images .v1-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

.timeline-vertical .v1-item,
.timeline-images .v1-item,
.timeline-vertical .phase-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 0;
}

.timeline-vertical .v1-spine,
.timeline-images .v1-spine {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.timeline-vertical .v1-dot,
.timeline-images .v1-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1.5px solid var(--border-light);
    background: var(--bg);
    flex-shrink: 0;
    margin-top: 3px;
}

.timeline-vertical .v1-dot.active,
.timeline-images .v1-dot.active,
.timeline-vertical .v1-dot.now {
    background: var(--accent-green);
    border-color: var(--accent-green);
}

.timeline-vertical .v1-dot.end,
.timeline-images .v1-dot.end {
    background: var(--accent-purple);
    border-color: var(--accent-purple);
}

.timeline-vertical .v1-line,
.timeline-images .v1-line {
    width: 1px;
    background: var(--border-faint);
    flex: 1;
    margin: 4px 0;
}

.timeline-vertical .v1-content,
.timeline-images .v1-content {
    padding-bottom: 1.75rem;
    flex: 1;
}

/* IMAGES — app mock blocks */
.timeline-images .app-mock,
.timeline-images .img-block {
    margin: 10px 0;
    border-radius: 3px;
    overflow: hidden;
    border: 0.5px solid var(--border-faint);
    background: var(--bg-surface);
    width: 100%;
}

.timeline-images .app-mock-bar,
.timeline-images .app-bar {
    height: 22px;
    background: var(--bg-card);
    border-bottom: 0.5px solid var(--border-faint);
    display: flex;
    align-items: center;
    padding: 0 8px;
    gap: 4px;
}

.timeline-images .app-mock-dot,
.timeline-images .app-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
}

.timeline-images .map-mock,
.timeline-images .map-body {
    background: var(--accent-blue-pale);
    height: 100px;
    position: relative;
    overflow: hidden;
}

.timeline-images .qgis-body {
    background: #1a3a2a;
    height: 100px;
    position: relative;
    overflow: hidden;
}

/* ALTERNATING — center spine layout */
.timeline-alternating {
    position: relative;
}

.timeline-alternating .timeline-spine,
.timeline-alternating .spine {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--border-faint);
    transform: translateX(-50%);
}

.timeline-alternating .phase-row {
    display: grid;
    grid-template-columns: 1fr 40px 1fr;
    gap: 0;
    margin-bottom: 3rem;
    align-items: start;
    position: relative;
}

.timeline-alternating .dot-col {
    display: flex;
    justify-content: center;
    padding-top: 4px;
}

.timeline-alternating .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1.5px solid var(--border-light);
    background: var(--bg);
    position: relative;
    z-index: 1;
}

.timeline-alternating .dot.active,
.timeline-alternating .dot.now {
    background: var(--accent-green);
    border-color: var(--accent-green);
}

.timeline-alternating .dot.end {
    background: var(--accent-purple);
    border-color: var(--accent-purple);
}

.timeline-alternating .side-left {
    padding-right: 2rem;
    text-align: right;
}

.timeline-alternating .side-right {
    padding-left: 2rem;
    text-align: left;
}

.timeline-alternating .side-left .tangent-wrap {
    text-align: right;
}

/* BRANCHING — perpendicular tracks */
.timeline-branching .v3-wrap {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    align-items: start;
}

.timeline-branching .v3-v-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 0;
}

.timeline-branching .v3-v-spine {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.timeline-branching .v3-v-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1.5px solid var(--border-light);
    background: var(--bg);
    flex-shrink: 0;
    margin-top: 3px;
}

.timeline-branching .v3-v-dot.active,
.timeline-branching .v3-v-dot.now {
    background: var(--accent-green);
    border-color: var(--accent-green);
}

.timeline-branching .v3-v-line {
    width: 1px;
    background: var(--border-faint);
    flex: 1;
    margin: 4px 0;
}

.timeline-branching .v3-v-content {
    padding-bottom: 1.75rem;
    max-width: 400px;
}

/* HORIZONTAL — responsive layout lives in main.css TIMELINE block */

@media (max-width: 767px) {
    .timeline-legacy .roadmap-grid,
    .timeline .roadmap-grid,
    .timeline-vertical .v1-wrap,
    .timeline-images .v1-wrap,
    .timeline-branching .v3-wrap {
        grid-template-columns: 1fr;
    }

    .timeline-alternating .phase-row {
        grid-template-columns: 24px 1fr;
    }

    .timeline-alternating .side-left,
    .timeline-alternating .side-right {
        grid-column: 2;
        padding: 0;
        text-align: left;
    }

    .timeline-alternating .dot-col {
        grid-column: 1;
        grid-row: 1;
    }

    .timeline-alternating .timeline-spine,
    .timeline-alternating .spine {
        display: none;
    }
}
