/* The Routing Table: the lesson's own figures.
   Loads after /slides/slides.css, ../ccna-net.css, ../sites.css, ../company.css and rtable.css. */

/* The sections' colours. */
[data-sec="intro"] { --sec: #334155; }
[data-sec="table"] { --sec: #0a5a8a; }
[data-sec="choose"] { --sec: #b45309; }
[data-sec="default"] { --sec: #4b5563; }
[data-sec="ipv6"] { --sec: #7c3aed; }
[data-sec="walk"] { --sec: #0f766e; }
[data-sec="lab"] { --sec: #be123c; }

svg .m { font-family: var(--mono); font-size: 13px; fill: var(--sv-ink); }
svg .m.b { font-weight: 700; font-size: 15px; }

/* A router taking a packet. */
.rt-what { width: 100%; max-height: 380px; }
.rt-what .rbox { fill: #f2f6fa; stroke: #0a5a8a; stroke-width: 2.5; }
.rt-what .rname { font: 800 16px system-ui, sans-serif; fill: #0a5a8a; }
.rt-what .th { font: 700 11.5px system-ui, sans-serif; fill: var(--sv-ink2); text-transform: uppercase; letter-spacing: .04em; }
.rt-what .tr rect { fill: #fff; stroke: #dde3ea; }
.rt-what .tr.lit rect { fill: #fff4d6; stroke: #b45309; stroke-width: 2; }
.rt-what .tr.lit .m { font-weight: 700; }
.rt-what .pkt rect { fill: #fff8db; stroke: #b45309; stroke-width: 1.8; }
.rt-what .pl { font: 600 12px system-ui, sans-serif; fill: var(--sv-ink2); }
.rt-what .arw { fill: none; stroke: #8a96a3; stroke-width: 3; marker-end: url(#wah); }
.rt-what .arw.lit { stroke: #b45309; stroke-width: 4; marker-end: url(#wah2); }
.rt-what .dimout { opacity: .4; }
.rt-what .port { font: 12px var(--mono); fill: var(--sv-ink2); }
.rt-what .nb { font: 700 14px system-ui, sans-serif; fill: var(--sv-ink); }

/* Forwarding one packet: the frame in, the steps, the frame out. */
.fwd { display: flex; flex-direction: column; gap: 8px; max-width: 720px; }
.fl-lbl { font-size: 12.5px; font-weight: 700; color: var(--sv-ink2); text-transform: uppercase; letter-spacing: .04em; }
.frm { display: grid; grid-template-columns: 1.5fr 1.6fr .6fr .35fr; border-radius: 8px; overflow: hidden; border: 1px solid var(--sv-line); }
.frm > span { padding: 6px 10px; display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.frm small { font: 11.5px var(--mono); }
.frm .f2 { background: color-mix(in srgb, var(--l2) 14%, #fff); }
.frm .f3 { background: color-mix(in srgb, var(--l3) 12%, #fff); }
.frm .fd { background: #fff; color: var(--sv-ink2); }
.frm .fcs { justify-content: center; font-weight: 700; }
.frm.out .f2 small { color: var(--l2); font-weight: 700; }
.steps { list-style: none; margin: 0; padding: 4px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; }
.steps li { display: flex; gap: 8px; align-items: baseline; font-size: 14px; }
.sn { flex: none; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #0a5a8a; color: #fff; font-size: 12px; font-weight: 800; }

/* The codes. */
.codes { font-size: 13.5px; }
.codes td:nth-child(3) { font-family: var(--mono); text-align: center; }

/* One route line, field by field. */
.anat { display: flex; flex-direction: column; gap: 6px; }
.anat-tag { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--sv-ink2); margin-top: 14px; }
.anat-row { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: flex-start; }
.fld { display: flex; flex-direction: column; gap: 4px; }
.fld code { font-size: 16px; padding: 4px 6px; border-bottom: 4px solid var(--k); background: #fff; border-radius: 4px 4px 0 0; white-space: nowrap; }
.fld small { font-size: 12px; font-weight: 700; color: var(--k); max-width: 150px; }
.k1 { --k: #4b5563; } .k2 { --k: #1d4ed8; } .k3 { --k: #b45309; } .k4 { --k: #0f766e; } .k5 { --k: #6b7280; } .k6 { --k: #7c3aed; }
.fld .ad { color: #b45309; } .fld .mt { color: #be123c; }

/* Connected and local. */
.conn { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.pick .arr.big, .conn .arr.big { align-self: auto; margin-left: 150px; }
.ifc { display: flex; flex-direction: column; gap: 3px; border: 2px solid #0a5a8a; border-radius: 10px; padding: 8px 14px; background: #fff; }
.ifc code { font-size: 13px; }
.cls { display: flex; gap: 12px; flex-wrap: wrap; }
.cl { display: flex; flex-direction: column; gap: 3px; border-radius: 10px; padding: 8px 14px; background: #fff; border: 2px solid var(--k); max-width: 260px; }
.cl .cc { font-weight: 800; color: var(--k); font-size: 15px; }
.cl .cp { font-size: 15px; }
.cl small { color: var(--sv-ink2); font-size: 12.5px; }
.cC { --k: #1d4ed8; } .cL { --k: #0f766e; }

/* Longest prefix match: nested ranges. */
.lpm { width: 100%; max-height: 400px; }
.lpm .bar { stroke-width: 1.5; }
.lpm .b0 { fill: #eef0f3; stroke: #9ca3af; }
.lpm .b24 { fill: #dbe6fb; stroke: #1d4ed8; }
.lpm .b26 { fill: #e9f3e3; stroke: #1d8102; }
.lpm .b32 { fill: #fbe4d5; stroke: #b45309; }
.lpm .bl { font: 600 13px var(--mono); fill: var(--sv-ink); }
.lpm .bl.out { paint-order: stroke; stroke: var(--sv-bg, #f6f7f9); stroke-width: 5px; stroke-linejoin: round; }
.lpm .ax { stroke: #8a96a3; stroke-width: 1.5; fill: none; }
.lpm .tk { font: 11px var(--mono); fill: var(--sv-ink2); text-anchor: middle; }
.lpm .dl { stroke: #be123c; stroke-width: 1.5; stroke-dasharray: 4 4; }
.lpm .win { fill: #be123c; stroke: #fff; stroke-width: 2; }
.lpm .dn { font: 700 12px system-ui, sans-serif; fill: #be123c; text-anchor: middle; }
.lpm .dn.m { font: 11px var(--mono); }

/* The match in bits. */
.bits { font-size: 14px; }
.bits td.bit { font: 700 15px var(--mono); text-align: center; padding: 6px 5px; }
.bits td.b24 { font-family: var(--mono); color: var(--sv-ink2); }
.bits td.eq { background: #e3f1dc; color: #1d6b02; }
.bits td.ne { background: #fbe0db; color: #b42318; }
.bits td.x { color: #c3cad2; }
.bits td.d { background: #fff4d6; }
.bits tr.dst th, .bits tr.dst td { border-bottom: 2px solid var(--sv-line); }
.bits td.res { white-space: nowrap; }

/* The administrative distance ladder. */
.adl { width: 100%; max-height: 430px; }
.adl .ax { stroke: #8a96a3; stroke-width: 3; }
.adl .side { font: 700 12.5px system-ui, sans-serif; fill: var(--sv-ink2); }
.adl .trust { stroke: #1d8102; stroke-width: 2.5; fill: none; }
.adl .rg { stroke: #0a5a8a; stroke-width: 2; fill: none; }
.adl .rg.no { stroke: var(--no); }
.adl .rv.no, .adl .rn.no { fill: var(--no); }
.adl .rv { font: 700 15px var(--mono); fill: #0a5a8a; }
.adl .rn { font: 600 15px system-ui, sans-serif; fill: var(--sv-ink); }

/* Two sources offer one prefix. */
.pick { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.cand { display: flex; flex-direction: column; gap: 3px; border-radius: 10px; padding: 8px 14px; background: #fff; border: 2px solid; }
.cand code { font-size: 14px; }
.cand small { font-weight: 700; color: var(--sv-ink2); }
.cand span { font-size: 13px; font-weight: 700; }
.cand.win { border-color: var(--ok); } .cand.win span { color: var(--ok); }
.cand.lose { border-color: #c3cad2; } .cand.lose code { text-decoration: line-through; color: var(--sv-ink2); } .cand.lose span { color: var(--no); }

/* The flowchart. */
.flowc { width: 100%; max-height: 560px; }
.flowc .fb { fill: #fff; stroke: #8a96a3; stroke-width: 1.8; }
.flowc .fb.start { stroke: #334155; }
.flowc .fb.stop { fill: #fdecea; stroke: var(--no); }
.flowc .fb.tb { fill: #fff4d6; stroke: #b45309; }
.flowc .fb.go { fill: #e9f3e3; stroke: var(--ok); }
.flowc .fd { fill: #f2f6fa; stroke: #0a5a8a; stroke-width: 1.8; }
.flowc .ft { font: 600 13.5px system-ui, sans-serif; fill: var(--sv-ink); }
.flowc .fa { fill: none; stroke: #4b5563; stroke-width: 2; marker-end: url(#fah); }
.flowc .fyn { font: 700 12px system-ui, sans-serif; fill: var(--sv-ink2); }
.flowc .brk { fill: none; stroke: #b45309; stroke-width: 2.5; }
.flowc .bt { font: 700 12.5px system-ui, sans-serif; fill: #b45309; }

/* Notes on the network drawn large enough to read beside a table. */
.net.nw.bn .note text { font-size: 18px; }
