/* Two paths after a project (site/snippets/blocks/afterpaths.php; final
   uplift 2.7, first on Technical SEO's "What comes after Foundation?").
   A pill where both paths start, a fork drawn from it (1.5px ink line,
   from 48rem), and two cards under its two ends: the path the client
   walks alone on paper, the path where we keep working on the page
   accent's pale fill. Both cards: 1px ink line, the cards' rounded
   corners. Linked by the block itself (peanut_page_css), once per page.
   Every selector names an afterpaths class. Tokens only. No script, no
   motion, nothing that moves after load. */

@layer blocks {
  .afterpaths__head {
    max-width: 44rem;
    margin-inline: auto;
    margin-block-end: var(--space-5);
    text-align: center;
  }

  .afterpaths__title {
    margin: 0;
  }

  .afterpaths__intro {
    margin: var(--space-3) 0 0;
  }

  .afterpaths__map {
    max-width: 60rem;
    margin-inline: auto;
  }

  .afterpaths__start {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    width: fit-content;
    max-width: 100%;
    margin: 0 auto var(--space-4);
    padding: var(--space-1) var(--space-3);
    border: var(--border);
    border-radius: var(--radius-pill);
    background: var(--color-white);
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    line-height: 1.4;
    text-transform: uppercase;
  }

  .afterpaths__dot {
    flex: none;
    width: 0.625rem;
    height: 0.625rem;
    border: var(--border);
    border-radius: 50%;
    background: var(--color-gold-soft);
  }

  .afterpaths__fork {
    display: none;
    color: var(--color-ink);
  }

  .afterpaths__paths {
    display: grid;
    gap: var(--space-4);
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .afterpaths__path {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: var(--space-5) var(--space-4);
    border: var(--border);
    border-radius: var(--radius-lg);
    background: var(--color-paper);
    color: var(--color-ink);
  }

  .afterpaths__path--us {
    background: var(--accent-pale);
  }

  .afterpaths__label {
    margin: 0 0 var(--space-2);
  }

  .afterpaths__name {
    margin: 0;
    font-family: var(--font-heading);
    font-size: var(--step-3);
    font-weight: var(--weight-heading);
    line-height: 1.15;
  }

  .afterpaths__text {
    margin: var(--space-3) 0 0;
  }

  .afterpaths__listtitle {
    margin: var(--space-4) 0 0;
    padding-block-start: var(--space-3);
    border-block-start: var(--border);
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  .afterpaths__list ul {
    margin: var(--space-2) 0 0;
    padding-inline-start: 1.25rem;
  }

  .afterpaths__list li + li {
    margin-block-start: var(--space-1);
  }

  /* a line after the list (final uplift round 2, R23) */
  .afterpaths__list ul + p {
    margin-block-start: var(--space-3);
  }

  .afterpaths__list p {
    margin: 0;
  }

  .afterpaths__text a,
  .afterpaths__list a,
  .afterpaths__note a {
    color: inherit;
  }

  .afterpaths__link {
    margin: auto 0 0;
    padding-block-start: var(--space-4);
  }

  .afterpaths__note {
    max-width: 44rem;
    margin: var(--space-5) auto 0;
    text-align: center;
  }

  @media (min-width: 48rem) {
    .afterpaths__start {
      margin-block-end: 0;
    }

    /* the fork: from the pill down to the middle of each card, the line's
       ends at a quarter and three quarters of the row, which the padding
       matches to the two columns' centers */
    .afterpaths__fork {
      display: block;
      width: 100%;
      height: 3rem;
      padding-inline: calc(var(--space-4) / 4);
      box-sizing: border-box;
    }

    .afterpaths__paths {
      grid-template-columns: 1fr 1fr;
    }

    .afterpaths__path {
      padding: var(--space-5);
    }
  }

  @media print {
    .afterpaths__path {
      break-inside: avoid;
    }
  }
}
