/* ————
Annex Timeline
——— */

.annex-timeline {
    /* Without color-mix() */
    --annex-structural: var(--wp--preset--color--soft-blue);
    --annex-case-study: var(--wp--preset--color--softer-blue);
}

@supports (color: color-mix(in srgb, red 50%, white)) {
    .annex-timeline {
        --annex-structural: color-mix(in srgb, var(--report-color, var(--wp--preset--color--blue)) 35%, white);
        --annex-case-study: color-mix(in srgb, var(--report-color, var(--wp--preset--color--blue)) 12%, white);
    }
}

.annex-timeline--structural {
    --annex-background: var(--annex-structural);
    --annex-border: var(--annex-structural);
}

.annex-timeline--case-study {
    --annex-background: var(--annex-case-study);
    --annex-border: var(--annex-case-study);
}

.annex-timeline--policy {
    --annex-background: var(--wp--preset--color--white);
    --annex-border: var(--wp--preset--color--black);
}

.annex-timeline__title {
    margin: 0 0 var(--four-spacer);
}

.annex-timeline ul,
.annex-timeline ol {
    margin: 0;
    padding: 0;
}

.entry-content .annex-timeline li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.annex-timeline__legend {
    display: flex;
    flex-wrap: wrap;
    gap: var(--one-spacer) var(--three-spacer);
    margin-bottom: var(--three-spacer) !important;
}

.annex-timeline__key {
    display: flex;
    align-items: center;
    gap: var(--one-spacer);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.annex-timeline__key::before {
    content: '';
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    box-sizing: border-box;
    border: 1px solid var(--wp--preset--color--black);
    border-radius: 4px;
    background-color: var(--annex-background);
}

.annex-timeline__key.annex-timeline--structural::before,
.annex-timeline__key.annex-timeline--case-study::before {
    border-color: color-mix(in srgb, var(--annex-background) 70%, var(--wp--preset--color--black));
}

/* Between two rules */
.annex-timeline__summary {
    margin: 0;
    padding: var(--one-spacer) 0;
    border-top: 1px solid;
    border-bottom: 1px solid;
    font-size: 1rem;
    line-height: 1.4;
}

.annex-timeline__entries {
    display: grid;
    gap: var(--one-spacer);
    margin-top: var(--one-spacer) !important;
}

.annex-timeline__title + .annex-timeline__entries,
.annex-timeline__legend + .annex-timeline__entries {
    padding-top: var(--one-spacer) !important;
    border-top: 1px solid;
}

.annex-timeline__entry {
    display: grid;
    grid-template-columns: 5.5rem minmax(0, 1fr);
    gap: var(--one-spacer);
    align-items: start;
}

.annex-timeline__date,
.annex-timeline__text {
    margin: 0;
    font-size: 1rem;
    line-height: 1.45;
}

.annex-timeline__date {
    padding-top: calc(var(--one-spacer) + 1px);
    font-weight: 700;
}

.annex-timeline__text {
    padding: var(--one-spacer) var(--two-spacer);
    border: 1px solid var(--annex-border);
    border-radius: 6px;
    background-color: var(--annex-background);
    color: var(--wp--preset--color--black);
}

.annex-timeline__text strong {
    font-weight: 700;
}

@media screen and (max-width: 599px) {
    .annex-timeline__entry {
        grid-template-columns: minmax(0, 1fr);
        gap: 5px;
    }

    .annex-timeline__date {
        padding-top: var(--one-spacer);
    }

    .annex-timeline__date:empty {
        display: none;
    }
}
