/* What the two decks of lesson 4.5 share (l2sec.js): the close-up of an access
   switch, the arrows of a message, the trust badges, the small tables.
   Loads after ../campus.css, before the deck's own stylesheet. */

.net.edge { max-height: 360px; width: 100%; }
.net.edge .port { stroke: #f6f7f9; }
.net .tb rect { stroke: #fff; stroke-width: 2; }
.net .tb text { font: 800 12px system-ui, sans-serif; fill: #fff; }
.net .tb.t-T rect { fill: #1d8102; }
.net .tb.t-U rect { fill: #c2410c; }

/* A message's way. */
.net .flow { --fc: #0a7bbd; }
.net .flow.f-bad { --fc: #d13212; }
.net .flow.f-gray { --fc: #8a96a3; }
.net .flow.f-ok { --fc: #0a7bbd; }
.net .flow path { fill: none; stroke: var(--fc); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.net .flow path.dash { stroke-dasharray: 8 6; }
.net .flow polygon { fill: var(--fc); }
.net .flow text { font: 700 12px system-ui, sans-serif; fill: var(--fc); paint-order: stroke; stroke: #fff; stroke-width: 4px; }

/* A small table beside a drawing. */
.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-family: var(--mono); font-size: 12.5px; white-space: nowrap; }
.mini tr.new td { background: #fff4d6; }
.mini tr.bad td { background: #fde8e6; color: #9b1c12; }
.mini tr.fake td { color: #9b1c12; }
.mini tr.gap td { color: var(--sv-ink2); text-align: center; }
.mini.bad { border-color: #e5534b; }

/* Two things side by side: a drawing and a table, or two tables. */
.duo { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.duo > * { min-width: 0; }
@media (max-width: 1100px) { .duo { grid-template-columns: 1fr; } }
.net .port.pl { font-weight: 600; stroke-width: 5px; }

/* A log line is one long line: it wraps rather than scrolls out of sight. */
.term { white-space: pre-wrap; overflow-wrap: anywhere; }
