/* BCW Inventory — design tokens.
   Plain CSS custom properties, no build step. The first block keeps the
   names bcw-admin's application.css already uses (--bg … --radius) with new
   values; everything after it is new. Colors come from benscardworld.com. */

/* bcw-admin copy: font URLs are bare file names, which Propshaft resolves
   from app/assets/fonts (design/tokens.css says fonts/...). */

@font-face { font-family: "Lato"; src: url("/assets/Lato-Regular-ed5505fb.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Lato"; src: url("/assets/Lato-Bold-3cf28fc1.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Lato"; src: url("/assets/Lato-Black-540da9ba.woff2") format("woff2"); font-weight: 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Big Shoulders Display"; src: url("/assets/BigShouldersDisplay-Variable-e4aa5b6d.woff2") format("woff2"); font-weight: 700 900; font-style: normal; font-display: swap; }

:root {
  /* Existing names, new values */
  --bg: #f4f5f9;            /* page background */
  --surface: #ffffff;       /* panels, tables, dialogs */
  --text: #0e1733;          /* body text: 17:1 on --surface */
  --muted: #4e5878;         /* secondary text: 7.0:1 on --surface, 6.2:1 on --bg */
  --border: #d5dae6;        /* hairlines between rows and around panels */
  --accent: #0048ff;        /* BCW royal blue: buttons, selection, focus (links use --link) */
  --accent-text: #ffffff;   /* on --accent: 6.2:1 */
  --ok: #0b7a4b;            /* found, added, listed: 5.4:1 on --surface */
  --error: #c01818;         /* not found, wrong PIN, failed: 6.2:1 on --surface */
  --radius: 8px;

  /* Brand (header and accents only) */
  --brand-navy: #021442;    /* header bar, totals panel edge */
  --brand-red: #ef0c0c;     /* active nav underline, logo world. Never small text. */
  --on-navy: #ffffff;
  --on-navy-muted: #a9b3d1; /* 8.5:1 on --brand-navy */

  /* Surfaces and lines */
  --surface-sunken: #e9ecf3;  /* table header, image placeholders, wells */
  --border-strong: #7e88a4;   /* inputs, steppers, secondary buttons: 3.5:1 on --surface */
  --accent-hover: #0039cc;
  --accent-tint: #e6edff;     /* selected row, highlighted option */
  --link: #2f55b4;          /* links: 6.8:1 on --surface, 5.8:1 on --accent-tint; 2.6:1 lighter than --text,
                               so a linked name stands apart from a plain one without relying on hue */
  --link-hover: #1f3d8f;    /* 9.9:1 on --surface */

  /* Status */
  --ok-tint: #e3f4ec;
  --warn: var(--highlight);   /* warning fill: the yellow in warning icons (a dark outline and "!" on it, like a road sign), badges and borders. Never text, never the only cue */
  --warn-line: var(--text);   /* the dark outline and "!" of warning icons, and icons on --warn: 11:1 on --warn */
  --warn-text: var(--text);   /* warning words are dark, beside the yellow icon */
  --warn-tint: #fff8d9;       /* warning rows and panels */
  --error-tint: #fde7e7;
  --highlight: #ffc21a;       /* "look here": count badges, the ADMIN pill, and the warning fill (--warn); text on it is --text or --brand-navy */
  --foil-sheen: linear-gradient(100deg, #c9f0ff, #e3d4ff 35%, #ffd6ec 65%, #d6ffe9); /* foil finish chip: a holographic sheen; text on it is --text */

  /* Rarity tags: always the word too, never color alone */
  --rarity-mythic: #ffe3d9; --rarity-mythic-ink: #9c2a00;   /* 7.0:1 */
  --rarity-rare: #fff1c2;   --rarity-rare-ink: #6e4f00;     /* 7.1:1 */
  --rarity-uncommon: #e4e9f1; --rarity-uncommon-ink: #34405a; /* 9.0:1 */

  /* Staff colors: one per person, for their initials. 1–7 are dark with white initials,
     8–12 light with navy initials; every pair is 5:1 or better. No browns. */
  --staff-1: #021442; --staff-1-ink: #ffffff;  /* navy, 17.8:1 */
  --staff-2: #0048ff; --staff-2-ink: #ffffff;  /* blue, 6.2:1 */
  --staff-3: #00796b; --staff-3-ink: #ffffff;  /* teal, 5.3:1 */
  --staff-4: #2e7d32; --staff-4-ink: #ffffff;  /* green, 5.1:1 */
  --staff-5: #6a1b9a; --staff-5-ink: #ffffff;  /* purple, 9.4:1 */
  --staff-6: #ad1457; --staff-6-ink: #ffffff;  /* magenta, 7.0:1 */
  --staff-7: #455a64; --staff-7-ink: #ffffff;  /* slate, 7.2:1 */
  --staff-8: #8ecbff; --staff-8-ink: var(--brand-navy);  /* sky, 10.3:1 */
  --staff-9: #7ee0b5; --staff-9-ink: var(--brand-navy);  /* mint, 11.2:1 */
  --staff-10: #c9b8ff; --staff-10-ink: var(--brand-navy);  /* lavender, 10.0:1 */
  --staff-11: #ffb3cf; --staff-11-ink: var(--brand-navy);  /* pink, 10.7:1 */
  --staff-12: #ffc21a; --staff-12-ink: var(--brand-navy);  /* gold, 11.0:1 */

  /* Focus */
  --focus: #0048ff;
  --focus-ring: 0 0 0 3px var(--surface), 0 0 0 6px var(--focus);

  /* Type */
  --font-sans: "Lato", "Segoe UI", system-ui, sans-serif;
  --font-display: "Big Shoulders Display", "Arial Narrow", "Segoe UI", sans-serif;
  --text-xs: 0.78rem;   /* 14px: badges, captions (never smaller) */
  --text-sm: 0.89rem;   /* 16px: secondary lines, column headers */
  --text-md: 1rem;      /* 18px: body, table cells */
  --text-lg: 1.22rem;   /* 22px: card name in a result */
  --text-xl: 1.56rem;   /* 28px: panel titles */
  --text-2xl: 2.22rem;  /* 40px: page titles, scan result headline */
  --text-money: 3.56rem;/* 64px: the sale total, buy offer totals */
  --leading: 1.4;

  /* Spacing (4px steps at the 18px root) */
  --space-1: 0.22rem;  /* 4 */
  --space-2: 0.44rem;  /* 8 */
  --space-3: 0.67rem;  /* 12 */
  --space-4: 0.89rem;  /* 16 */
  --space-5: 1.33rem;  /* 24 */
  --space-6: 1.78rem;  /* 32 */
  --space-7: 2.67rem;  /* 48 */

  /* Radii and depth */
  --radius-sm: 4px;
  --radius-lg: 12px;
  --radius-pill: 999px;
  --shadow-pop: 0 1px 2px rgba(2, 20, 66, 0.08), 0 8px 24px rgba(2, 20, 66, 0.14);

  /* Sizes */
  --control-h: 2.67rem;      /* 48px: inputs and buttons, comfortable for a quick click */
  --control-h-sm: 2.22rem;   /* 40px: inside table rows */
  --scan-h: 4rem;            /* 72px: the scan field */
}
