/* The install chooser of a ready image card (shop/_install_guide.html). Owner 2026-11-10 01:14 UTC: pick the router's system, then (OpenWrt)
   the way, and see only that way's steps, like a wizard without being one. Radios and the sibling combinator do it with no script; nothing is
   picked at first. The steps keep the guide of 2026-11-09 21:57 UTC: plain numbered steps with the real router screens, one tinted step for the
   one choice that matters. Account tokens only (--card, --line, --ink, --muted, --bg, --accent); English words of the router screens are LTR
   chips (bdi.en). The line figures (.hl) are drawn by portal/hairline.js. */
.ins { display:flex; flex-direction:column; gap:12px; }
.ins-q { margin:4px 0 0; font-size:15.5px; font-weight:800; line-height:1.7; text-wrap:balance; } /* portal/install.js may bring it to the top: the site's own
   scroll-padding (v9/site-shell.css) keeps it clear of the fixed header */
.ins-r { position:absolute; width:1px; height:1px; margin:0; opacity:0; pointer-events:none; }
.ins-opts { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.ins-two { grid-template-columns:repeat(2,minmax(0,1fr)); }
.ins-opts label { position:relative; display:flex; flex-direction:column; gap:2px; min-width:0; min-height:64px; padding:12px 16px; padding-inline-end:46px;
  border:1.5px solid var(--line); border-radius:14px; background:var(--card); cursor:pointer; transition:border-color .15s, background-color .15s;
  touch-action:manipulation; -webkit-tap-highlight-color:transparent; } /* the picked look is the answer to a tap, not the browser's grey flash */
.ins-opts b { font-size:15px; line-height:1.6; } .ins-opts span { color:var(--muted); font-size:13px; line-height:1.7; }
.ins-opts label::after { content:""; position:absolute; top:calc(50% - 10px); inset-inline-end:14px; width:20px; height:20px; box-sizing:border-box; border-radius:50%;
  border:2px solid var(--line); background:var(--card); transition:border-width .15s, border-color .15s; }
@media (hover:hover) { .ins-opts label:hover { border-color:#c42a4c80; } } /* a finger leaves no hover behind on the option it left */
.r-ow:checked ~ .ins-opts .l-ow, .r-gg:checked ~ .ins-opts .l-gg, .r-gk:checked ~ .ins-opts .l-gk,
.r-ez:checked ~ .ins-opts .l-ez, .r-man:checked ~ .ins-opts .l-man { border-color:var(--accent); background:#fdf2f4; }
.r-ow:checked ~ .ins-opts .l-ow::after, .r-gg:checked ~ .ins-opts .l-gg::after, .r-gk:checked ~ .ins-opts .l-gk::after,
.r-ez:checked ~ .ins-opts .l-ez::after, .r-man:checked ~ .ins-opts .l-man::after { border:6px solid var(--accent); }
.r-ow:focus-visible ~ .ins-opts .l-ow, .r-gg:focus-visible ~ .ins-opts .l-gg, .r-gk:focus-visible ~ .ins-opts .l-gk,
.r-ez:focus-visible ~ .ins-opts .l-ez, .r-man:focus-visible ~ .ins-opts .l-man { outline:3px solid var(--ink); outline-offset:2px; }
/* only the picked way shows; until a pick, a one-line hint */
.ins-p { display:none; flex-direction:column; gap:14px; }
.r-ow:checked ~ .p-ow, .r-gg:checked ~ .p-gg, .r-gk:checked ~ .p-gk, .r-ez:checked ~ .p-ez, .r-man:checked ~ .p-man { display:flex; animation:ins-in .28s cubic-bezier(.2,.7,.2,1); }
.ins > .ins-p, .ins-p > .ins-p { padding-top:14px; border-top:1px solid var(--line); }
.ins-p > .ins-q { margin-top:0; }
.ins-hint { margin:0; color:var(--muted); font-size:13.5px; }
.ins-r:checked ~ .ins-hint { display:none; }
/* the closing note of a way (shop/_ins_help.html), under its steps */
.ins-help { margin:0; padding-top:12px; border-top:1px solid var(--line); color:var(--muted); font-size:13px; line-height:2; }
.ins a { color:var(--accent); font-weight:700; }
.ins a.dl-main, .ins a.dl-main:hover { color:#fff; }  /* the solid download button keeps white words: «.ins a» outranks .dl-main (owner 2026-11-10 15:26 UTC: red on red) */
@keyframes ins-in { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:none; } }

.ins-unsure { color:var(--muted); font-size:13.5px; }
.ins-unsure > summary { display:inline-flex; align-items:center; gap:8px; min-height:44px; cursor:pointer; list-style:none; color:var(--accent); font-weight:700; }
.ins-unsure > summary::-webkit-details-marker { display:none; }
.ins-unsure > summary::before { content:"?"; display:grid; place-items:center; width:20px; height:20px; flex:none; border-radius:50%; border:1.5px solid currentColor; font-size:12px; line-height:1; }
.ins-unsure > summary:focus-visible { outline:3px solid var(--ink); outline-offset:2px; border-radius:8px; }
.ins-unsure p { margin:0 0 4px; max-width:72ch; line-height:2; }

/* each way's own download, in its first step */
.dl-in { margin:2px 0 0; display:flex; } a.dl-main { text-decoration:none; }
/* The OS page's guide (owner 2026-11-10 18:40 UTC): where the customer's own download stands, a quiet dashed note instead of the button. */
.dl-demo { display:flex; align-items:center; gap:10px; margin:2px 0 0; padding:12px 16px; border:1.5px dashed var(--line); border-radius:12px;
  color:var(--muted); font-size:14px; line-height:1.9; }
.dl-demo .ic { width:20px; height:20px; flex:none; opacity:.7; }
.dl-demo a { color:var(--accent); font-weight:700; }
.dl-pair { display:flex; flex-wrap:wrap; gap:10px; } .dl-pair form { margin:0; display:flex; }
.ins .dl-pc { margin:0; }

.gd-meta { margin:0; color:var(--muted); font-size:13.5px; }
.gd-steps { display:flex; flex-direction:column; margin:0; padding:0; list-style:none; counter-reset:gd; }
.gd-steps > li { position:relative; display:flex; flex-direction:column; gap:10px; padding:18px 0; padding-inline-start:50px; border-top:1px solid var(--line); counter-increment:gd; }
.gd-steps > li:first-child { border-top:0; padding-top:4px; }
.gd-steps > li::before { content:counter(gd, persian); position:absolute; inset-inline-start:0; top:15px; display:grid; place-items:center; width:34px; height:34px;
  box-sizing:border-box; border-radius:50%; border:1.5px solid var(--line); background:var(--card); color:var(--ink); font-weight:800; font-size:15px; }
.gd-steps > li:first-child::before { top:1px; }
.gd-steps > li > * { margin:0; min-width:0; }
.gd-steps h4 { margin:0; padding-top:3px; font-size:16px; line-height:1.6; text-wrap:balance; }
.gd-steps p { max-width:68ch; font-size:14.5px; line-height:2; }
.gd-steps > li.key { margin-inline:-14px; padding:18px 14px; padding-inline-start:64px; border-radius:14px; border-top-color:transparent; background:#fdf2f4; }
.gd-steps > li.key + li { border-top-color:transparent; }
.gd-steps > li.key::before { inset-inline-start:14px; border-color:var(--accent); background:var(--accent); color:#fff; }
.gd-steps > li.last::before { content:"✓"; border-color:#1f8f55; background:#e3f4ea; color:#14613a; }
.gd-small { color:var(--muted); font-size:13px !important; line-height:1.9 !important; }

.ins .en { display:inline-block; direction:ltr; unicode-bidi:isolate; margin:0 1px; padding:0 6px; border:1px solid var(--line); border-radius:6px; background:var(--bg);
  color:var(--ink); font-size:.92em; font-weight:600; line-height:1.7; white-space:nowrap; }
/* the one tick to take off, as a line of its own: no Persian around it, so no RTL/LTR mix */
.gd-steps p.gd-label { align-self:flex-start; max-width:100%; padding:8px 12px; border:1px solid var(--line); border-radius:8px; background:var(--card); color:var(--ink);
  font-size:14px; font-weight:700; line-height:1.6; text-align:left; unicode-bidi:isolate; overflow-wrap:anywhere; }
.gd-steps > li.key .en, .gd-warn .en { background:var(--card); }

.gd-pic { margin:2px 0 0; }
.gd-pic img { display:block; max-width:100%; height:auto; border:1px solid var(--line); border-radius:10px; background:#fff; }
.gd-pic figcaption { margin-top:6px; color:var(--muted); font-size:12.5px; }

.gd-warn { display:flex; flex-direction:column; gap:10px; padding:14px; border:1px solid #efc66b; border-radius:12px; background:#fff8e6; }
.gd-warn p { margin:0; font-size:14px; line-height:2; }
.gd-warn strong { color:#8a1c1c; }
.gd-warn.soft { border-color:var(--line); background:var(--bg); }
.gd-more { border-radius:12px; }
.gd-more > summary { display:inline-flex; align-items:center; gap:8px; min-height:44px; cursor:pointer; list-style:none; color:var(--accent); font-size:14px; font-weight:700; }
.gd-more > summary::-webkit-details-marker { display:none; }
.gd-more > summary::before { content:"+"; display:grid; place-items:center; width:20px; height:20px; flex:none; border-radius:50%; border:1.5px solid currentColor; font-size:15px; line-height:1; }
.gd-more[open] > summary::before { content:"−"; }
.gd-more > summary:focus-visible { outline:3px solid var(--ink); outline-offset:2px; border-radius:8px; }
.gd-more[open] { padding:2px 14px 12px; background:var(--bg); }
.gd-more > :not(summary) { margin:0; font-size:14px; line-height:2; }
.gd-more > p + p { margin-top:6px; }
.gd-fix { display:flex; flex-direction:column; gap:8px; list-style:none; padding:0; } .gd-fix b { color:var(--ink); }

.gd-sub { margin:4px 0 0; font-size:15.5px; line-height:1.6; }
.gd-need { display:flex; flex-direction:column; gap:8px; margin:0; padding:0; list-style:none; }
.gd-need li { position:relative; padding-inline-start:20px; color:var(--muted); font-size:14px; line-height:2; }
.gd-need li::before { content:""; position:absolute; inset-inline-start:2px; top:.85em; width:8px; height:8px; border-radius:2px; background:var(--accent); }
.gd-need b { color:var(--ink); }
.gd-led { display:flex; flex-direction:column; gap:10px; margin:0; padding:0; list-style:none; }
.gd-led li { display:flex; align-items:flex-start; gap:10px; font-size:14.5px; line-height:1.9; }
/* the router's light, drawn (shop/_gd_led.html): the body in the figures' strokes, the light band in its colour, blinking or pulsing as the line says */
.gd-rt { flex:none; width:46px; height:48px; margin-top:-2px; overflow:visible; }
.gd-rt path { fill:none; stroke:#b9b7c0; stroke-width:1.2; vector-effect:non-scaling-stroke; stroke-linecap:round; stroke-linejoin:round; }
.gd-rt .rt-b { fill:var(--card); stroke:#8c8a94; } .gd-rt .rt-t { stroke:#dcdae0; }
.gd-rt .rt-l { stroke:#dcdae0; stroke-width:5; }
.gd-rt.c-o .rt-l { stroke:#f08a00; } .gd-rt.c-oy .rt-l { stroke:#f08a00; animation:rt-oy 2s ease-in-out infinite; }
.gd-rt.c-p .rt-l { stroke:#8e44d6; } .gd-rt.c-b .rt-l { stroke:#2f7de1; } .gd-rt.c-bp .rt-l { stroke:#2f7de1; animation:rt-bp 3s steps(1) infinite; }
.gd-rt.m-blink .rt-l { animation:rt-blink 1s steps(1) infinite; }
.gd-rt.m-pulse:not(.c-oy):not(.c-bp) .rt-l { animation:rt-pulse 2s ease-in-out infinite; }
@keyframes rt-blink { 50% { stroke:#dcdae0; } }
@keyframes rt-pulse { 50% { stroke-opacity:.25; } }
@keyframes rt-oy { 50% { stroke:#f5c400; } }
@keyframes rt-bp { 50% { stroke:#8e44d6; } }
.gd-con { margin:0; padding:12px 14px; border-radius:10px; background:#0c0c0c; color:#d4d4d4; font:12.5px/1.7 ui-monospace, "Cascadia Mono", Consolas, monospace;
  overflow-wrap:anywhere; text-align:left; }
/* one line of the window per span; a long line wraps under itself (hanging indent), never under the line number */
.gd-con span { display:block; padding-left:4ch; text-indent:-4ch; } .gd-con span.in { padding-left:8ch; }
.gd-con b { color:#fff; }

/* a line figure: hidden until portal/hairline.js draws it; one stroke palette in the account's colours, the bright stroke in the accent */
.hl { display:none; position:relative; margin:2px 0 0; max-width:360px; border:1px solid var(--line); border-radius:12px; background:var(--card); overflow:hidden;
  --hairline-plate:var(--card); --hairline-hi:var(--accent); --hairline-edge:#8c8a94; --hairline-mid:#b9b7c0; --hairline-lo:#dcdae0; --hairline-stroke:1; }
.hl-on .hl { display:block; }
/* the bright part is told at a glance (owner 2026-11-10 09:39 UTC: one thin accent line was «خیلی ناپیدا»): a heavy accent line, a wash of
   the accent inside a closed bright shape, and the bright mark (the reset button) solid, with the same heavy line round it. The kernel's own
   rules are :where(), so these win; its 260 ms change of the stroke carries the weight and the wash along */
.hl svg :is(path, polygon, ellipse, line) { transition-property:stroke, stroke-width, fill; }
.hl svg .hi { stroke-width:3; }
.hl svg .hi:not(.nf) { fill:#f2d0d8; }
.hl svg .dot:not(.m):not(.off) { stroke:var(--accent); stroke-width:3; }
.hl-read { position:absolute; top:8px; inset-inline-start:10px; margin:0; padding:2px 8px; border-radius:999px; background:var(--bg); color:var(--ink); font-size:12px;
  font-weight:700; line-height:1.8; pointer-events:none; }
.hl-read:empty { display:none; }
/* the one line under a figure: what to do, in plain words (owner 2026-11-10 11:01 UTC). It belongs to the figure's card, so it is read with the drawing.
   A figure is narrow, so the line takes two rows: each sentence is a block of its own and the break falls where a sentence ends («… وصل کنید.» /
   «پورت LAN همان است …»), never inside one. Balance alone broke it as «… پورت / LAN همان است …»; it stays for a sentence longer than a row,
   so no word is left alone on the last row */
.hl-cap { margin:0; padding:9px 12px 10px; border-top:1px solid var(--line); color:var(--ink); font-size:13.5px; font-weight:700; line-height:1.85; text-wrap:balance; }
.hl-cap span { display:inline-block; }
/* the figure's own stop and play: a 44px target around a small round mark, in the corner away from the read-out; the script shows it */
.hl-play { position:absolute; top:2px; inset-inline-end:2px; display:grid; place-items:center; width:44px; height:44px; margin:0; padding:0; border:0; background:none;
  color:var(--muted); cursor:pointer; touch-action:manipulation; -webkit-tap-highlight-color:transparent; }
.hl-play[hidden] { display:none; }
.hl-play svg { box-sizing:border-box; width:30px; height:30px; padding:7px; border:1px solid var(--line); border-radius:50%; background:var(--card); fill:currentColor;
  transition:border-color .15s, color .15s; }
.hl-play.on .i-go, .hl-play:not(.on) .i-stop { display:none; }
.hl-play:focus-visible { outline:none; } .hl-play:focus-visible svg { outline:2px solid var(--accent); outline-offset:2px; }
.hl-play:active svg { background:var(--bg); color:var(--ink); }
@media (hover:hover) { .hl-play:hover { color:var(--ink); } .hl-play:hover svg { border-color:#c42a4c80; } }
.gd-more .hl { margin-top:8px; }

@media (prefers-reduced-motion:reduce) {
  .ins-opts label, .ins-opts label::after, .hl-play svg { transition:none; }
  .gd-rt .rt-l { animation:none !important; }
  .r-ow:checked ~ .p-ow, .r-gg:checked ~ .p-gg, .r-gk:checked ~ .p-gk, .r-ez:checked ~ .p-ez, .r-man:checked ~ .p-man { animation:none; }
}
@media (max-width:760px) {
  .ins-opts, .ins-two { grid-template-columns:minmax(0,1fr); gap:8px; }
  .ins-opts label { min-height:0; padding-block:10px; }
  .gd-steps > li { padding-inline-start:44px; }
  .gd-steps > li::before { width:30px; height:30px; font-size:14px; }
  .gd-steps > li.key { margin-inline:-10px; padding-inline:10px; padding-inline-start:54px; }
  .gd-steps > li.key::before { inset-inline-start:10px; }
  .gd-steps > li > .gd-pic, .gd-steps > li > .gd-warn, .gd-steps > li > .hl { margin-inline-start:-44px; }
  .gd-steps > li > .gd-con { margin-right:-44px; } /* the console is dir=ltr: its own inline-start is the left side */
  .gd-con { font-size:11.5px; }
  .gd-steps h4 { font-size:15.5px; }
  .dl-in .dl-main { width:100%; min-width:0; }
  .dl-pair { display:grid; grid-template-columns:minmax(0,1fr); } .dl-pair form, .dl-pair .dl-alt { width:100%; } .dl-pair .dl-alt { justify-content:center; }
  .hl { max-width:none; }
}
