/* BioSpark design tokens — v2 (docs/45 visual refinement candidate).
   One token set for both contexts (public site, authenticated application).
   Character: scientific, precise, calm, enterprise. Neutral ground, navy typography, restrained blue and green.
   Accent colour is reserved for CTA, selected state, status and small emphasis — never for large gradient surfaces.
   Compatibility: every --bs-* name from v1 is kept (values changed) so existing consumers keep working. */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('fonts/inter-latin-wght-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('fonts/inter-latin-ext-wght-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2'); }

:root {
  /* ---- colour: neutral ground ---- */
  --bs-bg: #F7F8FA;            /* page ground */
  --bs-surface: #FFFFFF;       /* cards, tables, header */
  --bs-surface-2: #F2F4F7;     /* table head, quiet fills, alternate bands */
  --bs-surface-3: #E9EDF2;     /* pressed / selected quiet fill */
  --bs-text: #0B1F3A;          /* navy ink */
  --bs-text-2: #3D4B5F;        /* secondary text */
  --bs-muted: #6B7787;         /* captions, table headers */
  --bs-border: #E3E7ED;        /* default hairline */
  --bs-border-mid: #CBD2DC;    /* inputs, secondary buttons */
  --bs-border-strong: #A9B3C1;

  /* ---- colour: brand accents (restrained) ---- */
  --bs-blue: #1D5BD6;          /* primary action, selected, links */
  --bs-blue-ink: #17479F;      /* hover / text on soft blue */
  --bs-blue-soft: #EAF1FC;
  --bs-green: #0E8A5F;         /* success / ready / completed, secondary emphasis */
  --bs-green-ink: #0A6B4A;
  --bs-green-soft: #E6F5EE;
  --bs-amber: #B45309;         /* preparing / running / needs attention */
  --bs-amber-soft: #FDF3E3;
  --bs-red: #B42318;           /* failed / danger */
  --bs-red-soft: #FCEBEA;

  /* v1 compatibility names (consumed by app.css and style.css overrides) */
  --bs-accent: var(--bs-blue);
  --bs-accent-secondary: var(--bs-green);
  --bs-accent-soft: var(--bs-blue-soft);
  --bs-danger: var(--bs-red);

  /* ---- shape ---- */
  --bs-radius-xs: 4px;
  --bs-radius-sm: 6px;
  --bs-radius: 8px;
  --bs-radius-lg: 12px;
  --bs-radius-full: 6px;       /* v1 pills collapse to a 6px corner: no pill buttons in v2 */
  --bs-shadow: none;           /* resting surfaces carry a border, not a shadow */
  --bs-shadow-menu: 0 8px 24px rgba(11, 31, 58, .10), 0 1px 2px rgba(11, 31, 58, .06);
  --bs-shadow-modal: 0 24px 64px rgba(11, 31, 58, .18);

  /* ---- layout ---- */
  --bs-container: 1200px;      /* public content width */
  --bs-container-app: 1280px;  /* application (tables need room) */
  --bs-header-height: 64px;
  --bs-gutter: 24px;

  /* ---- spacing scale (8px base) ---- */
  --bs-s1: 4px; --bs-s2: 8px; --bs-s3: 12px; --bs-s4: 16px; --bs-s5: 24px; --bs-s6: 32px; --bs-s7: 48px; --bs-s8: 64px; --bs-s9: 96px;

  /* ---- type ---- */
  --bs-font-body: 'Inter', 'Pretendard', 'Apple SD Gothic Neo', 'Noto Sans KR', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --bs-font-display: var(--bs-font-body);
  --bs-font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --bs-fs-display: 56px;  --bs-lh-display: 1.08;   /* public home H1 (56–68 range) */
  --bs-fs-h1: 48px;       --bs-lh-h1: 1.1;         /* public subpage H1 (44–56 range) */
  --bs-fs-h2: 32px;       --bs-lh-h2: 1.2;
  --bs-fs-h3: 20px;       --bs-lh-h3: 1.35;
  --bs-fs-app-title: 28px;                          /* application page title (28–36) */
  --bs-fs-body: 16px;     --bs-fs-body-sm: 14px;   --bs-fs-caption: 13px;  --bs-fs-micro: 12px;
  --bs-tracking-display: -0.025em; --bs-tracking-h: -0.015em;
  --bs-ease: cubic-bezier(.4, 0, .2, 1);

  /* global layer system (unchanged from v1) */
  --z-content: 1; --z-nav: 1000; --z-workspace-bar: 1100; --z-modal-backdrop: 5000; --z-modal: 5010; --z-popover: 5020;
}
@media (max-width: 1024px) { :root { --bs-fs-display: 48px; --bs-fs-h1: 40px; --bs-fs-h2: 28px; } }
@media (max-width: 640px)  { :root { --bs-fs-display: 36px; --bs-fs-h1: 32px; --bs-fs-h2: 24px; --bs-fs-h3: 18px; --bs-fs-app-title: 24px; --bs-gutter: 16px; } }
