:root {
	--swd-bg: #000000;
	--swd-fg: #ffffff;
	--swd-muted: #a8a8a8;
	--swd-line: rgba(255, 255, 255, 0.18);
	--swd-surface: #0a0a0a;
	--swd-focus: #ffffff;
	--swd-btn-bg: #ffffff;
	--swd-btn-text: #000000;
	--swd-btn-hover-bg: transparent;
	--swd-btn-hover-text: #ffffff;
	--swd-btn-border: #ffffff;
}

html {
	scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

body {
	background-color: var(--swd-bg);
	color: var(--swd-fg);
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body.is-using-livecanvas {
	background-color: var(--swd-bg);
}

.swd-skip-link {
	position: absolute;
	left: -9999px;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
	z-index: 100000;
	padding: 0.75rem 1rem;
	background: var(--swd-fg);
	color: var(--swd-bg);
	font-weight: 800;
	text-decoration: none;
	border-radius: 0;
}

.swd-skip-link:focus {
	left: 1rem;
	top: 1rem;
	width: auto;
	height: auto;
}

.swd-fallback-main a {
	color: var(--swd-fg);
}

.swd-fallback-main a:hover {
	color: var(--swd-muted);
}

.swd-fallback-header {
	background: var(--swd-bg);
	border-bottom: 1px solid var(--swd-line);
}

.swd-fallback-header .navbar-brand {
	color: var(--swd-fg);
	font-weight: 900;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.swd-fallback-header .nav-link {
	color: var(--swd-muted);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-size: 0.85rem;
}

.swd-fallback-header .nav-link:hover,
.swd-fallback-header .nav-link:focus {
	color: var(--swd-fg);
}

.swd-fallback-header .navbar-toggler {
	border-color: var(--swd-fg);
	border-radius: 0;
}

.swd-fallback-header .navbar-toggler-icon {
	filter: invert(1);
}

.swd-fallback-footer {
	background: var(--swd-bg);
	border-top: 1px solid var(--swd-line);
	color: var(--swd-muted);
	font-size: 0.9rem;
}

.swd-fallback-footer a {
	color: var(--swd-fg);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-size: 0.78rem;
	text-decoration: none;
}

.swd-fallback-footer a:hover {
	color: var(--swd-muted);
}

.swd-content img {
	max-width: 100%;
	height: auto;
}

/* Bootstrap / LC buttons — black & white invert */
.swd-home .btn-primary,
.swd-shell .btn-primary,
.swd-home a.btn-primary,
.swd-shell a.btn-primary,
.btn-light {
	--bs-btn-color: var(--swd-btn-text);
	--bs-btn-bg: var(--swd-btn-bg);
	--bs-btn-border-color: var(--swd-btn-border);
	--bs-btn-hover-color: var(--swd-btn-hover-text);
	--bs-btn-hover-bg: var(--swd-btn-hover-bg);
	--bs-btn-hover-border-color: var(--swd-btn-border);
	--bs-btn-focus-shadow-rgb: 255, 255, 255;
	border-radius: 0;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.badge.bg-primary {
	background: var(--swd-fg) !important;
	color: var(--swd-bg) !important;
	border-radius: 0 !important;
}

.text-muted {
	color: var(--swd-muted) !important;
}
