/* TJ shared design tokens: the reference copy.
   Source: Samuel's other app, which holds the TJ design system. There is no
   shared source; this file is this app's reference copy of its token block.
   Copied: 2026-10-08
   SHA-256: 41c63e1b2dc92094ada7a5737a259b20883ad07ec7d13a306e0a6c5c8af3c4a6
   The hash covers the block below, from its first line (at column 0) to the
   end of this file, as UTF-8 with no BOM and LF line endings. The containment
   harness checks it on every run. Do not edit the block here: a change to the
   design system arrives as a new paste, with a new date and hash.
   Linked by shared/base.html only, before app.css. shared/login.html does not
   link it until step 9. */

:root {
  /* Brand constants — fixed, never themed */
  --tj-purple: #46166B;
  --tj-gold:   #C9A84C;
  --tj-white:  #FFFFFF;

  /* Purple scale */
  --purple-900: #2B0D42;   /* footer field */
  --purple-800: #38104F;
  --purple-700: #46166B;   /* brand: primary buttons, mastheads */
  --purple-600: #5A2185;   /* hover */
  --purple-100: #EDE7F3;
  --purple-50:  #F7F4FA;

  /* Gold scale */
  --gold-700: #8A6D28;     /* the only gold safe for body text on white */
  --gold-600: #A8873A;     /* large text only */
  --gold-500: #C9A84C;     /* brand: accents, rules, focus — never a button fill */
  --gold-200: #EFE1B9;
  --gold-50:  #FBF6E9;

  /* Surfaces and borders — neutrals tinted from the purple */
  --surface:          #FFFFFF;
  --surface-alt:      #F5F3F7;   /* page background */
  --surface-hover:    #FAF9FB;   /* white control on hover */
  --border:           #E1DDE6;
  --border-soft:      #EDE9F1;   /* inner dividers: table rows, panel headers */
  --border-strong:    #BEB6C7;   /* an outline that must read as interactive */
  --control-disabled: #B6AEC0;   /* disabled primary button fill */

  /* Text on white */
  --text:             #1F1B24;
  --text-muted:       #5C5661;
  --text-placeholder: #746D79;   /* 4.99:1 — passes AA */
  --text-faint:       #8C8496;   /* 3.6:1 — FAILS AA: decoration only, never information */

  /* Text on purple fields — all pass AA on their field */
  --on-purple-text:     #D5C8E0;   /* on --purple-700, 8.29:1 */
  --on-purple-muted:    #C9BBD6;   /* on --purple-700, 7.28:1 */
  --on-purple-900-text: #B9ABC7;   /* on --purple-900, 7.84:1 */

  /* Status */
  --success:     #2E6B4F;
  --success-50:  #EDF5F0;   /* tag background */
  --success-100: #D4E7DC;   /* tag border */
  --warning:     #8A6116;
  --danger:      #9B2C2C;
  --danger-50:   #FBF0F0;   /* notice background */
  --danger-100:  #F0DADA;   /* tag border */

  --focus: var(--gold-500);

  /* Shadows and overlays */
  --card-shadow:   0 1px 3px rgba(31, 27, 36, 0.08);    /* the one elevation on light pages */
  --raised-shadow: 0 2px 10px rgba(20, 6, 32, 0.22);    /* a white panel on a purple field */
  --dialog-shadow: 0 18px 50px rgba(20, 6, 32, 0.3);
  --scrim:         rgba(27, 10, 42, 0.46);              /* behind a modal */
}
