:root {
    --mmle-ink: #231f2b;
    --mmle-purple: #59417d;
    --mmle-purple-dark: #3e2c59;
    --mmle-purple-light: #74599a;
    --mmle-gold: #d49b35;
    --mmle-gold-light: #f0c678;
    --mmle-soft: #f6f3f8;
    --mmle-border: #e7e2e9;
    --mmle-muted: #716b75;
    --mmle-white: #ffffff;
    --mmle-shadow: 0 18px 45px rgba(39, 24, 52, 0.1);
    --mmle-shadow-hover: 0 24px 60px rgba(39, 24, 52, 0.17);
    --mmle-radius: 18px;
    --mmle-transition: 0.3s ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

.mmle-page {
    color: var(--mmle-ink);
    background: var(--mmle-white);
    overflow-x: hidden;
}

.mmle-page img {
    display: block;
    max-width: 100%;
}

.mmle-container {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

/* ==============================
   General typography
============================== */

.mmle-page h1,
.mmle-page h2,
.mmle-page h3 {
    color: var(--mmle-ink);
    letter-spacing: -0.025em;
}

.mmle-page p {
    line-height: 1.75;
}

.mmle-eyebrow {
    display: inline-block;
    margin: 0;
    color: var(--mmle-gold-light);
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.18em;
}

/* ==============================
   Main listing hero
============================== */

.mmle-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 105px 0 85px;
    color: var(--mmle-white);
    background:
        radial-gradient(
            circle at 85% 15%,
            rgba(240, 198, 120, 0.18),
            transparent 32%
        ),
        linear-gradient(135deg, #291d3a 0%, #59417d 60%, #6c4f91 100%);
}

.mmle-hero::before {
    position: absolute;
    z-index: -1;
    top: -140px;
    right: -120px;
    width: 420px;
    height: 420px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 50%;
    content: "";
}

.mmle-hero::after {
    position: absolute;
    z-index: -1;
    right: 130px;
    bottom: -210px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.045);
    content: "";
}

.mmle-hero h1 {
    max-width: 900px;
    margin: 0.18em 0 0.28em;
    color: var(--mmle-white);
    font-size: clamp(2.6rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.045em;
}

.mmle-hero p {
    max-width: 720px;
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(1rem, 2vw, 1.15rem);
}

/* ==============================
   Listing and filters
============================== */

.mmle-listing {
    padding: 75px 0 95px;
    background:
        linear-gradient(
            to bottom,
            rgba(246, 243, 248, 0.55),
            rgba(255, 255, 255, 0) 220px
        );
}

.mmle-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 38px;
}

.mmle-filters button {
    min-height: 44px;
    padding: 10px 22px;
    border: 1px solid #ded8e4;
    border-radius: 999px;
    color: var(--mmle-ink);
    background: var(--mmle-white);
    box-shadow: 0 5px 15px rgba(39, 24, 52, 0.04);
    cursor: pointer;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 750;
    transition:
        color var(--mmle-transition),
        background var(--mmle-transition),
        border-color var(--mmle-transition),
        box-shadow var(--mmle-transition),
        transform var(--mmle-transition);
}

.mmle-filters button:hover,
.mmle-filters button:focus-visible {
    border-color: var(--mmle-purple);
    color: var(--mmle-purple);
    box-shadow: 0 8px 20px rgba(89, 65, 125, 0.12);
    transform: translateY(-2px);
}

.mmle-filters button.is-active {
    border-color: var(--mmle-purple);
    color: var(--mmle-white);
    background: var(--mmle-purple);
    box-shadow: 0 10px 24px rgba(89, 65, 125, 0.24);
}

/* ==============================
   Event cards
============================== */

.mmle-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}

.mmle-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--mmle-border);
    border-radius: var(--mmle-radius);
    background: var(--mmle-white);
    box-shadow: 0 8px 28px rgba(39, 24, 52, 0.055);
    transition:
        transform var(--mmle-transition),
        box-shadow var(--mmle-transition),
        border-color var(--mmle-transition);
}

.mmle-card:hover {
    border-color: rgba(89, 65, 125, 0.22);
    box-shadow: var(--mmle-shadow-hover);
    transform: translateY(-8px);
}

.mmle-card[hidden] {
    display: none;
}

.mmle-card__image {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: var(--mmle-soft);
}

.mmle-card__image::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(27, 18, 37, 0.24),
        transparent 52%
    );
    content: "";
    pointer-events: none;
}

.mmle-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.65s ease;
}

.mmle-card:hover .mmle-card__image img {
    transform: scale(1.075);
}

.mmle-placeholder {
    display: grid;
    height: 100%;
    place-items: center;
    color: var(--mmle-purple);
    background:
        radial-gradient(
            circle at top right,
            rgba(212, 155, 53, 0.15),
            transparent 40%
        ),
        var(--mmle-soft);
    font-size: 3rem;
    font-weight: 850;
}

.mmle-card__image .mmle-badge {
    position: absolute;
    z-index: 2;
    right: 16px !important;
    bottom: 16px !important;
}
.mmle-card__image .mmle-badge,
.mmle-card__image .custom-badge.mmle-badge {
    position: absolute !important;
    top: auto !important;
    left: auto !important;
    right: 15px !important;
    bottom: 15px !important;
}
.mmle-badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 7px 13px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(18, 11, 24, 0.16);
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
    font-size: 0.72rem;
    font-weight: 850;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.mmle-badge--upcoming {
    color: #ffffff;
    background: rgba(29, 132, 67, 0.92);
}

.mmle-badge--past {
    color: #ffffff;
    background: rgba(73, 67, 78, 0.88);
}

.mmle-card__body {
    padding: 27px 27px 29px;
}

.mmle-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 12px;
    margin: 0;
    color: var(--mmle-muted);
    font-size: 0.84rem;
    font-weight: 550;
}

.mmle-card__title {
    margin: 13px 0 11px;
    font-size: clamp(1.22rem, 2vw, 1.45rem);
    font-weight: 750;
    line-height: 1.28;
}

.mmle-card__title a {
    color: var(--mmle-ink);
    text-decoration: none;
    transition: color var(--mmle-transition);
}

.mmle-card__title a:hover {
    color: var(--mmle-purple);
}

.mmle-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    color: var(--mmle-purple);
    font-weight: 800;
    text-decoration: none;
    transition:
        color var(--mmle-transition),
        gap var(--mmle-transition);
}

.mmle-link::after {
    content: "→";
    font-size: 1.1em;
}

.mmle-link:hover {
    gap: 12px;
    color: var(--mmle-gold);
}

.mmle-empty {
    grid-column: 1 / -1;
    padding: 35px;
    border: 1px dashed #d9d1df;
    border-radius: var(--mmle-radius);
    text-align: center;
    background: var(--mmle-soft);
}

/* ==============================
   Breadcrumb
============================== */

.mmle-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 28px 0;
    color: var(--mmle-muted);
    font-size: 0.9rem;
}

.mmle-breadcrumb a {
    color: var(--mmle-purple);
    text-decoration: none;
}

.mmle-breadcrumb a:hover {
    text-decoration: underline;
}

/* ==============================
   Original single event layout
============================== */

.mmle-single__header {
    max-width: 850px;
    padding: 45px 0;
}

.mmle-single__header h1 {
    margin: 0.25em 0;
    font-size: clamp(2.3rem, 5vw, 4.2rem);
    font-weight: 800;
    line-height: 1.07;
}

.mmle-intro {
    max-width: 760px;
    color: #5f5864;
    font-size: clamp(1.08rem, 2vw, 1.22rem);
    line-height: 1.7;
}

.mmle-featured {
    margin: 0 0 50px;
}

.mmle-featured img {
    width: 100%;
    max-height: 650px;
    border-radius: var(--mmle-radius);
    box-shadow: var(--mmle-shadow);
    object-fit: cover;
}

.mmle-single__layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 65px;
    padding-bottom: 90px;
}

.mmle-content {
    color: #433d47;
    font-size: 1.05rem;
    line-height: 1.8;
}

.mmle-content a {
    color: var(--mmle-purple);
    font-weight: 700;
}

.mmle-content img {
    height: auto;
    border-radius: 12px;
}

.mmle-details {
    align-self: start;
    padding: 30px;
    border: 1px solid #e4dfe7;
    border-top: 4px solid var(--mmle-gold);
    border-radius: var(--mmle-radius);
    background: var(--mmle-soft);
    box-shadow: 0 16px 38px rgba(39, 24, 52, 0.07);
}

.mmle-details h2 {
    margin-top: 0;
}

.mmle-details dl {
    margin: 0;
}

.mmle-details dl div {
    padding: 15px 0;
    border-bottom: 1px solid #ded8e4;
}

.mmle-details dl div:last-child {
    border-bottom: 0;
}

.mmle-details dt {
    font-weight: 800;
}

.mmle-details dd {
    margin: 5px 0 0;
    color: #5f5864;
}

/* ==============================
   Buttons
============================== */

.mmle-button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    margin-top: 22px;
    padding: 14px 22px;
    border: 1px solid var(--mmle-purple);
    border-radius: 10px;
    color: var(--mmle-white) !important;
    background: var(--mmle-purple);
    box-shadow: 0 12px 28px rgba(89, 65, 125, 0.23);
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    transition:
        background var(--mmle-transition),
        border-color var(--mmle-transition),
        box-shadow var(--mmle-transition),
        transform var(--mmle-transition);
}

.mmle-button:hover {
    border-color: var(--mmle-purple-dark);
    background: var(--mmle-purple-dark);
    box-shadow: 0 16px 34px rgba(62, 44, 89, 0.3);
    transform: translateY(-2px);
}

.mmle-button:focus-visible,
.mmle-filters button:focus-visible,
.mmle-link:focus-visible,
.mmle-card__title a:focus-visible {
    outline: 3px solid rgba(212, 155, 53, 0.55);
    outline-offset: 3px;
}

/* ==============================
   Gallery
============================== */

.mmle-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 17px;
    margin-top: 38px;
}

.mmle-gallery img {
    width: 100%;
    height: 250px;
    border-radius: 12px;
    object-fit: cover;
    transition:
        transform 0.4s ease,
        box-shadow 0.4s ease;
}

.mmle-gallery img:hover {
    box-shadow: 0 16px 35px rgba(39, 24, 52, 0.16);
    transform: translateY(-4px);
}

/* ==============================
   Event hero
============================== */

.mmle-event-hero {
    position: relative;
    display: flex;
    min-height: 610px;
    align-items: flex-end;
    overflow: hidden;
    color: var(--mmle-white);
    background: linear-gradient(135deg, #281b37, #604783);
}

.mmle-event-hero__media,
.mmle-event-hero__shade {
    position: absolute;
    inset: 0;
}

.mmle-event-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: mmleHeroZoom 14s ease-out both;
}

@keyframes mmleHeroZoom {
    from {
        transform: scale(1.04);
    }

    to {
        transform: scale(1.12);
    }
}

.mmle-event-hero__shade {
    background:
        linear-gradient(
            90deg,
            rgba(25, 15, 35, 0.94) 0%,
            rgba(36, 23, 48, 0.75) 52%,
            rgba(36, 23, 48, 0.25) 100%
        ),
        linear-gradient(
            0deg,
            rgba(22, 14, 29, 0.6),
            transparent 55%
        );
}

.mmle-event-hero__content {
    position: relative;
    z-index: 1;
    padding-top: 100px;
    padding-bottom: 80px;
}

.mmle-event-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 42px;
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.88rem;
}

.mmle-event-breadcrumb a {
    color: var(--mmle-white);
    text-decoration: none;
}

.mmle-event-breadcrumb a:hover {
    text-decoration: underline;
}

.mmle-event-hero h1 {
    max-width: 930px;
    margin: 17px 0 18px;
    color: var(--mmle-white);
    font-size: clamp(2.7rem, 6vw, 5.2rem);
    font-weight: 820;
    line-height: 1.01;
    letter-spacing: -0.045em;
}

.mmle-event-hero__intro {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    line-height: 1.7;
}

/* ==============================
   Event facts
============================== */

.mmle-event-facts {
    position: relative;
    z-index: 3;
    border-bottom: 1px solid #e8e2eb;
    background: var(--mmle-white);
    box-shadow: 0 12px 32px rgba(39, 25, 52, 0.07);
}

.mmle-event-facts__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mmle-event-facts__grid > div {
    min-width: 0;
    padding: 29px 26px;
    border-right: 1px solid #e8e2eb;
    transition: background var(--mmle-transition);
}

.mmle-event-facts__grid > div:hover {
    background: #faf8fb;
}

.mmle-event-facts__grid > div:first-child {
    padding-left: 0;
}

.mmle-event-facts__grid > div:last-child {
    border-right: 0;
}

.mmle-event-facts span,
.mmle-event-panel__item > span {
    display: block;
    margin-bottom: 8px;
    color: #7a7180;
    font-size: 0.7rem;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0.13em;
}

.mmle-event-facts strong {
    display: block;
    overflow-wrap: anywhere;
    font-size: 0.98rem;
    line-height: 1.5;
}

/* ==============================
   Event content and sidebar
============================== */

.mmle-event-main {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(290px, 0.75fr);
    gap: 76px;
    padding-top: 90px;
    padding-bottom: 105px;
}

.mmle-event-story > .mmle-eyebrow {
    display: block;
    margin-bottom: 22px;
    color: var(--mmle-purple);
}

.mmle-event-story .mmle-content {
    color: #433d47;
    font-size: 1.08rem;
    line-height: 1.82;
}

.mmle-event-story .mmle-content > :first-child {
    margin-top: 0;
}

.mmle-event-story .mmle-content h2 {
    margin: 1.6em 0 0.55em;
    color: var(--mmle-ink);
    font-size: clamp(1.8rem, 3vw, 2.65rem);
    font-weight: 780;
    line-height: 1.14;
}

.mmle-event-story .mmle-content h3 {
    margin: 1.5em 0 0.5em;
    color: var(--mmle-ink);
    font-size: 1.45rem;
}

.mmle-event-story .mmle-content ul,
.mmle-event-story .mmle-content ol {
    padding-left: 1.3em;
}

.mmle-event-story .mmle-content li {
    margin-bottom: 0.55em;
}

.mmle-event-panel {
    position: sticky;
    top: 30px;
    align-self: start;
    overflow: hidden;
    padding: 32px;
    border: 1px solid #e5dfe8;
    border-top: 5px solid var(--mmle-gold);
    border-radius: var(--mmle-radius);
    background:
        radial-gradient(
            circle at top right,
            rgba(212, 155, 53, 0.1),
            transparent 42%
        ),
        var(--mmle-soft);
    box-shadow: 0 18px 45px rgba(42, 24, 59, 0.09);
}

.mmle-event-panel h2 {
    margin: 0 0 21px;
    font-size: 1.6rem;
    font-weight: 780;
}

.mmle-event-panel__item {
    padding: 17px 0;
    border-top: 1px solid #dfd8e4;
}

.mmle-event-panel__item p {
    margin: 0;
    color: #4f4854;
    line-height: 1.65;
}

.mmle-event-panel__item a {
    color: var(--mmle-purple);
    font-weight: 750;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.mmle-event-panel__item a:hover {
    text-decoration: underline;
}

.mmle-event-panel .mmle-button {
    border-radius: 10px;
}

/* ==============================
   Responsive layout
============================== */

@media (max-width: 900px) {
    .mmle-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mmle-single__layout {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .mmle-details {
        width: 100%;
    }

    .mmle-event-hero {
        min-height: 530px;
    }

    .mmle-event-facts__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mmle-event-facts__grid > div:first-child {
        padding-left: 26px;
    }

    .mmle-event-facts__grid > div:nth-child(2) {
        border-right: 0;
    }

    .mmle-event-facts__grid > div:nth-child(n + 3) {
        border-top: 1px solid #e8e2eb;
    }

    .mmle-event-main {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .mmle-event-panel {
        position: static;
    }
}

@media (max-width: 600px) {
    .mmle-container {
        width: min(100% - 28px, 1180px);
    }

    .mmle-hero {
        padding: 72px 0 58px;
    }

    .mmle-hero h1 {
        letter-spacing: -0.035em;
    }

    .mmle-listing {
        padding: 55px 0 70px;
    }

    .mmle-filters {
        gap: 8px;
        margin-bottom: 28px;
    }

    .mmle-filters button {
        flex: 1 1 auto;
        padding: 9px 16px;
        font-size: 0.85rem;
    }

    .mmle-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .mmle-card__body {
        padding: 23px;
    }

    .mmle-gallery {
        grid-template-columns: 1fr;
    }

    .mmle-gallery img {
        height: auto;
        max-height: 420px;
    }

    .mmle-event-hero {
        min-height: 500px;
    }

    .mmle-event-hero__content {
        padding-top: 62px;
        padding-bottom: 52px;
    }

    .mmle-event-breadcrumb {
        margin-bottom: 28px;
    }

    .mmle-event-hero h1 {
        font-size: clamp(2.35rem, 12vw, 3.4rem);
        letter-spacing: -0.035em;
    }

    .mmle-event-facts__grid {
        grid-template-columns: 1fr;
    }

    .mmle-event-facts__grid > div,
    .mmle-event-facts__grid > div:first-child {
        padding: 21px 0;
        border-top: 1px solid #e8e2eb;
        border-right: 0;
    }

    .mmle-event-facts__grid > div:first-child {
        border-top: 0;
    }

    .mmle-event-main {
        gap: 40px;
        padding-top: 60px;
        padding-bottom: 72px;
    }

    .mmle-event-panel {
        padding: 25px;
    }
}

/* ==============================
   Reduced motion accessibility
============================== */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}