/* NAT and PAT: the lesson's own figures.
   Loads after /slides/slides.css, ../ccna-net.css, ../sites.css, ../company.css and nat.css. */

/* The sections' colours. */
[data-sec="intro"] { --sec: #334155; }
[data-sec="why"] { --sec: #be123c; }
[data-sec="terms"] { --sec: #1d4ed8; }
[data-sec="static"] { --sec: #0f766e; }
[data-sec="dyn"] { --sec: #7c3aed; }
[data-sec="pat"] { --sec: #0a5a8a; }
[data-sec="ios"] { --sec: #b45309; }
[data-sec="lab"] { --sec: #1d8102; }

.pr, .nc, .xe, .cp, .ln { font-size: 13.5px; }
.nc td, .cp td, .cp th, .ln td { white-space: normal !important; }
.nc code { font-size: 12px; }
.cp td { text-align: center; }

/* Many inside addresses, one outside: the drawings of NAT and PAT. */
.net.many { max-height: 300px; }

/* The pool. */
.net.pool { max-height: 300px; }
.net .poolbox { fill: color-mix(in srgb, var(--ig) 6%, #fff); stroke: var(--ig); stroke-width: 1.5; stroke-dasharray: 6 4; }
.net .slot { fill: #fff; stroke: var(--ig); stroke-width: 1.6; }
.net .pool-t { font: 700 12.5px var(--mono); fill: var(--ig); }

/* The four addresses, as a two-by-two grid. */
.terms { border-collapse: separate; border-spacing: 8px; width: 100%; max-width: 760px; }
.terms th { text-align: left; font-size: 15px; vertical-align: top; padding: 8px 6px; }
.terms th small { display: block; font-weight: 400; color: var(--sv-ink2); font-size: 12.5px; margin-top: 2px; }
.terms td { background: color-mix(in srgb, var(--c) 7%, #fff); border: 1.5px solid color-mix(in srgb, var(--c) 45%, transparent); border-radius: 10px; padding: 10px 12px; vertical-align: top; }
.terms td code { display: block; font-size: 15px; font-weight: 700; margin: 7px 0 4px; color: var(--c); }
.terms td span:last-child { font-size: 13px; color: var(--sv-ink2); }

/* The order of operations. */
.net.flowc { max-height: 420px; }
.net .fc rect { fill: #fff; stroke: #33475b; stroke-width: 1.6; }
.net .fc.dec rect { fill: #fff8e6; stroke: #b45309; }
.net .fc-t { font: 600 13px system-ui, sans-serif; fill: var(--sv-ink); }
.net .fc-h { font: 800 14px system-ui, sans-serif; fill: var(--sv-ink); }
.net .fc-n { fill: #0a7bbd; }
.net .fc-nt { font: 800 13px system-ui, sans-serif; fill: #fff; }
.net .fc-yn { font: 700 12px system-ui, sans-serif; fill: var(--sv-ink2); }
