/* ── Event list ──────────────────────────────────────────────
   Figma (What's on): filters 1366:93575, results 1366:93586,
   pages 1366:93635; mobile 1366:93462, 1366:93472.
   ─────────────────────────────────────────────────────────── */

.event-list {
    padding: 0 var(--pad-x) 64px;
}

/* What's On: white all the way down, as the search band over it (not
   the page's off-white). The News page's list keeps its own (below). */
.event-list:not(.event-list--plain) {
    background: #FFFFFF;
}

.event-list__inner {
    max-width: var(--site-max-w);
    margin: 0 auto;
}

.event-list [hidden] {
    display: none !important;
}

/* Events Coming Up, the line right; search and All Types — on white */
.event-list__filters {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin: 0 calc(-1 * var(--pad-x));
    padding: 40px var(--pad-x) 16px;
    background: #FFFFFF;
    /* The white out to the screen's edges on wide screens too (painted
       past the sides, so no scrollbar, and the type list isn't clipped) */
    border-image: conic-gradient(#FFFFFF 0 0) fill 0 / / 0 100vmax;
}

.event-list__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px 32px;
}

.event-list__title {
    font-size: 40px;
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: -0.4px;
}

.event-list__intro {
    max-width: 707px;
    font-family: var(--font-heading);
    font-size: 22px;
    font-style: italic;
    line-height: 1.2;
    text-align: right;
}

.event-list__row {
    display: flex;
    gap: 12px;
}

/* Figma 1299:34446: the search a soft white box with a shadow; the type a
   candle wax button, the tune icon and ALL (the type chosen). */
.event-list__search,
.event-list__type {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 45px;
    padding: 0 20px;
    border-radius: 4px;
}

.event-list__search {
    flex: 1;
    border: 0.5px solid rgba(20, 13, 12, 0.25);
    background: #FCFBFA;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

/* The type: our dropdown, the whole box opens it */
.event-list__type {
    position: relative;
    flex: none;
    background: var(--color-candle-wax);
}

.event-list__type .select-menu__button::after {
    content: "";
    position: absolute;
    inset: 0;
}

.event-list__search:focus-within,
.event-list__type:has(:focus-visible:not(.select-menu__list)) {
    outline: 2px solid var(--color-beamwood);
    outline-offset: 2px;
}

.event-list__search-icon {
    flex: none;
    width: 12px;
    height: auto;
}

.event-list__type-icon {
    flex: none;
    width: 24px;
    height: 24px;
    pointer-events: none;
}

/* What's typed in Fraunces (Figma 1395:7054); the placeholder in Jost. */
.event-list__input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: none;
    font-family: var(--font-heading);
    font-size: 17px;
    color: var(--color-beamwood);
}

.event-list__input::placeholder {
    font-family: var(--font-body);
    font-size: 16px;
    letter-spacing: 0.08px;
    color: rgba(20, 13, 12, 0.4);
}

.event-list__input:focus,
.event-list__type select:focus {
    outline: none;
}

.event-list__type select,
.event-list__type .select-menu__button {
    border: 0;
    background: none;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 3.36px;
    text-transform: uppercase;
    color: var(--color-beamwood);
    cursor: pointer;
    appearance: none;
}

/* News: an eyebrow over a 64px heading, All events right, no search */
.event-list__heading {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.event-list__eyebrow {
    color: var(--color-umber-muted);
}

.event-list--plain {
    padding-top: 64px;
}

/* On candle wax (a news story): the events on paper, so they stand out */
.event-list--candle {
    background: var(--color-candle-wax);
}

.event-list--candle .event-row {
    background: var(--color-canvas);
}

.event-list--plain .event-list__filters {
    margin: 0;
    padding: 0 0 16px;
    background: none;
    border-image: none;
}

@media (min-width: 1025px) {
    .event-list--plain .event-list__header {
        align-items: flex-end;
    }
}

.event-list--plain .event-list__title {
    font-size: 64px;
    line-height: 0.9;
    letter-spacing: -0.96px;
}

/* The rows */
.event-list__rows {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 16px;
}

.event-row {
    position: relative;
    display: flex;
    align-items: center;
    gap: 32px;
    padding-right: 32px;
    border-right: 1px solid rgba(20, 13, 12, 0.12);
    border-left: 1px solid rgba(20, 13, 12, 0.12);
    background: var(--color-candle-wax);
}

.event-row__media {
    position: relative; /* the picture fills it, whatever its shape */
    flex: 0 0 393px;
    align-self: stretch;
    min-height: 295px;
}

/* Absolute, so a tall photo can't make its card taller than the rest */
.event-row__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-row__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    min-width: 0;
    padding: 24px 0;
}

.event-row__words {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.event-row__when,
.event-row__text {
    font-size: 13px;
    line-height: 1.45;
    color: var(--color-walnut);
}

/* The whole card is the link: the name's hit area covers it */
.event-row__link {
    color: inherit;
    transition: color var(--transition);
}

.event-row__link::after {
    content: "";
    position: absolute;
    inset: 0;
}

.event-row:hover .event-row__link {
    color: var(--color-copper-text);
}

.event-row:has(.event-row__link:focus-visible) {
    outline: 2px solid var(--color-copper);
    outline-offset: 3px;
}

.event-row__link:focus-visible {
    outline: none;
}

.event-row__title {
    font-size: 40px;
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: -0.4px;
}

.event-row__place {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-heading);
    font-size: 16px;
    font-style: italic;
    line-height: 1.2;
    color: var(--color-walnut);
}

.event-row__place svg {
    flex-shrink: 0;
}

/* ← 1 2 → */
.event-list__more {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px 24px;
    padding-top: 40px;
}

.event-list__more[hidden],
.event-list__show-more[hidden] {
    display: none;
}

/* Show more and the count, as the Gallery's */
.event-list__show-more.button--primary {
    height: 53px;
    padding: 0 32px;
    font-size: 12px;
    letter-spacing: 3.84px;
}

.event-list__count {
    font-family: var(--font-heading);
    font-size: 15px;
    font-style: italic;
    color: var(--color-walnut);
}

@media (max-width: 767px) {
    .event-list__more {
        flex-direction: column;
    }

    .event-list__show-more.button--primary {
        width: 100%;
    }
}

.event-list__none {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 96px 0;
    text-align: center;
}

.event-list__none[hidden] {
    display: none;
}

.event-list__none-icon {
    width: 60px;
    height: 60px;
}

.event-list__none-title {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 300;
    line-height: 1.1;
}

.event-list__none-text {
    max-width: 640px;
    font-family: var(--font-heading);
    font-size: 18px;
    font-style: italic;
    line-height: 1.5;
    color: var(--color-walnut);
}

.event-list__none-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.event-list__none-clear {
    width: 246px;
    justify-content: center;
}

.event-list__none-updates {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 3.84px;
    text-transform: uppercase;
    text-decoration: underline;
    color: var(--color-beamwood);
}

.event-list__none-updates:hover {
    color: var(--color-copper);
}

@media (max-width: 767px) {
    .event-list__none {
        padding: 48px 0;
        gap: 20px;
    }

    .event-list__none-title {
        font-size: 32px;
    }

    .event-list__none-clear {
        width: 100%;
    }

    .event-list__none-actions {
        align-self: stretch;
    }
}

.event-list__empty {
    padding: 48px 0 16px;
    font-family: var(--font-heading);
    font-size: 18px;
    font-style: italic;
    text-align: center;
    color: var(--color-walnut);
}


@media (max-width: 1024px) {
    .event-list {
        padding-bottom: var(--pad-y);
    }

    .event-list__filters {
        gap: 16px;
        padding-top: 20px;
    }

    .event-list__header {
        flex-direction: column;
        align-items: flex-start;
    }

    .event-list__title {
        font-size: 32px;
    }

    .event-list__intro {
        font-size: 18px;
        text-align: left;
    }

    .event-list--plain {
        padding-top: var(--pad-y);
    }

    .event-list--plain .event-list__title {
        font-size: 32px;
        line-height: 1.06;
        letter-spacing: -0.32px;
    }

    .event-row__media {
        flex-basis: 40%;
        min-height: 240px;
    }

    .event-row__title {
        font-size: 28px;
    }
}

/* Mobile: the picture over the words */
@media (max-width: 767px) {
    /* Figma 1397:10744: the search and the tune button side by side, the
       button just the icon. 16px words, not the design's 14, or iPhones
       zoom in on a tap. */
    .event-list__row {
        flex-direction: row;
        gap: 16px;
    }

    .event-list__search {
        padding: 0 16px 0 12px;
        background: var(--color-canvas);
    }

    .event-list__input::placeholder {
        color: rgba(65, 51, 38, 0.7); /* 0.7 (was 0.65): 4.5:1 on white */
    }

    .event-list__type .select-menu__value {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }

    .event-row {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0;
        border: 1px solid rgba(20, 13, 12, 0.12);
    }

    .event-row__media {
        flex: none;
        min-height: 0;
        aspect-ratio: 353 / 240;
    }

    .event-row__body {
        gap: 20px;
        padding: 20px;
    }

}
