/* =========================================================
   PM 4 LIFE — Funding pages (main + per-program detail)
   Depends on styles.css for :root variables and base classes.
   ========================================================= */

/* ---- Main funding page ---- */
.funding-callout {
  background: var(--navy);
  color: var(--cream);
  border-radius: 14px;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: 0 8px 28px rgba(15, 27, 54, 0.18);
}
.funding-callout .eyebrow { color: var(--gold-soft); margin-bottom: 0.75rem; }
.funding-callout .eyebrow::before { background: var(--gold-soft); }
.funding-callout h3 { color: var(--cream); margin-bottom: 0.5rem; }
.funding-callout p { color: rgba(245, 241, 232, 0.9); }
.funding-callout a { color: var(--gold-soft); text-decoration: underline; }
.funding-callout a:hover { color: #fff; }

.funding-nav { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 2rem; }
.funding-nav a {
  display: inline-block;
  padding: 0.5rem 1.05rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  background: #fff;
  transition: all 0.2s;
}
.funding-nav a:hover { background: var(--navy); color: var(--cream); border-color: var(--navy); }

.funding-list { display: flex; flex-direction: column; gap: 1.5rem; }
.funding-card {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 12px;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  scroll-margin-top: 100px;
}
.funding-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}
.funding-card-head h3 { margin: 0; }
.funding-status {
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  white-space: nowrap;
}
.status-now { background: var(--gold); color: var(--navy); }
.status-soon { background: var(--warm); color: var(--navy); border: 1px solid var(--line-strong); }
.status-reimburse { background: #fff; color: var(--navy); border: 1px solid var(--navy); }

.funding-rows { display: grid; gap: 1rem; margin: 0; }
.funding-row { display: grid; grid-template-columns: 160px 1fr; gap: 1rem; }
.funding-row dt {
  font-family: var(--body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  padding-top: 0.15rem;
}
.funding-row dd { margin: 0; }
.funding-note { margin-top: 1.1rem; font-size: 0.92rem; color: #5a5a5a; font-style: italic; }
.funding-disclaimer { font-size: 0.88rem; line-height: 1.6; color: #5a5a5a; max-width: 840px; }

/* ---- COOL branch breakout (on the main funding page) ---- */
.cool-branch-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}
.cool-branch {
  background: var(--warm);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.35rem 1.4rem;
  display: flex;
  flex-direction: column;
}
.cool-branch h4 {
  font-family: var(--display);
  font-size: 1.2rem;
  color: var(--navy);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 0.4rem;
}
.cool-branch p {
  font-size: 0.93rem;
  line-height: 1.5;
  color: var(--charcoal);
  opacity: 0.85;
  margin-bottom: 1rem;
}
.cool-branch .btn {
  align-self: flex-start;
  margin-top: auto;
  padding: 0.6rem 1.15rem;
  font-size: 0.86rem;
}
.cool-branch-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  justify-content: space-between;
  margin-bottom: 0.4rem;
  flex-wrap: wrap;
}
.cool-branch-head h4 { margin-bottom: 0; }
.cool-branch-tag {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  white-space: nowrap;
}
.tag-now { background: var(--gold); color: var(--navy); }
.tag-soon { background: var(--warm); color: var(--navy); border: 1px solid var(--line-strong); }

.fund-summary a { color: var(--gold-soft); text-decoration: underline; }
.fund-summary a:hover { color: #fff; }

/* ---- Per-program detail pages ---- */
.fund-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}
.fund-back:hover { color: var(--navy); }

.fund-summary {
  background: var(--navy);
  color: var(--cream);
  border-radius: 14px;
  padding: clamp(1.5rem, 3vw, 2rem);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 8px 28px rgba(15, 27, 54, 0.18);
}
.fund-summary p {
  color: rgba(245, 241, 232, 0.92);
  margin: 0;
  max-width: 660px;
  font-size: 1.02rem;
  line-height: 1.6;
}
.fund-summary strong { color: var(--cream); }
.fund-pill {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: var(--gold);
  color: var(--navy);
  white-space: nowrap;
}

.fund-eligibility {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.5rem 1.75rem;
}
.fund-eligibility .eyebrow { margin-bottom: 0.75rem; }
.fund-eligibility ul { margin: 0.5rem 0 0 1.1rem; }
.fund-eligibility li { margin-bottom: 0.4rem; }

.fund-steps { list-style: none; counter-reset: step; margin: 0; padding: 0; }
.fund-step { counter-increment: step; position: relative; padding: 0 0 2.25rem 4rem; }
.fund-step:last-child { padding-bottom: 0; }
.fund-step::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.75rem;
  height: 2.75rem;
  background: var(--gold);
  color: var(--navy);
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
.fund-step::after {
  content: "";
  position: absolute;
  left: 1.375rem;
  top: 2.95rem;
  bottom: 0.3rem;
  width: 2px;
  background: var(--line-strong);
}
.fund-step:last-child::after { display: none; }
.fund-step h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.fund-step p { margin-bottom: 0.6rem; }
.fund-step a { color: var(--navy); text-decoration: underline; }
.fund-step a:hover { color: var(--gold); }
.fund-step ul { margin: 0.5rem 0 0 1.1rem; }
.fund-step li { margin-bottom: 0.3rem; font-size: 0.97rem; }

.fund-aside {
  background: var(--warm);
  border-left: 3px solid var(--gold);
  border-radius: 4px;
  padding: 1rem 1.25rem;
  margin-top: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.6;
}
.fund-aside strong { color: var(--navy); }

.fund-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.25rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 0.15rem;
}
.fund-card-link:hover { color: var(--navy); border-color: var(--navy); }

@media (max-width: 620px) {
  .cool-branch-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .funding-row { grid-template-columns: 1fr; gap: 0.25rem; }
}
