/* StepLab: ospf-dr-lab2 (lesson.css, kit 2.0.7) */
/* The lesson's own CSS, after the kit's (05-09): only what its drawing adds to the kit's parts, with the kit's colours. */
/* each router's neighbors: a card over it (the kit's .hc), a row per other router: its name and its state as that
   router sees it, in the words of show ip ospf neighbor. FULL bold on a grey row; not a neighbor 「—」 and DOWN grey;
   blue text: just changed, or syncing. Rows a question asks about, or its answer: outlined in blue (the step's;
   grey once a later step has moved on). The text keeps its colour in the outline: blue text means a change only
   (the review, 2026-10-26). No dashes: in the OSPF lessons a dashed line means only an LSA a router is missing (the
   first lesson; one look, one meaning: 0章の6) */
.sl-root .nbr .hc-v{font-weight:600;fill:var(--ink-2)}
.sl-root .nbr.full rect{fill:var(--dio-row)}   /* (kit 2.0.2: the lesson's grey in the lab too) */
.sl-root .nbr.full .hc-v{font-weight:800;fill:var(--ink)}
.sl-root .nbr.none .hc-v,.sl-root .nbr.down .hc-v{fill:var(--muted);font-weight:600}
.sl-root .nbr.sync .hc-v,.sl-root .nbr.new .hc-v{fill:var(--accent);font-weight:800}
.sl-root .nbr.lb rect{fill:var(--surface);stroke:var(--ink-3);stroke-width:1.5}
.sl-root .nbr.lbh rect{fill:var(--accent-soft);stroke:var(--accent);stroke-width:2}
/* the strip's copy in the phone's drawing (TOPIC.stripCopy, 2026-11-11): the items closer together, as the model lesson
   (OSPF ネイバーとLSDB ステップラボ２), so that the seven states fit in two rows under SW1 at the drawing's own size of words */
.sl-root .strip-copy .crit{padding:0 .5em 0 .2em;gap:.3em}
/* a chapter's first step: its states outlined a moment in the strip (rangeShow, as the model lesson) */
.sl-root .crit.look{animation:critlook 1.2s ease-in-out}
@keyframes critlook{20%,65%{box-shadow:0 0 0 4px var(--accent)}}
.sl-root .strip-copy{gap:.3em .3em}
/* a step with no strip (noStrip: empty): where the strips fit over the drawing, its empty strip keeps its place there,
   see-through, so 次へ does not move (0章の16). Where they move to 「くわしく」 (and on phones), the kit shows nothing. */
@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}
}
/* a failed router: a darker grey box (「故障」, as in the first lesson) */
.sl-root .nd.fail .box{fill:var(--dio-fail);stroke:var(--dio-fail-line);stroke-width:2}
.sl-root .nd.fail .nm,.sl-root .nd.fail .st{fill:var(--ink-3)}
/* a router that has not started OSPF yet (the lab's router that starts later): pale, its words grey (「OSPF未起動」, as
   in the first lesson) */
.sl-root .nd.off .box{fill:var(--dio-off);stroke:var(--dio-off-line)}
.sl-root .nd.off .nm,.sl-root .nd.off .st{fill:var(--muted)}
/* the roles: DR and BDR filled (the field file's role colours, in their order), DROTHER outlined */
.sl-root .bdg.r-dr rect{fill:var(--role-r)}
.sl-root .bdg.r-dr text{fill:var(--on-role)}
.sl-root .bdg.r-bdr rect{fill:var(--role-d)}
.sl-root .bdg.r-bdr text{fill:var(--on-role)}
.sl-root .bdg.r-oth rect{fill:var(--surface);stroke:var(--muted);stroke-width:1.5}
.sl-root .bdg.r-oth text{fill:var(--ink-2)}
/* the value the election compares (the priority, the router ID): blue: it won; dim: out of the comparison */
.sl-root .nd .cs rect{fill:var(--chip-pri);stroke:var(--line-strong);stroke-width:1}
.sl-root .nd .cs.hl rect{fill:var(--accent);stroke:var(--accent)}
.sl-root .nd .cs.dim rect{fill:var(--surface-2);stroke:var(--line)}
.sl-root .nd .cs.dim text{fill:var(--muted);font-weight:400}
/* what the value is (「Pri」, 「ID」): grey, not bold; on the blue chip, the chip's own light text */
.sl-root .nd .cs .cs-k{fill:var(--ink-3);font-weight:600}
.sl-root .nd .cs.hl .cs-k{fill:var(--on-accent);font-weight:600}
.sl-root .nd .cs.dim .cs-k{fill:var(--muted)}
/* the names an OSPF packet carries (R1 = R1's LSA) */
.sl-root .pkc rect{fill:var(--surface);stroke:var(--bpdu-line);stroke-width:1.2}
.sl-root .pkc text{fill:var(--ink-2);font-family:var(--font-mono);font-weight:700}
/* the LSAs a router has received (第4章): the packet's tag, on the box; grey: the same LSA again */
.sl-root .nd .rc rect{fill:var(--surface);stroke:var(--bpdu-line);stroke-width:1.2}
.sl-root .nd .rc text{fill:var(--ink-2);font-family:var(--font-mono);font-weight:700}
.sl-root .nd .rc.dup rect{fill:var(--surface-2);stroke:var(--line);stroke-width:1}
.sl-root .nd .rc.dup text{fill:var(--muted);font-weight:400}
/* 2026-11-21 (the UI review): the tags that have just come in, in blue (as a state that has just changed) */
.sl-root .nd .rc.new rect{fill:var(--accent);stroke:var(--accent)}
.sl-root .nd .rc.new text{fill:var(--on-accent)}
/* a card with no neighbor yet (no rows: 0章の11) */
.sl-root .hc-none{fill:var(--muted)}
/* who waits for the Dead interval, over its card */
.sl-root .tmc-who{fill:var(--ink-2);font-weight:700}
.sl-root .tmc-ff text{fill:var(--muted)}
.sl-root .tmc-left{fill:var(--ink);font-weight:700}   /* the seconds left (2026-11-21) */
.sl-root .tally-h{fill:var(--ink-2);font-weight:700}
/* what to look at next (a chapter's start, 0章の19): a blue frame round a router or its card */
.sl-root .lookr{fill:none;stroke:var(--accent);stroke-width:3}
/* things to look at, at the chapters' boundaries (0章の19): a role badge grows for a moment; a card's edge and a row
   light up blue for a moment (the router itself: the kit's .pulse) */
.sl-root .bdg.pulse-b{transform-box:fill-box;transform-origin:center;animation:bdgpulse .9s ease-out}
@keyframes bdgpulse{0%{transform:scale(1)}35%{transform:scale(1.28)}100%{transform:scale(1)}}
.sl-root .nbc.pulse-card .hc-bg{animation:cardpulse .9s ease-out}
@keyframes cardpulse{0%{stroke-width:1.2}35%{stroke-width:4;stroke:var(--accent)}100%{stroke-width:1.2}}
.sl-root .nbr.pulse-row rect{animation:rowpulse .9s ease-out}
@keyframes rowpulse{0%{}35%{fill:var(--accent-soft);stroke:var(--accent);stroke-width:2}100%{}}
@media (prefers-reduced-motion:reduce){.sl-root .bdg.pulse-b,.sl-root .nbc.pulse-card .hc-bg,.sl-root .nbr.pulse-row rect{animation:none}}
/* a summary table's row: the card rows it is about, outlined in blue while the row is lit (as a question's rows) */
.sl-root .nbr rect{transition:fill .25s,stroke .25s}
.sl-root .nbr.hold rect{fill:var(--accent-soft);stroke:var(--accent);stroke-width:2}
@media (prefers-reduced-motion:reduce){.sl-root .nbr rect{transition:none}}
/* 第2章: each router's settings card: a setting's name (grey) over its value; under a line, 「ルータID」 and the one
   chosen (grey 「—」: none yet; blue: just chosen; the value moving down: blue). A row a step is about: outlined in blue */
.sl-root .cfgr .cfg-k{fill:var(--muted);font-weight:600}
.sl-root .cfgr.cfg-id rect{fill:var(--surface-3)}
.sl-root .cfgr.cfg-id .cfg-k{fill:var(--ink-2);font-weight:700}
.sl-root .cfgr.cfg-id.none .cfg-v{fill:var(--muted);font-weight:600}
.sl-root .cfgr.cfg-id.new .cfg-v,.sl-root .dg .cfg-fly text{fill:var(--accent);font-weight:800}
.sl-root .dg .cfg-fly rect{fill:var(--surface);stroke:var(--accent);stroke-width:1.5}
.sl-root .cfg-sep{stroke:var(--line-strong);stroke-width:1}
.sl-root .cfgr rect{transition:fill .25s,stroke .25s}
.sl-root .cfgr.hold rect{fill:var(--accent-soft);stroke:var(--accent);stroke-width:2}
/* the row just added (2026-11-22): a dashed outline and a 「足した」 chip, to the step's end. Its words in ink, not blue
   (blue words: the router ID just chosen) */
.sl-root .cfg-add-ln{fill:none;stroke:var(--accent);stroke-width:2;stroke-dasharray:5 4}
.sl-root .cfg-add-chip{fill:var(--surface);stroke:var(--accent);stroke-width:1.5}
.sl-root .cfg-add-t{fill:var(--ink);font-weight:700}
@media (prefers-reduced-motion:reduce){.sl-root .cfgr rect{transition:none}}
/* a quiz on the drawing: a router tried and wrong */
.sl-root .nd.mark-ng .box{stroke:var(--ng);stroke-width:2.5;stroke-dasharray:7 5}
/* the legend's icons */
.sl-root .lg-router{display:inline-block;width:24px;height:15px;border-radius:4px;background:var(--node);border:1.5px solid var(--node-line)}
.sl-root .lg-router.off{background:var(--dio-off);border-color:var(--dio-off-line)}
.sl-root .lg-router.fail{background:var(--dio-fail);border:2px solid var(--dio-fail-line)}
.sl-root .lg-sw{display:inline-block;width:24px;height:12px;border-radius:3px;background:var(--surface);border:1.5px solid var(--node-line)}
.sl-root .lg-bdgs{display:inline-flex;gap:5px;white-space:nowrap}
.sl-root .lg-bdgs>.lg-bdg{flex:0 0 auto}
.sl-root .lg-bdg{display:inline-block;padding:1px 5px;border-radius:4px;font-weight:700;font-size:11px;line-height:15px}
.sl-root .lg-bdg.r-dr{background:var(--role-r);color:var(--on-role)}
.sl-root .lg-bdg.r-bdr{background:var(--role-d);color:var(--on-role)}
.sl-root .lg-bdg.r-oth{background:var(--surface);border:1.5px solid var(--muted);color:var(--ink-2);line-height:12px}
.sl-root .lg-lsa,.sl-root .lg-val{display:inline-block;padding:0 4px;border-radius:4px;font-family:var(--font-mono);font-weight:700;font-size:11px;line-height:16px}
.sl-root .lg-lsa{background:var(--surface);border:1px solid var(--bpdu-line);color:var(--ink-2)}
.sl-root .lg-val{background:var(--chip-pri);border:1px solid var(--line-strong);color:var(--ink)}
.sl-root .lg-rcv{display:inline-flex;gap:3px}
.sl-root .lg-lsa.dup{background:var(--surface-2);border-color:var(--line);color:var(--muted);font-weight:400}
.sl-root .lg-lsa.new{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}
.sl-root .lg-val .lg-k{color:var(--ink-3);font-weight:600;font-size:10px}
.sl-root .lg-stn{display:inline-flex;align-items:center;height:20px;padding:0 8px;border:2px solid var(--edge);border-radius:999px;background:var(--accent);color:var(--on-accent);font-size:11px;font-weight:700}   /* the strip's lit state (2026-11-21) */
.sl-root .lg-timer{display:inline-block;width:24px;height:6px;border-radius:3px;background:var(--tm-age)}
.sl-root .lg-nbc{display:inline-flex;gap:6px;padding:0 5px;border:1px solid var(--line-strong);border-radius:4px;background:var(--surface);font-family:var(--font-mono);font-size:11px;font-weight:700;line-height:15px;color:var(--ink-2);white-space:nowrap}
.sl-root .lg-nbc b{color:var(--ink);font-weight:800}
.sl-root .lg-nbc.lg-full{background:var(--dio-row)}   /* (the FULL row's grey, as on the cards: the legend says it. 2026-11-11) */
.sl-root .lg-nbc.new b{color:var(--accent)}
.sl-root .lg-nbc.lb{border:2px solid var(--accent);background:var(--accent-soft)}
.sl-root .lg-cfg{display:inline-flex;flex-direction:column;align-items:center;padding:1px 6px;border:1px solid var(--line-strong);border-radius:4px;background:var(--surface);font-size:10px;line-height:12px;color:var(--muted);font-weight:600}
.sl-root .lg-cfg b{font-family:var(--font-mono);font-size:11px;color:var(--ink);font-weight:700}
.sl-root .lg-cfg b.new{color:var(--accent);font-weight:800}
.sl-root .lg-frm{display:inline-block;width:24px;height:15px;border-radius:4px;border:2px solid var(--accent);background:var(--surface)}
/* the legend has no note (its rows say it all) */
.sl-root .legend-note:empty{display:none}
/* 第1章: the LSUs that came, as circles under the drawing (D.tally; 2026-11-12). The first row grey once the second is there.
   (2026-11-21: the classes were tl, tl-h, tl-row: the kit's timeline has .tl and .tl-h, and its .tl-h{font-size:13px} made
   the heading 9.7px at 768px. The UI review) */
.sl-root .tally text{fill:var(--ink-2);font-weight:700}
.sl-root .tally circle{fill:var(--surface);stroke:var(--ink-3);stroke-width:1.6}
/* (the first row once the second is there: thinner, not paler: at 1.5:1 it was hard to see what the five compare with.
   The UI review, 2026-11-12) */
.sl-root .tally .was text{fill:var(--muted);font-weight:400}
.sl-root .tally circle.cut{fill:none;stroke:var(--muted);stroke-dasharray:3 2.5}
.sl-root .tally text.cut-l{fill:var(--muted);font-weight:400}
.sl-root .tally .was circle{stroke:var(--muted);stroke-width:1}
.sl-root .lg-tl{display:inline-flex;gap:3px;align-items:center}
.sl-root .lg-tl i{width:10px;height:10px;border-radius:50%;border:1.6px solid var(--ink-3);background:var(--surface)}
/* 実験ラボ (2026-11-20, the user's review of the lab): the presets in words only (their small pictures, the four routers with
   the changed ones in violet, were too small to tell apart), and the presets and the priorities two by two (four of
   each: three in a row left one alone on a row) */
.sl-root #sbPresets{grid-template-columns:repeat(2,minmax(0,1fr))}
.sl-root #sbPresets .sb-preset{justify-content:center;min-height:50px}
.sl-root #labPri.fields-3{grid-template-columns:repeat(2,minmax(0,1fr))}
.sl-root .cfg-warn{margin:8px 0 0;font-size:13px;color:var(--warn-ink)}
.sl-root .cfg-warn:empty,.sl-root #cfgResult:empty{display:none}
/* the lab: the roles and the states of every router in one table */
.sl-root .nb-tbl{width:100%;border-collapse:collapse;font-size:13.5px}
.sl-root .nb-tbl th,.sl-root .nb-tbl td{padding:5px 6px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}
.sl-root .nb-tbl thead th{color:var(--muted);font-weight:700;font-size:12.5px}
.sl-root .nb-tbl td.rl{font-weight:700}
.sl-root .nb-tbl .rid{display:block;color:var(--muted);font-weight:400;font-size:12.5px}   /* the router ID under the router's name (2026-11-21) */
.sl-root .nb-tbl .mono{font-family:var(--font-mono)}
/* 2026-11-21 (the UI review): what decided a role the priorities do not explain (後から起動, 元はDR, BDRから昇格), under it */
.sl-root .nb-tbl .rl-note{display:block;margin-top:2px;font-size:13px;font-weight:700;color:var(--ink-2)}   /* (not violet: violet is what the learner changed. The UI review) */
/* the violet of a priority other than the default, said by the settings */
.sl-root #sbPriNote{margin:-4px 0 8px;font-size:13px;color:var(--try-strong)}
/* the lab's last subtitle on a phone: the roles, then the pairs, a line each (a phone's break, \n; one line wider) */
.sl-root #capView{white-space:pre-line}
@container sl (max-width:640px){
  /* the routers FULL with a router stay on one line (「R2・」「R3・」「R4」 took a line each) */
  .sl-root .nb-tbl th,.sl-root .nb-tbl td{padding-left:4px;padding-right:4px}
  .sl-root .nb-tbl td.mono{white-space:nowrap}
  /* the scenarios one under another (「DRが／故障」 broke in two side by side) */
  .sl-root #segScene{display:flex;flex-direction:column;width:100%}   /* (as wide as the settings: the UI review) */
  .sl-root #segScene>button{width:100%}
}
.sl-root .lab-pri{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 10px}
.sl-root .lab-pri .field select{min-height:40px}
/* the review: the roles, at the start and after the DR failed (the caption as in MAC・IPアドレス ステップラボ) */
.sl-root .sum-dl dt.mono{font-family:var(--font-mono);font-weight:700}
.sl-root .sum-cap{margin:0 0 -6px;font-size:13px;font-weight:700;color:var(--ink-2)}
/* ospf-dr-lab2 (2026-11-20): the drawing in the StepLab site's ジオラマ (kit 2.0.0), as OSPF ネイバーとLSDB ステップラボ３,
   the model lesson: parts outlined in ink (--edge), routers as cylinders (--dio-router-*), the switch a thin box with ports (2026-11-21), the
   cards with a hard shadow under them (.hc-lift), the cables a warm grey. After 05: the states (OSPF未起動, 故障, 光らせる所,
   the router that does not match: mark-ng) are set again after the new fills, so they still show. */
.sl-root .lk{stroke:var(--link);stroke-width:4}
.sl-root .nd .box{stroke:var(--edge);stroke-width:2}
.sl-root .nd .box.cyl-side{fill:var(--dio-router-side)}
.sl-root .nd .box.cyl-top{fill:var(--dio-router-top)}
/* SW1 (2026-11-21, the user's 「機器は必ずその形を作って欲しい」): a thin box, its top lighter than its front, as the
   routers' cylinders; its ports in ink, where the cables come in */
.sl-root .nd.sw .box{stroke-linejoin:round}
.sl-root .nd.sw .box.sw-front{fill:var(--dio-pc-side)}
.sl-root .nd.sw .box.sw-top{fill:var(--dio-pc)}
.sl-root .nd.sw .sw-port{fill:var(--edge)}
.sl-root .nd .nm{fill:var(--ink)}
.sl-root .nd .st{fill:var(--ink)}
/* (kit 2.0.2: not started, failed: the kit's greys that the lab does not tint violet. The user's review of the lab, 2026-11-20) */
.sl-root .nd.off .box.cyl-side,.sl-root .nd.off .box.cyl-top{fill:var(--dio-off);stroke:var(--dio-off-line)}
.sl-root .nd.fail .box.cyl-side,.sl-root .nd.fail .box.cyl-top{fill:var(--dio-fail);stroke:var(--dio-fail-line)}
.sl-root .nd.mark-ng .box.cyl-side,.sl-root .nd.mark-ng .box.cyl-top{stroke:var(--ng);stroke-width:2.5;stroke-dasharray:7 5}
.sl-root .hc-lift{fill:var(--lift)}
.sl-root .hc-bg,.sl-root .tmc-bg{fill:var(--node);stroke:var(--edge);stroke-width:2}
.sl-root .nbc.pulse-card .hc-bg{animation:cardpulse .8s ease-out}
/* the legend's icons, as the drawing's parts */
.sl-root .lg-router{width:24px;height:17px;border-radius:12px/5px;background:linear-gradient(var(--dio-router-top) 0 38%,var(--dio-router-side) 38%);border:1.5px solid var(--edge)}
.sl-root .lg-router.off{background:var(--dio-off);border-color:var(--dio-off-line)}
.sl-root .lg-router.fail{background:var(--dio-fail);border-color:var(--dio-fail-line)}
/* (the switch as drawn: its top, its front, and a row of ports on the front) */
.sl-root .lg-sw{height:13px;border-radius:2px;border-color:var(--edge);background:repeating-linear-gradient(90deg,transparent 0 2.5px,var(--edge) 2.5px 5.5px) 0 7px/100% 2.5px no-repeat,linear-gradient(var(--dio-pc) 0 36%,var(--dio-pc-side) 36%)}
