/* IPv4 Access Control Lists: the lesson's own figures.
   Loads after /slides/slides.css, ../ccna-net.css, ../sites.css, ../company.css and acl-draw.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="walk"] { --sec: #1d8102; }
[data-sec="wild"] { --sec: #1d4ed8; }
[data-sec="kinds"] { --sec: #7c3aed; }
[data-sec="apply"] { --sec: #0a5a8a; }
[data-sec="verify"] { --sec: #be123c; }

/* A TCP exchange through R1's inbound ACL, as a sequence diagram. */
.seqd { width: 100%; max-width: 640px; }
.seqd .sq-life { stroke: #c3cad2; stroke-width: 2; stroke-dasharray: 4 4; }
.seqd .sq-life.acl { stroke: #0a5a8a; stroke-width: 6; stroke-dasharray: none; opacity: .25; }
.seqd .sq-h { font: 700 13px system-ui, sans-serif; fill: var(--sv-ink); }
.seqd .sq-l { stroke: #64748b; stroke-width: 2.5; fill: none; }
.seqd .sq-a { fill: #64748b; }
.seqd .sq-l.pass { stroke: var(--permit); } .seqd .sq-a.pass { fill: var(--permit); }
.seqd .sq-l.drop { stroke: var(--deny); stroke-dasharray: 6 4; } .seqd .sq-a.drop { fill: var(--deny); }
.seqd .sq-t { font: 12px var(--mono); fill: var(--sv-ink); paint-order: stroke; stroke: var(--sv-bg, #f6f7f9); stroke-width: 4px; }
.seqd .sq-v { font: 700 12px system-ui, sans-serif; }
.seqd .sq-v.pass { fill: var(--permit); } .seqd .sq-v.drop { fill: var(--deny); }

/* The router's order of steps: five columns, two packets through them. */
.pipe { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px 8px; align-items: stretch; max-width: 760px; }
.pp-h { display: flex; gap: 6px; align-items: center; font-size: 12.5px; font-weight: 700; color: var(--sv-ink); }
.pp-h b { display: inline-grid; place-items: center; flex: none; width: 20px; height: 20px; border-radius: 50%; background: #334155; color: #fff; font-size: 11px; }
.pp-t { grid-column: 1 / -1; margin: 8px 0 0; font-size: 13.5px; }
.pp-s { display: flex; flex-direction: column; gap: 3px; border-radius: 8px; padding: 7px 9px; background: #fff; border: 2px solid #94a3b8; font-size: 12.5px; min-width: 0; }
.pp-s b:empty { display: none; }
.pp-s code { font-size: 11.5px; overflow-wrap: anywhere; }
.pp-s.acl { border-color: #1d8102; background: color-mix(in srgb, #1d8102 7%, #fff); }
.pp-s.nat { border-color: #b45309; background: color-mix(in srgb, #b45309 7%, #fff); }
.pp-s.rt { border-color: #1d4ed8; background: color-mix(in srgb, #1d4ed8 6%, #fff); }
.pp-s.gap { border: 2px dashed #cbd2da; background: transparent; color: #9aa3ad; justify-content: center; text-align: center; }
@media (max-width: 860px) { .pipe { grid-template-columns: repeat(5, minmax(56px, 1fr)); overflow-x: auto; } .pp-h { font-size: 11px; } }

/* The interface and direction slots. */
.slots td { text-align: center; min-width: 110px; }
.slots .empty { color: #b0b7c0; }
.fl { font-size: 13.5px; }
