/* ==========================================================================
   SmartAGM v2 — Design tokens
   Every colour, radius, spacing and layout value used by the new UI lives
   here. Components reference the semantic tokens (bottom half), never the
   raw palette, so a colour change is a one-line edit.
   ========================================================================== */

:root {
  /* ---- Raw palette ------------------------------------------------------ */

  /* Navy (brand ink + dark surfaces) */
  --navy-950: #030B1A;   /* footer */
  --navy-900: #061129;   /* header, hero, primary text */
  --navy-800: #0E2148;   /* primary button hover */

  /* Paper (light surfaces) */
  --paper-100: #FFFFFF;
  --paper-200: #EBEEF0;  /* page background */
  --paper-300: #DDE3E7;  /* muted pill */

  /* Orange (brand accent) */
  --orange-500: #F29100; /* accent fill, underline, calendar marks */
  --orange-400: #FFA829; /* accent fill hover */
  --orange-700: #B36A00; /* accent as text on light backgrounds */
  --orange-100: #FBDCAE; /* text selection */

  /* Status: open (green) */
  --green-100: #E4F3E8;
  --green-600: #1E8E4A;
  --green-800: #1B6B39;

  /* Status: closing (red) */
  --red-100: #FBE3DF;
  --red-600: #D0341C;
  --red-800: #A32A17;

  /* Status: opens soon (amber) */
  --amber-100: #FCEBD5;
  --amber-800: #8A4F00;

  /* Status: to be announced (neutral) */
  --slate-400: #8A94A6;

  /* ---- Semantic colours ------------------------------------------------- */

  --color-bg: var(--paper-200);
  --color-surface: var(--paper-100);
  --color-surface-muted: var(--paper-300);
  --color-surface-translucent: rgba(255, 255, 255, 0.5); /* "To be announced" cards */
  --color-surface-dark: var(--navy-900);
  --color-surface-darker: var(--navy-950);

  --color-text: var(--navy-900);
  --color-text-muted: rgba(6, 17, 41, 0.62);
  --color-text-subtle: rgba(6, 17, 41, 0.55);
  --color-border: rgba(6, 17, 41, 0.10);
  --color-border-strong: rgba(6, 17, 41, 0.28);
  --color-divider: rgba(6, 17, 41, 0.14);              /* line between registration steps */

  /* Text and lines on dark (navy) surfaces */
  --color-on-dark: var(--paper-200);
  --color-on-dark-muted: rgba(235, 238, 240, 0.75);
  --color-on-dark-subtle: rgba(235, 238, 240, 0.60);
  --color-on-dark-label: rgba(235, 238, 240, 0.50);    /* footer column headings */
  --color-on-dark-border: rgba(235, 238, 240, 0.12);
  --color-on-dark-divider: rgba(235, 238, 240, 0.20);
  --color-on-dark-tint: rgba(235, 238, 240, 0.07);
  --color-on-dark-strong: rgba(235, 238, 240, 0.85);   /* calendar day numbers */
  --color-on-dark-faint: rgba(235, 238, 240, 0.40);    /* calendar weekday letters */
  --color-on-dark-disabled: rgba(235, 238, 240, 0.32); /* days outside the month */
  --color-on-dark-panel: rgba(235, 238, 240, 0.05);    /* card on the hero */
  --color-on-dark-panel-border: rgba(235, 238, 240, 0.16);
  --color-on-dark-tint-hover: rgba(235, 238, 240, 0.16);
  --color-on-mark: var(--paper-100);                   /* numbers on marked calendar days */
  --color-accent-glow: rgba(242, 145, 0, 0.24);         /* hero corner glow */

  --color-accent: var(--orange-500);
  --color-accent-hover: var(--orange-400);
  --color-accent-text: var(--orange-700);
  --color-on-accent: var(--navy-900);
  --color-accent-tint: rgba(242, 145, 0, 0.14);        /* date tiles on the hero card */
  --color-on-accent-tint: rgba(6, 17, 41, 0.14);       /* count badges on accent fills */
  --color-selection: var(--orange-100);
  --color-selection-text: var(--navy-900);

  --color-primary: var(--navy-900);
  --color-primary-hover: var(--navy-800);
  --color-on-primary: var(--paper-200);

  --color-status-open-bg: var(--green-100);
  --color-status-open-text: var(--green-800);
  --color-status-open-dot: var(--green-600);
  --color-status-closing-bg: var(--red-100);
  --color-status-closing-text: var(--red-800);
  --color-status-closing-dot: var(--red-600);
  --color-status-soon-bg: var(--amber-100);
  --color-status-soon-text: var(--amber-800);
  --color-status-soon-dot: var(--orange-500);
  --color-status-tba-dot: var(--slate-400);

  --color-focus-ring: var(--orange-500);

  /* ---- Radii ------------------------------------------------------------ */

  --radius-xs: 7px;
  --radius-sm: 10px;
  --radius-md: 12px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --radius-2xl: 20px;
  --radius-3xl: 24px;
  --radius-pill: 999px;

  /* ---- Spacing (4px base) ----------------------------------------------- */

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 28px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-14: 56px;
  --space-16: 64px;
  --space-18: 72px;

  /* ---- Layout ----------------------------------------------------------- */

  --container-max: 1240px;
  --gutter: 32px;

  /* ---- Elevation -------------------------------------------------------- */

  --shadow-card-hover: 0 14px 34px -22px rgba(6, 17, 41, 0.45);
  --shadow-menu: 0 18px 40px -20px rgba(3, 11, 26, 0.8);

  /* ---- Motion ----------------------------------------------------------- */

  --duration-fast: 150ms;
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --ease-settle: cubic-bezier(0.16, 0.84, 0.24, 1); /* fast start, long soft stop (stats counter) */

  /* ---- Layers ----------------------------------------------------------- */

  --z-header: 100;
}

@media (max-width: 640px) {
  :root {
    --gutter: 16px;
  }
}
