/* NPAV Design Lab: design tokens.
   Visual system after the np-updated reference (2026-10-12): deep green-charcoal for authority,
   bright security green for action, mint-tinted light neutrals for reading areas. Loaded right after
   Bootstrap; every colour, font, radius and shadow used by the lab is defined here (--np-*) and
   mapped onto Bootstrap's variables. Change values here only.

   Contrast notes (WCAG 2.2 AA):
   - Primary actions on light surfaces: deep green #005E3A with white text (7.9:1, AAA).
   - On charcoal (header, hero, bands): bright green #10B36B with DARK text #04140D (6.6:1); white on
     it would be 2.7:1, and a deep fill would sink into the charcoal.
   - #0C8F55 is the mark colour (rules, icons, checked controls; white tick 4.3:1, 4.3:1 on white).
   - Green text on light surfaces uses #007447 (5.8:1); green text on charcoal uses #5FE0A8 (11:1). */
/* Fonts (owner, 2026-10-16, as the np-updated reference): Bricolage Grotesque for headings, Instrument Sans for text.
   Loaded here, so the pages' own Google Fonts link (IBM Plex Sans and Mono) need not change: Plex Mono stays for codes
   and keys, and Plex Sans stays in the stacks as the fallback for any glyph the new fonts lack. Chakra Petch is the
   reference's hero face, used only by the homepage hero slides (--np-font-hero; owner, 2026-10-16). */
@import url("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,200..800&family=Instrument+Sans:wght@400..700&family=Chakra+Petch:wght@500;600;700&display=swap");
:root {
  /* ---------- Brand ---------- */
  --np-green: #0c8f55;            /* NPAV green: marks, rules, icons, selected states */
  --np-accent: #10b36b;           /* action fill (dark text 6.6:1) */
  --np-accent-hover: #0e9e5e;     /* dark text 5.1:1 */
  --np-accent-active: #0c9254;    /* pressed (dark text 4.6:1) */
  --np-on-accent: #04140d;
  /* Deep action green for primary actions on LIGHT surfaces (.btn-primary, homepage category bar):
     white text meets WCAG AAA (7:1) in every state. The bright --np-accent stays for dark surfaces
     (header, hero, bands), where a deep fill would sink into the charcoal. */
  --np-action: var(--np-brand-800);  /* #005E3A, white text 7.9:1 */
  --np-action-hover: #004a2e;     /* white text 10:1 */
  --np-action-active: #003d26;    /* white text 11.6:1 */
  --np-on-action: #ffffff;

  /* Charcoal scale (dark, green-tinted; the names keep their roles) */
  --np-ink-950: #06130f;          /* utility bar, footer base */
  --np-ink-900: #0a1f18;          /* primary dark: header, hero, dark sections */
  --np-ink-800: #11281f;          /* secondary dark: CTA bands, dark modules */
  --np-ink-700: #1b3a2f;          /* hover fill / divider on dark */

  /* Green scale */
  --np-brand-50: #e6f6ed;
  --np-brand-100: #c8ecd9;
  --np-brand-200: #8fe3bd;        /* links on dark */
  --np-brand-500: #5fe0a8;        /* green text and icons on dark */
  --np-mint: #7df5c3;             /* highlights on dark (hero slider, bento; np-updated reference) */
  --np-brand-600: var(--np-green);
  --np-brand-700: #007447;        /* green text on light surfaces */
  --np-brand-800: #005e3a;

  /* ---------- Neutrals (green-grey) ---------- */
  --np-ink: #10231c;              /* primary text */
  --np-ink-2: #23382f;            /* strong secondary text */
  --np-muted: #4c6a5e;            /* secondary text (5.6:1 on white, 5.3:1 on mint) */
  --np-placeholder: #5f7a6d;
  --np-disabled: #9db0a6;
  --np-line: #d5e3db;             /* borders */
  --np-line-strong: #bfd2c7;
  --np-line-input: #7d9186;       /* form control borders (>= 3:1 on white) */
  --np-surface: #ffffff;
  --np-surface-alt: #f3faf6;      /* page background (mint paper) */
  --np-surface-sunk: #e6f0ea;
  --np-surface-tint: #e9f4ee;     /* quiet panels, selected rows */

  /* On dark */
  --np-on-dark: #e3f2ea;
  --np-on-dark-muted: #9fbdb0;
  --np-on-dark-subtle: #86a596;
  --np-on-dark-line: rgb(255 255 255 / 0.12);
  --np-on-dark-line-strong: rgb(255 255 255 / 0.4);
  --np-on-dark-fill: rgb(255 255 255 / 0.05);
  --np-on-dark-edge: #2f7558;     /* solid control border on charcoal (3.4:1 on #06130F) */

  /* ---------- Signals ---------- */
  --np-success-600: #137a48;
  --np-success-50: #eaf6ef;
  --np-success-200: #b7e0c8;
  --np-red-600: #b3261e;
  --np-red-50: #fcecea;
  --np-red-200: #f1c2bd;
  --np-red-ring: rgb(179 38 30 / 0.18);
  --np-amber-100: #fdf5d8;
  --np-amber-200: #ecd78d;
  --np-amber-600: #9a7300;
  --np-amber-900: #4a3700;
  --np-stone-600: #4f5b67;

  /* ---------- Typography ---------- */
  --np-font-sans: "Instrument Sans", "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --np-font-display: "Bricolage Grotesque", var(--np-font-sans);
  --np-font-hero: "Chakra Petch", var(--np-font-display);  /* homepage hero slide titles only (np-updated .hero h1) */
  --np-font-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  /* Type scale (readability standard, 2026-10-16). --np-fs-md is the medium-text role (card and item headings,
     section intros, lead paragraphs); body text, form controls, buttons and descriptions use --np-fs-body/sm/xs.
     Every reading size is 16px or more at every width; only uppercase labels (2xs) are smaller.
     Before: 2xs 12, xs 13, sm 14, md 16, lg 18, xl 20, 2xl 24-32, 3xl 28-38px; body 16px. */
  --np-fs-2xs: 0.875rem;                                       /* 14px: uppercase labels, tags, table heads */
  --np-fs-xs: 1rem;                                            /* 16px: captions, meta, form help and errors */
  --np-fs-sm: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);         /* 16-17px: supporting text, navigation, labels, buttons */
  --np-fs-body: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);       /* 16-18px: body text, form controls, descriptions */
  --np-fs-md: 1.3rem;                                          /* 20.8px: medium text (card/item headings, intros, leads) */
  --np-fs-lg: 1.375rem;                                        /* 22px: h4, card titles */
  --np-fs-xl: clamp(1.4375rem, 1.25rem + 0.75vw, 1.75rem);     /* 23-28px: h3, prices */
  --np-fs-2xl: clamp(1.625rem, 1.35rem + 0.9vw, 2rem);         /* 26-32px: section headings */
  --np-fs-3xl: clamp(1.875rem, 1.5rem + 1.3vw, 2.75rem);       /* 30-44px: page titles */
  --np-fs-hero: clamp(2rem, 4vw, 3.375rem);                    /* 32-54px: homepage hero, as the np-updated hero h1 (was 32-46px) */
  --np-lh-body: 1.6;

  /* ---------- Space ---------- */
  --np-section-y: clamp(3rem, 2.3rem + 2.4vw, 4.5rem);
  --np-gutter: clamp(1rem, 0.6rem + 1.2vw, 1.5rem);

  /* ---------- Shape & depth: restrained ---------- */
  --np-radius-xs: 4px;            /* tags */
  --np-radius-sm: 6px;            /* buttons, inputs */
  --np-radius: 8px;               /* modules, images */
  --np-radius-lg: 10px;           /* large containers */
  --np-radius-xl: 12px;
  --np-radius-pill: 999px;        /* counters and dots only */
  --np-shadow-xs: 0 1px 2px rgb(11 31 51 / 0.06);
  --np-shadow-sm: 0 2px 8px rgb(11 31 51 / 0.08);
  --np-shadow: 0 12px 32px rgb(11 31 51 / 0.16);  /* menus, dialogs */

  /* Focus: navy ring on light surfaces, green on navy, with a 2px gap in the surface colour. */
  --np-focus-color: var(--np-ink-900);
  --np-focus-color-on-dark: var(--np-brand-500);
  --np-focus-gap: var(--np-surface);
  --np-focus-ring: 0 0 0 2px var(--np-focus-gap), 0 0 0 4px var(--np-focus-color);

  /* Layout */
  --np-header-h: 4.25rem;

  /* Motion: one easing for entrances and indicators (homepage) */
  --np-ease-out: cubic-bezier(0.22, 0.7, 0.2, 1);

  /* ---------- Bootstrap mapping ---------- */
  --bs-body-font-family: var(--np-font-sans);
  --bs-body-font-size: var(--np-fs-body);
  --bs-body-color: var(--np-ink);
  --bs-body-color-rgb: 16, 35, 28;
  --bs-body-bg: var(--np-surface-alt);
  --bs-body-line-height: var(--np-lh-body);
  --bs-emphasis-color: var(--np-ink);
  --bs-secondary-color: var(--np-muted);
  --bs-secondary-rgb: 76, 106, 94;
  --bs-secondary-bg: var(--np-surface-sunk);
  --bs-tertiary-bg: var(--np-surface-alt);
  --bs-border-color: var(--np-line);
  --bs-border-radius: var(--np-radius);
  --bs-border-radius-sm: var(--np-radius-sm);
  --bs-border-radius-lg: var(--np-radius-lg);
  --bs-heading-color: var(--np-ink);
  --bs-link-color: var(--np-brand-700);
  --bs-link-color-rgb: 0, 116, 71;
  --bs-link-hover-color: var(--np-brand-800);
  --bs-link-hover-color-rgb: 0, 94, 58;
  --bs-primary: var(--np-accent);
  --bs-primary-rgb: 16, 179, 107;
  --bs-primary-text-emphasis: var(--np-brand-800);
  --bs-primary-bg-subtle: var(--np-brand-50);
  --bs-primary-border-subtle: var(--np-brand-100);
  --bs-success: var(--np-success-600);
  --bs-success-rgb: 19, 122, 72;
  --bs-success-text-emphasis: #0b4d2d;
  --bs-success-bg-subtle: var(--np-success-50);
  --bs-success-border-subtle: var(--np-success-200);
  --bs-info: var(--np-stone-600);
  --bs-info-rgb: 79, 91, 103;
  --bs-info-text-emphasis: var(--np-ink-2);
  --bs-info-bg-subtle: var(--np-surface-tint);
  --bs-info-border-subtle: var(--np-line-strong);
  --bs-warning-text-emphasis: var(--np-amber-900);
  --bs-warning-bg-subtle: var(--np-amber-100);
  --bs-warning-border-subtle: var(--np-amber-200);
  --bs-danger: var(--np-red-600);
  --bs-danger-rgb: 179, 38, 30;
  --bs-danger-text-emphasis: #6f160f;
  --bs-danger-bg-subtle: var(--np-red-50);
  --bs-danger-border-subtle: var(--np-red-200);
  --bs-dark-rgb: 10, 31, 24;
  --bs-form-invalid-color: var(--np-red-600);
  --bs-form-invalid-border-color: var(--np-red-600);
  --bs-form-valid-color: var(--np-success-600);
  --bs-form-valid-border-color: var(--np-success-600);
  --bs-focus-ring-color: rgb(10 31 24 / 0.25);
}
