/* TIPR Admin design tokens. Dark theme only.
   Colours, type and shape follow tipr.bet (tipr-web docs/STYLE-GUIDE.md and app/globals.css
   tipr-* tokens; Duncan, 2 Nov 2026 3:12pm AWST: adopt the website's standards). */

/* Basis Grotesque Pro, the tipr.bet face (tipr-web public/fonts). Served from public/fonts. */
@font-face {
  font-family: "Basis Grotesque Pro";
  src: url("/fonts/FontsFree-Net-BasisGrotesquePro-Regular.ttf") format("truetype");
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Basis Grotesque Pro";
  src: url("/fonts/FontsFree-Net-BasisGrotesquePro-Bold.ttf") format("truetype");
  font-weight: 600 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Colour: surfaces (tipr.bet: --tipr-bg, -bg-deep, -surface, -surface-muted) */
  --bg: #152728;        /* page, inputs */
  --s1: #262e31;        /* panels, rail, cards */
  --s2: #2d3639;        /* raised */
  --s3: #353d40;        /* hover, selected */
  --line: rgba(255,255,255,.08); /* 1px borders, gridlines (tipr.bet divider) */
  /* Colour: text (checked AA: --fa is 6.57:1 on s1, 6.06:1 on s2, 5.57:1 on s3) */
  --tx: #f8f8f8;
  --mu: rgba(248,248,248,.72);
  --fa: rgba(248,248,248,.66);
  /* Colour: accent + status */
  --lime: #c8f808;      /* brand lime: primary action, focus, active nav. Sparingly. */
  --lime-gradient: linear-gradient(90deg, #cfff0b 0%, #8eda06 100%); /* the ONE primary button style */
  --lime-ink: #152728;  /* text on lime, 12.5:1 */
  --accent: #b9a2ff;    /* violet: selection, marks */
  --control: rgba(255,255,255,.09);       /* secondary pill (tipr.bet white/9) */
  --control-hover: rgba(255,255,255,.12);
  --teal: #5ED3C3;      /* chart series only */
  --peri: #9DB0FF;      /* chart series only */
  --amber: #FFB86B;     /* warnings, internal notes, day 10+ */
  --win: #4ade80;       /* tipr.bet up; always with a text label */
  --loss: #f87171;      /* tipr.bet down; destructive outline, day 13+ */
  --focus-ring: 0 0 0 3px rgba(200,248,8,.18);

  /* Type */
  --font-ui: "Basis Grotesque Pro", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-heading: var(--font-ui); /* headings: Basis bold (tipr.bet retired Monument Extended) */
  --font-display: "Monument Extended", "Archivo", var(--font-ui); /* legacy auth chip only; the shell wordmark is SVG */
  --fs-12: 12px; --fs-13: 13px; --fs-14: 14px; --fs-16: 16px;
  --fs-20: 20px; --fs-26: 26px; --fs-32: 32px;
  --fs-axis: 11px;
  --lh-tight: 1.2; --lh-body: 1.5;
  --fw-regular: 400; --fw-medium: 500; --fw-bold: 700; --fw-heavy: 800;
  /* numbers: font-variant-numeric: tabular-nums */

  /* Spacing */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-6: 24px; --sp-8: 32px;

  /* Radius */
  /* tipr.bet shape rule: a single-line tappable (button, chip, segmented control) is a pill;
     information tablets and inputs stay 8px; cards 12px. */
  --r-control: 8px; --r-card: 12px; --r-modal: 16px; --r-pill: 999px;
  --r-btn: var(--r-pill); --r-chip: var(--r-pill);

  /* Elevation: borders by default; shadows only for floating things */
  --shadow-menu: 0 18px 40px rgba(0,0,0,.55);   /* menus, lifted widgets */
  --shadow-modal: 0 24px 64px rgba(0,0,0,.5);   /* modals, drawers */
  --glow-lime: 0 0 12px rgba(200,248,8,.35);   /* AI thinking orb, drop ghost */

  /* Sizes */
  --btn-h: 40px; --btn-h-toolbar: 32px; --hit-min: 44px;
  --row-h: 44px; --chip-h: 28px; --icon-btn: 28px;
  --rail-w: 232px; --rail-w-collapsed: 64px; --topbar-h: 64px;
  --content-pad-x: 28px; --drawer-w: 320px; --ai-w: 400px; --ai-w-expanded: 640px;
  --grid-cols: 12; --grid-gap: 16px; --grid-row-h: 64px;

  /* Motion */
  --dur: 150ms; --ease: cubic-bezier(0,0,.2,1); /* ease-out */

  /* Chart palette (series order) */
  --chart-1: var(--lime);   /* primary, 22% area fade */
  --chart-2: var(--teal);
  --chart-3: var(--peri);   /* comparison series dashed */
  --chart-4: var(--amber);
  --chart-win: var(--win); --chart-loss: var(--loss); /* results only */
  --chart-grid: var(--line); --chart-axis: var(--fa);
  --chart-area-opacity: .22;

  /* Flip source (always labelled) */
  --flip-bought: var(--lime); --flip-welcome: var(--teal);
  --flip-referral: var(--peri); --flip-gift: var(--amber);
  --flip-prize: #E9A6F5;   /* orchid: prize Flips (competition prizes), 28 Oct */
}
@media (prefers-reduced-motion: reduce) { :root { --dur: 0ms; } }
