/* Fundraise feature block — image + copy + JustGiving CTA.
   Used on the homepage and the /fundraise page. rem base is 10px. */

.fundraise-feature {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: clamp(3rem, 5vw, 6rem);
    align-items: center;
    width: 100%;
    max-width: 108rem;
    margin: 0 auto;
    text-align: left;
}

.fundraise-feature__media {
    align-self: stretch;
    min-height: 32rem;
}

.fundraise-feature__media img {
    width: 100%;
    height: 100%;
    max-height: 46rem;
    object-fit: cover;
    object-position: center;
    display: block;
}

.fundraise-feature__kicker {
    margin: 0 0 1rem;
    font-family: var(--display-font);
    font-weight: 500;
    font-size: 1.4rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-accent);
}

.fundraise-feature__title {
    margin: 0 0 1.6rem;
    font-family: var(--display-font);
    font-weight: 500;
    font-size: clamp(2.6rem, 3.6vw, 3.6rem);
    line-height: 1.2;
    color: var(--color-black);
}

.fundraise-feature__lead {
    margin: 0 0 2rem;
    max-width: 46ch;
    font-size: 1.8rem;
    line-height: 1.6;
    color: var(--color-grey-dark-1);
}

.fundraise-feature__points {
    list-style: none;
    margin: 0 0 2.8rem;
    padding: 0;
    display: grid;
    gap: 1rem;
}

.fundraise-feature__points li {
    position: relative;
    padding-left: 2.6rem;
    font-size: 1.65rem;
    line-height: 1.4;
    color: var(--color-black);
}

.fundraise-feature__points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 50%;
    background: var(--color-trad-green);
}

.fundraise-feature__cta button {
    font-size: 1.7rem;
    padding: 1.4rem 3rem;
}

@media (max-width: 60rem) {
    .fundraise-feature {
        grid-template-columns: 1fr;
        gap: 2.4rem;
    }

    .fundraise-feature__media {
        min-height: 0;
    }

    .fundraise-feature__media img {
        max-height: 30rem;
    }
}

/* --- "Causes we support" grid (/fundraise page) ---------------------- */
.charities {
    list-style: none;
    width: min(112rem, 92vw);
    margin: clamp(2rem, 4vw, 4rem) auto 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(30rem, 1fr));
    gap: 2.4rem;
}

.charities:empty {
    display: none;
}

.charities__charity {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    padding: 2.8rem;
    background: var(--color-white);
    border: 1px solid var(--color-grey-light-3);
}

.charities__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 8rem;
    padding: 1rem 1.4rem;
    background: var(--color-grey-light-2);
}

.charities__logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    object-fit: contain;
}

.charities__name {
    margin: 0;
    font-family: var(--display-font);
    font-weight: 500;
    font-size: 1.9rem;
    line-height: 1.25;
    color: var(--color-black);
}

.charities__desc {
    margin: 0;
    font-size: 1.5rem;
    line-height: 1.6;
    color: var(--color-grey-dark-1);
}


/* --- Our fundraisers (/fundraise) + the shared numbered list ------------- */
.fundraisers {
    background: var(--color-grey-light-2);
}

.fundraisers__inner {
    width: 100%;
    max-width: 84rem;
    margin: 0 auto;
    text-align: left;
}

.fundraisers__kicker {
    margin: 0 0 1rem;
    font-family: var(--display-font);
    font-weight: 500;
    font-size: 1.4rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-accent);
}

.fundraisers__title {
    margin: 0 0 1.2rem;
    font-family: var(--display-font);
    font-weight: 500;
    font-size: clamp(2.6rem, 3.6vw, 3.6rem);
    line-height: 1.2;
    color: var(--color-black);
}

.fundraisers__title span {
    color: var(--color-grey-dark-3);
}

.fundraisers__lead {
    margin: 0 0 2.4rem;
    font-size: 1.8rem;
    line-height: 1.6;
    color: var(--color-grey-dark-1);
}

.fundraisers__cta {
    display: inline-block;
    margin-top: 3rem;
}

.fundraiser-list {
    list-style: none;
    counter-reset: fundraiser;
    margin: 0;
    padding: 0;
}

.fundraiser-list__item {
    counter-increment: fundraiser;
    display: grid;
    grid-template-columns: 4.4rem 1fr auto;
    gap: 1.6rem;
    align-items: center;
    padding: 1.6rem 0;
    border-bottom: 1px solid var(--color-grey-light-3);
}

.fundraiser-list__item::before {
    content: counter(fundraiser);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4.4rem;
    height: 4.4rem;
    border: 2px solid var(--color-accent);
    color: var(--color-accent);
    font-family: var(--display-font);
    font-weight: 700;
    font-size: 1.8rem;
}

.fundraiser-list__who {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 0;
}

.fundraiser-list__who strong {
    font-size: 1.8rem;
}

.fundraiser-list__who a,
.fundraiser-list__who span {
    font-size: 1.5rem;
    color: var(--color-grey-dark-2);
    overflow-wrap: anywhere;
}

.fundraiser-list__who a:hover {
    color: var(--color-accent);
}

.fundraiser-list__amount {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.3rem;
    white-space: nowrap;
}

.fundraiser-list__amount strong {
    font-family: var(--display-font);
    font-size: 2rem;
}

.fundraiser-list__amount span {
    font-size: 1.4rem;
    color: var(--color-grey-dark-2);
}

@media (max-width: 40rem) {
    .fundraiser-list__item {
        grid-template-columns: 3.6rem 1fr auto;
        gap: 1.2rem;
    }

    .fundraiser-list__item::before {
        width: 3.6rem;
        height: 3.6rem;
        font-size: 1.5rem;
    }
}

/* --- "Or raise for one of these charities" (sections/fundraise-choice.php) */
.charity-choice {
    background: var(--color-white);
}

.charity-choice__inner {
    width: 100%;
    max-width: 112rem;
    margin: 0 auto;
    text-align: left;
}

.charity-choice__kicker {
    margin: 0 0 1rem;
    font-family: var(--display-font);
    font-weight: 500;
    font-size: 1.4rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-accent);
}

.charity-choice__title {
    margin: 0 0 1.4rem;
    font-family: var(--display-font);
    font-weight: 500;
    font-size: clamp(2.6rem, 3.6vw, 3.6rem);
    line-height: 1.2;
    color: var(--color-black);
}

.charity-choice__lead {
    max-width: 68ch;
    margin: 0 0 3.2rem;
    font-size: 1.8rem;
    line-height: 1.6;
    color: var(--color-grey-dark-1);
}

.charity-choice__grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(24rem, 1fr));
    gap: 2rem;
}

.charity-card {
    display: flex;
    flex-direction: column;
    padding: 2rem;
    background: var(--color-white);
    border: 1px solid var(--color-grey-light-3);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.charity-card:hover {
    border-color: var(--color-grey-light-4);
    box-shadow: 0 1.2rem 2.8rem rgba(20, 20, 20, 0.08);
    transform: translateY(-2px);
}

.charity-card__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 8rem;
    margin-bottom: 1.6rem;
}

.charity-card__logo img {
    max-width: 100%;
    max-height: 8rem;
    width: auto;
    object-fit: contain;
}

.charity-card__name {
    margin: 0 0 0.6rem;
    font-family: var(--display-font);
    font-weight: 500;
    font-size: 1.9rem;
    line-height: 1.25;
    color: var(--color-black);
}

.charity-card__blurb {
    flex: 1;
    margin: 0 0 1.6rem;
    font-size: 1.5rem;
    line-height: 1.5;
    color: var(--color-grey-dark-2);
}

section a.charity-card__cta,
.charity-card__cta {
    align-self: flex-start;
    padding: 0.9rem 1.4rem;
    border: 2px solid var(--color-accent);
    color: var(--color-accent);
    font-weight: 600;
    font-size: 1.45rem;
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease;
}

section a.charity-card__cta:hover,
.charity-card__cta:hover,
.charity-card__cta:focus-visible {
    background: var(--color-accent);
    color: #fff;
}

.charity-choice__other {
    margin: 3rem 0 0;
    font-size: 1.6rem;
    color: var(--color-grey-dark-1);
}

.charity-choice__other a {
    color: var(--color-accent);
    font-weight: 600;
}

/* "Or raise for another charity" link under the main swim CTA */
.fundraise-feature__alt {
    display: inline-block;
    margin-top: 1.4rem;
    font-size: 1.55rem;
    font-weight: 600;
    color: var(--color-accent);
}

.fundraiser-list__for {
    display: inline-block;
    align-self: flex-start;
    padding: 0.2rem 0.8rem;
    font-style: normal;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-grey-dark-1);
    background: var(--color-grey-light-2);
}

.fundraiser-list__for.is-swim {
    color: #fff;
    background: var(--color-accent);
}

/* --- The big "get sponsored" ask (sections/jg-ask.php) ------------------
   Full-bleed photo panel: hero-style red word-blocks, live proof, three
   steps, one big button. The first thing on /fundraise and /registered. */
section.jg-ask {
    position: relative;
    display: block;
    padding: 0;
    overflow: hidden;
    background: #1e2220;
    color: #fff;
    text-align: left;
}

.jg-ask__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
}

section.jg-ask::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(20, 22, 21, 0.93) 0%, rgba(20, 22, 21, 0.8) 52%, rgba(20, 22, 21, 0.35) 100%);
}

.jg-ask__inner {
    position: relative;
    z-index: 2;
    width: min(112rem, 92vw);
    margin: 0 auto;
    padding: clamp(5.6rem, 9vw, 10rem) 0;
}

.jg-ask__inner > * {
    max-width: 64rem;
}

.jg-ask__kicker {
    margin: 0 0 1.6rem;
    font-family: var(--display-font);
    font-weight: 500;
    font-size: 1.5rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #ffb3b7;
}

.jg-ask__title {
    margin: 0 0 2.6rem;
    font-family: var(--display-font);
    font-weight: 500;
    font-size: clamp(3.4rem, 5.4vw, 6rem);
    line-height: 1.32;
    text-transform: uppercase;
    color: #fff;
}

.jg-ask__word {
    display: inline-block;
    margin: 0.06em 0;
    padding: 0.04em 0.3em;
    background: var(--color-accent);
    transform: rotate(var(--wonk, 0deg));
    transform-origin: left center;
}

.jg-ask__word:nth-of-type(4n+1) { --wonk: -2deg; }
.jg-ask__word:nth-of-type(4n+2) { --wonk: 1.4deg; }
.jg-ask__word:nth-of-type(4n+3) { --wonk: -0.8deg; }
.jg-ask__word:nth-of-type(4n+4) { --wonk: 2.2deg; }

.jg-ask__word--white {
    background: #fff;
    color: var(--color-accent);
}

.jg-ask__lead {
    margin: 0 0 2rem;
    font-size: clamp(1.8rem, 2vw, 2.1rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.92);
}

.jg-ask__proof {
    display: inline-block;
    margin: 0 0 2.8rem;
    padding: 0.9rem 1.4rem;
    border-left: 4px solid var(--color-accent);
    background: rgba(255, 255, 255, 0.1);
    font-size: 1.6rem;
    color: rgba(255, 255, 255, 0.9);
}

.jg-ask__proof strong {
    color: #fff;
}

.jg-ask__steps {
    list-style: none;
    margin: 0 0 3.6rem;
    padding: 0;
    display: grid;
    gap: 1.4rem;
}

.jg-ask__steps li {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    font-size: 1.7rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.88);
}

.jg-ask__steps b {
    flex: none;
    display: grid;
    place-items: center;
    width: 4.2rem;
    height: 4.2rem;
    border: 2px solid #fff;
    font-family: var(--display-font);
    font-size: 1.9rem;
    color: #fff;
}

.jg-ask__steps strong {
    color: #fff;
}

.jg-ask__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.6rem 3.2rem;
}

section.jg-ask a.jg-ask__cta,
.jg-ask__cta {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 2rem 3.6rem;
    background: #fff;
    color: var(--color-accent);
    font-family: var(--display-font);
    font-size: clamp(2rem, 2.2vw, 2.4rem);
    font-weight: 500;
    text-decoration: none;
    box-shadow: 0 1.2rem 3rem rgba(0, 0, 0, 0.35);
    transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

section.jg-ask a.jg-ask__cta:hover,
section.jg-ask a.jg-ask__cta:focus-visible {
    background: var(--color-accent);
    color: #fff;
    transform: translateY(-3px);
    text-decoration: none;
}

.jg-ask__cta.is-disabled {
    opacity: 0.6;
}

.jg-ask__more {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

section.jg-ask .jg-ask__more a {
    color: #fff;
    font-size: 1.6rem;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 0.25em;
}

section.jg-ask .jg-ask__more a:hover {
    color: #ffb3b7;
}

@media (max-width: 60rem) {
    section.jg-ask::before {
        background: linear-gradient(180deg, rgba(20, 22, 21, 0.7) 0%, rgba(20, 22, 21, 0.9) 45%, rgba(20, 22, 21, 0.95) 100%);
    }

    .jg-ask__steps li {
        font-size: 1.6rem;
    }

    section.jg-ask a.jg-ask__cta {
        width: 100%;
        justify-content: center;
        padding: 1.8rem 2rem;
    }
}

/* The vote and the charity grid as normal sections on /fundraise and
   /registered: same spacing on both pages. The vote widget brings its own
   top margin, rule and padding (from when it sat bare in /registered);
   inside a section those just double the gap, so drop them. */
.section--vote {
    background: var(--color-grey-light-2);
}

.section--vote .vote {
    width: 100%;
    max-width: 108rem;
    margin: 0 auto;
    padding-top: 0;
    border-top: 0;
}

/* /registered zeroes every section's padding (css/thanks.css); give these
   two back their normal section spacing. */
main.thanks section.section--vote,
main.thanks section.charity-choice {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: clamp(6rem, 9vw, 10rem) clamp(2rem, 6vw, 8rem);
}

main.thanks section.section--vote {
    background: var(--color-grey-light-2);
}

/* "You're booked in" at the top of the panel on /registered */
.jg-ask__booked {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    margin: 0 0 3.2rem;
    padding: 1.4rem 1.8rem;
    background: rgba(255, 255, 255, 0.1);
    border-left: 4px solid var(--color-trad-green);
    font-size: 1.7rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.92);
}

.jg-ask__booked strong {
    display: block;
    font-family: var(--display-font);
    font-weight: 500;
    font-size: 2.2rem;
    color: #fff;
}

.jg-ask__tick {
    flex: none;
    display: grid;
    place-items: center;
    width: 4.4rem;
    height: 4.4rem;
    background: var(--color-trad-green);
    color: #fff;
    font-size: 2.4rem;
    font-weight: 700;
}
