/* Donation thank-you page  —  /donation-thanks */

.thanks {
    display: block;
    background: var(--color-white);
    color: var(--color-black);
}

main.thanks>section {
    display: block;
    padding: 0;
    margin: 0;
    max-width: none;
    background: none;
}

/* sections/where-it-goes.php (registered.php includes it directly) keeps its
   normal section layout/padding rather than being zeroed out above — it
   isn't part of the thanks-page-specific sections, which set their own
   padding explicitly further down this file. */
main.thanks section.section--who {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: clamp(6rem, 9vw, 10rem) clamp(2rem, 6vw, 8rem);
    margin: 0;
    max-width: none;
    background: var(--color-white);
}

/* Hero (outside <main>) --------------------------------------------- */
.thanks-hero {
    position: relative;
    min-height: 46vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: #1e2220;
}

.thanks-hero__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
}

.thanks-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.4) 55%, rgba(0, 0, 0, 0.15) 100%);
}

.thanks-hero__inner {
    position: relative;
    z-index: 1;
    width: min(120rem, 92vw);
    margin: 0 auto;
    padding: clamp(3.5rem, 6vw, 7rem) 0;
    color: #fff;
}

.thanks-hero__mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4.6rem;
    height: 4.6rem;
    margin: 0 0 1.6rem;
    background: var(--color-trad-green);
    color: #1e2220;
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1;
}

.thanks-hero__title {
    margin: 0;
    font-family: var(--display-font);
    font-weight: 500;
    font-size: clamp(3.4rem, 6.5vw, 5.6rem);
    line-height: 1.32;
}

.thanks-hero__title span {
    background: var(--color-accent);
    color: #fff;
    padding: 0.06em 0.32em;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

.thanks-hero__lead {
    max-width: 46ch;
    margin: 2.2rem 0 0;
    font-size: clamp(1.7rem, 2vw, 2rem);
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

/* No tt_order_id — see sections/header-registered.php */
.thanks-hero__cta {
    margin-top: 2.4rem;
}

/* Body ----------------------------------------------------------- */
main.thanks>.thanks-body {
    width: min(72rem, 92vw);
    margin: 0 auto;
    padding: clamp(5rem, 8vw, 8rem) 0 clamp(3rem, 5vw, 4rem);
    text-align: center;
}

.thanks-body__lead {
    margin: 0;
    font-size: clamp(1.8rem, 2.2vw, 2.2rem);
    line-height: 1.6;
}

/* Next steps -------------------------------------------------- */
main.thanks>.thanks-next {
    width: min(88rem, 92vw);
    margin: 0 auto;
    padding: 0 0 clamp(6rem, 10vw, 10rem);
}

.thanks-next__grid {
    display: grid;
    gap: 1rem;
}

.thanks-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 2rem 2.2rem;
    border: 1px solid var(--color-grey-light-3);
    color: var(--color-black);
    text-decoration: none;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.thanks-link:hover,
.thanks-link:focus-visible {
    border-color: var(--color-accent);
    background: var(--color-grey-light-2);
    outline: none;
}

.thanks-link__title {
    display: block;
    font-family: var(--display-font);
    font-weight: 500;
    font-size: 1.9rem;
}

.thanks-link__sub {
    display: block;
    margin-top: 0.3rem;
    font-size: 1.4rem;
    color: var(--color-grey-dark-2);
}

.thanks-link__go {
    flex: none;
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--color-accent);
}
