/* Scoped to the Bagging & Boosting guides. */
.ensemble-notes{min-width:0;overflow-wrap:break-word}
.ensemble-notes .callout{border-left:3px solid var(--brand);background:rgba(10,143,106,.055);padding:1rem 1.15rem;border-radius:0 10px 10px 0;margin:1.4rem 0}
.ensemble-notes .table-wrap{max-width:100%;overflow-x:auto;margin:1.3rem 0}
.ensemble-notes table{width:100%;border-collapse:collapse;font-size:.92rem;line-height:1.6}
.ensemble-notes th,.ensemble-notes td{padding:.7rem .8rem;vertical-align:top;border-bottom:1px solid var(--line);text-align:left}
.ensemble-notes th{color:var(--brand);background:rgba(10,143,106,.04)}
.ensemble-notes figure{margin:1.5rem 0;padding:1rem;background:#fff;border:1px solid var(--line);border-radius:12px}
.ensemble-notes figure img{display:block;width:100%;height:auto}
.ensemble-notes figcaption{font-size:.88rem;color:var(--ink-muted);line-height:1.6;margin-top:.65rem}
.ensemble-notes .katex-display{max-width:100%;overflow-x:auto;overflow-y:hidden;padding:.25rem 0}
.ensemble-notes pre{max-width:100%;overflow-x:auto;background:#172c24;color:#eef8f1;padding:1.1rem;border-radius:10px;font-size:.85rem;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere}
.ensemble-notes pre code{background:none;color:inherit;padding:0}
.ensemble-notes details{border:1px solid var(--line);border-radius:10px;padding:.85rem 1rem;margin:.8rem 0}
.ensemble-notes summary{font-weight:700;cursor:pointer;line-height:1.6}
.ensemble-notes summary:focus-visible{outline:2px solid var(--brand);outline-offset:5px}
.ensemble-notes details[open] summary{color:var(--brand)}
.ensemble-notes details p:last-child{margin-bottom:.2rem}
.ensemble-notes .study-route li{padding:.4rem 0}
.ensemble-notes .study-route p{margin:.2rem 0 .6rem}
.ensemble-notes .post-nav{display:flex;justify-content:space-between;gap:1rem;flex-wrap:wrap;margin-top:2.5rem;padding-top:1rem;border-top:1px solid var(--line)}
@media(max-width:600px){.ensemble-notes th,.ensemble-notes td{padding:.5rem .4rem;font-size:.8rem}.ensemble-notes figure{padding:.4rem}.ensemble-notes details{padding:.7rem .8rem}}
/* Shared interactive examples: all initial results also exist in the HTML. */
.ensemble-notes .note-controls select{font:inherit;min-height:44px;padding:.4rem .7rem;max-width:100%;color:var(--ink);background:#fff;border:1px solid var(--line);border-radius:6px}
.ensemble-notes .note-controls :focus-visible{outline:3px solid var(--brand);outline-offset:3px}
.ensemble-notes .note-flow .eligible{border:2px solid #176950;background:#edf7f1}
.ensemble-notes .note-controls button:disabled{opacity:.5;cursor:default}
.ensemble-notes [role=status]{font-variant-numeric:tabular-nums}
.ensemble-notes #residual-lab th:first-child,.ensemble-notes #residual-lab td:first-child{white-space:nowrap}
