/* APSAIDAL Events v8 — parity refinements against the approved Event Pages reference. */

/* Status chips: the reference uses black for live events, mint for open/upcoming
 * states and a restrained neutral treatment for past events. */
.aps-event-status--ongoing {
    background: var(--aps-event-ink) !important;
    color: #fff !important;
}
.aps-event-status--cancelled,
.aps-event-status--postponed {
    background: var(--aps-event-brand-burgundy) !important;
    color: #fff !important;
}
.aps-event-status--past {
    background: #e6e8e7 !important;
    color: #555d62 !important;
}

/* Deadline-led formats use the same understated calendar action as dated events. */
.aps-event-calendar-actions--deadline {
    margin-top: 17px;
    padding-top: 14px;
    border-top: 1px solid var(--aps-event-line);
}

/* Contextual content should read as one editorial sequence, not as a stack of cards. */
.aps-event-contextual--pre .aps-event-contextual-section:first-child {
    border-top: 0;
    padding-top: 4px;
}
.aps-event-contextual--post .aps-event-contextual-section:first-child {
    margin-top: 2px;
}

/* Compact event families keep the hierarchy in the reference: deadline is a
 * strong editorial datum, while standfirst remains secondary. */
.aps-event-identity--compact .aps-event-deadline strong {
    font-size: clamp(30px, 3.2vw, 42px);
}
.aps-event-identity--compact .aps-event-standfirst {
    max-width: 660px;
}

/* Event Data is factual and quiet. Capacity belongs here rather than becoming
 * an additional editorial tab/section. */
.aps-event-data dl > div:last-child {
    border-bottom: 0;
}

@media (max-width: 767px) {
    .aps-event-identity--compact .aps-event-deadline strong {
        font-size: clamp(27px, 8vw, 36px);
    }
}
