<?xml version="1.0" encoding="UTF-8"?>
<!--
  SITEMAP INDEX — socelle.com
  Updated: 2026-03-08 (SEO audit)

  All sub-sitemaps are served by the sitemap-generator Supabase Edge Function.
  Static routes are content-stable. Dynamic routes (brands, protocols, jobs, stories) are LIVE from DB.

  Cloudflare _redirects required (add after deploying the edge function):
    /sitemap-static.xml    https://<project_ref>.supabase.co/functions/v1/sitemap-generator?type=static    200
    /sitemap-brands.xml    https://<project_ref>.supabase.co/functions/v1/sitemap-generator?type=brands    200
    /sitemap-protocols.xml https://<project_ref>.supabase.co/functions/v1/sitemap-generator?type=protocols 200
    /sitemap-jobs.xml      https://<project_ref>.supabase.co/functions/v1/sitemap-generator?type=jobs      200
    /sitemap-stories.xml   https://<project_ref>.supabase.co/functions/v1/sitemap-generator?type=stories   200

  Or point search engines directly to the edge function index:
    https://<project_ref>.supabase.co/functions/v1/sitemap-generator
-->
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">

  <!-- Static public routes (Home, Intelligence, Brands, Events, Jobs, Education, etc.) -->
  <sitemap>
    <loc>https://socelle.com/sitemap-static.xml</loc>
    <lastmod>2026-03-08</lastmod>
  </sitemap>

  <!-- Dynamic brand profiles — LIVE from `brands` table (status='active') -->
  <sitemap>
    <loc>https://socelle.com/sitemap-brands.xml</loc>
    <lastmod>2026-03-08</lastmod>
  </sitemap>

  <!-- Canonical protocols — LIVE from `canonical_protocols` table -->
  <sitemap>
    <loc>https://socelle.com/sitemap-protocols.xml</loc>
    <lastmod>2026-03-08</lastmod>
  </sitemap>

  <!-- Active job postings — LIVE from `job_postings` table (status='active') -->
  <sitemap>
    <loc>https://socelle.com/sitemap-jobs.xml</loc>
    <lastmod>2026-03-08</lastmod>
  </sitemap>

  <!-- Editorial stories — LIVE from `cms_posts` (source_type=rss_draft|rss_auto_promote, status=published) -->
  <sitemap>
    <loc>https://socelle.com/sitemap-stories.xml</loc>
    <lastmod>2026-03-14</lastmod>
  </sitemap>

  <!-- Education modules — LIVE from `brand_training_modules` (is_published=true) -->
  <sitemap>
    <loc>https://socelle.com/sitemap-education.xml</loc>
    <lastmod>2026-03-14</lastmod>
  </sitemap>

  <!-- Events — LIVE from `events` table (status=active) -->
  <sitemap>
    <loc>https://socelle.com/sitemap-events.xml</loc>
    <lastmod>2026-03-14</lastmod>
  </sitemap>

  <!-- Intelligence briefs — LIVE from `cms_posts` (intelligence space, status=published) -->
  <sitemap>
    <loc>https://socelle.com/sitemap-briefs.xml</loc>
    <lastmod>2026-03-14</lastmod>
  </sitemap>

</sitemapindex>
