/* Layer 2 Security: the lesson's own figures.
   Loads after /slides/slides.css, ../ccna-net.css, ../campus.css and l2sec.css. */

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

/* The sections' colours. */
[data-sec="intro"] { --sec: #334155; }
[data-sec="ps"] { --sec: #0a5a8a; }
[data-sec="dhcp"] { --sec: #1d8102; }
[data-sec="dai"] { --sec: #7c3aed; }
[data-sec="storm"] { --sec: #b45309; }
[data-sec="ra"] { --sec: #0f766e; }
[data-sec="lab"] { --sec: #be123c; }

.pk, .pv, .st, .cp { font-size: 13.5px; }
.pv td { text-align: center; }
.pv small { color: var(--sv-ink2); font-size: 11.5px; }
.cp td, .cp th { white-space: normal !important; }

/* The err-disabled states. */
.net.states { max-height: 250px; }
.net .st rect { stroke-width: 2.5; }
.net .st text { font: 700 14px system-ui, sans-serif; }
.net .st.ok rect { fill: #eef8ea; stroke: #1d8102; } .net .st.ok text { fill: #145c01; }
.net .st.bad rect { fill: #fde8e6; stroke: #d13212; } .net .st.bad text { fill: #9b1c12; }
.net .st.off rect { fill: #f1f3f5; stroke: #8a96a3; } .net .st.off text { fill: #33475b; }

/* The DHCP exchange, as a ladder. */
.net.ladder { max-height: 320px; }
.net .life { stroke: #c3cbd3; stroke-width: 2; stroke-dasharray: 5 5; }
.net .lifeh { fill: #fff; stroke: #33475b; stroke-width: 1.5; }

/* Option 82, field by field. */
.o82 { display: flex; flex-direction: column; gap: 3px; }
.o82 > small { color: var(--sv-ink2); font-size: 13px; }

/* The address pool. */
.net.pool { max-height: 240px; }
.net .lease-bad { fill: #e5534b; }
.net .lease-free { fill: #fff; stroke: #b9c0c7; stroke-width: 1.2; }

/* ARP: two caches, and ARP messages checked. */
.pair { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.arpc { display: flex; flex-direction: column; gap: 3px; }
.arpc > small { color: var(--sv-ink2); font-size: 13px; }
.arpc > span { font-size: 13.5px; }
.fr.badf .ff { background: #fde8e6; }

/* The storm control chart. */
.net.chart { max-height: 340px; }
.net .axis { stroke: #8a96a3; stroke-width: 1.5; }
.net .bar-fwd { fill: #0a7bbd; }
.net .bar-drop { fill: #fbd5d1; stroke: #d13212; stroke-width: 1.5; stroke-dasharray: 4 3; }
.net .thr { stroke-width: 2; stroke-dasharray: 7 5; }
.net .thr.rise { stroke: #d13212; } .net .thr.fall { stroke: #b45309; }
.net .thr-t { font: 700 12px system-ui, sans-serif; paint-order: stroke; stroke: #f6f7f9; stroke-width: 4px; }
.net .thr-t.rise { fill: #d13212; } .net .thr-t.fall { fill: #b45309; }
.net .sb-fwd { fill: #d8efd0; } .net .sb-block { fill: #f6c3bd; }
.net .strip-t { font: 700 11.5px system-ui, sans-serif; fill: #33475b; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13.5px; }
.legend span { display: flex; align-items: center; gap: 6px; }
.lg { display: inline-block; width: 14px; height: 14px; border-radius: 2px; }
.lg.bar-fwd { background: #0a7bbd; } .lg.bar-drop { background: #fbd5d1; border: 1.5px dashed #d13212; }
