.diagram{max-width:44rem;margin:var(--space-xl) 0 0;border-radius:var(--radius-lg);background:radial-gradient(130% 120% at 30% 0%, var(--color-paper-2) 0%, var(--color-paper) 70%);box-shadow:inset 0 0 0 var(--rule-hair) var(--color-rule-2);padding:clamp(.5rem,2.5vw,1.75rem);container-type:inline-size}.diagram__caption{max-width:var(--measure);margin:var(--space-md) 0 0;padding:0 var(--space-2xs);font-size:var(--text-sm);color:var(--color-ink-2);line-height:1.6}.diagram__svg{width:100%;height:auto;display:block;overflow:visible}.diagram__svg--narrow{max-width:26rem;margin-inline:auto}.diagram__svg--wide{display:none}@container (width>=36rem){.diagram__svg--wide{display:block}.diagram__svg--narrow{display:none}}.dg-text{fill:var(--color-muted);font-family:var(--font-mono)}.dg-text--ink{fill:var(--color-ink-2)}.dg-text--lit{fill:var(--color-accent)}.dg-text--formula{fill:var(--color-ink-2)}.dg-grid{stroke:var(--color-rule);stroke-width:1px;stroke-dasharray:2 4}.dg-rule{fill:none;stroke:var(--color-neutral);stroke-width:1px}.dg-count{fill:none;stroke:var(--color-ink-2);stroke-width:1.5px;stroke-linejoin:round}.dg-ocr{stroke:var(--color-neutral);stroke-width:1px;stroke-dasharray:5 4}.dg-bottom{stroke:var(--color-neutral);stroke-width:1px;stroke-dasharray:1 4}.dg-guide{stroke:var(--color-ink-2);stroke-width:1px;stroke-dasharray:2 3;opacity:.65}.dg-dot{fill:var(--color-ink)}.dg-low{fill:none;stroke:var(--color-accent-low);stroke-width:1.5px;stroke-linejoin:round}.dg-lit{fill:none;stroke:var(--color-accent);stroke-width:2.6px;stroke-linecap:round}.dg-glow{fill:none;stroke:var(--color-accent);stroke-opacity:.32;stroke-width:5.5px;stroke-linecap:round;stroke-linejoin:round}.dg-glow--wide{stroke-opacity:.1;stroke-width:12px}.dg-core{fill:none;stroke:var(--color-ink);stroke-width:.8px;stroke-linecap:round;opacity:.85}.dg-curve{fill:none;stroke:var(--color-ink-2);stroke-width:1.5px;stroke-linejoin:round}.dg-point{fill:var(--color-accent)}.dg-halo-stop{stop-color:var(--color-accent);stop-opacity:.6}.dg-halo-stop--mid{stop-opacity:.3}.dg-halo-stop--out{stop-opacity:0}.dg-tile{fill:var(--color-accent)}.dg-tile-glow{fill:var(--color-accent);fill-opacity:.26}.dg-tile-glow--wide{fill-opacity:.08}.dg-tile-text{fill:var(--color-accent-ink);font-family:var(--font-mono);font-weight:700}@supports (view-timeline-name:--dg){@media (prefers-reduced-motion:no-preference){.diagram{view-timeline-name:--dg;--dg-timeline:--dg}.diagram .dg-glow,.diagram .dg-lit,.diagram .dg-core{stroke-dasharray:1;animation:linear both dg-draw;animation-timeline:var(--dg-timeline);animation-range:entry 20% cover 42%}.diagram .dg-tile,.diagram .dg-tile-glow,.diagram .dg-point,.diagram .dg-point-halo{animation:linear both dg-light;animation-timeline:var(--dg-timeline);animation-range:entry 25% cover 40%}}}@keyframes dg-draw{0%{stroke-dashoffset:1px}to{stroke-dashoffset:0}}@keyframes dg-light{0%{opacity:.12}to{opacity:1}}.portmap{border-collapse:separate;border-spacing:4px 6px;font-family:var(--font-mono);font-size:var(--text-sm);margin:0 auto}.portmap th{font-family:var(--font-body);font-size:var(--text-xs);color:var(--color-muted);white-space:nowrap;font-weight:600}.portmap th[scope=row]{padding-right:var(--space-sm);text-align:left}.portmap--narrow th[scope=col]{padding:0 var(--space-3xs) var(--space-3xs);text-align:center;vertical-align:bottom;white-space:normal;line-height:1.25}.portmap--narrow td{min-width:2.5rem}.portmap td,.portmap__bit{min-width:2.75rem;height:2.25rem;padding:0 var(--space-2xs);text-align:center;border-radius:var(--radius-sm);background:var(--color-paper-3);color:var(--color-ink-2);font-variant-numeric:tabular-nums;position:relative}.portmap__bit{color:var(--color-ink-2);font-family:var(--font-mono);font-size:var(--text-sm);background:0 0}.portmap .is-none{color:var(--color-neutral)}.portmap td.is-lit{background:var(--color-accent);color:var(--color-accent-ink);box-shadow:0 0 1.25rem color-mix(in oklch, var(--color-accent) 42%, transparent);font-weight:700}.portmap__bit.is-lit{color:var(--color-accent);font-weight:700}.portmap--wide td.is-lit:before,.portmap--narrow tr.is-lit td+td:before{content:"";background:var(--color-accent);box-shadow:0 0 6px var(--color-accent);position:absolute}.portmap--wide td.is-lit:before{width:2px;height:6px;bottom:100%;left:50%;transform:translate(-50%)}.portmap--narrow tr.is-lit td+td:before{width:4px;height:2px;top:50%;right:100%;transform:translateY(-50%)}.portmap--narrow{display:table}.portmap--wide{display:none}@container (width>=30rem){.portmap--narrow{display:none}.portmap--wide{display:table}}@media (forced-colors:active){.portmap td.is-lit{forced-color-adjust:none;color:highlighttext;box-shadow:none;background:highlight}.portmap--wide td.is-lit:before,.portmap--narrow tr.is-lit td+td:before{forced-color-adjust:none;box-shadow:none;background:highlight}}
