/*
 * SII learning module: the few layout pieces ui.php does not cover. Colors come from the
 * app's tokens (app.css), so light and dark themes follow automatically. Class prefix: sl-.
 */

.sl-help { margin: 28px 0 0; padding: 12px 14px; border: 1px solid var(--sa-line); border-radius: var(--sa-radius-sm); background: var(--sa-surface-2); font-size: .92rem; color: var(--sa-muted); }
.sl-help a { font-weight: 600; }
.sl-help .sa-i { width: 18px; height: 18px; vertical-align: -3px; margin-right: 4px; }

/* Courses and lessons */
.sl-coursehead { display: grid; gap: 10px; margin-bottom: 18px; }
.sl-unit + .sl-unit { margin-top: 14px; }
.sl-unit h3 { font: 600 1rem/1.3 var(--sa-font); margin: 0 0 6px; color: var(--sa-muted); }
.sl-lesson { max-width: 72ch; font-size: 1.05rem; line-height: 1.7; }
.sl-lesson :where(h2, h3) { font-family: var(--sa-serif); }
.sl-prov { margin-top: 18px; font-size: .88rem; color: var(--sa-muted); }
.sl-complete { margin: 24px 0 8px; }
.sl-prevnext { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 12px; }

/* Support plan note */
.sl-acc { display: inline-flex; gap: 8px; align-items: flex-start; padding: 8px 12px; border-radius: var(--sa-radius-sm); background: var(--sa-violet-soft); font-size: .92rem; margin: 6px 0 12px; }
.sl-acc .sa-i, .sl-acc-mark .sa-i { width: 18px; height: 18px; flex: none; color: var(--sa-violet); }
.sl-acc-mark { display: inline-flex; vertical-align: -3px; }

/* Activities */
.sl-prompt { max-width: 72ch; margin-bottom: 12px; }
.sl-q { margin: 0 0 18px; }
.sl-q .sa-choice { min-height: 44px; }
.sl-timer { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid var(--sa-line-2); border-radius: var(--sa-radius-sm); background: var(--sa-gold-soft); font-weight: 600; position: sticky; top: calc(var(--sa-top-h) + 8px); z-index: 2; }
.sl-timer__left { font-variant-numeric: tabular-nums; }
.sl-results { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sl-result { padding: 12px 14px; border: 1px solid var(--sa-line); border-left-width: 4px; border-radius: var(--sa-radius-sm); }
.sl-result p { margin: 0 0 6px; }
.sl-result--ok { border-left-color: var(--sa-success); }
.sl-result--no { border-left-color: var(--sa-warning); }
.sl-explain { color: var(--sa-muted); }
.sl-score { font: 700 1.6rem/1.2 var(--sa-serif); margin: 0 0 8px; }
.sl-feedback { margin: 0; padding: 10px 14px; border-left: 3px solid var(--sa-violet); background: var(--sa-surface-2); }
.sl-work { max-width: 72ch; padding: 12px 14px; border: 1px solid var(--sa-line); border-radius: var(--sa-radius-sm); background: var(--sa-surface); }
.sl-files { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; }
.sl-files .sa-i { width: 16px; height: 16px; margin-right: 6px; vertical-align: -2px; }

/* Discussion and feed */
.sl-thread { margin: 0 0 14px; }
.sl-reply { margin: 8px 0 0 22px; }
.sl-post, .sl-feed { padding: 12px 14px; border: 1px solid var(--sa-line); border-radius: var(--sa-radius-sm); background: var(--sa-surface); }
.sl-feed + .sl-feed { margin-top: 12px; }
.sl-post--teacher { border-color: var(--sa-violet); }
.sl-post--hidden { opacity: .8; border-style: dashed; }
.sl-post__who { margin: 0 0 6px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sl-post__body p { margin: 0 0 8px; }
.sl-post__tools { margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.sl-details { margin: 6px 0; }
.sl-details > summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.sl-inline { display: inline-block; margin: 0; }
.sl-inline .sa-btn { vertical-align: middle; }

/* Grading */
.sl-bank ul { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.sl-gradecard .sa-form + form { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--sa-line); }
.sl-gradecard .sa-notice { margin-bottom: 14px; }
.sl-gradecard .sa-btn { max-width: 100%; }
.sl-tools { min-width: 180px; }

/* Heatmap: every cell carries its words; the tint only repeats them. */
.sl-namecol { min-width: 13em; }
.sl-heatcol { text-align: center; white-space: nowrap; }
.sl-heat { display: inline-block; min-width: 6.5em; padding: 3px 8px; border-radius: 6px; font-size: .86rem; font-weight: 600; text-align: center; }
.sl-heat--0 { background: var(--sa-surface-2); color: var(--sa-muted); border: 1px dashed var(--sa-line-2); }
.sl-heat--1 { background: var(--sa-gold-soft); color: var(--sa-gold-text); }
.sl-heat--2 { background: var(--sa-success-soft); color: var(--sa-success); }
.sl-unitkey { margin: 0; padding-left: 1.4em; columns: 2 18em; }

/* Filters above tables */
.sl-filter { margin: 0 0 14px; align-items: flex-end; }
.sl-filter .sa-field { margin: 0; }

@media print {
	.sl-timer, .sl-help, .sl-prevnext { display: none; }
}
