/**
 * /events/ — PC ≥1200 only.
 * Collapse empty height in event cards forced by .card { height:525/446px }
 * + flex stretch to match curator advice. Advice loses fixed min-height and
 * stretches to the event-card row instead (cards + banner bottoms align).
 *
 * Tablet/mobile (≤1199) untouched — already OK per product.
 * Do not edit custom.css / custom.min.css / cotinder-mobile-card-fixes.css / footer.php.
 * Marker: eventspcvoid20260814a
 */

@media (min-width: 1200px) {
    .events-page-cards.index__posts,
    .events-page-cards {
        align-items: stretch !important;
    }

    .events-page-cards > .index__post:not(.index__post_be-part):not(.index__post_full) {
        display: flex !important;
        flex-direction: column !important;
        align-self: stretch !important;
        height: auto !important;
        min-height: 0 !important;
    }

    /* Event cards: size to content (no 525/446 empty slab) */
    .events-page-cards.index__posts > .index__post > .card.index__events_event,
    .events-page-cards > .index__post > .index__events.index__events_event.card,
    .events-page-cards .index__events_event.card.user-slide,
    .events-page-cards .index__events_event.card,
    .events-page-cards .index__events_event {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        flex: 0 0 auto !important;
        align-self: stretch !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .events-page-cards .index__events_event > .card-stars__wrapper,
    .events-page-cards .index__events_event > .index__events_bottom {
        margin-top: 0 !important;
        flex-shrink: 0 !important;
    }

    /* Curator advice: no fixed 525/446 — fill the same row height as event cards */
    .events-page-cards > .index__post.index__post_curator-advice {
        display: flex !important;
        flex-direction: column !important;
        align-self: stretch !important;
        height: auto !important;
        min-height: 0 !important;
    }

    .events-page-cards > .index__post.index__post_curator-advice > .card.card__advice,
    .events-page-cards > .index__post.index__post_curator-advice > .card.card__advice.card__advice_has-link {
        --advice-card-min-h: 0 !important;
        height: 100% !important;
        min-height: 0 !important;
        max-height: none !important;
        flex: 1 1 auto !important;
        align-self: stretch !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}
