/* Indaba Foundation — Donate + Thank-you page styles (owner: foundation-donate).
   Inherits the site tokens and components from /css/site.css (tokens identical to sites/impact/styles/tokens.css).
   All classes are prefixed dn-. Mobile-first; the two-column hero appears from 64rem. */

/* Hero: shell's hero--split; keep the heading first on phones (the shell puts media first) and top-align the panel */
.dn-hero .hero__inner { align-items: start; }
.dn-hero .hero__media { max-width: none; justify-self: stretch; }
@media (max-width: 47.99rem) { .dn-hero .hero__media { order: 0; } }
@media (min-width: 64rem) { .dn-hero__panel { position: sticky; top: calc(var(--bar-top, 12px) + var(--header, 60px) + 1.5rem); } }
.dn-hero .hero__title { max-width: 12ch; }
.dn-hero__photo { display: block; margin-top: var(--space-4, 2.5rem); width: 100%; max-width: 40rem; }
.dn-hero .hero__text .dn-hero__photo img { aspect-ratio: 3 / 2; object-fit: cover; object-position: 60% 40%; width: 100%; border-radius: var(--r-card, 24px); }
.dn-photo-placeholder { display: block; margin-top: var(--space-4, 2.5rem); aspect-ratio: 3 / 2; border-radius: var(--r-card, 24px); background: var(--surface, #dbd4c9); max-width: 40rem; }

/* ---- the form ------------------------------------------------------------- */
.dn-form { background: var(--surface-light, #f7f7f2); border-radius: var(--r-card, 24px); padding: clamp(1.25rem, 4vw, 2.25rem); scroll-margin-top: calc(var(--header, 60px) + 1rem); }
.dn-form__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.dn-form__title { margin: 0; }
.dn-form__currency, .dn-legend, .dn-custom__label { font-family: var(--mono); font-size: var(--fs-eyebrow, .75rem); letter-spacing: var(--track-eyebrow, .0625em); text-transform: uppercase; color: var(--soft, #5c5954); }
.dn-fieldset { border: 0; padding: 0; margin: var(--space-3, 1.5rem) 0 0; min-width: 0; }
.dn-legend { display: block; padding: 0; margin-bottom: .6rem; }
.dn-help { font-family: var(--sans); font-size: var(--fs-small, .875rem); line-height: 1.5; color: var(--soft, #5c5954); margin: .6rem 0 0; }
.dn-help a { color: var(--ink-strong); }

/* Frequency: native radios drawn as a segmented control (works without JS) */
.dn-seg__track { display: grid; grid-template-columns: 1fr 1fr; gap: .25rem; padding: .25rem; background: var(--bg, #efede7); border-radius: var(--r, 16px); }
.dn-seg__opt { position: relative; display: block; }
.dn-seg__opt input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.dn-seg__opt span { display: flex; align-items: center; justify-content: center; min-height: 2.75rem; border-radius: calc(var(--r, 16px) - .25rem); font-family: var(--sans); font-size: .9375rem; font-weight: 500; color: var(--ink-strong); transition: background-color .14s var(--ease), color .14s var(--ease); }
.dn-seg__opt input:checked + span { background: var(--dark, #1e1c1b); color: var(--on-dark, #f7f7f2); }
.dn-seg__opt input:focus-visible + span { outline: 2px solid var(--ink-strong); outline-offset: 2px; }

/* The monthly note shows whenever Monthly is selected, with or without JavaScript */
.dn-help--monthly { display: none; }
.dn-seg:has(input[value="monthly"]:checked) .dn-help--monthly, .dn-help--monthly.is-on { display: block; }

/* Amount presets: buttons (submit without JS; toggles with it) */
.dn-amounts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.dn-amount { min-height: 3rem; border-radius: var(--r, 16px); border: 1px solid var(--rule-strong); background: transparent; font-family: var(--serif); font-weight: 500; font-size: 1.35rem; color: var(--ink-strong); font-variant-numeric: lining-nums; cursor: pointer; transition: background-color .14s var(--ease), color .14s var(--ease), border-color .14s var(--ease); -webkit-tap-highlight-color: transparent; }
.dn-amount:hover { border-color: var(--ink-strong); }
.dn-amount[aria-pressed="true"] { background: var(--dark, #1e1c1b); color: var(--on-dark, #f7f7f2); border-color: var(--dark, #1e1c1b); }
.dn-amount:focus-visible { outline: 2px solid var(--ink-strong); outline-offset: 2px; }
.dn-custom { margin-top: .75rem; }
.dn-custom__label { display: block; margin-bottom: .4rem; }
.dn-custom__field { display: flex; align-items: center; min-height: 3rem; border: 1px solid var(--rule-strong); border-radius: var(--r, 16px); background: #fff; padding-inline: .9rem; transition: border-color .14s var(--ease); }
.dn-custom__field:focus-within { border-color: var(--ink-strong); outline: 2px solid var(--ink-strong); outline-offset: 1px; }
.dn-custom__prefix { font-family: var(--serif); font-size: 1.25rem; color: var(--soft); margin-right: .35rem; }
.dn-custom__input { flex: 1; min-width: 0; border: 0; background: transparent; font-family: var(--serif); font-size: 1.35rem; color: var(--ink-strong); font-variant-numeric: lining-nums; padding-block: .5rem; }
.dn-custom__input:focus { outline: none; }
.dn-custom__input[aria-invalid="true"] { color: var(--warning-ink, #6b3f10); }

/* Designation: radio cards */
.dn-choices { display: grid; gap: .5rem; margin-top: .75rem; }
.dn-choice { position: relative; display: block; }
.dn-choice input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.dn-choice__card { display: grid; gap: .2rem; padding: .8rem .95rem .8rem 2.4rem; border: 1px solid var(--rule-strong); border-radius: var(--r-sm, 12px); background: transparent; transition: border-color .14s var(--ease), background-color .14s var(--ease); }
.dn-choice__card::before { content: ''; position: absolute; left: .95rem; top: 1rem; width: .95rem; height: .95rem; border-radius: 50%; border: 1.5px solid var(--soft); background: #fff; transition: border-color .14s var(--ease), box-shadow .14s var(--ease); }
.dn-choice input:checked + .dn-choice__card { border-color: var(--ink-strong); background: var(--bg, #efede7); }
.dn-choice input:checked + .dn-choice__card::before { border-color: var(--ink-strong); box-shadow: inset 0 0 0 4px var(--ink-strong); }
.dn-choice input:focus-visible + .dn-choice__card { outline: 2px solid var(--ink-strong); outline-offset: 2px; }
.dn-choice__label { font-family: var(--sans); font-weight: 500; font-size: .9375rem; color: var(--ink-strong); }
.dn-choice__body { font-family: var(--sans); font-size: var(--fs-small, .875rem); line-height: 1.5; color: var(--soft); }

/* Submit, status, notes */
.dn-submit { width: 100%; min-height: 3.25rem; margin-top: var(--space-3, 1.5rem); justify-content: center; font-size: 1rem; }
.dn-submit[aria-busy="true"] { opacity: .7; pointer-events: none; }
.dn-msg { margin: .75rem 0 0; font-family: var(--sans); font-size: var(--fs-small, .875rem); line-height: 1.5; min-height: 0; }
.dn-msg:empty { display: none; }
.dn-msg[data-state="error"] { color: var(--warning-ink, #6b3f10); background: var(--warning-bg, #f3e8d6); border-radius: var(--r-sm, 12px); padding: .6rem .8rem; }
.dn-msg[data-state="info"] { color: var(--ink); background: var(--bg, #efede7); border-radius: var(--r-sm, 12px); padding: .6rem .8rem; }
.dn-msg a { color: inherit; }
.dn-note { display: flex; gap: .5rem; align-items: flex-start; margin: .9rem 0 0; font-family: var(--sans); font-size: var(--fs-small, .875rem); line-height: 1.5; color: var(--soft); }
.dn-note svg { flex: none; width: 1rem; height: 1rem; margin-top: .15rem; }
.dn-note a { color: var(--ink-strong); }

/* ---- content sections (children sit in the shell's measure column; lists span .col-wide) ---- */
.dn-statement { margin-top: 0; font-weight: 400; text-wrap: pretty; max-width: 26ch; font-size: clamp(1.55rem, 1.15rem + 1.7vw, 2.5rem); line-height: 1.2; }
.dn-mission .prose { margin-top: var(--space-3, 1.5rem); }
.dn-lede { margin-top: var(--space-2, 1rem); max-width: 36rem !important; font-size: var(--fs-lede, 1.25rem); }
.dn-enables__list, .dn-ways, .dn-entries__list { list-style: none; padding: 0; margin: var(--space-4, 2.5rem) 0 0; }
.dn-enables__list { display: grid; gap: var(--space-3, 1.5rem); }
@media (min-width: 48rem) { .dn-enables__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .dn-enables__list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.dn-enable, .dn-way, .dn-know { padding-top: var(--space-2, 1rem); border-top: 1px solid var(--rule-strong); min-width: 0; }
.dn-enable__title, .dn-way__title, .dn-entry__title, .dn-know__title { margin: 0; font-size: clamp(1.4rem, 1.2rem + .6vw, 1.8rem); }
.dn-enable__body, .dn-way__body, .dn-entry__body, .dn-know__body { margin: .6rem 0 0; font-size: .98rem; line-height: var(--lh-body, 1.65); color: var(--ink); }
.dn-asof, .dn-caveat { font-family: var(--sans); font-size: var(--fs-small, .875rem); line-height: 1.5; color: var(--soft); }
.dn-asof { margin: .5rem 0 0; }
.dn-caveat { margin: var(--space-3, 1.5rem) 0 0; max-width: 52rem; }
.dn-stats { margin-top: var(--space-4, 2.5rem); }
.dn-ways { display: grid; gap: var(--space-3, 1.5rem); }
@media (min-width: 48rem) { .dn-ways { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.dn-address { font-style: normal; margin-top: .6rem; }
.dn-contact { margin-top: var(--space-4, 2.5rem); font-size: var(--fs-body); }
.dn-contact a, .dn-know__body a, .dn-thanks .prose a { color: var(--ink-strong); }
.dn-entries__list { display: grid; gap: 1rem; }
@media (min-width: 48rem) { .dn-entries__list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.dn-entry { display: flex; flex-direction: column; padding: clamp(1.25rem, 2.5vw, 1.75rem); border-radius: var(--r-card, 24px); background: var(--bg-depth, #e1dcd5); min-width: 0; }
.dn-entry__body { flex: 1; }
.dn-textlink { display: inline-flex; align-items: center; min-height: 2.75rem; margin-top: .75rem; color: var(--ink-strong); font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--rule-strong); align-self: flex-start; }
.dn-textlink:hover { border-color: var(--ink-strong); }
.dn-knows { display: grid; gap: var(--space-3, 1.5rem); margin-top: var(--space-4, 2.5rem); }
@media (min-width: 48rem) { .dn-knows { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.dn-legal { margin: .6rem 0 0; font-family: var(--sans); font-size: var(--fs-small, .875rem); color: var(--soft); }

/* Needs-review flags: the shell's .flag block (preview builds only; the renderer omits them in production) */
.dn-flag .flag__text { margin: 0; }
.dn-flag-inline { display: inline-block; margin-left: .3rem; padding: 0 .45rem; border-radius: 100vw; background: var(--warning-bg, #f3e8d6); color: var(--warning-ink, #6b3f10); font-family: var(--mono); font-size: .65rem; letter-spacing: .04em; text-transform: uppercase; vertical-align: middle; }

/* ---- thank-you -------------------------------------------------------------- */
.dn-thanks__prose { margin-top: 0; max-width: var(--measure, 36rem); }
.dn-receipt { margin-top: var(--space-3, 1.5rem); padding: .8rem 1rem; border-radius: var(--r-sm, 12px); background: var(--surface-light, #f7f7f2); font-family: var(--sans); font-size: var(--fs-small); color: var(--ink); max-width: 36rem; }
.dn-ctas { display: flex; flex-wrap: wrap; gap: .75rem; }

@media (prefers-reduced-motion: reduce) {
  .dn-seg__opt span, .dn-amount, .dn-custom__field, .dn-choice__card, .dn-choice__card::before { transition: none; }
}

/* control system (site.css): 10px frames, actions and fields; 7px segments */
.dn-seg__track,.dn-amount,.dn-custom__field,.dn-choice__card{border-radius:var(--r-ctl,10px)}
.dn-seg__opt span{border-radius:var(--r-seg,7px)}
