/* Give to a specific need (the Give page) and the owner's editor for it. Loaded on /give/ only, after site.css. */
.needs-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
  margin-bottom: clamp(28px, 4vw, 44px);
}
.needs-head > div:first-child {
  display: grid;
  gap: 14px;
  max-width: 42em;
}
.needs-head .lede {
  margin: 0;
}
.needs-owner:empty {
  display: none;
}
.needs-edit-btn {
  min-height: 42px;
  padding: 0 18px;
  font-size: 15px;
}
.needs-list {
  display: grid;
  gap: clamp(24px, 3vw, 36px);
}
.needs-empty {
  margin: 0;
  color: var(--muted);
}
#needs-notice:not(:empty) {
  margin-top: 16px;
}

/* a need */
.need {
  display: grid;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: calc(var(--r) + 6px);
  overflow: hidden;
  box-shadow: 0 30px 60px -44px rgba(11, 26, 42, 0.45);
}
@media (min-width: 900px) {
  .need:has(> .need-ba, > .need-img) {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  }
}
.need-img,
.need-ba img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--sky-wash);
}
.need-img {
  height: 100%;
}
.need-ba {
  display: grid;
  gap: 4px;
  background: var(--ink);
}
.need-ba figure {
  margin: 0;
  position: relative;
}
.need-ba figcaption {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  font: 800 13px/1 var(--ui);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(15, 29, 43, 0.82);
  color: var(--white);
}
.need-ba figure + figure figcaption {
  background: var(--dawn);
  color: #2a1b00;
}
.need-body {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: clamp(22px, 3.5vw, 40px);
}
.need-body > p {
  margin: 0;
  font: 400 18px/1.6 var(--read);
}
.need-t {
  font: 800 clamp(30px, 3.2vw, 42px)/1 var(--display);
}
.need-body > .need-goal {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font: 600 16px/1.2 var(--ui);
  color: var(--muted);
}
.need-goal b {
  font: 800 clamp(40px, 4.4vw, 54px)/0.9 var(--display);
  color: var(--ink);
}
.need-prog {
  display: grid;
  gap: 8px;
}
.need-prog p {
  margin: 0;
  font: 600 15px/1.3 var(--ui);
  color: var(--muted);
}
.need-prog b {
  color: var(--ink);
}
.need-bar {
  height: 12px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  overflow: hidden;
}
.need-bar span {
  display: block;
  height: 100%;
  min-width: 6px;
  border-radius: inherit;
  background: var(--dawn);
}
.need-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}
.need-actions .btn-dawn {
  min-height: 56px;
  font-size: 18px;
}
@media (max-width: 480px) {
  .need-actions .btn {
    flex: 1 1 100%;
  }
}
.need-more {
  display: grid;
  gap: 8px;
}
.need-more[hidden] {
  display: none;
}
.need-more label {
  font: 700 15px/1.3 var(--ui);
}
.need-more-row {
  display: flex;
  gap: 10px;
}
.need-more-row .input {
  flex: 1;
  min-width: 0;
}
.need-body > .need-mark {
  font: 500 14px/1.45 var(--ui);
  color: var(--muted);
}

/* the owner's editor */
.needs-editor {
  display: grid;
  gap: 18px;
  margin-bottom: clamp(28px, 4vw, 44px);
  padding: clamp(18px, 3vw, 32px);
  border-radius: calc(var(--r) + 6px);
  border: 2px dashed var(--sky-ink);
  background: var(--sky-wash);
}
.ne-top,
.ne-row,
.ne-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.ne-sp {
  flex: 1;
}
.ne-h {
  font: 800 30px/1 var(--display);
  flex: 1;
}
.ne-help {
  margin: 0;
  color: var(--muted);
}
.btn.ne-sm {
  min-height: 40px;
  padding: 0 14px;
  font-size: 14px;
}
.btn.ne-del {
  color: #9a1f17;
}
.ne-key {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: var(--r);
  background: var(--white);
  border: 1px solid var(--line);
}
.ne-items {
  display: grid;
  gap: 16px;
}
.ne-item {
  margin: 0;
  min-width: 0;
  padding: 16px clamp(14px, 2.4vw, 22px) 18px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--white);
  display: grid;
  gap: 14px;
}
.ne-item legend {
  padding: 0 6px;
  font: 800 17px/1.3 var(--ui);
}
.ne-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  font: 700 12px/1.2 var(--ui);
  color: var(--muted);
  vertical-align: middle;
}
.ne-grid {
  display: grid;
  gap: 14px;
}
@media (min-width: 700px) {
  .ne-grid {
    grid-template-columns: 1fr 1fr;
  }
  .ne-wide,
  .ne-pic {
    grid-column: 1 / -1;
  }
}
.ne-pic {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 12px;
  background: var(--paper);
}
.ne-file {
  font: 500 15px/1.3 var(--ui);
  max-width: 100%;
}
.ne-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 700 15px/1.3 var(--ui);
}
.ne-check input {
  width: 20px;
  height: 20px;
}
.needs-editor .notice.wait {
  background: var(--white);
  color: var(--ink);
}

/* the gift card's "cover the fees" box, and Change or stop a monthly gift (give.js) */
.give-cover {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font: 500 16px/1.4 var(--ui);
  color: var(--muted);
  cursor: pointer;
}
.give-cover input {
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  flex: none;
  accent-color: var(--ink);
}
.give-manage .give-card {
  gap: 18px;
}
/* Stripe's Embedded Checkout, in place of the gift card while it is open (give.js) */
.give-pay {
  gap: 16px;
}
.give-pay-head {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}
.give-checkout {
  min-height: 420px;
}
