/* Contakt theme v2 — direction "1c Ledger", light-first. 2026-07-11.
   Source of truth: tokens/contakt.tokens.json · book: Brand Guidelines.dc.html
   Scope: COMPANY surfaces (marketing, docs, stationery, app chrome).
   Never --ct-green as text on light. Never green as a status color.
   Inside Academy tenant surfaces, tenant branding wins. */

:root {
  /* Brand core (logo colors are fixed) */
  --ct-green: #61ed6a;        /* the mark; chips; on-dark accents */
  --ct-green-mid: #2fa24b;    /* light mode: large text >=24px, icons, shapes */
  --ct-green-deep: #1e7b33;   /* light mode: body text + links (AA on white) */
  --ct-logo-ink: #231f20;     /* logo letterforms only */

  /* Neutrals — cool, light-first */
  --ct-bg: #f7f8fa;
  --ct-surface: #ffffff;
  --ct-text: #1f2328;
  --ct-text-secondary: #626a73;
  --ct-text-tertiary: #8a929c;
  --ct-hairline: #e1e4e8;
  --ct-rule: #e3e6ea;

  /* Support */
  --ct-slate: #2e3a48;        /* charts, tables, Vision icon field */

  /* Functional (success is teal — never green) */
  --ct-success: #2e7e8f;
  --ct-warning: #e39a2e;
  --ct-danger: #b3372e;

  /* Type */
  --ct-font-display: 'Space Grotesk', 'Helvetica Neue', sans-serif;
  --ct-font-text: 'IBM Plex Sans', 'Helvetica Neue', sans-serif;
  --ct-font-mono: 'IBM Plex Mono', 'SF Mono', monospace; /* every number */

  /* Shape + elevation */
  --ct-radius: 6px;
  --ct-radius-pill: 999px;
  --ct-shadow-card: 0 8px 20px rgba(31, 35, 40, 0.07);
  --ct-shadow-icon: 0 6px 14px rgba(31, 35, 40, 0.08);
}

/* Dark context (Vision app shell, video overlays) — the exception, not home */
[data-ct-theme='dark'] {
  --ct-bg: #16181b;
  --ct-surface: #1f2328;
  --ct-text: #ebedef;
  --ct-text-secondary: #9aa2ab;
  --ct-text-tertiary: #6f7780;
  --ct-hairline: #2c3138;
  --ct-rule: #2c3138;
  /* full green is text-safe on dark */
}

/* Links */
a { color: var(--ct-green-deep); }
a:hover { color: var(--ct-text); }
[data-ct-theme='dark'] a { color: var(--ct-green); }

/* The legal line — set in mono, tertiary, 10–11px */
.ct-legal-line {
  font-family: var(--ct-font-mono);
  font-size: 10.5px;
  color: var(--ct-text-tertiary);
  letter-spacing: 0.02em;
}
