/* ==========================================================================
   Get Involved — 2027 redesign (template-support-2027.php)
   Source: Figma "SMGLI | Design Devsite" → "Get Involved" (node 2339:2348,
   1440 × 7530). Everything is scoped under .gi27 so nothing here reaches
   other templates. Colour and font tokens come from site.css; Figma values
   are noted where they differ. Vertical positions are Figma's at 1440,
   turned into paddings and scaled with the viewport.
   ========================================================================== */

.gi27 {
    --gi27-cream: var(--stone);          /* #f2ebe4 page */
    --gi27-card: #f2ebe3;                /* Figma cream card fill */
    --gi27-tan: var(--stone-dark);       /* #e4d9cb card fill */
    --gi27-ink: #2e2521;                 /* card copy */
    --gi27-charcoal: var(--charcoal);    /* #2b2621 section intros */
    --gi27-plum: var(--plum);            /* #47141f cards, headings, Become a Partner band */
    --gi27-plum-dark: var(--plum-dark);  /* #2e0a12 Choose Your Path band (Laura, 29 Oct) */
    --gi27-plum-light: var(--plum-light);/* #6c444b small notes */
    --gi27-clay: var(--clay);            /* #ba4a29 links, eyebrows */
    --gi27-ochre: var(--ochre);          /* #d68a1c Complete Your Contribution band */
    --gi27-ochre-light: #ffa423;         /* headings + manicule on plum bands */
    --gi27-sky: var(--sky);              /* #a6c9de labels on plum cards */
    --gi27-serif: var(--font-accent);    /* Crimson Text */
    --gi27-mono: var(--font-label);      /* Inconsolata */
    --gi27-sans: var(--font-body);       /* Figtree */
    --gi27-wide: 1118px;                 /* Figma content column (1440 − 161×2) */
    --gi27-mid: 892px;                   /* three-card rows, two-column blocks */
    --gi27-text: 665px;                  /* centred text blocks */
    --gi27-torn: clamp(40px, 5.55vw, 80px);
    color: var(--gi27-ink);
    overflow-x: clip;
}

.gi27-inner {
    position: relative;
    z-index: 2;
    width: min(100% - (var(--space-page) * 2), var(--gi27-wide));
    margin-inline: auto;
}
.gi27-inner--mid  { max-width: var(--gi27-mid); }
.gi27-inner--text { max-width: var(--gi27-text); }

/* ---- Shared type --------------------------------------------------------- */

.gi27-eyebrow {
    margin: 0;
    font-family: var(--gi27-mono);
    font-weight: 600;
    font-size: 18px;
    line-height: 24px;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: var(--gi27-clay);
}
.gi27-h1 {
    margin: 0;
    font-family: var(--gi27-serif);
    font-weight: 600;
    font-size: clamp(34px, 3.4vw, 48px);
    line-height: 1.05;
    color: var(--gi27-plum);
}
.gi27-h2 {
    margin: 0;
    font-family: var(--gi27-serif);
    font-weight: 600;
    font-size: clamp(28px, 2.5vw, 36px);
    line-height: 1.1;
    color: var(--gi27-plum);
    text-align: center;
}
.gi27-h2--left { text-align: left; font-size: clamp(26px, 2.25vw, 32px); }
.gi27-h3 {
    margin: 0;
    font-family: var(--gi27-serif);
    font-weight: 600;
    font-size: 20px;
    line-height: 24px;
    color: var(--gi27-ink);
}
.gi27-intro {
    font-family: var(--gi27-sans);
    font-size: 16px;
    line-height: 24px;
    color: var(--gi27-charcoal);
}
.gi27-intro p { margin: 0; }
.gi27-intro p + p { margin-top: 1em; }
.gi27-intro--center { text-align: center; }
.gi27-intro--ink { color: var(--gi27-ink); }
.gi27-intro a { color: var(--gi27-clay); }

/* Bullet list (card lists, entity lists). */
.gi27-list {
    margin: 0;
    padding: 0 0 0 1.1em;
    font-family: var(--gi27-sans);
    font-size: 16px;
    line-height: 24px;
}
.gi27-list li { margin: 0; padding-left: .15em; }
.gi27-list li::marker { font-size: .8em; }
.gi27-list--ink { color: var(--gi27-ink); }

/* Caps text button, underlined (card links, entity links). */
.gi27-textlink {
    display: inline-block;
    font-family: var(--gi27-mono);
    font-weight: 600;
    font-size: 14px;
    line-height: 1.2;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: var(--gi27-clay);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}
.gi27-textlink:hover,
.gi27-textlink:focus-visible { color: var(--clay-hover); }
.gi27-textlink--sky { color: var(--gi27-sky); }
.gi27-textlink--sky:hover,
.gi27-textlink--sky:focus-visible { color: #fff; }

/* Big underlined caps links (Thank You secondary nav). */
.gi27-biglink {
    font-family: var(--gi27-mono);
    font-weight: 600;
    font-size: 20px;
    line-height: 32px;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: var(--gi27-plum);
    text-decoration: underline;
    text-underline-offset: 5px;
    text-decoration-thickness: 1.5px;
}
.gi27-biglink:hover,
.gi27-biglink:focus-visible { color: var(--gi27-clay); }

/* Manicule button: caps label + pointing hand + hairline underneath. */
.gi27-manicule {
    display: inline-flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
    color: var(--gi27-clay);
    text-decoration: none;
}
.gi27-manicule__row {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    row-gap: 4px;
    gap: 15px;
    font-family: var(--gi27-mono);
    font-weight: 600;
    font-size: 14px;
    line-height: 1;
    letter-spacing: .03em;
    text-transform: uppercase;
}
.gi27-manicule__row img { display: block; width: 48px; height: 17px; }
.gi27-manicule__rule {
    display: block;
    width: 100%;
    height: 1px;
    background: currentColor;
    opacity: .9;
}
.gi27-manicule--ochre { color: var(--gi27-ochre-light); }
.gi27-manicule:hover .gi27-manicule__row,
.gi27-manicule:focus-visible .gi27-manicule__row { text-decoration: underline; text-underline-offset: 3px; }

/* Pill button (hero). Figma: clay, 14px Inconsolata caps, 8/14 padding. */
.gi27-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--gi27-clay);
    color: #fff;
    font-family: var(--gi27-mono);
    font-weight: 600;
    font-size: 14px;
    line-height: 1.2;
    letter-spacing: .03em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
}
.gi27-pill:hover,
.gi27-pill:focus-visible { background: var(--clay-hover); color: #fff; }

/* Icon drawn through a CSS mask so one SVG file serves every colour. One
   56 × 56 box for every glyph (Laura: same size for all), contain-fitted.
   The name → file map lives here, not in the markup. */
.gi27-icon {
    display: block;
    width: 56px;
    height: 56px;
    background-color: currentColor;
    -webkit-mask: var(--gi27-icon) center / contain no-repeat;
    mask: var(--gi27-icon) center / contain no-repeat;
}
.gi27-icon--heart       { --gi27-icon: url("../img/get-involved-2027/icon-heart.svg"); }
.gi27-icon--flowers     { --gi27-icon: url("../img/get-involved-2027/icon-flowers.svg"); }
.gi27-icon--sun         { --gi27-icon: url("../img/get-involved-2027/icon-sun.svg"); }
.gi27-icon--head        { --gi27-icon: url("../img/get-involved-2027/icon-head.svg"); }
.gi27-icon--typewriter  { --gi27-icon: url("../img/get-involved-2027/icon-typewriter.svg"); }
.gi27-icon--cactus      { --gi27-icon: url("../img/get-involved-2027/icon-cactus.svg"); }
.gi27-icon--xolos       { --gi27-icon: url("../img/get-involved-2027/icon-xolos.svg"); }
.gi27-icon--hummingbird { --gi27-icon: url("../img/get-involved-2027/icon-hummingbird.svg"); }
.gi27-icon--maguey      { --gi27-icon: url("../img/get-involved-2027/icon-maguey.svg"); }
.gi27-icon--logomark    { --gi27-icon: url("../img/get-involved-2027/icon-logomark.svg"); }

/* Card (tan or cream): icon area 64 high, H3, text, link pinned at the bottom. */
.gi27-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px;
    border-radius: 16px;
    background: var(--gi27-tan);
    color: var(--gi27-ink);
    min-height: 100%;
}
.gi27-card--cream { background: var(--gi27-card); }
.gi27-card__icon {
    display: flex;
    align-items: center;
    height: 64px;
    color: var(--gi27-ink);
}
.gi27-card .gi27-h3 { min-height: 48px; }
.gi27-card__text {
    margin: 0;
    font-family: var(--gi27-sans);
    font-size: 14px;
    line-height: 20px;
    flex-grow: 1;
}
.gi27-card__note {
    margin: 0;
    font-family: var(--gi27-serif);
    font-style: italic;
    font-weight: 600;
    font-size: 11px;
    line-height: 15px;
    letter-spacing: .03em;
    color: var(--gi27-plum-light);
}

/* Card rows. */
.gi27-cards {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
    align-items: stretch;
}
.gi27-cards--4 { grid-template-columns: repeat(4, 1fr); }
.gi27-cards--3 { grid-template-columns: repeat(3, 1fr); }
.gi27-cards > li { display: flex; }
.gi27-cards > li > .gi27-card { width: 100%; }

/* Torn paper strips (1440 × 80 SVGs, ragged on top; flipped for a bottom). */
.gi27-tear {
    display: block;
    width: 100%;
    height: var(--gi27-torn);
    background: center / 100% 100% no-repeat;
    pointer-events: none;
}
.gi27-tear--bottom { transform: scaleY(-1); }
.gi27-tear--plum  { background-image: url("../img/get-involved-2027/torn-plum.svg"); }
.gi27-tear--ochre { background-image: url("../img/get-involved-2027/torn-ochre.svg"); }

/* ---- 1. Hero ------------------------------------------------------------- */

.gi27-hero {
    position: relative;
    isolation: isolate;
    /* Figma: copy starts 60u under the header, the buttons end at 430u and the
       dark strip starts at 448u, i.e. 18u under the buttons. */
    padding: clamp(2.5rem, 4.2vw, 60px) 0 clamp(12px, 1.25vw, 18px);
    overflow: visible;
}
.gi27-hero__inner {
    position: relative;
    z-index: 2;
    width: min(100% - (var(--space-page) * 2), 1366px); /* Figma text at x 37 */
    margin-inline: auto;
    padding-left: clamp(0px, 2.6vw - var(--space-page) + 37px, 37px);
    max-width: none;
}
.gi27-hero__copy { max-width: 529px; }
.gi27-hero__title { max-width: 522px; margin-top: 36px; }
.gi27-hero__indent { padding-left: 36px; margin-top: 24px; }
.gi27-hero__burst {
    display: block;
    width: min(313px, 100%);
    height: auto;
}
.gi27-hero__lede {
    max-width: 486px;
    margin-top: 24px;
    font-family: var(--gi27-sans);
    font-size: 16px;
    line-height: 24px;
    color: var(--gi27-ink);
}
.gi27-hero__lede p { margin: 0; }
.gi27-hero__lede p + p { margin-top: .75em; }
.gi27-hero__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 30px;
}
/* Collage: Figma "Feature" 820 × 545 at x 620, rising behind the nav; its
   flat bottom edge is tucked under the plum strip (Figma: 26u under it), so
   it is anchored to the hero's bottom, not its top. */
.gi27-hero__art {
    position: absolute;
    z-index: 1;
    right: 0;
    bottom: -26px; /* Figma: 26u under the strip's top edge */
    width: clamp(380px, 56.9vw, 820px);
    height: auto;
    pointer-events: none;
    user-select: none;
}

/* ---- 2. Choose Your Path (plum band, torn top + bottom) ------------------ */

/* Two plums, as in Figma: a Plum/Dark strip (#2e0a12, both edges torn,
   1440 × 91) carries the tax line at the hero's bottom edge; the #47141f
   body runs up behind its ragged bottom and ends with a ragged bottom over
   the tan band. The strip's text has equal room above and below (36u). */
.gi27-paths {
    position: relative;
    isolation: isolate;
    z-index: 2; /* over the hero collage and the tan Why band */
    color: var(--gi27-card);
}
.gi27-paths__badge {
    position: relative;
    z-index: 3;
    margin: 0;
    padding: clamp(24px, 2.5vw, 36px) var(--space-page);
    background: url("../img/get-involved-2027/strip-plum-dark.svg") center / 100% 100% no-repeat;
    text-align: center;
    font-family: var(--gi27-serif);
    font-style: italic;
    font-weight: 600;
    font-size: 16px;
    line-height: 20px;
    letter-spacing: .03em;
    color: var(--gi27-card);
}
.gi27-paths__body {
    position: relative;
    z-index: 2;
    background: var(--gi27-plum);
    /* 16u of body behind the strip's torn bottom; heading 59u under the strip (Figma 649 → 708) */
    margin-top: -16px;
    padding: calc(16px + clamp(40px, 4.1vw, 59px)) 0 0;
}
.gi27-paths .gi27-h2 { color: var(--gi27-ochre-light); }
.gi27-paths__intro {
    margin: 8px auto 0;
    max-width: var(--gi27-text);
    color: var(--gi27-card);
}
.gi27-paths .gi27-cards { margin-top: clamp(28px, 2.9vw, 42px); }
.gi27-paths .gi27-card { min-height: 400px; }

/* ---- 3. Why Your Support Matters ----------------------------------------- */

/* Wrapper around Why + Give: the agave collage is positioned against it. */
.gi27-why-give { position: relative; }

/* The band IS the Figma "Vector" export (2339:2350, 1440 × 589 at 1440):
   tan #dfd4c6 with the faded architecture and torn top and bottom edges baked
   in, transparent outside them, so the page texture shows through the tears.
   It starts 20u under the top of the plum strip above (whose ragged bottom
   covers its ragged top), the heading sits 121u under that, and the band
   ends 38u below the cards: 121 + 39 + 41 + 350 + 38 = 589 = the export's
   height at 1440, so nothing is stretched. Narrower screens make the band
   taller than the export's ratio; object-fit: cover keeps both torn edges
   and crops the sides instead. */
.gi27-why {
    position: relative;
    isolation: isolate;
    /* 1.14 × torn = the plum band's bottom tear (91u at 1440); the band
       starts 20u under that tear's top, the heading 50u lower. */
    margin-top: calc(20px - var(--gi27-torn) * 1.14);
    padding: calc(var(--gi27-torn) * 1.14 - 20px + clamp(36px, 3.5vw, 50px)) 0 38px;
}
.gi27-why__backdrop {
    position: absolute;
    z-index: 0;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    pointer-events: none;
    user-select: none;
}
.gi27-why .gi27-cards { margin-top: clamp(28px, 2.9vw, 41px); }
.gi27-why .gi27-card { min-height: 350px; }

/* Agave collage on the right edge, spanning Why → Give (Figma "Floating /
   Left / Agave 01", 305 × 617, x 1135, 336u under the tan band's top).
   Anchored to the content column, not the viewport, so it keeps the Figma
   overlap with the third card; the page clips what runs off the right edge.
   The export has its base on the left: mirrored so the leaves point in. */
.gi27-agave {
    position: absolute;
    z-index: 1;
    left: calc(50% + 415px); /* Figma x 1135 = 720 (centre) + 415 */
    top: clamp(180px, 20.8vw, 300px);
    width: clamp(180px, 21.2vw, 305px);
    height: auto;
    transform: scaleX(-1);
    pointer-events: none;
    user-select: none;
}

/* ---- 4. Give to the Institute -------------------------------------------- */

.gi27-give {
    position: relative;
    z-index: 2;
    padding: clamp(2.5rem, 3.6vw, 52px) 0 0;
}
.gi27-give__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: clamp(28px, 2.6vw, 36px);
    align-items: start;
}
.gi27-give__text {
    font-family: var(--gi27-sans);
    font-size: 16px;
    line-height: 26px;
    color: var(--gi27-ink);
}
.gi27-give__text p { margin: 0; }
.gi27-give__text p + p { margin-top: 1em; }
.gi27-give__text .gi27-h3 { margin-bottom: 8px; }
.gi27-panel {
    padding: 24px 24px 36px;
    border-radius: 20px;
    background: var(--gi27-tan);
    color: var(--gi27-ink);
}
.gi27-panel--plum {
    background: var(--gi27-plum);
    color: var(--gi27-card);
}
.gi27-panel__eyebrow {
    margin: 0 0 8px;
    font-family: var(--gi27-mono);
    font-weight: 600;
    font-size: 14px;
    line-height: 1.2;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: var(--gi27-clay);
}
.gi27-panel--plum .gi27-panel__eyebrow { color: var(--gi27-sky); margin-bottom: 4px; }
.gi27-give .gi27-panel { min-height: 380px; display: flex; flex-direction: column; justify-content: center; }

/* ---- 5. Where Your Gift Goes --------------------------------------------- */

.gi27-entities {
    position: relative;
    z-index: 2;
    padding: clamp(3rem, 5.5vw, 80px) 0 0;
}
.gi27-entities__head {
    display: grid;
    grid-template-columns: minmax(0, 440px) minmax(0, 611px);
    justify-content: space-between;
    gap: 24px 48px;
}
.gi27-entities__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 28px;
}
.gi27-entity {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 324px;
}
.gi27-entity .gi27-h3 { color: var(--gi27-card); }
.gi27-entity__body {
    margin: 8px 0 0;
    font-family: var(--gi27-sans);
    font-weight: 700;
    font-size: 14px;
    line-height: 18px;
}
.gi27-entity__body p { margin: 0; }
.gi27-entity__body .gi27-list { margin-top: 18px; font-size: 14px; line-height: 18px; font-weight: 700; }
.gi27-entity__link { margin-top: 12px; }
.gi27-entities__note {
    margin: clamp(28px, 3.3vw, 48px) 0 0;
    text-align: center;
    font-family: var(--gi27-serif);
    font-style: italic;
    font-weight: 600;
    font-size: 16px;
    line-height: 20px;
    letter-spacing: .03em;
    color: var(--gi27-charcoal);
}
.gi27-entities__note a { color: var(--gi27-clay); text-decoration: underline; }

/* ---- 6. Donor-Advised Fund ----------------------------------------------- */

.gi27-daf {
    position: relative;
    isolation: isolate;
    padding: clamp(4rem, 7.2vw, 104px) 0 clamp(4rem, 6.5vw, 94px);
    text-align: center;
}
.gi27-daf .gi27-intro { margin-top: 36px; }
.gi27-daf .gi27-manicule { margin-top: 48px; }
/* Bell tower + cactus collage on the left (Figma "Corner / Architecture / 02",
   421 × 561 at x −20). Mirrored (tower to the right, cacti left) and its
   lower part runs under the ochre band, which paints over it (Laura, 29 Oct). */
.gi27-daf__art {
    position: absolute;
    z-index: 0;
    left: clamp(-70px, -4.2vw, -40px);
    bottom: clamp(-150px, -10.4vw, -60px);
    width: clamp(180px, 29.2vw, 421px);
    transform: scaleX(-1);
    height: auto;
    pointer-events: none;
    user-select: none;
}

/* ---- 7. Complete Your Contribution (ochre band) --------------------------- */

.gi27-payment {
    position: relative;
    isolation: isolate;
    color: var(--gi27-ink);
}
.gi27-payment::before {
    content: "";
    position: absolute;
    inset: calc(var(--gi27-torn) * .6) 0;
    background: var(--gi27-ochre);
    z-index: 0;
}
.gi27-payment > .gi27-tear { position: relative; z-index: 1; }
.gi27-payment__body {
    position: relative;
    z-index: 2;
    padding: clamp(1rem, 1.4vw, 20px) 0 clamp(1.5rem, 2.8vw, 40px);
}
.gi27-payment__intro {
    margin: 8px auto 0;
    max-width: var(--gi27-text);
    color: var(--gi27-charcoal); /* ink on ochre; .gi27-paths__intro is cream */
}
.gi27-payment .gi27-cards { margin-top: clamp(28px, 2.5vw, 36px); }
.gi27-payment .gi27-card { min-height: 340px; }

/* ---- 8. FAQ -------------------------------------------------------------- */

.gi27-faq { padding: clamp(3rem, 5vw, 73px) 0 clamp(3rem, 4vw, 58px); }
.gi27-faq__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 36px 0 0;
    padding: 0;
    list-style: none;
}
.gi27-faq__item { margin: 0; }
.gi27-faq__q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 92px;
    padding: 18px 36px;
    border-radius: 20px;
    background: var(--gi27-plum);
    color: var(--gi27-card);
    font-family: var(--gi27-mono);
    font-weight: 600;
    font-size: clamp(16px, 1.7vw, 24px);
    line-height: 1.33;
    letter-spacing: .03em;
    text-transform: uppercase;
    cursor: pointer;
    list-style: none;
}
.gi27-faq__q::-webkit-details-marker { display: none; }
.gi27-faq__q:focus-visible { outline: 2px solid var(--gi27-ochre-light); outline-offset: 2px; }
/* Plus that becomes a minus when open (Figma "Expand" 19 × 19). */
.gi27-faq__toggle {
    position: relative;
    flex: 0 0 19px;
    width: 19px;
    height: 19px;
}
.gi27-faq__toggle::before,
.gi27-faq__toggle::after {
    content: "";
    position: absolute;
    left: 0;
    top: 8.5px;
    width: 19px;
    height: 2px;
    background: currentColor;
}
.gi27-faq__toggle::after { transform: rotate(90deg); transition: transform .2s ease; }
.gi27-faq__item[open] .gi27-faq__toggle::after { transform: rotate(0deg); }
.gi27-faq__a {
    margin: 0 0 0 28px;
    padding: 16px 36px 18px 28px;
    border-radius: 0 0 20px 20px;
    background: var(--gi27-tan);
    font-family: var(--gi27-sans);
    font-size: 16px;
    line-height: 24px;
    color: var(--gi27-plum);
}
.gi27-faq__a p { margin: 0; }
.gi27-faq__a p + p { margin-top: 1em; }

/* ---- 9. Our Community of Support ----------------------------------------- */

.gi27-community {
    position: relative;
    isolation: isolate;
    padding: clamp(1rem, 1.5vw, 22px) 0 clamp(4rem, 7.6vw, 110px);
}
.gi27-community .gi27-intro--center { margin-top: 8px; }
.gi27-community__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: clamp(28px, 3.3vw, 48px);
}
.gi27-community__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 24px 40px;
    width: min(100%, 880px);
    margin: clamp(32px, 4.3vw, 62px) auto 0;
    padding: 0 clamp(0px, 2vw, 30px);
}
/* Lace heart watermark on the right (Figma "Icon/Heart" 327 × 401, colour-burn). */
.gi27-community__heart {
    position: absolute;
    z-index: 0;
    right: 48px;
    top: clamp(-200px, -9.5vw, -137px);
    width: clamp(160px, 22.7vw, 327px);
    height: clamp(196px, 27.8vw, 401px);
    color: #c9b7a4;
    opacity: .55;
    mix-blend-mode: color-burn;
    pointer-events: none;
}

/* ---- 10. Become a Partner (plum band) ------------------------------------ */

/* The whole band is masked to the torn-paper shape (Figma "Mask group"), so
   the collages are cut along the ragged edges exactly like the plum is. The
   two .gi27-tear spacers only reserve the edge zones; the shape comes from
   the mask. */
.gi27-partner {
    position: relative;
    isolation: isolate;
    color: var(--gi27-card);
    overflow: hidden;
    background: var(--gi27-plum);
    -webkit-mask:
        url("../img/get-involved-2027/torn-plum.svg") top center / 100% var(--gi27-torn) no-repeat,
        url("../img/get-involved-2027/torn-plum-bottom.svg") bottom center / 100% var(--gi27-torn) no-repeat,
        linear-gradient(#000 0 0) center / 100% calc(100% - var(--gi27-torn) * 2 + 2px) no-repeat;
    mask:
        url("../img/get-involved-2027/torn-plum.svg") top center / 100% var(--gi27-torn) no-repeat,
        url("../img/get-involved-2027/torn-plum-bottom.svg") bottom center / 100% var(--gi27-torn) no-repeat,
        linear-gradient(#000 0 0) center / 100% calc(100% - var(--gi27-torn) * 2 + 2px) no-repeat;
}
.gi27-partner > .gi27-tear { position: relative; z-index: 1; background: none; }
.gi27-partner__body {
    position: relative;
    z-index: 2;
    padding: clamp(1rem, 1.4vw, 20px) 0 clamp(2rem, 3.3vw, 48px);
    text-align: center;
}
.gi27-partner .gi27-h2 { color: var(--gi27-ochre-light); }
.gi27-partner__text {
    margin-top: 8px;
    font-family: var(--gi27-sans);
    font-weight: 700;
    font-size: 16px;
    line-height: 24px;
    color: var(--gi27-card);
}
.gi27-partner__text p { margin: 0; }
.gi27-partner__text p + p { margin-top: 1em; }
.gi27-partner__text a { color: var(--gi27-sky); font-weight: 600; text-decoration: underline; }
.gi27-partner .gi27-manicule { margin-top: 48px; }
/* Figma components, measured on the frame (30 Oct): "Typewriter / Left /
   Ochre" in a 367 × 445 box at x −49, its top level with the heading, 69u
   left of the text block; "Corner" (blue flowers on handwriting) in a
   260 × 395 box flush right, 50u under the heading top, 128u right of the
   text block. Both images are object-cover in their box, as in Figma, and
   both run past the band's bottom where the torn mask cuts them. */
.gi27-partner__art {
    position: absolute;
    z-index: 1;
    object-fit: cover;
    object-position: center top;
    pointer-events: none;
    user-select: none;
}
.gi27-partner__art--left {
    left: clamp(-80px, -3.4vw, -49px);
    top: calc(var(--gi27-torn) + clamp(1rem, 1.4vw, 20px)); /* = heading top */
    width: clamp(200px, 25.5vw, 367px);
    height: auto;
    aspect-ratio: 367 / 445;
}
.gi27-partner__art--right {
    right: 0;
    top: calc(var(--gi27-torn) + clamp(1rem, 1.4vw, 20px) + 50px);
    width: clamp(140px, 18vw, 260px);
    height: auto;
    aspect-ratio: 260 / 395;
}

/* ---- 11. Thank You ------------------------------------------------------- */

.gi27-thanks {
    padding: clamp(3.5rem, 6.5vw, 93px) 0 clamp(3rem, 6vw, 86px);
    text-align: center;
}
.gi27-thanks__inner { max-width: 805px; }
.gi27-thanks__mark {
    display: block;
    width: 66px;
    height: 62px;
    margin: 16px auto 0;
    color: var(--gi27-plum-light);
}
.gi27-thanks__text {
    margin: 16px auto 0;
    max-width: var(--gi27-text);
    font-family: var(--gi27-sans);
    font-size: 18px;
    line-height: 32px;
    color: var(--gi27-charcoal);
}
.gi27-thanks__tagline {
    margin: 36px 0 0;
    font-family: var(--gi27-serif);
    font-style: italic;
    font-weight: 600;
    font-size: 16px;
    line-height: 20px;
    letter-spacing: .03em;
    color: var(--gi27-clay);
}
.gi27-thanks__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 44px;
    margin-top: 48px;
}

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

@media (max-width: 1100px) {
    .gi27-cards--4 { grid-template-columns: repeat(2, 1fr); }
    .gi27-entities__head { grid-template-columns: 1fr; }
    .gi27-community__heart { display: none; }
}
@media (max-width: 960px) {
    .gi27-hero__art { width: 50vw; }
    .gi27-partner__art--left { width: 22vw; }
    .gi27-partner__art--right { width: 14vw; }
    .gi27-hero__copy { max-width: 46%; }
    .gi27-agave { display: none; }
    .gi27-daf__art { width: 24vw; bottom: -40px; }
}
@media (max-width: 860px) {
    .gi27-give__grid,
    .gi27-entities__grid,
    .gi27-community__grid { grid-template-columns: 1fr; }
    .gi27-give .gi27-panel { min-height: 0; }
    .gi27-cards--3 { grid-template-columns: 1fr; }
    .gi27-why .gi27-card,
    .gi27-paths .gi27-card,
    .gi27-payment .gi27-card { min-height: 0; }
    .gi27-community__links { justify-content: center; }
}
@media (max-width: 760px) {
    /* Phones: collage under the copy (DOM order), bleeding off the right edge,
       its flat bottom tucked under the plum strip. */
    .gi27-hero { padding-bottom: 0; }
    .gi27-hero__inner { padding-left: 0; }
    .gi27-hero__copy { max-width: none; }
    .gi27-hero__art {
        position: static;
        display: block;
        width: min(100%, 520px);
        margin: 24px 0 -26px auto;
        transform: translateX(var(--space-page));
    }
    .gi27-hero__indent { padding-left: 0; }
    .gi27-daf__art { display: none; }
    .gi27-partner__art--left { width: 36vw; left: -12vw; top: auto; bottom: calc(var(--gi27-torn) * .3); opacity: .9; }
    .gi27-partner__art--right { display: none; }
    .gi27-partner__body { padding-bottom: clamp(7rem, 30vw, 180px); }
    .gi27-faq__q { padding: 16px 20px; min-height: 72px; }
    .gi27-faq__a { margin-left: 16px; padding: 14px 20px 16px 20px; }
}
@media (max-width: 560px) {
    .gi27-cards--4 { grid-template-columns: 1fr; }
    .gi27-entities__head { gap: 12px; }
    .gi27-thanks__links { flex-direction: column; align-items: center; gap: 8px; }
}
