/* ============================================================
   deslop.media · Forecast instrument — base + layout.
   Self-contained: the needed deslop tokens are COPIED here as
   :root vars (NOT @imported from speedo-pub, which is a hot,
   read-only surface). Flat, dark-mode-native: NO gradients, NO
   shadows, NO glow. All instrument classes are .fi-* namespaced.
   Component CSS (needle / distribution / cascade / controls /
   evidence) is appended by each component agent BELOW the marked
   seam, or inlined in its own file — this file owns tokens + frame.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Inter+Tight:wght@500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* ── deslop tokens (copied from deslop-tokens.css) ─────────── */
  --color-bg: #101820;
  --color-surface: #1a2230;
  --color-border: #2a3240;
  --color-border-subtle: #1e2835;

  --color-text: #E8E6E1;
  --color-text-secondary: #8A8F98;
  --color-text-tertiary: #828a99;   /* lifted for mobile AA legibility (was #5a6070 ~2.6:1) */

  --color-volt: #CEFF00;            /* hold / signal — THE ONLY GREEN */
  --color-coral: #d9646e;           /* deny */
  --color-accent: #CEFF00;
  --color-accent-hover: #d9ff4d;

  --font-editorial: 'Inter Tight', 'Inter', -apple-system, sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;

  --fs-display: 3.5rem;
  --fs-h1: 2.5rem;
  --fs-h2: 1.75rem;
  --fs-h3: 1.25rem;
  --fs-body: 1rem;
  --fs-body-sm: 0.875rem;
  --fs-meta: 0.8125rem;     /* 13px */
  /* Legibility floor: the review mandates >=11px for all text. The two
     smallest steps are pinned at/above that floor so every class that
     inherits them clears it. */
  --fs-micro: 0.75rem;      /* 12px (was 11px) */
  --fs-tiny: 0.6875rem;     /* 11px (was 10px) */

  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  --radius-sm: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast: 0.15s;
  --dur: 0.2s;

  --max-width: 72rem;
  --content-width: 44rem;

  /* ── instrument-local semantic aliases ────────────────────── */
  --fi-hold: var(--color-volt);
  --fi-deny: var(--color-coral);
  --fi-cold: #6f8a9c;               /* cold-end neutral steel */
  --fi-warm: var(--color-volt);     /* warm-end signal */
}

/* ── reset + base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.fi-root {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-xl) var(--space-lg) var(--space-3xl);
}

/* ── shared type helpers ──────────────────────────────────────── */
.label-mono {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-secondary);
}
.editorial {
  font-family: var(--font-editorial);
  letter-spacing: -0.025em;
  font-weight: 700;
}
.fi-mono { font-family: var(--font-mono); }

/* ── section frame ────────────────────────────────────────────── */
.fi-section {
  margin-top: var(--space-2xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border-subtle);
}
.fi-section:first-of-type { border-top: 0; margin-top: var(--space-lg); }

.fi-section__label {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-sm);
}
.fi-section__title {
  font-family: var(--font-editorial);
  font-size: var(--fs-h3);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-bottom: var(--space-xs);
}
.fi-section__note {
  font-size: var(--fs-body-sm);
  color: var(--color-text-secondary);
  max-width: var(--content-width);
  margin-bottom: var(--space-md);
}

/* ── headline (#fi-headline) ──────────────────────────────────── */
#fi-headline { padding-bottom: var(--space-sm); }
.fi-hl-kicker { margin-bottom: var(--space-sm); }
.fi-hl-read {
  font-size: var(--fs-h1);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-sm);
}
/* NO-CROWN: the headline read is the heaviest pattern of a distribution,
   never a declared winner — plain text color, never volt, no glow. */
.fi-hl-heavy { color: var(--color-text); }
.fi-hl-sub {
  font-size: var(--fs-body);
  color: var(--color-text-secondary);
  max-width: var(--content-width);
  margin-bottom: var(--space-sm);
}
.fi-hl-sub b { color: var(--color-text); font-weight: 600; }
.fi-hl-stamp {
  font-size: var(--fs-micro);
  color: var(--color-text-tertiary);
  letter-spacing: 0.06em;
  text-transform: none;
}

/* ── generic flat surfaces (no shadow / no gradient) ──────────── */
.fi-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}
.fi-pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--fs-tiny);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
}
.fi-pill.is-hold { color: var(--color-volt); border-color: rgba(206,255,0,.4); }
.fi-pill.is-deny { color: var(--color-coral); border-color: rgba(217,100,110,.4); }
.fi-pill.is-prior { color: var(--color-text-tertiary); }

/* ── disclosure / honesty banner ──────────────────────────────── */
.fi-disclosure {
  font-size: var(--fs-body-sm);
  color: var(--color-text-secondary);
  border-left: 2px solid var(--color-coral);
  padding-left: var(--space-md);
  margin: var(--space-md) 0;
  max-width: var(--content-width);
}
.fi-disclosure b { color: var(--color-text); }

/* ── component mount points: give each a min-height so an empty
     stub still occupies space and the page reads as scaffolded.
     Components replace this with their own rendered content. ──── */
#fi-needle, #fi-dist, #fi-cascade, #fi-controls, #fi-evidence {
  min-height: 2rem;
}

/* layout grid for the upper instrument (needle + distribution side
   by side on wide screens, stacked on narrow). Components own their
   internals; this just sizes the slots. */
.fi-instrument-top {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: var(--space-xl);
  align-items: start;
}
@media (max-width: 860px) {
  .fi-instrument-top { grid-template-columns: 1fr; }
  .fi-root { padding: var(--space-lg) var(--space-md) var(--space-2xl); }
}

/* reduced-motion: components should honor this; declared here so the
   token exists for them. */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ============================================================
   COMPONENT-CSS SEAM — component agents append their .fi-*
   styles below this line (or ship their own file). Keep the
   token + frame block above untouched.
   ============================================================ */
