/**
 * Production Dates ContentBlock (bruchwerk_productiondates)
 * Compact upcoming performances of the page's own production, in the
 * schedule's type and line tokens. Mobile-first; desktop via media query.
 */

.production-dates {
    border-bottom: 1px solid var(--line);
}

.production-dates__wrap {
    padding-top: 48px;
    padding-bottom: 48px;
}

.production-dates__headline {
    font-size: clamp(32px, 5vw, 56px);
    margin: 0 0 24px;
}

.production-dates__list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 2px solid var(--ink);
}

/* Mobile: date, weekday and start stacked left, the ticket button right. */
.production-dates__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "date btn"
        "weekday btn"
        "time btn";
    align-items: center;
    column-gap: 16px;
    row-gap: 4px;
    margin: 0;
    padding: 12px 0;
    border-bottom: 1px dashed rgba(244, 241, 234, 0.3);
}

.production-dates__date {
    grid-area: date;
    font-size: 24px;
    line-height: 1;
}

.production-dates__weekday {
    grid-area: weekday;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--mute);
}

.production-dates__time {
    grid-area: time;
}

.production-dates__time-label {
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--mute);
}

.production-dates__time .display {
    font-size: 20px;
    line-height: 1;
}

/* Without upcoming dates a current production shows one line in the list's frame. */
.production-dates__pending {
    margin: 0;
    padding: 12px 0;
    border-top: 2px solid var(--ink);
    border-bottom: 1px dashed rgba(244, 241, 234, 0.3);
    font-size: 24px;
    line-height: 1.2;
}

.production-dates__btn {
    grid-area: btn;
    min-height: 44px;
    min-width: 44px;
    justify-content: center;
}

@media (min-width: 961px) {
    .production-dates__row {
        grid-template-columns: 200px 200px minmax(0, 1fr) auto;
        grid-template-areas: "date weekday time btn";
        column-gap: 24px;
        padding: 16px 0;
    }

    .production-dates__date,
    .production-dates__pending {
        font-size: 32px;
    }

    .production-dates__pending {
        padding: 16px 0;
    }

    .production-dates__time .display {
        font-size: 24px;
    }
}
