/*
 * Donate page. Loaded through site_page(['page_css' => ...]) after
 * assets/style.css, so it uses the tokens defined there.
 */

/* ---------- Hero ---------- */
.donate-hero-art { width: 100%; height: auto; overflow: visible; }
.donate-hero-art-compact { display: none; }
.donate-hero-actions { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.donate-hero-actions .btn-violet svg,
.donate-button svg { width: 16px; height: 16px; }

.donate > section { padding-top: 56px; }

/* ---------- Donation card and what it pays for ---------- */
.donate-main {
  display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 1fr);
  gap: 64px; align-items: center; padding-left: 40px; padding-right: 40px;
}
.donate-tray { max-width: none; justify-self: stretch; padding-bottom: 14px; }
.donate-card { min-height: 0; padding: 26px 30px 26px; }
.donate-card-title { margin-top: 14px; font-size: 1.6rem; font-weight: 600; letter-spacing: -.04em; line-height: 1.15; }
.donate-card-lede { margin-top: 8px; color: var(--slate); max-width: 40ch; text-wrap: pretty; }

.donate-recipient {
  margin-top: 22px; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: center;
  padding: 14px 16px; border-radius: 16px; background: var(--mist); border: 1px solid #edf0f0;
}
.donate-recipient-mark {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, #8f74ff, #5b3fd9); color: #fff;
  box-shadow: 0 8px 16px -8px rgba(91, 63, 217, .8);
}
.donate-recipient-mark svg { width: 20px; height: 20px; fill: #fff; }
.donate-recipient .donation-email { margin-top: 1px; font: 500 1.04rem var(--sans); letter-spacing: -.01em; }

.donate-steps { list-style: none; margin-top: 18px; display: grid; gap: 0; }
.donate-steps li {
  position: relative; display: flex; align-items: center; gap: 14px;
  padding: 9px 0; color: #33373f; font-size: .95rem;
}
.donate-steps li + li { border-top: 1px dashed #edf0f0; }
.donate-steps span {
  flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; border: 1.5px solid var(--line); font: 500 .8rem var(--mono); color: var(--ink);
}
.donate-steps li:last-child span { background: var(--ink); border-color: var(--ink); color: #fff; }

.donate-button { margin-top: 20px; width: 100%; padding: 16px 22px; font-size: 1rem; }
.donate-card-note { margin-top: 12px; color: var(--slate); font-size: .84rem; text-align: center; text-wrap: pretty; }

.donate-h2 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); letter-spacing: -.04em; line-height: 1.1; font-weight: 600; max-width: 18ch; }
.donate-intro { margin-top: 16px; color: var(--slate); max-width: 54ch; text-wrap: pretty; }

/* One lead cost with its icon, then the smaller ones as a plain list. */
.donate-pay-lead {
  margin-top: 28px; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 18px; align-items: start;
  padding: 22px 24px; border-radius: 20px; background: #eefaf6; border: 1px solid #d3efe5;
}
.donate-pay-icon {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  background: #fff; color: var(--mint-ink); border: 1px solid #b6ead8;
}
.donate-pay-icon svg { width: 24px; height: 24px; }
.donate-pay-lead-title { font-size: 1.22rem; font-weight: 600; letter-spacing: -.025em; color: var(--ink); }
.donate-pay-lead-text { margin-top: 4px; color: #3f4450; text-wrap: pretty; max-width: 52ch; }
.donate-pay-list { margin-top: 10px; }
.donate-pay-list > div {
  display: grid; grid-template-columns: minmax(0, 13rem) minmax(0, 1fr); gap: 6px 24px; align-items: baseline;
  padding: 14px 4px; border-bottom: 1px solid var(--line);
}
/* The thanks block below draws the closing hairline. */
.donate-pay-list > div:last-child { border-bottom: 0; }
.donate-pay-list + .donate-thanks { margin-top: 14px; }
.donate-pay-list dt { font-weight: 500; color: var(--ink); letter-spacing: -.01em; }
.donate-pay-list dd { color: var(--slate); font-size: .94rem; text-wrap: pretty; }

.donate-thanks {
  margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; align-items: center;
}
.donate-monogram {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: #fff; font-weight: 600; font-size: .98rem; letter-spacing: -.03em;
}
.donate-thanks blockquote p { font-size: 1.12rem; font-weight: 500; letter-spacing: -.02em; line-height: 1.4; color: var(--ink); text-wrap: pretty; }
.donate-thanks figcaption { margin-top: 2px; color: var(--slate); font-size: .9rem; }

/* ---------- Closing band: mint to violet tint, ring and hop motif ---------- */
.donate-close-band {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px; align-items: center;
  padding: 36px 48px; border-radius: var(--radius-lg);
  background: linear-gradient(120deg, #e6f8f1 0%, #f3f0ff 100%);
  border: 1px solid #d3ece3;
}
.donate-close-copy { min-width: 0; }
.donate-close-motif { width: 156px; height: 36px; margin-bottom: 20px; }
.donate-close p { margin-top: 12px; color: #4a4f5a; font-size: .96rem; max-width: 46ch; text-wrap: pretty; }
.donate-bar { margin-top: 0; max-width: none; min-width: 0; }
.donate-bar input { padding: 17px 6px; font-size: 1rem; }
.donate-close-action { min-width: 0; }
.donate-chips { list-style: none; margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.donate-chips li {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 13px 7px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .7); border: 1px solid #d3ece3;
  color: #33373f; font-size: .88rem; font-weight: 500; white-space: nowrap;
}
.donate-chips svg { width: 15px; height: 15px; color: var(--mint-ink); }

@media (max-width: 1080px) {
  .donate-main { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .donate-tray { max-width: 560px; justify-self: start; }
  .donate-close-band { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 36px; }
}

@media (max-width: 760px) {
  .donate > section { padding-top: 40px; }
  .donate-hero-actions { margin-top: 22px; }
  .donate-main { padding-left: 4px; padding-right: 4px; gap: 40px; }
  .donate-close { padding-left: 0; padding-right: 0; }
  .donate-close-band { padding: 28px 20px 22px; border-radius: 26px; gap: 22px; }
  .donate-close-motif { width: 130px; height: 30px; margin-bottom: 16px; }
  .donate-tray { max-width: none; width: 100%; padding: 10px; border-radius: 26px; }
  .donate-card { padding: 20px 18px 20px; }
  .donate-card-title { font-size: 1.4rem; }
  .donate-recipient { padding: 12px; gap: 12px; }
  .donate-recipient .donation-email { font-size: .98rem; word-break: normal; overflow-wrap: anywhere; }
  .donate-pay-list > div { grid-template-columns: minmax(0, 1fr); }
  .donate-pay-lead { grid-template-columns: 44px minmax(0, 1fr); padding: 18px; gap: 14px; }
  .donate-pay-icon { width: 44px; height: 44px; border-radius: 14px; }
}

@media (max-width: 600px) {
  /* The stage dot texture lands between the hero buttons and the art here. */
  .page-donate .stage-clip::after { display: none; }
  .donate-hero-art-full { display: none; }
  .donate-hero-art-compact { display: block; }
}

@media (max-width: 440px) {
  .donate-recipient { grid-template-columns: minmax(0, 1fr); }
  .donate-recipient-mark { display: none; }
}
