/*
 * Page header — the top row of any content page inside `.content-page`.
 * Title + optional lede + optional action buttons on the right.
 */

@layer components {
  .page-header {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 1rem 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--color-border);
  }

  .page-header__title {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.015em;
    margin: 0 0 0.25rem;
    color: var(--color-text-heading);
    grid-column: 1;
  }

  .page-header__lede {
    margin: 0;
    max-width: 60ch;
    grid-column: 1;
  }

  .page-header__actions {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: start;
    display: flex;
    gap: 0.5rem;
  }
}
