.events-archive-page {
    --events-ink: oklch(0.25 0.05 220);
    --events-navy: oklch(0.29 0.075 220);
    --events-navy-deep: oklch(0.21 0.055 220);
    --events-cyan: oklch(0.72 0.12 202);
    --events-cyan-wash: oklch(0.91 0.065 202);
    --events-gold: oklch(0.8 0.14 87);
    --events-paper: oklch(0.985 0.008 92);
    --events-surface: oklch(0.997 0.004 92);
    --events-muted: oklch(0.5 0.025 220);
    --events-line: oklch(0.86 0.02 214);
    --events-focus: oklch(0.66 0.16 202);
    background: var(--events-paper);
}

.events-archive-page .breadcrumb-nav {
    margin-bottom: 0;
}

.events-archive {
    overflow: hidden;
    background: var(--events-paper);
    color: var(--events-ink);
}

.events-archive__hero {
    position: relative;
    isolation: isolate;
    padding-block: clamp(3.25rem, 6vw, 6.5rem);
    overflow: hidden;
    background: var(--events-cyan-wash);
}

.events-archive__hero::before,
.events-archive__hero::after {
    position: absolute;
    z-index: -1;
    border: 1px solid oklch(0.48 0.09 202 / 0.2);
    content: '';
    pointer-events: none;
    transform: rotate(45deg);
}

.events-archive__hero::before {
    inset-block-start: -12rem;
    inset-inline-start: -10rem;
    width: 28rem;
    height: 28rem;
    border-radius: 5rem;
}

.events-archive__hero::after {
    inset-block-end: -15rem;
    inset-inline-end: 32%;
    width: 24rem;
    height: 24rem;
    border-radius: 50%;
}

.events-archive__hero-layout {
    display: grid;
    min-height: 25rem;
    align-items: center;
}

.events-archive__hero-layout.has-feature {
    grid-template-columns: minmax(0, 0.78fr) minmax(31rem, 1.22fr);
    gap: clamp(2.5rem, 6vw, 6rem);
}

.events-archive__hero-copy {
    max-width: 43rem;
}

.events-archive__eyebrow {
    display: inline-flex;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 1rem;
    color: oklch(0.42 0.1 204);
    font-size: clamp(0.92rem, 1.25vw, 1.08rem);
    font-weight: 800;
}

.events-archive__eyebrow > span {
    width: 3rem;
    height: 0.2rem;
    border-radius: 999px;
    background: var(--events-gold);
}

.events-archive__hero h1 {
    max-width: 10ch;
    margin: 0;
    color: var(--events-navy-deep);
    font-size: clamp(3rem, 6.5vw, 6.8rem);
    font-weight: 850;
    line-height: 0.98;
    letter-spacing: -0.045em;
}

.events-archive__hero-copy > p {
    max-width: 56ch;
    margin: clamp(1.35rem, 2.5vw, 2rem) 0 0;
    color: oklch(0.4 0.035 220);
    font-size: clamp(1.02rem, 1.5vw, 1.22rem);
    line-height: 1.9;
}

.events-archive__total {
    display: inline-flex;
    align-items: center;
    min-height: 2.4rem;
    margin-top: 1.6rem;
    padding-inline: 1rem;
    border: 1px solid oklch(0.45 0.08 202 / 0.25);
    border-radius: 999px;
    background: oklch(0.96 0.025 202);
    color: var(--events-navy);
    font-size: 0.9rem;
    font-weight: 800;
}

.events-archive__feature {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(14rem, 0.65fr);
    min-width: 0;
    min-height: 27rem;
    overflow: hidden;
    border: 1px solid oklch(0.38 0.065 220);
    border-radius: 2rem;
    background: var(--events-navy-deep);
    box-shadow: 0 1.6rem 3.8rem oklch(0.25 0.055 220 / 0.18);
    color: oklch(0.98 0.006 202);
    text-decoration: none;
    transition: transform 240ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 240ms ease;
}

.events-archive__feature:hover {
    box-shadow: 0 2rem 4.5rem oklch(0.23 0.06 220 / 0.24);
    color: oklch(0.98 0.006 202);
    transform: translateY(-0.35rem);
}

.events-archive__feature-visual {
    position: relative;
    display: grid;
    min-height: 0;
    overflow: hidden;
    background: var(--events-navy);
    place-items: center;
}

.events-archive__feature-visual > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

.events-archive__feature:hover .events-archive__feature-visual > img {
    transform: scale(1.035);
}

.events-archive__feature-visual > time {
    position: absolute;
    inset-block-start: 1rem;
    inset-inline-start: 1rem;
    display: grid;
    min-width: 4.5rem;
    min-height: 4.5rem;
    padding: 0.55rem;
    border: 1px solid oklch(0.95 0.02 91 / 0.35);
    border-radius: 1.15rem;
    background: var(--events-gold);
    color: var(--events-navy-deep);
    text-align: center;
    place-content: center;
}

.events-archive__feature-visual > time strong,
.events-archive__feature-visual > time span {
    display: block;
}

.events-archive__feature-visual > time strong {
    font-size: 1.35rem;
    line-height: 1;
}

.events-archive__feature-visual > time span {
    margin-top: 0.25rem;
    font-size: 0.72rem;
    font-weight: 800;
}

.events-archive__feature-caption {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    padding: clamp(1.5rem, 3vw, 2.75rem);
}

.events-archive__feature-caption > small {
    margin-bottom: 0.9rem;
    color: var(--events-gold);
    font-size: 0.78rem;
    font-weight: 800;
}

.events-archive__feature-caption > strong {
    display: -webkit-box;
    overflow: hidden;
    color: oklch(0.985 0.006 202);
    font-size: clamp(1.25rem, 2vw, 1.7rem);
    line-height: 1.65;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
}

.events-archive__feature-caption > span {
    display: inline-flex;
    gap: 0.55rem;
    align-items: center;
    align-self: flex-start;
    margin-top: 1.4rem;
    color: var(--events-cyan);
    font-size: 0.88rem;
    font-weight: 800;
}

.events-archive__image-fallback {
    display: grid;
    width: 6rem;
    height: 6rem;
    border: 1px solid oklch(0.75 0.06 202 / 0.38);
    border-radius: 50%;
    color: var(--events-cyan);
    place-items: center;
}

.events-archive__image-fallback svg {
    width: 3rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.5;
}

.events-archive__index {
    padding-block: clamp(3.5rem, 7vw, 7rem);
}

.events-archive-filter {
    display: grid;
    grid-template-columns: minmax(17rem, 1.7fr) minmax(10rem, 0.75fr) minmax(11rem, 0.8fr) auto;
    gap: 1rem;
    align-items: end;
    margin-bottom: clamp(3.5rem, 7vw, 6.5rem);
    padding: clamp(1.2rem, 2vw, 1.75rem);
    border: 1px solid var(--events-line);
    border-radius: 1.6rem;
    background: var(--events-surface);
    box-shadow: 0 1rem 3rem oklch(0.28 0.04 220 / 0.07);
}

.events-archive-filter__field > label {
    display: block;
    margin-bottom: 0.55rem;
    color: var(--events-ink);
    font-size: 0.82rem;
    font-weight: 800;
}

.events-archive-filter__control {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.65rem;
    align-items: center;
    min-height: 3.5rem;
    padding-inline: 0.95rem;
    border: 1px solid var(--events-line);
    border-radius: 1rem;
    background: oklch(0.975 0.008 202);
}

.events-archive-filter__control svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: none;
    stroke: oklch(0.48 0.1 202);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.65;
}

.events-archive-filter__control input,
.events-archive-filter__control select {
    min-width: 0;
    width: 100%;
    height: 3.25rem;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--events-ink);
    font: inherit;
}

.events-archive-filter__control input::placeholder {
    color: oklch(0.62 0.02 220);
}

.events-archive-filter__actions {
    display: grid;
    gap: 0.45rem;
    min-width: 9rem;
}

.events-archive-filter__actions button {
    min-height: 3.5rem;
    padding-inline: 1.2rem;
    border: 0;
    border-radius: 1rem;
    background: var(--events-navy);
    color: oklch(0.98 0.006 202);
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    transition: background-color 180ms ease, transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.events-archive-filter__actions button:hover {
    background: oklch(0.36 0.09 216);
    transform: translateY(-1px);
}

.events-archive-filter__actions a {
    color: oklch(0.44 0.1 204);
    font-size: 0.78rem;
    font-weight: 700;
    text-align: center;
    text-decoration: underline;
    text-underline-offset: 0.22rem;
}

.events-archive__section-header {
    display: flex;
    gap: 2rem;
    align-items: end;
    justify-content: space-between;
    margin-bottom: clamp(2rem, 4vw, 3.25rem);
}

.events-archive__section-header span {
    display: block;
    margin-bottom: 0.45rem;
    color: oklch(0.45 0.1 203);
    font-size: 0.9rem;
    font-weight: 800;
}

.events-archive__section-header h2 {
    max-width: 16ch;
    margin: 0;
    color: var(--events-navy-deep);
    font-size: clamp(2rem, 4vw, 3.8rem);
    font-weight: 850;
    line-height: 1.12;
    letter-spacing: -0.035em;
}

.events-archive__section-header > p {
    flex: 0 0 auto;
    margin: 0;
    color: var(--events-muted);
    font-size: 0.92rem;
}

.events-archive__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(2.2rem, 4vw, 4.25rem) clamp(1.2rem, 2.5vw, 2.25rem);
}

.event-story {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.event-story__visual {
    position: relative;
    display: grid;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border: 1px solid var(--events-line);
    border-radius: 1.5rem;
    background: var(--events-navy);
    place-items: center;
}

.event-story__visual::after {
    position: absolute;
    inset: 0;
    border: 0.35rem solid oklch(0.995 0.004 92 / 0.2);
    border-radius: inherit;
    content: '';
    pointer-events: none;
}

.event-story__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 650ms cubic-bezier(0.16, 1, 0.3, 1);
}

.event-story:hover .event-story__visual img {
    transform: scale(1.045);
}

.event-story__content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1.3rem 0.2rem 0;
}

.event-story__meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.8rem;
}

.event-story__meta span {
    color: oklch(0.44 0.1 202);
    font-size: 0.75rem;
    font-weight: 800;
}

.event-story__meta time {
    color: var(--events-muted);
    font-size: 0.74rem;
    font-weight: 700;
}

.event-story h2 {
    margin: 0;
    font-size: clamp(1.05rem, 1.45vw, 1.27rem);
    font-weight: 850;
    line-height: 1.65;
}

.event-story h2 a {
    display: -webkit-box;
    min-height: 3.3em;
    overflow: hidden;
    color: var(--events-ink);
    text-decoration: none;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.event-story h2 a:hover {
    color: oklch(0.42 0.11 202);
}

.event-story__content > p {
    display: -webkit-box;
    min-height: 5.1em;
    margin: 0.8rem 0 1.1rem;
    overflow: hidden;
    color: var(--events-muted);
    font-size: 0.9rem;
    line-height: 1.7;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.event-story__action {
    display: inline-flex;
    gap: 0.55rem;
    align-items: center;
    align-self: flex-start;
    margin-top: auto;
    color: oklch(0.42 0.11 203);
    font-size: 0.85rem;
    font-weight: 850;
    text-decoration: none;
}

.event-story__action:hover {
    color: var(--events-navy-deep);
    text-decoration: underline;
    text-underline-offset: 0.25rem;
}

[dir='ltr'] .events-archive__feature-caption i,
[dir='ltr'] .event-story__action i {
    transform: rotate(180deg);
}

.events-archive-pagination {
    display: flex;
    justify-content: center;
    margin-top: clamp(3rem, 6vw, 5.5rem);
}

.events-archive-pagination nav {
    width: 100%;
}

.events-archive-pagination .pagination {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0;
}

.events-archive-pagination .page-link {
    display: grid;
    min-width: 2.75rem;
    height: 2.75rem;
    padding: 0.35rem;
    border: 1px solid var(--events-line);
    border-radius: 0.78rem;
    background: var(--events-surface);
    color: var(--events-ink);
    font-weight: 800;
    place-items: center;
}

.events-archive-pagination .active .page-link {
    border-color: var(--events-navy);
    background: var(--events-navy);
    color: oklch(0.98 0.006 202);
}

.events-archive-pagination .disabled .page-link {
    opacity: 0.42;
}

.events-archive-empty {
    display: grid;
    max-width: 38rem;
    margin-inline: auto;
    padding: clamp(2.5rem, 6vw, 5rem);
    border: 1px solid var(--events-line);
    border-radius: 2rem;
    background: var(--events-surface);
    text-align: center;
    place-items: center;
}

.events-archive-empty > span {
    display: grid;
    width: 5rem;
    height: 5rem;
    margin-bottom: 1.3rem;
    border-radius: 50%;
    background: var(--events-cyan-wash);
    color: oklch(0.45 0.105 202);
    place-items: center;
}

.events-archive-empty svg {
    width: 2.8rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 1.5;
}

.events-archive-empty h2 {
    margin: 0 0 0.7rem;
    color: var(--events-ink);
    font-size: clamp(1.5rem, 3vw, 2.15rem);
}

.events-archive-empty p {
    max-width: 45ch;
    margin: 0 0 1.5rem;
    color: var(--events-muted);
    line-height: 1.8;
}

.events-archive-empty a {
    display: inline-flex;
    min-height: 3rem;
    align-items: center;
    padding-inline: 1.35rem;
    border-radius: 999px;
    background: var(--events-navy);
    color: oklch(0.98 0.006 202);
    font-weight: 800;
    text-decoration: none;
}

.events-archive__feature:focus-visible,
.events-archive-filter__control:focus-within,
.events-archive-filter__actions button:focus-visible,
.events-archive-filter__actions a:focus-visible,
.event-story__visual:focus-visible,
.event-story h2 a:focus-visible,
.event-story__action:focus-visible,
.events-archive-pagination .page-link:focus-visible,
.events-archive-empty a:focus-visible {
    outline: 3px solid var(--events-focus);
    outline-offset: 3px;
}

@media (max-width: 72rem) {
    .events-archive__hero-layout.has-feature {
        grid-template-columns: minmax(0, 0.7fr) minmax(27rem, 1.3fr);
        gap: 3rem;
    }

    .events-archive__feature {
        grid-template-columns: minmax(0, 1.25fr) minmax(12rem, 0.75fr);
    }

    .events-archive-filter {
        grid-template-columns: minmax(16rem, 1.5fr) repeat(2, minmax(10rem, 0.75fr));
    }

    .events-archive-filter__actions {
        grid-column: 1 / -1;
        grid-template-columns: minmax(10rem, 14rem) auto;
        align-items: center;
        justify-content: start;
    }
}

@media (max-width: 61rem) {
    .events-archive__hero-layout.has-feature {
        grid-template-columns: 1fr;
    }

    .events-archive__hero-copy {
        max-width: 50rem;
    }

    .events-archive__hero h1 {
        max-width: 14ch;
    }

    .events-archive__feature {
        min-height: 25rem;
    }

    .events-archive__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 48rem) {
    .events-archive__hero {
        padding-block: 3.25rem 4rem;
    }

    .events-archive__hero h1 {
        font-size: clamp(2.6rem, 13vw, 4.5rem);
    }

    .events-archive__feature {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .events-archive__feature-visual {
        min-height: 22rem;
        aspect-ratio: 4 / 3;
    }

    .events-archive__feature-caption {
        min-height: 15rem;
    }

    .events-archive-filter {
        grid-template-columns: 1fr 1fr;
    }

    .events-archive-filter__field--search,
    .events-archive-filter__actions {
        grid-column: 1 / -1;
    }

    .events-archive__section-header {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 38rem) {
    .events-archive__feature-visual {
        min-height: 0;
    }

    .events-archive-filter,
    .events-archive__grid {
        grid-template-columns: 1fr;
    }

    .events-archive-filter__field--search,
    .events-archive-filter__actions {
        grid-column: auto;
    }

    .events-archive-filter__actions {
        grid-template-columns: 1fr;
    }

    .events-archive__section-header h2 {
        font-size: clamp(2rem, 10vw, 3.2rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    .events-archive__feature,
    .events-archive__feature-visual > img,
    .event-story__visual img,
    .events-archive-filter__actions button {
        transition: none;
    }
}
