/* outreach.css - the Outreach page: event headings, results chips, photo captions */

/* ── event: a hairline above, the name, then date and place ── */
.ed-event {
    margin-top: 2.8rem;
    padding-top: 1.6rem;
    border-top: 1px solid rgba(49, 64, 49, 0.12);
    margin-bottom: -0.2rem;
}
.sp-heading + .ed-event { margin-top: 1.2rem; padding-top: 0; border-top: 0; }
.ed-event-title {
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.35;
    letter-spacing: -0.01em;
}
.ed-event-meta {
    margin: 0.4rem 0 0;
    font-family: 'Quicksand', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* ── results: label, then one chip per result ── */
.ed-results {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.7rem;
}
.ed-results-label {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--ink, #243024);
}
.ed-results-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.ed-result {
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(49, 64, 49, 0.16);
    background: rgba(49, 64, 49, 0.07);
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--ink, #243024);
}

/* ── photos: the caption under the row(s), as in the source ── */
.sp-photos-caption {
    margin: -0.2rem auto 0;
    max-width: 38rem;
    font-size: 0.82rem;
    font-style: italic;
    line-height: 1.55;
    text-align: center;
    color: var(--text-muted);
}
.sp-photos-caption p { margin: 0; }
.sp-photos-caption p + p { margin-top: 0.3rem; }
.sp-photos-caption a { overflow-wrap: anywhere; }

/* a phone: three portrait posts in a row get too small, so they wrap two and one */
@media (max-width: 560px) {
    .sp-photo-row:has(> .sp-photo:nth-child(3)) { flex-wrap: wrap; justify-content: center; }
    .sp-photo-row:has(> .sp-photo:nth-child(3)) > .sp-photo { flex: 0 0 calc(50% - 0.5rem); }
}

/* a deeper fade under the collage hero so the title reads over the photos, as on Entrepreneurship */
.team-hero-clean::after {
    background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.5) 25%, rgba(0,0,0,0.12) 50%, transparent 68%);
}
html[data-dark] .team-hero-clean::after {
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.58) 25%, rgba(0,0,0,0.16) 50%, transparent 68%);
}

html[data-dark] .ed-event { border-top-color: var(--d-hairline); }
html[data-dark] .ed-results-label { color: var(--text-strong); }
html[data-dark] .ed-result { background: var(--d-tint); border-color: var(--d-hairline-2); color: var(--text-body); }
