:root{
  /* Brand */
  --cx-brand-deep:#1D4B3A;
  --cx-brand-forest:#2D654F;
  --cx-brand-forest-light:#4C836A;
  --cx-brand-primary:#13B97D;
  --cx-brand-primary-hover:#0EA66E;
  --cx-brand-text:#086C4B;
  --cx-brand-focus:#74D2AC;

  /* Backgrounds */
  --cx-bg-page:#F1EDE3;
  --cx-bg-page-deep:#E9E5DA;
  --cx-bg-calculator:#ECE5D8;
  --cx-bg-calculator-deep:#E5DDD0;
  --cx-bg-article:#DCE1D7;
  --cx-bg-article-deep:#D5DBD1;
  --cx-bg-elevated:#FFFDF8;
  --cx-bg-secondary:#DED8CC;

  /* Content */
  --cx-content-primary:#18221D;
  --cx-content-secondary:#4D5A53;
  --cx-content-muted:#5F6963;
  --cx-content-muted-readable:#56615A;
  --cx-content-inverse:#FFFDF8;

  /* Borders */
  --cx-border-subtle:#C8C1B3;
  --cx-border-strong:#AEA596;

  /* Data */
  --cx-data-primary:#13B97D;
  --cx-data-secondary:#587A91;
  --cx-data-tertiary:#C79A55;

  /* Results */
  --cx-result-primary-bg:#D8F1E4;
  --cx-result-primary-border:#93C8AB;
  --cx-result-primary-text:#204534;

  /* Editorial */
  --cx-editorial-accent:#C79A55;
  --cx-editorial-callout-bg:#E7DCCB;
  --cx-editorial-formula-bg:#CBD5CC;
  --cx-editorial-author-bg:#CADACF;
  --cx-editorial-faq-bg:#D3D9D0;

  /* Logo */
  --cx-logo-c-1:#19D98E;
  --cx-logo-c-2:#11BF7D;
  --cx-logo-c-3:#587A91;
  --cx-logo-c-4:#C79A55;
  --cx-logo-c-5:#0E9966;

  --cx-wordmark-1:#15C783;
  --cx-wordmark-2:#0A9C67;

  /* Status placeholders:
     Keep semantic values independently governed.
     Do not alias these to brand colors by default. */
  --cx-status-success:#2F8F63;
  --cx-status-warning:#A66A16;
  --cx-status-error:#B42318;
  --cx-status-info:#3E6F8A;
}

/* =========================================================
   LEGACY COMPATIBILITY BRIDGE — Brand System v1
   Shared legacy names resolve to semantic brand tokens while
   calculator-specific accent2/accent3 remain separately governed.
   ========================================================= */
:root{
  --bg:var(--cx-bg-page);
  --surface:var(--cx-bg-elevated);
  --surface2:var(--cx-bg-secondary);
  --panel:var(--cx-bg-calculator);
  --border:var(--cx-border-subtle);
  --line:var(--cx-border-subtle);
  --text:var(--cx-content-primary);
  --ink:var(--cx-content-primary);
  --text2:var(--cx-content-secondary);
  --muted:var(--cx-content-secondary);
  --text3:var(--cx-content-muted);
  --accent:var(--cx-brand-primary);
  --mint:var(--cx-brand-primary);
  --text-muted-readable:var(--cx-content-muted-readable);
  --accent-text:var(--cx-brand-text);
  --danger-text:var(--cx-status-error);
}
