/* Quarkcademy simulation stage. Colours fall back to the Knowlifi accent and can be overridden by the theme. */
.qc-sim {
	--qc-sim-accent: var(--qc-accent, #e44d30);
	--qc-sim-bg: #0a0a0a;
	margin: 0 0 1.5rem;
	background: var(--qc-sim-bg);
	color: #fff;
}
.qc-sim__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 14px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
	font-size: 14px;
}
.qc-sim__title {
	font-weight: 600;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.qc-sim__actions {
	display: flex;
	gap: 8px;
	flex-shrink: 0;
}
.qc-sim .qc-sim__btn {
	padding: 6px 12px;
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 0;
	background: transparent;
	color: #fff;
	font-size: 13px;
	line-height: 1.2;
	cursor: pointer;
	transition: background 0.15s, border-color 0.15s;
}
.qc-sim .qc-sim__btn:hover,
.qc-sim .qc-sim__btn:focus-visible {
	background: var(--qc-sim-accent);
	border-color: var(--qc-sim-accent);
	color: #fff;
	outline: none;
}
.qc-sim__frame {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
}
.qc-sim--4-3 .qc-sim__frame { aspect-ratio: 4 / 3; }
.qc-sim--1-1 .qc-sim__frame { aspect-ratio: 1 / 1; }
.qc-sim--3-4 .qc-sim__frame { aspect-ratio: 3 / 4; }
.qc-sim__frame iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	background: #fff;
}

/* Phones: a wide player is too short for the simulation's own controls, so give it height. */
@media (max-width: 640px) {
	.qc-sim--16-9 .qc-sim__frame,
	.qc-sim--4-3 .qc-sim__frame { aspect-ratio: 4 / 5; }
}

/* Full screen: the frame fills what is left under the bar. */
.qc-sim:fullscreen { display: flex; flex-direction: column; }
.qc-sim:fullscreen .qc-sim__frame { flex: 1; aspect-ratio: auto; }

.qc-sim-details { margin-top: 1.5rem; }
.qc-sim-details__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 1rem; }
.qc-sim-details__chips span {
	padding: 4px 12px;
	border: 1px solid currentColor;
	font-size: 13px;
	font-weight: 500;
}
.qc-sim-details h3 { margin: 1.25rem 0 0.5rem; }
