<?xml version="1.0" encoding="UTF-8"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">

  <!-- Core Pages: 184 URLs (6 locale pages × 28 locales + 16 English-only) — regenerate: node backend/scripts/generate-sitemap-core.js -->
  <sitemap>
    <loc>https://lekhak.app/sitemap-core.xml</loc>
    <lastmod>2026-08-19</lastmod>
  </sitemap>

  <!-- PDF Utilities: 672 URLs (hub + 23 tools × 28 locales) — regenerate: node frontend/scripts/generate-sitemap-tools.js -->
  <sitemap>
    <loc>https://lekhak.app/sitemap-tools.xml</loc>
    <lastmod>2026-08-19</lastmod>
  </sitemap>

  <!-- PDF Tool SEO Pages: 24 URLs (translate-pdf hub + 20 language pairs + 3 feature pages) -->
  <sitemap>
    <loc>https://lekhak.app/sitemap-pdf-tools.xml</loc>
    <lastmod>2026-05-21</lastmod>
  </sitemap>

  <!-- Document Type SEO Pages: 66 URLs (25 hubs + 40 language pairs + /document-translation index) -->
  <sitemap>
    <loc>https://lekhak.app/sitemap-doc-types.xml</loc>
    <lastmod>2026-05-21</lastmod>
  </sitemap>

  <!-- Translation Pages: 16,770 URLs (129 languages × 130 combinations) -->
  <sitemap>
    <loc>https://lekhak.app/sitemap-translations.xml</loc>
    <lastmod>2026-08-19</lastmod>
  </sitemap>

  <!-- Individual Language Pages: 129 URLs -->
  <sitemap>
    <loc>https://lekhak.app/sitemap-languages.xml</loc>
    <lastmod>2026-08-19</lastmod>
  </sitemap>

  <!-- Blog Posts: ~5,674 URLs (1 hub + 19 hardcoded legacy + ~5,654 CMS-driven from blog_posts table; uncapped via 86b48089 — 2026-05-19). Growth from job-grounded batches: ~527 (pre-batches) → ~1,301 (Jan, 805 posts, 2026-06-14) → ~2,165 (Feb, 864 posts, 2026-06-15) → ~3,144 (Mar, 979 posts) → ~4,312 (Apr, 1,168 posts) → ~5,674 (May, 1,362 posts, 2026-06-17). Auto-updated via dynamic Next.js route at frontend/src/app/sitemap-blog.xml/route.ts. Locale variants (/<locale>/blog/<slug>) are NOT in this sitemap — they canonicalise to the EN URL (see commit f4cd2447, 2026-05-21). Future v2 with multilingual blog bodies (D34) should add per-locale URLs with hreflang annotations. -->
  <sitemap>
    <loc>https://lekhak.app/sitemap-blog.xml</loc>
    <lastmod>2026-06-17</lastmod>
  </sitemap>

  <!-- Comparison Pages: 168 URLs (6 pages × 28 locales) -->
  <sitemap>
    <loc>https://lekhak.app/sitemap-comparisons.xml</loc>
    <lastmod>2026-05-21</lastmod>
  </sitemap>

  <!-- Cross-Dialect Dictionaries: 557 URLs (index + solutions page + english-arabic-dialects hub + 554 lemma pages) — regenerate: node frontend/scripts/generate-sitemap-dictionaries.js -->
  <sitemap>
    <loc>https://lekhak.app/sitemap-dictionaries.xml</loc>
    <lastmod>2026-06-02</lastmod>
  </sitemap>

  <!-- Help Center + What's New: 11 URLs (/support hub + 9 category pages + /whats-new). English-only (no per-locale hreflang; locales canonicalise to EN). Auto-derived from the data file via dynamic route frontend/src/app/sitemap-support.xml/route.ts -->
  <sitemap>
    <loc>https://lekhak.app/sitemap-support.xml</loc>
    <lastmod>2026-07-18</lastmod>
  </sitemap>

  <!-- Total: ~23,708 URLs across all sitemaps (updated 2026-08-19: +12 languages; core 147→184; tools 196→672 — 18 pdf-utils tools were missing, generator now filesystem-driven) -->
  <!-- Breakdown: 184 core + 672 tools + 24 pdf-tools + 66 doc-types + 16,770 translations + 129 languages + 5,674 blog + 168 comparisons + 557 dictionaries -->

</sitemapindex>
