/* ============================================================
   CRMove design tokens — single source (handle: crmove-tokens)
   Used by the app shell (crmove-app.css) and the theme's front CSS
   (ollie-child/assets/css/front.css). Brand indigo #5344F4 (logo).
   Light by default; dark when <html data-theme="dark"> (crmove-theme-toggle.js).
   ============================================================ */

:root {
	--cr-accent:        #5344F4;
	--cr-accent-hover:  #4335D6;
	--cr-accent-subtle: #EEECFF;
	--cr-bg:            #F6F7FB;
	--cr-bg-page:       #FFFFFF;
	--cr-surface:       #FFFFFF;
	--cr-border:        #E3E3F0;
	--cr-border-strong: #CBCBE0;
	--cr-text:          #1E1E26;
	--cr-text-muted:    #545473;
	--cr-success:       #16A34A;

	/* Always dark (header, sidebar, dark bands): identical in both modes. */
	--cr-side-bg:       #12111C;
	--cr-side-card:     #1C1A2B;
	--cr-side-line:     #2A2840;
	--cr-side-text:     #A3A3BF;
	--cr-side-on:       rgba(139, 128, 255, 0.18);
	--cr-side-accent:   #A79FFF;
	--cr-band:          linear-gradient(160deg, #1B1640 0%, #2C2480 55%, #5344F4 100%);

	--cr-radius:        14px;
	--cr-radius-sm:     9px;
	--cr-container:     1180px;
}

:root[data-theme="dark"] {
	--cr-accent:        #8B80FF;
	--cr-accent-hover:  #A79FFF;
	--cr-accent-subtle: #221F3D;
	--cr-bg:            #0C0B14;
	--cr-bg-page:       #0C0B14;
	--cr-surface:       #16141F;
	--cr-border:        #2A2840;
	--cr-border-strong: #3B3858;
	--cr-text:          #E8E8F2;
	--cr-text-muted:    #9C9CB8;
	--cr-success:       #4ADE80;
}

/* Theme toggle icon shows the target: moon in light mode, sun in dark mode. */
#crmove-theme-toggle .icon-sun,
:root[data-theme="dark"] #crmove-theme-toggle .icon-moon {
	display: none;
}

:root[data-theme="dark"] #crmove-theme-toggle .icon-sun {
	display: block;
}
