/* =========================================================================
   Fork brand overrides — loaded after the generated assets/extra.css.

   Everything here overrides upstream's theme instead of editing the CSS
   constant inside build_site.py, so upstream can keep evolving that block
   without conflicting on every rebase. Upstream drives every custom
   component off the --bs-* tokens, so redefining the tokens re-skins the
   whole site; the handful of rules below exist only because upstream
   hardcodes a literal colour in them.

   Palette: the RiskPoint brand ramp (../riskpoint-web/src/riskpoint.css) —
   ink surfaces, one lime accent, amber/coral/green status colours.
   ========================================================================= */
:root{
  --bs-bg:#0a0e14;          /* surface-950 · ink                                  */
  --bs-elev:#12171f;        /* surface-900 · ink2                                 */
  --bs-accent:#c4f042;      /* primary-500 · brand lime — borders, marks          */
  --bs-accent-soft:#d7f46e; /* primary-300 — link + inline accent text            */
  --bs-text:#f6f4ef;        /* surface-50  · paper                                */
  --bs-dim:#8a93a0;         /* surface-400 · slate                                */
  --bs-line:#283039;        /* surface-700 · line                                 */
  --bs-red:#ff5a3c;         /* error-500   · coral                                */
  --bs-amber:#f5b042;       /* warning-500 · amber                                */
  --bs-green:#7bd88f;       /* success-500 · green                                */
}

/* Material tokens upstream sets to literals rather than to --bs-* tokens. */
[data-md-color-scheme="slate"]{
  --md-default-fg-color--lighter:#5b6573;  /* surface-500 */
  --md-code-bg-color:#12171f;              /* surface-900 */
  --md-code-fg-color:#dfe2e6;              /* surface-100 */
}

/* Header glass tint: same alpha as upstream, over the new ink. */
.md-header{background:rgba(10,14,20,.82)}

/* Rules where upstream hardcodes a status colour. Re-point them at the
   tokens (or at the matching rgba, for the 16%-alpha chip backgrounds). */
.tc-active{border-color:color-mix(in srgb,var(--bs-red) 55%,var(--md-default-fg-color--lightest))}
.run-status__badge--ok{background:rgba(123,216,143,.16)}
.run-status__badge--warn{background:rgba(245,176,66,.16)}
.sevtag.r{background:rgba(255,90,60,.16)}
.sevtag.a{background:rgba(245,176,66,.16)}
.sevtag.g{background:rgba(123,216,143,.16)}
