/*
 * Event Detail page styles — sswsc_events single template
 * Loaded only on singular sswsc_events pages via cpt-cc-framework.php.
 *
 * BEM root: .sswsc-ed
 */

/* ── Widen the Salient container for event detail pages ── */
body.single-sswsc_events {
    --container-width: 1600px;
    --container-padding: 40px;
}

/* ── Hide the theme's auto-breadcrumbs — the template provides its own back link ── */
body.single-sswsc_events p#breadcrumbs {
    display: none;
}

.sswsc-ed {
    --ed-blue:    #174a79;
    --ed-mid:     #2e5b96;
    --ed-sky:     #26a9e0;
    --ed-dark:    #0d2f4d;
    --ed-muted:   #4e6070;
    --ed-border:  #dce8f1;
    padding: 6px 0 56px;
    font-family: inherit;
}

/* ── Back link ── */
.sswsc-ed__back {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 20px;
    color: var(--ed-mid);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.15s;
}
.sswsc-ed__back:hover { opacity: 1; color: var(--ed-mid); }
.sswsc-ed__back svg { width: 16px; height: 16px; fill: currentColor; flex-shrink: 0; }

/* ── Hero card: background-image + title scrim ── */
.sswsc-ed__hero {
    position: relative;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
    margin-bottom: 0;
    background-color: #1a3d5c;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.sswsc-ed__hero-scrim {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 480px;
    padding: 48px 52px;
    background: linear-gradient(
        to top,
        rgba(10, 28, 48, 0.88) 0%,
        rgba(10, 28, 48, 0.55) 45%,
        rgba(10, 28, 48, 0.08) 100%
    );
}
.sswsc-ed__title {
    margin: 0;
    color: #fff;
    font-size: clamp(1.8rem, 4.5vw, 3.4rem);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: 0.035em;
    text-transform: uppercase;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

/* ── No-image fallback: collapse hero entirely ── */
.sswsc-ed__hero--empty {
    display: none;
}

/* ── Title when there is no hero image ── */
.sswsc-ed__title--no-hero {
    color: var(--ed-dark);
    font-size: clamp(1.6rem, 3.5vw, 2.6rem);
    text-shadow: none;
    margin: 8px 0 0;
}

/* ── Info strip (date · location · categories) ── */
.sswsc-ed__strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    background: var(--ed-blue);
    border-radius: 0 0 16px 16px;
    padding: 0 32px;
    margin-bottom: 40px;
}
/* When no hero image, give strip full rounding and a top gap */
.sswsc-ed:has(.sswsc-ed__hero--empty) .sswsc-ed__strip {
    border-radius: 16px;
    margin-top: 16px;
}
.sswsc-ed__strip-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 16px 20px 16px 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.9rem;
    font-weight: 600;
}
.sswsc-ed__strip-item + .sswsc-ed__strip-item {
    padding-left: 20px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}
.sswsc-ed__strip-item svg {
    width: 16px;
    height: 16px;
    fill: var(--ed-sky);
    flex-shrink: 0;
    opacity: 0.95;
}
.sswsc-ed__strip-cats {
    margin-left: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 12px 0;
}
.sswsc-ed__cat {
    display: inline-flex;
    align-items: center;
    padding: 5px 13px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    white-space: nowrap;
}

/* ── Register button ── */
.sswsc-ed__register {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 36px;
    padding: 0 28px;
    min-height: 48px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--ed-dark) 0%, var(--ed-mid) 100%);
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 0 10px 28px rgba(13, 53, 87, 0.2);
    transition: transform 0.15s, box-shadow 0.15s;
}
.sswsc-ed__register:hover,
.sswsc-ed__register:focus {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 14px 34px rgba(13, 53, 87, 0.26);
}
.sswsc-ed__register svg { width: 16px; height: 16px; fill: #fff; }

/* ── Body / content ── */
.sswsc-ed__lead {
    margin: 0 0 24px;
    color: var(--ed-muted);
    font-size: 1.0625rem;
    line-height: 1.68;
}
.sswsc-ed__content > :first-child { margin-top: 0; }
.sswsc-ed__content > p,
.sswsc-ed__content > ul li,
.sswsc-ed__content > ol li {
    color: var(--ed-muted);
    font-size: 1rem;
    line-height: 1.72;
}
.sswsc-ed__content > h2,
.sswsc-ed__content > h3,
.sswsc-ed__content > h4 {
    color: var(--ed-dark);
}
.sswsc-ed .cpt_post_nav { margin-top: 36px; }

/* ── Responsive ── */
@media (max-width: 680px) {
    .sswsc-ed__hero-scrim {
        min-height: 300px;
        padding: 28px 24px 32px;
    }
    .sswsc-ed__strip {
        padding: 0 18px;
        flex-direction: column;
        align-items: flex-start;
    }
    .sswsc-ed__strip-item + .sswsc-ed__strip-item {
        padding-left: 0;
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
    }
    .sswsc-ed__strip-cats {
        margin-left: 0;
        padding: 0 0 14px;
    }
}
