/* Build Different Design System — generated from tokens.json */
:root, [data-theme="light"] {
  --bd-pink: #ff0074; /* Identity, primary insight: Pink Insight callouts, CTA buttons, process-chain arrows, timeline nodes, accent rules. White text on it is 3.8:1 — the source's pairing, below 4.5:1: keep white-on-pink to 19px+ bold or 24px+ (button labels are 14px SemiBold: flagged). */
  --bd-lime: #c6f24a; /* Highlight, numbering, progress: Lime Recommendation callouts, positive pills, lime closing pages and the secondary cover fill. Text on it is always `bd-dark` (14.1:1). */
  --bd-dark: #1a0f2e; /* Text, titles and structure on white (18.2:1); dark decision pages, process-chain nodes, the dark nav and footer. */
  --bd-orange: #ff8c42; /* Constraints and attention: Orange Constraint/Validation callouts, attention pills, the outline Vincolo tag. White text on it is 2.3:1 (source pairing, flagged): prefer `bd-dark` text or the light tint. */
  --bd-cyan: #00b2ca; /* AI, data, technology: Cyan Process/Data callouts, tech pills, the AI tag. White text on it is 2.5:1 (source pairing, flagged): prefer `bd-dark` text or the light tint. */
  --bd-white: #ffffff; /* Dominant background of interior and report pages; text on `bd-dark`, `bd-dark-elev` and the gradient. */
  --bd-ink-soft: #332b47; /* Body text on `bd-white` and `bg-elev` (13.3:1); card and table body copy. */
  --bd-ink-muted: #8a8296; /* Meta, captions, table headers, report header/footer on `bd-white`. 3.7:1 on white — the source's value, below 4.5:1 for small text: flagged, keep it to labels and meta. */
  --bd-hairline: #e3dfe8; /* Table and card dividers on white; the neutral card border. */
  --bd-dark-elev: #2a1d42; /* Elevated surface on `bd-dark`. */
  --lime-light: #f4fbdf; /* Lime Recommendation callout, light variant; `bd-dark` text on it. */
  --cyan-light: #def6fa; /* Cyan Process/Data callout, light variant; `bd-dark` text on it. */
  --orange-light: #ffeee1; /* Orange Constraint/Validation callout, light variant; `bd-dark` text on it. */
  --report-accent-studio: var(--bd-pink); /* Report Semantic Palette — document accent of the Studio Report: section-opener circle, bullets, accent rules. Ink on it: `bd-white`. */
  --report-accent-annex-a: var(--bd-lime); /* Report Semantic Palette — document accent of Annex A (Project Activation): section-opener circle, accent rules. Ink on it: `bd-dark`. */
  --report-accent-annex-b: var(--bd-cyan); /* Report Semantic Palette — document accent of Annex B (Portfolio Evaluation): section-opener circle, bullets, accent rules. Ink on it: `bd-white` (source pairing, flagged on `bd-cyan`). */
  --report-accent-annex-c: var(--bd-orange); /* Report Semantic Palette — document accent of Annex C (Connection & Engagement): section-opener circle, bullets, accent rules. Ink on it: `bd-white` (source pairing, flagged on `bd-orange`). */
  --report-accent-brief: var(--bd-pink); /* Report Semantic Palette — document accent of the Executive Brief: section-opener circle, bullets, accent rules. Ink on it: `bd-white`. */
  --report-score-critical: #e5402b; /* Report Semantic Palette — Documented Project Strength /20, band critical (0–10): score pill fill. Ink on it: `bd-white`. */
  --report-score-weak: var(--bd-orange); /* Report Semantic Palette — Documented Project Strength /20, band weak (11–12): score pill fill. Ink on it: `bd-white` (source pairing, flagged). */
  --report-score-attention: #f7d84a; /* Report Semantic Palette — Documented Project Strength /20, band attention (13): score pill fill. Ink on it: `bd-dark`. */
  --report-score-positive: #ddf3a2; /* Report Semantic Palette — Documented Project Strength /20, band positive (14–15): score pill fill. Ink on it: `bd-dark`. */
  --report-score-strong: var(--bd-lime); /* Report Semantic Palette — Documented Project Strength /20, band strong (16–20): score pill fill. Ink on it: `bd-dark`. */
  --report-clarity-high: var(--bd-cyan); /* Report Semantic Palette — Deck Clarity, value Alta: pill fill. Ink on it: `bd-white` (source pairing, flagged). */
  --report-clarity-medium: var(--cyan-light); /* Report Semantic Palette — Deck Clarity, value Media: pill fill. Ink on it: `bd-dark`. */
  --report-clarity-low: var(--bd-ink-soft); /* Report Semantic Palette — Deck Clarity, value Bassa: pill fill. Ink on it: `bd-white`. */
  --report-lifeline-focus: var(--bd-orange); /* Report Semantic Palette — Lifeline Focus Check pill. Ink on it: `bd-white` (source pairing, flagged). */
  --report-lifeline-pitch: var(--bd-cyan); /* Report Semantic Palette — Lifeline Pitch Check pill. Ink on it: `bd-white` (source pairing, flagged). */
  --report-lifeline-reality: var(--bd-lime); /* Report Semantic Palette — Lifeline Reality Check pill. Ink on it: `bd-dark`. */
  --report-status-documented: var(--bd-lime); /* Report Semantic Palette — evidence status Documentato: status pill fill. Ink on it: `bd-dark`. */
  --report-status-not-measured: var(--cyan-light); /* Report Semantic Palette — evidence status Non misurato: status pill fill, 1px `bd-cyan` border. Ink on it: `bd-dark`. */
  --report-status-not-determinable: var(--orange-light); /* Report Semantic Palette — evidence status Non determinabile: status pill fill, 1px `bd-orange` border. Ink on it: `bd-dark`. */
  --report-status-not-documented: var(--bd-ink-soft); /* Report Semantic Palette — evidence status Non documentato: status pill fill. Ink on it: `bd-white`. */
  --report-level-title: #c2560f; /* Report Semantic Palette — orange hierarchy, strong: level-card titles, tags and callout labels on `orange-light`. */
  --report-level-subtitle: #f2a06b; /* Report Semantic Palette — orange hierarchy, soft: uppercase level-card subtitles on `bd-white`. Below 4.5:1: labels only (flagged). */
  --report-ink-cyan: #00889b; /* Report Semantic Palette — cyan text on `bd-white`: titles of use / orientation cards. */
  --report-highlight-lime: #eaf7c2; /* Report Semantic Palette — lime highlight behind inline project names in running text. Ink on it: `bd-dark`. */
  --bg: var(--bd-white); /* Page background. Light: interior/report pages. Dark: covers, chapter openers, dark structural sections — never interior report pages. */
  --bg-elev: #f5f3f8; /* Raised or grouped surface: the ground behind card grids and A4 page previews. */
  --bg-soft: #fbf9fc; /* Softest tint surface. */
  --bg-inverse: var(--bd-dark); /* Inverse surface: dark cards and blocks on a light page. */
  --fg: var(--bd-dark); /* Default text on `bg` and `bg-elev` in both themes. */
  --fg-1: var(--bd-dark); /* Titles and headings on `bg`. */
  --fg-2: var(--bd-ink-soft); /* Secondary text, subtitles, small body on `bg` (light 13.3:1, dark 10.6:1). */
  --fg-3: var(--bd-ink-muted); /* Captions and meta on `bg`. 3.7:1 on white and 5.0:1 on `bd-dark` — light value flagged, labels only. */
  --fg-on-dark: var(--bd-white); /* Text on `bd-dark`, pink, cyan and orange fills and on the gradient. */
  --accent: var(--bd-pink); /* Primary action and active state. */
  --accent-hover: #d6005f; /* Hover on `accent` fills. */
  --accent-press: #b30050; /* Pressed `accent` fills. */
  --accent-soft: #ffe3ef; /* Pink Insight light callout and the Insight tag; `bd-dark` text on it. */
  --signal-ai: var(--bd-cyan); /* AI / data / technology signal. */
  --signal-progress: var(--bd-lime); /* Progress and recommendation signal. */
  --signal-constraint: var(--bd-orange); /* Constraint / attention signal — not an error state. */
  --border: var(--bd-hairline); /* Hairline dividers and neutral card borders. */
  --border-strong: var(--bd-dark); /* Strong rules: table header rule, input borders, section rules. */
  --border-accent: var(--bd-pink); /* Accent rules and the top edge of dark cover cards. */
  --focus-ring: var(--bd-pink); /* Keyboard focus and the input focus halo. */
  --selection-bg: var(--bd-pink); /* Text selection background. */
  --selection-fg: var(--bd-white); /* Text selection color. */
  --shadow-0: none; /* Default — no elevation. */
  --shadow-1: 0 1px 0 rgba(26, 15, 46, 0.06); /* Hairline lift under sticky bars. */
  --shadow-2: 0 8px 24px -12px rgba(26, 15, 46, 0.18); /* Overlays only. */
  --shadow-focus: 0 0 0 3px rgba(255, 0, 116, 0.25); /* Focus halo on inputs. */
}
[data-theme="dark"] {
  --report-accent-studio: var(--bd-pink);
  --report-accent-annex-a: var(--bd-lime);
  --report-accent-annex-b: var(--bd-cyan);
  --report-accent-annex-c: var(--bd-orange);
  --report-accent-brief: var(--bd-pink);
  --report-score-weak: var(--bd-orange);
  --report-score-strong: var(--bd-lime);
  --report-clarity-high: var(--bd-cyan);
  --report-clarity-medium: var(--cyan-light);
  --report-clarity-low: var(--bd-ink-soft);
  --report-lifeline-focus: var(--bd-orange);
  --report-lifeline-pitch: var(--bd-cyan);
  --report-lifeline-reality: var(--bd-lime);
  --report-status-documented: var(--bd-lime);
  --report-status-not-measured: var(--cyan-light);
  --report-status-not-determinable: var(--orange-light);
  --report-status-not-documented: var(--bd-ink-soft);
  --bg: var(--bd-dark);
  --bg-elev: var(--bd-dark-elev);
  --bg-soft: var(--bd-dark-elev);
  --bg-inverse: var(--bd-white);
  --fg: var(--bd-white);
  --fg-1: var(--bd-white);
  --fg-2: #c9c2d6;
  --fg-3: #8a8296;
  --fg-on-dark: var(--bd-white);
  --accent: var(--bd-pink);
  --signal-ai: var(--bd-cyan);
  --signal-progress: var(--bd-lime);
  --signal-constraint: var(--bd-orange);
  --border: #3a2e52;
  --border-strong: var(--bd-pink);
  --border-accent: var(--bd-pink);
  --focus-ring: var(--bd-pink);
  --selection-bg: var(--bd-pink);
  --selection-fg: var(--bd-white);
}
:root {
  --space-0: 0px; /* No gap. */
  --space-1: 4px; /* Hairline gaps, icon-to-label. */
  --space-2: 8px; /* Tight stacks: eyebrow to title. */
  --space-3: 12px; /* Chips, process-chain gaps, small stacks. */
  --space-4: 16px; /* Card grid gaps, chain node padding. */
  --space-5: 24px; /* Card and callout padding. */
  --space-6: 32px; /* Section rhythm on small surfaces; hr margin. */
  --space-7: 48px; /* Section padding. */
  --space-8: 64px; /* Slide padding. */
  --space-9: 96px; /* Large section spacing. */
  --space-10: 128px; /* Hero spacing. */
  --space-11: 192px; /* Cover spacing. */
  --container-xs: 640px; /* Narrow reading column. */
  --container-sm: 860px; /* Text-led pages. */
  --container-md: 1080px; /* Default content width. */
  --container-lg: 1280px; /* Wide layouts, slide width. */
  --container-xl: 1440px; /* Full layouts. */
  --radius-0: 0px; /* Default: inputs, ID chips, swatches, tables. */
  --radius-1: 2px; /* Small details. */
  --radius-2: 4px; /* Small details. */
  --radius-3: 8px; /* Small containers. */
  --radius-card: 25px; /* Cards, callouts, report boxes, process-chain nodes — softly structured. */
  --radius-button: 75px; /* Pill buttons. */
  --radius-pill: 999px; /* Tags and evaluation pills. */
  --fs-display-1: clamp(64px, 9vw, 144px); /* Display 1. */
  --fs-display-2: clamp(48px, 6.5vw, 104px); /* Display 2. */
  --fs-h1: clamp(40px, 4.5vw, 72px); /* H1. */
  --fs-h2: clamp(32px, 3.4vw, 52px); /* H2. */
  --fs-h3: clamp(24px, 2.4vw, 36px); /* H3. */
  --fs-h4: 20px; /* H4. */
  --fs-h5: 16px; /* H5. */
  --fs-body-lg: 18px; /* Lead body. */
  --fs-body: 16px; /* Body. */
  --fs-body-sm: 14px; /* Small body. */
  --fs-caption: 12px; /* Captions, eyebrows. */
  --fs-micro: 11px; /* Micro labels. */
  --lh-tight: 0.92; /* Display 1. */
  --lh-display: 1.02; /* Display 2. */
  --lh-heading: 1.06; /* H1, H2. */
  --lh-body: 1.6; /* Body copy. */
  --lh-snug: 1.35; /* H3–H5. */
  --track-display: -0.01em; /* Display sizes. */
  --track-tight: -0.005em; /* Headings. */
  --track-normal: 0; /* Body. */
  --track-wide: 0.08em; /* Captions, H5. */
  --track-eyebrow: 0.16em; /* Eyebrows. */
  --fw-light: 300; /* Supplied, not mapped to a role: do not use without a new rule. */
  --fw-regular: 400; /* Body copy. */
  --fw-semibold: 600; /* Callouts, intermediate hierarchy, buttons. */
  --fw-bold: 700; /* Winco everywhere; Manrope subtitles, labels, tables. */
  --dur-1: 120ms; /* Hover and press. */
  --dur-2: 200ms; /* Small transitions. */
  --dur-3: 320ms; /* Panels and larger moves. */
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1); /* Entrances. */
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1); /* Moves. */
  --font-display: "Winco", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --text-display-1: 700 144px/0.92 var(--font-display); /* Cover statements. Max of `fs-display-1` (clamp 64–144px). */
  --text-display-2: 700 104px/1.02 var(--font-display); /* Secondary cover statements. Max of `fs-display-2` (clamp 48–104px). */
  --text-h1: 700 72px/1.06 var(--font-display); /* Page titles. Max of `fs-h1` (clamp 40–72px). */
  --text-h2: 700 52px/1.06 var(--font-display); /* Section titles. Max of `fs-h2` (clamp 32–52px). */
  --text-h3: 700 36px/1.35 var(--font-display); /* Sub-sections. Max of `fs-h3` (clamp 24–36px). */
  --text-h4: 700 20px/1.35 var(--font-body); /* Secondary headings in Manrope Bold. */
  --text-h5: 700 16px/1.35 var(--font-body); /* Uppercase label headings. */
  --text-body-lg: 400 18px/1.6 var(--font-body); /* Lead paragraphs. */
  --text-body: 400 16px/1.6 var(--font-body); /* Body copy. */
  --text-body-sm: 400 14px/1.6 var(--font-body); /* Small body in `fg-2`. */
  --text-callout: 600 15px/1.55 var(--font-body); /* Callouts and intermediate hierarchy (SemiBold 600). */
  --text-caption: 600 12px/1.4 var(--font-body); /* Captions in `fg-3`. */
  --text-eyebrow: 700 12px/1.4 var(--font-body); /* Uppercase eyebrows and labels in `fg-2`. */
}
.display-1 {
  font-family: var(--font-display);
  font-size: 144px;
  line-height: 0.92;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.display-2 {
  font-family: var(--font-display);
  font-size: 104px;
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.h1 {
  font-family: var(--font-display);
  font-size: 72px;
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -0.005em;
}
.h2 {
  font-family: var(--font-display);
  font-size: 52px;
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -0.005em;
}
.h3 {
  font-family: var(--font-display);
  font-size: 36px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -0.005em;
}
.h4 {
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: 0;
}
.h5 {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.body-lg {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: 0;
}
.body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: 0;
}
.body-sm {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: 0;
}
.callout {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  font-weight: 600;
  letter-spacing: 0;
}
.caption {
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: 0.08em;
}
.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: 0.16em;
}
@font-face {
  font-family: "Winco";
  src: url("fonts/Winco-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("fonts/Manrope-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("fonts/Manrope-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("fonts/Manrope-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("fonts/Manrope-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
