/* StepLab: ospf-adjacency-lab3 (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. */
/* a step with no strip (noStrip: 第1章 before the states): where the strip is over the drawing, its empty place stays,
   see-through, so 次へ does not move (0章の16). Where it is in 「くわしく」 (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 router that has not started OSPF: pale, its words grey (「OSPF未起動」); a failed one: a darker grey box (「故障」).
   Neither is dashed: in this drawing a dashed line means only an LSA a router is missing (one look, one meaning: the
   design guide's 0章の6, 別のエージェントの確認 2026-10-22) */
.sl-root .nd.off .box{fill:var(--surface-2);stroke:var(--line-strong)}
.sl-root .nd.off .nm,.sl-root .nd.off .st{fill:var(--muted)}
.sl-root .nd.fail .box{fill:var(--line);stroke:var(--muted);stroke-width:2}
.sl-root .nd.fail .nm,.sl-root .nd.fail .st{fill:var(--ink-3)}
/* a link with no neighbor on it (R3 has not started OSPF, or R2 has put R3 to DOWN): pale, not dashed */
.sl-root .lk.nonb{stroke:var(--link-off)}
/* the master: an outlined badge (a blue fill here means just changed, just come in) */
.sl-root .bdg.mst rect{fill:var(--accent-soft);stroke:var(--accent);stroke-width:1.5}
.sl-root .bdg.mst text{fill:var(--accent)}
/* the strip's copy in the phone's drawing (TOPIC.stripCopy): the states closer together, so that the seven fit in two
   rows under PC-C at the drawing's own size of words (three rows ran out of the drawing: 2026-11-08) */
.sl-root .strip-copy .crit{padding:0 .5em 0 .2em;gap:.3em}
.sl-root .strip-copy{gap:.3em .3em}
/* 第1章: two routers that are neighbors, 「ネイバー」 by their link (画面案 Q1-A, the user's choice, 2026-11-08) */
.sl-root .lbl-nb rect{fill:var(--surface);stroke:var(--line-strong);stroke-width:1.5}
.sl-root .lbl-nb text{fill:var(--ink-2);font-family:inherit;font-weight:700}
.sl-root .lg-nb{display:inline-block;padding:0 7px;border-radius:999px;background:var(--surface);border:1.5px solid var(--line-strong);color:var(--ink-2);font-weight:700;font-size:11px;line-height:16px}
/* what to look at, for a moment (a chapter's first step, 第1章's look back: 画面案 Q2-A, the user's choice, 2026-11-08):
   the strip's states the chapter is about, and parts of the drawing (a router's box, a link, a state label, 「ネイバー」),
   outlined in blue, held for about half a second (the first-time learner's check, 2026-11-08: at 0.9 s with no hold it
   was over while the subtitle was being read). (Only the peak is given: each part starts and ends as it is drawn) */
.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 .nd.look .box,.sl-root .lbl.look rect,.sl-root .bdg.look rect{animation:partlook 1.2s ease-in-out}
@keyframes partlook{20%,65%{stroke-width:4.5;stroke:var(--accent)}}
.sl-root .nd.sending .box{stroke-width:4.5;stroke:var(--accent)}   /* (the router that sends now: D.sending, 0章の22) */
.sl-root .term.look rect{animation:partlook 1.2s ease-in-out}
.sl-root .lk.look{animation:lklook 1.2s ease-in-out}
@keyframes lklook{20%,65%{stroke:var(--accent);stroke-width:9}}
@media (prefers-reduced-motion:reduce){.sl-root .crit.look,.sl-root .nd.look .box,.sl-root .lbl.look rect,.sl-root .bdg.look rect,.sl-root .term.look rect,.sl-root .lk.look{animation:none}}
/* the state a router sees its neighbor in: a label by the router, on the neighbor's side; blue: changed in this step;
   the question (「？」): dashed blue */
.sl-root .lbl-st rect{fill:var(--surface);stroke:var(--line-strong)}
.sl-root .lbl-st text{fill:var(--ink-2);font-weight:700}
.sl-root .lbl-st.hl rect{fill:var(--accent-soft);stroke:var(--accent)}
.sl-root .lbl-st.hl text{fill:var(--accent)}
.sl-root .lbl-st.q rect{fill:var(--surface);stroke:var(--accent);stroke-width:2}
.sl-root .lbl-st.q text{fill:var(--accent)}
/* what an OSPF packet carries, a shape for each kind (画面案 C の案2, the user's choice, 2026-10-27):
   Hello: the router IDs it has seen, as small router boxes; DBD: its list of LSAs, outline squares in a list card (≡);
   LSR: the LSA it asks for (「R2？」, blue outline); LSU: the LSA itself, the LSDB's square; LSAck: 「✓R2」 (green) */
.sl-root .pkc text{font-family:var(--font-mono);font-weight:700}
.sl-root .pkc.k-id .pkc-it{fill:var(--node);stroke:var(--node-line);stroke-width:1.5}
.sl-root .pkc.k-id text{fill:var(--ink);font-family:inherit}
.sl-root .pkc.k-list .pkc-lst{fill:var(--surface);stroke:var(--line-strong);stroke-width:1.2}
.sl-root .pkc.k-list .pkc-lsti{fill:var(--ink-2)}
.sl-root .pkc.k-id .pkc-idh{fill:var(--ink-2)}   /* ステップラボ２: a Hello's 「認識」 over its name (phone) */
.sl-root .pkc.k-list .pkc-it{fill:var(--surface);stroke:var(--accent-line);stroke-width:1.2}
.sl-root .pkc.k-list text{fill:var(--ink-2)}
.sl-root .pkc.k-req .pkc-it{fill:var(--surface);stroke:var(--accent);stroke-width:1.4}
.sl-root .pkc.k-req text{fill:var(--accent)}
.sl-root .pkc.k-lsa .pkc-it{fill:var(--accent-soft);stroke:var(--accent-line);stroke-width:1.2}
.sl-root .pkc.k-lsa text{fill:var(--ink)}
.sl-root .pkc.k-ack .pkc-it{fill:var(--surface);stroke:var(--ok);stroke-width:1.2}
.sl-root .pkc.k-ack text{fill:var(--ok)}
/* the packet from PC-A: its destination on a tag */
.sl-root .pk-to rect{fill:var(--surface);stroke:var(--line-strong);stroke-width:1.2}
.sl-root .pk-to text{fill:var(--ink-2);font-weight:700}
/* the comparison of the router IDs (第3章) */
.sl-root .ridcmp text{fill:var(--accent);font-weight:800}
.sl-root .cs.rid .rid-k{font-weight:400}
/* the Dead interval's 早送り: plain words */
.sl-root .tmc-ff text{fill:var(--ink-3);font-family:var(--font-mono);font-weight:700}
/* an LSDB: a square per LSA (named by its router); blue: just come in; dashed under the card: missing */
.sl-root .tile rect{fill:var(--accent-soft);stroke:var(--accent-line);stroke-width:1.2}
.sl-root .tile text{fill:var(--ink);font-family:var(--font-mono);font-weight:700}
.sl-root .tile.hl rect{fill:var(--accent);stroke:var(--accent)}
.sl-root .tile.hl text{fill:var(--on-accent)}
.sl-root .tile.dash rect{fill:none;stroke:var(--ink-3);stroke-width:1.6;stroke-dasharray:4 3}
.sl-root .tile.dash text{fill:var(--ink-2)}
.sl-root .tile.reading rect{stroke:var(--accent);stroke-width:2.6}
.sl-root .miss-w{fill:var(--ink-2);font-weight:700}
.sl-root .lsdb-note text{fill:var(--ink-2);font-weight:700}
/* the links an LSA lists: a wide pale band under the link (not the blue line, which is the packet's way) */
.sl-root .lsaband{fill:none;stroke:var(--accent-line);stroke-opacity:.45;stroke-width:16;stroke-linecap:round;stroke-linejoin:round}
.sl-root .lg-band{display:inline-block;width:26px;height:12px;border-radius:6px;background:color-mix(in srgb,var(--accent-line) 45%,transparent);position:relative;vertical-align:middle}
.sl-root .lg-band::after{content:'';position:absolute;left:3px;right:3px;top:5px;height:3px;border-radius:2px;background:var(--link)}
/* an LSA that can no longer be used (第5章: no link to R3 any more): pale, as a router not in OSPF */
.sl-root .tile.unused rect{fill:var(--surface-2);stroke:var(--line-strong);transition:fill .6s,stroke .6s}
.sl-root .tile.unused text{fill:var(--muted);transition:fill .6s}
/* the packet R1 drops: grey under its × */
.sl-root .pkf.dropped > rect{opacity:.55}
/* a Hello brings a router's own ID back: the ID in it and the router's name, blue, pulse together */
.sl-root .idhit{transform-box:fill-box;transform-origin:center;animation:idhit 1s ease-out}
@keyframes idhit{0%{transform:scale(1)}35%{transform:scale(1.3)}100%{transform:scale(1)}}
.sl-root .nd .nm.idhit,.sl-root .pkc text.idhit{fill:var(--accent)}
/* (the ID in a packet that waits by the other router grows less: 「seen R2」 in English, at 1.3, ran over R2's box for a
   moment. Kit 2.0.7's motion_trace, 2026-11-22) */
@media (prefers-reduced-motion:no-preference){.sl-root .pkc text.idhit{animation-name:idhitS}}
@keyframes idhitS{0%{transform:scale(1)}35%{transform:scale(1.12)}100%{transform:scale(1)}}
.sl-root .pkc .pkc-it.idhit{stroke:var(--accent);stroke-width:2.4}
@media (prefers-reduced-motion:reduce){.sl-root .idhit{animation:none}}
.sl-root .lsdb.pulse-card .hc-bg{animation:cardpulse .8s ease-out}
@keyframes cardpulse{0%{stroke-width:1.2}35%{stroke-width:4;stroke:var(--accent)}100%{stroke-width:1.2}}
/* the check of a Hello packet: ✓ the same, × not */
.sl-root .chk-m{font-weight:800}
.sl-root .chk-eq{fill:var(--ink-2);font-family:var(--font-mono);font-weight:700}
.sl-root .chk-m.ok{fill:var(--ok)}
.sl-root .chk-m.ng{fill:var(--warn-ink)}
/* 第1章: the packet R1 drops (no route) */
.sl-root .dropx circle{fill:var(--surface);stroke:var(--warn-ink);stroke-width:2.2}
.sl-root .dropx path{fill:none;stroke:var(--warn-ink);stroke-width:2.4;stroke-linecap:round}
/* a PC that takes the packet: a thick blue outline */
.sl-root .term.take rect{stroke:var(--accent);stroke-width:3}
/* 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(--surface-2);border-color:var(--line-strong)}
.sl-root .lg-router.fail{background:var(--line);border:2px solid var(--muted)}
.sl-root .lg-st,.sl-root .lg-chip,.sl-root .lg-tile,.sl-root .lg-rid{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-st{background:var(--surface);border:1px solid var(--line-strong);color:var(--ink-2)}
.sl-root .lg-chip{background:var(--surface);border:1px solid var(--bpdu-line);color:var(--ink-2)}
.sl-root .lg-cid{display:inline-block;padding:0 5px;border-radius:5px;background:var(--node);border:1.5px solid var(--node-line);color:var(--ink);font-weight:700;font-size:11px;line-height:15px}
.sl-root .lg-clist{display:inline-block;padding:1px 3px;border-radius:5px;border:1px solid var(--line-strong);color:var(--ink-2);font-family:var(--font-mono);font-weight:700;font-size:11px;line-height:14px}
.sl-root .lg-clist i{font-style:normal;display:inline-block;padding:0 3px;margin-left:2px;border-radius:3px;border:1px solid var(--accent-line)}
.sl-root .lg-creq{display:inline-block;padding:0 4px;border-radius:4px;border:1.5px solid var(--accent);color:var(--accent);font-family:var(--font-mono);font-weight:700;font-size:11px;line-height:15px}
.sl-root .lg-cack{display:inline-block;padding:0 4px;border-radius:4px;border:1px solid var(--ok);color:var(--ok);font-family:var(--font-mono);font-weight:700;font-size:11px;line-height:16px}
.sl-root .lg-cmp{color:var(--accent);font-weight:800;font-size:15px}
.sl-root .lg-pkt{display:inline-block;width:12px;height:12px;border-radius:2px;background:var(--frame);vertical-align:middle}
.sl-root .lg-tile{background:var(--accent-soft);border:1px solid var(--accent-line);color:var(--ink)}
.sl-root .lg-tile.dash{background:none;border:1.5px dashed var(--ink-3);color:var(--ink-2)}
.sl-root .lg-tile.hl{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}
.sl-root .lg-tile.unused{background:var(--surface-2);border-color:var(--line-strong);color:var(--muted)}
.sl-root .lg-rid{background:var(--node);color:var(--ink)}
.sl-root .lg-chk{font-weight:800;color:var(--ok)}
.sl-root .lg-master{display:inline-block;padding:0 5px;border-radius:5px;background:var(--accent-soft);border:1.5px solid var(--accent);color:var(--accent);font-weight:700;font-size:11px;line-height:14px}
.sl-root .lg-timer{display:inline-block;width:24px;height:6px;border-radius:3px;background:var(--tm-age)}
.sl-root .lg-drop{display:inline-block;width:16px;height:16px;border-radius:50%;border:2px solid var(--warn-ink);color:var(--warn-ink);font-weight:800;font-size:12px;line-height:12px;text-align:center}
/* the legend has no note (its rows say it all) */
.sl-root .legend-note:empty{display:none}
/* the review: the neighbor states */
.sl-root .sum-dl dt.mono{font-family:var(--font-mono);font-weight:700}
@media (prefers-reduced-motion:reduce){.sl-root .lsdb.pulse-card .hc-bg{animation:none}}
/* ステップラボ３ (2026-11-19): the drawing in the StepLab site's ジオラマ (kit 2.0.0, the user's choice): parts outlined in
   ink (--edge), routers as cylinders and PCs as laptops (--dio-*; 2026-11-20, the user's choice), cards with a hard shadow under them (.hc-lift), the
   links a warm grey. After 05 and 06: the states (OSPF未起動, 故障, 光らせる所, blue: changed) are set again after the
   new fills, so they still show. */
.sl-root .lk{stroke:var(--link);stroke-width:4}
.sl-root .lk.nonb{stroke:var(--link-off)}
.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)}
.sl-root .nd .nm{fill:var(--ink)}
.sl-root .nd .st{fill:var(--ink)}
.sl-root .nd.off .box.cyl-side,.sl-root .nd.off .box.cyl-top{fill:var(--surface-2);stroke:var(--line-strong)}
.sl-root .nd.fail .box.cyl-side,.sl-root .nd.fail .box.cyl-top{fill:var(--line);stroke:var(--muted)}
.sl-root .nd.look .box.cyl-side,.sl-root .nd.look .box.cyl-top{animation:partlook 1.2s ease-in-out}
.sl-root .term rect{stroke:var(--edge);stroke-width:2}
.sl-root .term .pc-frame{fill:var(--dio-pc)}
.sl-root .term .pc-screen{fill:var(--dio-screen);stroke-width:1.5}
.sl-root .term text{fill:var(--ink)}
.sl-root .term.take .pc-frame{stroke:var(--accent);stroke-width:3.5}
.sl-root .lsaband.loose{stroke:var(--muted);stroke-opacity:.7;stroke-width:10;stroke-dasharray:10 9;stroke-linecap:butt}
.sl-root .lg-band.loose{background:repeating-linear-gradient(90deg,color-mix(in srgb,var(--muted) 70%,transparent) 0 6px,transparent 6px 11px)}
.sl-root .term .pc-base{fill:var(--dio-pc-side);stroke:var(--edge);stroke-width:2;stroke-linejoin:round}
.sl-root .term.take .pc-base{stroke:var(--accent);stroke-width:3}
.sl-root .term.look .pc-base{animation:partlook 1.2s ease-in-out}
@media (prefers-reduced-motion:reduce){.sl-root .term.look .pc-base{animation:none}}
.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 .hc-t{fill:var(--ink)}
.sl-root .tile rect{fill:var(--accent-soft);stroke:var(--edge);stroke-width:1.5}
.sl-root .tile.hl rect{fill:var(--accent);stroke:var(--edge)}
.sl-root .tile.dash rect{fill:none;stroke:var(--lift-soft);stroke-width:2;stroke-dasharray:5 3}
.sl-root .tile.unused rect{fill:var(--surface-2);stroke:var(--line-strong)}
.sl-root .tile.reading rect{stroke:var(--accent);stroke-width:3}
.sl-root .lbl-st rect,.sl-root .lbl-nb rect,.sl-root .pk-to rect{fill:var(--node);stroke:var(--edge);stroke-width:2}
.sl-root .lbl-st text,.sl-root .lbl-nb text{fill:var(--ink)}
.sl-root .lbl-st.hl rect{fill:var(--accent-soft);stroke:var(--accent);stroke-width:2.5}
.sl-root .lbl-st.hl text{fill:var(--accent)}
.sl-root .lbl-st.q rect{fill:var(--node);stroke:var(--accent);stroke-width:2.5}
.sl-root .bdg.mst rect{stroke-width:2}
.sl-root .lsdb.pulse-card .hc-bg{animation:cardpulse .8s ease-out}
@keyframes cardpulse{0%{stroke-width:2}35%{stroke-width:4;stroke:var(--accent)}100%{stroke-width:2}}
/* 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(--surface-2);border-color:var(--line-strong)}
.sl-root .lg-router.fail{background:var(--line);border-color:var(--muted)}
.sl-root .lg-st{background:var(--node);border:1.5px solid var(--edge);color:var(--ink)}
.sl-root .lg-tile{border-color:var(--edge)}
.sl-root .lg-tile.dash{border:1.5px dashed var(--lift-soft)}
.sl-root .lg-nb{background:var(--node);border-color:var(--edge);color:var(--ink)}
