/* sponsors.css - the Sponsors & Supporters page's partner cards (sponsors.js) */

.sp-list {
    --sp-card: rgba(255,255,255,0.55);
    --sp-line: rgba(0,0,0,0.07);
    --sp-ink: #1A1A1A;
    --sp-body: rgba(0,0,0,0.66);
    --sp-muted: rgba(0,0,0,0.55);
    --sp-accent: var(--primary, #3A4B3A);
    list-style: none;
    margin: 0 auto;
    padding: 0;
    display: grid;
    gap: 1.4rem;
}

html[data-dark] .sp-list {
    --sp-card: var(--d-glass);
    --sp-line: var(--d-hairline);
    --sp-ink: var(--text-strong);
    --sp-body: var(--text-body);
    --sp-muted: var(--text-muted);
    --sp-accent: #9DBE96;
}

/* a card: logo tile on the left, the text beside it */
.sp-card {
    display: grid;
    grid-template-columns: 11rem 1fr;
    gap: 1.8rem;
    align-items: start;
    padding: 1.8rem;
    background: var(--sp-card);
    border: 1px solid var(--sp-line);
    border-radius: 22px;
}

/* logos keep their own colours, so the tile stays white in every theme; it stays in view beside long text */
.sp-logo {
    position: sticky;
    top: 6.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 3;
    padding: 1rem;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.06);
    forced-color-adjust: none;
}
.sp-logo img { width: 100%; height: 100%; object-fit: contain; }
.sp-logo--name span {
    font-family: 'Quicksand', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #3A4B3A;
    text-align: center;
}

.sp-body { min-width: 0; }

.sp-tag {
    margin: 0 0 0.35rem;
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--sp-muted);
}

.sp-name {
    margin: 0;
    font-family: 'Quicksand', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--sp-ink);
}

.sp-link {
    display: inline-block;
    margin-top: 0.3rem;
    font-size: 0.85rem;
    color: var(--sp-accent);
    text-decoration: underline;
    text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
    text-underline-offset: 0.2em;
}
.sp-link::after { content: ' ↗'; }
.sp-link:hover { text-decoration-color: currentColor; }

.sp-text {
    display: grid;
    gap: var(--content-paragraph-gap, 1rem);
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--sp-line);
}
.sp-text p {
    margin: 0;
    font-size: 0.94rem;
    line-height: var(--content-line-height, 1.85);
    color: var(--sp-body);
}
.sp-text strong { color: var(--sp-ink); font-weight: 600; }
.sp-text a { color: var(--sp-accent); }

/* phones: the tile sits above the text */
@media (max-width: 640px) {
    .sp-card { grid-template-columns: 1fr; gap: 1.1rem; padding: 1.3rem; }
    .sp-logo { position: static; width: 100%; max-width: 13rem; aspect-ratio: 16 / 9; }
}

@media (forced-colors: active) {
    .sp-card { border-color: CanvasText; }
    .sp-text { border-top-color: CanvasText; }
}
