/* The company network (company.js, sections 3.0 to 5.0). Loads after ../ccna-net.css and ../sites.css,
   before the deck's own stylesheet. */

/* One colour per subnet. */
.c-hq { --c: #1d4ed8; } .c-br { --c: #7c3aed; } .c-r13 { --c: #b45309; } .c-r23 { --c: #be123c; }
.c-wan1 { --c: #4b5563; } .c-wan2 { --c: #0e7490; } .c-wan4 { --c: #6b7280; } .c-inet { --c: #6b7280; } .c-r4 { --c: #0f766e; }

/* Kinds of link: the backup way, the virtual gateway's link, a VPN tunnel. */
.net.nw .lk.k-backup { stroke: #64748b; stroke-dasharray: 9 6; }
.net.nw .lk.k-virt { stroke: #94a3b8; stroke-dasharray: 3 4; stroke-width: 2; }
.net.nw .lk.k-tunnel { stroke: color-mix(in srgb, #0f766e 22%, transparent); stroke-width: 20; stroke-linecap: round; }
.net.nw .tun { fill: none; stroke: #0f766e; stroke-width: 2.5; stroke-dasharray: 10 6; stroke-linejoin: round; }

/* The virtual gateway: a ghost router. */
.net.nw .d-ghost { fill: color-mix(in srgb, #0a5a8a 10%, #fff); stroke: #0a5a8a; stroke-width: 2; stroke-dasharray: 5 4; }
.net.nw .d-ghost-x { stroke: #0a5a8a; stroke-width: 2; fill: none; opacity: .6; }

/* OSPF area 0. */
.net.nw .area { fill: color-mix(in srgb, #1d8102 6%, transparent); stroke: #1d8102; stroke-width: 1.5; stroke-dasharray: 8 5; }
.net.nw .lb .an { font: 700 12px system-ui, sans-serif; fill: #1d8102; }
.net.nw .lb .rid { fill: var(--sv-ink); font-weight: 600; }

/* A router's role (DR, BDR, Active, Standby): a line under its name, in the role's colour. */
.net.nw .lb .rl { font: 800 12px system-ui, sans-serif; fill: #475569; }
.net.nw .lb .rl.r-dr, .net.nw .lb .rl.r-act { fill: #1d8102; }
.net.nw .lb .rl.r-bdr, .net.nw .lb .rl.r-stb { fill: #0a7bbd; }
.net.nw .lb .rl.r-oth { fill: #6b7280; }

/* A phone: a wide table scrolls sideways inside its slide, and a figure's boxes may shrink below their content so
   that it can. */
@media (max-width: 860px) {
  .sv-fig table { display: block; overflow-x: auto; max-width: 100%; }
  .sv-fig > *, .sv-fig > * > * { min-width: 0; max-width: 100%; }
}
