/* Guide to Childcare Funding page */

/* ---------- Hero ---------- */

/* Eyebrow flanked by short cedar rules */
.cp-funding-hero__eyebrow::before,
.cp-funding-hero__eyebrow::after {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--cp-cedar);
}

.cp-funding-hero__title {
  text-wrap: balance;
}

.cp-funding-hero__lede {
  max-width: 660px;
}

.cp-funding-hero__note {
  max-width: 640px;
  margin: 14px auto 0;
  font-size: 16px;
  line-height: 1.8;
  font-weight: 700;
  color: var(--cp-ink);
}

.cp-funding-hero__actions {
  justify-content: center;
  gap: 24px;
  margin-top: 32px;
}

.cp-funding-hero__actions .cp-link i {
  font-size: 11px;
}

/* Centred eyebrow and H2 above a section */
.cp-funding-head {
  max-width: 760px;
  margin: 0 auto 44px;
  text-align: center;
}

/* ---------- Funded hours ---------- */

.cp-funding-hours {
  padding: 92px 40px;
}

.cp-funding-hours__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--cp-stone);
  background: var(--cp-card);
}

.cp-funding-hours__cell {
  padding: 38px 34px;
  border-right: 1px solid var(--cp-stone);
  border-bottom: 1px solid var(--cp-stone);
}

.cp-funding-hours__cell:last-child {
  border-right: none;
}

.cp-funding-hours__num {
  font-family: var(--cp-serif);
  font-weight: 500;
  font-size: 48px;
  line-height: 1;
  color: var(--cp-cedar);
}

.cp-funding-hours__num span {
  margin-left: 4px;
  font-size: 22px;
}

.cp-funding-hours__title {
  margin-top: 16px;
  font-family: var(--cp-sans);
  font-size: 16px;
  font-weight: 700;
}

.cp-funding-hours__cell p {
  margin-top: 10px;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--cp-muted);
}

.cp-funding-hours__cell strong {
  color: var(--cp-ink);
}

.cp-funding-hours__cell a {
  font-weight: 700;
}

/* ---------- More ways to save ---------- */

.cp-funding-schemes {
  padding: 92px 40px;
}

.cp-funding-schemes__grid {
  gap: 24px;
  align-items: stretch;
}

.cp-funding-scheme {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 34px 32px;
  background: var(--cp-card);
  border: 1px solid var(--cp-stone);
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(51, 40, 31, 0.06);
}

.cp-funding-scheme__title {
  font-size: 24px;
}

.cp-funding-scheme p {
  margin-top: 12px;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--cp-muted);
}

.cp-funding-scheme strong {
  color: var(--cp-ink);
}

.cp-funding-scheme .cp-funding-scheme__note {
  font-size: 13px;
  line-height: 1.7;
  color: var(--cp-muted-2);
}

.cp-funding-scheme .cp-link {
  margin-top: 18px;
  padding-bottom: 3px;
}

.cp-funding-scheme .cp-link i {
  font-size: 11px;
}

/* ---------- Help with funding ---------- */

.cp-funding-help {
  max-width: 860px;
  padding: 80px 40px;
  text-align: center;
}

.cp-funding-help .cp-eyebrow {
  color: var(--cp-sage-light);
}

.cp-funding-help__title {
  margin-top: 14px;
  font-size: clamp(28px, 2.8vw, 40px);
  line-height: 1.2;
  color: var(--cp-ivory);
  text-wrap: balance;
}

.cp-funding-help__text {
  max-width: 620px;
  margin: 18px auto 0;
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--cp-on-navy);
  text-wrap: pretty;
}

.cp-funding-help__actions {
  gap: 14px;
  justify-content: center;
  margin-top: 30px;
}

.cp-funding-help__btn {
  padding: 16px 28px;
  background: var(--cp-ivory);
  color: var(--cp-navy);
}

.cp-funding-help__btn:hover {
  background: var(--cp-stone);
  color: var(--cp-navy);
}

.cp-funding-help__btn--ghost {
  gap: 10px;
  padding: 15px 28px;
  border: 1px solid var(--cp-ivory);
  background: transparent;
  color: var(--cp-ivory);
}

.cp-funding-help__btn--ghost:hover {
  background: var(--cp-ivory);
  color: var(--cp-navy);
}

.cp-funding-help__btn--ghost i {
  font-size: 12px;
}

/* ---------- CTA ---------- */

.cp-funding-cta .cp-cta__text a {
  font-weight: 700;
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .cp-funding-hours__grid {
    grid-template-columns: 1fr;
  }

  .cp-funding-hours__cell {
    border-right: none;
  }

  .cp-funding-schemes__grid {
    gap: 32px;
  }
}
