/*
 * /affiliates' own arrangement (pages/static/affiliates): the offer as three
 * figures, each under a heavy rule with its caps label, side by side from
 * 768px and stacked on a phone; a note on discount codes under them, then the
 * apply card, which is the offer card.
 */
@layer pages {
  .affiliate-offer {
    display: grid;
    gap: var(--space-md);
    margin-block: var(--space-lg);

    @media (width >= 768px) {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }

  }

  .affiliate-offer__note {
    max-inline-size: var(--measure);
    margin-block: 0 var(--space-lg);
    color: var(--color-ink-muted);
    font-family: var(--font-prose);
    font-size: var(--text-prose);
    font-style: italic;
    line-height: var(--leading-prose);

    & + .offer-card {
      margin-block-end: var(--space-xl);
    }
  }

  .affiliate-offer__term {
    display: grid;
    align-content: start;
    gap: var(--space-2xs);
    padding-block-start: var(--space-xs);
    border-block-start: var(--rule-heavy);

    & dd {
      margin: 0;
    }
  }

  .affiliate-offer__figure {
    color: var(--color-ink);
    font-family: var(--font-prose);
    font-size: var(--text-figure-xl);
    font-weight: var(--weight-semibold);
    line-height: var(--leading-figure-xl);
  }

  .affiliate-offer__text {
    color: var(--color-ink-soft);
    font-family: var(--font-prose);
    font-size: var(--text-prose);
    line-height: var(--leading-prose);
  }
}
