/* Network automation page */
.nah-tick{stroke:#5EEAD4;stroke-width:2.5;fill:none;stroke-linecap:round;stroke-linejoin:round}

/* Text inside the drawings */
.na-out{font-size:15px;fill:var(--ink);text-anchor:start}
.na-mono,.motion-svg .na-mono{font-family:var(--font-mono);font-size:13px;fill:var(--ink);text-anchor:start}
.n.red .na-mono,.na-mono.r{fill:#9F1239}
.na-true{fill:none;stroke:var(--subtle);stroke-width:1.5;stroke-linejoin:round;opacity:.55}
.na-dot{fill:var(--cyan);stroke:#fff;stroke-width:1.5}
.na-dot.o{fill:var(--orange)}
#m-na-pipe .n .t{font-size:13.5px}
#m-na-pipe .n .s{font-size:11px}

/* Gate simulator */
.ng-num{font-size:14px;font-weight:700;fill:var(--ink);text-anchor:middle}
.ng-gate.is-stop circle{stroke:#E11D48;stroke-width:3;fill:#FFF1F2}
.ng-gate.is-pass circle{stroke:#16A34A;stroke-width:2.5}

/* Code samples */
.na-code{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:24px}
.na-code.two{grid-template-columns:repeat(2,minmax(0,1fr))}
.na-code .card{min-width:0;display:flex;flex-direction:column;gap:12px}
.na-code .card h3{font-size:var(--fs-h4);margin:0}
.na-code pre{margin:0;padding:14px 16px;background:var(--navy);color:#E2E8F0;border-radius:var(--radius);overflow:auto;font-size:.8rem;line-height:1.65}
.na-code pre code{font-size:inherit;color:inherit;background:none;padding:0}
.na-small{font-size:.92rem;color:var(--muted);margin:14px 0 0;max-width:75ch}
.na-code .na-small{margin:0}
.na-list{margin:0;padding-left:1.1rem;display:grid;gap:.5rem;font-size:.95rem}
.na-list b{color:var(--ink)}

/* Fault finder: symptoms listed down the panel */
.motion-states.vertical{flex-direction:column;flex-wrap:nowrap;width:100%}
.motion-states.vertical button{display:flex;justify-content:space-between;align-items:center;gap:12px;text-align:left;white-space:normal;padding:.5rem .8rem}
.na-fault dl{margin:0;display:grid;grid-template-columns:96px 1fr;gap:6px 12px;font-size:.88rem}
.na-fault dt{font-size:.72rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--subtle);padding-top:2px}
.na-fault dd{margin:0;color:var(--text);line-height:1.5}

/* Fallbacks without the script */
.na-nojs{display:none}
.no-js .na-nojs{display:grid}
.no-js .na-jsonly{display:none}

@media (max-width:1000px){.na-code{grid-template-columns:1fr}.na-code.two{grid-template-columns:1fr}}
@media (max-width:700px){.na-fault dl{grid-template-columns:1fr;gap:2px}.na-fault dd{margin-bottom:8px}}
.ng-num.w{fill:#fff}
#m-na-fault .na-mono{font-size:14px}
