/*
 * "Contest ended" treatment — shared by every legacy EB contest /
 * sweepstakes URL (see config/contests.php). Loaded via @push('styles').
 * All these pages are EB-only, so this lives under assets/eb/. Brand
 * accents use the --brand-* tokens (resources/css/eb/brand.css); never
 * hardcode brand hex here.
 */

.contest-ended {
    padding: 4rem 0 5rem;
    text-align: center;
}

.contest-ended__inner {
    max-width: 720px;
    margin: 0 auto;
}

/* =================================================================
   1. PAGE HEADER
   ================================================================= */
.contest-ended__title {
    font-weight: 900;
    text-transform: uppercase;
    font-size: 2.5rem;
    line-height: 1.1;
    letter-spacing: 0.02em;
    color: #212529;
    margin-bottom: 1.25rem;
    /* Long uppercase titles must wrap rather than force horizontal scroll at
       narrow widths (WCAG 1.4.10 Reflow — no h-scroll down to 320px). */
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

/* =================================================================
   2. ENDED COPY (block-driven)
   ================================================================= */
.contest-ended__message {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 2.5rem;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* Optional per-page call-to-action button (config-driven). */
.contest-ended__cta {
    margin: 0 0 2.5rem;
}

.contest-ended__cta-btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-weight: 700;
}

/* =================================================================
   3. SOCIAL CTA
   ================================================================= */
.contest-ended__social {
    margin-bottom: 3rem;
}

.contest-ended__social-heading {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--brand-accent-text, var(--brand-primary)); /* the accent AS TEXT on white is 3.58:1; AA pink 5.83:1 (WAVE, 2026-09-21) */
    margin-top: 0;
    margin-bottom: 1rem;
}

.contest-ended__social-row {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    /* Rendered as a semantic <ul>; strip default list chrome. */
    list-style: none;
    margin: 0;
    padding: 0;
}

.contest-ended__social-item {
    display: flex;
}

.contest-ended__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid #ddd;
    border-radius: 50%;
    color: #333;
    font-size: 1.125rem;
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.contest-ended__social-link:hover,
.contest-ended__social-link:focus-visible {
    /* AA fill pair, not the raw accent: white on #ff10a4 is 3.58:1. */
    color: var(--brand-on-primary, #fff);
    background-color: var(--brand-primary-fill, var(--brand-primary));
    border-color: var(--brand-primary-fill, var(--brand-primary));
}

.contest-ended__social-link:focus-visible {
    outline: 2px solid var(--brand-primary);
    outline-offset: 3px;
}

/* =================================================================
   4. SALVAGED ARTWORK
   ================================================================= */
.contest-ended__artwork {
    margin: 0 auto;
    max-width: 640px;
}

.contest-ended__artwork-img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 60svh;
    object-fit: contain;
    margin: 0 auto;
}

/* =================================================================
   5. RESPONSIVE — 375 / 768 / 1440
   ================================================================= */
@media (max-width: 767.98px) {
    .contest-ended {
        padding: 2.5rem 0 3rem;
    }

    .contest-ended__title {
        font-size: 1.75rem;
    }

    .contest-ended__message {
        font-size: 1rem;
    }
}
