/* Cultivera V1.43 award-readiness — B5-501 homepage lower-module corrections. */

/* Make the three working-front actions legible without altering their composition. */
.page-home .front-copy em {
  color: rgba(255, 255, 255, .84);
}

.page-home .front-arrow {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 50%;
  background: rgba(8, 18, 13, .28);
  color: var(--close-accent);
  font-size: 1rem;
  line-height: 1;
}

/* Homepage cards need the same explicit keyboard cue as the shared control system. */
.page-home :is(.front-card, .decision-card__link):focus-visible {
  outline: 2px solid transparent;
  outline-offset: 4px;
  box-shadow: var(--award-control-focus);
}

/* Keep the Green Flame summary concise and prevent its supporting copy from spreading. */
.page-home .evidence-panel__main > p {
  max-width: 46ch;
}

/* Give the three current decisions equal visual status on wide screens. */
@media (min-width: 1041px) {
  .page-home main > .section.funding {
    min-height: auto;
  }

  .page-home .funding .decision-showcase {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
  }

  .page-home .funding .decision-showcase__rail {
    display: contents;
  }

  .page-home .funding .decision-card--lead .decision-card__link,
  .page-home .funding .decision-card--support .decision-card__link {
    grid-template-columns: 1fr;
    grid-template-rows: clamp(250px, 22vw, 330px) auto;
  }

  .page-home .funding .decision-card--lead .decision-card__media,
  .page-home .funding .decision-card--support .decision-card__media {
    border-radius: 13px 13px 0 0;
  }

  .page-home .funding .decision-card--lead .decision-card__body,
  .page-home .funding .decision-card--support .decision-card__body {
    border-radius: 0 0 13px 13px;
    padding: clamp(20px, 1.65vw, 25px);
  }

  .page-home .funding .decision-card__title,
  .page-home .funding .decision-card--support .decision-card__title {
    min-height: 2.05em;
    margin-block: 7px 10px;
    font-size: clamp(1.65rem, 2vw, 2.25rem);
    line-height: 1;
  }

  .page-home .funding .decision-card__prompt,
  .page-home .funding .decision-card--support .decision-card__prompt {
    min-height: 4.35em;
    font-size: clamp(.88rem, .92vw, .98rem);
    line-height: 1.48;
  }

  .page-home .funding .decision-card__footer {
    margin-top: 16px;
    padding-top: 14px;
  }
}

@media (max-width: 680px) {
  .page-home .front-arrow {
    width: 32px;
    height: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .front-arrow {
    transition: none;
  }
}
