/*
 * Section colour schemes (includes/elementor/class-scheme.php): a container marked .pt-scheme-dark is a dark scope,
 * like dark mode for that section. Every colour here is a Kit global (Site Settings > Global Colors); no values.
 *
 * Inside a dark scope each light-role global points at its on-dark global, so anything that uses the globals (native
 * widgets, the Kit's text and link colours, the Pippin widgets) flips on its own:
 *   Text -> Text- On Dark                 Text- Muted -> Text- On Dark (Muted)
 *   Subheading -> Subheading- On Dark     Link / Link- Hover -> Link- On Dark / Link- On Dark (Hover)
 *   Border -> Border- On Dark             Surface / Surface- Alt -> Surface- On Dark / Surface- On Dark (Alt)
 * Fills (Primary, Secondary, Accent, the brand steps, buttons) are left alone.
 *
 * A light scope inside a dark one points them back at the light globals, captured on <body> (where the Kit defines them)
 * before any scope changes them.
 *
 * For widget CSS: use the globals (or the --section-* roles below), never a colour value. A custom property takes its
 * value where it's declared, so a widget's own aliases (--pt-x-text: var(--e-global-color-text)) belong on the widget's
 * root, not :root; and a light island inside a widget (pt-scheme-light on, say, a white chat card) declares the aliases
 * it uses again on itself.
 */

body {
	--pt-light-text: var(--e-global-color-text);
	--pt-light-muted: var(--e-global-color-e4427e8);
	--pt-light-subheading: var(--e-global-color-5ab0001);
	--pt-light-link: var(--e-global-color-11a0001);
	--pt-light-link-hover: var(--e-global-color-11a0002);
	--pt-light-border: var(--e-global-color-b0de001);
	--pt-light-surface: var(--e-global-color-5f0ace0);
	--pt-light-surface-alt: var(--e-global-color-5f0ace1);
}

.pt-scheme-dark {
	--e-global-color-text: var(--e-global-color-836a0d3);
	--e-global-color-e4427e8: var(--e-global-color-7d0cc00);
	--e-global-color-5ab0001: var(--e-global-color-5ab0002);
	--e-global-color-11a0001: var(--e-global-color-11a0003);
	--e-global-color-11a0002: var(--e-global-color-11a0004);
	--e-global-color-b0de001: var(--e-global-color-b0de0d1);
	--e-global-color-5f0ace0: var(--e-global-color-5f0acd0);
	--e-global-color-5f0ace1: var(--e-global-color-5f0acd1);
	color: var(--e-global-color-text);
}

.pt-scheme-light {
	--e-global-color-text: var(--pt-light-text);
	--e-global-color-e4427e8: var(--pt-light-muted);
	--e-global-color-5ab0001: var(--pt-light-subheading);
	--e-global-color-11a0001: var(--pt-light-link);
	--e-global-color-11a0002: var(--pt-light-link-hover);
	--e-global-color-b0de001: var(--pt-light-border);
	--e-global-color-5f0ace0: var(--pt-light-surface);
	--e-global-color-5f0ace1: var(--pt-light-surface-alt);
	color: var(--e-global-color-text);
}

/*
 * The Figma "Section" variables (Pippin Website (2026)), for components that want a role rather than a global.
 * Declared on every scope so they follow its globals (a custom property takes the values where it's declared).
 */
body,
.pt-scheme-light,
.pt-scheme-dark {
	--section-bg: var(--e-global-color-5ec0001);
	--section-heading: var(--e-global-color-text);
	--section-text: var(--e-global-color-text);
	--section-muted: var(--e-global-color-e4427e8);
	--section-eyebrow: var(--e-global-color-5ab0001);
	--section-link: var(--e-global-color-11a0001);
	--section-link-hover: var(--e-global-color-11a0002);
	--section-border: var(--e-global-color-b0de001);
	--section-card: var(--e-global-color-5f0ace0);
	--section-subtle: var(--e-global-color-5f0ace1);
	--section-card-tint: var(--e-global-color-5ec0003);
	--section-icon: var(--e-global-color-b8c9e53);
}
.pt-scheme-light.pt-section-alt {
	--section-bg: var(--e-global-color-5ec0002);
}
.pt-scheme-light.pt-section-tint {
	--section-bg: var(--e-global-color-5ec0003);
}
.pt-scheme-dark {
	--section-bg: var(--e-global-color-5ec0004);
	--section-card-tint: var(--e-global-color-5f0acd0);
	--section-icon: var(--e-global-color-b65e592);
}
