<!-- LOVABLE:BEGIN -->
> [!IMPORTANT]
> This project is connected to [Lovable](https://lovable.dev). Avoid rewriting
> published git history — force pushing, or rebasing/amending/squashing commits
> that are already pushed — as it rewrites history on Lovable's side and the
> user will likely lose their project history.
>
> Commits you push to the connected branch sync back to Lovable and show up in
> the editor, so keep the branch in a working state.

## What Lovable manages

Rules outside this block are the project's own. Change the pieces below in
Lovable, not by hand. With the [Lovable MCP](https://mcp.lovable.dev)
connected, `send_message` asks Lovable to do it; otherwise ask the user to
use the editor.

- **Database.** Do not add or edit `supabase/migrations/` or `drizzle/`.
  Ask Lovable to change the schema.
- **Generated files.** Do not edit a file whose header says it is automatically
  generated.
- **AI gateway.** Keep model calls on Lovable's gateway, and keep
  `LOVABLE_API_KEY` out of browser code.
- **Connectors.** Lovable provides native connectors. `list_connectors` shows
  which are enabled; `add_connector` only returns the dashboard link. When a
  connector is enabled, calls go through the connector gateway and need
  `LOVABLE_API_KEY`. When Lovable does not provide one, users can bring their
  own key and store it in Secrets.
- **Secrets.** Lovable manages them. Do not put secret values in the repo.
<!-- LOVABLE:END -->

## Application rules
- Keep public content in dedicated TanStack leaf routes and the shared institutional shell in the root; this preserves original URLs and consistent navigation.
- Keep recovered media behind asset pointers and official swatch values in global CSS tokens; this avoids dependence on the old domain and preserves verified colors.
- Validate contact submissions with the shared Zod schema and store through a public server function using INSERT-only access; this accepts visitor messages without exposing private contacts.
- Gate administrative reads through authenticated server functions that verify public.user_roles before returning contacts or analytics; the login route is only a UX guard.
- Collect first-party page and link activity as anonymous session events without IP addresses, and keep the admin interface outside the public institutional shell.

- Keep recruitment content editable in career_settings and career_jobs; validate applications on both sides and store attachments in a private bucket, with admin-authorized expiring download links. This prevents public disclosure of candidates’ documents.
