/* LLQP Exam Pro — front end (quizzes inside Tutor LMS, result panels, shortcodes).
   Colours come from the settings as CSS custom properties (--llqp-primary, --llqp-accent, --llqp-hint). */

.llqp-qx, .llqp-result, .llqp-review-expl, .llqp-dash, .llqp-demo {
	--llqp-ink: #14132b;
	--llqp-muted: #5f6178;
	--llqp-line: #e4e3f1;
	--llqp-soft: #f6f6fd;
	--llqp-ok: #12805c;
	--llqp-ok-soft: #e7f6ef;
	--llqp-ko: #c2255c;
	--llqp-ko-soft: #fdecf2;
	font-family: inherit;
	color: var(--llqp-ink);
	box-sizing: border-box;
}
.llqp-qx *, .llqp-result *, .llqp-dash *, .llqp-demo * {
	box-sizing: border-box;
}

/* ---------- badges (stored in the question description, rendered by Tutor under the title) */
.llqp-badges {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 6px;
	vertical-align: middle;
}
.llqp-badge {
	display: inline-block;
	padding: 2px 9px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.6;
	letter-spacing: 0.01em;
	background: #eeedfd;
	color: var(--llqp-primary, #5956e9);
	border: 1px solid rgba(89, 86, 233, 0.18);
	white-space: nowrap;
}
.llqp-badge.llqp-lv-con { background: #eef6ff; color: #1c6fc4; border-color: rgba(28, 111, 196, 0.2); }
.llqp-badge.llqp-lv-comp { background: #f3eefe; color: #6d3fd6; border-color: rgba(109, 63, 214, 0.2); }
.llqp-badge.llqp-lv-app { background: #fff4e5; color: #a65a00; border-color: rgba(166, 90, 0, 0.2); }
.llqp-badge.llqp-comp { background: #fff; color: var(--llqp-ink, #14132b); border-color: #d9d8ea; font-weight: 500; }
.llqp-badge.llqp-mod { background: var(--llqp-primary, #5956e9); color: #fff; border-color: transparent; }

/* ---------- hint, 50/50 and instant feedback under a question */
.llqp-qx {
	margin: 16px 0 4px;
	display: grid;
	gap: 10px;
}
.llqp-hint {
	border: 1px solid #f7d58f;
	background: #fffaf0;
	border: 1px solid color-mix(in srgb, var(--llqp-hint, #f4b740) 55%, #fff);
	background: color-mix(in srgb, var(--llqp-hint, #f4b740) 10%, #fff);
	border-radius: 12px;
	padding: 0;
}
.llqp-hint > summary, .llqp-fifty > summary {
	cursor: pointer;
	list-style: none;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 14px;
	font-weight: 600;
	font-size: 15px;
	color: #6b4b00;
}
.llqp-hint > summary::-webkit-details-marker, .llqp-fifty > summary::-webkit-details-marker {
	display: none;
}
.llqp-hint > summary::after, .llqp-fifty > summary::after {
	content: "+";
	margin-left: auto;
	font-weight: 700;
	opacity: 0.6;
}
.llqp-hint[open] > summary::after, .llqp-fifty[open] > summary::after {
	content: "\2212";
}
.llqp-hint-ico {
	display: inline-grid;
	place-items: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--llqp-hint, #f4b740);
	color: #3d2a00;
	font-size: 13px;
	font-weight: 800;
}
.llqp-hint-body {
	padding: 0 14px 12px;
	font-size: 15px;
	line-height: 1.55;
}
.llqp-hint-body > p {
	margin: 0 0 10px;
}
.llqp-fifty {
	border-top: 1px dashed #f7d58f;
	border-top: 1px dashed color-mix(in srgb, var(--llqp-hint, #f4b740) 60%, #fff);
	margin: 0 -14px -12px;
}
.llqp-fifty > summary {
	font-size: 14px;
	color: #6b4b00;
}
.llqp-fifty-msg {
	margin: 0;
	padding: 0 14px 12px;
	font-size: 14px;
	color: var(--llqp-muted, #5f6178);
}
.llqp-fifty-msg:empty {
	display: none;
}
.llqp-opt-removed, .llqp-opt-removed * {
	opacity: 0.45;
	text-decoration: line-through;
	pointer-events: none;
}
.llqp-opt-correct > .tutor-card, .tutor-quiz-question-option.llqp-opt-correct, .llqp-demo-opt.llqp-opt-correct {
	border-color: var(--llqp-ok, #12805c) !important;
	background: var(--llqp-ok-soft, #e7f6ef) !important;
	box-shadow: 0 0 0 1px var(--llqp-ok, #12805c);
}
.llqp-opt-wrong > .tutor-card, .tutor-quiz-question-option.llqp-opt-wrong, .llqp-demo-opt.llqp-opt-wrong {
	border-color: var(--llqp-ko, #c2255c) !important;
	background: var(--llqp-ko-soft, #fdecf2) !important;
	box-shadow: 0 0 0 1px var(--llqp-ko, #c2255c);
}
.llqp-locked input[disabled] + label, .llqp-locked input[disabled] {
	cursor: default;
}
.llqp-feedback {
	border-radius: 12px;
	border: 1px solid var(--llqp-line, #e4e3f1);
	background: #fff;
	padding: 12px 16px;
	font-size: 15px;
	line-height: 1.6;
}
.llqp-feedback p {
	margin: 0 0 6px;
}
.llqp-verdict {
	font-weight: 700;
	font-size: 16px;
}
.llqp-verdict.is-ok { color: var(--llqp-ok, #12805c); }
.llqp-verdict.is-ko { color: var(--llqp-ko, #c2255c); }
.llqp-answer {
	font-weight: 600;
}
.llqp-expl strong:first-child, .llqp-review-expl > strong:first-child {
	display: block;
	text-transform: uppercase;
	font-size: 12px;
	letter-spacing: 0.06em;
	color: var(--llqp-primary, #5956e9);
	margin-bottom: 2px;
}

/* ---------- explanation on review screens */
.llqp-review-expl {
	margin: 10px 0 18px;
	padding: 12px 16px;
	border-left: 4px solid var(--llqp-primary, #5956e9);
	background: var(--llqp-soft, #f6f6fd);
	border-radius: 0 10px 10px 0;
	font-size: 15px;
	line-height: 1.6;
}
.llqp-review-row td {
	padding-top: 0 !important;
}

/* ---------- result panel: score by competency and by module */
.llqp-result {
	max-width: 820px;
	margin: 24px auto;
	padding: 22px 24px;
	border: 1px solid var(--llqp-line, #e4e3f1);
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 6px 24px rgba(20, 19, 43, 0.06);
}
.llqp-result-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 14px;
}
.llqp-result-head p {
	margin: 0;
}
.llqp-eyebrow {
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-size: 12px;
	font-weight: 700;
	color: var(--llqp-muted, #5f6178);
}
.llqp-big {
	font-size: 40px;
	font-weight: 800;
	line-height: 1.1;
	color: var(--llqp-primary, #5956e9);
}
.llqp-big.is-fail { color: var(--llqp-ko, #c2255c); }
.llqp-big.is-pass { color: var(--llqp-ok, #12805c); }
.llqp-muted { color: var(--llqp-muted, #5f6178); }
.llqp-legend {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: var(--llqp-muted, #5f6178);
}
.llqp-legend-line {
	display: inline-block;
	width: 2px;
	height: 16px;
	background: var(--llqp-ink, #14132b);
}
.llqp-cols {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 8px 32px;
}
.llqp-col h3, .llqp-dash h3 {
	font-size: 15px;
	font-weight: 700;
	margin: 8px 0 10px;
	color: var(--llqp-ink, #14132b);
}
.llqp-bar {
	margin-bottom: 12px;
}
.llqp-bar-label {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	font-size: 14px;
	margin-bottom: 4px;
}
.llqp-bar-num {
	font-weight: 700;
	white-space: nowrap;
}
.llqp-bar-num small {
	font-weight: 500;
	color: var(--llqp-muted, #5f6178);
}
.llqp-bar-track {
	position: relative;
	height: 10px;
	border-radius: 999px;
	background: #ececf5;
}
.llqp-bar-fill {
	height: 100%;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--llqp-primary, #5956e9), var(--llqp-accent, #8b5cf6));
}
.llqp-bar.is-low .llqp-bar-fill {
	background: linear-gradient(90deg, #e8590c, var(--llqp-ko, #c2255c));
}
.llqp-bar-pass {
	position: absolute;
	top: -4px;
	bottom: -4px;
	left: 60%;
	width: 2px;
	background: var(--llqp-ink, #14132b);
	opacity: 0.75;
}
.llqp-advice {
	margin-top: 8px;
	padding: 12px 14px;
	border-radius: 12px;
	background: var(--llqp-soft, #f6f6fd);
	font-size: 15px;
}
.llqp-advice p {
	margin: 0 0 6px;
}
.llqp-advice p:last-child {
	margin-bottom: 0;
}
.llqp-chip {
	display: inline-block;
	margin: 3px 4px 0 0;
	padding: 3px 10px;
	border-radius: 999px;
	background: #fff;
	border: 1px solid #d9d8ea;
	color: var(--llqp-primary, #5956e9);
	font-weight: 600;
	font-size: 14px;
	text-decoration: none;
}
.llqp-chip:hover {
	border-color: var(--llqp-primary, #5956e9);
}
.llqp-nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin-top: 16px;
	padding-top: 14px;
	border-top: 1px solid var(--llqp-line, #e4e3f1);
}
.llqp-progress {
	flex: 1 1 240px;
	font-size: 14px;
	color: var(--llqp-muted, #5f6178);
}
.llqp-progress-track {
	margin-top: 6px;
	height: 8px;
	border-radius: 999px;
	background: #ececf5;
	overflow: hidden;
}
.llqp-progress-fill {
	height: 100%;
	background: var(--llqp-primary, #5956e9);
	border-radius: 999px;
}
.llqp-nav-links {
	display: flex;
	gap: 8px;
}

/* ---------- buttons */
.llqp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 42px;
	padding: 8px 18px;
	border: 1px solid var(--llqp-primary, #5956e9);
	border-radius: 10px;
	background: var(--llqp-primary, #5956e9);
	color: #fff !important;
	font-weight: 700;
	font-size: 15px;
	line-height: 1.2;
	text-decoration: none !important;
	cursor: pointer;
}
.llqp-btn:hover {
	filter: brightness(1.08);
}
.llqp-btn[disabled] {
	opacity: 0.45;
	cursor: not-allowed;
}
.llqp-btn-ghost {
	background: #fff;
	color: var(--llqp-primary, #5956e9) !important;
}

/* ---------- [llqp_dashboard] */
.llqp-dash {
	display: grid;
	gap: 16px;
	max-width: 860px;
}
.llqp-dash-title {
	margin: 0;
}
.llqp-dash-card {
	padding: 18px 20px;
	border: 1px solid var(--llqp-line, #e4e3f1);
	border-radius: 14px;
	background: #fff;
}
.llqp-next {
	margin: 14px 0 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}
.llqp-exams {
	list-style: none;
	margin: 0 0 10px;
	padding: 0;
}
.llqp-exams li {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 12px;
	justify-content: space-between;
	padding: 8px 0;
	border-bottom: 1px solid var(--llqp-line, #e4e3f1);
}
.llqp-exams li.is-ready strong { color: var(--llqp-ok, #12805c); }
.llqp-exams li.is-pass strong { color: #a65a00; }
.llqp-exams li.is-fail strong { color: var(--llqp-ko, #c2255c); }
.llqp-rule {
	margin: 0;
	font-weight: 600;
}

/* ---------- [llqp_demo] */
.llqp-demo {
	max-width: 760px;
	margin: 0 auto;
}
.llqp-demo-card {
	padding: 22px 24px;
	border: 1px solid var(--llqp-line, #e4e3f1);
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 6px 24px rgba(20, 19, 43, 0.06);
	display: grid;
	gap: 14px;
}
.llqp-demo-top {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: var(--llqp-muted, #5f6178);
}
.llqp-demo-top .llqp-badges {
	margin: 0;
}
.llqp-demo-q {
	margin: 0;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.5;
}
.llqp-demo-opts {
	display: grid;
	gap: 8px;
}
.llqp-demo-opt {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	width: 100%;
	padding: 12px 14px;
	border: 1px solid #d9d8ea;
	border-radius: 12px;
	background: #fff;
	color: inherit;
	font: inherit;
	font-size: 16px;
	line-height: 1.45;
	text-align: left;
	cursor: pointer;
}
.llqp-demo-opt:hover:not([disabled]) {
	border-color: var(--llqp-primary, #5956e9);
}
.llqp-demo-opt.is-picked {
	border-color: var(--llqp-primary, #5956e9);
	box-shadow: 0 0 0 1px var(--llqp-primary, #5956e9);
}
.llqp-demo-letter {
	flex: none;
	display: inline-grid;
	place-items: center;
	width: 26px;
	height: 26px;
	border-radius: 8px;
	background: var(--llqp-soft, #f6f6fd);
	font-weight: 700;
	font-size: 14px;
}
.llqp-demo-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: flex-end;
}

@media (max-width: 600px) {
	.llqp-result, .llqp-demo-card {
		padding: 16px;
	}
	.llqp-big {
		font-size: 32px;
	}
	.llqp-nav-links {
		width: 100%;
	}
	.llqp-nav-links .llqp-btn {
		flex: 1;
	}
}
