/** Filename helpers. Report assembly now lives in spine.ts (renderSpine). */

/** Slugify a question into a filename-safe stub. */
export function slugify(s: string): string {
  return (
    s
      .toLowerCase()
      .replace(/[^a-z0-9]+/g, '-')
      .replace(/^-+|-+$/g, '')
      .slice(0, 60) || 'report'
  );
}
