/* T622: themed teaching illustrations (page opt-in). Every color is a --theme-* role, so the drawings follow all five
   themes in light and dark. Photos and real screenshots are never filtered. */
.bb-visual{container-type:inline-size;margin:26px 0;padding:20px;border:1px solid var(--theme-border);border-radius:14px;background:var(--theme-surface);color:var(--theme-ink)}
.bb-visual-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:18px 26px;align-items:center}
@container (min-width:860px){.bb-visual-layout{grid-template-columns:minmax(0,2.3fr) minmax(230px,1fr)}}
/* concept diagrams (no legend) only go side by side when the drawing can stay near full size */
@container (min-width:860px) and (max-width:999px){.bb-visual:not(.is-mockup) .bb-visual-layout{grid-template-columns:minmax(0,1fr)}}
.bb-visual svg{display:block;width:100%;height:auto;max-height:600px;font-family:var(--theme-font-body,system-ui),system-ui,sans-serif}
.bb-visual svg text{fill:var(--theme-ink);font-size:16px;font-weight:500}
.bb-visual svg .v-xs{font-size:11.5px}.bb-visual svg .v-sm{font-size:13.5px}.bb-visual svg .v-lg{font-size:19px;font-weight:700}
.bb-visual svg .v-b{font-weight:700}.bb-visual svg .v-muted{fill:var(--theme-muted)}
.bb-visual svg .v-mono,.bb-visual svg .v-mono-sm{font-family:var(--theme-font-code,ui-monospace),ui-monospace,Consolas,monospace}
.bb-visual svg .v-mono{font-size:14px}
.bb-visual svg .v-on-primary{fill:var(--theme-on-primary)}
/* surfaces */
.bb-visual svg .v-box,.bb-visual svg .v-panel{fill:var(--theme-inset);stroke:var(--theme-border);stroke-width:1.2}
.bb-visual svg .v-win{fill:var(--theme-surface);stroke:var(--theme-border);stroke-width:1.5}
.bb-visual svg .v-chrome{fill:color-mix(in srgb,var(--theme-ink) 5%,var(--theme-surface))}
.bb-visual svg .v-band{fill:color-mix(in srgb,var(--theme-primary) 24%,var(--theme-inset))}
.bb-visual svg .v-canvas,.bb-visual svg .v-field{fill:var(--theme-inset);stroke:var(--theme-border);stroke-width:.8}
.bb-visual svg .v-term{fill:color-mix(in srgb,var(--theme-ink) 4%,var(--theme-inset));stroke:var(--theme-border)}
.bb-visual svg .v-tile{fill:var(--theme-surface);stroke:var(--theme-border);stroke-width:1}
.bb-visual svg .v-tile-on{fill:color-mix(in srgb,var(--theme-primary) 30%,var(--theme-surface));stroke:var(--theme-primary);stroke-width:2}
.bb-visual svg .v-pill,.bb-visual svg .v-tab{fill:var(--theme-surface);stroke:var(--theme-border);stroke-width:1}
.bb-visual svg .v-pill-on,.bb-visual svg .v-tab-on{fill:var(--theme-primary);stroke:var(--theme-primary)}
.bb-visual svg .v-row-on{fill:color-mix(in srgb,var(--theme-primary) 22%,transparent)}
.bb-visual svg .v-rule{stroke:var(--theme-border);stroke-width:1;fill:none}
.bb-visual svg .v-ico{fill:none;stroke:var(--theme-muted);stroke-width:1.4}
.bb-visual svg .v-glyph{fill:none;stroke:var(--theme-ink);stroke-width:2}
.bb-visual svg .v-check{fill:none;stroke:var(--theme-primary);stroke-width:2}
/* devices, links, packets */
.bb-visual svg .v-dev{fill:none;stroke:var(--theme-ink);stroke-width:1.8}
.bb-visual svg .v-dev-b{fill:var(--theme-surface);stroke:var(--theme-ink);stroke-width:1.8}
.bb-visual svg .v-dev-s{fill:color-mix(in srgb,var(--theme-info) 30%,var(--theme-surface));stroke:var(--theme-ink);stroke-width:1.2}
.bb-visual svg .v-cable{fill:none;stroke:var(--theme-ink);stroke-width:2.4}
.bb-visual svg .v-led-ok{fill:var(--theme-success)}
.bb-visual svg .v-env-b{fill:var(--theme-warning);stroke:var(--theme-ink);stroke-width:1.2}
.bb-visual svg .v-env path{fill:none;stroke:var(--theme-ink);stroke-width:1.2}
.bb-visual svg .v-c-auto{fill:var(--theme-warning);stroke:var(--theme-ink);stroke-width:1}
.bb-visual svg .v-c-console{fill:none;stroke:var(--theme-info);stroke-width:3}
.bb-visual svg .v-c-straight{fill:none;stroke:var(--theme-ink);stroke-width:3}
.bb-visual svg .v-c-cross{fill:none;stroke:var(--theme-ink);stroke-width:3;stroke-dasharray:8 5}
.bb-visual svg .v-c-fiber{fill:none;stroke:var(--theme-warning);stroke-width:3}
.bb-visual svg .v-c-serial{fill:none;stroke:var(--theme-error);stroke-width:3}
.bb-visual svg .v-c-clock{fill:var(--theme-surface);stroke:var(--theme-error);stroke-width:2}
.bb-visual svg .v-c-clockh{fill:none;stroke:var(--theme-error);stroke-width:1.6}
/* role colors for concept diagrams */
.bb-visual svg .r-info{stroke:var(--theme-info)}.bb-visual svg .rf-info{fill:var(--theme-info)}
.bb-visual svg .r-warn{stroke:var(--theme-warning)}.bb-visual svg .rf-warn{fill:var(--theme-warning)}
.bb-visual svg .r-ok{stroke:var(--theme-success)}.bb-visual svg .rf-ok{fill:var(--theme-success)}
.bb-visual svg .r-err{stroke:var(--theme-error)}.bb-visual svg .rf-err{fill:var(--theme-error)}
.bb-visual svg .r-pri{stroke:var(--theme-primary)}.bb-visual svg .rf-pri{fill:var(--theme-primary)}
.bb-visual svg .v-card{fill:var(--theme-inset);stroke-width:2}
.bb-visual svg .v-line{fill:none;stroke:var(--theme-primary);stroke-width:3}
.bb-visual svg .v-arrow{fill:none;stroke:var(--theme-muted);stroke-width:2.2}
.bb-visual svg .v-arrowhead{fill:var(--theme-muted)}
.bb-visual svg .v-accent{fill:var(--theme-primary)}
/* numbered callouts + legend */
.bb-visual svg .v-num circle{fill:var(--theme-primary);stroke:var(--theme-surface);stroke-width:2}
.bb-visual svg .v-num-t{fill:var(--theme-on-primary);font-size:13px;font-weight:800}
.bb-visual aside{font-size:16px;line-height:1.55}
.bb-visual aside h3{margin:0 0 6px;font-size:21px}
.bb-visual aside p{margin:6px 0 12px}
.bb-visual .v-kicker{margin:0 0 4px;font:800 12px/1.2 var(--theme-font-code,ui-monospace),monospace;letter-spacing:.12em;text-transform:uppercase;color:var(--theme-primary)}
.v-legend{list-style:none;margin:0;padding:0;counter-reset:vleg;display:grid;gap:9px}
.v-legend li{counter-increment:vleg;display:grid;grid-template-columns:26px minmax(0,1fr);gap:10px;font-size:15px;line-height:1.45;align-items:start}
.v-legend li::before{content:counter(vleg);display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:var(--theme-primary);color:var(--theme-on-primary);font-weight:800;font-size:12.5px}
.v-legend b{color:var(--theme-ink)}
@container (min-width:560px) and (max-width:859px){.v-legend{grid-template-columns:1fr 1fr;gap:10px 22px}}
.bb-visual figcaption{margin-top:14px;font-size:14px;color:var(--theme-muted)}
.bb-visual .v-swipe{display:none}
.bb-visual svg.v-mobile{display:none}
/* real screenshots */
.pt-shot{margin:22px 0}
.pt-shot img{display:block;max-width:100%;height:auto;border-radius:10px;border:1px solid var(--theme-border)}
.pt-shot.is-window img{max-width:min(100%,560px)}
.pt-shot figcaption{margin-top:8px;font-size:14px;color:var(--theme-muted)}
.pt-shot figcaption a{color:var(--theme-primary)}
.pt-shot .pt-crop{position:relative;overflow:hidden;border-radius:10px;border:1px solid var(--theme-border);aspect-ratio:var(--crop-ar,1040/195)}
.pt-shot .pt-crop img{position:absolute;left:0;bottom:0;width:var(--crop-w,184.6%);max-width:none;border:0;border-radius:0}
.pt-shot[hidden]{display:none!important}
.pt-shot-pair{display:grid;grid-template-columns:minmax(0,1fr);gap:18px}
.pt-shot-pair .pt-shot{margin:0}
@media(min-width:1600px){body .cl-process.bb-container{width:min(1540px,calc(100% - 80px))}article:has(.bb-visual){max-width:1100px!important}}
@media(max-width:700px){
  .bb-visual{padding:12px 10px}
  .bb-visual .v-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch;margin:0 -4px;padding-bottom:6px}
  .bb-visual .v-scroll svg.v-wide{width:640px;max-width:none;max-height:none}
  .bb-visual .v-swipe{display:inline}
  .bb-visual svg.v-desktop{display:none}.bb-visual svg.v-mobile{display:block;max-height:none}
  .bb-visual svg.v-mobile .v-sm{font-size:15px}.bb-visual svg.v-mobile .v-lg{font-size:20px}
}
