/* ============================================================
   True Light Digital · token layer (08-Design-System-TL §1)
   Loaded AFTER main.css when PROUDBRANDS_BRAND is 'tl'. main.css keeps the
   Proud Brands values untouched (that file is tokens-pb); this file is the
   whole delta. Nothing here changes method, spacing, radius, motion, type or
   components. Only the colour register.
   ============================================================ */

:root {
	/* The three exposed swatches keep their PB values. Sand, amber, gold. */
	--sw-6: #C1B49A; /* sand  */
	--sw-2: #FAAF40; /* amber */
	--sw-7: #F2C230; /* gold  */
	--sw-6-mid: #7A7260; /* 4.77 on white */
	--sw-2-mid: #9A6A1A; /* 4.85 on white; within a shade of the old --tld-gold-text #8B6914 */
	--sw-7-mid: #7C7500; /* 4.77 on white */

	/* The retired five stay defined (08 §1) but are aliased onto the True
	   Light register, so no legacy rule in main.css can paint an off-register
	   colour on a True Light surface. The lint still fails a True Light
	   template that names them. */
	--sw-1: var(--sw-6);
	--sw-3: var(--sw-7);
	--sw-4: var(--sw-2);
	--sw-5: var(--sw-6);
	--sw-8: var(--sw-2);
	--sw-1-mid: var(--sw-6-mid);
	--sw-3-mid: var(--sw-7-mid);
	--sw-4-mid: var(--sw-2-mid);
	--sw-5-mid: var(--sw-6-mid);
	--sw-8-mid: var(--sw-2-mid);

	/* Named aliases (legacy PB CSS reaches these by name). */
	--green:  var(--sw-6);
	--lime:   var(--sw-7);
	--yellow: var(--sw-7);
	--amber:  var(--sw-2);
	--flame:  var(--sw-2);
	--cyan:   var(--sw-6);
	--tan:    var(--sw-6);

	/* New aliases. */
	--accent:     var(--sw-2);      /* replaces --tld-gold */
	--accent-mid: var(--sw-2-mid);  /* replaces --tld-gold-text */
	--field:      var(--sw-6);      /* the background swatch for bands and cards */
	--field-mid:  var(--sw-6-mid);
	--mark:       var(--sw-7);      /* gold is a mark, not a colour: once per screen, never a field, never text */

	/* Stage tabs cycle three, not seven. */
	--stage-order: var(--sw-6), var(--sw-2), var(--sw-7);

	/* Three audiences, not eight sectors. */
	--sec-parish: var(--sw-6);
	--sec-church: var(--sw-2);
	--sec-org:    var(--sw-7);

	/* Paper stays the cyan-washed PB ramp: the neutrals carry both brands.
	   --off (the body ground) is derived from --sw-5 in main.css and would
	   pick up the sand alias, so it is restated as the PB paper value. */
	--off:  #F8FDFE;
	--grey: color-mix(in srgb, var(--ink) 4%, var(--white));

	/* Default card tone for the shared shadow tokens (they resolve on :root). */
	--card-tone: var(--sw-2);
	--p-tone:    var(--sw-2);

	/* Type: PB's type, ruled. The legacy PB families collapse to Biennale so
	   no surface falls back to a serif or grotesk that True Light does not load. */
	--sans:    var(--font);
	--serif:   var(--font);
	--grotesk: var(--font);
}
