/* A good deed doesn't make a good person. Site by hershal.io */
/* Donate. Reuses the request form's clay layer; these place Givebutter's embedded giving form, the "Before you give"
   column beside it and the states around it. Givebutter's form is always white and draws its own outline, so in the
   light palettes its card is white too and the form sits straight on it, lined up with the text, as part of the card
   rather than a frame inside it. The dark palettes keep their tile, with the white form on it. */
:root:not(.inverse) .donate-page .form-section{background:#fff}
/* Top bar, as on the other form pages: one back link at every width, its arrow always showing. From 701px it names
   where it goes; on phones it reads "Back", a 44px target that leaves the bar its height. */
.donate-page .nav-back{display:inline-flex;align-items:center;font-size:14px;font-weight:500}
.donate-page .nav-back .arrow{max-width:1em;opacity:1;margin-right:8px;transform:none}
.donate-page .back-short{display:none}
@media(max-width:700px){
  .donate-page .back-long{display:none}.donate-page .back-short{display:inline}
  .donate-page .nav-back{min-height:44px;margin:-2px 0;padding:0 10px 0 8px}
}
/* Smallest phones: the back link and the three buttons leave no room to centre the logo, so it sits beside the link. */
@media(max-width:374px){.donate-page .nav__row{grid-template-columns:auto minmax(0,1fr) auto}.donate-page .brand{justify-self:start}}
/* One card. Givebutter draws its form 440px wide, so from 921px the form takes a 440px column and "Before you give"
   takes the rest of the card; below that the facts sit under the form, after a rule. */
.donate-page .form-intro>.lead{max-width:none;text-wrap:balance}
.donate-card{display:grid;grid-template-columns:minmax(0,1fr);gap:var(--pad)}
.donate-give{min-width:0}
.donate-desc{font-size:16px;line-height:1.6;color:var(--text);margin:0 0 var(--stack);max-width:57ch}
.donate-desc[hidden]{display:none}
.donate-english{color:var(--ink);font-weight:500}
/* Spanish only: the form is Givebutter's and stays in English, so its four choices are glossed on a line of their own. */
.donate-english{display:block;margin-top:6px;font-size:14px}
.donate-english [lang=en]{white-space:nowrap}
/* The form's own area. Its height is held from the start (Givebutter's first step is 508px tall at full width, 552px
   when the form is narrower), so the page does not jump when the form arrives. color-scheme keeps Givebutter's frame
   light when the site is in a dark mode. The area takes focus from the skip link, without a ring around the whole form. */
.donate-embed{position:relative;min-height:552px;color-scheme:light;scroll-margin-top:96px}
@media(min-width:540px){.donate-embed{min-height:508px}}
.donate-embed[hidden]{display:none}
.donate-embed:focus{outline:0}
.donate-embed>givebutter-giving-form{display:block;width:100%;max-width:600px}
.donate-embed>givebutter-giving-form[aria-busy=true]{visibility:hidden}
/* While the form loads: a pressed panel the size of the form, with the logo's three bars, one line saying what is
   happening, and the way to Givebutter's own page in case the form never comes. */
.donate-loading{position:absolute;inset:0 auto 0 0;width:100%;max-width:440px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--stack);padding:var(--pad);border-radius:16px;background:var(--paper);box-shadow:var(--shadow-press);text-align:center}
.donate-loading[hidden]{display:none}
@media(max-width:539px){.donate-loading{justify-content:flex-start;padding-top:40px}}
.donate-wait{margin:0;font-size:16px;font-weight:500;line-height:1.5;color:var(--ink);max-width:24ch;text-wrap:balance}
.donate-bars{display:flex;flex-direction:column;gap:6px;width:56px;transform:rotate(-6deg)}
.donate-bars i{display:block;height:11px;border-radius:6px;box-shadow:inset -1px -2px 3px rgba(0,0,0,.08),inset 1px 2px 3px rgba(255,255,255,.75);animation:donate-wait 1.4s ease-in-out infinite}
.donate-bars i:nth-child(1){background:#ffcb00}
.donate-bars i:nth-child(2){width:70%;background:#9db6ff;animation-delay:.18s}
.donate-bars i:nth-child(3){background:#7fd8b9;animation-delay:.36s}
@keyframes donate-wait{0%,100%{opacity:1}50%{opacity:.3}}
@media(prefers-reduced-motion:reduce){.donate-bars i{animation:none}}
@media(forced-colors:active){.donate-loading{border:1px solid CanvasText}}
/* The way to Givebutter's own page: inside the loading box, then under the form. The link is a full-height tap target. */
.donate-alt{margin:0;font-size:14px;line-height:1.5;color:var(--muted)}
.donate-alt[hidden]{display:none}
.donate-alt a{display:inline-block;padding:11px 0;line-height:22px;color:var(--ink);text-underline-offset:4px}
.donate-give>.donate-alt{margin-top:4px}
.donate-status:empty{display:none}
.donate-message{font-size:16px;line-height:1.6;color:var(--text);margin:0 0 20px;max-width:57ch}
.donate-message strong{display:block;color:var(--ink);font-weight:500;margin-bottom:4px}
.donate-status .request,.donate-status .request:hover,.donate-status .request:focus-visible{border:0;max-width:100%;padding:12px 22px;line-height:1.3;white-space:normal}
/* "Before you give": what a gift pays for, who receives it, how the payment is handled, where to ask. */
.donate-facts{display:flex;flex-direction:column;gap:var(--stack);min-width:0;padding-top:var(--pad);border-top:1px solid var(--line)}
.donate-facts h2{margin:0;max-width:none;font-size:12px;font-weight:500;line-height:1.6;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.donate-points{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(264px,100%),1fr));gap:20px var(--pad)}
.donate-points>div{min-width:0}
.donate-points h3{margin:0 0 4px;font-size:16px;font-weight:500;line-height:1.4;letter-spacing:-.01em;color:var(--ink)}
.donate-points p{margin:0;font-size:15px;line-height:1.6;color:var(--text);max-width:48ch;text-wrap:pretty}
.donate-points a,.donate-more a{display:block;width:fit-content;padding:10px 0;font-size:15px;line-height:24px;color:var(--ink);font-weight:500;text-underline-offset:4px}
/* Other ways to help close the card: under the facts, across the card's foot on narrower desktops (where the facts
   column already runs as long as the form), and at the foot of the facts column, level with the form's last line, on wide ones. */
.donate-more{margin:0;padding-top:var(--stack);border-top:1px solid var(--line);font-size:14px;line-height:1.6;color:var(--muted);max-width:none}
.donate-more strong{display:block;color:var(--ink);font-weight:500}
@media(min-width:921px){
  .donate-card{grid-template-columns:minmax(0,440px) minmax(0,1fr);column-gap:calc(var(--pad) + 16px)}
  .donate-facts{padding-top:0;border-top:0}
  .donate-more{grid-column:1/-1}
}
@media(min-width:1100px){
  .donate-give{grid-row:1/3}
  .donate-more{grid-column:2;align-self:end}
}
/* Wide screens: the facts run two by two, a size up, so the column fills its half of the card. */
@media(min-width:1240px){
  .donate-points{gap:28px var(--pad)}
  .donate-points h3{font-size:17px}
  .donate-points p{font-size:16px}
}
