/* Explorer token remap — maps radicle-explorer's --color-* / --txt-* surface
   onto the Rug Munch Media palette above. Loaded after tokens.css.
   NOTE: never write a literal asterisk-slash inside these comments; it
   terminates the comment early and silently drops the whole stylesheet. */
/* ── Explorer token remap (radicle-explorer variable surface) ── */
:root,
:root[data-theme="light"],
:root[data-theme="dark"] {
  --global-header-height: 69px;

  --color-surface-base: var(--bg-deepest);
  --color-surface-canvas: var(--bg-card);
  --color-surface-subtle: var(--bg-elevated);
  --color-surface-mid: #101014;
  --color-surface-strong: #161616;
  --color-surface-alpha-subtle: rgba(255, 255, 255, 0.045);
  --color-surface-alpha-mid: rgba(255, 255, 255, 0.07);
  --color-surface-alpha-strong: rgba(255, 255, 255, 0.11);
  --color-surface-scrim: rgba(3, 3, 3, 0.72);

  --color-border-subtle: var(--border);
  --color-border-mid: #262626;
  --color-border-strong: var(--border-strong);
  --color-border-brand: var(--border-glow-strong);
  --color-border-alpha-subtle: rgba(255, 255, 255, 0.05);
  --color-border-alpha-mid: rgba(255, 255, 255, 0.09);

  --color-brand-bg: var(--accent);
  --color-brand-hover: var(--accent-bright);
  --color-brand-text-dark: var(--text-inverse);
  --color-brand-text-light: var(--accent);
  --color-text-brand: var(--accent);
  --color-text-on-brand: var(--text-inverse);

  --color-text-primary: var(--text-primary);
  --color-text-secondary: var(--text-secondary);
  --color-text-tertiary: var(--text-tertiary);
  --color-text-quaternary: var(--text-muted);
  --color-text-disabled: rgba(255, 255, 255, 0.32);

  --color-feedback-success-text: var(--accent);
  --color-feedback-success-border: #007540;
  --color-feedback-success-bg: #04150f;
  --color-feedback-warning-text: var(--amber);
  --color-feedback-warning-border: #7a5a10;
  --color-feedback-warning-bg: #1a1200;
  --color-feedback-error-text: #ff8f8f;
  --color-feedback-error-border: #7a2a2a;
  --color-feedback-error-bg: #1c0b0b;

  --color-code-comments: #6f6f78;
  --color-code-keywords: #7fb0ff;
  --color-code-numbers: #c0b5ff;
  --color-code-strings: var(--accent-soft);
  --color-code-functions: var(--accent);
  --color-code-error: #ff8f8f;

  /* Explorer radius surface → corporate 14px family */
  --border-radius-tiny: 4px;
  --border-radius-small: 8px;
  --border-radius-regular: 10px;
  --border-radius-md: var(--radius);
  --border-radius-round: 99rem;

  --elevation-low: 0 0 0 1px var(--border), 0 12px 32px -20px #000;
  --elevation-high: 0 0 0 1px var(--border-strong), 0 28px 64px -32px #000;

  /* Explorer type ramp → corporate families */
  --txt-heading-xxs: 600 0.75rem/1rem var(--font-display);
  --txt-heading-xs: 600 0.875rem/1.25rem var(--font-display);
  --txt-heading-s: 600 1rem/1.25rem var(--font-display);
  --txt-heading-m: 600 1.125rem/1.3rem var(--font-display);
  --txt-heading-l: 600 1.375rem/1.6rem var(--font-display);
  --txt-heading-xl: 600 1.75rem/2rem var(--font-display);
  --txt-heading-xxl: 700 2rem/2.25rem var(--font-display);

  --txt-body-s-regular: 400 0.75rem/1.15rem var(--font-body);
  --txt-body-s-medium: 500 0.75rem/1.15rem var(--font-body);
  --txt-body-s-semibold: 600 0.75rem/1.15rem var(--font-body);
  --txt-body-m-regular: 400 0.875rem/1.4rem var(--font-body);
  --txt-body-m-medium: 500 0.875rem/1.4rem var(--font-body);
  --txt-body-m-semibold: 600 0.875rem/1.4rem var(--font-body);
  --txt-body-l-regular: 400 1rem/1.6rem var(--font-body);
  --txt-body-l-medium: 500 1rem/1.6rem var(--font-body);
  --txt-body-l-semibold: 600 1rem/1.6rem var(--font-body);
  --txt-code-regular: 400 0.8125rem/1.35rem var(--font-mono);

  /* Corporate type utilities used by the chrome */
  --txt-bold-32: 600 32px/40px var(--font-display);
  --txt-bold-24: 600 24px/32px var(--font-display);
  --txt-bold-18: 600 18px/24px var(--font-display);
  --txt-bold-16: 600 16px/22px var(--font-display);
  --txt-bold-14: 600 14px/20px var(--font-display);
  --txt-bold-12: 600 12px/16px var(--font-display);
  --txt-medium-16: 400 16px/24px var(--font-body);
  --txt-medium-14: 400 14px/21px var(--font-body);
  --txt-medium-12: 400 12px/18px var(--font-body);
}
