/* Inside a frame: prose, diagrams and code output. */

/* prose and diagrams inside frames */
.prose + .prose { margin-top: var(--s3); }
.prose { white-space: pre-wrap; }
.block-body > .diagram + .prose { margin-top: var(--s2); color: var(--muted); font-size: var(--fs-md); }
.diagram .stroke { stroke-dasharray: 1; stroke-dashoffset: 0; animation: draw 520ms var(--ease-out) 1; }
.diagram .stroke.head { stroke-dasharray: none; animation: none; }
@keyframes draw { from { stroke-dashoffset: 1; } }
.answer-label { display: block; }
.answer-label .answer { margin-top: var(--s1); font-weight: 400; }
.margin-note span { display: block; }
.result-gap, .result-note { margin-top: var(--s4); }
.frame:not([data-mode="check"]) .predict { border-color: var(--line-strong); }
.frame-body > .block:first-child { border-top: 0; }

/* what code printed */
.out-part { display: block; margin: var(--s1) 0 0; font: inherit; white-space: pre-wrap; overflow-wrap: anywhere; }
.out-part.stderr { color: var(--ready-ink); }
.out-part.error { color: var(--bad); }
.out-part.result { font-weight: 500; }
img.out-part { max-width: 100%; height: auto; border-radius: var(--r1); }

/* A question the lesson has moved on from: one line with its mark. */
.problem-open.is-folded { display: none; }
.problem-fold {
  display: flex; align-items: center; gap: var(--s2); width: 100%; min-height: 40px; padding: var(--s2) var(--s3);
  border: 1.5px solid var(--line-strong); border-radius: var(--r2); background: var(--surface);
  font: inherit; font-size: var(--fs-sm); color: var(--ink); text-align: left; cursor: pointer;
}
.problem-fold[data-kind="ok"] { border-color: var(--ok); background: var(--ok-tint); }
.problem-fold[data-kind="missing"] { border-color: var(--ready); background: var(--ready-tint); }
.problem-fold[data-kind="rule"] { border-color: var(--bad); background: var(--bad-tint); }
.problem-mark { flex: none; width: 22px; font-weight: 700; font-size: 1rem; text-align: center; }
.problem-fold[data-kind="ok"] .problem-mark { color: var(--ok); }
.problem-fold[data-kind="rule"] .problem-mark, .problem-fold[data-kind="missing"] .problem-mark { color: var(--bad); }
.problem-verdict { flex: none; font-weight: 600; }
.problem-show { flex: none; text-decoration: underline; color: var(--muted); }
