/*
 * typical.wtf look for the pages built on nf-design.css: account dashboard
 * (/profile), marketplace, payment results and API docs. Their own CSS reads
 * nf-design's tokens (--bg, --fg, --line, --accent…), so pointing those at
 * the app's palette restyles them without touching their markup or scripts.
 * Load after nf-design.css and typical-base.css.
 *
 * Values are literal on purpose: the dashboard defines --text as var(--fg),
 * so --fg must not read --text back.
 *
 * A user's own theme (from their client settings, applied by nf-core.js and
 * theme_sync_script) still overrides these on <html>, as before.
 */
:root {
  --bg: #0a0a0a;
  --bg-2: #121212;
  --bg-3: #161616;
  --bg-4: #1f1f1f;

  --fg: #ffffff;
  --fg-2: #d0d0d0;
  --fg-3: #8a8a8a;

  --line: #222222;
  --line-2: #1f1f1f;

  /* the app highlights with light grey, not a hue; text on it is dark */
  --accent: #ededed;
  --accent-soft: rgb(255 255 255 / 0.08);
  --accent-2: #ffffff;
  --accent-deep: #d8d8d8;
  --accent-ink: #0a0a0a;

  --sans: 'Inter', 'Segoe UI Variable Text', 'Segoe UI', system-ui, sans-serif;
  --serif: var(--sans);
  --mono: 'JetBrains Mono', 'Cascadia Mono', Consolas, monospace;

  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --r-2xl: 16px;

  /* depth comes from surface steps and hairlines, as in the app */
  --shadow-sm: none;
  --shadow-md: 0 8px 24px rgb(0 0 0 / 0.4);
  --shadow-lg: 0 16px 40px rgb(0 0 0 / 0.5);
  --shadow-xl: 0 24px 64px rgb(0 0 0 / 0.55);
}

body.nf-page {
  /* nf-design and the marketplace reserve 52px for their old fixed nav bar;
     the shared header is sticky and takes its own space. !important answers
     the marketplace's own !important rule. */
  padding-top: 0 !important;
  background: var(--bg);
  font-family: var(--sans);
  font-size: 14px;
}

/* message bell on the dashboard sits with the header actions */
.site-actions .nff-bell-wrap {
  position: relative;
}

.site-actions .nff-bell-btn {
  display: grid;
  place-items: center;
  width: var(--control-h);
  height: var(--control-h);
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--bg-panel);
  color: var(--text-muted);
  font-size: 13px;
  cursor: pointer;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.site-actions .nff-bell-btn:hover {
  background: var(--bg-elevated);
  color: var(--text);
}

/* nf-design's accent button had white text; the default accent is light now */
.nf-btn-accent {
  color: var(--accent-ink);
}

/* Pages with their own copy of the old palette (--nf-* variables, e.g. the
   ban guarantee) get the app's values too. html:root outranks the page's own
   :root block, which is declared later in the document. */
html:root {
  --nf-bg-primary: #0a0a0a;
  --nf-bg-secondary: #121212;
  --nf-bg-tertiary: #161616;
  --nf-bg-raised: #1f1f1f;
  --nf-fg-primary: #ffffff;
  --nf-fg-secondary: #d0d0d0;
  --nf-fg-tertiary: #8a8a8a;
  --nf-border-primary: #222222;
  --nf-border-secondary: #1f1f1f;
  --nf-clay: #ededed;
  --nf-clay-soft: rgb(255 255 255 / 0.08);
  --nf-clay-strong: #ffffff;
  --nf-sans: 'Inter', 'Segoe UI Variable Text', 'Segoe UI', system-ui, sans-serif;
  --nf-serif: var(--nf-sans);
}
