body.funding-index-page,
body.funding-detail-page,
body.funding-page {
  margin: 0;
  background: #08231b;
  color: #f5f0e1;
  font: 1.05rem/1.55 Geist, system-ui, sans-serif;
}

.funding-index,
.funding-detail {
  --funding-bg: #08231b;
  --funding-card: #0f3d30;
  --funding-gold: #d0ac5c;
  --funding-gold-light: #ead194;
  --funding-ink: #08261c;
  --funding-text: #f5f0e1;
  --funding-muted: #d5dfd5;
  --funding-border: rgb(208 172 92 / 34%);
  box-sizing: border-box;
  padding: calc(60px + clamp(1.25rem, 4vw, 2.75rem)) 0 clamp(2rem, 6vw, 4.5rem);
  background: var(--funding-bg);
  color: var(--funding-text);
  font: 1.05rem/1.55 Geist, system-ui, sans-serif;
}

.funding-index *,
.funding-detail * {
  box-sizing: border-box;
}

.funding-index .wrap,
.funding-detail .wrap {
  max-width: 68rem;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.35rem);
}

.funding-index :is(h1, h2, h3, h4),
.funding-detail :is(h1, h2, h3, h4) {
  margin: 0;
  color: inherit;
  font-family: Archivo, system-ui, sans-serif;
  font-stretch: 112%;
  line-height: 1.12;
  letter-spacing: -.025em;
  text-wrap: balance;
}

.funding-index h1,
.funding-detail h1 {
  font-size: clamp(2.45rem, 1.8rem + 3.2vw, 4rem);
}

.funding-index h2,
.funding-detail h2 {
  font-size: clamp(1.55rem, 1.2rem + 1.3vw, 2.3rem);
}

.funding-index h3,
.funding-detail h3 {
  font-size: clamp(1.17rem, 1.06rem + .48vw, 1.45rem);
}

.funding-index :is(p, ul, dl),
.funding-detail :is(p, ul, dl) {
  margin: .65rem 0 0;
}

.funding-index li + li,
.funding-detail li + li {
  margin-top: .25rem;
}

.funding-index a,
.funding-detail a {
  color: var(--funding-gold-light);
  text-underline-offset: .23em;
}

.funding-overview,
.funding-detail-summary,
.funding-credit,
.funding-contact {
  padding: clamp(1.15rem, 4vw, 2.6rem);
  border: 1px solid var(--funding-border);
  border-radius: clamp(.75rem, 2vw, 1.4rem);
  background: var(--funding-card);
}

.funding-overview,
.funding-detail-summary {
  border-top: 4px solid var(--funding-gold);
}

.funding-overview p,
.funding-detail-intro p,
.funding-index-programs > p,
.funding-detail-section > p {
  max-width: 68ch;
}

.funding-index .funding-eyebrow,
.funding-detail .funding-eyebrow {
  margin: 0 0 .55rem;
  color: var(--funding-gold-light);
  font-size: .84rem;
  font-weight: 750;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.funding-index .funding-index-bullets {
  padding-inline-start: 1.25rem;
}

.funding-index-bullets li::marker,
.funding-detail-section li::marker {
  color: var(--funding-gold);
}

#funding-options {
  scroll-margin-top: 76px;
}

.funding-index :is(.funding-index-programs, .funding-credit, .funding-support, .funding-contact, .funding-index-cta),
.funding-detail :is(.funding-detail-section, .funding-apply, .funding-contact) {
  margin-top: clamp(1.6rem, 4vw, 3.2rem);
}

.funding-index .funding-button,
.funding-detail .funding-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin-top: 1rem;
  padding: .55rem 1.12rem;
  border-radius: .55rem;
  background: var(--funding-gold);
  color: var(--funding-ink);
  font-weight: 750;
  text-align: center;
  text-decoration: none;
}

.funding-index .funding-button:hover,
.funding-detail .funding-button:hover {
  background: var(--funding-gold-light);
}

.funding-card-grid,
.funding-credit-grid,
.funding-detail .funding-snapshot {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .85rem;
}

.funding-card-grid,
.funding-credit-grid {
  margin-top: 1.1rem;
}

.funding-card,
.funding-credit-grid > div,
.funding-snapshot > div {
  padding: clamp(.85rem, 2vw, 1.2rem);
  border: 1px solid var(--funding-border);
  border-radius: .7rem;
  background: var(--funding-card);
}

.funding-card {
  display: flex;
  flex-direction: column;
}

.funding-credit-grid > div,
.funding-snapshot > div {
  background: rgb(208 172 92 / 9%);
}

.funding-card .funding-card-terms {
  padding-top: .65rem;
  border-top: 1px solid var(--funding-border);
  color: var(--funding-gold-light);
  font-size: .95rem;
  font-weight: 650;
}

.funding-index .funding-index-credit-note {
  margin-top: 1rem;
  font-weight: 700;
}

.funding-card .funding-text-link {
  display: inline-flex;
  align-items: center;
  align-self: start;
  min-height: 44px;
  margin-top: auto;
  padding-top: .4rem;
  font-weight: 700;
}

.funding-index .funding-note,
.funding-detail .funding-note {
  color: var(--funding-muted);
  font-size: .94rem;
}

.funding-breadcrumb {
  margin-bottom: .5rem;
  font-size: .94rem;
}

.funding-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 .65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.funding-breadcrumb li + li {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-top: 0;
}

.funding-breadcrumb li + li::before {
  content: "";
  flex: none;
  width: .35rem;
  height: .35rem;
  border-top: 1px solid var(--funding-muted);
  border-right: 1px solid var(--funding-muted);
  transform: rotate(45deg);
}

.funding-breadcrumb a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 650;
}

.funding-breadcrumb [aria-current="page"] {
  color: var(--funding-muted);
}

.funding-detail-snapshot {
  margin-top: 1.35rem;
}

.funding-detail .funding-snapshot {
  margin-top: .85rem;
}

.funding-snapshot dt {
  color: var(--funding-gold-light);
  font-size: .82rem;
  font-weight: 750;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.funding-snapshot dd {
  margin: .25rem 0 0;
  font-weight: 650;
}

.funding-detail-section h3 {
  margin-top: 1rem;
}

.funding-detail-section li,
.funding-support li {
  padding-left: .12rem;
}

.funding-index-cta,
.funding-apply {
  padding: clamp(1.15rem, 4vw, 2.6rem);
  border-radius: clamp(.75rem, 2vw, 1.4rem);
  background: var(--funding-gold);
  color: var(--funding-ink);
}

.funding-index-cta {
  text-align: center;
}

.funding-apply h3 {
  margin-top: 1.1rem;
}

.funding-requirements {
  margin-top: 1.05rem;
  border-top: 1px solid rgb(8 38 28 / 30%);
}

.funding-index .funding-index-cta .funding-button,
.funding-detail .funding-apply .funding-button {
  background: var(--funding-ink);
  color: var(--funding-text);
}

.funding-index .funding-index-cta .funding-button:hover,
.funding-detail .funding-apply .funding-button:hover {
  background: #13533d;
}

.funding-detail .funding-apply a:not(.funding-button),
.funding-index .funding-index-cta a:not(.funding-button) {
  color: var(--funding-ink);
}

@media (max-width: 640px) {
  .funding-card-grid,
  .funding-credit-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 380px) {
  .funding-detail .funding-snapshot {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* On-site funding application (shared partial) */
#apply {
  scroll-margin-top: 76px;
}

.funding-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .85rem 1rem;
  margin-top: 1rem;
}

.funding-form label {
  display: grid;
  gap: .3rem;
  font-size: .95rem;
  font-weight: 600;
}

.funding-form .funding-form-wide {
  grid-column: 1 / -1;
}

.funding-form :is(input, select, textarea) {
  width: 100%;
  min-height: 46px;
  padding: .55rem .7rem;
  border: 1px solid var(--funding-border);
  border-radius: .5rem;
  background: rgb(255 255 255 / 6%);
  color: var(--funding-text);
  font: inherit;
  font-weight: 400;
}

.funding-form select option {
  color: #08261c;
}

.funding-form :is(input, select, textarea):focus {
  outline: 2px solid var(--funding-gold);
  outline-offset: 1px;
}

.funding-form button {
  border: 0;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.funding-form button:disabled {
  opacity: .7;
  cursor: wait;
}

.funding-form .funding-form-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.funding-form-msg {
  min-height: 1.5em;
  margin: .75rem 0 0;
}

.funding-form-msg.ok {
  color: var(--funding-gold-light);
}

.funding-form-msg.err {
  color: #ffb4a8;
}

.funding-index .funding-powered,
.funding-detail .funding-powered,
.funding-powered {
  margin: clamp(1.6rem, 4vw, 3rem) 0 0;
  padding-top: 1rem;
  border-top: 1px solid rgb(208 172 92 / 34%);
  color: #d5dfd5;
  font-size: .95rem;
  text-align: center;
}

@media (max-width: 640px) {
  .funding-form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* /funding opens with the programs list (Kathy removed the intro card). */
.funding-index .wrap > .funding-visually-hidden + section {
  margin-top: 0;
}

.funding-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
