/* ==========================================================================
   Our Needs page (needs.html): page-only styles, scoped with body.page-needs.
   Builds on main.css v2 components (page-hero, impact-stats, need-detail,
   collage, photo-frame, pay-card, steps, promise). Colours from tokens only.
     01  Hero figure (landscape photo)
     02  Needs index (the four needs, over the hero edge) + intro
     03  Jump bar (fixed under the header while the four needs are on screen)
     04  Need sections (collage tuning, inline links, classroom block with the
         site-walk video card)
     05  Summary table (responsive: rows become cards on phones)
     06  How to give (sticky intro + stacked pay cards)
     07  Closing CTA (quick gifts, verse)
     08  Small additions (approximate goals, email links)
   ========================================================================== */

/* --------------------------------------------------------------------------
   01  Hero figure: the workbooks photo is landscape, so let it use the column
   -------------------------------------------------------------------------- */
.page-needs .needs-hero__figure {
  max-width: 560px;
}

@media (min-width: 960px) {
  .page-needs .needs-hero .page-hero__inner {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  }
}

/* phones: the two trust points sit side by side */
@media (max-width: 559.98px) {
  .page-needs .needs-hero .page-hero__meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
    font-size: .75rem;
    line-height: 1.4;
  }
  .page-needs .needs-hero .page-hero__meta strong {
    margin-bottom: .2rem;
    font-size: 1.0625rem;
    line-height: 1.2;
  }
}

/* --------------------------------------------------------------------------
   02  Needs index: four linked numbers on a paper card over the hero edge
   -------------------------------------------------------------------------- */
.page-needs .needs-index__list {
  margin-bottom: 0;
  padding: 0;
  list-style: none;
}

.page-needs .needs-index__item {
  display: flex;
  flex-direction: column;
  transition: background-color .45s ease;
}

.page-needs .needs-index__item::before {
  transition: width .6s var(--ease-out);
}

.page-needs .needs-index__item:hover,
.page-needs .needs-index__item:focus-within {
  background: var(--purple-50);
}

.page-needs .needs-index__item:hover::before,
.page-needs .needs-index__item:focus-within::before {
  width: 56px;
}

.page-needs .needs-index__no {
  position: absolute;
  top: clamp(1.35rem, 2.6vw, 2.2rem);
  right: clamp(1.1rem, 2.2vw, 2rem);
  font-family: var(--font-serif);
  font-size: .9375rem;
  line-height: 1;
  letter-spacing: .04em;
  color: var(--gold-700);
}

/* the whole cell is the link (the label carries the accessible name) */
.page-needs .needs-index__link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.page-needs .needs-index__link:focus-visible {
  outline: none;
}

.page-needs .needs-index__item:has(.needs-index__link:focus-visible) {
  outline: 3px solid var(--purple-700);
  outline-offset: -3px;
}

.page-needs .needs-index__item .impact-stat__note {
  padding-right: 2.75rem;
}

.page-needs .needs-index__go {
  position: absolute;
  right: clamp(1.1rem, 2.2vw, 2rem);
  bottom: clamp(1.4rem, 2.6vw, 2.2rem);
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--purple-700);
  font-size: .85rem;
  transition: background-color .35s ease, color .35s ease, border-color .35s ease, transform .5s var(--ease-out);
}

.page-needs .needs-index__item:hover .needs-index__go,
.page-needs .needs-index__item:focus-within .needs-index__go {
  background: var(--purple-700);
  border-color: var(--purple-700);
  color: #fff;
  transform: translateY(3px);
}

/* phones: one compact row per need (number | label + note | arrow) instead of tall 2x2 tiles */
@media (max-width: 599.98px) {
  .page-needs .needs-index__list {
    grid-template-columns: minmax(0, 1fr);
  }
  .page-needs .needs-index__item {
    display: grid;
    grid-template-columns: 3.6rem minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 1rem;
    padding: 1.1rem 1.15rem 1.15rem;
  }
  .page-needs .needs-index__item::before,
  .page-needs .needs-index__no {
    display: none;
  }
  .page-needs .needs-index__item .impact-stat__num {
    grid-row: 1 / span 2;
    font-size: 2.6rem;
  }
  .page-needs .needs-index__item .impact-stat__label {
    grid-column: 2;
    margin-top: 0;
    letter-spacing: .12em;
  }
  .page-needs .needs-index__item .impact-stat__note {
    grid-column: 2;
    margin-top: .15rem;
    padding-right: 0;
    font-size: .8125rem;
  }
  .page-needs .needs-index__go {
    position: static;
    grid-column: 3;
    grid-row: 1 / span 2;
    width: 2rem;
    height: 2rem;
    font-size: .75rem;
  }
}

/* intro under the card: mission line + two short paragraphs */
.page-needs .needs-intro {
  padding-bottom: clamp(64px, 8vw, 112px);
}

.page-needs .needs-intro__body {
  display: grid;
  gap: 1.5rem clamp(40px, 6vw, 110px);
  margin-top: clamp(56px, 7vw, 100px);
}

@media (min-width: 960px) {
  .page-needs .needs-intro__body {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: center;
  }
}

.page-needs .needs-intro__title {
  max-width: 18ch;
  font-size: clamp(1.9rem, 1.35rem + 2.1vw, 3.1rem);
}

.page-needs .needs-intro__text {
  max-width: 52ch;
  color: var(--c-muted);
}

.page-needs .needs-intro__text p + p {
  margin-top: .9em;
}

.page-needs .needs-intro__text .btn--link {
  margin-top: 1.4rem;
}

/* --------------------------------------------------------------------------
   03  Jump bar: slides out from under the fixed header (needs.js toggles
   .is-visible). z-index sits below the header (100) and its dropdowns.
   -------------------------------------------------------------------------- */
.needs-nav {
  --nav-h: 56px;
  position: fixed;
  top: var(--header-h-scrolled);
  left: 0;
  right: 0;
  z-index: 90;
  background: rgba(255, 253, 249, .94);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 14px 28px -24px rgba(31, 18, 41, .55);
  -webkit-backdrop-filter: saturate(1.3) blur(10px);
  backdrop-filter: saturate(1.3) blur(10px);
  color: var(--ink);
  visibility: hidden;
  opacity: 0;
  transform: translateY(calc(-100% - 2px));
  transition: transform .5s var(--ease-out), opacity .3s ease, visibility 0s linear .5s;
  --c-focus: var(--purple-700);
  --link-pad: .9rem;
}

.needs-nav.is-visible {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: transform .5s var(--ease-out), opacity .3s ease, visibility 0s;
}

.needs-nav__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: var(--nav-h);
}

.needs-nav__list {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  height: 100%;
  margin: 0 0 0 calc(-1 * var(--link-pad));
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.needs-nav__list::-webkit-scrollbar {
  display: none;
}

.needs-nav__list li {
  flex: none;
  height: 100%;
}

.needs-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  height: 100%;
  padding: 0 var(--link-pad);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--slate);
  white-space: nowrap;
  transition: color .25s ease;
}

.needs-nav__link::after {
  content: "";
  position: absolute;
  left: var(--link-pad);
  right: var(--link-pad);
  bottom: 0;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: var(--gold-500);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .45s var(--ease-out);
}

.needs-nav__link:hover,
.needs-nav__link.is-active {
  color: var(--purple-900);
}

.needs-nav__link:hover::after {
  transform: scaleX(.35);
}

.needs-nav__link.is-active::after {
  transform: scaleX(1);
}

.needs-nav__link:focus-visible {
  outline-offset: -4px;
}

.needs-nav__no {
  font-family: var(--font-serif);
  font-size: .8125rem;
  font-weight: 400;
  color: var(--gold-700);
}

.needs-nav__give {
  flex: none;
}

/* when the list scrolls sideways, needs.js marks the side(s) with more labels (data-more-left /
   data-more-right) and only that edge fades out, so a cut-off label reads as "more"; an edge with
   nothing beyond it stays sharp */
.needs-nav__list[data-more-left],
.needs-nav__list[data-more-right] {
  -webkit-mask-image: linear-gradient(90deg, var(--mask-l, #000) 0, #000 var(--fade-l, 0px), #000 calc(100% - var(--fade-r, 0px)), var(--mask-r, #000) 100%);
  mask-image: linear-gradient(90deg, var(--mask-l, #000) 0, #000 var(--fade-l, 0px), #000 calc(100% - var(--fade-r, 0px)), var(--mask-r, #000) 100%);
}

.needs-nav__list[data-more-left] {
  --fade-l: 28px;
  --mask-l: transparent;
}

.needs-nav__list[data-more-right] {
  --fade-r: 28px;
  --mask-r: transparent;
}

/* phones: the action bar at the foot of the screen already has Donate, so the bar drops its Give
   button and the list runs edge to edge (the labels still start on the page margin) */
@media (max-width: 639.98px) {
  .needs-nav__give {
    display: none;
  }
  .needs-nav__list {
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: max(0px, calc(var(--gutter) - var(--link-pad)));
  }
}

@media (max-width: 559.98px) {
  .needs-nav {
    --nav-h: 48px;
    --link-pad: .6rem;
  }
  .needs-nav__link {
    font-size: .75rem;
  }
  .needs-nav__no {
    display: none;
  }
}

/* jump targets clear the header and the jump bar */
.page-needs .needs-section {
  scroll-margin-top: calc(var(--header-h-scrolled) + 56px);
}

/* --------------------------------------------------------------------------
   04  Need sections
   -------------------------------------------------------------------------- */
/* the text column never needs to be wider than a comfortable measure */
.page-needs .need-detail__body {
  max-width: 640px;
}

.page-needs .need-detail .btn-group {
  margin-top: 2rem;
}

.page-needs .need-detail__note {
  max-width: 60ch;
}

/* small inline text link (on light and purple) */
.page-needs .needs-inline-link {
  font-weight: 600;
  color: var(--c-link);
  text-decoration: underline;
  text-decoration-color: var(--c-rule);
  text-decoration-thickness: 1px;
  text-underline-offset: .22em;
  transition: color .25s ease, text-decoration-color .25s ease;
}

.page-needs .needs-inline-link:hover {
  text-decoration-color: currentColor;
}

/* collages: keep the inset inside the column on phones */
.page-needs .needs-collage {
  max-width: 600px;
}

.page-needs .needs-collage--tall {
  max-width: 540px;
}

.page-needs .need-detail--reverse .needs-collage {
  margin-left: auto;
}

@media (max-width: 959.98px) {
  .page-needs .need-detail--reverse .needs-collage {
    margin-left: 0;
  }
}

.page-needs .collage__badge {
  text-align: left;
}

/* a photo tag the collage inset would cover sits at the top instead */
.page-needs .photo-frame__tag--top {
  top: .85rem;
  bottom: auto;
}

/* in a mirrored collage the inset covers the bottom-left: move the photo tag to the top right */
.page-needs .collage--reverse .collage__main .photo-frame__tag {
  top: .85rem;
  bottom: auto;
  left: auto;
  right: .85rem;
}

@media (max-width: 599.98px) {
  .page-needs .collage__badge {
    padding: .7rem .85rem;
    font-size: .5625rem;
  }
  .page-needs .collage__badge strong {
    font-size: 1.75rem;
  }
}


/* 04b  Classroom block (purple section) ------------------------------------
   The site-walk video is the proof here. Phones: heading and text, then the
   video, then the facts and buttons (so the video comes before the ask).
   Desktop: the text column on the left (intro above, facts and buttons below)
   and the portrait video beside both. The video is about as tall as the
   screen, so it is not sticky. */
.page-needs .needs-block .need-detail {
  align-items: start;
}

.page-needs .needs-block__grid {
  grid-template-areas:
    "intro"
    "media"
    "more";
  row-gap: clamp(2.25rem, 7vw, 3.25rem);
}

.page-needs .needs-block__intro { grid-area: intro; }
.page-needs .needs-block__media { grid-area: media; }
.page-needs .needs-block__more  { grid-area: more; }

/* below the video the row gap is enough: the facts' own top margin would double it */
@media (max-width: 959.98px) {
  .page-needs .needs-block__more > .need-facts:first-child {
    margin-top: 0;
  }
}

@media (min-width: 960px) {
  .page-needs .needs-block__grid {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    grid-template-rows: auto 1fr;
    grid-template-areas:
      "intro media"
      "more  media";
    row-gap: 0;
  }
}

.page-needs .needs-help {
  display: grid;
  gap: .75rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
}

.page-needs .needs-help li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .9rem;
  align-items: start;
  align-content: start;
  padding: 1rem 1.1rem;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  background: var(--c-tint);
  font-size: .875rem;
  line-height: 1.5;
  color: var(--c-muted);
}

.page-needs .needs-help i {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  background: var(--gold-500);
  color: var(--purple-950);
  font-size: .95rem;
}

.page-needs .needs-help strong {
  display: block;
  margin-bottom: .2rem;
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.3;
  color: var(--c-heading);
}

@media (min-width: 640px) {
  .page-needs .needs-help {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .page-needs .needs-help li {
    grid-template-columns: minmax(0, 1fr);
    gap: .75rem;
    padding: 1.1rem 1.15rem 1.2rem;
  }
}

/* --------------------------------------------------------------------------
   05  Summary table (rows become cards below 900px)
   -------------------------------------------------------------------------- */
.page-needs .needs-table-wrap {
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.page-needs .needs-table {
  width: 100%;
  font-size: .9375rem;
  line-height: 1.5;
}

.page-needs .needs-table thead th {
  padding: 1rem 1.5rem;
  background: var(--purple-50);
  border-bottom: 1px solid var(--line);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-align: left;
  text-transform: uppercase;
  color: var(--slate);
}

.page-needs .needs-table tbody th,
.page-needs .needs-table tbody td {
  padding: 1.4rem 1.5rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

@media (min-width: 900px) {
  .page-needs .needs-table tbody tr:last-child > * {
    border-bottom: 0;
  }
}

.page-needs .needs-table tbody tr {
  transition: background-color .3s ease;
}

.page-needs .needs-table tbody tr:hover {
  background: var(--khaki-50);
}

.page-needs .needs-table tbody th {
  font-weight: 400;
}

.page-needs .needs-table td strong {
  display: block;
  font-family: var(--font-display);   /* the cedi sign comes from the glyph-only fallback face (main.css) */
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.25;
  color: var(--purple-900);
  font-variant-numeric: lining-nums;
}

.page-needs .needs-table td > span {
  display: block;
  margin-top: .2rem;
  font-size: .8125rem;
  line-height: 1.45;
  color: var(--slate);
}

.page-needs .needs-table__need {
  display: inline-flex;
  align-items: center;
  gap: .95rem;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  line-height: 1.25;
  color: var(--purple-900);
}

.page-needs .needs-table__need:hover {
  color: var(--purple-700);
}

.page-needs .needs-table__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--purple-100);
  color: var(--purple-700);
  font-size: 1rem;
  transition: background-color .35s ease, color .35s ease;
}

.page-needs .needs-table tbody tr:hover .needs-table__icon {
  background: var(--purple-700);
  color: var(--gold-300);
}

.page-needs .needs-table__no {
  display: block;
  margin-bottom: .15rem;
  font-family: var(--font-sans);
  font-size: .625rem;
  font-weight: 600;
  letter-spacing: .16em;
  color: var(--gold-700);
}

.page-needs .needs-table tbody .needs-table__action {
  width: 1%;
  text-align: right;
  white-space: nowrap;
}

.page-needs .needs-table__foot {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  margin-top: 1.4rem;
  font-size: .9375rem;
  line-height: 1.55;
  color: var(--c-muted);
}

.page-needs .needs-table__foot i {
  margin-top: .25rem;
  color: var(--c-accent-icon);
}

@media (min-width: 900px) and (max-width: 1179.98px) {
  .page-needs .needs-table thead th,
  .page-needs .needs-table tbody th,
  .page-needs .needs-table tbody td {
    padding-inline: 1.1rem;
  }
}

@media (max-width: 899.98px) {
  .page-needs .needs-table,
  .page-needs .needs-table tbody,
  .page-needs .needs-table tr,
  .page-needs .needs-table th,
  .page-needs .needs-table td {
    display: block;
  }
  .page-needs .needs-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .page-needs .needs-table tbody tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.25rem;
    padding: 1.35rem 1.25rem 1.4rem;
    border-bottom: 1px solid var(--line);
  }
  .page-needs .needs-table tbody tr:last-child {
    border-bottom: 0;
  }
  .page-needs .needs-table tbody th,
  .page-needs .needs-table tbody td {
    padding: 0;
    border: 0;
  }
  .page-needs .needs-table tbody th {
    grid-column: 1 / -1;
    padding-bottom: .9rem;
    border-bottom: 1px solid var(--line);
  }
  .page-needs .needs-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    margin-bottom: .3rem;
    font-size: .625rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--slate);
  }
  .page-needs .needs-table td strong {
    font-size: 1.1rem;
  }
  .page-needs .needs-table tbody .needs-table__action {
    width: auto;
    align-self: end;
  }
  .page-needs .needs-table__action .btn {
    width: 100%;
  }
}

@media (min-width: 560px) and (max-width: 899.98px) {
  .page-needs .needs-table tbody tr {
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    padding-inline: 1.5rem;
  }
}

/* --------------------------------------------------------------------------
   06  How to give: sticky intro and steps on the left, pay cards on the right
   -------------------------------------------------------------------------- */
.page-needs .needs-how {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem) clamp(40px, 6vw, 100px);
}

@media (min-width: 1100px) {
  .page-needs .needs-how {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    align-items: start;
  }
  .page-needs .needs-how__intro {
    position: sticky;
    top: calc(var(--header-h-scrolled) + 2rem);
  }
  .page-needs .needs-how__pay {
    grid-template-columns: minmax(0, 1fr);
  }
}

.page-needs .needs-how__intro h2 {
  max-width: 14ch;
}

.page-needs .needs-how__lede {
  max-width: 46ch;
  margin-top: 1.25rem;
  font-size: var(--fs-lede);
  line-height: 1.6;
  color: var(--c-muted);
}

.page-needs .needs-how .steps {
  margin-top: clamp(2rem, 4vw, 2.75rem);
}

/* keep the steps vertical at every width (main.css turns them horizontal from 900px) */
@media (min-width: 900px) {
  .page-needs .steps--stack {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.75rem;
  }
  .page-needs .steps--stack .steps__item {
    padding-top: 0;
    padding-left: 4.1rem;
  }
  .page-needs .steps--stack .steps__item:not(:last-child)::after {
    top: 3rem;
    bottom: -1.75rem;
    left: 1.5rem;
    right: auto;
    width: 0;
    border-top: 0;
    border-left: 1px dashed var(--c-rule);
  }
  .page-needs .steps--stack .steps__title {
    margin-top: .55rem;
  }
}

@media (max-width: 1099.98px) {
  /* one column: keep the intro and steps at a readable measure */
  .page-needs .needs-how__intro {
    max-width: 640px;
  }
}

.page-needs .needs-promise {
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

/* --------------------------------------------------------------------------
   07  Closing CTA
   -------------------------------------------------------------------------- */
.page-needs .needs-close__inner {
  display: grid;
  gap: clamp(3rem, 6vw, 5rem);
  align-items: center;
}

@media (min-width: 960px) {
  .page-needs .needs-close__inner {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  }
}

.page-needs .needs-close__text h2 {
  max-width: 19ch;
}

.page-needs .needs-close__lede {
  max-width: 52ch;
  margin-top: 1.25rem;
  font-size: var(--fs-lede);
  line-height: 1.6;
  color: var(--c-muted);
}

.page-needs .quick-gifts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .page-needs .quick-gifts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.page-needs .quick-gifts li {
  min-width: 0;
}

.page-needs .quick-gift {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: .8rem;
  height: 100%;
  padding: .85rem 1rem;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  color: var(--ink);
  transition: border-color .35s ease, box-shadow .45s var(--ease-out), transform .45s var(--ease-out);
}

.page-needs .quick-gift i {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--purple-100);
  color: var(--purple-700);
  font-size: .95rem;
  transition: background-color .35s ease, color .35s ease;
}

.page-needs .quick-gift__amount {
  font-family: var(--font-display);   /* has the cedi sign */
  font-size: 1.3rem;
  line-height: 1.2;
  color: var(--purple-900);
  white-space: nowrap;
}

.page-needs .quick-gift__label {
  font-size: .8125rem;
  line-height: 1.35;
  color: var(--slate);
}

.page-needs .quick-gift:hover,
.page-needs .quick-gift:focus-visible {
  border-color: var(--gold-500);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.page-needs .quick-gift:hover i,
.page-needs .quick-gift:focus-visible i {
  background: var(--purple-700);
  color: var(--gold-300);
}

/* phones: two cards a row leave too little room beside the icon for "GH&#8373; 3,500", so the
   icon sits above the amount */
@media (max-width: 479.98px) {
  .page-needs .quick-gift {
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    row-gap: .15rem;
  }
  .page-needs .quick-gift i {
    grid-row: auto;
    width: 2.1rem;
    height: 2.1rem;
    margin-bottom: .45rem;
    font-size: .85rem;
  }
}

.page-needs .needs-close .btn-group {
  margin-top: 2rem;
}

.page-needs .needs-close__call {
  margin-top: 1.25rem;
  font-size: .9375rem;
  color: var(--c-muted);
}

.page-needs .needs-close__call a {
  font-weight: 600;
  color: var(--c-link);
  white-space: nowrap;
  text-decoration: underline;
  text-decoration-color: var(--c-rule);
  text-underline-offset: .2em;
}

.page-needs .needs-close__media {
  width: 100%;
  max-width: 420px;
}

@media (min-width: 960px) {
  .page-needs .needs-close__media {
    justify-self: end;
  }
}

@media (min-width: 600px) and (max-width: 959.98px) {
  /* tablet: photo and verse side by side instead of one tall stack */
  .page-needs .needs-close__media {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 4fr);
    gap: 2.5rem;
    align-items: end;
    max-width: none;
  }
  .page-needs .needs-close__media .needs-verse {
    margin: 0 0 4.5rem;
  }
}

.page-needs .needs-verse {
  margin: 2rem 0 0;
  padding-left: 1.1rem;
  border-left: 2px solid var(--gold-500);
}

.page-needs .needs-verse p {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.4;
  color: var(--purple-900);
}

.page-needs .needs-verse footer {
  margin-top: .4rem;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--c-accent);
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .page-needs .quick-gift:hover,
  .page-needs .quick-gift:focus-visible,
  .page-needs .needs-index__item:hover .needs-index__go {
    transform: none;
  }
  .needs-nav {
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   08  Small additions
   -------------------------------------------------------------------------- */
/* "About" before an approximate goal: a quiet qualifier on its own line above the large figure
   (inline, it would wrap anyway in a 3-column row). Each fact's figure is pushed to the bottom of
   its cell, so the three large figures in a row still line up. */
.page-needs .need-facts--lg > div {
  display: flex;
  flex-direction: column;
}

.page-needs .need-facts--lg dd {
  margin-top: auto;
  padding-top: .3rem;
}

.page-needs .need-facts__approx {
  display: block;
  margin-bottom: .05rem;
  font-family: var(--font-sans);
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: .02em;
  color: var(--c-muted);
}

/* the school email moves whole to the next line when it can; it only breaks inside if a line is too narrow for it */
.page-needs main a[href^="mailto:"] {
  overflow-wrap: anywhere;
}
