/* LearnIndex Skills — Start / Challenge practice quizzes. Fills the full width of the Practice panel. */

.lsk-qsets { width: 100%; max-width: none; margin-top: 14px; display: grid; gap: 16px; }

.lq-sets { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.lq-set {
	display: flex; align-items: center; gap: 14px; text-align: left; width: 100%;
	border: 2px solid var(--line-strong, #ccc); border-radius: 16px; background: var(--card); color: var(--ink);
	padding: 14px 18px; cursor: pointer; font: inherit; transition: border-color .15s, background .15s, transform .15s;
}
.lq-set:hover:not(:disabled) { transform: translateY(-1px); }
.lq-set .lq-ico { font-size: 1.9rem; line-height: 1; }
.lq-set b { display: block; font-size: 1.15rem; }
.lq-set small { display: block; color: var(--muted, inherit); opacity: .8; font-size: .86rem; font-weight: 600; }
.lq-set.is-start[aria-selected="true"] { border-color: var(--gold); background: var(--gold-soft); }
.lq-set.is-challenge[aria-selected="true"] { border-color: var(--blue); background: var(--blue-soft); }
.lq-set:disabled { cursor: not-allowed; opacity: .6; border-style: dashed; }

.lq-body { width: 100%; }
.lq-q { display: grid; gap: 16px; width: 100%; }
.lq-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.lq-top .lsk-eyebrow { margin: 0; }
.lq-prog { display: flex; gap: 6px; }
.lq-prog i { width: 28px; height: 8px; border-radius: 99px; background: var(--line); }
.lq-prog i.done { background: var(--green); }
.lq-prog i.now { background: var(--gold); }
.lq-q.is-challenge .lq-prog i.now { background: var(--blue); }
.lq-text { font-size: clamp(1.25rem, 2.4vw, 1.6rem); line-height: 1.35; margin: 0; }

.lq-pic {
	display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 18px 34px;
	background: var(--sand); border-radius: 18px; padding: 22px 16px; min-height: 120px; color: var(--ink);
}
.lq-pic-i { display: grid; justify-items: center; gap: 8px; max-width: 100%; overflow-x: auto; }
.lq-svg { width: 100%; height: auto; display: block; overflow: visible; }
.lq-cap { margin: 0; font-weight: 800; font-size: 1.05rem; text-align: center; }
.lq-big { font-size: clamp(2rem, 6vw, 3.4rem); font-weight: 900; letter-spacing: .02em; text-align: center; line-height: 1.25; font-variant-numeric: tabular-nums; }
.lq-big.is-sm { font-size: clamp(1.4rem, 3.6vw, 2.1rem); }
.lq-qm { display: inline-grid; place-items: center; min-width: 1.15em; padding: 0 .12em; border-radius: .25em; background: #8E5BD9; color: #fff; }
.lq-frac { display: inline-flex; flex-direction: column; align-items: center; vertical-align: middle; line-height: 1; margin: 0 .08em; font-size: .9em; }
.lq-frac sup, .lq-frac sub { font-size: .78em; position: static; padding: 0 .12em; }
.lq-frac sup { border-bottom: .09em solid currentColor; padding-bottom: .06em; }
.lq-frac sub { padding-top: .06em; }

.lq-table { border-collapse: collapse; font-size: 1.2rem; font-weight: 800; background: var(--card); border-radius: 12px; overflow: hidden; min-width: 240px; }
.lq-table th { background: var(--blue); color: #fff; padding: 10px 16px; font-size: .95rem; }
.lq-table td { border: 2px solid var(--line); padding: 10px 16px; text-align: center; }
.lq-table td.is-q { background: #8E5BD9; color: #fff; }

.lq-answers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.lq-answers.is-long { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lq-answer {
	display: flex; align-items: center; gap: 12px; min-height: 68px; width: 100%; text-align: left;
	border: 2px solid var(--line-strong, #ccc); border-radius: 16px; background: var(--card); color: var(--ink);
	padding: 12px 16px; font: inherit; font-weight: 800; font-size: 1.3rem; cursor: pointer; transition: border-color .15s, transform .15s, background .15s;
}
.lq-answer:hover:not(:disabled) { border-color: var(--blue); transform: translateY(-2px); }
.lq-answer:disabled { cursor: default; }
.lq-key { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--sand); font-size: .9rem; }
.lq-av { flex: 1; text-align: center; }
.lq-answers.is-long .lq-av { text-align: left; font-size: 1.05rem; }
.lq-answer.is-correct { background: var(--green-soft); border-color: var(--green); }
.lq-answer.is-correct .lq-key { background: var(--green); color: #fff; }
.lq-answer.is-wrong { background: var(--rust-soft); border-color: var(--rust); }
.lq-answer.is-wrong .lq-key { background: var(--rust); color: #fff; }

.lq-feedback { margin: 0; min-height: 1.5em; font-weight: 800; font-size: 1.1rem; display: grid; gap: 4px; }
.lq-feedback.is-good { color: var(--green-strong, var(--green)); }
.lq-feedback.is-bad { color: var(--rust); }
.lq-why { font-weight: 600; font-size: 1rem; color: var(--ink); }
.lq-ctl { display: flex; gap: 8px; flex-wrap: wrap; }
.lq-ctl [disabled] { opacity: .45; cursor: not-allowed; }

.lq-result { text-align: center; padding: 30px 20px; background: var(--sand); border-radius: 18px; display: grid; gap: 10px; justify-items: center; }
.lq-result.is-good { background: var(--green-soft); }
.lq-result h3 { font-size: 1.7rem; margin: 0; }
.lq-result p { margin: 0; max-width: 560px; }
.lq-stars { font-size: 2.4rem; letter-spacing: .1em; color: var(--line-strong, #ccc); }
.lq-stars .on { color: #F2B01E; }
.lq-stars .half { background: linear-gradient(90deg, #F2B01E 50%, var(--line-strong, #ccc) 50%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lq-small { font-size: .92rem; opacity: .85; }

.lq-hint[hidden] { display: none !important; }
.lq-hint { margin: 0; padding: 12px 16px; border-radius: 14px; background: var(--gold-soft); border: 1.5px dashed var(--gold); font-weight: 700; font-size: 1.05rem; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
.lq-hint small { margin-left: auto; font-weight: 700; font-size: .8rem; color: var(--gold); }
.lq-hint-btn:not(:disabled):hover { border-color: var(--gold); background: var(--gold-soft); }

/* Practice quizzes fill the Practice panel, which is the same width as Explanation and Explore. */
.lsk-quiz { max-width: none; }

@media (max-width: 720px) {
	.lq-answers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.lq-answers.is-long { grid-template-columns: 1fr; }
	.lq-answer { font-size: 1.15rem; min-height: 60px; }
	.lq-pic { padding: 16px 10px; }
}
@media (prefers-reduced-motion: reduce) { .lq-set, .lq-answer { transition: none; } .lq-set:hover, .lq-answer:hover { transform: none !important; } }
