/*
 * Under-hero donation strip
 *
 * This is a full-width campaign action panel immediately below
 * the homepage hero. Its content remains aligned to the normal
 * site container.
 *
 * Desktop behavior:
 * - participates in the stacked/sticky homepage treatment
 * - eyebrow occupies the first row
 * - campaign ask occupies the second row
 * - donation presets occupy the third row
 */

.donation-strip {
    position: relative;

    background: var(--color-ink);
    color: var(--color-cream);
}

.donation-strip__inner {
    display: grid;
    grid-template-columns: 1fr;

    gap: var(--space-3);

    min-height: 10rem;

    padding-block:
        var(--space-5)
        var(--space-6);
}


/*
 * Message
 */

.donation-strip__message {
    display: grid;
    grid-template-columns: 1fr;

    gap: var(--space-2);
}

.donation-strip__eyebrow {
    margin: 0;

    color: var(--color-gold);

    font-size: 0.68rem;
    font-weight: 800;

    line-height: 1;

    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.donation-strip__heading {
    max-width: 22ch;

    margin: 0;

    color: var(--color-cream);

    font-family: var(--font-display);
    font-size: var(--type-display-small);
    font-weight: var(--font-display-weight);
    line-height: 1;

    letter-spacing: var(--font-display-tracking);
}


/*
 * Donation presets
 */

.donation-strip__amounts {
    display: grid;
    grid-template-columns:
        repeat(5, minmax(0, 1fr));

    gap: var(--space-2);

    width: 100%;

    margin-top: var(--space-2);
}

.donation-strip__amount {
    display: grid;
    place-items: center;

    min-height: 3.25rem;

    padding-inline: var(--space-3);

    border: 1px solid rgba(247, 230, 189, 0.64);
    border-radius: var(--radius-sm);

    background: transparent;
    color: var(--color-cream);

    font-size: 0.8rem;
    font-weight: 800;

    line-height: 1;

    text-align: center;
    text-decoration: none;

    transition:
        background var(--transition-fast),
        border-color var(--transition-fast),
        color var(--transition-fast),
        transform var(--transition-fast);
}

.donation-strip__amount:hover,
.donation-strip__amount:focus-visible {
    border-color: var(--color-gold);

    background: var(--color-gold);
    color: var(--color-ink);

    transform: translateY(-0.1rem);
}


/*
 * Stacked homepage behavior
 *
 * The navigation remains above this through --layer-navigation.
 * The floating donation bar remains substantially above this
 * through --layer-donation-bar.
 *
 * As the page scrolls, this strip reaches the bottom edge of the
 * fixed navigation and remains there until the following homepage
 * section scrolls over it.
 */

@media (min-width: 64.0625rem) and (min-height: 44rem) {
    .donation-strip {
        position: sticky;
        top: var(--site-header-height, 4.5rem);
        z-index: var(--layer-raised);

        isolation: isolate;

        box-shadow:
            0
            -0.8rem
            1.8rem
            rgba(36, 0, 70, 0.08);
    }
}


/*
 * Tablet
 */

@media (max-width: 64rem) {
    .donation-strip__inner {
        min-height: 9rem;
    }
}


/*
 * Mobile
 *
 * Do not make the strip sticky on small viewports. The five
 * donation choices remain one row while space permits.
 */

@media (max-width: 56rem) {
    .donation-strip__inner {
        gap: var(--space-3);

        min-height: 0;

        padding-block: var(--space-5);
    }

    .donation-strip__heading {
        max-width: none;
    }
}

@media (max-width: 40rem) {
    .donation-strip__message {
        text-align: left;
    }

    .donation-strip__amounts {
        gap: var(--space-1);
    }

    .donation-strip__amount {
        min-height: 3rem;

        padding-inline: var(--space-1);

        font-size: 0.7rem;
    }
}

@media (max-width: 30rem) {
    .donation-strip__amounts {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

    .donation-strip__amount:nth-child(4),
    .donation-strip__amount:nth-child(5) {
        grid-column: span 1;
    }
}