/* ---------------------------------------------------------------
    LAYOUT
--------------------------------------------------------------- */

.container {
    max-width: var(--max-w-wide);
}


/* ---------------------------------------------------------------
    TABLE OF CONTENT
--------------------------------------------------------------- */

.article-toc {
    position: sticky;
    top: var(--gap-lg);
    padding-block: var(--gap-lg);
}

.article-toc__title {
    font-size: var(--text-lg);
    font-family: var(--font-display);
    padding-bottom: var(--gap-md);
}

.article-toc li {
    display: flex;
    align-items: center;
    gap: var(--gap-md);
    padding-block: var(--gap-sm);
    padding-inline: var(--gap-md);
    margin-bottom: var(--gap-xs);
    position: relative;
    cursor: pointer;
}

.dot-indicator {
    width: 3px;
    height: 3px;
    background-color: color-mix(in srgb, var(--color-primary) 65%, transparent);
    border-radius: var(--radius-full);
    flex-shrink: 0;
}

.section-label {
    font-size: var(--text-reg);
    color: color-mix(in srgb, var(--text-base) 65%, transparent);
}

.article-toc li:hover {
    background-color: color-mix(in srgb, var(--palette-white) 55%, transparent);
}

.article-toc li:hover .dot-indicator {
    width: 4px;
    height: 4px;
    background-color: var(--color-primary);
}

.article-toc li:hover .section-label {
    color: var(--color-primary);
}

.article-toc li.active {
    background-color: color-mix(in srgb, var(--palette-white) 55%, transparent);
}

.article-toc li.active .dot-indicator {
    width: 4px;
    height: 4px;
    background-color: var(--color-primary);
}

.article-toc li.active .section-label {
    color: var(--color-primary);
}

.article-toc li.active::before {
    content: ' ';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--color-primary);
}

/* ---------------------------------------------------------------
    AT A GLANCE
--------------------------------------------------------------- */

.card-glance {
    border: 1px solid var(--border-surface);
    padding: var(--gap-lg);
    border-radius: var(--radius-lg);
}

.card-glance .card__title {
    text-transform: uppercase;
    font-weight: var(--weight-semibold);
    font-size: var(--text-lg);
    margin-bottom: var(--gap-md);
    max-width: unset;
    text-align: center;
}

.glance__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-block: var(--gap-md);
    border-bottom: 1px solid var(--border-surface);
}

.glance__row:last-of-type {
    border: none;
}

.card-glance .value {
    font-family: var(--font-display);
    font-weight: var(--weight-medium);
    text-align: right;
    color: var(--text-subtle);

}

.card-glance .label {
    color: var(--text-base);
}

@media (max-width: 768px) {
    .card-glance {
        padding: var(--gap-lg) var(--gap-md);
    }
}

/* ---------------------------------------------------------------
    TIMELINE
--------------------------------------------------------------- */

:root {
    --timeline-left-gap: var(--gap-xl)
}

.timeline {
    position: relative;
    padding-left: var(--timeline-left-gap);
}

.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 12px;
    bottom: 4px;
    width: 0.5px;
    background: color-mix(in srgb, var(--color-primary) 25%, transparent);
}

.timeline-item {
    position: relative;
    padding-top: 0;
    padding-bottom: var(--gap-2xl);
    padding-left: var(--timeline-left-gap);
    max-width: 680px;
}

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

.timeline-dot {
    position: absolute;
    left: calc(-1 * var(--timeline-left-gap));
    top: 6px;
    width: 15px;
    height: 15px;
    border-radius: var(--radius-full);
    border: 1.5px solid color-mix(in srgb, var(--color-primary) 45%, transparent);
    ;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-dot::after {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: var(--radius-full);
    background: var(--color-primary);
}

@media (max-width: 768px) {
    :root {
        --timeline-left-gap: var(--gap-md)
    }

    .section-keyeras .grid {
        gap: 0 !important;
    }

    .timeline.first::before {
        bottom: -12px;
    }

    .timeline.first .timeline-item:last-child {
        margin-bottom: var(--gap-2xl);
    }
}