@layer components {
  .tools {
    margin-block: 2rem;
    padding: 1rem 1.5rem;
  }

  .tools__container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
    justify-content: space-between;
  }

  .tools__intro {
    display: grid;
    gap: 0.25rem;
  }

  .tools__title {
    font-size: var(--text-xl);
    margin-block-end: 0;
  }

  .tools__prompt {
    font-size: var(--text-base);
    color: var(--color-text-muted);
  }

  .tools__group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1ch;
  }

  .tools__btn {
    gap: 0.5ch;
  }

  .tools__btn i {
    font-size: 1.2rem;
  }

  /* Scoped under .tools: the calendar heading borrows .tools__container and
     must keep its own row layout on small screens. Breakpoint sits above the
     point where the intro text forces the buttons onto their own line. */
  @media (max-width: 48rem) {
    .tools .tools__container {
      flex-direction: column;
      align-items: flex-start;
      gap: 1rem;
    }

    .tools .tools__group {
      align-self: stretch;
      justify-content: center;
    }
  }
}