/* What the two decks of lesson 4.1 share (da.js): marked terminals, the message ladder, the sniffer's view,
   Packet Tracer's AAA window, the small tables. Loads after ../company.css, before the deck's own stylesheet. */

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

.term mark { background: #5c4a12; color: #ffe08a; border-radius: 2px; }
.term { white-space: pre-wrap; overflow-wrap: anywhere; }
.named small, .stack small { display: block; color: var(--sv-ink2); font-size: 13px; margin-bottom: 3px; }
.stack { display: flex; flex-direction: column; gap: 8px; }
.duo { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.duo > * { min-width: 0; flex: 1 1 300px; }

/* The ladder. */
.net.ladder { width: 100%; max-height: 520px; }
.net .life { stroke: #c3cbd3; stroke-width: 2; stroke-dasharray: 5 5; }
.net .lifeh { fill: #fff; stroke: #8795a3; stroke-width: 1.5; }
.net .lh-n { font: 700 15px system-ui, sans-serif; fill: var(--sv-ink); }
.net .lh-s { font: 11.5px var(--mono); fill: var(--sv-ink2); }
.net .msg line { stroke: #0a7bbd; stroke-width: 2.5; }
.net .msg polygon { fill: #0a7bbd; }
.net .msg .mt { font: 700 14px system-ui, sans-serif; fill: var(--sv-ink); }
.net .msg .ms { font: 12.5px var(--mono); fill: var(--sv-ink2); }
.net .msg.enc line { stroke: #1d8102; } .net .msg.enc polygon { fill: #1d8102; }
.net .msg.tcp line { stroke: #8a96a3; stroke-dasharray: 5 4; } .net .msg.tcp polygon { fill: #8a96a3; }
.net .msg.bad line { stroke: #d13212; } .net .msg.bad polygon { fill: #d13212; } .net .msg.bad .mt { fill: #9b1c12; }
.net .msg.acct line { stroke: #7c3aed; } .net .msg.acct polygon { fill: #7c3aed; }
.net .nb { fill: #fff; stroke: currentColor; stroke-width: 1.5; color: #33475b; }
.net .nn { font: 700 11px system-ui, sans-serif; fill: #33475b; }
.net .band { stroke-width: 1.2; stroke-dasharray: 5 4; }
.net .band.enc { fill: color-mix(in srgb, #1d8102 8%, transparent); stroke: #1d8102; }
.net .band.tac { fill: color-mix(in srgb, #0a5a8a 8%, transparent); stroke: #0a5a8a; }
.net .band-t { font: 700 11.5px system-ui, sans-serif; }
.net .band-t.enc { fill: #1d8102; } .net .band-t.tac { fill: #0a5a8a; }

/* What a sniffer reads. */
.sniff { background: #fff; border: 1px solid var(--sv-line); border-radius: 10px; padding: 8px 12px; display: flex; flex-direction: column; gap: 3px; }
.sniff > small { color: var(--sv-ink2); font-size: 12.5px; }
.sniff .sn-rows { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; }
.sniff code { font-size: 12px; padding: 1px 6px; border-radius: 3px; white-space: pre-wrap; overflow-wrap: anywhere; }
.sniff code.rd { background: #f3f4f6; color: #1f2937; }
.sniff code.sec { background: #fde8e6; color: #9b1c12; font-weight: 700; }
.sniff code.gib { background: #e8f3e3; color: #4b6b40; letter-spacing: .02em; }
.sniff.bad { border-color: #e5534b; } .sniff.good { border-color: #1d8102; }

/* Packet Tracer's AAA window, drawn. */
.ptwin { background: #fff; border: 1px solid #94a3b8; border-radius: 6px; padding: 10px 14px; display: flex; flex-direction: column; gap: 6px; max-width: 640px; font-size: 13px; }
.pw-title { font-size: 14px; color: #0a3d62; }
.pw-h { font-style: normal; font-weight: 700; font-size: 12.5px; color: #33475b; margin-top: 4px; }
.pw-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pw-port { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.radio { padding: 1px 10px; border: 1px solid #94a3b8; border-radius: 10px; font-size: 12px; color: var(--sv-ink2); }
.radio.on { background: #0a3d62; color: #fff; border-color: #0a3d62; }
.field { border: 1px solid #94a3b8; border-radius: 3px; padding: 1px 6px; background: #f8fafc; font-size: 12px; }
.btn { border: 1px solid #64748b; border-radius: 4px; padding: 1px 10px; background: #e2e8f0; font-size: 12px; }
.pw-list { border-collapse: collapse; font-size: 12px; }
.pw-list th, .pw-list td { border: 1px solid #cbd5e1; padding: 2px 9px; text-align: left; font-family: var(--mono); }
.pw-list th { background: #f1f5f9; font-weight: 600; font-family: system-ui, sans-serif; }
.pw-list tr.new td { background: #fff4d6; }
.pw-list tr.bad td { background: #fde8e6; color: #9b1c12; }

/* A small table with a title. */
.mini { background: #fff; border: 1px solid var(--sv-line); border-radius: 10px; padding: 8px 12px; font-size: 13px; width: fit-content; max-width: 100%; overflow-x: auto; }
.mini > b { display: block; font-size: 13.5px; margin-bottom: 4px; }
.mini table { border-collapse: collapse; }
.mini th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--sv-ink2); padding: 2px 10px 4px 0; }
.mini td { padding: 3px 10px 3px 0; border-top: 1px solid #eef0f3; font-size: 13px; }
.mini tr.new td { background: #fff4d6; }
.mini tr.bad td { background: #fde8e6; color: #9b1c12; }

/* A worksheet: dashed blank cells to copy and fill. */
.wk .blank { display: block; min-width: 76px; height: 18px; border-bottom: 1.5px dashed #9ca3af; }
