/* Race Car Scans: front-end styles. Colors match racecarsforyou.com's orange. */
:root {
	--rcs-accent: #f26a1b;
	--rcs-muted: #5d6068;
	--rcs-line: #d9dadf;
	--rcs-panel: #101114;
}

.rcs-viewer {
	margin: 0 0 1.5em;
	background: var(--rcs-panel);
	border-radius: 6px;
	overflow: hidden;
	position: relative;
}
.rcs-viewer canvas {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	height: auto;
	cursor: grab;
	touch-action: none;
}
.rcs-viewer[style*="height"] canvas { aspect-ratio: auto; height: 100%; }
.rcs-viewer figcaption {
	position: absolute;
	left: 12px;
	bottom: 10px;
	margin: 0;
	font: 11px/1.3 ui-monospace, Consolas, monospace;
	color: #8a8e96;
}
.rcs-viewer--loading::after {
	content: "Loading 3D model…";
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	color: #a3a8b1;
	font-size: 14px;
}
.rcs-viewer--error canvas { opacity: .2; }
.rcs-viewer--error figcaption { color: #ffb38a; }

.rcs-h {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--rcs-muted);
	margin: 1.6em 0 .6em;
}

.rcs-details table { width: 100%; border-collapse: collapse; font-size: 15px; }
.rcs-details th, .rcs-details td { text-align: left; padding: 8px 0; vertical-align: top; border-top: 1px solid var(--rcs-line); }
.rcs-details tr:first-child th, .rcs-details tr:first-child td { border-top: 0; }
.rcs-details th { font-weight: 500; color: var(--rcs-muted); width: 40%; }

.rcs-related ul { list-style: none; margin: 0; padding: 0; }
.rcs-related li { padding: 6px 0; border-top: 1px solid var(--rcs-line); }
.rcs-related li:first-child { border-top: 0; }
.rcs-related li span { color: var(--rcs-muted); font-size: 13px; margin-left: 6px; }

.rcs-meta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.rcs-badge {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	background: #fde6d6;
	color: #b8490a;
	border-radius: 3px;
	padding: 3px 8px;
}
.rcs-car { color: var(--rcs-muted); font-size: 14px; }

.rcs-rcfy {
	margin: 1.6em 0;
	padding: 14px 16px;
	border: 1px solid var(--rcs-line);
	border-left: 3px solid var(--rcs-accent);
	border-radius: 6px;
	font-size: 15px;
}
.rcs-rcfy a { color: #b8490a; font-weight: 600; }

/* Buttons */
.rcs-btn {
	display: inline-block;
	background: var(--rcs-accent);
	color: #1a0d04 !important;
	border: 0;
	border-radius: 5px;
	padding: 11px 18px;
	font-weight: 700;
	font-size: 14px;
	letter-spacing: .04em;
	text-transform: uppercase;
	text-decoration: none !important;
	cursor: pointer;
}
.rcs-btn:hover { filter: brightness(1.08); }
.rcs-btn--ghost { background: transparent; color: inherit !important; border: 1px solid var(--rcs-line); }

/* Free download box */
.rcs-download { margin: 1.4em 0; padding: 16px 18px; border: 1px solid var(--rcs-line); border-radius: 6px; }
.rcs-download__head { display: flex; gap: 12px; align-items: baseline; margin-bottom: 8px; }
.rcs-free { font-size: 22px; font-weight: 800; font-style: italic; color: #1e8a4c; }
.rcs-count { color: var(--rcs-muted); font-size: 13px; }
.rcs-files { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rcs-file { color: var(--rcs-muted); font-size: 13px; margin-left: 8px; word-break: break-all; }
.rcs-download__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.rcs-license { color: var(--rcs-muted); font-size: 14px; }

/* Upload form */
.rcs-upload { display: grid; gap: 4px; max-width: 760px; }
.rcs-upload label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.rcs-upload input[type=text], .rcs-upload select, .rcs-upload textarea { width: 100%; box-sizing: border-box; }
.rcs-upload .rcs-check, .rcs-kind label { display: inline-flex; gap: 6px; align-items: center; font-weight: 500; margin-right: 16px; }
.rcs-kind { border: 0; padding: 0; margin: 0 0 8px; }
.rcs-kind legend { font-weight: 700; margin-bottom: 6px; }
.rcs-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
@media (max-width: 640px) { .rcs-cols { grid-template-columns: 1fr; } }
.rcs-hint { display: block; color: var(--rcs-muted); font-size: 12px; margin-top: 4px; }
.rcs-more { margin: 8px 0; }
.rcs-more summary { cursor: pointer; font-weight: 600; }
.rcs-notice { padding: 12px 16px; border-radius: 6px; margin-bottom: 16px; }
.rcs-notice ul { margin: 0; padding-left: 18px; }
.rcs-notice--ok { background: #dcf2e5; color: #145c33; }
.rcs-notice--error { background: #fde6d6; color: #8a3507; }
