/* Keep the reading path quiet; figures can be opened at their original size. */
.shap-notes .series-source { color:var(--ink-muted);font-size:.86rem;line-height:1.6; }
.shap-notes .note-figure img { display:block;width:100%;height:auto;background:#fff;border-radius:4px; }
.shap-notes .note-figure a:focus-visible { outline:3px solid var(--brand);outline-offset:4px; }
.shap-notes .note-figure figcaption { margin-top:.8rem; }
.shap-notes pre { max-width:100%;overflow-x:auto;tab-size:4; }
.shap-notes .calculation { padding:1rem 1.2rem;background:var(--card);border-left:3px solid var(--brand);line-height:1.8;font-variant-numeric:tabular-nums; }
.shap-notes .reading-path { margin:1.8rem 0;padding-left:1.35rem; }
.shap-notes .reading-path li { padding:.25rem 0; }
.shap-notes .reading-path a { font-weight:700; }
.shap-notes .note-table table { min-width:360px; }
.shap-notes .note-table.compact table { min-width:0; }
.shap-notes .shap-controls { display:flex;flex-wrap:wrap;gap:.6rem;margin:.8rem 0; }
.shap-notes .shap-controls button { font:inherit;background:var(--card);border:1px solid var(--line);border-radius:6px;padding:.6rem .8rem;color:var(--ink);min-height:44px;cursor:pointer; }
.shap-notes .shap-controls button[aria-pressed=true] { background:var(--ink);color:var(--bg); }
.shap-notes .shap-controls button:focus-visible { outline:3px solid var(--brand);outline-offset:3px; }
.shap-notes .order-steps { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.6rem; }
.shap-notes .order-steps div { padding:.8rem;background:var(--bg);border:1px solid var(--line);border-radius:8px; }
.shap-notes .order-steps strong,.shap-notes .order-steps span { display:block; }
.shap-notes .order-steps span { font-size:.85rem;line-height:1.6;margin-top:.4rem; }
.shap-notes .post-nav { gap:1rem; }
@media(max-width:520px) { .shap-notes .order-steps {grid-template-columns:1fr;} .shap-notes .note-figure {padding:.65rem;} }

.shap-notes [id] { scroll-margin-top:6rem; }
@media(max-width:600px) { .shap-notes [id] { scroll-margin-top:10rem; } .shap-notes .note-equation .katex { font-size:1.05em; } }
