.gpu-collectives-demo { max-width: 760px; margin: 1rem 0 1.5rem; }
.gpu-collectives-demo > figcaption, .gpu-tp-demo > figcaption { margin-bottom: .65rem; color: var(--study-ink); font-size: .9rem; font-weight: 650; }
.gpu-collectives-demo svg { display: block; width: 100%; height: auto; border: 1px solid var(--study-line); border-radius: 7px; background: var(--study-panel); }
.gpu-collectives-demo svg text, .gpu-tp-demo svg text { fill: var(--study-ink); font-family: var(--font-sans, system-ui, sans-serif); }
.gpu-collectives-demo .gpu-svg-heading, .gpu-tp-demo .gpu-svg-heading { font-size: 14px; font-weight: 650; }
.gpu-collectives-demo .gpu-svg-muted, .gpu-tp-demo .gpu-svg-muted { font-size: 12px; fill: var(--study-muted); }
.gpu-collectives-demo .gpu-svg-rank, .gpu-tp-demo .gpu-svg-rank { font-size: 11px; font-weight: 600; }
.gpu-collectives-demo .gpu-svg-value { font-size: 9px; }
.gpu-collectives-demo .gpu-svg-legend { font-size: 10px; fill: var(--study-muted); }
.gpu-demo-note { margin: .6rem 0 0; font-size: .82rem; color: var(--study-muted); }
.gpu-arrow { fill: none; stroke: var(--study-muted); stroke-width: 1.6; stroke-linejoin: round; }
.gpu-shard { stroke-width: 1.1; }
.gpu-color-0 { fill: #dbeafe; stroke: #82a9d8; }
.gpu-color-1 { fill: #fbd5d5; stroke: #cf7979; }
.gpu-color-2 { fill: #dcedd5; stroke: #8bad77; }
.gpu-color-3 { fill: #fff2cc; stroke: #cfb24d; }
.gpu-empty { fill: transparent; stroke: var(--study-line); stroke-dasharray: 2 3; opacity: .45; }
.gpu-neutral { fill: var(--study-panel); stroke: var(--study-muted); stroke-width: 1; }
.gpu-tp-demo { max-width: 600px; margin: .8rem 0 1rem; padding: .55rem; overflow-x: auto; border: 1px solid var(--study-line); border-radius: 7px; }
.gpu-tp-demo svg { display: block; width: 100%; min-width: 520px; height: auto; }
.gpu-tp-demo .gpu-svg-value { font-size: 12px; }
.gpu-tp-demo .gpu-svg-formula { font-size: 14px; }
[data-theme="dark"] .gpu-color-0 { fill: #233e5c; stroke: #6c95c4; }
[data-theme="dark"] .gpu-color-1 { fill: #563334; stroke: #ba7474; }
[data-theme="dark"] .gpu-color-2 { fill: #344b2e; stroke: #84a46f; }
[data-theme="dark"] .gpu-color-3 { fill: #554b27; stroke: #b39c50; }
ul.gpu-collective-list { padding-left: 0; list-style: none; }
.gpu-collective-list > li.gpu-collective-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 330px); gap: 1.2rem; align-items: center; margin: 0 0 1.25rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--study-line); }
.gpu-collective-copy { min-width: 0; }
.gpu-collective-copy > ul { margin-bottom: 0; }
.gpu-collective-list .gpu-collective-diagram { width: 100%; max-width: 360px; margin: 0; }
@media (max-width: 900px) {
  .gpu-collective-list > li.gpu-collective-row { grid-template-columns: minmax(0, 1fr); gap: .7rem; }
}
