/* /how-it-works (lib/how-it-works.js): one step per screen on phones, two columns on wide screens. */
.hw { max-width: 760px; margin: 0 auto; }
.hw .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hw-head { padding: 8px 0 4px; }
.hw-head h1 { margin: 4px 0 6px; }
.hw-dots { list-style: none; display: flex; gap: 6px; padding: 0; margin: 12px 0 0; flex-wrap: wrap; }
.hw-dots a { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 40px; border-radius: 999px; border: 1px solid var(--line); color: var(--fg); text-decoration: none; font-weight: 700; }
.hw-step { min-height: calc(100svh - 170px); display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 80px; }
.hw-fig { margin: 0; text-align: center; }
.hw-fig figcaption { margin-top: 4px; }
.hw-art { width: 100%; max-width: 300px; height: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 10px; }
.hw-n { margin: 0; font-size: 13px; color: var(--muted); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.hw-copy h2 { margin: 4px 0 6px; font-size: 26px; line-height: 1.15; }
.hw-copy p { margin: 0 0 10px; font-size: 17px; line-height: 1.45; }
.hw-ctas { display: flex; flex-wrap: wrap; gap: 8px; }
.hw-next { display: inline-block; padding: 10px 0; color: var(--muted); }
.hw-end { margin: 20px 0; }
.hw-links { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 2px; }
.hw-links a { display: block; padding: 12px 0; font-size: 17px; }
@media (min-width: 761px) { .hw-step { flex-direction: row; align-items: center; gap: 28px; min-height: 0; padding: 36px 0; } .hw-fig { flex: 0 0 300px; } }
@media (prefers-reduced-motion: no-preference) { html:has(.hw) { scroll-behavior: smooth; } }
/* Drawing parts */
.hw-art .hw-b { fill: var(--bg, #fff); stroke: var(--line); stroke-width: 1.5; }
.hw-art .hw-search { stroke-width: 2; }
.hw-art .hw-l { fill: var(--fg); opacity: .55; }
.hw-art .hw-dim { opacity: .25; }
.hw-art .hw-t { fill: var(--fg); font: 600 12px system-ui, sans-serif; }
.hw-art .hw-small { font-size: 10px; fill: var(--muted); letter-spacing: .03em; }
.hw-art .hw-big { font-size: 15px; font-weight: 800; }
.hw-art .hw-mid { text-anchor: middle; }
.hw-art .hw-ic { fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.hw-art .hw-on { fill: var(--ok); }
.hw-art .hw-off { fill: none; stroke: var(--line); stroke-width: 1.5; }
.hw-art .hw-pick { fill: none; stroke: var(--fg); stroke-width: 2.5; }
.hw-art .hw-tn { fill: var(--muted); font: 700 10px ui-monospace, monospace; text-anchor: middle; }
.hw-art .hw-tn-on { fill: #fff; }
.hw-art .hw-photo { stroke-dasharray: 5 4; }
.hw-art .hw-cam { fill: none; stroke: var(--fg); stroke-width: 2; }
.hw-art .hw-camlens { fill: none; stroke: var(--fg); stroke-width: 2; }
.hw-art .hw-go { fill: var(--fg); stroke: none; }
.hw-art .hw-go-t { fill: var(--bg, #fff); }
.hw-art .hw-spark { fill: none; stroke: var(--ok); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.hw-art .hw-card { fill: var(--sunken, #eee); }
.hw-art .hw-phone { stroke-width: 2.5; }
.hw-art .hw-frame { fill: none; stroke: var(--ok); stroke-width: 3; stroke-linecap: round; }
.hw-art .hw-av { fill: var(--sunken, #eee); stroke: var(--line); }
.hw-art .hw-tog { fill: var(--line); }
.hw-art .hw-knob { fill: var(--fg); }
