.nf-donate-v3 .hero-band {
  margin-bottom: 16px;
}

.donate-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 12px;
  font-size: 14px;
  color: var(--nf-muted);
}

.donate-breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.donate-breadcrumb a:hover {
  text-decoration: underline;
}

.donate-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 18px;
  align-items: stretch;
}

.donate-hero-copy p {
  max-width: 62ch;
}

.donate-impact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.donate-impact-item {
  border: 1px solid var(--nf-border);
  background: var(--nf-card-soft);
  border-radius: 12px;
  padding: 14px;
}

.donate-impact-item h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.donate-impact-item p {
  margin: 0;
  color: var(--nf-muted);
  font-size: 14px;
}

.donate-trust-block {
  border: 1px solid var(--nf-border);
  border-left: 4px solid #2f6fca;
  background: rgba(143, 195, 255, 0.09);
  border-radius: var(--nf-r-md);
  padding: 14px 16px;
  margin: 0 0 16px;
}

.donate-trust-block h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.donate-trust-block p {
  margin: 8px 0 0;
  color: var(--nf-muted);
  font-size: 14px;
}

.donate-trust-block .trust-links a {
  color: inherit;
}

.donate-trust-block .trust-updated {
  font-size: 12px;
}

.donate-section + .donate-section {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--nf-border-light);
}

.donate-section h2 {
  margin: 0 0 8px;
  font-size: 21px;
}

.donate-section p.helper {
  margin: 0;
  color: var(--nf-muted);
  font-size: 14px;
}

.donate-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.donate-toggle button {
  border: 1px solid var(--nf-border);
  border-radius: 999px;
  background: var(--nf-card-soft);
  color: var(--nf-ink);
  font-weight: 700;
  padding: 9px 14px;
  cursor: pointer;
}

.donate-toggle button.is-on {
  background: var(--nf-navy);
  color: #fff;
  border-color: var(--nf-navy);
}

.donate-amounts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.donate-amounts button {
  border: 1px solid var(--nf-border);
  background: var(--nf-card-soft);
  color: var(--nf-ink);
  border-radius: 10px;
  padding: 10px;
  font-weight: 800;
  cursor: pointer;
}

.donate-amounts button.is-on {
  border-color: var(--nf-navy);
  background: rgba(143, 195, 255, 0.22);
}

.donate-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.donate-field {
  margin-top: 10px;
}

.donate-field label {
  display: block;
  font-size: 13px;
  color: var(--nf-muted);
  margin-bottom: 4px;
  font-weight: 700;
}

.donate-field input,
.donate-field textarea,
.donate-field select {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--nf-border-light);
  border-radius: 9px;
  background: var(--nf-card-soft);
  color: var(--nf-ink);
  padding: 10px 12px;
  font-size: 14px;
}

.donate-field textarea {
  resize: vertical;
  min-height: 84px;
}

.donate-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 10px;
}

.donate-check label {
  color: var(--nf-muted);
  font-size: 14px;
}

.dedication-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.dedication-status {
  margin-top: 8px;
  font-size: 13px;
  color: var(--nf-muted);
}

.donate-summary {
  margin-top: 12px;
  border: 1px solid var(--nf-border);
  border-radius: 11px;
  background: var(--nf-card-soft);
  padding: 12px;
}

.summary-grid {
  display: grid;
  gap: 6px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--nf-muted);
  font-size: 14px;
}

.summary-row.total {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid var(--nf-border-light);
  color: var(--nf-ink);
  font-size: 16px;
  font-weight: 800;
}

.donate-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.btn.donate-primary {
  background: linear-gradient(180deg, #e64444, #b21f1f);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.btn.donate-primary:hover {
  filter: brightness(1.05);
}

.donate-mini {
  margin: 8px 0 0;
  color: var(--nf-ink);
  font-size: 12px;
  background: rgba(143, 195, 255, 0.12);
  border: 1px solid var(--nf-border-light);
  border-radius: 8px;
  padding: 8px 10px;
}

.nf-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 16, 0.62);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 1000;
}

.nf-modal-overlay.open {
  display: flex;
}

.nf-dedication-modal {
  width: min(760px, 100%);
  max-height: 92vh;
  overflow: auto;
  border-radius: 14px;
  border: 1px solid var(--nf-border);
  background: var(--nf-card);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.38);
}

.nf-dedication-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 18px;
  border-bottom: 1px solid var(--nf-border-light);
}

.nf-dedication-header h2 {
  margin: 0;
  font-size: 22px;
}

.nf-dedication-header p {
  margin: 6px 0 0;
  color: var(--nf-muted);
  font-size: 14px;
}

.modal-close {
  border: 0;
  background: transparent;
  color: var(--nf-muted);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.nf-dedication-body {
  padding: 16px 18px;
}

.dedication-section + .dedication-section {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--nf-border-light);
}

.dedication-section h3 {
  margin: 0 0 8px;
  font-size: 15px;
}

.dedication-type-toggle {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.dedication-type-toggle button {
  border: 1px solid var(--nf-border);
  border-radius: 999px;
  background: var(--nf-card-soft);
  color: var(--nf-ink);
  padding: 8px 12px;
  font-weight: 700;
  cursor: pointer;
}

.dedication-type-toggle button.is-on {
  border-color: var(--nf-navy);
  background: var(--nf-navy);
  color: #fff;
}

.dedication-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.dedication-field {
  margin-top: 8px;
}

.dedication-field label {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  color: var(--nf-muted);
  font-weight: 700;
}

.dedication-field input,
.dedication-field select,
.dedication-field textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--nf-border-light);
  border-radius: 9px;
  background: var(--nf-card-soft);
  color: var(--nf-ink);
  padding: 9px 11px;
  font-size: 14px;
}

.dedication-field textarea {
  resize: vertical;
  min-height: 72px;
}

.addon-panel {
  margin-top: 10px;
  border: 1px solid var(--nf-border);
  border-radius: 10px;
  padding: 10px;
  background: var(--nf-card-soft);
}

.addon-card + .addon-card {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--nf-border-light);
}

.addon-head {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 14px;
  color: var(--nf-ink);
}

.addon-head small {
  color: var(--nf-muted);
}

.nf-dedication-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 18px;
  border-top: 1px solid var(--nf-border-light);
  background: rgba(15, 19, 38, 0.1);
}

.field-error {
  border-color: #ef4444 !important;
}

@media (max-width: 980px) {
  .donate-hero-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .donate-amounts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .donate-row,
  .dedication-row {
    grid-template-columns: 1fr;
  }

  .nf-dedication-footer {
    flex-direction: column-reverse;
  }

  .nf-dedication-footer .btn {
    width: 100%;
  }
}

/* =====================================================================
   Donate page refresh — friendlier, less cluttered (mirrors Support)
   ===================================================================== */
.donate-lede {
  font-size: 18px;
  line-height: 1.5;
  font-weight: 600;
  color: var(--nf-ink);
  margin: 6px 0 14px;
  max-width: 70ch;
}

/* Hero: human photo replaces the abstract panel. */
.donate-hero-grid { padding: 26px; }
.donate-hero-art {
  border-radius: var(--nf-r-lg);
  overflow: hidden;
  min-height: 240px;
}
.donate-hero-art img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
  display: block;
}

/* Trust line under the hero CTA. */
.donate-trust-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 14px 0 0;
  padding: 0;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--nf-text-hero, #fff);
}
.donate-trust-line span { display: inline-flex; align-items: center; }
.donate-trust-line span::before {
  content: "\2713";
  color: #5ee7d5;
  font-weight: 800;
  margin-right: 7px;
}

/* Testimonial strip (matches Support). */
.donate-testimonial {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 16px 0;
  padding: 16px 18px;
  border: 1px solid var(--nf-border);
  border-radius: 14px;
  background: var(--nf-card-soft);
}
.donate-testimonial__avatar {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(47, 111, 202, 0.5);
}
.donate-testimonial__quote {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--nf-ink);
  font-style: italic;
}
.donate-testimonial__by {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--nf-muted);
}

/* Mid-page CTA band. */
.donate-cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 16px 0;
  padding: 20px 22px;
  border-radius: var(--nf-r-md);
  border: 1px solid var(--nf-border);
  background: linear-gradient(160deg, rgba(143, 195, 255, 0.16), rgba(246, 195, 67, 0.12));
}
.donate-cta-band h2 { margin: 0 0 4px; font-size: 20px; }
.donate-cta-band p { margin: 0; color: var(--nf-muted); font-size: 14px; }

/* Clean FAQ list (replaces the sidebar). */
.donate-faq { margin: 16px 0; }
.donate-faq h2 { font-size: 18px; margin: 0 0 10px; }
.donate-faq ul { margin: 0; padding-left: 18px; }
.donate-faq li { color: var(--nf-muted); font-size: 14px; margin-bottom: 6px; }
.donate-faq a { color: var(--nf-navy); }

/* =====================================================================
   Donation pop-up modal — story panel (left) + secure form (right)
   ===================================================================== */
#donate-modal { z-index: 1000; }
#dedication-modal { z-index: 1100; } /* nested modal must stack above */

.donate-modal {
  position: relative;
  width: min(940px, 100%);
  max-height: 92vh;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  grid-template-rows: minmax(0, 1fr); /* bound the row so the form can scroll */
  border-radius: 16px;
  border: 1px solid var(--nf-border);
  background: var(--nf-card);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.42);
}
.donate-modal__x {
  position: absolute;
  top: 6px;
  right: 12px;
  z-index: 2;
  color: #fff;
}
.donate-modal__story {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: auto;
  background: linear-gradient(180deg, rgba(47, 111, 202, 0.20), rgba(119, 102, 173, 0.20));
}
.donate-modal__photo {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
}
.donate-modal__story-body { padding: 18px 20px; }
.donate-modal__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  font-weight: 800;
  color: #2f6fca;
  margin: 0 0 6px;
}
.donate-modal__story-title { margin: 0 0 8px; font-size: 22px; color: var(--nf-ink); }
.donate-modal__story-text { margin: 0; color: var(--nf-muted); font-size: 14px; line-height: 1.55; }

.donate-modal__form { display: flex; flex-direction: column; min-height: 0; }
.donate-modal__secure {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--nf-border-light);
  font-weight: 800;
  font-size: 16px;
  color: var(--nf-ink);
}
.donate-modal__lock { flex: 0 0 auto; }
.donate-modal__scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 16px 18px; }

@media (max-width: 760px) {
  .donate-modal {
    grid-template-columns: 1fr;
    max-height: 94vh;
    overflow: auto;
  }
  .donate-modal__photo { height: 150px; }
  .donate-modal__scroll { overflow: visible; }
}
