/* Donate page: programme selection and gift summary.
   Loaded only by donate.html, on top of styles.css. */

.programmes { margin: 0; border-top: 2px solid var(--forest); }
.programme-row { padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.programme-row dt {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  font-family: var(--serif); font-size: 1.2rem; font-weight: 500; color: var(--forest);
}
.programme-row__amount { font-family: var(--sans); font-size: 1rem; font-weight: 600; color: var(--gold-ink); white-space: nowrap; }
.programme-row dd { margin: 0.3rem 0 0; color: var(--charcoal); font-size: 0.97rem; max-width: 34rem; }
.give__note { font-size: var(--step--1); color: var(--ink-soft); margin: 1rem 0 0; }

/* Programme cards built from real radio inputs */
.areas { display: grid; gap: 0.6rem; }
@media (min-width: 34rem) { .areas { grid-template-columns: 1fr 1fr; } }
.areas input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.area {
  position: relative; display: grid; grid-template-columns: 1fr auto; gap: 0.25rem 0.75rem; align-content: start;
  padding: 0.95rem 1rem 1rem 2.6rem; min-height: 100%;
  border: 1.5px solid rgba(23, 60, 44, 0.28); border-radius: 8px; background: #fff; cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.area::before {
  content: ""; position: absolute; left: 0.95rem; top: 1.1rem; width: 1.05rem; height: 1.05rem;
  border: 2px solid rgba(23, 60, 44, 0.45); border-radius: 50%; background: #fff;
}
.area__title { font-weight: 600; color: var(--forest); font-size: 0.98rem; line-height: 1.3; }
.area__amount { font-family: var(--serif); font-size: 1.15rem; color: var(--gold-ink); white-space: nowrap; line-height: 1.2; }
.area__desc { grid-column: 1 / -1; font-size: 0.87rem; color: var(--ink-soft); line-height: 1.45; }
.area:hover { border-color: var(--forest); }
.areas input:checked + .area { border-color: var(--forest); background: rgba(23, 60, 44, 0.05); box-shadow: inset 0 0 0 1px var(--forest); }
.areas input:checked + .area::before { border-color: var(--forest); background: radial-gradient(circle, var(--forest) 0 45%, #fff 50%); }
.areas input:focus-visible + .area { outline: 3px solid var(--gold); outline-offset: 2px; }

/* Running summary above the submit button */
.give-summary {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.25rem 1rem;
  padding: 1rem 1.1rem; background: var(--ivory); border-radius: 8px; border-left: 4px solid var(--gold);
}
.give-summary__label { margin: 0; font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); }
.give-summary__value { margin: 0; text-align: right; }
.give-summary__value strong { font-family: var(--serif); font-size: 1.6rem; font-weight: 500; color: var(--forest); margin-right: 0.35rem; }
.give-summary__value span { font-size: 0.9rem; color: var(--charcoal); }

/* Numbered legends read as steps */
.give-card .choice legend { font-size: 1rem; }

/* Card payment note */
.pay-note { display: flex; gap: 0.6rem; align-items: flex-start; margin-top: 0.75rem; padding: 0.75rem 0.9rem; background: rgba(23, 60, 44, 0.06); border-left: 3px solid var(--gold); border-radius: 4px; color: var(--forest); }
.pay-note svg { flex: none; margin-top: 0.15rem; }
.pay-note p { margin: 0; font-size: var(--step--1); line-height: 1.5; color: var(--ink); }
.pay-note[hidden], [data-pay-note][hidden] { display: none; }

/* Thank-you page after a card payment */
.thanks__wrap { max-width: 44rem; padding-block: clamp(3rem, 8vw, 6rem); }
.thanks__card { background: #fff; border-top: 5px solid var(--gold); border-radius: 8px; padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: 0 10px 30px rgba(23, 60, 44, 0.08); }
.thanks__card h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 0.8rem; }
.thanks__card .lede { margin-bottom: 0; }
.thanks__card .button { margin-top: 1.4rem; }
.thanks__ref { margin-top: 1.5rem; }
.thanks__test { margin-top: 1rem; }
.thanks__links { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 1.5rem; }

/* In-page PayPal buttons (replace the submit button for one-time PayPal/card gifts) */
.paypal-inline { display: grid; gap: 0.6rem; }
.paypal-inline[hidden], .give-card__submit[hidden] { display: none; }
.paypal-inline__buttons { min-height: 48px; position: relative; z-index: 0; }
.paypal-inline__hint { margin: 0; font-size: 0.85rem; color: var(--ink-soft); text-align: center; }