/* Contribution pages. Uses the design tokens from style.css (green, gold, arch motif). */
.section-tight { padding-block: 1.8rem; }
.btn-lg { padding: .9rem 2rem; font-size: 1.05rem; }

/* Hero */
.contrib-hero { padding-block: clamp(2.5rem, 7vw, 5rem); }
.contrib-hero-inner { display: grid; grid-template-columns: 1.6fr 1fr; gap: 2rem; align-items: center; }
.contrib-hero h1 { color: var(--white); font-size: clamp(2.4rem, 5vw, 3.8rem); }
.contrib-hero p { color: #e3efe8; font-size: 1.12rem; margin-bottom: 1.4rem; }
.arch-visual { justify-self: center; width: min(260px, 70%); aspect-ratio: 3 / 4; border: 4px solid var(--gold); border-radius: 130px 130px 10px 10px; display: grid; place-items: center; color: var(--gold); font-size: 4.5rem; background: rgba(255, 255, 255, .06); }

/* Stats */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.stat-tile { background: var(--bg); border-left: 5px solid var(--gold); border-radius: var(--radius); padding: 1rem 1.2rem; display: grid; }
.stat-big { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; color: var(--green); line-height: 1.1; }
.progress-wrap { margin-top: 1.2rem; }
.progress-label { display: flex; justify-content: space-between; gap: 1rem; font-weight: 700; margin-bottom: .4rem; flex-wrap: wrap; }
.progress { height: 14px; background: var(--line); border-radius: 999px; overflow: hidden; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--emerald), var(--gold)); border-radius: 999px; }

/* Form layout */
.contrib-layout { display: grid; grid-template-columns: 1.7fr 1fr; gap: 2rem; align-items: start; }
.contrib-form fieldset, .choice-group { border: 0; padding: 0; margin: 0 0 1.8rem; }
.choice-group legend { font-family: var(--font-display); font-size: 1.4rem; color: var(--green); font-weight: 700; margin-bottom: .8rem; padding: 0; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .7rem; }
.amount-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .7rem; margin-bottom: 1rem; }
.choice-card { position: relative; display: block; cursor: pointer; }
.choice-card input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice-card span { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 54px; padding: .6rem .9rem; border: 2px solid var(--line); border-radius: var(--radius); background: #fff; font-weight: 700; transition: border-color .15s, background .15s, color .15s; }
.choice-card:hover span { border-color: var(--emerald); }
.choice-card input:checked + span { border-color: var(--green); background: var(--green); color: #fff; box-shadow: 0 0 0 3px rgba(212, 175, 55, .6); }
.choice-card input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.amount-chip span { font-family: var(--font-display); font-size: 1.15rem; }
.help-note { font-size: .9rem; color: var(--muted); max-width: none; }
.help-note i { color: var(--emerald); }

/* Side panels */
.contrib-side { display: grid; gap: 1.2rem; }
.panel-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.3rem; border-top: 4px solid var(--gold); }
.panel-card h2 { font-size: 1.35rem; }
.steps { padding-left: 1.2rem; margin: 0; display: grid; gap: .5rem; }
.supporters { list-style: none; padding: 0; margin: 0 0 .6rem; display: grid; gap: .4rem; }
.supporters li { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px dashed var(--line); padding-bottom: .35rem; }

/* Summary + result */
.summary-list { margin: 1rem 0 1.4rem; }
.summary-list dt { color: var(--muted); font-weight: 700; }
.summary-list { display: grid; grid-template-columns: 220px 1fr; gap: .6rem 1rem; }
.summary-list dd { margin: 0; overflow-wrap: anywhere; }
.total { font-family: var(--font-display); font-size: 1.8rem; color: var(--green); }
.summary-actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.result-card { text-align: center; margin-inline: auto; }
.result-card .summary-list { text-align: left; }
.result-icon { font-size: 3.4rem; margin-bottom: .4rem; }
.status-successful .result-icon { color: var(--emerald); }
.status-pending .result-icon { color: #b8860b; }
.status-failed .result-icon, .status-reversed .result-icon, .status-flagged .result-icon { color: #a12a2a; }
.result-card p { margin-inline: auto; }
.result-card .actions { justify-content: center; margin-top: 1rem; }

/* Homepage band */
.cta-band { padding-block: 2.5rem; }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.cta-band h2 { color: var(--white); }
.cta-band p { color: #e3efe8; }
.cta-stats { display: grid; text-align: center; border: 1px solid rgba(212, 175, 55, .6); border-radius: var(--radius); padding: 1rem 1.6rem; }
.cta-stats .stat-big { color: var(--white); }
.cta-stats small { color: #cfe2d8; }

@media (max-width: 900px) {
  .contrib-hero-inner, .contrib-layout { grid-template-columns: 1fr; }
  .arch-visual { display: none; }
  .summary-list { grid-template-columns: 1fr; }
}
