.routing-reading{max-width:1000px}.routing-reading .lead{font-size:18px;color:var(--ink-soft)}.routing-reading h2{margin-top:2em;line-height:1.3}.routing-reading h3{margin-top:1.5em}.routing-reading section[id],.routing-reading h2[id]{scroll-margin-top:24px}.routing-reading .callout,.routing-reading details{border:1px solid var(--line);border-radius:10px;padding:18px 22px;margin:22px 0;background:var(--surface-soft)}.routing-reading summary{font-weight:600;cursor:pointer}.routing-reading .callout{border-left:4px solid var(--accent)}.routing-reading .callout h3{margin-top:0}.routing-reading .roadmap{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));list-style:none;padding:0;gap:14px}.routing-reading .roadmap li{border:1px solid var(--line);border-radius:10px;padding:20px}.routing-reading .roadmap a{font-weight:650}.routing-reading .roadmap p{margin-bottom:0}.routing-reading .source-note{font-size:13px;color:var(--muted);margin-top:32px;border-top:1px solid var(--line);padding-top:16px}.routing-reading th{background:var(--surface-soft)}.routing-reading figure{margin:24px 0}.routing-reading figcaption{color:var(--muted);font-size:13px;margin-top:10px}.network-scroll{overflow-x:auto;border:1px solid var(--line);border-radius:12px;background:#f8fafc}.network-svg{display:block;width:100%;min-width:620px;height:auto}.network-svg .edge{stroke:#a6b4c6;stroke-width:3;fill:none}.network-svg .edge.active{stroke:#1a73e8;stroke-width:5}.network-svg .edge.failed{stroke:#b3261e;stroke-dasharray:7 6}.network-svg .edge.lsa{stroke:#8e44ad;stroke-width:5;stroke-dasharray:9 5}.network-svg .node circle,.network-svg .node rect{fill:white;stroke:#8b9db3;stroke-width:2}.network-svg .node.visited circle{fill:#e2f3e9;stroke:#18794e}.network-svg .node.current circle,.network-svg .node.current rect{fill:#e7f0ff;stroke:#1a73e8;stroke-width:3}.network-svg .node text{fill:#1f2937;font-size:16px;font-weight:650;text-anchor:middle}.network-svg .link-label{fill:#526276;font-size:12px;text-anchor:middle;paint-order:stroke;stroke:#f8fafc;stroke-width:6px;stroke-linejoin:round}.network-svg .packet{fill:#1a73e8;stroke:white;stroke-width:3;transition:cx .6s ease,cy .6s ease}.network-svg .packet.dropped{fill:#b3261e}.lab-panel{border:1px solid #dce4ee;border-radius:12px;padding:24px;margin:30px 0}.lab-panel>h2{margin-top:0}.lab-panel .controls,.routing-reading .actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:18px 0}.lab-panel label{display:flex;flex-direction:column;gap:5px;font-size:13px;font-weight:600;flex:1;min-width:150px}.lab-panel select,.lab-panel input{font:inherit;padding:9px 10px;border:1px solid #9baaba;background:white;color:var(--ink);border-radius:6px;max-width:100%;min-width:0}.lab-panel select:focus-visible{outline:3px solid #81b4f5;outline-offset:3px}.lab-panel button:disabled{opacity:.45;cursor:default}.lab-panel .step-count{font-size:13px;font-weight:650;color:var(--muted);margin-left:auto}.lab-status{min-height:4.8em;padding:16px 18px;border-left:3px solid var(--accent);background:#edf4ff;border-radius:4px;margin:18px 0}.lab-status.error{background:#fff0ef;border-color:#b3261e}.packet-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.packet-fields div{border:1px solid var(--line);border-radius:8px;padding:14px}.packet-fields dt{font-size:12px;color:var(--muted);font-weight:600}.packet-fields dd{font-family:Consolas,monospace;font-size:13px;overflow-wrap:anywhere;margin:6px 0 0}.lab-panel tr.winner{background:#e2f3e9;font-weight:650}.lab-panel tr.match{background:#edf4ff}.lab-panel .jump-links{display:flex;flex-wrap:wrap;gap:14px}.lab-panel .legend{font-size:13px;color:var(--muted)}.routing-reading noscript{display:block;padding:18px;background:#fff4d6}.diagram-code{font-size:12px}.routing-reading .lesson-outline ol{padding-left:22px}@media(max-width:600px){.lab-panel{padding:16px 12px}.packet-fields{grid-template-columns:1fr}.lab-panel .step-count{margin-left:0;width:100%}.routing-reading .lead{font-size:16px}.lab-status{min-height:0}.routing-reading .callout{padding:16px}}@media(prefers-reduced-motion:reduce){.network-svg .packet{transition:none}}@media print{.lab-panel .controls,.lab-panel .actions{display:none}.network-svg{min-width:0}.network-scroll{overflow:visible}.routing-reading details>*{display:block}.routing-reading{max-width:none}.lab-panel{break-inside:avoid}pre{white-space:pre-wrap}}
/* Embedded visual lessons and the final protocol playground. */
.lab-panel [hidden]{display:none!important}.visual-network{min-width:700px}.visual-table{overflow-x:auto}.visual-table caption{text-align:left;font-size:13px;color:var(--muted);padding:8px}.visual-table th{white-space:nowrap}.routing-reading .visual-bridge{border-left:4px solid #18794e;padding:12px 18px;background:var(--surface-soft);margin:20px 0}.lab-panel button:focus-visible{outline:3px solid #81b4f5;outline-offset:3px}
.routing-transition p{margin-block:.55em}.routing-transition h2{margin-block:1.35em .4em}.routing-transition h3{margin-block:1em .35em}.routing-transition .network-scroll{margin-block:.8em}
