.dates-progress {
    --progress: 0%;
    --progress-marker-size: 0.45em;

    display: flex;
    justify-content: space-between;
    font-family: var(--font-family-everett);
    font-size: var(--font-size-xl);
    gap: 0.5em;
}

.dates-progress-label {
    width: max-content;
    font-weight: var(--font-weight-book);
    white-space: nowrap;
}

.dates-progress-label:last-of-type {
    text-align: right;
}

.dates-progress-caption {
    display: block;
    font-size: var(--font-size-base);
}

.dates-progress-bar {
    flex-grow: 1;
    position: relative;
}

.dates-progress-bar:before {
    display: block;
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--color-foreground);
}

.dates-progress-bar:after {
    display: block;
    content: "";
    position: absolute;
    top: 50%;
    left: var(--progress);
    transform: translateY(-50%);
    width: var(--progress-marker-size);
    height: var(--progress-marker-size);
    background-color: var(--color-foreground);
    border-radius: 1000px;
}

@media screen and (max-width: 1440px) {
    .dates-progress {
        margin-bottom: 3em;
    }
}

@media screen and (max-width: 500px) {
    .dates-progress {
        --progress-marker-size: 0.8em;
        font-size: var(--font-size-b-2);
    }

    .dates-progress-caption {
        font-size: var(--font-size-s-2);
    }
}

@media screen and (max-width: 380px) {
    .dates-progress {
        justify-content: space-around;
        font-size: calc(var(--font-size-b-3) + 2px);
    }

    .dates-progress-bar {
        display: none;
    }

    .dates-progress-label, .dates-progress-label:last-of-type {
        width: 100%;
        text-align: center;
    }

    .dates-progress-caption {
        font-size: var(--font-size-s);
    }
}
