/* Shared event card layout: /events.php and /residents/events.php */

.events-hub-container {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 900px;
}

.events-hub-container > .content-card > h2:first-child,
.events-hub-container > .content-card > h1:first-child {
    margin-top: 0;
}

.events-stack {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.event-card {
    background: var(--white);
    padding: 1.75rem;
    border-radius: 12px;
    border-left: 5px solid var(--brand-orange);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.event-card--residents-only {
    border-left-color: #34495e;
}

/* Residents hub: outer section uses orange accent; inner event cards use a neutral frame (no stacked orange bars). */
.events-hub-container .content-card .event-card {
    border-left: none;
    border: 1px solid rgba(44, 62, 80, 0.12);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.events-hub-container .content-card .event-card--residents-only {
    border: 1px solid rgba(52, 73, 94, 0.22);
    border-left: 4px solid #34495e;
}

.event-card h3 {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
    color: var(--slate-blue);
}

.event-meta {
    font-size: 0.88rem;
    color: rgba(44, 62, 80, 0.65);
    margin: 0 0 0.5rem;
}

.event-notice {
    font-size: 0.88rem;
    color: rgba(44, 62, 80, 0.78);
    margin: 0.65rem 0 0;
    line-height: 1.45;
}

.event-card p {
    margin: 0;
    color: rgba(44, 62, 80, 0.88);
}

.event-card p + p {
    margin-top: 0.65rem;
}

.event-card a {
    color: var(--brand-orange);
    font-weight: 600;
}

.event-card a:hover {
    text-decoration: underline;
}

.event-card--with-thumb {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 540px) {
    .event-card--with-thumb {
        flex-direction: row;
        align-items: flex-start;
    }
}

.event-thumb-wrap {
    flex-shrink: 0;
}

.event-thumb {
    width: 148px;
    max-width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(44, 62, 80, 0.12);
    display: block;
    vertical-align: middle;
}

.event-body {
    flex: 1;
    min-width: 0;
}

.event-card--with-thumb .event-body h3 {
    margin-top: 0;
}

.event-card ul.match-dates {
    margin: 0.5rem 0 0;
    padding-left: 1.2rem;
    font-size: 0.9rem;
    color: rgba(44, 62, 80, 0.88);
    line-height: 1.5;
}

.event-card ul.match-dates li {
    margin: 0.2rem 0;
}

.events-page .hub-note {
    margin: 0;
    font-size: 0.95rem;
    color: rgba(44, 62, 80, 0.75);
}

.events-empty-note {
    margin: 0;
    font-size: 0.95rem;
    color: rgba(44, 62, 80, 0.65);
    font-style: italic;
}

.event-privacy-tag {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #34495e;
    margin: 0 0 0.35rem;
}

.events-section-lead {
    margin: 0 0 1rem;
    color: rgba(44, 62, 80, 0.88);
    line-height: 1.5;
}

.events-section-lead code {
    font-size: 0.9em;
}
