/* Lab 3: Subnet, then Repair: the worksheets, the number lines, the terminals and Packet Tracer's DNS list.
   Loads after /slides/slides.css, ../ccna-net.css and ../sites.css. */

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

/* The sections' colours. */
[data-sec="intro"] { --sec: #334155; }
[data-sec="design"] { --sec: #7c3aed; }
[data-sec="build"] { --sec: #1d4ed8; }
[data-sec="verify"] { --sec: #0f766e; }
[data-sec="faults"] { --sec: #be123c; }

svg text { font-family: system-ui, sans-serif; }
.term { font-size: 12px; }
.term mark { background: #5a4a12; color: #ffe08a; border-radius: 3px; padding: 0 2px; }
.term.bad mark { background: #6b1f1a; color: #ffc4bd; }
.term.ok mark { background: #2f4a12; color: #d6f5a8; }

/* Worksheets: the cells the student fills in. */
.wk .blank { display: block; min-width: 76px; height: 18px; border-bottom: 1.5px dashed #9ca3af; }
.wk td, .wk th { padding-top: 4px; padding-bottom: 4px; }
.wk, .plan, .cables { font-size: 13.5px; }
.ladder td { text-align: center; }
.ft td { text-align: center; }
.ft tr:nth-last-child(-n+2) th, .ft tr:nth-last-child(-n+2) td { font-weight: 700; font-size: 13px; }
.ft tr:nth-last-child(2) th, .ft tr:nth-last-child(2) td { border-top: 2px solid var(--sv-line); }

/* The number line over the last octet. */
.line { width: 100%; max-width: 800px; display: block; }
.line .seg { fill: color-mix(in srgb, var(--c, #6b7280) 16%, #fff); stroke: var(--c, #6b7280); stroke-width: 1.5; }
.line .seg.free { fill: #fff; stroke: #9ca3af; stroke-dasharray: 4 3; }
.line .seg.empty { fill: #fff; stroke: #9ca3af; }
.line .sl { font-size: 14px; font-weight: 700; fill: var(--c, var(--sv-ink)); }
.line .sl.sm { font-size: 13px; }
.line .ss { font: 12.5px var(--mono); fill: var(--sv-ink2); }
.line .tk { stroke: #9ca3af; }
.line .tn { font: 12px var(--mono); fill: var(--sv-ink2); }
.line .lt { font-size: 14px; font-weight: 700; fill: var(--sv-ink); }
.line .lead { stroke: var(--c, #9ca3af); stroke-width: 1.2; }

/* Terminals side by side, stacked. */
.two { display: flex; flex-direction: column; gap: 8px; }
.two small { display: block; color: var(--sv-ink2); margin-bottom: 3px; font-weight: 700; }
.two .term { font-size: 11.5px; }

/* Packet Tracer's DNS list, drawn. */
.ptwin { background: #fff; border: 1px solid #94a3b8; border-radius: 6px; padding: 10px 14px; display: flex; flex-direction: column; gap: 8px; max-width: 460px; font-size: 13.5px; }
.pw-title { font-size: 14px; color: #0a3d62; }
.pw-list { border-collapse: collapse; font-size: 12.5px; }
.pw-list th, .pw-list td { border: 1px solid #cbd5e1; padding: 2px 10px; text-align: left; }
.pw-list th { background: #f1f5f9; font-weight: 600; }

/* A cropped network at a middle size, beside a table. */
.net.nw.mid { max-height: 440px; }

@media (max-width: 860px) {
  .tbl { display: block; overflow-x: auto; max-width: 100%; }
}
