/* ═══════════════════════════════════════════════════════════
   OBSIDIAN — Finance niche CMS editor skin (dark terminal)
   Bloomberg-meets-terminal aesthetic: dark navy, mono fonts,
   data-color accent system.
   ═══════════════════════════════════════════════════════════
   NOTE: The finance niche uses a different variable namespace
   (--bg, --surface, --text) from the PPJ/travel niche
   (--deep, --panel, --paper). When the finance package is
   productized, replace this standalone :root block with
   @import url('../../journal/theme.css') and supply a finance-
   specific journal/theme.css in the buyer package.
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,300;0,400;0,600;1,400&family=IBM+Plex+Sans:ital,wght@0,300;0,400;0,600;1,400&display=swap');

:root {
  /* Backgrounds */
  --bg:         #0d1117;
  --panel:      #161b22;
  --panel-alt:  #1c2128;
  --border:     #30363d;

  /* Text */
  --text:       #e6edf3;
  --paper:      #e6edf3;
  --stone:      #8b949e;
  --ink:        #0d1117;

  /* Accents */
  --warm:       #58a6ff;
  --warm-light: #388bfd;
  --mist:       #30363d;
  --ash:        #21262d;

  /* Signal colors */
  --good:       #16c784;
  --warn:       #ea3943;
  --caution:    #f0b429;

  /* Typography */
  --font-ui:    'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --font-mono:  'IBM Plex Mono', 'Courier New', monospace;

  /* ── Aliases for cms.css compatibility ───────────────────
     cms.css uses the PPJ/travel variable names (--deep, --font-sans,
     --font-serif). These aliases map them to the obsidian equivalents
     so the shared CMS chrome renders correctly in the finance shell. */
  --deep:       #0d1117;          /* maps to --bg for cms.css body background */
  --font-sans:  var(--font-ui);   /* maps to cms.css font-family references */
  --font-serif: var(--font-mono); /* heading font alias */
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
}

/* Monospaced slugs, field hints, and code-like labels */
#meta-slug,
.field-hint,
.ticker-field,
.module-type-badge {
  font-family: var(--font-mono);
}

/* Module type badges in the module list */
.mod-type {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  color: var(--warm);
}

/* Accent override: all gold references → blue */
a { color: var(--warm); }
a:hover { color: var(--warm-light); }
