/*
 * Political Intelligence — Main Stylesheet
 * ─────────────────────────────────────────────────────────────────────────────
 * NOTE: this file does not control the cascade. `stylesheet_link_tag :app` in
 * the layouts emits a separate <link> for every stylesheet under this
 * directory, in ALPHABETICAL path order, and the @import lines below resolve to
 * 404s that the browser ignores. So base/ loads before components/ before
 * home.css before layouts/ purely because of how those names sort.
 *
 * The list is kept as the map of what exists and the order it is meant to be
 * read in. Anything that genuinely has to beat another file — see
 * components/glass.css — wins on specificity, not on position here.
 * ─────────────────────────────────────────────────────────────────────────────
 */

/* 1. Design tokens — must load first, everything else references them */
@import "base/tokens.css";

/* 2. Reset — clears browser defaults using token values */
@import "base/reset.css";

/* 3. Base — typography scale and utility classes */
@import "base/typography.css";
@import "base/utilities.css";
@import "base/grid.css";

/* 4. Components — UI primitives */
@import "components/nav.css";
@import "components/buttons.css";
@import "components/forms.css";
@import "components/badges.css";
@import "components/flash.css";
@import "components/cards.css";
@import "components/tables.css";
@import "components/charts.css";
@import "components/map.css";
@import "components/loading.css";

/* 5. Layouts — page-level structure */
@import "layouts/auth.css";
@import "home.css";
@import "layouts/admin_dashboard.css";
@import "layouts/admin_profile.css";
@import "layouts/admin_invitations.css";
@import "layouts/dashboard.css";

/* 6. Glass — translucent surfaces for the pages that show the watermark. Must
      come after the layouts: home.css and auth.css set opaque backgrounds on
      the very elements this makes translucent, and at equal specificity the
      later rule wins. */
@import "components/glass.css";

/* 7. Backdrop — the map watermark; last so its html/body overrides win */
@import "components/backdrop.css";
