/* ==========================================================================
   MIT Apps for Action — program page (/explore/apps-for-action)
   --------------------------------------------------------------------------
   Loaded by pages/apps-for-action.html, together with css/ai2-afa-banner.css,
   which carries the bee flight the header shares with the homepage banner.
   ========================================================================== */

/* Header ------------------------------------------------------------------
   The banner's headline without its frame, and a link down to the contact
   details. The bee flies in above it and parks at the top right, as on
   Marisol's one-pager. The top padding is the lane it flies in. The
   flight overlay is 1/6 of the header's width tall and the header is about
   85vw wide, so 7.5vw keeps the headline just under the trail at every
   desktop width; 3.6rem is the lane on a phone, where the overlay is drawn
   at double width. */
.afa-hero {
  position: relative;
  overflow: hidden;
  margin: 0 auto clamp(1.25rem, 3vw, 2rem);
  padding: max(3.6rem, 7.5vw) 1rem 0;
  text-align: center;
}

.afa-hero__title,
.afa-hero__ask { position: relative; z-index: 1; }

.afa-hero__title {
  margin: 0;
  font-family: var(--ai2-display-font, "Poppins", sans-serif);
  font-weight: 700;
  font-style: italic;
  line-height: 1.04;
  letter-spacing: -0.015em;
  color: var(--ai2-ink, #12181f);
  font-size: clamp(2.2rem, 5.6vw, 4.5rem);
}

/* The one way down to the contact details from the top. */
.afa-hero__ask {
  margin: clamp(0.6rem, 1.4vw, 1rem) 0 0;
  font-family: var(--ai2-display-font, "Poppins", sans-serif);
  font-weight: 600;
  line-height: 1.3;
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
}

.afa-hero__ask a {
  color: var(--ai2-brand-magenta, #92267c);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

.afa-hero__ask a:hover,
.afa-hero__ask a:focus {
  color: var(--ai2-ink, #12181f);
}

.afa {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 1rem 3rem;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ai2-text, #495661);
}

.afa h2 {
  margin: 2.75rem 0 0.6rem;
  color: var(--ai2-brand-magenta, #92267c);
  font-family: var(--ai2-display-font, "Poppins", sans-serif);
  font-size: 1.6rem;
  font-weight: 600;
}

.afa h3 {
  margin: 1.6rem 0 0.4rem;
  color: var(--ai2-ink, #12181f);
  font-size: 1.15rem;
  font-weight: 600;
}

.afa p { margin: 0 0 1rem; }
.afa ul { margin: 0 0 1rem; padding-left: 1.25rem; }
.afa li { margin: 0 0 0.35rem; }

/* The photo under the header. */
.afa .afa-photo {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 0 1.75rem;
  border-radius: var(--ai2-radius-card, 1rem);
}

/* The orange button in the contact section. */
a.afa-ask__btn {
  display: inline-block;
  padding: 0.7rem 1.6rem;
  border-radius: var(--ai2-radius-pill, 999px);
  background: var(--ai2-brand-orange, #f88d34);
  color: #12181f;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

a.afa-ask__btn:hover,
a.afa-ask__btn:focus {
  background: var(--ai2-orange-dark, #e2761d);
  color: #12181f;
  text-decoration: none;
}

/* The three models -------------------------------------------------------
   One card each, so the shapes can be compared at a glance instead of read
   in sequence. */

.afa-models {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0 1rem;
}

@media (max-width: 767px) {
  .afa-models { grid-template-columns: minmax(0, 1fr); }
}

.afa-model {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--ai2-rule, #e3e6e9);
  border-top: 5px solid var(--ai2-brand-orange, #f88d34);
  border-radius: var(--ai2-radius-card, 1rem);
  padding: 1.25rem 1.25rem 1.35rem;
  background: var(--ai2-surface, #fff);
}

.afa-model--week    { border-top-color: var(--ai2-brand-lime, #a5cf47); }
.afa-model--twoweek { border-top-color: var(--ai2-brand-teal, #128ba8); }

.afa-model h3 {
  margin: 0 0 0.15rem;
  font-family: var(--ai2-display-font, "Poppins", sans-serif);
  font-size: 1.2rem;
}

.afa-model .afa-model__hours {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ai2-text, #495661);
}

.afa-model ul {
  margin: 0 0 1rem;
  padding-left: 1.1rem;
  font-size: 0.97rem;
}

.afa .afa-note, .afa-note {
  margin: 0.5rem 0 0;
  font-size: 0.95rem;
  color: var(--ai2-text-muted, #6b7784);
}

/* Facts strip ------------------------------------------------------------ */

.afa .afa-facts, .afa-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.afa-facts li {
  margin: 0;
  padding: 0.4rem 0.9rem;
  border-radius: var(--ai2-radius-pill, 999px);
  background: var(--ai2-tint-slate, #f1f1f1);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ai2-ink, #12181f);
}

/* Outcomes --------------------------------------------------------------- */

.afa .afa-outcomes, .afa-outcomes {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.afa-outcomes li {
  margin: 0 0 0.85rem;
  padding-left: 0;
}

.afa-outcomes b {
  font-family: var(--ai2-display-font, "Poppins", sans-serif);
  font-weight: 600;
  font-style: italic;
  color: var(--ai2-brand-slate, #58585a);
}
