/* vicpol design tokens. Derived from vec.vic.gov.au with ALL pink/magenta removed (see docs/style-guide.md).
   Poppins (SIL OFL) is VEC's own typeface, vendored in ../fonts/. No remote URLs: CSP is default-src 'self'. */

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/poppins-400.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/poppins-600.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/poppins-700.woff2") format("woff2");
}

:root {
  color-scheme: light dark;

  /* Brand (VEC navy family) */
  --navy-900: #173653;
  --navy-700: #0e3a6c;   /* VEC primary */
  --navy-600: #0b3f75;
  --blue-500: #1474bd;
  --blue-300: #6fa6cc;
  --blue-200: #b6c3d2;
  --blue-100: #d2e8f6;
  --blue-50:  #eaf4fb;
  --teal-700: #00766f;   /* replaces VEC raspberry as the accent */
  --teal-100: #d6efec;

  /* Semantic colour, light */
  --bg:            #f2f2f2;
  --surface:       #ffffff;
  --surface-alt:   #eaf4fb;
  --border:        #d8d8d8;
  --border-strong: #b6c3d2;
  --text:          #1c2b39;
  --text-muted:    #4d5a67;
  --text-on-brand: #ffffff;
  --brand:         var(--navy-700);
  --brand-hover:   var(--navy-900);
  --link:          var(--navy-700);
  --accent:        var(--teal-700);
  --accent-soft:   var(--teal-100);
  --header-bg:     var(--blue-50);
  --footer-bg:     var(--navy-700);
  --focus:         #1474bd;
  --grid:          #e3e8ee;

  /* Status (always paired with an icon or label) */
  --live:          #00766f;
  --live-bg:       #d6efec;
  --stale:         #8a5a00;
  --stale-bg:      #fdf0d0;
  --unavailable:   #b3261e;
  --unavailable-bg:#fbe4e1;

  /* Chart surface (matches SURFACE in js/parties.js) */
  --chart-surface: #ffffff;

  /* Type */
  --font-sans: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, Helvetica, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Consolas, Menlo, monospace;
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.375rem;
  --fs-xl: 1.75rem;
  --fs-2xl: 2.25rem;
  --lh-tight: 1.2;
  --lh-base: 1.5;
  --lh-loose: 1.6;

  /* Spacing (4px base) */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --gutter: 1rem;
  --container: 72rem;

  /* Radius and shadow */
  --radius-sm: 3px;
  --radius: 4px;
  --radius-lg: 6px;
  --radius-pill: 999px;
  --shadow-1: 0 1px 2px rgba(14, 58, 108, 0.12);
  --shadow-2: 0 2px 8px rgba(14, 58, 108, 0.16);

  --tap: 2.75rem;        /* minimum touch target, 44px */
  --transition: 150ms;   /* VEC uses 150ms colour transitions */
}

@media (min-width: 48em) {
  :root { --gutter: 1.5rem; --fs-xl: 2rem; --fs-2xl: 2.75rem; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:            #0a1520;
    --surface:       #162637;
    --surface-alt:   #1c3147;
    --border:        #2c4259;
    --border-strong: #46617b;
    --text:          #e8eef4;
    --text-muted:    #a9b8c7;
    --text-on-brand: #ffffff;
    --brand:         #2f6db3;
    --brand-hover:   #4a86cc;
    --link:          #8db9d8;
    --accent:        #4fc3b8;
    --accent-soft:   #153a3b;
    --header-bg:     #0f1c2a;
    --footer-bg:     #0f1c2a;
    --focus:         #8db9d8;
    --grid:          #263a4e;

    --live:          #4fc3b8;
    --live-bg:       #123a3a;
    --stale:         #f0c36a;
    --stale-bg:      #3b2f0f;
    --unavailable:   #f19a92;
    --unavailable-bg:#40201d;

    --chart-surface: #0f1c2a;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.5);
    --shadow-2: 0 2px 8px rgba(0, 0, 0, 0.55);
  }
}
