/* events.css — Compact event section styles
   Ponytail: no hero-event, no padding waste */

/* ─── Events Container ─── */
#events-container {
    padding-bottom: 80px; /* Space for fixed footer */
}

/* ─── Event section wrapper ─── */
.event-section {
    border-bottom: 2px solid #e2e8f0;
}
.event-section:last-of-type { border-bottom: none; }

/* Zebra banding */
.event-section:nth-child(even) .event-meta {
    background: #f0f7ff; /* Light Blue from MISA Branding */
}
.event-section:nth-child(odd) .event-meta {
    background: #ffffff;
}

/* ─── Lazy reveal ─── */
.event-section[data-lazy] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}
.event-section[data-lazy].is-visible { opacity: 1; transform: none; }

/* ─── Event meta (clickable header) ─── */
.event-meta {
    padding: 16px 0;
    cursor: pointer;
    background: #fff;
    transition: background 0.2s ease;
}
.event-meta:hover {
    background: #f8fafc;
}
.event-meta .container { max-width: var(--misa-container); margin: 0 auto; padding: 0 var(--misa-gap); }
.event-meta-title {
    font-size: 16px;
    font-weight: 700;
    color: #0d1b5e;
    margin-bottom: 6px;
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.event-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #475569;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.event-meta-row span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.event-meta-row svg { flex-shrink: 0; color: #2662ff; }

/* ─── Agents section (Collapsible) ─── */
.agents-section {
    display: none;
    padding: 20px 0 36px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}
.event-section.is-expanded .agents-section {
    display: block;
}
.agents-section .section-heading {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 14px;
}

/* ─── Table ─── */
.misa-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.misa-table thead { background: #f1f5f9; }
.misa-table th {
    padding: 11px 16px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    border-bottom: 1px solid #e2e8f0;
}
.misa-table td {
    padding: 11px 16px;
    font-size: 13px;
    color: #334155;
    border-bottom: 1px solid #f0f4f8;
    vertical-align: top;
}
.misa-table tbody tr:last-child td { border-bottom: none; }
.misa-table tbody tr:hover td { background: #f8fafc; }
.misa-table-link { color: #2662ff; font-weight: 500; font-size: 13px; }
.misa-table-link:hover { text-decoration: underline; }
@media (max-width: 640px) { .misa-table { display: block; overflow-x: auto; } }

/* ─── Wrap event-meta in container ─── */
.event-meta-inner {
    max-width: var(--misa-container);
    margin: 0 auto;
    padding: 0 var(--misa-gap);
}
