/* Event-detail layout: heading, media, schedule metadata, event prose, RSVP
   controls, responsive breakpoints, and accessible interaction states. */

.event-page {
    background: #fafaff;
}

.event-page-main.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: clamp(48px, 6vw, 86px) 28px clamp(76px, 9vw, 128px);
}

.event-detail {
    color: var(--txt-dark);
    font-family: 'DM Sans', sans-serif;
}

.event-back-link {
    width: fit-content;
    margin: 0 0 clamp(30px, 4vw, 46px);
    padding: 10px 15px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    border: 1px solid #dfdeeb;
    border-radius: 999px;
    background: #fff;
    color: #4b4e61 !important;
    font-family: 'DM Sans', sans-serif;
    font-size: .88rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(30, 25, 78, .06);
    transition: color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.event-back-link i { color: #6658e8; font-size: .78rem; }

.event-back-link:hover {
    border-color: #bdb7ec;
    color: #3f31b6 !important;
    transform: translateX(-3px);
    box-shadow: 0 9px 24px rgba(30, 25, 78, .1);
}

.event-back-link:focus-visible {
    outline: 3px solid rgba(102, 88, 232, .25);
    outline-offset: 3px;
}

.event-head {
    max-width: 980px;
    margin: 0 auto clamp(30px, 4vw, 50px);
    text-align: center;
}

.event-category,
.section-kicker,
.event-meta-kicker {
    display: inline-block;
    color: #6758e9;
    font-family: 'Manrope', sans-serif;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .14em;
    line-height: 1.2;
    text-transform: uppercase;
}

.event-category {
    margin-bottom: 18px;
    padding: 9px 14px;
    border: 1px solid rgba(102, 88, 232, .2);
    border-radius: 999px;
    background: rgba(102, 88, 232, .07);
}

.event-title {
    margin: 0;
    color: #17182b;
    font-family: 'Platypi', serif;
    font-size: clamp(2.65rem, 6vw, 5.8rem);
    font-weight: 600;
    letter-spacing: -.055em;
    line-height: .98;
    text-wrap: balance;
}

/* Image and visit-information columns. */
.event-overview {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, .7fr);
    align-items: stretch;
    gap: 22px;
}

.event-media {
    position: relative;
    min-height: 520px;
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(35, 29, 76, .1);
    border-radius: 28px;
    background: #090b18;
    box-shadow: 0 28px 75px rgba(30, 25, 78, .16);
}

.event-media::after {
    position: absolute;
    inset: 0;
    background: transparent;
    content: '';
    pointer-events: none;
}

.event-hero-img {
    width: 100%;
    height: 100%;
    min-height: 520px;
    display: block;
    object-fit: cover;
}

.event-meta {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(28px, 3vw, 42px);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 28px;
    background: #101327;
    color: #fff;
    box-shadow: 0 28px 75px rgba(30, 25, 78, .16);
}

.event-meta::before,
.event-meta::after {
    position: absolute;
    z-index: -1;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(255,255,255,.8);
    box-shadow: 38px 42px rgba(255,255,255,.35), 122px 18px rgba(255,255,255,.55), 196px 80px rgba(255,255,255,.3), 264px 28px rgba(255,255,255,.45);
    content: '';
}

.event-meta::before { top: 22px; left: 28px; }
.event-meta::after { right: 38px; bottom: 36px; transform: rotate(150deg); }

.event-meta-heading {
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(255,255,255,.12);
}

.event-meta-kicker { color: #aaa0ff; }

.event-meta h2 {
    margin: 9px 0 0;
    font-family: 'Platypi', serif;
    font-size: clamp(1.65rem, 2.4vw, 2.2rem);
    font-weight: 500;
    letter-spacing: -.035em;
    line-height: 1.1;
}

.meta-list {
    display: grid;
    gap: 0;
}

.meta-item {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 15px;
    padding: 24px 0;
    border-bottom: 1px solid rgba(255,255,255,.1);
}

.meta-item:last-child { border-bottom: 0; }

.meta-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(181, 172, 255, .24);
    border-radius: 13px;
    background: rgba(134, 116, 255, .12);
    color: #b8afff;
    font-size: 1rem;
}

.meta-label,
.meta-value {
    display: block;
}

.meta-label {
    margin: 1px 0 5px;
    color: #aeb2c5;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .075em;
    text-transform: uppercase;
}

.meta-value {
    color: #f8f8ff;
    font-size: .98rem;
    font-weight: 600;
    line-height: 1.45;
}

.meta-time time { display: block; }
.time-separator { display: block; margin: 3px 0; color: #858ba5; font-size: .76rem; text-transform: uppercase; }

/* Long-form description and RSVP card. */
.event-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: 22px;
    margin-top: 22px;
}

.event-prose,
.rsvp {
    margin: 0;
    padding: clamp(30px, 4vw, 46px);
    border: 1px solid #e5e3ef;
    border-radius: 28px;
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 16px 50px rgba(30, 25, 78, .07);
}

.event-prose h2,
.rsvp h2 {
    margin: 9px 0 18px;
    color: #17182b;
    font-family: 'Platypi', serif;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 500;
    letter-spacing: -.035em;
    line-height: 1.1;
}

.event-prose p {
    margin: 0;
    color: #55596d;
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    line-height: 1.8;
}

.rsvp {
    width: 100%;
    justify-self: stretch;
    padding: 30px 32px;
    text-align: center;
    background: #fff;
}

.rsvp h2 {
    margin-bottom: 14px;
    font-size: clamp(1.75rem, 2.4vw, 2.2rem);
}

.rsvp-prompt {
    margin: -5px 0 20px;
    color: #696d7d;
    font-size: .95rem;
}

.event-detail .rsvp-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 9px;
}

.event-detail .rsvp-button {
    width: auto;
    min-width: 132px;
    min-height: 54px;
    margin: 0;
    padding: 10px 14px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid transparent;
    border-radius: 14px;
    font: 700 .86rem/1 'DM Sans', sans-serif;
    cursor: pointer;
    transition: transform .2s ease, border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.rsvp-icon {
    width: 25px;
    height: 25px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: .65rem;
}

.rsvp-yes {
    border-color: #c9c3fa;
    background: #eeeaff;
    color: #4e3fd1;
}

.rsvp-yes .rsvp-icon { background: #6658e8; color: #fff; }

.rsvp-maybe {
    border-color: #e8ddbd;
    background: #fffaf0;
    color: #735f2c;
}

.rsvp-maybe .rsvp-icon { background: #e2bd58; color: #352b10; }

.rsvp-no {
    border-color: #dedfe7;
    background: #f5f5f8;
    color: #5e6170;
}

.rsvp-no .rsvp-icon { background: #777b8c; color: #fff; }

.event-detail .rsvp-button:hover {
    transform: translateY(-2px);
    border-color: currentColor;
    box-shadow: 0 9px 20px rgba(42, 35, 92, .1);
}

.event-detail .rsvp-yes:hover {
    border-color: #8e82ee;
    background: #e5e0ff;
    color: #4335bd;
}

.event-detail .rsvp-maybe:hover {
    border-color: #d6b553;
    background: #fff5d9;
    color: #655015;
}

.event-detail .rsvp-no:hover {
    border-color: #aeb0bc;
    background: #ececf1;
    color: #4e5160;
}

.event-detail .rsvp-button:active { transform: translateY(0); }

.event-detail .rsvp-button:focus-visible {
    outline: 3px solid rgba(102, 88, 232, .28);
    outline-offset: 3px;
}

.rsvp-count {
    width: fit-content;
    margin: 20px auto 0;
    padding: 9px 13px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #e2e0ee;
    border-radius: 999px;
    background: #fff;
    color: #5f6272;
    font-size: .83rem;
    font-weight: 600;
}

.rsvp-count i { color: #6658e8; }
.rsvp-count strong { color: #17182b; }

@media (max-width: 980px) {
    .event-overview {
        grid-template-columns: 1fr;
    }

    .event-media,
    .event-hero-img { min-height: 440px; }

    .event-meta { display: grid; grid-template-columns: .7fr 1.3fr; align-items: center; }
    .event-meta-heading { padding: 0 26px 0 0; border-right: 1px solid rgba(255,255,255,.12); border-bottom: 0; }
    .meta-list { padding-left: 26px; }
}

@media (max-width: 680px) {
    .event-page-main.container { padding: 38px 18px 76px; }
    .event-head { margin-bottom: 26px; }
    .event-title { font-size: clamp(2.35rem, 13vw, 3.8rem); }
    .event-category { margin-bottom: 14px; }

    .event-media,
    .event-meta,
    .event-prose,
    .rsvp { border-radius: 22px; }

    .event-media,
    .event-hero-img { min-height: 310px; }
    .event-meta { display: block; padding: 28px; }
    .event-meta-heading { padding: 0 0 22px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.12); }
    .meta-list { padding-left: 0; }
    .event-prose, .rsvp { padding: 28px; }
    .event-detail .rsvp-row {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .event-detail .rsvp-button { width: 100%; min-width: 0; }
}

@media (max-width: 430px) {
    .event-media,
    .event-hero-img { min-height: 255px; }

    .event-detail .rsvp-row { grid-template-columns: 1fr; }
    .event-detail .rsvp-button { width: 100%; min-height: 50px; flex-direction: row; gap: 9px; }
}

@media (prefers-reduced-motion: reduce) {
    .rsvp-button { transition: none; }
}
