/*
 * Salon Vilpas GP child: colour and layout tokens (--sv-gp-*), the single source.
 *
 * Loaded on the front end before chrome.css (handle sv-gp-child-tokens, chrome depends on it)
 * and inside the block editor canvas iframe (inc/editor-canvas-theme.php), so content boxes
 * and the Additional CSS rules keyed on html[data-theme] resolve the same values in both.
 * Dark is the default; html[data-theme="light"] overrides the colour tokens.
 */

:root {
	--sv-gp-red: #980032;
	/* White-on-fill CTAs — brand red already AAA (~8.8:1); hover darker. */
	--sv-gp-red-cta: #980032;
	--sv-gp-red-cta-hover: #7a0128;
	--sv-gp-red-cta-active: #6b0122;
	/* Token names kept (--sv-gp-blue*) so existing selectors keep working.
	   Brand red #980032 fails as text on dark (~1.6:1). Dark links stay
	   cream #f2f2f2 (AAA); current/hover use red rail + fill, not blush. */
	--sv-gp-blue: #f2f2f2;
	--sv-gp-blue-link: #f2f2f2;
	--sv-gp-blue-link-on-light: #980032;
	--sv-gp-blue-cta: #980032;
	--sv-gp-blue-cta-hover: #7a0128;
	--sv-gp-blue-cta-active: #6b0122;
	--sv-gp-gold: #96885f;
	--sv-gp-gold-cta: #61583d;
	--sv-gp-gold-cta-hover: #4f4833;
	--sv-gp-green-cta: #1e5a2a;
	--sv-gp-green-cta-hover: #174820;
	--sv-gp-pill: #980032;
	--sv-gp-dark: #2c2c2c;
	--sv-gp-black: #0d0d0d;
	--sv-gp-toolbar: #2d2d2c;
	--sv-gp-white: #fff;
	--sv-gp-bg: #2c2c2c;
	--sv-gp-surface: #0d0d0d;
	--sv-gp-surface-2: #2d2d2c;
	--sv-gp-text: #fff;
	--sv-gp-muted: #e1e1e1;
	--sv-gp-border: #6b6b6b;
	--sv-gp-input-bg: #121212;
	--sv-gp-dropdown-bg: #1a1a1a;
	--sv-gp-dropdown-border: #454545;
	--sv-gp-dropdown-hover: #242424;
	--sv-gp-header-fg: #fff;
	--sv-gp-page-body: #121212;
	--sv-gp-page-ink: #f2f2f2;
	--sv-gp-hairline: rgba(255, 255, 255, 0.08);
	--sv-gp-hairline-strong: rgba(255, 255, 255, 0.12);
	--sv-gp-focus: #fff;
	--sv-gp-focus-ring: 0 0 0 2px var(--sv-gp-black), 0 0 0 4px var(--sv-gp-focus);
	--sv-gp-admin-offset: 0px;
	--sv-gp-header-pad-top: 38px;
	--sv-gp-header-pad-bottom: 31px;
	--sv-gp-logo-h: 95px;
	--sv-gp-header-h: calc(var(--sv-gp-header-pad-top) + var(--sv-gp-logo-h) + var(--sv-gp-header-pad-bottom));
	--sv-gp-boxed: 1375px;
}

html[data-theme="dark"] {
	color-scheme: dark;
}

html[data-theme="light"] {
	color-scheme: light;
	--sv-gp-bg: #ececec;
	--sv-gp-dark: #ececec;
	--sv-gp-toolbar: #f2f2f2;
	--sv-gp-surface: #ffffff;
	--sv-gp-surface-2: #f2f2f2;
	--sv-gp-text: #2c2c2c;
	--sv-gp-muted: #4a4a4a;
	--sv-gp-border: #b8b8b8;
	--sv-gp-blue-link: #980032;
	--sv-gp-input-bg: #ffffff;
	--sv-gp-dropdown-bg: #ffffff;
	--sv-gp-dropdown-border: #b8b8b8;
	--sv-gp-dropdown-hover: #f2f2f2;
	--sv-gp-header-fg: #2c2c2c;
	--sv-gp-page-body: #ffffff;
	--sv-gp-page-ink: #2c2c2c;
	--sv-gp-hairline: rgba(0, 0, 0, 0.08);
	--sv-gp-hairline-strong: rgba(0, 0, 0, 0.14);
	--sv-gp-focus: #980032;
	--sv-gp-focus-ring: 0 0 0 2px #fff, 0 0 0 4px #980032;
}
