/* The networks drawn by drawNet() (sites.js, section 1.0's sites network; company.js, sections 3.0 to 5.0).
   Loads after /slides/slides.css and ../ccna-net.css, before the deck's own stylesheet; company.css loads after it. */

/* One colour per subnet, wherever its addresses are written or its region drawn. */
.c-lan1 { --c: #1d4ed8; } .c-lan2 { --c: #0f766e; } .c-lan3 { --c: #7c3aed; }
.c-r12 { --c: #b45309; } .c-r13 { --c: #be123c; } .c-wan { --c: #4b5563; } .c-isp { --c: #6b7280; }

.net.nw { width: 100%; max-height: 600px; margin: 0 auto; display: block; }
.net.nw.small { max-height: 300px; }

/* Links. */
.net.nw .lk { fill: none; stroke: #8a96a3; stroke-width: 2.5; stroke-linejoin: round; }
.net.nw .lk.fiber { stroke: #e08a2c; stroke-width: 3; }
.net.nw .lk.k-down { stroke: var(--no); stroke-dasharray: 6 5; }
.net.nw .lk.k-fault { stroke: var(--no); }
.net.nw .lk.k-plain { stroke: #c3cad2; }

/* Words: port names grey, addresses and prefixes in their subnet's colour. */
.net.nw .lb { font: 11.5px var(--mono); fill: var(--sv-ink2); paint-order: stroke; stroke: var(--sv-bg, #f6f7f9); stroke-width: 4px; stroke-linejoin: round; }
.net.nw .lb .pn { fill: var(--sv-ink2); }
.net.nw .lb .a4, .net.nw .lb .a6, .net.nw .lb .pf, .net.nw .lb .tn { fill: var(--c, var(--sv-ink)); font-weight: 600; }
.net.nw .lb .tn { font: 700 12px system-ui, sans-serif; }
.net.nw .lb .nm { font: 700 13px system-ui, sans-serif; fill: var(--sv-ink); }
.net.nw .lb .sec, .net.nw .lb .ov { font-family: system-ui, sans-serif; font-weight: 700; fill: var(--sv-accent); }

/* Devices: light grey outlines on the hosts, as the other CCNA drawings. */
.net.nw .nd.dim { opacity: .3; }
.net.nw .d-pc { fill: #fff; stroke: #8795a3; }
.net.nw .d-stand, .net.nw .d-slot { stroke: #8795a3; }

/* Regions: a subnet in its colour, a broadcast domain in orange. A link's region is a wide stroke along it. */
.net.nw .rg { fill: color-mix(in srgb, var(--c) 9%, transparent); stroke: color-mix(in srgb, var(--c) 55%, transparent); stroke-width: 1.5; stroke-dasharray: 6 4; }
.net.nw .rg.cap { fill: none; stroke: color-mix(in srgb, var(--c) 16%, transparent); stroke-width: 30; stroke-dasharray: none; stroke-linecap: round; stroke-linejoin: round; }
.net.nw .rg.bd { --c: #e8a33d; }

/* A flow along a path: a wide line and an arrow per segment. */
.net.nw .flow .fl { fill: none; stroke: var(--sv-accent); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.net.nw .flow .fa { fill: var(--sv-accent); stroke: #fff; stroke-width: 1.2; }
.net.nw .flow.f2 .fl { stroke: #0f766e; }
.net.nw .flow.f2 .fa { fill: #0f766e; }
