/**
 * The plugin's own color layer: the fit bands and the AI glow.
 *
 * These are the Own tier of the standards' token contract
 * (DESIGN-TOKENS.md, rule 4): each one carries MEANING this plugin
 * invented, so none of them chains through a `--ds-*` name and no theme
 * may change one. A visitor reads "Strong" from the hue itself, and the
 * glow says "a model wrote this"; a theme that recolored either would be
 * changing what the page says, not how it looks.
 *
 * One home, because two sheets read them: fit-card.css, which loads only
 * where a fit card renders, and ai-glow.css, which loads on every page.
 * Every reference in both carries its own literal, so each sheet still
 * renders correctly on its own — this file is where a site retargets them
 * from, never a load-order dependency.
 *
 * Chrome — surfaces, hairlines, muted text, radii, spacing, type — is the
 * opposite case and lives in those sheets, bound to the Design System.
 */

:root {
	/* ── The fit bands ──────────────────────────────────────────────────
	   Ramp B, settled with the owner: gray, indigo, sky, mint for Limited,
	   Partial, Solid and Strong. A red for the low band was rejected — it
	   reads as a failure rather than as a weaker match. */

	--wfst-res-band-limited: #8b93a7;
	--wfst-res-band-partial: #6e6ef0;
	--wfst-res-band-solid: #2fa4f0;
	--wfst-res-band-strong: #3ad29a;

	/* What reads on all four, for a glyph or a tag drawn on a band. */
	--wfst-res-band-ink: #0b0d12;


	/* ── The AI glow ────────────────────────────────────────────────────
	   The three band hues the ramp shares with it, and two contrasting
	   stops at opposite ends of the loop. The gray is left out: it is the
	   ramp's "little evidence" color and says nothing here. */

	--wfst-res-glow-1: var(--wfst-res-band-partial, #6e6ef0);
	--wfst-res-glow-2: var(--wfst-res-band-solid, #2fa4f0);
	--wfst-res-glow-3: var(--wfst-res-band-strong, #3ad29a);
	--wfst-res-glow-4: #e9c74a;
	--wfst-res-glow-5: #ec4899;

	/*
	 * How much of each stop survives on the ground it is drawn over. The
	 * glow is a light behind an element, so on a dark page every stop is
	 * itself; on a light one the same colors wash out against the page and
	 * are mixed toward black, which is what keeps the palette readable
	 * rather than turning it into a pale haze.
	 */
	--wfst-res-glow-depth: 72%;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--wfst-res-glow-depth: 100%;
	}
}

:root[data-theme="dark"] {
	--wfst-res-glow-depth: 100%;
}
