/* StepLab: stp-lab2 (lesson.css, kit 2.0.7) */
/* STP ステップラボ: what the topic adds to the kit's diagram parts (2026-10-21: 図を見るだけで分かる版). Colours are the kit's. */
/* the legend's blocked port: the role's orange circle with a white × (lines) */
.sl-root .lg-bc{fill:var(--role-b)}
.sl-root .lg-bx{fill:none;stroke:var(--on-role);stroke-width:2.4;stroke-linecap:round}
/* the cut mark's lightning bolt (the blocked port has the ×) */
.sl-root .stp-cut-bolt{fill:var(--try);stroke:none}
/* the two paths to a switch (ルートポート, 2026-10-29): bands under the links in two colours, and the sums in the same colours */
.sl-root .stp-path polyline{fill:none;stroke-width:14;stroke-linecap:round;stroke-linejoin:round;opacity:.38}
.sl-root .stp-pa polyline{stroke:var(--vlan-1)}
.sl-root .stp-pb polyline{stroke:var(--vlan-2)}
.sl-root .stp-path-in{animation:stp-in .45s ease-out}
@keyframes stp-in{from{opacity:0}to{opacity:1}}
.sl-root .lbl.stp-pa rect{stroke:var(--vlan-1);stroke-width:2.2}
.sl-root .lbl.stp-pb rect{stroke:var(--vlan-2);stroke-width:2.2}
/* (2026-11-22, UI review round 2) the sum of the path that lost: kept to the end of its step, dashed and plain */
.sl-root .lbl.lose rect{fill:var(--surface);stroke:var(--line-strong);stroke-dasharray:3 2}
.sl-root .lbl.lose text{fill:var(--ink-3);font-weight:600}
.sl-root .lg-pa,.sl-root .lg-pb{fill:none;stroke-width:5;stroke-linecap:round;opacity:.6}
.sl-root .lg-pa{stroke:var(--vlan-1)}
.sl-root .lg-pb{stroke:var(--vlan-2)}
/* the root path cost a BPDU carries (ルートポート): a tag under it, as the sums are drawn (2026-10-29) */
.sl-root .pkc rect,.sl-root .lg-pkc{fill:var(--accent-soft);stroke:var(--accent-line);stroke-width:1.2}
.sl-root .pkc text{fill:var(--role-r);font-family:var(--font-mono);font-weight:700}
/* the STP timer card: the port it runs for, and 「8倍速」 in the lesson's font (2026-10-29) */
.sl-root .tmc-port{fill:var(--ink-3);font-weight:400}
.sl-root .tmc-ff text{font-family:var(--font-ui)}
/* the host picked out (it sends the next broadcast): 07-style-diorama.html (.term.stp-hl .pc-frame) */
/* a frame's word (「コピー」「届く」「止まる」「無視」) on a pill of the drawing's ground, readable over a cable or a storm's links */
.sl-root .pk-tag-bg{fill:var(--surface);opacity:.94}
/* a token's words go while they would lie over a device, and fade back in (21-diagram.js clearWords: B12) */
@media (prefers-reduced-motion:no-preference){.sl-root .pkl,.sl-root .pk-tag-bg,.sl-root .pkc{transition:opacity .15s}}
.sl-root .pk-hide>.pkl,.sl-root .pk-hide>.pk-tag-bg,.sl-root .pk-hide>.pkc{opacity:0;transition:none}
/* a broadcast storm fills the ring's links (なぜ必要？, 2026-10-29) */
.sl-root .lk.stp-busy1{stroke:var(--loop);stroke-width:5}
.sl-root .lk.stp-busy2{stroke:var(--loop);stroke-width:8}
.sl-root .lk.stp-busy3{stroke:var(--loop);stroke-width:11}
.sl-root .lg-busy{fill:none;stroke:var(--loop);stroke-width:6;stroke-linecap:round}
/* the legend's loop: the orange glow around the links (なぜ必要？) */
.sl-root .lg-loop{fill:none;stroke:var(--loop);stroke-width:6;stroke-linecap:round;opacity:.45}
/* a sender port ID compared on a tie (ルートブリッジへの経路, when the cost and the sender BID are equal) */
.sl-root .lbl-pid rect{fill:var(--surface);stroke:var(--line-strong)}
.sl-root .lbl-pid text{fill:var(--ink-2);font-family:var(--font-mono);font-weight:700}
.sl-root .lbl-pid.hl rect{fill:var(--accent);stroke:var(--accent)}
.sl-root .lbl-pid.hl text{fill:var(--on-accent)}
.sl-root .lg-pid{font-family:var(--font-mono)}
/* 実験ラボ: the result in one table (each switch: its bridge ID, its cost to the root, the role of P1 and P2), under the
   diagram with the commands and the reasons (data-lab-below; デザインガイドの0章の13) */
.sl-root .res-tbl{width:100%;max-width:480px;border-collapse:collapse;font-size:14px}   /* (14px: the design guide's 3章, text the learner reads. It was 13.5) */
.sl-root .res-tbl th,.sl-root .res-tbl td{padding:6px 10px;text-align:left;border-top:1px solid var(--line-2)}
.sl-root .res-tbl thead th{border-top:0;font-size:12.5px;color:var(--ink-3)}
.sl-root .res-tbl tbody th{font-weight:700;color:var(--ink)}
.sl-root .res-tbl td.num{font-family:var(--font-mono);text-align:right}
.sl-root .res-tbl .res-root{font-size:12px;font-weight:700;color:var(--accent)}
.sl-root .res-tbl .res-b{font-weight:700;color:var(--warn-ink)}
.sl-root .res-tbl .res-off{color:var(--ink-3)}
.sl-root .res-note{margin:6px 0 0;font-size:14px;color:var(--ink-3)}
/* (2026-11-22) the bridge ID under the switch's name (the design guide's 8章, its STP example), and a value that differs from
   the default or just changed, in violet (the lab's colour for what you changed) */
.sl-root .res-tbl .res-bid{display:block;font-size:13px;font-weight:600;color:var(--ink-3)}
.sl-root .res-tbl .res-chg{color:var(--try);font-weight:700}
/* (2026-11-22) the link a step looks at: a pale yellow glow under it, fading in and out. It was the link drawn blue (.lk.hl),
   the tree's colour (the links in use): one colour, one meaning (the design guide's 0章の6). The legend's 「黄色の光」 */
.sl-root .lk-see{fill:none;stroke:var(--look);stroke-width:14;stroke-linecap:round;stroke-linejoin:round;opacity:0;transition:opacity .25s}
.sl-root .lk-see.on{opacity:.6}
.sl-root .lg-see{fill:none;stroke:var(--look);stroke-width:8;stroke-linecap:round;opacity:.6}
.sl-root .lg-tree{fill:none;stroke:var(--tree);stroke-width:4.5;stroke-linecap:round}
/* (2026-11-22) the switch that sends (0章の22, as DR・BDR): a blue frame round it, to the step's end */
.sl-root .lookr{fill:none;stroke:var(--accent);stroke-width:3}
.sl-root .lg-frm{display:inline-block;width:24px;height:15px;border-radius:4px;border:2px solid var(--accent);background:var(--surface)}
/* (2026-11-22) a frame's word (コピー, 届く, 止まる), as a BPDU's name; a frame stopped at a blocked port, grey */
.sl-root .pkf.stp-stop rect{fill:var(--dio-off-line)}
.sl-root .pkb.ign circle{fill:var(--dio-off);stroke:var(--dio-off-line)}   /* (a BPDU that is ignored: grey, with 「無視」. 2026-11-22) */
/* (2026-11-22) the timer card moves to the port it runs for (0章の27) */
@media (prefers-reduced-motion:no-preference){.sl-root .tmc{transition:transform .5s ease}}
/* 「次へ」 stays in one place (design guide 0章16, 画面案 A2 as MAC・IPアドレス ステップラボ): the steps with no strip
   (chapter 1 until its fifth step, and while a chapter's summary card is up: 2026-10-30) keep its place, blank, where the
   strip is over the drawing (PC widths where it fits on one line). (Phones and narrower PC widths have it in the panel
   under 次へ: nothing to keep. Not in the lab.) */
@container sl (min-width:641px){
  .sl-root .main:not(.strip-in-panel):not(.lab-on) #strip:empty{display:flex;background:transparent;border-bottom-color:transparent}
}
/* (2026-11-22, UI review round 2) a direct failure's max age: not waited for, an empty dashed bar */
.sl-root .tl li.skip .tl-bar{background:none;border:1px dashed var(--line-strong);height:4px}
/* stp-lab2 (2026-11-21): the drawing in the StepLab site's ジオラマ (kit 2.x), as the model lessons (DR・BDR, OSPF
   ネイバーとLSDB ステップラボ３): parts outlined in ink (--edge), a switch a thin box seen a little from above (its top
   lighter than its front), the host a laptop, cards with a hard shadow under them (.hc-lift), the cables a warm grey 4px.
   The root bridge keeps the switch's colours, outlined in blue (a blue top is an L3 switch's: fields/network.md); the
   states the kit draws on a switch (picked, crossed out, changed in the lab) still show over these. */
.sl-root .lk{stroke:var(--link);stroke-width:4}
/* (2026-11-22) a link STP does not use (the blocked port's): solid and lighter. It was dashed, like the cut link's dots */
.sl-root .lk.off{stroke:var(--link-off);stroke-dasharray:none}
.sl-root .nd .box{stroke:var(--edge);stroke-width:2;stroke-linejoin:round}
.sl-root .nd .box.sw-front{fill:var(--dio-pc-side)}
.sl-root .nd .box.sw-top{fill:var(--dio-pc)}
.sl-root .nd .sw-kind{fill:var(--ink)}
.sl-root .nd .nm{fill:var(--ink)}
.sl-root .nd.root .box.sw-front,.sl-root .nd.root .box.sw-top{stroke:var(--accent);stroke-width:3;filter:none}
.sl-root .term .pc-frame{fill:var(--dio-pc);stroke:var(--edge);stroke-width:2}
.sl-root .term .pc-screen{fill:var(--dio-screen);stroke:var(--edge);stroke-width:1.5}
.sl-root .term .pc-base{fill:var(--dio-pc-side);stroke:var(--edge);stroke-width:2;stroke-linejoin:round}
.sl-root .term.stp-hl .pc-frame{stroke:var(--accent);stroke-width:3.5}
.sl-root .hc-lift,.sl-root .qm .hc-lift,.sl-root .tmc .hc-lift{fill:var(--lift);stroke:none}
.sl-root .qm .qm-bg{fill:var(--node);stroke:var(--loop);stroke-width:2.5}
.sl-root .tmc-bg{fill:var(--node);stroke-width:2}
/* the legend's icons, as the drawing's parts: the switch (its top, its front), the root bridge (outlined in blue), the laptop */
.sl-root .lg-sw,.sl-root .lg-root{display:inline-block;width:26px;height:15px;border:2px solid var(--edge);border-radius:3px 3px 2px 2px;background:linear-gradient(var(--dio-pc) 0 38%,var(--dio-pc-side) 38%)}
.sl-root .lg-root{border-color:var(--accent)}
.sl-root .lg-host{display:inline-block;width:22px;height:15px;border-radius:3px;border:2px solid var(--edge);background:linear-gradient(var(--dio-screen) 0 62%,var(--dio-pc-side) 62%)}
