/* Uplift Columbus. "Painted Sign" design.
   Brand: cream, terracotta, gold. Everything else is a tint of those or the one dark neutral.
   Gold is decoration only on cream and terracotta (under 3:1). It is safe as text on --dark. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream:      #F5EFE0;
  --terracotta: #8B4513;
  --gold:       #C17F3A;
  --dark:       #3A2010;

  --terracotta-deep: #6B3410;  /* hover state */
  --tint:       #EDE4D0;       /* the original site's beige */
  --border:     #DDD0B8;       /* the original site's thin card borders */
  --picked:     #FBF6EA;       /* the original site's selected rows */
  --paper:      #F5EFE0;       /* inside of fields: cream, as on the original site */
  --soft:       #5E4632;       /* secondary text, 7.6:1 on cream */
  --hint:       #6E5A47;       /* placeholder text, 6.4:1 on paper */
  --edge:       #8A6843;       /* field borders, 4:1 on beige */
  --on-dark:    #D4A574;       /* footer text */
  --error:      #A93226;
  --valid:      #5F7E3A;

  --display: 'Vollkorn', Georgia, serif;
  --text:    'Atkinson Hyperlegible', Verdana, sans-serif;

  --gutter: clamp(20px, 5vw, 64px);
  --band:   clamp(64px, 10vw, 120px);
  --wide:   1200px;
  --nav-h:  66px;
  --stripe: 26px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--cream);
  color: var(--dark);
  font-family: var(--text);
  font-size: 1.125rem;
  line-height: 1.6;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  font-variant-numeric: lining-nums;
  text-wrap: balance;
}

p { text-wrap: pretty; }

/* Lead paragraphs: the warm serif from the headings, in regular weight and a larger size */
.hero-sub,
.about-body p,
.apply-intro,
.contact-info p:not(.section-label),
.faq-lede {
  font-family: var(--display);
  font-weight: 400;
  font-variant-numeric: lining-nums;
  color: var(--terracotta-deep);
}

:focus-visible {
  outline: 3px solid var(--terracotta);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ─── SCROLL PROGRESS ─────────────────────────────────── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: var(--terracotta);
  z-index: 300;
  will-change: transform;
}

/* ─── NAV ─────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 2px solid var(--border);
  padding: 0 max(var(--gutter), calc((100% - var(--wide)) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo-img { flex-shrink: 0; height: 40px; width: auto; display: block; }

.nav-logo-text {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--terracotta);
  line-height: 1;
}

.nav-links {
  display: flex;
  gap: 2.25rem;
  list-style: none;
}

.nav-links a {
  position: relative;
  display: block;
  padding: 6px 0;
  text-decoration: none;
  color: var(--dark);
  font-size: 1.0625rem;
  font-weight: 700;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.2s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-links a:hover,
.nav-links a.active { color: var(--terracotta); }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  margin-right: -11px;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--terracotta);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ─── SHARED ──────────────────────────────────────────── */
section { padding: var(--band) var(--gutter); }

.section-label {
  font-family: var(--display);
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--terracotta);
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(2.5rem, 7.4vw, 4.25rem);
  line-height: 1.04;
  color: var(--terracotta);
  margin-bottom: 22px;
}

/* Main buttons */
.btn-primary,
.btn-next,
.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 12px 30px;
  background: var(--terracotta);
  color: var(--cream);
  font-family: var(--text);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.btn-primary:hover,
.btn-next:hover,
.btn-submit:hover {
  background: var(--terracotta-deep);
}

.btn-block { width: 100%; }

button:disabled { opacity: 0.7; cursor: default; }

/* ─── HERO ────────────────────────────────────────────── */
#home {
  position: relative;
  padding-top: calc(var(--stripe) * 1.5 + clamp(30px, 6vw, 72px));
  padding-bottom: clamp(52px, 9vw, 112px);
}

/* The awning. The only animation that plays by itself: it rolls down once on load. */
#home::before,
.faq-hero::before {
  --drop: calc(var(--stripe) * 0.96);
  --r: calc(var(--stripe) / 2);
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: calc(var(--drop) + var(--r));
  background: repeating-linear-gradient(90deg,
    var(--terracotta) 0 var(--stripe),
    var(--border) var(--stripe) calc(var(--stripe) * 2));
  -webkit-mask:
    radial-gradient(circle at var(--r) var(--drop), #000 calc(var(--r) - 0.25px), transparent var(--r)) 0 0 / var(--stripe) 100% repeat-x,
    linear-gradient(#000 0 0) 0 0 / 100% var(--drop) no-repeat;
  mask:
    radial-gradient(circle at var(--r) var(--drop), #000 calc(var(--r) - 0.25px), transparent var(--r)) 0 0 / var(--stripe) 100% repeat-x,
    linear-gradient(#000 0 0) 0 0 / 100% var(--drop) no-repeat;
  transform-origin: top center;
  animation: awning-roll 0.7s cubic-bezier(0.2, 0.75, 0.25, 1) 0.1s backwards;
}

@keyframes awning-roll {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}

.hero-inner { max-width: var(--wide); margin: 0 auto; }

.hero-badge {
  font-family: var(--display);
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--terracotta);
  margin-bottom: 14px;
}

.hero-title {
  font-size: clamp(2.3rem, 11.2vw, 6.4rem);
  line-height: 1.08;
  color: var(--terracotta);
  margin-bottom: 24px;
  text-wrap: wrap;
}

.hero-sub {
  font-size: 1.3125rem;
  line-height: 1.5;
  max-width: 30em;
  margin-bottom: 28px;
}

/* ─── ABOUT ───────────────────────────────────────────── */
#about { background: var(--tint); }

.about-inner { max-width: var(--wide); margin: 0 auto; }

.about-body p { font-size: 1.1875rem; line-height: 1.6; max-width: 36em; }
.about-body p + p { margin-top: 1.1em; }

/* The three facts share one painted sign instead of three cards */
.stat-cards {
  margin-top: clamp(36px, 6vw, 64px);
  padding: 10px 24px;
  background: var(--cream);
  color: var(--terracotta);
  border: 1.5px solid var(--border);
  border-radius: 12px;
}

.stat-card { padding: 20px 0; }

.stat-card + .stat-card { border-top: 2px dotted rgba(139, 69, 19, 0.35); }

.stat-value {
  font-family: var(--display);
  font-weight: 700;
  font-variant-numeric: lining-nums;
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  line-height: 1.1;
}

.stat-value[data-countup] {
  font-size: clamp(4.25rem, 8vw, 6rem);
  line-height: 1;
}

.stat-label {
  color: var(--terracotta-deep);
  font-size: 1.125rem;
  line-height: 1.4;
  margin-top: 4px;
}

/* ─── APPLICATION ─────────────────────────────────────── */
#apply {
  padding-left: clamp(14px, 5vw, 64px);
  padding-right: clamp(14px, 5vw, 64px);
}

.apply-inner { max-width: var(--wide); margin: 0 auto; }

.apply-head { padding: 0 6px; }

.apply-intro { margin-bottom: 30px; max-width: 32em; }

.progress-wrap { margin-bottom: 22px; scroll-margin-top: 16px; }

.progress-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
}

.step-dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--edge);
  background: var(--tint);
  color: var(--terracotta-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
}

.progress-step.active .step-dot,
.progress-step.done .step-dot {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: var(--cream);
}

.progress-step.active .step-dot { box-shadow: 0 0 0 4px rgba(139, 69, 19, 0.18); }

.step-name {
  font-size: 0.9375rem;
  line-height: 1.25;
  color: var(--terracotta-deep);
}

@media (min-width: 360px) {
  .step-name { font-size: 1rem; }
}

.progress-step.active .step-name { color: var(--terracotta); font-weight: 700; }

/* Each step owns a quarter of this bar, so the fill stops under the current step */
.progress-track {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 25%;
  background: var(--terracotta);
  transition: width 0.35s ease;
}

.progress-info {
  color: var(--terracotta-deep);
  font-size: 1.0625rem;
  margin-top: 8px;
}

/* The application sheet */
.form-card {
  background: var(--tint);
  color: var(--dark);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 28px 20px 26px;
}

.form-section { display: none; }
.form-section.active { display: block; }

.form-section-title {
  font-size: clamp(1.7rem, 3vw, 2.1rem);
  line-height: 1.12;
  color: var(--terracotta);
  margin-bottom: 8px;
}

.form-section-title:focus { outline: none; }

.form-section-subtitle {
  color: var(--terracotta-deep);
  margin-bottom: 26px;
  line-height: 1.45;
}

.field-group { margin-bottom: 22px; border: 0; min-width: 0; }

.field-group > label,
.field-group > legend {
  display: block;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--dark);
  margin-bottom: 7px;
  padding: 0;
}

.optional { font-weight: 400; color: var(--soft); }

/* :where keeps specificity low so the error and valid states below can win */
.field-group :where(input:not([type="radio"], [type="checkbox"]), select, textarea) {
  display: block;
  width: 100%;
  min-height: 54px;
  padding: 13px 14px;
  border: 2px solid var(--edge);
  border-radius: 5px;
  background-color: var(--paper);
  color: var(--dark);
  font-family: var(--text);
  font-size: 1.125rem;
  line-height: 1.4;
  appearance: none;
  -webkit-appearance: none;
}

.field-group ::placeholder { color: var(--hint); opacity: 1; }

.field-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238B4513' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 40px;
}

.field-group textarea { resize: vertical; min-height: 128px; }
#funds-use { min-height: 150px; }
#c-message { min-height: 150px; }

.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus {
  outline: 3px solid var(--terracotta);
  outline-offset: 0;
  border-color: var(--terracotta);
}

.field-group input.error,
.field-group select.error,
.field-group textarea.error { border-color: var(--error); }

.field-group input.error:focus,
.field-group select.error:focus,
.field-group textarea.error:focus { outline-color: var(--error); }

.field-error {
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--error);
  margin-top: 6px;
  display: none;
}

/* Valid state: a small green check inside the field */
.field-group input.valid,
.field-group textarea.valid {
  border-color: var(--valid);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235F7E3A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.field-group textarea.valid { background-position: right 14px top 16px; }
.field-group select.valid { border-color: var(--valid); }

/* Yes / No as two big targets */
.radio-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.radio-group[aria-invalid="true"] .radio-label { border-color: var(--error); }

.field-group .radio-label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 14px;
  border: 2px solid var(--edge);
  border-radius: 5px;
  background: var(--paper);
  cursor: pointer;
  font-size: 1.125rem;
}

.field-group .radio-label:has(input:checked) {
  border-color: var(--terracotta);
  background: var(--picked);
  font-weight: 700;
}

.radio-label input[type="radio"] {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  accent-color: var(--terracotta);
}

/* Agreement checkboxes */
.field-group .check-label {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.45;
  margin-bottom: 0;
  padding: 15px 14px;
  border: 2px solid var(--edge);
  border-radius: 5px;
  background: var(--paper);
}

.check-label:has(input[type="checkbox"]:checked) {
  border-color: var(--terracotta);
  background: var(--picked);
}

.check-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.check-label .checkbox-box {
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  border: 2px solid var(--edge);
  border-radius: 4px;
  background: var(--paper);
  position: relative;
}

.check-label .checkbox-box::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 2px;
  width: 8px;
  height: 14px;
  border: solid var(--cream);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 0.12s ease;
}

.check-label input[type="checkbox"]:checked + .checkbox-box {
  background: var(--terracotta);
  border-color: var(--terracotta);
}

.check-label input[type="checkbox"]:checked + .checkbox-box::after {
  transform: rotate(45deg) scale(1);
}

.check-label input[type="checkbox"]:focus-visible + .checkbox-box {
  outline: 3px solid var(--terracotta);
  outline-offset: 2px;
}

.check-label input[type="checkbox"].error + .checkbox-box { border-color: var(--error); }

/* Step buttons. On phones Continue comes first and Back sits under it. */
.form-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
}

.btn-next, .btn-submit { width: 100%; }

.btn-back {
  order: 2;
  min-height: 52px;
  padding: 10px 24px;
  background: none;
  border: 2px solid var(--edge);
  border-radius: 5px;
  color: var(--terracotta);
  font-family: var(--text);
  font-size: 1.0625rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.btn-back:hover { border-color: var(--terracotta); background: var(--picked); }

/* Confirmation */
.confirmation {
  display: none;
  padding: 28px 6px;
}

.confirmation:focus { outline: none; }
.confirmation.show { display: block; }

.confirm-icon {
  width: 68px;
  height: 68px;
  background: var(--terracotta);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.confirm-icon svg { stroke: var(--cream); }

.confirmation h3 {
  font-size: clamp(2rem, 4vw, 2.6rem);
  line-height: 1.1;
  color: var(--terracotta);
  margin-bottom: 12px;
}

.confirmation p { max-width: 30em; color: var(--terracotta-deep); }

/* ─── CONTACT ─────────────────────────────────────────── */
#contact { background: var(--tint); }

.contact-inner { max-width: var(--wide); margin: 0 auto; }

.contact-info { margin-bottom: 36px; }

.contact-info p:not(.section-label) {
  font-size: 1.1875rem;
  line-height: 1.55;
  max-width: 28em;
  margin-bottom: 20px;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--terracotta);
  font-weight: 700;
  font-size: 1.125rem;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.contact-email:hover { color: var(--terracotta-deep); }

.contact-confirm {
  margin-top: 16px;
  color: var(--terracotta);
  font-weight: 700;
}

/* Atkinson slashes its zero, which reads badly in dollar amounts and the EIN.
   This swaps in a plain zero, and only the zero, where it's applied. */
@font-face {
  font-family: 'Plain Zero';
  src: local('Arial'), local('Helvetica'), local('Roboto');
  unicode-range: U+30;
}

/* Bold zeros too, so a 0 in bold text isn't thinner than its neighbors */
@font-face {
  font-family: 'Plain Zero';
  src: local('Arial Bold'), local('Arial-BoldMT'), local('Helvetica Bold'), local('Helvetica-Bold'), local('Roboto Bold'), local('Roboto-Bold');
  font-weight: 700;
  unicode-range: U+30;
}

/* ─── FOOTER ──────────────────────────────────────────── */
footer {
  background: var(--dark);
  color: var(--on-dark);
  padding: 44px var(--gutter);
}

footer :focus-visible { outline-color: var(--cream); }

.footer-inner { max-width: var(--wide); margin: 0 auto; }

.footer-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 1.2;
  color: var(--cream);
  margin-bottom: 6px;
}

.footer-line { font-size: 1.125rem; margin-bottom: 4px; }

.footer-ein {
  font-family: 'Plain Zero', var(--text);
  font-size: 1.125rem;
  margin-bottom: 12px;
}

.footer-email {
  display: inline-block;
  padding: 6px 0;
  color: var(--on-dark);
  font-size: 1.125rem;
  font-weight: 700;
}

.footer-email:hover { color: var(--cream); }

/* ─── SMALL SCREENS ───────────────────────────────────── */
@media (max-width: 768px) {
  .hamburger { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--cream);
    border-top: 2px solid var(--tint);
    border-bottom: 3px solid var(--terracotta);
    flex-direction: column;
    padding: 8px var(--gutter) 14px;
    gap: 0;
  }

  .nav-links.open { display: flex; }

  .nav-links a {
    display: flex;
    align-items: center;
    min-height: 48px;
    font-size: 1.1875rem;
  }

  .nav-links a::after { right: auto; width: 2.5em; bottom: 6px; }
}

/* ─── TABLETS AND UP ──────────────────────────────────── */
@media (min-width: 620px) {
  .hero-title { font-size: clamp(3.25rem, 8.6vw, 5rem); }

  .two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
  }

  .field-narrow { max-width: 320px; }

  .form-card { padding: 36px 36px 32px; }

  .form-nav {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .btn-back { order: 0; min-width: 130px; }
  .btn-next { width: auto; min-width: 190px; margin-left: auto; }
  .btn-submit { width: auto; flex: 1; }
}

/* ─── COMPUTER LAYOUT ─────────────────────────────────────
   Everything in this block applies to screens 980px and wider only.
   The phone layout above does not depend on any of it.
   About and Contact share one 5/7 column split, so their
   right-hand columns line up down the page. */
@media (min-width: 980px) {
  :root {
    --stripe: 30px;
    --nav-h:  72px;
    --band:   clamp(72px, 7vw, 96px);
    --inner:  min(100vw - 2 * var(--gutter), var(--wide));
    --screen: calc(100vh - var(--nav-h));  /* one full screen below the nav */
    --footer-h: 154px;  /* name, tagline, page links */
  }

  /* Every section fills one screen, with its content centred in it */
  section {
    display: flex;
    align-items: center;
    min-height: var(--screen);
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .hero-inner,
  .about-inner,
  .apply-inner,
  .contact-inner { width: 100%; }

  body { font-size: 1.1875rem; }

  .nav-logo-text { font-size: 1.5rem; }
  .nav-logo-img { height: 44px; }

  .nav-links a { font-size: 1.125rem; }

  /* Apply stays one click away on every screen */
  .nav-links a[href$="#apply"] {
    padding: 7px 16px;
    margin: -1px 0;
    background: var(--terracotta);
    color: var(--cream);
    border-radius: 5px;
  }

  .nav-links a[href$="#apply"]:hover { background: var(--terracotta-deep); color: var(--cream); }
  .nav-links a[href$="#apply"]::after { display: none; }

  .section-title { font-size: 3.25rem; margin-bottom: 0; }

  /* Hero: headline on the left, paragraph and button beside it, all in the first screen */
  #home {
    padding-top: calc(var(--stripe) * 1.5 + 40px);
    padding-bottom: 40px;
  }

  .hero-inner {
    display: grid;
    grid-template-columns: 7fr 5fr;
    grid-template-rows: auto 1fr auto;
    column-gap: 64px;
  }

  .hero-badge { grid-column: 1; grid-row: 1; }

  /* Sized from the column width, so the headline always sets on three lines */
  .hero-title {
    grid-column: 1;
    grid-row: 2 / 4;
    font-size: calc((var(--inner) - 64px) * 0.051);
    line-height: 1.1;
    margin-bottom: 0;
    text-wrap: balance;
  }

  .hero-sub {
    grid-column: 2;
    grid-row: 2;
    align-self: end;
    font-size: clamp(1.375rem, 1.8vw, 1.625rem);
    line-height: 1.42;
    margin-bottom: 24px;
  }

  .hero-cta { grid-column: 2; grid-row: 3; justify-self: start; }

  .keep { white-space: nowrap; }

  /* About: heading left, story right, sign across the bottom */
  .about-text {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 64px;
    align-items: start;
  }

  .about-body p { font-size: 1.3125rem; line-height: 1.5; max-width: none; }

  .stat-cards {
    display: grid;
    grid-template-columns: 1.3fr 1.15fr 0.8fr;
    margin-top: clamp(40px, 9vh, 96px);
    padding: clamp(22px, 4.5vh, 48px) 12px;
  }

  .stat-card {
    padding: 8px 30px;
    display: flex;
    align-items: flex-end;
  }

  .stat-card + .stat-card {
    border-top: 0;
    border-left: 2px dotted rgba(139, 69, 19, 0.35);
  }

  .stat-value { font-size: clamp(1.8rem, 2.6vw, 2.25rem); }
  .stat-value[data-countup] { font-size: 4.25rem; }

  /* Apply: one column read top to bottom, the same width as the FAQ.
     The step tracker keeps its phone layout, in a row above the form. */
  .apply-inner { max-width: 820px; }

  .apply-head { padding: 0; }

  #apply .section-title { margin-bottom: 14px; }

  .apply-intro { font-size: 1.3125rem; line-height: 1.45; max-width: none; margin-bottom: 24px; }

  .step-name { font-size: 1.0625rem; }

  .form-card { padding: 32px 44px 30px; }

  .form-card .field-group { margin-bottom: 16px; }
  .form-section-subtitle { margin-bottom: 18px; }
  .form-nav { margin-top: 20px; }

  /* Business Basics is the longest step, so its three dropdowns share one row */
  #section-1.active {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    column-gap: 16px;
  }

  #section-1 > * { grid-column: 1 / -1; }
  #section-1 .two-col { display: contents; }
  #section-1 .two-col .field-group { grid-column: span 3; }
  #section-1 .two-col:nth-of-type(3) .field-group,
  #section-1 > .field-narrow { grid-column: span 2; max-width: none; }

  #biz-desc { min-height: 88px; }

  .confirmation { padding: 40px 0; }

  /* Contact: same columns as About, with name and email side by side */
  .contact-inner {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 64px;
    align-items: start;
  }

  .contact-info { margin-bottom: 0; }
  .contact-info .section-title { margin-bottom: 20px; }
  .contact-info p:not(.section-label) { font-size: 1.3125rem; line-height: 1.45; }

  #contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 16px;
  }

  #contact-form > .field-group:has(textarea),
  #contact-form > .contact-confirm { grid-column: 1 / -1; }

  #contact-form > .btn-primary {
    grid-column: 1 / -1;
    justify-self: end;
    width: auto;
    min-width: 190px;
  }

  /* Contact and the footer share the last screen */
  #contact { min-height: calc(var(--screen) - var(--footer-h)); }

  /* Footer: one row */
  footer {
    display: flex;
    align-items: center;
    min-height: var(--footer-h);
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .footer-inner {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    column-gap: 40px;
  }

  .footer-line { margin-bottom: 0; grid-column: 1; }
  .footer-ein { grid-column: 2; grid-row: 1; align-self: end; text-align: right; margin-bottom: 4px; }
  .footer-email { grid-column: 2; grid-row: 2; justify-self: end; align-self: end; padding: 0; }
}

/* Large monitors: use more of the width and step the text up */
@media (min-width: 1600px) {
  :root { --wide: 1360px; }

  body { font-size: 1.25rem; }

  .section-title { font-size: 3.5rem; }
  .hero-sub { font-size: 1.75rem; }
}

/* Very large monitors: scale the whole page up so the sections don't look empty */
@media (min-width: 2200px) {
  html { font-size: 125%; }

  :root { --wide: 1760px; }
}

/* ─── REDUCED MOTION ──────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ─── FAQ PAGE ────────────────────────────────────────────
   Used only by faq.html. Nothing here is a <section>, because the
   computer layout makes every <section> exactly one screen tall. */
.faq-hero {
  position: relative;
  padding: calc(var(--stripe) * 1.5 + clamp(30px, 5vw, 48px)) var(--gutter) clamp(28px, 4vw, 40px);
}

/* Only faq.html sets .js. Smooth scrolling fights answers opening and closing, so it stays off here. */
html.js { scroll-behavior: auto; }

/* One reading column, top to bottom. Nothing sticks, so the page scrolls as one piece. */
.faq-col {
  max-width: 820px;
  margin: 0 auto;
}

.faq-title {
  font-size: clamp(2.5rem, 10.6vw, 4rem);
  line-height: 1.08;
  color: var(--terracotta);
  margin-bottom: 12px;
}

.faq-lede { font-size: 1.3125rem; line-height: 1.45; max-width: 34em; }

.faq-layout { padding: 0 var(--gutter) clamp(40px, 6vw, 64px); }

.faq-tools { margin-top: 24px; }

.faq-tools .field-group { margin-bottom: 8px; }

.faq-tools input[type="search"] {
  min-height: 60px;
  padding-left: 48px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%238B4513' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.8-3.8'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 14px center;
}

.faq-status {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 32px;
}

.faq-clear {
  padding: 4px 0;
  background: none;
  border: 0;
  color: var(--terracotta);
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  cursor: pointer;
}

.faq-tools input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: searchfield-cancel-button;
}

.faq-count { font-size: 1.0625rem; color: var(--terracotta-deep); }

.faq-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 24px;
  margin-top: 6px;
  list-style: none;
}

.faq-jump a {
  display: inline-block;
  padding: 7px 0;
  color: var(--terracotta);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.faq-jump a:hover { color: var(--terracotta-deep); }

.faq-group { margin-bottom: clamp(40px, 6vw, 56px); scroll-margin-top: 16px; }

.faq-group:last-child { margin-bottom: 0; }

.faq-group-title {
  font-size: clamp(1.9rem, 5.6vw, 2.5rem);
  line-height: 1.1;
  color: var(--terracotta);
  margin-bottom: 10px;
}

/* One question. The dotted rule comes from the sign board on the home page. */
/* The row reaches 14px past the column so its text still lines up with the headings */
.faq-item {
  margin: 0 -14px;
  border-bottom: 2px dotted rgba(139, 69, 19, 0.4);
  border-radius: 5px 5px 0 0;
  scroll-margin-top: 12px;
}

.faq-item.is-open {
  background: var(--tint);
  border-bottom: 2px solid var(--terracotta);
}

.faq-q { font-size: 1.1875rem; line-height: 1.3; }

.faq-q button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 64px;
  padding: 14px;
  background: none;
  border: 0;
  border-radius: 5px;
  color: var(--dark);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.faq-q button:hover { background: var(--tint); color: var(--terracotta); }

.faq-item.is-open .faq-q button { color: var(--terracotta); }
.faq-item.is-open .faq-q button:hover { background: none; }

/* Plus that turns into a minus */
.faq-mark {
  position: relative;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border: 2px solid var(--terracotta);
  border-radius: 50%;
  transition: background-color 0.18s ease;
}

.faq-mark::before,
.faq-mark::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 2.5px;
  margin: -1.25px 0 0 -6px;
  background: var(--terracotta);
  transition: transform 0.18s ease, background-color 0.18s ease;
}

.faq-mark::after { transform: rotate(90deg); }

.faq-item.is-open .faq-mark { background: var(--terracotta); }
.faq-item.is-open .faq-mark::before,
.faq-item.is-open .faq-mark::after { background: var(--cream); }
.faq-item.is-open .faq-mark::after { transform: rotate(0deg); }

/* Grid rows animate to the answer's natural height. Hidden answers stay out of the tab order. */
.js .faq-a {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows 0.22s ease, visibility 0s linear 0.22s;
}

.js .faq-item.is-open .faq-a {
  grid-template-rows: 1fr;
  visibility: visible;
  transition: grid-template-rows 0.22s ease, visibility 0s;
}

.js.faq-instant .faq-a,
.js.faq-instant .faq-mark,
.js.faq-instant .faq-mark::before,
.js.faq-instant .faq-mark::after { transition: none; }

.faq-a-inner { overflow: hidden; min-height: 0; }

.faq-a p {
  overflow-wrap: break-word; /* long links wrap on small phones */
  font-family: 'Plain Zero', var(--text);
  padding: 0 14px 20px;
  color: var(--terracotta-deep);
}

.faq-a a,
.faq-empty a {
  color: var(--terracotta);
  font-weight: 700;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

/* Missing facts stand out so none can ship by accident */
.placeholder {
  background: rgba(193, 127, 58, 0.32);
  color: var(--dark);
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 3px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.faq-empty { padding: 8px 0 12px; }

/* Closing sign */
.faq-still-wrap { padding: 0 var(--gutter) clamp(56px, 8vw, 88px); }

.faq-still {
  padding: 30px 26px 32px;
  background: var(--tint);
  color: var(--terracotta-deep);
  border: 1.5px solid var(--border);
  border-radius: 12px;
}

.faq-still h2 {
  color: var(--terracotta);
  font-size: clamp(1.9rem, 5.6vw, 2.5rem);
  line-height: 1.1;
  margin-bottom: 6px;
}

.faq-still p { margin-bottom: 20px; }

.faq-still-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.faq-still-email {
  color: var(--terracotta);
  font-weight: 700;
  padding: 8px 0;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

@media (min-width: 700px) {
  .faq-still {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px 32px;
    padding: 34px 40px;
  }

  .faq-still p { margin-bottom: 0; }

  .faq-still-links {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 24px;
  }
}

@media (min-width: 980px) {
  .faq-hero { padding-top: calc(var(--stripe) * 1.5 + 44px); padding-bottom: 40px; }

  .faq-title { font-size: 3.75rem; }

  .faq-q { font-size: 1.3125rem; }
}

/* ─── FOOTER LINKS ────────────────────────────────────── */
.footer-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0 24px;
  margin-bottom: 4px;
}

.footer-links a {
  display: inline-block;
  padding: 8px 0;
  color: var(--on-dark);
  font-size: 1.125rem;
  font-weight: 700;
}

.footer-links a:hover { color: var(--cream); }

@media (min-width: 980px) {
  /* Left: name, tagline, page links. Right: EIN and email, lined up with the bottom two rows. */
  .footer-links { grid-column: 1; grid-row: 3; margin: 6px 0 0; }
  .footer-links a { padding: 0; }
  .footer-ein { grid-row: 2; }
  .footer-email { grid-row: 3; }
}

/* ─── APPLY AND GRANTS PAGES ──────────────────────────────
   Used by apply.html and small-business-grants-columbus.html.
   They reuse the FAQ page's hero, column, headings and closing box. */
.page-cta { margin-top: 24px; }

.page-body {
  box-sizing: content-box;
  padding: 8px var(--gutter) clamp(40px, 6vw, 64px);
}

.page-part { margin-bottom: clamp(40px, 6vw, 56px); }

.page-part:last-child { margin-bottom: 0; }

.page-body p,
.page-body li {
  font-family: 'Plain Zero', var(--text);
  color: var(--terracotta-deep);
}

.page-body p { margin-bottom: 14px; max-width: 40em; }

.page-list { list-style: none; margin: 0 0 16px; }

.page-list li { position: relative; padding-left: 24px; margin-bottom: 6px; }

.page-list li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 0.62em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--terracotta);
}

/* Numbered steps: the process really is a sequence */
.page-steps { list-style: none; counter-reset: step; margin-top: 8px; }

.page-steps li {
  counter-increment: step;
  position: relative;
  padding-left: 60px;
  min-height: 42px;
  margin-bottom: 22px;
}

.page-steps li:last-child { margin-bottom: 0; }

.page-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--terracotta);
  border-radius: 50%;
  background: var(--tint);
  color: var(--terracotta);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.25rem;
  font-variant-numeric: lining-nums;
}

.page-steps h3 {
  font-size: 1.25rem;
  line-height: 1.3;
  color: var(--terracotta);
  padding-top: 7px;
  margin-bottom: 4px;
}

.page-steps p { margin-bottom: 0; }

/* Questions: always open, with the FAQ page's dotted rule between them */
.page-qa {
  padding: 16px 0 4px;
  border-bottom: 2px dotted rgba(139, 69, 19, 0.4);
}

.page-qa h3 {
  font-size: 1.1875rem;
  line-height: 1.3;
  color: var(--terracotta);
  margin-bottom: 6px;
}

.page-more { margin-top: 20px; }

/* The closing box on these pages mentions minutes, so keep its zeros plain */
.faq-still p { font-family: 'Plain Zero', var(--text); }

.page-body a:not(.btn-primary) {
  color: var(--terracotta);
  font-weight: 700;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

@media (min-width: 980px) {
  .page-steps h3,
  .page-qa h3 { font-size: 1.3125rem; }
}

/* ─── GRANT FORM: VERIFICATION ────────────────────────────
   The last part of step 4. Softer than the rest of the form on purpose:
   rounder corners, shorter fields, a gold focus ring. */
.verify,
.v-last { --v-card: #FFFAF0; }

.verify {
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1.5px solid var(--border);
}

.verify-title {
  font-family: var(--display);
  font-size: clamp(1.5rem, 4.6vw, 1.75rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--terracotta);
  margin-bottom: 4px;
}

.verify-sub { color: var(--terracotta-deep); margin-bottom: 20px; }

.v-card {
  background: var(--v-card);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 18px 16px 6px;
  margin-bottom: 16px;
}

.v-card-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-bottom: 4px;
}

.v-num {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--terracotta);
  border-radius: 50%;
  color: var(--terracotta);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.0625rem;
  font-variant-numeric: lining-nums;
}

.v-card-title {
  font-family: var(--display);
  font-size: 1.3125rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--terracotta);
}

.v-pill {
  display: inline-block;
  padding: 1px 10px;
  border-radius: 999px;
  background: var(--terracotta);
  color: var(--cream);
  font-family: var(--text);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
  vertical-align: middle;
}

.v-pill-soft { background: rgba(193, 127, 58, 0.24); color: var(--dark); }

.v-card-sub { color: var(--soft); margin-bottom: 16px; line-height: 1.45; }

.v-hint { font-size: 1rem; color: var(--soft); margin-top: 6px; line-height: 1.4; }

/* Fields: 42px tall, rounded, gold focus ring */
:is(.verify, .v-last) .field-group :where(input[type="text"], select) {
  height: 42px;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 1.0625rem;
  line-height: 1.2;
}

:is(.verify, .v-last) .field-group select { padding-right: 38px; background-position: right 13px center; }

:is(.verify, .v-last) .field-group input.valid { padding-right: 38px; background-position: right 12px center; }

:is(.verify, .v-last) .field-group input:focus,
:is(.verify, .v-last) .field-group select:focus {
  outline: none;
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px var(--gold);
}

:is(.verify, .v-last) .field-group input.error:focus,
:is(.verify, .v-last) .field-group select.error:focus { border-color: var(--error); box-shadow: 0 0 0 3px var(--gold); }

:is(.verify, .v-last) .field-group input:disabled {
  background: var(--tint);
  border-color: var(--border);
  color: var(--soft);
  cursor: not-allowed;
}

.verify .check-label { border-radius: 10px; padding: 11px 14px; }

.verify .check-label input[type="checkbox"]:focus-visible + .checkbox-box {
  outline: 3px solid var(--gold);
}

/* Upload zone. The real file input sits under the label, invisible but still reachable by keyboard. */
.v-drop { position: relative; }

.v-file {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}

.v-drop-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2px;
  padding: 22px 16px 20px;
  border: 2px dashed var(--gold);
  border-radius: 12px;
  background: var(--picked);
  color: var(--terracotta);
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.v-drop-label:hover,
.v-drop.is-dragging .v-drop-label { background: rgba(193, 127, 58, 0.14); border-style: solid; }

.v-file:focus-visible + .v-drop-label { border-color: var(--terracotta); box-shadow: 0 0 0 3px var(--gold); }

.v-drop.is-error .v-drop-label { border-color: var(--error); }

.v-drop.is-busy .v-drop-label { cursor: progress; opacity: 0.75; }

.v-drop-icon { margin-bottom: 4px; }

.v-drop-title {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25;
}

.v-drop-hints { display: flex; flex-direction: column; }

.v-drop-hint { font-size: 1rem; line-height: 1.4; color: var(--soft); text-wrap: balance; }

.v-note {
  text-align: center;
  font-size: 1rem;
  color: var(--soft);
  margin-top: 8px;
  line-height: 1.4;
  text-wrap: balance;
}

.v-upload-error { text-align: center; }

.v-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.v-chips:empty { display: none; }

.v-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 2px 2px 2px 10px;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  background: var(--paper);
  font-size: 1rem;
  color: var(--dark);
}

.v-chip svg { flex: none; color: var(--valid); }

.v-chip-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 15em;
}

.v-chip-x {
  flex: none;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: none;
  color: var(--terracotta);
  cursor: pointer;
}

.v-chip-x:hover { background: var(--tint); }

.v-chip-x:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }

.v-count { text-align: center; font-size: 1rem; color: var(--soft); margin-top: 8px; }

.v-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 16px;
  color: var(--soft);
  font-family: var(--display);
  font-size: 1.0625rem;
  font-weight: 700;
}

.v-or::before,
.v-or::after { content: ''; flex: 1; border-top: 1.5px solid var(--border); }

.v-link-extra { margin-top: 10px; }

.v-text-btn {
  display: inline-block;
  padding: 10px 0;
  border: none;
  background: none;
  color: var(--terracotta);
  font-family: var(--text);
  font-size: 1.0625rem;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  cursor: pointer;
}

.v-text-btn:hover { color: var(--terracotta-deep); }

.v-text-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

.v-text-btn:disabled { color: var(--soft); text-decoration-color: var(--border); cursor: not-allowed; }

.v-links .v-text-btn { margin-top: 2px; }

#err-proof { margin: -10px 0 14px; }

/* Optional reference: dashed and quiet until it is needed */
.v-ref {
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 4px 16px;
  margin-bottom: 16px;
}

.v-ref.is-open { padding: 14px 16px 2px; }

.v-ref.is-required {
  border-style: solid;
  border-width: 1.5px;
  background: var(--v-card);
}

.v-ref .v-pill { margin-left: 8px; }

.v-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 1rem;
  color: var(--soft);
  margin-top: 4px;
}

.v-foot svg { flex: none; color: var(--terracotta); }

@media (min-width: 620px) {
  .v-card { padding: 22px 24px 8px; }

  .v-two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }

  .v-ref { padding: 4px 24px; }

  .v-ref.is-open { padding: 16px 24px 4px; }
}

/* Buttons and pills here set their own display, which would beat the hidden attribute */
:is(.verify, .v-last) [hidden] { display: none !important; }

/* One last thing: the short card after Verification */
.v-last { margin-top: 22px; }

.v-sparkle { flex: none; color: var(--gold); }

.v-last .v-card-head { margin-bottom: 12px; }

.v-other { margin-top: -8px; }

/* ─── DONATE PAGE ─────────────────────────────────────────
   Used only by donate.html. Top: the ask and the donation box together
   (on phones the box comes right after the headline). Below: short,
   scannable blocks in cream and beige bands. Nothing sticks. */
.donate-wrap { max-width: var(--wide); margin: 0 auto; }

/* Plain zeros in 501(c)(3), the EIN and percentages, as on the other pages */
.dn-hero-grid,
.dn-band { font-family: 'Plain Zero', var(--text); }

/* Top */
.dn-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "text" "give" "trust";
  gap: 26px;
}

.dn-hero-text { grid-area: text; }
.dn-give { grid-area: give; }
.dn-hero .faq-lede { max-width: 26em; }

.dn-trust {
  grid-area: trust;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dn-trust li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--terracotta-deep);
  line-height: 1.3;
}

.dn-trust svg {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  padding: 4px;
  border-radius: 50%;
  background: var(--terracotta);
  fill: none;
  stroke: var(--cream);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* The donation box */
.dn-card {
  padding: 20px 18px 16px;
  background: #FFFAF0;
  border: 1.5px solid var(--border);
  border-top: 5px solid var(--terracotta);
  border-radius: 14px;
  box-shadow: 0 14px 34px -16px rgba(58, 32, 16, 0.28);
}

.dn-card-title {
  font-size: 1.625rem;
  line-height: 1.15;
  color: var(--terracotta);
  margin-bottom: 2px;
}

.dn-card-sub { color: var(--terracotta-deep); margin-bottom: 14px; }

/* Hold the widgets' space while Givebutter loads, so the box doesn't jump */
.give-goal { margin-bottom: 18px; }

/* Our goal bar, drawn from Givebutter's live numbers (see donate.html) */
.dn-goal-nums {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 2px 8px;
  margin-bottom: 10px;
}

.dn-goal-raised {
  font-family: var(--display);
  font-weight: 700;
  font-size: 2.25rem;
  line-height: 1;
  font-variant-numeric: lining-nums;
  color: var(--terracotta);
}

.dn-goal-of { color: var(--terracotta-deep); font-weight: 700; }

.dn-goal:not(.is-ready) .dn-goal-of { color: var(--soft); font-weight: 400; }

.dn-goal-track {
  display: block;
  height: 16px;
  padding: 2px;
  background: var(--tint);
  border: 1.5px solid var(--border);
  border-radius: 999px;
}

.dn-goal-fill {
  display: block;
  height: 100%;
  width: 0;
  background: var(--terracotta);
  border-radius: 999px;
  transition: width 0.8s cubic-bezier(0.2, 0.75, 0.25, 1);
}

/* Givebutter's own bar stays on the page as the data source, but out of sight */
.dn-goal-source.is-source {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.give-form { min-height: 48px; }

.dn-secure {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 2px dotted rgba(139, 69, 19, 0.3);
  font-size: 1rem;
  line-height: 1.45;
  color: var(--soft);
}

.dn-secure svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  fill: none;
  stroke: var(--terracotta);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.give-help {
  margin-top: 6px;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--soft);
}

.give-help a,
.dn-faq-more a,
.dn-note a {
  color: var(--terracotta);
  font-weight: 700;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

/* Bands below the top */
.dn-band { padding: clamp(52px, 8vw, 88px) var(--gutter); }
.dn-band-tint { background: var(--tint); }

.dn-h2 {
  font-size: clamp(1.9rem, 5.6vw, 2.5rem);
  line-height: 1.1;
  color: var(--terracotta);
  margin-bottom: 22px;
}

/* How your gift helps: three numbered cards */
.dn-steps {
  list-style: none;
  counter-reset: dn-step;
  display: grid;
  gap: 14px;
}

.dn-steps li {
  counter-increment: dn-step;
  position: relative;
  padding: 20px 20px 20px 78px;
  min-height: 92px;
  background: var(--cream);
  border: 1.5px solid var(--border);
  border-radius: 12px;
}

.dn-steps li::before {
  content: counter(dn-step);
  position: absolute;
  left: 20px;
  top: 20px;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--terracotta);
  color: var(--cream);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.25rem;
  font-variant-numeric: lining-nums;
}

.dn-steps h3 {
  font-size: 1.3125rem;
  line-height: 1.25;
  color: var(--terracotta);
  margin-bottom: 4px;
}

.dn-steps p { color: var(--terracotta-deep); line-height: 1.45; }

/* What a grant can cover: four tiles */
.dn-two { display: grid; gap: 56px; }

.dn-tiles {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.dn-tiles li {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 16px;
  background: #FFFAF0;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-weight: 700;
  color: var(--terracotta-deep);
  line-height: 1.3;
}

.dn-tiles svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: var(--terracotta);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* The open-ended tile: dashed, so it reads as "and more" */
.dn-tiles .dn-tile-more {
  background: transparent;
  border: 2px dashed var(--edge);
}

.dn-note {
  margin-top: 16px;
  color: var(--terracotta-deep);
  line-height: 1.5;
  max-width: 34em;
}

/* Where your money goes: one bar split 90/10. Grants are solid terracotta;
   basic costs are an outlined, hatched slice, so the two read apart without color. */
.split { margin: 0; }

.split-bar {
  display: flex;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--terracotta);
}

.split-grants { flex: 90; background: var(--terracotta); }

.split-costs {
  flex: 10;
  border-left: 3px solid var(--cream);
  background: repeating-linear-gradient(135deg,
    var(--tint) 0 5px, rgba(139, 69, 19, 0.35) 5px 7px);
}

.split-key {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.split-item {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-left: 24px;
  position: relative;
}

.split-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  border: 2px solid var(--terracotta);
}

.split-item-grants::before { background: var(--terracotta); }

.split-item-costs::before {
  background: repeating-linear-gradient(135deg,
    var(--tint) 0 3px, rgba(139, 69, 19, 0.45) 3px 4.5px);
}

.split-num {
  flex-shrink: 0;
  min-width: 3.2em;
  font-family: var(--display);
  font-weight: 700;
  font-size: 2.25rem;
  line-height: 1;
  font-variant-numeric: lining-nums;
  color: var(--terracotta);
}

.split-what {
  font-family: 'Plain Zero', var(--text);
  color: var(--terracotta-deep);
  line-height: 1.4;
}

/* The key already says it; the caption is for screen readers */
.split-caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Questions: tap to open */
.dn-faq-head .dn-h2 { margin-bottom: 8px; }
.dn-faq-more { color: var(--terracotta-deep); margin-bottom: 16px; }

.dn-q { border-bottom: 2px dotted rgba(139, 69, 19, 0.4); }
.dn-q:first-child { border-top: 2px dotted rgba(139, 69, 19, 0.4); }

.dn-q summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 14px 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.3;
  color: var(--terracotta);
}

.dn-q summary::-webkit-details-marker { display: none; }

.dn-q summary::after {
  content: '+';
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--terracotta);
  border-radius: 50%;
  font-family: var(--text);
  font-size: 1.375rem;
  line-height: 1;
  color: var(--terracotta);
}

.dn-q[open] summary::after {
  content: '\2212';
  background: var(--terracotta);
  color: var(--cream);
}

.dn-q summary:hover { color: var(--terracotta-deep); }

.dn-q p {
  padding: 0 44px 20px 0;
  color: var(--terracotta-deep);
  line-height: 1.55;
}

@media (min-width: 620px) {
  .dn-trust { flex-direction: row; flex-wrap: wrap; gap: 10px 24px; }
  .dn-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dn-steps li { padding: 22px; min-height: 0; }
  .dn-steps li::before { position: static; margin-bottom: 14px; }
  .dn-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 980px) {
  /* Top: the ask on the left, the donation box on the right */
  .dn-hero-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    grid-template-areas: "text give" "trust give";
    grid-template-rows: auto 1fr;
    column-gap: clamp(48px, 5vw, 80px);
    row-gap: 28px;
    align-items: start;
  }

  .dn-hero-text { align-self: end; padding-top: 24px; }
  .dn-hero .faq-title { font-size: 4.25rem; line-height: 1.05; margin-bottom: 18px; }
  .dn-trust { flex-direction: column; gap: 12px; }
  .dn-card { padding: 24px 24px 18px; }

  .dn-steps { gap: 24px; }

  /* Grant uses and the money split, side by side */
  .dn-two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(48px, 6vw, 96px); }
  .dn-tiles { grid-template-columns: 1fr 1fr; }

  .dn-faq-grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 64px;
    align-items: start;
  }

  .dn-q summary { font-size: 1.3125rem; }
}

/* ─── NAV ON TABLETS ──────────────────────────────────────
   Six links (with Donate) need tighter spacing between the
   hamburger (768px and under) and the computer layout (980px+). */
@media (min-width: 769px) and (max-width: 979px) {
  .nav-links { gap: 1.375rem; }
}

/* ─── HOME HERO: APPLY + DONATE ───────────────────────────
   Apply stays the solid button; Donate is the quieter outlined one.
   Side by side when they fit, otherwise Donate drops under Apply. */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 10px 28px;
  background: transparent;
  color: var(--terracotta);
  font-family: var(--text);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  border: 2px solid var(--terracotta);
  border-radius: 5px;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.btn-outline:hover {
  background: var(--tint);
  color: var(--terracotta-deep);
  border-color: var(--terracotta-deep);
}

/* Small phones: slimmer side padding so both buttons fit on one line */
@media (max-width: 419px) {
  .hero-actions .btn-primary { padding: 12px 22px; }
  .hero-actions .btn-outline { padding: 10px 20px; }
}
