/* Figures for docs/blog/2026/atlas-network-boundary.html */
figure.nb-fig { margin: 2rem 0; }
figure.nb-fig figcaption { margin-top: .6rem; font-size: .85rem; color: var(--muted); text-align: center; }
.nb-scroll { overflow-x: auto; }
.nb-scroll svg { width: 100%; min-width: 600px; height: auto; display: block; font-family: var(--font-body); }

/* Figure 1: the device boundary */
.nb-board { border: 1px solid var(--border); border-radius: 14px; background: var(--surface); padding: 1rem 1rem .75rem; }
.nb-controls { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-bottom: .6rem; }
.nb-controls button { font: inherit; font-size: .82rem; color: var(--fg); background: transparent; border: 1px solid var(--border);
  border-radius: 999px; padding: .3rem .85rem; cursor: pointer; }
.nb-controls button[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.nb-controls button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.nb-status { font-size: .88rem; color: var(--muted); min-height: 2.6em; margin: .5rem 0 0; text-align: left; }
.nb-status b { color: var(--fg); font-weight: 600; }
.nb-device { fill: color-mix(in srgb, var(--fg) 3%, transparent); stroke: var(--border); stroke-width: 1.4; stroke-dasharray: 7 5; }
.nb-h { fill: var(--fg); font-size: 14px; font-weight: 600; }
.nb-s { fill: var(--muted); font-size: 11.5px; }
.nb-mono { fill: var(--muted); font-size: 11px; font-family: var(--font-mono); }
.nb-tray { fill: color-mix(in srgb, var(--accent) 7%, transparent); stroke: var(--accent); stroke-width: 1.2; stroke-dasharray: 4 4; opacity: .35; transition: opacity .5s; }
.nb-board.cloud .nb-tray { opacity: 1; }
.nb-ghost { fill: none; stroke: var(--border); stroke-dasharray: 3 3; }
.nb-chip rect { stroke-width: 1.2; }
.nb-chip text { font-size: 12.5px; fill: var(--fg); }
.nb-chip.ok rect { fill: var(--bg); stroke: var(--muted); }
.nb-chip.guard rect { fill: var(--bg); stroke: var(--accent-2); }
.nb-chip { transition: transform .9s cubic-bezier(.3,.7,.2,1); }
.nb-stay { fill: var(--accent-2); font-size: 11px; opacity: 0; transition: opacity .5s .4s; }
.nb-board.cloud .nb-stay { opacity: 1; }
.nb-dest rect { fill: var(--surface); stroke: var(--border); stroke-width: 1.2; }
.nb-lane { fill: none; stroke: var(--muted); stroke-width: 2; stroke-dasharray: 3 6; opacity: .55; }
.nb-lane.live { stroke: var(--accent); opacity: 1; stroke-dasharray: 8 6; animation: nb-flow 1.1s linear infinite; }
.nb-lane.in.live { animation-direction: reverse; }
@keyframes nb-flow { to { stroke-dashoffset: -28; } }
.nb-gate { fill: var(--bg); stroke: var(--muted); stroke-width: 1.4; }
.nb-gate.open { stroke: var(--accent); fill: color-mix(in srgb, var(--accent) 22%, var(--bg)); }
.nb-gatetxt { font-size: 11px; fill: var(--muted); text-anchor: middle; font-family: var(--font-mono); }
.nb-head { fill: var(--muted); }
.nb-head.live { fill: var(--accent); }
.nb-new { fill: var(--accent); font-size: 11px; opacity: 0; transition: opacity .4s; }
.nb-board.mail .nb-new { opacity: 1; }

/* Figure 2: review severity bars */
.nb-bar { transform-box: fill-box; transform-origin: left center; transform: scaleX(0); transition: transform 1s cubic-bezier(.3,.7,.2,1); }
.nb-bars.shown .nb-bar { transform: scaleX(1); }
.nb-bars.shown .nb-bar.d1 { transition-delay: .12s; }
.nb-bars.shown .nb-bar.d2 { transition-delay: .24s; }
.nb-bars.shown .nb-bar.d3 { transition-delay: .36s; }
.nb-bar.crit { fill: var(--accent-2); }
.nb-bar.high { fill: var(--accent); }
.nb-bar.rest { fill: color-mix(in srgb, var(--fg) 28%, transparent); }
.nb-lbl { fill: var(--fg); font-size: 13px; font-weight: 600; }
.nb-val { fill: var(--fg); font-size: 13px; font-family: var(--font-mono); opacity: 0; transition: opacity .4s 1s; }
.nb-bars.shown .nb-val { opacity: 1; }
.nb-note { fill: var(--muted); font-size: 11.5px; }

@media (prefers-reduced-motion: reduce) {
  .nb-chip, .nb-tray, .nb-stay, .nb-bar, .nb-val, .nb-new { transition: none !important; }
  .nb-lane.live { animation: none; }
}
