.events {
    background: var(--color-section-bg);
    padding-block: var(--space-section-y);
}

.events__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-block-end: 2rem;
}

/* Scoped one level deeper than the class alone: Elementor's Global Kit styles
   bare h1-h6 at (0,1,1), which beats a single class and an inherited color. */
.events .events__title {
    color: var(--color-ink);
    font-size: var(--text-h2);
    font-weight: var(--font-weight-bold);
}

/* (0,2,0): the kit colors bare `a` at (0,1,1), which would override the brand red. */
.events .events__view-all {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-brand-red);
    font-weight: var(--font-weight-medium);
    text-decoration: underline;
}

.events .events__view-all img {
    flex-shrink: 0;
    width: 14px;
    height: 20px;
}

.events__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.875rem;
}

.event-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.event-card__photo {
    width: 100%;
    aspect-ratio: 588 / 257;
    object-fit: cover;
}

.event-card__body {
    padding: var(--space-card-pad);
}

/* h3 again — the kit uppercases bare h3 and adds letter-spacing at (0,1,1). */
.event-card .event-card__title {
    color: var(--color-ink);
    font-size: var(--text-card-title);
    font-weight: var(--font-weight-bold);
    text-transform: none;
    letter-spacing: normal;
    line-height: 1.2;
    margin-block-end: 0.5rem;
}

.event-card .event-card__label {
    font-size: var(--text-small);
    color: var(--color-newsletter-label);
    margin-block-end: 0.5rem;
}

/* Design: 10px radius, 10px/14px padding, 12px between rows. */
.event-card__editions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: var(--color-card-subbg);
    border-radius: var(--radius-md);
    padding: 0.875rem 0.625rem;
    margin-block-end: 1.5rem;
}

/* Date and location share the row as equal halves, rather than being pushed to
   opposite edges — the design aligns the location column consistently across
   rows regardless of how long each date string is. */
.event-card__edition {
    display: flex;
    gap: 0.375rem;
    font-size: var(--text-small);
}

.event-card__meta {
    display: flex;
    flex: 1 1 0;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

/* Both dimensions are fixed so the icon cannot stretch to its intrinsic size
   or squash when the text beside it wraps. */
.event-card__icon {
    flex-shrink: 0;
    width: 14px;
    height: 15px;
}

.event-card__icon--pin {
    width: 20px;
    height: 19px;
}

.event-card__divider {
    border: none;
    border-top: 1px solid var(--color-checkbox-border);
    margin: 0;
}

/* The card CTA is the compact variant in the design (24/12), against the hero's
   larger 32/16. (0,2,0) to stay above Elementor's bare `button`/`a` rules. */
.event-card .btn--primary {
    padding: 0.75rem 1.5rem;
    font-size: var(--text-small);
}
