/*
 * Camp Sober Fest — Sponsor Resources
 *
 * This stylesheet intentionally uses the same visual language visible across the
 * Camp Sober Fest site: black, white, warm coral/red accents, sharp editorial
 * blocks and the site's existing heading/body fonts. No external font is loaded
 * here so the page inherits the typography already configured by the theme.
 */

/* --------------------------------------------------------------------------
 * Page integration / duplicate-title fallback
 * -------------------------------------------------------------------------- */

.csf-sponsors-page .page-header,
.csf-sponsors-page .entry-header .entry-title {
    display: none !important;
}

.csf-sponsors-page .site-main,
.csf-sponsors-page .content-area,
.csf-sponsors-page .page-content {
    margin-top: 0;
    padding-top: 0;
}

/* --------------------------------------------------------------------------
 * Shared tokens
 * -------------------------------------------------------------------------- */

.csf-partners,
.csf-sponsor-profile {
    --csf-black: #0b0b0b;
    --csf-charcoal: #222222;
    --csf-ink: #171717;
    --csf-coral: #f16b66;
    --csf-coral-dark: #d95652;
    --csf-coral-soft: #fff0ef;
    --csf-paper: #ffffff;
    --csf-offwhite: #f7f7f5;
    --csf-muted: #686868;
    --csf-line: #dededb;
    --csf-hero-image: none;
    color: var(--csf-ink);
    background: var(--csf-paper);
    font-family: inherit;
}

.csf-partners *,
.csf-partners *::before,
.csf-partners *::after,
.csf-sponsor-profile *,
.csf-sponsor-profile *::before,
.csf-sponsor-profile *::after {
    box-sizing: border-box;
}

.csf-shell {
    width: min(1120px, calc(100% - 48px));
    margin-inline: auto;
}

.csf-kicker,
.csf-profile-kicker {
    margin: 0 0 12px;
    color: var(--csf-coral);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: .12em;
    text-transform: uppercase;
}

/* --------------------------------------------------------------------------
 * Hero
 * -------------------------------------------------------------------------- */

.csf-hero {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    color: #fff;

    background:
        linear-gradient(
            90deg,
            rgba(0,0,0,.93) 0%,
            rgba(0,0,0,.82) 48%,
            rgba(0,0,0,.50) 100%
        ),
        var(--csf-hero-image),
        var(--csf-black);

    background-position: center;
    background-size: cover;

    margin-top: 70px;
}

.csf-hero::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 8px;
    background: var(--csf-coral);
    z-index: 1;
}

.csf-hero::after {
    content: "";
    position: absolute;
    right: -90px;
    bottom: -130px;
    width: 360px;
    height: 360px;
    border: 54px solid rgba(241,107,102,.18);
    border-radius: 50%;
    pointer-events: none;
}

.csf-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.24), transparent 58%);
    pointer-events: none;
}

.csf-hero__inner {
    position: relative;
    z-index: 2;
    padding-block: 86px 58px;
    color: #fff;
}

.csf-hero .csf-kicker {
    color: var(--csf-coral);
}

.csf-hero h1 {
    max-width: 900px;
    margin: 0;
    color: #fff;
    font-size: clamp(46px, 6.6vw, 78px);
    line-height: .98;
    letter-spacing: -.035em;
}

.csf-hero__lede {
    max-width: 760px;
    margin: 24px 0 0;
    color: rgba(255,255,255,.87);
    font-size: clamp(17px, 1.7vw, 20px);
    line-height: 1.65;
}

.csf-event-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 32px;
}

.csf-event-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 9px 16px;
    border: 1px solid rgba(255,255,255,.55);
    border-radius: 999px;
    color: #fff;
    background: rgba(255,255,255,.04);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.csf-event-nav a:hover,
.csf-event-nav a:focus-visible {
    color: #fff;
    border-color: var(--csf-coral);
    background: var(--csf-coral);
    transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
 * Intro / “More than logos on a page”
 * -------------------------------------------------------------------------- */

.csf-intro {
    padding: 78px 0 0 0;
    background: #fff;
}

.csf-intro__grid {
    display: grid;
    grid-template-columns: 0.32fr 1.18fr;
    gap: 72px;
    align-items: start;
}

.csf-intro h2 {
    max-width: 470px;
    margin: 0;
    color: var(--csf-black);
    font-size: clamp(40px, 5vw, 60px);
    line-height: .98;
    letter-spacing: -.035em;
}

.csf-intro__copy {
    padding-left: 28px;
    border-left: 4px solid var(--csf-coral);
}

.csf-intro__copy p {
    margin: 0;
    color: #484848;
    font-size: 16px;
    line-height: 1.72;
}

.csf-intro__copy p + p {
    margin-top: 20px;
}

/* --------------------------------------------------------------------------
 * Event / location section
 * -------------------------------------------------------------------------- */

.csf-event-section {
    padding: 82px 0;
    scroll-margin-top: 30px;
    background: #fff;
}

.csf-event-section:nth-of-type(even) {
    background: var(--csf-offwhite);
}

.csf-event-heading {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 64px;
    align-items: end;
    margin-bottom: 38px;
}

.csf-event-heading h2 {
    margin: 0;
    color: var(--csf-black);
    font-size: clamp(42px, 5.5vw, 64px);
    line-height: .98;
    letter-spacing: -.035em;
}

.csf-event-heading__description {
    max-width: 680px;
    margin: 0;
    color: var(--csf-muted);
    font-size: 17px;
    line-height: 1.7;
}

/* --------------------------------------------------------------------------
 * Featured partner spotlight
 * -------------------------------------------------------------------------- */

.csf-feature {
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
    min-height: 510px;
    overflow: hidden;
    margin-bottom: 76px;
    color: #fff;
    background: var(--csf-black);
}

.csf-feature__visual {
    min-height: 500px;
    background: #ececea;
}

.csf-feature__image {
    width: 100%;
    height: 100%;
    min-height: 500px;
    object-fit: cover;
}

.csf-feature__fallback {
    display: grid;
    place-items: center;
    min-height: 500px;
    padding: 50px;
    color: var(--csf-black);
    background: #f0f0ee;
    font-size: 34px;
    font-weight: 800;
    text-align: center;
}

.csf-feature__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(36px, 5.2vw, 68px);
    color: #fff;
    border-top: 7px solid var(--csf-coral);
}

.csf-feature__content .csf-kicker {
    color: var(--csf-coral);
}

.csf-feature__content h3 {
    margin: 14px 0 18px;
    color: #fff;
    font-size: clamp(36px, 4vw, 52px);
    line-height: 1.02;
    letter-spacing: -.03em;
}

.csf-tier-pill {
    align-self: flex-start;
    display: inline-flex;
    padding: 7px 11px;
    border-radius: 999px;
    color: #fff;
    background: var(--csf-coral);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.csf-feature__summary,
.csf-feature__support p {
    color: rgba(255,255,255,.80);
    font-size: 16px;
    line-height: 1.7;
}

.csf-feature__support {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,.18);
}

.csf-feature__support strong {
    display: block;
    margin-bottom: 6px;
    color: #fff;
}

.csf-feature blockquote {
    margin: 22px 0 0;
    padding-left: 18px;
    border-left: 3px solid var(--csf-coral);
    color: #fff;
    font-size: 17px;
    line-height: 1.65;
}

.csf-feature blockquote cite {
    display: block;
    margin-top: 10px;
    color: rgba(255,255,255,.66);
    font-size: 13px;
    font-style: normal;
}

.csf-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 20px;
    align-items: center;
    margin-top: 28px;
}

.csf-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 11px 20px;
    border-radius: 2px;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
    transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}

.csf-button--solid {
    color: #fff;
    background: var(--csf-coral);
}

.csf-button--solid:hover,
.csf-button--solid:focus-visible {
    color: #fff;
    background: var(--csf-coral-dark);
    transform: translateY(-1px);
}

.csf-button--link {
    padding-inline: 0;
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.csf-button--link:hover,
.csf-button--link:focus-visible {
    color: var(--csf-coral);
}

.csf-button--outline {
    color: var(--csf-black);
    border: 1px solid var(--csf-black);
    background: transparent;
}

.csf-button--outline:hover,
.csf-button--outline:focus-visible {
    color: #fff;
    border-color: var(--csf-black);
    background: var(--csf-black);
}

/* --------------------------------------------------------------------------
 * Partner stories
 * -------------------------------------------------------------------------- */

.csf-partner-stories {
    padding-bottom: 6px;
}

.csf-section-title {
    max-width: 740px;
    margin-bottom: 38px;
}

.csf-section-title h3 {
    margin: 0 0 12px;
    color: var(--csf-black);
    font-size: clamp(36px, 4.3vw, 50px);
    line-height: 1.02;
    letter-spacing: -.03em;
}

.csf-section-title > p:last-child {
    margin: 0;
    color: var(--csf-muted);
    font-size: 16px;
    line-height: 1.7;
}

.csf-tier-group {
    margin-top: 46px;
}

.csf-tier-group__heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--csf-black);
}

.csf-tier-group__heading h4 {
    margin: 0;
    color: var(--csf-black);
    font-size: 21px;
    letter-spacing: -.015em;
}

.csf-tier-group__heading span {
    display: inline-grid;
    place-items: center;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    border-radius: 999px;
    color: #fff;
    background: var(--csf-coral);
    font-size: 11px;
    font-weight: 800;
}

.csf-story-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.csf-story-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--csf-line);
    box-shadow: 0 1px 0 rgba(0,0,0,.02);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.csf-story-card:hover {
    transform: translateY(-3px);
    border-color: #c9c9c5;
    box-shadow: 0 14px 30px rgba(0,0,0,.08);
}

.csf-story-card__visual {
    display: grid;
    place-items: center;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    padding: 22px;
    color: var(--csf-black);
    background: #f2f2f0;
    text-decoration: none;
    font-weight: 800;
    text-align: center;
}

.csf-story-card__image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .25s ease;
}

.csf-story-card:hover .csf-story-card__image {
    transform: scale(1.025);
}

.csf-story-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 24px;
}

.csf-story-card__eyebrow {
    margin: 0 0 8px;
    color: var(--csf-coral-dark);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.csf-story-card h5 {
    margin: 0 0 11px;
    color: var(--csf-black);
    font-size: 24px;
    line-height: 1.12;
    letter-spacing: -.02em;
}

.csf-story-card h5 a {
    color: inherit;
    text-decoration: none;
}

.csf-story-card h5 a:hover,
.csf-story-card h5 a:focus-visible {
    color: var(--csf-coral-dark);
}

.csf-story-card__summary {
    margin: 0;
    color: #5d5d5d;
    line-height: 1.65;
}

.csf-story-card__support {
    margin: 18px 0 0;
    padding-top: 16px;
    border-top: 1px solid var(--csf-line);
    color: #555;
    font-size: 14px;
    line-height: 1.6;
}

.csf-story-card__footer {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    margin-top: auto;
    padding-top: 22px;
}

.csf-story-card__footer a {
    color: var(--csf-black);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.csf-story-card__footer a:first-child {
    color: var(--csf-coral-dark);
}

.csf-story-card__footer a:hover,
.csf-story-card__footer a:focus-visible {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* --------------------------------------------------------------------------
 * CTA / empty state
 * -------------------------------------------------------------------------- */

.csf-cta {
    padding: 70px 0;
    color: #fff;
    background: var(--csf-coral);
}

.csf-cta .csf-kicker {
    color: #fff;
}

.csf-cta__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 56px;
}

.csf-cta h2 {
    max-width: 760px;
    margin: 0;
    color: #fff;
    font-size: clamp(36px, 5vw, 54px);
    line-height: 1;
    letter-spacing: -.035em;
}

.csf-cta p:not(.csf-kicker) {
    max-width: 720px;
    margin: 17px 0 0;
    color: rgba(255,255,255,.92);
    font-size: 16px;
    line-height: 1.65;
}

.csf-button--light {
    flex: 0 0 auto;
    color: #fff;
    border: 1px solid #fff;
    background: transparent;
}

.csf-button--light:hover,
.csf-button--light:focus-visible {
    color: var(--csf-black);
    background: #fff;
}

.csf-empty {
    padding: 36px;
    color: #454545;
    background: var(--csf-offwhite);
    border: 1px solid var(--csf-line);
    text-align: center;
}

/* ========================================================================== 
 * Single sponsor profile — same site language as the main sponsors page
 * ========================================================================== */

.csf-sponsor-profile {
    background: #fff;
}

.csf-profile-hero {
    padding: 62px 0 72px;
    color: #fff;
    background: var(--csf-black);
    border-top: 7px solid var(--csf-coral);
}

.csf-profile-shell {
    width: min(1080px, calc(100% - 48px));
    margin-inline: auto;
}

.csf-profile-back {
    display: inline-flex;
    margin-bottom: 34px;
    color: rgba(255,255,255,.78);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.csf-profile-back:hover,
.csf-profile-back:focus-visible {
    color: var(--csf-coral);
}

.csf-profile-hero__grid {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 58px;
    align-items: center;
}

.csf-profile-logo {
    display: grid;
    place-items: center;
    min-height: 270px;
    padding: 34px;
    background: #fff;
}

.csf-profile-logo img {
    width: 100%;
    max-width: 225px;
    max-height: 205px;
    object-fit: contain;
}

.csf-profile-kicker {
    color: var(--csf-coral);
}

.csf-profile-kicker--accent {
    color: var(--csf-coral-dark);
}

.csf-profile-hero h1 {
    margin: 0 0 18px;
    color: #fff;
    font-size: clamp(44px, 6vw, 68px);
    line-height: .98;
    letter-spacing: -.035em;
}

.csf-profile-lead {
    max-width: 690px;
    margin: 0;
    color: rgba(255,255,255,.82);
    font-size: 19px;
    line-height: 1.65;
}

.csf-profile-body {
    padding: 70px 0 92px;
    background: var(--csf-offwhite);
}

.csf-profile-body__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 66px;
    align-items: start;
}

.csf-profile-section {
    margin-bottom: 44px;
}

.csf-profile-section h2 {
    margin: 0 0 17px;
    color: var(--csf-black);
    font-size: clamp(32px, 4vw, 44px);
    line-height: 1.05;
    letter-spacing: -.03em;
}

.csf-profile-section p,
.csf-profile-content {
    color: #555;
    font-size: 17px;
    line-height: 1.78;
}

.csf-profile-content a {
    color: var(--csf-coral-dark);
}

.csf-profile-quote {
    margin: 42px 0;
    padding: 30px 32px;
    border-left: 5px solid var(--csf-coral);
    color: var(--csf-black);
    background: #fff;
    font-size: 21px;
    line-height: 1.55;
}

.csf-profile-quote cite {
    display: block;
    margin-top: 13px;
    color: #686868;
    font-size: 14px;
    font-style: normal;
}

.csf-profile-aside {
    position: sticky;
    top: 30px;
    padding: 27px;
    background: #fff;
    border-top: 5px solid var(--csf-coral);
    box-shadow: 0 8px 24px rgba(0,0,0,.06);
}

.csf-profile-aside h3 {
    margin: 0 0 18px;
    color: var(--csf-black);
    font-size: 22px;
}

.csf-profile-facts {
    display: grid;
    gap: 16px;
    margin: 0;
}

.csf-profile-facts div {
    padding-bottom: 15px;
    border-bottom: 1px solid var(--csf-line);
}

.csf-profile-facts dt {
    margin-bottom: 4px;
    color: #777;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.csf-profile-facts dd {
    margin: 0;
    color: var(--csf-black);
    font-weight: 700;
}

.csf-profile-aside .csf-button {
    width: 100%;
    margin-top: 16px;
}

/* --------------------------------------------------------------------------
 * Responsive
 * -------------------------------------------------------------------------- */

@media (max-width: 980px) {
    .csf-intro__grid,
    .csf-event-heading,
    .csf-feature,
    .csf-profile-hero__grid,
    .csf-profile-body__grid {
        grid-template-columns: 1fr;
    }

    .csf-intro__grid,
    .csf-event-heading {
        gap: 28px;
    }

    .csf-intro__copy {
        padding-left: 22px;
    }

    .csf-feature__visual,
    .csf-feature__image,
    .csf-feature__fallback {
        min-height: 380px;
    }

    .csf-story-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .csf-profile-aside {
        position: static;
    }
}

@media (max-width: 640px) {
    .csf-shell,
    .csf-profile-shell {
        width: min(100% - 28px, 1120px);
    }

    .csf-hero {
        min-height: 520px;
    }

    .csf-hero::after {
        right: -170px;
        bottom: -170px;
    }

    .csf-hero__inner {
        padding-block: 72px 42px;
    }

    .csf-hero h1 {
        font-size: clamp(42px, 13vw, 58px);
    }

    .csf-hero__lede {
        font-size: 16px;
    }

    .csf-event-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 6px;
        scrollbar-width: thin;
    }

    .csf-event-nav a {
        flex: 0 0 auto;
    }

    .csf-intro,
    .csf-event-section {
        padding-block: 58px;
    }

    .csf-intro__copy {
        padding-left: 18px;
    }

    .csf-intro__copy p {
        font-size: 16px;
        line-height: 1.7;
    }

    .csf-feature {
        margin-bottom: 58px;
    }

    .csf-feature__visual,
    .csf-feature__image,
    .csf-feature__fallback {
        min-height: 290px;
    }

    .csf-feature__content {
        padding: 30px 23px 34px;
    }

    .csf-story-grid {
        grid-template-columns: 1fr;
    }

    .csf-cta__inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 26px;
    }

    .csf-profile-hero {
        padding: 46px 0 54px;
    }

    .csf-profile-logo {
        min-height: 210px;
    }

    .csf-profile-body {
        padding: 48px 0 64px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .csf-partners *,
    .csf-partners *::before,
    .csf-partners *::after,
    .csf-sponsor-profile *,
    .csf-sponsor-profile *::before,
    .csf-sponsor-profile *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}

/* Sponsor portfolio additions */
.csf-profile-hero.csfs-profile-has-banner{background-position:center;background-size:cover;background-repeat:no-repeat}
.csfs-public-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:18px}
.csfs-public-gallery img{display:block;width:100%;height:230px;object-fit:cover;border-radius:9px}
.csfs-public-social{margin:20px 0;display:flex;gap:10px;flex-wrap:wrap}
.csfs-public-social h4{width:100%;margin:0;font-size:15px}
.csfs-public-social a{display:inline-block;border:1px solid #ccc;padding:8px 12px;border-radius:5px;color:inherit;text-decoration:none}
.csfs-public-social a:hover{border-color:#d95652;color:#d95652}
@media(max-width:580px){.csfs-public-gallery{grid-template-columns:1fr}.csfs-public-gallery img{height:210px}}

.csfs-portal-link,.csfs-profile-edit-link{display:inline-block;border:1px solid currentColor;padding:9px 14px;color:#fff!important;text-decoration:none!important;border-radius:5px;font-weight:700;font-size:14px;margin:14px 0}
.csfs-profile-edit-link{margin-left:20px}

/* v1.4.0: Preserve complete sponsor logos on desktop and mobile.
 * The Featured Image is a logo, NOT a cover photo. Do not crop it. */
.csf-partners .csf-feature__visual {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 340px;
    padding: clamp(20px, 3vw, 48px);
    background: #f4f4f2;
}
.csf-partners .csf-feature__visual img.csf-feature__image {
    display: block;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    max-width: 100% !important;
    max-height: 345px !important;
    object-fit: contain !important;
}
.csf-partners .csf-story-card__visual {
    height: 178px;
    min-height: 178px;
    aspect-ratio: auto;
    padding: 24px;
    background: #f5f5f3;
}
.csf-partners .csf-story-card__visual img.csf-story-card__image {
    display: block;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    max-width: 100% !important;
    max-height: 125px !important;
    object-fit: contain !important;
}
.csf-annual-section { background: #fff; }
.csf-annual-note { color: var(--csf-muted); font-size: 15px; margin: 0 0 28px; }
.csf-annual-nav { margin-top: 12px; }
@media (max-width: 640px) {
    .csf-partners .csf-feature__visual { min-height: 230px; padding: 26px; }
    .csf-partners .csf-feature__visual img.csf-feature__image { max-height: 215px !important; }
    .csf-partners .csf-story-card__visual { height: 166px; min-height: 166px; }
    .csf-partners .csf-story-card__visual img.csf-story-card__image { max-height: 118px !important; }
}
