/* Form styling moved into the theme; accessibility rules retained. */
.dac-portable-form .honeypot,.dac-portable-form .screen-reader-text{position:absolute!important;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.dac-portable-form .honeypot{left:-9999px}
.dac-portable-form .referral-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:18px;border:0;padding:0;margin:0 0 24px}
.dac-portable-form .referral-field{display:grid;gap:6px}
.dac-portable-form .referral-field-wide{grid-column:1/-1}
.dac-portable-form .referral-field label{font-weight:700;color:var(--dc-ink);font-size:.95rem}
.dac-portable-form .referral-field .required-mark{color:var(--dc-pink)}
.dac-portable-form input:not([type=checkbox]),.dac-portable-form select,.dac-portable-form textarea{box-sizing:border-box;width:100%;padding:13px 15px;border:2px solid #e4ddd2;border-radius:14px;background:var(--dc-cream);color:var(--dc-ink);font:inherit}
.dac-portable-form textarea{min-height:148px;resize:vertical}
.dac-portable-form input:focus,.dac-portable-form select:focus,.dac-portable-form textarea:focus{border-color:var(--dc-pink);background:var(--dc-white)}
.dac-portable-form .consent-field label{display:flex;gap:10px;align-items:flex-start;font-size:.93rem;font-weight:400;color:var(--dc-body)}
.dac-portable-form input[type=checkbox]{flex:none;width:19px;height:19px;margin-top:2px;accent-color:var(--dc-pink)}
.dac-portable-form .field-error{margin:4px 0 0;color:var(--dc-danger);font-size:.87rem;font-weight:600}
.dac-portable-form [aria-invalid=true]{border-color:var(--dc-danger)}
.dac-portable-form .referral-status{margin-bottom:1.1rem}
.dac-portable-form button{padding:12px 24px;cursor:pointer;font:inherit}

/* Keep the mascot and wordmark balanced in the shared site header. */
.site-header .brand { display: inline-flex; align-items: center; gap: 8px; }
.site-header .brand-mascot { display: block; width: 44px; height: 44px; object-fit: contain; }
@media (max-width: 809px) { .site-header .brand-mascot { width: 36px; height: 36px; } }

/* On screens that show MENU, keep Get involved in the menu instead of crowding the header. */
@media (max-width: 1199px) {
  .site-header .header-actions > a.button {
    display: none;
  }
}

/* Mobile: give the stacked rounded homepage sections a clear gap and balanced padding. */
@media (max-width: 809px) {
  #donate { padding-top: 56px; padding-bottom: 56px; }
  #transparency { margin-top: 12px; padding-top: 56px; padding-bottom: 56px; }
}

/* Structural spacing: coloured rounded sections under main always keep a small gap from neighbours and the footer. */
main > .section:is(.section-yellow, .section-yellow-soft, .section-cream, .section-blue, .section-pink, .section-pink-soft) {
  margin-block: 12px;
}

/* Interior-page heroes use less top air on narrow screens. */
@media (max-width: 479px) {
  .dac-page-layout .page-hero {
    padding-top: 56px;
    padding-bottom: 36px;
  }
}
