/* P31 Design Portal — cascade-layer order declaration.
   The sheets themselves are imported from src/main.tsx (JS-side, in this exact
   order: design-core → tokens → workspace → globals → content), so Vite's
   module graph resolves every package subpath reliably. index.css only
   declares the layer order + the base layer. */

@layer base, vendors, suite, content;

/* Base resets (lowest layer). */
@layer base {
  html {
    background: var(--p31-bg, oklch(10% 0.01 240));
  }

  body {
    min-height: 100vh;
    overflow-x: hidden;
  }

  #root {
    min-height: 100vh;
  }

  a {
    color: var(--p31-accent);
    text-decoration: none;
  }
  a:hover {
    text-decoration: underline;
  }

  :focus-visible {
    outline: 2px solid var(--p31-accent);
    outline-offset: 2px;
  }
}

@layer base {
  @media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }
  }

  /* Mobile topbar triage: badges hide, brand never wraps */
  @media (max-width: 767px) {
    .topbar-center {
      display: none;
    }
  }
}