/*-- -------------------------- -->
<---  Casino list and guide pages  -->
<--- -------------------------- -*/

/* Shared by /sweepstakes-casinos, /new-sweepstakes-casinos, /sweeps-coins,
   /lowest-redemption-sweepstakes-casinos and /opportunities/welcome.
   Semantic tokens only (tokens.css), so dark mode follows automatically. */

/*-- ---------- Hero ---------- -*/
.cl-hero {
    padding: clamp(7rem, 12vw, 10rem) 1rem clamp(2rem, 5vw, 3rem);
    border-bottom: 1px solid var(--border);
    background: var(--surface-sunken);
}

.cl-hero .cs-container,
.cl-body .cs-container {
    width: 100%;
    max-width: 60rem;
    margin: auto;
}

.cl-hero .cs-content {
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.cl-hero .cs-title {
    font-size: clamp(2rem, 5.5vw, 3rem);
    max-width: 24ch;
    margin-bottom: 1rem;
}

.cl-hero .cs-text {
    max-width: var(--measure);
    margin-bottom: 1.25rem;
}

.cl-stats {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem clamp(1.25rem, 4vw, 2.5rem);
}

.cl-stats li {
    display: flex;
    flex-direction: column;
}

.cl-stats strong {
    font-size: 1.5rem;
    line-height: 1.2;
    color: var(--text);
}

.cl-stats span {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.cl-updated {
    margin: 1rem 0 0;
    font-size: 0.875rem;
    color: var(--text-muted);
}

/*-- ---------- Body ---------- -*/
.cl-body {
    padding: clamp(2rem, 5vw, 3.5rem) 1rem clamp(3rem, 7vw, 5rem);
    background: var(--surface);
}

.cl-section {
    margin-bottom: clamp(2.5rem, 6vw, 3.5rem);
}

.cl-section > h2,
.cl-faq > h2,
.cl-related > h2 {
    font-size: clamp(1.375rem, 3.5vw, 1.75rem);
    line-height: 1.25;
    margin: 0 0 0.75rem;
    color: var(--text);
}

.cl-section h3 {
    font-size: 1.125rem;
    margin: 1.5rem 0 0.5rem;
    color: var(--text);
}

.cl-section p,
.cl-section li {
    max-width: var(--measure);
    color: var(--text-body);
    line-height: 1.65;
}

.cl-section p {
    margin: 0 0 1rem;
}

.cl-section ul.cl-bullets,
.cl-section ol.cl-bullets {
    padding-left: 1.25rem;
    margin: 0 0 1rem;
}

.cl-section ul.cl-bullets li,
.cl-section ol.cl-bullets li {
    margin-bottom: 0.5rem;
}

.cl-body a:not(.cl-button):not(.cl-casino):not(.cl-related__link) {
    color: var(--text-link);
}

.cl-note {
    padding: 0.875rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface-sunken);
    font-size: 0.9375rem;
    color: var(--text-body);
    max-width: var(--measure);
}

/*-- ---------- Table (stacks into cards on phones) ---------- -*/
.cl-table-wrap {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface-raised);
    overflow: hidden;
}

.cl-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.cl-table th {
    text-align: left;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-muted);
    background: var(--surface-sunken);
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
}

.cl-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-body);
    vertical-align: middle;
}

.cl-table tr:last-child td {
    border-bottom: 0;
}

.cl-table .cl-num {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.cl-table .cl-rank {
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
    width: 2.5rem;
}

.cl-dash {
    color: var(--text-muted);
}

.cl-casino {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text);
    font-weight: 600;
    text-decoration: none;
}

.cl-casino:hover strong,
.cl-casino:focus-visible strong {
    text-decoration: underline;
}

.cl-casino img {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    object-fit: cover;
    background: var(--surface-sunken);
}

.cl-casino small {
    display: block;
    font-weight: 400;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

@media only screen and (max-width: 47.99rem) {
    .cl-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
    }

    .cl-table,
    .cl-table tbody,
    .cl-table tr,
    .cl-table td {
        display: block;
        width: 100%;
    }

    .cl-table tr {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem 1rem;
        padding: 1rem;
        border-bottom: 1px solid var(--border);
    }

    .cl-table tr:last-child {
        border-bottom: 0;
    }

    .cl-table td {
        padding: 0;
        border: 0;
    }

    .cl-table td.cl-rank {
        display: none;
    }

    .cl-table td.cl-name {
        grid-column: 1 / -1;
    }

    .cl-table td[data-label]::before {
        content: attr(data-label);
        display: block;
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.03em;
        color: var(--text-muted);
    }
}

/*-- ---------- Filter links ---------- -*/
.cl-jump {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0 0 1.25rem;
    padding: 0;
    list-style: none;
}

.cl-jump a {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    font-size: 0.875rem;
    color: var(--text);
    text-decoration: none;
    background: var(--surface-raised);
}

.cl-jump a:hover,
.cl-jump a:focus-visible {
    border-color: var(--border-strong);
}

/*-- ---------- FAQ ---------- -*/
.cl-faq {
    margin-bottom: clamp(2.5rem, 6vw, 3.5rem);
}

.cl-faq__item {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface-raised);
    margin-bottom: 0.625rem;
}

.cl-faq__item summary {
    cursor: pointer;
    padding: 1rem 1.125rem;
    font-weight: 600;
    color: var(--text);
    list-style-position: outside;
}

.cl-faq__item p {
    margin: 0;
    padding: 0 1.125rem 1rem;
    color: var(--text-body);
    line-height: 1.65;
}

/*-- ---------- Related guides ---------- -*/
.cl-related {
    margin-bottom: clamp(2.5rem, 6vw, 3.5rem);
}

.cl-related ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
    gap: 0.75rem;
}

.cl-related__link {
    display: block;
    height: 100%;
    padding: 1rem 1.125rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface-raised);
    color: var(--text);
    text-decoration: none;
}

.cl-related__link strong {
    display: block;
    margin-bottom: 0.25rem;
}

.cl-related__link span {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.cl-related__link:hover,
.cl-related__link:focus-visible {
    border-color: var(--border-strong);
}

/*-- ---------- Closing CTA ---------- -*/
.cl-cta {
    padding: clamp(1.5rem, 4vw, 2.25rem);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface-sunken);
}

.cl-cta h2 {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    margin: 0 0 0.5rem;
    color: var(--text);
}

.cl-cta p {
    margin: 0 0 1.25rem;
    color: var(--text-body);
    max-width: var(--measure);
}

.cl-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-pill);
    background: var(--primary);
    color: var(--text-on-dark);
    font-weight: 600;
    text-decoration: none;
}

.cl-button:hover,
.cl-button:focus-visible {
    filter: brightness(1.08);
}

.cl-cta .cl-cta__note {
    margin: 1rem 0 0;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/*-- ---------- Polish pass: hover, focus, contrast ---------- -*/
.cl-table-wrap {
    box-shadow: var(--shadow-sm);
}

.cl-table td,
.cl-table th {
    transition: background-color 0.15s ease;
}

@media (hover: hover) {
    .cl-table tbody tr:hover td {
        background: color-mix(in srgb, var(--primary) 7%, var(--surface-raised));
    }
}

.cl-casino img {
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.cl-jump a,
.cl-related__link {
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.cl-jump a:hover,
.cl-related__link:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.cl-related__link:hover strong,
.cl-related__link:focus-visible strong {
    color: var(--text-brand);
}

.cl-casino:focus-visible,
.cl-jump a:focus-visible,
.cl-related__link:focus-visible,
.cl-button:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 2px;
}

/* White on --primary is 2.84:1; the deep brand shade passes AA. */
.cl-button {
    background: var(--primaryDeep);
    box-shadow: var(--shadow-sm);
    transition: filter 0.15s ease, box-shadow 0.15s ease;
}

.cl-button:hover {
    box-shadow: var(--shadow-md);
}

@media (prefers-reduced-motion: reduce) {
    .cl-jump a,
    .cl-related__link { transition: none; }
    .cl-jump a:hover,
    .cl-related__link:hover { transform: none; }
}
