/* Content diagrams inherit the site's typefaces, ink and paper. */
.spot-viz { margin: 28px 0 0; padding: 24px; border: 1px solid currentColor; background: var(--paper); color: var(--ink); }
.spot-viz [hidden] { display: none !important; }
.viz-heading { margin-bottom: 22px; }
.spot-viz .viz-eyebrow { margin: 0 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.spot-viz .viz-heading h3 { margin: 0; font-size: 30px; }
.spot-viz .viz-instructions { margin: 0 0 20px; padding-left: 12px; border-left: 3px solid var(--spot-accent); font-size: 13px; line-height: 1.65; }
.spot-viz .viz-subtitle { margin: 22px 0 12px; font-size: 13px; }
.spot-viz .viz-note { margin: 16px 0 0; max-width: 85ch; font-size: 13px; }
.spot-viz figcaption { margin: 22px 0 0; padding: 16px 0 0; border-top: 1px solid var(--spot-rule); font-size: 12px; line-height: 1.65; }
.viz-controls { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-bottom: 20px; }
.viz-controls button, .viz-controls select { padding: 6px 12px; border: 1px solid currentColor; border-radius: 0; color: var(--ink); background: var(--paper); font: 22px/1.2 var(--font-px); cursor: pointer; }
.viz-controls button[aria-pressed="true"] { background: var(--spot-accent); color: #000; box-shadow: 2px 2px 0 var(--ink); }
.viz-controls label { display: grid; gap: 6px; font-size: 12px; }
.viz-select { display: grid; gap: 6px; }
.viz-controls :is(button, select):focus-visible, .viz-range input:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.viz-badge { display: inline-block; align-self: start; width: fit-content; border: 1px solid currentColor; padding: 2px 6px; font-size: 11px; line-height: 1.5; text-transform: uppercase; }
.viz-key { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 16px; font-size: 12px; }
.viz-key__accent::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 8px; border: 1px solid currentColor; background: var(--spot-accent); }
.viz-sockets { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.viz-socket { display: grid; gap: 12px; min-width: 0; padding: 14px 10px; border: 1px solid currentColor; }
.viz-socket strong { font: 30px/1 var(--font-px); }
.viz-socket code { font-size: 12px; }
.viz-socket span { font-size: 11px; }
.viz-socket--rom { background: var(--spot-accent); color: #000; }
.viz-socket--bios { border-style: dashed; }
.viz-memory-stack { display: grid; gap: 6px; }
.viz-memory-stack > div { display: grid; grid-template-columns: 180px 1fr; gap: 6px 20px; padding: 18px; border: 1px solid currentColor; font-size: 13px; }
.viz-memory-stack > div > span { grid-column: 2; }
.viz-memory-stack__reserved { border-style: dashed !important; }
.viz-memory-stack__hma { background: var(--spot-accent); color: #000; }
.viz-port-map { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 26px; }
.viz-port { display: grid; gap: 10px; padding: 18px; border: 1px dashed currentColor; font-size: 13px; }
.viz-port strong { font: 36px/1 var(--font-px); }
.viz-port--selected { border-style: solid; background: var(--spot-accent); color: #000; }
.spot-viz .viz-flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; list-style: none; padding: 0; margin: 0; }
.spot-viz .viz-flow--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.spot-viz .viz-flow > li { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 12px; min-width: 0; margin: 0; padding: 18px 14px; border: 1px solid currentColor; font-size: 13px; }
.viz-flow > li:not(:last-child)::after { content: "\2192"; position: absolute; right: -26px; top: calc(50% - 12px); font-size: 22px; color: var(--ink); }
.viz-flow strong { font-size: 14px; overflow-wrap: anywhere; }
.viz-flow .viz-node--accent { background: var(--spot-accent); color: #000; }
.viz-budget { display: flex; height: 64px; border: 1px solid currentColor; background: repeating-linear-gradient(135deg, transparent 0 4px, var(--spot-rule) 4px 5px); }
.viz-budget__used { flex: 420; display: flex; align-items: center; padding: 12px; background: var(--spot-accent); color: #000; font-size: 14px; }
.viz-budget__free { flex: 13; border-left: 1px solid currentColor; }
.viz-banks { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; }
.viz-bank { display: flex; align-items: center; justify-content: center; min-height: 52px; border: 1px solid currentColor; font-size: 14px; background: linear-gradient(to right, var(--chip) 0 var(--bank-fill), transparent var(--bank-fill)), repeating-linear-gradient(135deg, transparent 0 4px, var(--spot-rule) 4px 5px); }
.viz-bank.is-active { background: linear-gradient(to right, var(--spot-accent) 0 var(--bank-fill), transparent var(--bank-fill)), repeating-linear-gradient(135deg, transparent 0 4px, var(--spot-rule) 4px 5px), var(--spot-accent); color: #000; outline: 2px solid var(--ink); outline-offset: -3px; }
.viz-range { display: grid; grid-template-columns: 210px minmax(0, 1fr); align-items: center; gap: 16px; margin-top: 22px; font-size: 13px; }
.viz-range input { width: 100%; accent-color: var(--ink); cursor: pointer; }
.viz-aperture { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding: 18px; margin-top: 18px; border: 1px solid currentColor; font-size: 13px; }
.viz-aperture output { overflow-wrap: anywhere; }
.viz-desktop { display: block; width: 100%; height: auto; max-height: 480px; margin-top: 22px; overflow: visible; }
.viz-screen { fill: var(--paper); stroke: var(--ink); stroke-width: 5; }
.viz-gap-line { fill: none; stroke: var(--spot-rule); stroke-width: 2; }
.viz-spanning-window { fill: var(--spot-accent); stroke: var(--ink); stroke-width: 3; }
.viz-window-rule { fill: none; stroke: #000; stroke-width: 3; }
.viz-screen-number { fill: var(--ink); font: 70px var(--font-px); }
@media (max-width: 900px) {
  .viz-sockets { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .spot-viz .viz-flow--four { grid-template-columns: minmax(0, 1fr); }
  .viz-flow--four > li:not(:last-child)::after { content: "\2193"; top: auto; right: calc(50% - 6px); bottom: -27px; }
}
@media (max-width: 640px) {
  .spot-viz { padding: 18px 14px; }
  .spot-viz .viz-heading h3 { font-size: 28px; }
  .viz-sockets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .viz-port-map { grid-template-columns: minmax(0, 1fr); }
  .spot-viz .viz-flow, .spot-viz .viz-flow--four { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .spot-viz .viz-flow > li { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 6px 12px; padding: 12px; align-items: center; }
  .viz-flow > li > .viz-badge { grid-column: 1; grid-row: 1 / span 2; align-self: center; }
  .viz-flow > li > :not(.viz-badge) { grid-column: 2; }
  .viz-flow > li:not(:last-child)::after { content: "\2193"; top: auto; right: calc(50% - 6px); bottom: -27px; }
  .viz-memory-stack > div { grid-template-columns: minmax(0, 1fr); padding: 14px; }
  .viz-memory-stack > div > span { grid-column: 1; }
  .viz-banks { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .viz-range { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .viz-controls label { width: 100%; }
  .viz-select { width: 100%; }
  .viz-budget__used { font-size: 12px; padding: 8px; }
}
