/*--------------------------------------------------------------
 Topcoat Academy — brand tokens + base
--------------------------------------------------------------*/

:root {
	--tc-charcoal: #1f2326;
	--tc-ground: #141618;
	--tc-header: #0b0c0d;
	--tc-orange: #f26a1b;
	--tc-orange-hover: #ff7d2e;
	--tc-orange-press: #c95512;
	--tc-orange-soft: #ff8a47;
	--tc-orange-tint: #fdeee2;
	--tc-offwhite: #f7f5f2;
	--tc-cream: #f2f0ed;
	--tc-muted: #8f959a;
	--tc-meta: #c4c8cb;
	--tc-dim: #5c6166;
	--tc-border: #24282c;
	--tc-border-strong: #41464c;
	--tc-surface: #1c1f22;
	--tc-well: #1d2023;
	--tc-success: #2e7d43;
	--tc-radius: 3px;
	--tc-radius-card: 4px;
	--tc-max: 1240px;
	--tc-font-display: "Barlow Condensed", sans-serif;
	--tc-font-body: Inter, sans-serif;
}

/* Keep global chrome quiet until course/community skins own the dark composition. */
body.topcoat-course,
body.topcoat-community {
	background: var(--tc-ground);
	color: var(--tc-cream);
	font-family: var(--tc-font-body);
}

/* Course pages: blurred epoxy ambient behind the contained stage. */
body.topcoat-course {
	background-color: #08090a;
	background-image: none;
}

body.topcoat-course #page,
body.topcoat-course .site {
	position: relative;
	isolation: isolate;
	background: transparent;
}

body.topcoat-course #page::before,
body.topcoat-course .site::before {
	content: "";
	position: fixed;
	inset: -60px;
	z-index: 0;
	pointer-events: none;
	background-image: url("../img/course-ambient-epoxy.jpg");
	background-size: cover;
	background-position: center top;
	background-repeat: no-repeat;
	filter: blur(42px) saturate(1.2) brightness(0.72);
	transform: scale(1.12);
	opacity: 0.7;
}

body.topcoat-course #page::after,
body.topcoat-course .site::after {
	content: "";
	position: fixed;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background: linear-gradient(
		180deg,
		rgba(8, 9, 10, 0.35) 0%,
		rgba(8, 9, 10, 0.55) 38%,
		rgba(8, 9, 10, 0.88) 100%
	);
}

body.topcoat-course #page > *,
body.topcoat-course .site > * {
	position: relative;
	z-index: 1;
}

body.topcoat-course a,
body.topcoat-community a {
	color: var(--tc-orange);
	text-decoration: none;
}

body.topcoat-course a:hover,
body.topcoat-community a:hover {
	color: var(--tc-orange-soft);
}

/* Primary CTAs must stay white on orange (override link color above) */
body.topcoat-course a.tc-btn--primary,
body.topcoat-course a.tc-btn--primary:visited,
body.topcoat-course a.tc-btn--primary:hover,
body.topcoat-course a.tc-btn--primary:focus,
body.topcoat-academy a.tc-btn--primary,
body.topcoat-academy a.tc-btn--primary:visited,
body.topcoat-academy a.tc-btn--primary:hover,
body.topcoat-academy a.tc-btn--primary:focus {
	color: #fff !important;
}
