#!/usr/bin/env python3.12
"""
Load existing Design.md files for reference and comparison.
"""
from __future__ import annotations

import pathlib
from typing import List


def load_design_texts(root: pathlib.Path) -> List[str]:
    texts: List[str] = []
    for fp in root.glob("sites/**/DESIGN.md"):
        try:
            texts.append(fp.read_text(encoding="utf-8"))
        except Exception:
            continue
    return texts
