/* ============================================================
   Text Band section (layout "text_band")
   Design ref: Admissions Process "ELIGIBILITY / Who we can support"
   (ap-01). A centred band: caramel eyebrow, serif teal heading, one
   wide centred rich-text paragraph. Band colour via modifier.
   ============================================================ */

.text-band {
  padding-block: var(--section-padding);
}

.text-band--cream {
  background: var(--color-cream-light);
}

.text-band--light-grey {
  background: var(--color-light-grey);
}

.text-band--teal {
  background: var(--color-teal);
}

.text-band__inner {
  text-align: center;
}

.text-band__heading {
  margin-bottom: var(--space-md);
}

.text-band__text {
  max-width: 72rem;
  margin-inline: auto;
  color: var(--color-text);
}

.text-band__text p {
  margin: 0 0 1em;
}

.text-band__text > :last-child {
  margin-bottom: 0;
}

.text-band__text a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.text-band__text a:hover,
.text-band__text a:focus-visible {
  color: var(--color-accent);
}

/* Teal band: cream heading + body */
.text-band--teal .text-band__heading,
.text-band--teal .text-band__text {
  color: var(--color-text-on-dark);
}

.text-band--teal .text-band__text a:hover,
.text-band--teal .text-band__text a:focus-visible {
  color: var(--color-caramel-light);
}

@media (min-width: 1024px) {
  .text-band__heading {
    font-size: 2.25rem;
    line-height: 1.15;
  }
}
