/* Section header for content pages: eyebrow, title, lead. */

.section-header {
  display: grid;
  max-width: 48rem;
  margin-bottom: 1rem;
  gap: 0.3rem;
}

.section-header > * {
  margin: 0;
}

.section-header__eyebrow {
  color: var(--color-brand-text);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-header__lead {
  color: var(--bs-fg-2);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Page header with actions (ui.section-header.actions): text block left, create/edit actions top
   right. The actions never stretch; only when the text block cannot keep its minimum width do they
   wrap below it (left-aligned on phones). */
.section-header--actions {
  display: flex;
  max-width: none;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.section-header--actions > :first-child {
  display: grid;
  min-width: 0;
  max-width: 48rem;
  flex: 1 1 18rem;
  gap: 0.3rem;
}

.section-header--actions > :first-child > * {
  margin: 0;
}

.section-header__actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  align-items: center;
  margin-left: auto;
  gap: 0.5rem;
}

@media (max-width: 36rem) {
  .section-header__actions {
    margin-left: 0;
  }
}
