.wahlund-dashboard { border:1px solid var(--bs-border-color); border-radius:8px; padding:clamp(12px,2vw,24px); margin:1.5rem 0; background:var(--bs-body-bg); color:var(--bs-body-color); }
.wahlund-dashboard .observablehq { margin-bottom: .7rem; }
.wahlund-dashboard form { max-width:100%; width:100%; font-family:inherit; color:inherit; }
.wahlund-dashboard input,.wahlund-dashboard select { accent-color:var(--bs-link-color); }
.wahlund-controls { margin:1rem 0; }
.wahlund-layout { display:grid; grid-template-columns:minmax(0,1fr); gap:24px; }
.wahlund-chart,.wahlund-stats { min-width:0; }
.wahlund-plot { width:100%; }
.wahlund-legend { display:flex; flex-wrap:wrap; gap:6px 14px; font-size:.8rem; }
.wahlund-legend i { display:inline-block; width:10px; height:10px; margin-right:5px; border-radius:50%; }
.wahlund-metrics { display:grid; grid-template-columns:minmax(0,1fr); gap:12px; margin-bottom:1rem; }
.wahlund-metrics > div { padding:10px; border:1px solid var(--bs-border-color); border-radius:5px; }
.wahlund-metrics span,.wahlund-metrics small { display:block; font-size:.78rem; }
.wahlund-metrics strong { display:block; font-size:1.3rem; font-variant-numeric:tabular-nums; }
.wahlund-table { overflow-x:auto; }
.wahlund-table table { width:100%; font-size:.78rem; font-variant-numeric:tabular-nums; margin-bottom:1rem; }
.wahlund-table caption { caption-side:top; color:inherit; font-weight:600; }
.wahlund-table th,.wahlund-table td { padding:6px 4px; text-align:right; }
.wahlund-table th:first-child { text-align:left; }
.wahlund-table thead { border-bottom:1px solid var(--bs-border-color); }
.wahlund-bar-row { display:grid; grid-template-columns:100px 1fr; gap:8px; align-items:center; font-size:.75rem; margin:8px 0; }
.wahlund-bar { display:flex; height:27px; border-radius:3px; overflow:hidden; }
.wahlund-bar > div { container-type:inline-size; flex-shrink:0; display:flex; align-items:center; justify-content:center; overflow:hidden; }
.wahlund-bar .genotype-0 { background:hsl(215 55% 40%); }.wahlund-bar .genotype-1 { background:hsl(280 55% 40%); }.wahlund-bar .genotype-2 { background:hsl(155 55% 40%); }
.wahlund-bar span { display:none; color:white; font:600 12px system-ui; }
@container(min-width:26px) { .wahlund-bar span { display:inline; } }
.wahlund-note { font-size:.8rem; color:var(--bs-secondary-color); line-height:1.5; }
#quarto-document-content .math.display { display:block; max-width:100%; overflow-x:auto; overflow-y:hidden; }
.wahlund-controls { display:grid; gap:10px; margin:0 0 1rem; }
.wahlund-controls form { margin:0; font-size:.85rem; }
.wahlund-controls input[type="number"] { width:5.5em; flex:0 0 5.5em; }
.wahlund-controls input[type="range"] { min-width:0; flex:1; }
.wahlund-controls label { margin-bottom:3px; }
.wahlund-dashboard .code-copy-outer-scaffold { display:none; }
.wahlund-controls form { width:100% !important; display:grid; grid-template-columns:minmax(0,1fr); gap:3px; }
.wahlund-controls form > label { width:auto; max-width:none; }
.wahlund-controls form > div { width:100%; min-width:0; }
.wahlund-controls select { width:100%; max-width:100%; }

.wahlund-derivation { font-size:.9rem; line-height:1.5; }
.wahlund-calculation { margin:1rem 0; }
.wahlund-equation { font-family:Georgia,serif; font-size:1rem; margin:.35rem 0; overflow-wrap:anywhere; }
.wahlund-substitution { font-size:.85rem; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; margin-bottom:.5rem; }
