/* Wireless and Client Troubleshooting: the charts, the ladders and the security drawings.
   Loads after /slides/slides.css, ../ccna-net.css and ../wlan.css. */

.sv-fig { justify-content: flex-start; gap: 14px; }
@media (min-width: 861px) { .sv-side .sv-body { grid-template-columns: minmax(0, 1.9fr) minmax(300px, 1fr); } }

/* The sections' colours. */
[data-sec="intro"] { --sec: #334155; }
[data-sec="radio"] { --sec: #0f766e; }
[data-sec="bands"] { --sec: #7c3aed; }
[data-sec="interference"] { --sec: #b45309; }
[data-sec="wlan"] { --sec: #1d4ed8; }
[data-sec="client"] { --sec: #be123c; }

svg text { font-family: system-ui, sans-serif; }
.ax { stroke: #8a96a3; stroke-width: 1.5; }
.tk { stroke: #8a96a3; stroke-width: 1.5; }
.tkl { font: 11.5px var(--mono); fill: var(--sv-ink2); }
.ah { fill: #545b64; }
.two { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 12px; align-items: start; }
@media (max-width: 1100px) { .two { grid-template-columns: 1fr; } }

/* A radio wave. */
.wavefig { width: 100%; max-height: 312px; }
.wavefig .wv { fill: none; stroke-width: 3; }
.wavefig .wv.w24, .wavefig .br.w24 path { stroke: var(--b24); }
.wavefig .wv.w5, .wavefig .br.w5 path { stroke: var(--b5); }
.wavefig .wl { font-weight: 700; font-size: 14px; }
.wavefig .wl.w24, .wavefig .br.w24 text { fill: var(--b24); }
.wavefig .wl.w5, .wavefig .br.w5 text { fill: var(--b5); }
.wavefig .br path { fill: none; stroke-width: 2; }
.wavefig .br text { font-weight: 700; font-size: 13px; }
.wavefig .amp path { stroke: var(--sv-ink2); stroke-width: 1.5; stroke-dasharray: 3 3; }
.wavefig .amp text { font-size: 12.5px; fill: var(--sv-ink2); }
.wvt td { font-family: var(--mono); font-size: 13px; }

/* The dBm scale. */
.dbmfig { width: 100%; max-height: 260px; }
.dbmfig .mk line { stroke: var(--sv-ink2); stroke-width: 1.5; }
.dbmfig .mk text { font-size: 12.5px; font-weight: 600; fill: var(--sv-ink); }
.dbmfig .mk.g text { fill: var(--ok); } .dbmfig .mk.o text { fill: #b45309; } .dbmfig .mk.r text { fill: var(--no); }
.dbts { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-start; }
.dbt td { font-family: var(--mono); }

/* The range chart: signal against distance. */
.rangefig { width: 100%; max-height: 340px; background: #fff; border: 1px solid var(--sv-line); border-radius: 8px; }
.rangefig .sg { stroke: #eef0f3; }
.rangefig .sa { stroke: #8a96a3; stroke-width: 1.5; }
.rangefig .sy, .rangefig .sx { font: 11px var(--mono); fill: var(--sv-ink2); }
.rangefig .snoise { stroke: #6b7280; stroke-width: 1.5; stroke-dasharray: 6 4; }
.rangefig .snl { font-size: 11.5px; font-weight: 600; fill: var(--sv-ink2); }
.rangefig .cv { fill: none; stroke-width: 3; stroke-linejoin: round; }
.rangefig .cv.c24 { stroke: var(--b24); stroke-dasharray: 7 4; } .rangefig .cv.c5 { stroke: var(--b5); stroke-dasharray: 7 4; } .rangefig .cv.cw { stroke: var(--b24); }
.rangefig .cl { font-size: 12.5px; font-weight: 700; paint-order: stroke; stroke: #fff; stroke-width: 4px; }
.rangefig .cl.c24, .rangefig .cl.cw { fill: var(--b24); } .rangefig .cl.c5 { fill: var(--b5); }
.rangefig .wall line { stroke: #b45309; stroke-width: 2; stroke-dasharray: 2 3; }
.rangefig .wall text { font-size: 11.5px; fill: #92400e; font-weight: 600; }
.rangefig .snr line { stroke: var(--no); stroke-width: 2.5; }
.rangefig .snr circle { fill: var(--no); }
.rangefig .snr text { font-size: 13px; font-weight: 800; fill: var(--no); paint-order: stroke; stroke: #fff; stroke-width: 4px; }

/* The three bands on one axis. */
.bandfig { width: 100%; max-height: 130px; }
.bandfig .bb rect { stroke-width: 1.5; }
.bandfig .b24 rect { fill: color-mix(in srgb, var(--b24) 30%, #fff); stroke: var(--b24); }
.bandfig .b5 rect { fill: color-mix(in srgb, var(--b5) 30%, #fff); stroke: var(--b5); }
.bandfig .b6 rect { fill: color-mix(in srgb, var(--b6) 30%, #fff); stroke: var(--b6); }
.bandfig .bbl { font-size: 13px; font-weight: 800; }
.bandfig .bbl.b24 { fill: var(--b24); } .bandfig .bbl.b5 { fill: var(--b5); } .bandfig .bbl.b6 { fill: var(--b6); }
.bdt td { font-size: 13px; }

/* The 2.4 GHz channels. */
.spec .ovl rect { fill: rgba(209, 50, 18, .12); }
.spec .ovl text { font-size: 12px; font-weight: 800; fill: var(--no); }
.spec .gap path { stroke: var(--ok); stroke-width: 2; }
.spec .gap text { font-size: 11.5px; font-weight: 700; fill: var(--ok); }
.c24t td { font-family: var(--mono); font-size: 13px; }

/* The 5 GHz channels by width. */
.ch5fig { width: 100%; max-height: 250px; }
.ch5fig .c5c rect { fill: color-mix(in srgb, var(--b5) 22%, #fff); stroke: var(--b5); stroke-width: 1; }
.ch5fig .c5c.dfs rect { fill: color-mix(in srgb, #b45309 18%, #fff); stroke: #b45309; }
.ch5fig .c5c text { font: 600 10px var(--mono); fill: var(--sv-ink); }
.ch5fig .c5c.w20 text { font-size: 8.5px; }
.ch5fig .rl { font-size: 12.5px; font-weight: 700; fill: var(--sv-ink); }
.ch5fig .rn { font-size: 11px; fill: var(--sv-ink2); }
.ch5fig .unii path { fill: none; stroke: #8a96a3; stroke-width: 1.5; }
.ch5fig .unii text { font-size: 11.5px; font-weight: 700; fill: var(--sv-ink2); }
.legend { font-size: 13px; color: var(--sv-ink2); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.legend .lg { display: inline-block; width: 16px; height: 12px; border-radius: 3px; background: color-mix(in srgb, var(--b5) 22%, #fff); border: 1px solid var(--b5); margin-left: 8px; }
.legend .lg.dfs { background: color-mix(in srgb, #b45309 18%, #fff); border-color: #b45309; margin-left: 0; }

/* Co-channel, adjacent-channel and clear channels: two cells each. */
.cofig { width: 100%; max-height: 330px; }
.cofig .cell { stroke-width: 1.5; stroke-dasharray: 4 4; }
.cofig .cell.a { fill: rgba(10, 123, 189, .08); stroke: #0a7bbd; }
.cofig .cell.b { fill: rgba(124, 58, 237, .08); stroke: var(--b5); }
.cofig .ok .cell.b { stroke: var(--ok); fill: rgba(29, 129, 2, .07); }
.cofig .d-ap { fill: #0a7bbd; } .cofig .d-wave { fill: none; stroke: #0a7bbd; stroke-width: 2; stroke-linecap: round; }
.cofig .chl { font: 700 12px var(--mono); fill: var(--sv-ink); }
.cofig .h { stroke-width: 2.2; }
.cofig .h.a { fill: rgba(10, 123, 189, .15); stroke: #0a7bbd; }
.cofig .h.b { fill: rgba(124, 58, 237, .15); stroke: var(--b5); }
.cofig .ok .h.b { stroke: var(--ok); fill: rgba(29, 129, 2, .15); }
.cofig .pt { font-size: 14px; font-weight: 800; }
.cofig .co .pt { fill: #b45309; } .cofig .adj .pt { fill: var(--no); } .cofig .ok .pt { fill: var(--ok); }
.cofig .ps { font-size: 12px; fill: var(--sv-ink2); }
.sot td { font-size: 13px; }
.sot td:nth-child(2) { white-space: nowrap; }

/* The WLAN: BSS, ESS and the wired side. */
.wlanfig { max-height: 340px; }
.wlanfig .bss { font-size: 13px; font-weight: 800; }
.wlanfig .bss.c24 { fill: var(--b24); } .wlanfig .bss.c5 { fill: var(--b5); }
.wlanfig .roam path { stroke: var(--sv-accent); stroke-width: 2.5; }
.wlanfig .roam text { font-size: 12px; font-weight: 700; fill: var(--sv-accent); }
.wlanfig .ess { stroke: #64748b; stroke-width: 2; }
.wlanfig .essl { font-size: 12.5px; font-weight: 800; fill: #334155; paint-order: stroke; stroke: var(--sv-bg); stroke-width: 6px; }

/* Joining a WLAN: the ladder of messages. */
.joinfig { width: 100%; max-height: 470px; }
.joinfig .life { stroke: #cbd5e1; stroke-width: 2; }
.joinfig .nm { font-size: 13px; font-weight: 700; fill: var(--sv-ink); }
.joinfig .msgl line { stroke: #545b64; stroke-width: 1.8; }
.joinfig .msgl text { font: 11px var(--mono); fill: var(--sv-ink); paint-order: stroke; stroke: var(--sv-bg); stroke-width: 4px; }
.joinfig .msgl.b line { stroke-dasharray: 4 3; }
.joinfig .msgl.k line { stroke: #1d4ed8; } .joinfig .msgl.k text { fill: #1d4ed8; }
.joinfig .msgl.d line { stroke: #0f766e; } .joinfig .msgl.d text { fill: #0f766e; }
.joinfig .ph path { fill: none; stroke: #8a96a3; stroke-width: 1.5; }
.joinfig .phl { font-size: 12.5px; font-weight: 800; fill: var(--sec, var(--sv-ink)); }

/* WPA2 and WPA3. */
.wpt td { font-size: 13.5px; }

/* Personal and enterprise. */
.pefig { width: 100%; max-height: 320px; }
.net.pefig { max-height: 320px; }
.pefig .pbox { fill: #fff; stroke: var(--sv-line); }
.pefig .ptl { font-size: 14px; font-weight: 800; fill: var(--sec, var(--sv-ink)); }
.pefig .key circle, .pefig .key path { fill: none; stroke: #b45309; stroke-width: 2.2; stroke-linecap: round; }
.pefig .pp { font: 600 12px var(--mono); fill: #92400e; }
.pefig .ps { font-size: 12.5px; fill: var(--sv-ink2); }
.pefig .pm { stroke: #1d4ed8; stroke-width: 2; }
.pefig .pk { stroke: var(--ok); stroke-width: 2; stroke-dasharray: 5 3; }
.pefig .pl { font: 600 11px var(--mono); fill: var(--sv-ink); }

/* A mismatch on the client. */
.mmt td { font-size: 13px; }
.osstack { display: flex; flex-direction: column; gap: 10px; }
.osstack .term { font-size: 11.5px; }
/* A slide whose figure takes the full width, its words under it. */
.sv-stack .sv-text { max-width: 70em; }

/* The troubleshooting ladder. */
.ladder { display: flex; flex-direction: column; gap: 6px; }
.lhead, .rung { display: grid; grid-template-columns: 34px minmax(150px, 1.1fr) repeat(3, minmax(0, 1fr)); gap: 8px; align-items: center; }
.lhead span { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--sv-ink2); }
.rung { background: #fff; border: 1px solid var(--sv-line); border-left: 6px solid var(--c); border-radius: 8px; padding: 8px 10px; }
.rung > b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--c); color: #fff; }
.rung strong { display: block; color: var(--c); }
.rung small { display: block; color: var(--sv-ink2); font-size: 12.5px; }
.rung code { font-size: 12.5px; background: #f3f4f6; border-radius: 4px; padding: 3px 6px; overflow-wrap: anywhere; }
.r-link { --c: #475569; } .r-ip { --c: #0f766e; } .r-gw { --c: #1d4ed8; } .r-dns { --c: #be123c; }
.lfoot { font-size: 13px; color: var(--sv-ink2); }
@media (max-width: 860px) {
  .lhead { display: none; }
  .rung { grid-template-columns: 30px 1fr; }
  .rung code { grid-column: 2; }
}

/* Each rung failing. */
.fails { display: flex; flex-direction: column; gap: 8px; }
.fl > b { display: inline-block; color: #fff; background: var(--c); border-radius: 6px 6px 0 0; padding: 1px 10px; font-size: 12.5px; }
.fl .term { border-top-left-radius: 0; font-size: 11.5px; }

.ant td, .lnt td { font-size: 13px; }

@media (max-width: 860px) {
  .tbl { display: block; overflow-x: auto; max-width: 100%; }
}

/* A slide whose figure takes the full width: its words follow straight under it. */
.sv-stack .sv-body { align-content: start; }
