/* Lesson 1.5.6 — theme-aware cross-validation diagrams and formulas. */
.lesson-156-figure{margin:24px 0;padding:14px;border:1px solid var(--lds-line);border-radius:16px;background:var(--lds-surface);max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain}
.lesson-156-figure svg{display:block;width:100%;min-width:620px;height:auto;max-width:none}
.lesson-156-figure figcaption{margin:10px 4px 2px;color:var(--lds-muted);font-size:.9rem;line-height:1.6;overflow-wrap:anywhere}
.l156-bg{fill:var(--lds-surface);stroke:var(--lds-line);stroke-width:1.5}
.l156-label{fill:var(--lds-ink);font:700 17px system-ui,sans-serif}
.l156-muted{fill:var(--lds-muted);font:600 14px system-ui,sans-serif}
.l156-train{fill:color-mix(in srgb,var(--lds-accent) 16%,var(--lds-surface));stroke:var(--lds-accent);stroke-width:1}
.l156-validation{fill:color-mix(in srgb,var(--lds-good) 28%,var(--lds-surface));stroke:var(--lds-good);stroke-width:1.5}
.l156-step{fill:color-mix(in srgb,var(--lds-accent) 8%,var(--lds-surface));stroke:var(--lds-line);stroke-width:1.5}
.l156-dot-a{fill:var(--lds-accent);stroke:var(--lds-surface);stroke-width:2}
.l156-dot-b{fill:var(--lds-good);stroke:var(--lds-surface);stroke-width:2}
.l156-axis{stroke:var(--lds-line);stroke-width:1.5}
.article-body .formula{display:flex;flex-direction:column;gap:8px;align-items:center;padding:16px;margin:16px 0;border:1px solid var(--lds-line);border-radius:12px;background:color-mix(in srgb,var(--lds-accent) 5%,var(--lds-surface));color:var(--lds-ink);max-width:100%;overflow-x:auto}
.article-body .formula-label{font-weight:800;color:var(--lds-muted);font-family:system-ui,sans-serif;font-size:.88rem;text-align:center}
.article-body .formula-expression{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:clamp(.86rem,2vw,1.08rem);text-align:center;max-width:100%;overflow-wrap:anywhere}
.article-body .formula-description{font-size:.94rem;line-height:1.6;color:var(--lds-muted);max-width:72ch}
@media(max-width:700px){.lesson-156-figure{padding:8px}.l156-label{font-size:15px}.l156-muted{font-size:12px}.article-body .formula{padding:12px 8px}}
