/* The CCNA section 2.0 network and its helpers (campus.js), shared by its decks.
   Loads after /slides/slides.css and ../ccna-net.css, before the deck's own stylesheet. */

/* One colour per VLAN, wherever a VLAN is named. */
.v10 { --v: #1d4ed8; } .v20 { --v: #c2410c; } .v30 { --v: #7c3aed; } .v99 { --v: #0f766e; } .v999 { --v: #6b7280; } .v1 { --v: #4b5563; }
.vchip { display: inline-block; padding: 0 7px; border-radius: 9px; background: var(--v); color: #fff; font: 700 12px/18px system-ui, sans-serif; white-space: nowrap; }
.vchip i { font-style: normal; font-weight: 600; opacity: .9; }

/* The network. */
.net.campus { max-height: 330px; }
.net .d-ml { fill: #0a5a8a; }
.net .d-dot { fill: #fff; }
.net .d-hand { fill: none; stroke: #33475b; stroke-width: 3; stroke-linecap: round; }
.net .d-paper, .ico .d-paper { fill: #fff; stroke: #33475b; stroke-width: 1.5; }
.net .d-wave { fill: none; stroke: #33475b; stroke-width: 2; stroke-linecap: round; }
.net .lk.k-access { stroke: var(--v, #8a96a3); stroke-width: 3; }
.net .lk.k-trunk { stroke: #334155; stroke-width: 5; }
.net .lk.k-routed { stroke: #0a5a8a; stroke-width: 3; stroke-dasharray: 9 4; }
.net .lk.k-blocked, .net .lk.k-blocked2 { stroke: #94a3b8; stroke-width: 4; stroke-dasharray: 3 5; }
.net .lk.k-down { stroke: var(--no); stroke-width: 3; stroke-dasharray: 4 4; }
.net .lk.on { stroke: var(--sv-accent); stroke-width: 6; stroke-linecap: round; stroke-dasharray: none; }
.net .lk.on2 { stroke: #0f766e; stroke-width: 6; stroke-linecap: round; stroke-dasharray: none; }
.net .blk { stroke: var(--no); stroke-width: 4; stroke-linecap: round; }
.net .vtag rect { fill: var(--v); }
.net .vtag text { font: 700 10px system-ui, sans-serif; fill: #fff; }
.net .ad.sec { font-family: system-ui, sans-serif; font-weight: 600; fill: var(--sv-accent); }
.net .po ellipse { fill: none; stroke: #b45309; stroke-width: 2.5; }
.net .po text { font: 700 12px system-ui, sans-serif; fill: #b45309; paint-order: stroke; stroke: #fff; stroke-width: 4px; }
.net .zone.vz { fill: color-mix(in srgb, var(--v) 8%, #fff); stroke: var(--v); }
.net .zn.vz { fill: var(--v); }
.net .note.v text { fill: var(--v); }

/* A switch's front panel. */
.panel { background: #fff; border: 1px solid var(--sv-line); border-radius: 10px; padding: 8px 12px; display: flex; flex-direction: column; gap: 6px; }
.panel > b { font-size: 14px; }
.pports { display: flex; flex-wrap: wrap; gap: 6px; }
.pp { display: flex; flex-direction: column; align-items: center; min-width: 56px; padding: 4px 6px; border-radius: 6px; border: 2px solid var(--v, #cbd5e1); background: color-mix(in srgb, var(--v, #fff) 8%, #fff); font-size: 12px; }
.pp i { font: 600 11.5px var(--mono); font-style: normal; }
.pp em { font-style: normal; font-weight: 800; color: var(--v, var(--sv-ink2)); }
.pp small { color: var(--sv-ink2); font-size: 11px; }
.pp.trk { --v: #334155; }
.pp.unused { color: var(--sv-ink2); border-style: dashed; }

/* A frame, field by field. */
.fr { display: flex; flex-wrap: wrap; border-radius: 6px; overflow: hidden; border: 1px solid var(--sv-line); width: fit-content; max-width: 100%; }
.ff { display: flex; flex-direction: column; padding: 5px 10px; background: #fff; border-right: 1px solid var(--sv-line); }
.ff:last-child { border-right: 0; }
.ff small { font-size: 11px; color: var(--sv-ink2); }
.ff code { font-size: 13px; }
.ff.tag { background: #fff4d6; }
.ff.tag code { font-weight: 700; color: #92400e; }
.ff.data { background: #f3f4f6; min-width: 80px; }
.ff.eth { background: #ddf1ee; }

/* Cards: a named thing with its facts, in a grid. */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.card { background: #fff; border: 1px solid var(--sv-line); border-top: 4px solid var(--c, var(--sv-accent)); border-radius: 10px; padding: 9px 12px; display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; }
.card > b { font-size: 15px; }
.card code { font-size: 12.5px; }
.card small { color: var(--sv-ink2); }

/* Worksheets: the cells the student fills in. */
.wk .blank { display: block; min-width: 76px; height: 18px; border-bottom: 1.5px dashed #9ca3af; }
.wk td { padding-top: 4px; padding-bottom: 4px; }
.wk { font-size: 13.5px; }
.tbl code.chg { background: #fff4d6; border-radius: 4px; padding: 0 3px; }
.tbl code.old { color: var(--sv-ink2); }
.ft td { text-align: center; }
.ft tr:last-child th, .ft tr:last-child td { font-weight: 700; font-size: 13px; border-top: 2px solid var(--sv-line); }

/* Two terminals side by side. */
.two-terms { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.two-terms small { display: block; color: var(--sv-ink2); margin-bottom: 3px; }
.two-terms .term { font-size: 11.5px; }
.term { font-size: 12px; }
.term mark, .term .hl { background: #5c4a12; color: #ffe08a; border-radius: 2px; }

@media (max-width: 1100px) { .two-terms { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .tbl { display: block; overflow-x: auto; max-width: 100%; }
}
.net.campus.small { max-height: 190px; }
.net .role circle { fill: var(--rc); stroke: #fff; stroke-width: 2; }
.net .role text { font: 800 11px system-ui, sans-serif; fill: #fff; }
.net .role.r-R { --rc: #1d8102; } .net .role.r-D { --rc: #0a7bbd; } .net .role.r-A { --rc: #d13212; }
.rchip { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; color: #fff; font: 800 11px system-ui, sans-serif; background: var(--rc); }
.rchip.r-R { --rc: #1d8102; } .rchip.r-D { --rc: #0a7bbd; } .rchip.r-A { --rc: #d13212; }
