.container {
  display: flex;
  flex-direction: column;
  gap: map.get($spacing-scale, 'md');
  width: 100%;
  max-width: 1200px;
}

.titleRow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: map.get($spacing-scale, 'sm');
}

.titleContainer {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: map.get($spacing-scale, 'xs');
  min-width: 160px;
}

// Nested under .container for (0,2,0) specificity to beat
// WP admin's `.wrap h1` at (0,1,1) which sets font-size: 23px
.container .title {
  flex: 1;
  @include body-large-medium;
  line-height: 1;
  color: var(--color-text-primary);
  margin: 0;
  padding: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.subtitle {
  @include body-small-regular;
  color: var(--color-text-tertiary);
  margin: 0;
}

.actions {
  display: flex;
  align-items: center;
  gap: map.get($spacing-scale, 'sm');
  flex-shrink: 0;
  flex-wrap: wrap;
}

.actionButton svg {
  width: 14px;
  height: 14px;
}

.toolbar {
  display: flex;
  align-items: center;
  gap: map.get($spacing-scale, 'sm');
  flex-wrap: wrap;
}

// Responsive adjustments
@media (max-width: $breakpoint-content) {
  .titleRow {
    flex-direction: column;
    align-items: stretch;
    gap: map.get($spacing-scale, 'md');
  }

  .titleContainer {
    justify-content: flex-start;
  }

  .actions {
    width: 100%;
  }
}
