/* SmallPlanet Screenings
   Typography and colors intentionally inherit from Divi/the current page. */

.sp-screenings {
    margin: 0;
}

.sp-screening {
    margin: 0 0 1.35em;
}

.sp-screening:last-child {
    margin-bottom: 0;
}

.sp-screening-date-city,
.sp-screening-venue,
.sp-screening-address,
.sp-screening-time {
    line-height: 1.55;
}

.sp-screening-date-city {
    margin-bottom: 0.1em;
}

.sp-screenings-empty {
    opacity: 0.8;
}

.sp-screenings-error {
    padding: 0.75em 1em;
    border: 1px solid currentColor;
}

.sp-screening-address {
    opacity: 0.8;
    font-size: 0.95em;
}


/* Built-in archive accordion — designed to sit directly on the dark film page,
   so a Divi Toggle module is no longer needed. */
.sp-screenings-archive {
    margin-top: 2.2em;
    border-top: 1px solid rgba(255,255,255,0.18);
    border-bottom: 1px solid rgba(255,255,255,0.18);
    background: transparent;
}

.sp-screenings-archive > summary {
    position: relative;
    cursor: pointer;
    list-style: none;
    padding: 1.05em 2.2em 1.05em 0;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.3;
}

.sp-screenings-archive > summary::-webkit-details-marker {
    display: none;
}

.sp-screenings-archive > summary::after {
    content: "⌄";
    position: absolute;
    right: 0.2em;
    top: 50%;
    transform: translateY(-52%);
    font-size: 1.3em;
    line-height: 1;
}

.sp-screenings-archive[open] > summary::after {
    content: "⌃";
}

.sp-screenings-archive-content {
    padding: 0.35em 0 1.15em;
}

.sp-screenings-past {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 3em;
    row-gap: 0.2em;
}

.sp-screenings-past .sp-screening {
    margin: 0;
    padding: 0.7em 0;
    border-bottom: 1px solid rgba(255,255,255,0.10);
}

.sp-screenings-past .sp-screening-date-city,
.sp-screenings-past .sp-screening-venue,
.sp-screenings-past .sp-screening-time {
    line-height: 1.42;
}

.sp-screenings-past .sp-screening-time {
    opacity: 0.9;
}

@media (max-width: 767px) {
    .sp-screenings-past {
        grid-template-columns: 1fr;
    }
}
