/* Loopbooks Design System B, tokens v1.0.0 (2026-10-23)
   Source: Brand-Study_v0.10, Direction B (locked). Same names as the platform tokens.css.
   Rules: every radius is 0 (sharp). No shadows on boxes or CTAs; --shadow-overlay is the only one, floating layers only.
   Bright green (--bright, --cta, --primary-light) is a fill or a dark-surface colour, never text on light. */
:root {

  /* color */
  --primary: #0B6B4F; /* the single action colour (AA with white text) */
  --primary-dark: #08523C; /* links, hover, brand text on light */
  --primary-light: #3AE29E; /* text/accents on dark surfaces only */
  --on-primary: #FFFFFF;
  --secondary: #06372B; /* base dark surface, headings */
  --secondary-container: #0A4A39;
  --on-secondary: #FFFFFF;
  --background: #F5F2E9; /* page canvas */
  --surface: #FFFFFF;
  --surface-muted: #ECE8DC;
  --on-surface: #0F1A16;
  --on-surface-variant: #5B6660;
  --outline: #DAD6C8;
  --outline-hover: #BFBAA6;
  --error: #F0283C;
  --error-container: #FFD3D3;
  --on-error: #FFFFFF;
  --warning: #FFAA00;
  --warning-container: #FFE08A;
  --success-ink: #065A3E; /* v0.7: text on the success wash */
  --error-strong: #C4122B; /* v0.7: negative figures, 6.1:1 on white, 5.4:1 on cream */
  --warning-ink: #663B00;
  --success-container: #CBF4DF;
  --info: #1F7BFF;
  --info-container: #D0E4FF;
  --client: #8438FF;
  --client-container: #E3D5FF;
  --source: #3D4FB3;
  --decision-surface: #FFFCF4;
  --human-surface: #FAF8F1;

  /* font */
  --font-sans: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Newsreader", Georgia, "Times New Roman", serif; /* NEW */
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-num: "Archivo", -apple-system, "Segoe UI", sans-serif; /* NEW */

  /* radius */
  --r-xs: 0;
  --r-sm: 0;
  --r-md: 0;
  --r-lg: 0;
  --r-xl: 0;
  --r-card: 0;
  --r-full: 0;
  --r-float: 0;

  /* color */
  --sidebar-ink: #C9DDD3;
  --sidebar-ink-dim: #8FB0A1;
  --on-secondary-soft: #DDEAE2;
  --alert: #FF6A5E;
  --skeleton-hi: #F0EDE2;
  --surface-tint: #FBFAF5;
  --hover: #EFEBDD;
  --on-navy-line: rgba(255,255,255,.14);
  --cal0: #E1F6EC;
  --cal1: #A9F0D0;
  --cal2: #3AE29E;
  --cal3: #0B6B4F;
  --cal4: #06372B;
  --sev-accepted: #3AE29E;
  --sev-warning: #FFAA00;
  --sev-critical: #F0283C;
  --sev-client: #8438FF; /* client review severity */
  --sev-client-container: #E3D5FF;
  --on-primary-muted: rgba(255,255,255,.82);

  /* shadow */
  --shadow: none;
  --shadow-float: none;
  --shadow-teal: none;
  --shadow-overlay: 0 8px 24px rgba(16,24,32,.10); /* v0.7: the only shadow left, on floating layers (modal, menu) */

  /* color */
  --scrim: rgba(6,55,43,.58);
  --focus: #0B6B4F; /* NEW */
  --bright: #3AE29E; /* v0.5: the brightest green: progress, active states, logo on dark */
  --cta: #3AE29E; /* v0.5: every primary CTA */
  --on-cta: #06372B; /* v0.5: CTA label: darkest green on bright green, 7.9:1 (AAA) */
  --cta-hover: #5CEBB3; /* v0.5: CTA hover */

  /* shadow */
  --shadow-cta: none; /* v0.5: CTA glow */

  /* color */
  --error-ink: #A30F22; /* v0.6: red text on tints, 5.86:1 on --error-container */
  --info-ink: #0F4DB5; /* v0.6: blue text on tints, 5.9:1 */
  --client-ink: #5819C4; /* v0.6: violet text on tints, 6.48:1 */
  --info-on-dark: #4D9BFF; /* v0.6: blue on the dark surface, 4.69:1 */
  --client-on-dark: #B58CFF; /* v0.6: violet on the dark surface, 5.13:1 */
  --flow-run: #FFAA00; /* v0.6: "running now" in the portfolio meter (amber, 6.92:1 on circuit) */
  --flow-crit: #FF6A5E; /* v0.6: "critical" in the portfolio meter */
  --progress: #0F8A5B; /* v0.6: progress fill on light surfaces, 3:1 or better against white */
  --disabled-bg: #EBE8DD; /* v0.6: disabled controls: lighter grey, no border */
  --disabled-ink: #7C8070; /* v0.6: disabled label */
  --hairline-soft: #E8E4D6; /* v0.6: lighter row separators */

  /* motion */
  --ease: cubic-bezier(.2,.7,.2,1); /* NEW */
  --dur-fast: 100ms; /* NEW */
  --dur: 160ms; /* NEW */
  --dur-slow: 360ms; /* NEW */

  /* space */
  --s-xs: 4px;
  --s-sm: 8px;
  --s-md: 12px;
  --s-lg: 16px;
  --s-xl: 20px;
  --s-xxl: 32px;
  --gutter: 16px;
  --card-padding: 20px;
  --sidebar: 260px;
  --card-pad-lg: 22px;
  --rail-w: 76px;
  --shell-pad: 20px;

  /* color */
  --on-accent-dim: rgba(255,255,255,.82);
  --accent-veil: rgba(255,255,255,.16);

  /* aliases for the handover */
  --accent: var(--primary);
  --text: var(--on-surface);
  --text-muted: var(--on-surface-variant);
  --line: var(--outline);
  --line-soft: var(--hairline-soft);
  --dark: var(--secondary);
  --dark-2: var(--secondary-container);
  --canvas: var(--background);
}
