/* ==========================================================================
   Events: list (event_list.html) and detail (event_detail.html)
   The event card itself lives in base.css because the home page uses it too.
   ========================================================================== */

/* ---------- Empty state ---------- */

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 80px 32px;
    border: 1.5px dashed #d4d4cf;
    border-radius: var(--radius-lg);
    text-align: center;
}

.empty-state__mark {
    width: 56px;
    height: auto;
    margin-bottom: 32px;
    fill: var(--black);
}

.empty-state__title {
    font-size: 1.75rem;
    font-weight: 650;
    letter-spacing: -0.03em;
    text-wrap: balance;
}

.empty-state__text {
    max-width: 440px;
    margin: 12px 0 32px;
    color: var(--muted);
}

/* ---------- Commitment notice ---------- */

.notice {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 32px;
    margin-top: 40px;
    padding: 32px;
    border-radius: var(--radius);
    background: var(--paper);
}

.notice__title {
    font-size: 1.125rem;
    font-weight: 650;
    letter-spacing: -0.015em;
}

.notice p {
    color: var(--muted);
    font-size: 0.9688rem;
}

/* ---------- Past events ---------- */

.past-list {
    border-top: 1px solid var(--line);
}

.past-item {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
    text-decoration: none;
}

.past-item__date {
    color: var(--muted);
    font-size: 0.9375rem;
    font-variant-numeric: tabular-nums;
}

.past-item__title {
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: -0.015em;
}

.past-item:hover .past-item__title {
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* ---------- Event detail ---------- */

.event-detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    align-items: start;
    gap: 72px;
}

.event-detail__body {
    max-width: 680px;
    font-size: 1.125rem;
    line-height: 1.7;
}

.event-detail__body p + p {
    margin-top: 1.1em;
}

.event-detail__aside {
    position: sticky;
    top: calc(var(--header-height) + 24px);
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.event-meta {
    margin-bottom: 24px;
}

.event-meta__row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.9688rem;
}

.event-meta__row:first-child {
    padding-top: 0;
}

.event-meta dt {
    color: var(--muted);
}

.event-meta dd {
    font-weight: 600;
    text-align: right;
}

.event-detail__status {
    padding: 14px 18px;
    border-radius: var(--pill);
    background: var(--paper);
    color: var(--muted);
    font-size: 0.9375rem;
    font-weight: 500;
    text-align: center;
}

.event-detail__note {
    margin-top: 16px;
    color: var(--muted);
    font-size: 0.875rem;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
    .event-detail {
        grid-template-columns: minmax(0, 1fr) 320px;
        gap: 48px;
    }
}

@media (max-width: 800px) {
    .notice {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .event-detail {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* show the key facts first on small screens */
    .event-detail__aside {
        position: static;
        order: -1;
    }
}

@media (max-width: 600px) {
    .empty-state {
        padding: 56px 24px;
        border-radius: 28px;
    }

    .empty-state__title {
        font-size: 1.375rem;
    }

    .empty-state .btn {
        width: 100%;
    }

    .notice {
        padding: 24px;
        border-radius: 20px;
    }

    .past-item {
        grid-template-columns: 1fr;
        gap: 6px;
        padding: 18px 0;
    }

    .past-item .tag {
        justify-self: start;
    }

    .event-detail__body {
        font-size: 1.0625rem;
    }

    .event-detail__aside {
        padding: 20px;
        border-radius: 20px;
    }
}
