/* FC-501 cable builder. Every rule is scoped to .fcb so nothing leaks into the site chrome.
   Tokens follow the site palette (primary #005c8c, CTA orange); the site is light-only. */
.fcb { font: 15px/1.55 var(--f-body); color: var(--ink); --bg: #f4f8fb; --surface: #ffffff; --sunk: #eef4f8; --ink: #0b2236; --muted: #55646d; --line: #d3e3ec;
  --primary: #005c8c; --primary-ink: #ffffff; --accent-text: #006d94; --cta: #fb8302; --cta-ink: #1d1200;
  --warn-bg: #fff4e0; --warn-line: #e3a13a; --warn-ink: #6a4400;
  --stop-bg: #fdecec; --stop-line: #d9534f; --stop-ink: #7a1f1c;
  --ok-ink: #1d6b3a; --plate: #ffffff; --cable: #3b4a55; --dim: #9fb3c0;
  --f-body: "Roboto", -apple-system, "Segoe UI", Arial, sans-serif;
  --f-mono: "Roboto Mono", ui-monospace, Menlo, Consolas, monospace;
  --r: 10px; }
.fcb, .fcb * { box-sizing: border-box; }
.fcb h1, .fcb h2, .fcb h3 { text-wrap: balance; margin: 0; line-height: 1.2; }
.fcb a { color: var(--accent-text); }
.fcb .lead a, .fcb .note a, .fcb .cap a, .fcb-copy p a { text-decoration: underline; }
.fcb :focus-visible { outline: 2px solid var(--cta); outline-offset: 2px; }
.fcb .eyebrow { font: 700 11.5px/1 var(--f-body); letter-spacing: 1.8px; text-transform: uppercase; color: var(--accent-text); }
.fcb .mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.fcb .note { border-radius: var(--r); padding: 12px 16px; font-size: 14px; border: 1px solid var(--warn-line); background: var(--warn-bg); color: var(--warn-ink); }
.fcb .note strong { color: inherit; }
.fcb .note.stop { border-color: var(--stop-line); background: var(--stop-bg); color: var(--stop-ink); }
.fcb .note.info { border-color: var(--line); background: var(--sunk); color: var(--ink); }
.fcb .cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.fcb .btn { appearance: none; border: 1.5px solid var(--primary); background: transparent; color: var(--accent-text); font: 600 14px var(--f-body);
  padding: 10px 18px; border-radius: 999px; cursor: pointer; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.fcb .btn:hover { background: var(--sunk); }
.fcb .btn.primary { background: var(--cta); border-color: var(--cta); color: var(--cta-ink); }
.fcb .btn.primary:hover { filter: brightness(1.05); }
.fcb .btn[disabled] { opacity: .45; cursor: not-allowed; }
.fcb .builder { min-height: 900px;  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.fcb .b-head { padding: 22px clamp(16px, 3vw, 30px) 18px; border-bottom: 1px solid var(--line); display: grid; gap: 6px; }
.fcb .b-head h2 { font-size: clamp(22px, 2.6vw, 28px); }
.fcb .b-head p { margin: 0; color: var(--muted); max-width: 75ch; }
.fcb .b-body { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); grid-template-areas: "rail draw" "rail list"; grid-template-rows: auto 1fr; }
.fcb .rail { grid-area: rail; }
.fcb .stage { grid-area: draw; }
.fcb .stage.list { grid-area: list; padding-top: 0; }
@media (max-width: 980px) {
  .fcb .b-body { grid-template-columns: minmax(0, 1fr); grid-template-areas: "draw" "rail" "list"; grid-template-rows: auto; }
  .fcb .stage { border-left: 0 !important; border-bottom: 1px solid var(--line); }
  .fcb .stage.list { border-bottom: 0; border-top: 1px solid var(--line); padding-top: 18px; }
}
.fcb .rail { padding: 18px clamp(16px, 2.4vw, 24px) 24px; display: grid; gap: 16px; align-content: start; min-width: 0; }
.fcb .steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: s; }
.fcb .steps button { all: unset; box-sizing: border-box; width: 100%; display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: center; padding: 7px 8px; border-radius: 8px; cursor: pointer; }
.fcb .steps button:hover { background: var(--sunk); }
.fcb .steps button:focus-visible { outline: 2px solid var(--cta); }
.fcb .steps .n { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; font: 500 12px var(--f-mono); color: var(--muted); }
.fcb .steps .t { display: grid; min-width: 0; }
.fcb .steps .t b { font-weight: 500; font-size: 14px; }
.fcb .steps .t span { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fcb .steps li.done .n { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.fcb .steps li.cur button { background: var(--sunk); }
.fcb .steps li.cur .n { border-color: var(--cta); color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cta) 30%, transparent); }
.fcb .steps li.flag .t span { color: var(--warn-ink); }
.fcb .panel { border-top: 1px solid var(--line); padding-top: 16px; display: grid; gap: 14px; }
.fcb .panel h2 { font-size: 18px; }
.fcb .panel .lead { margin: 0; color: var(--muted); font-size: 14px; }
.fcb .choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.fcb .choice { position: relative; }
.fcb .choice input { position: absolute; opacity: 0; pointer-events: none; }
.fcb .choice label { display: grid; grid-template-rows: 64px auto; gap: 6px; padding: 8px; border: 1.5px solid var(--line); border-radius: var(--r); cursor: pointer; height: 100%; background: var(--surface); }
.fcb .choice label:hover { border-color: var(--primary); }
.fcb .choice input:checked + label { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 22%, transparent); }
.fcb .choice input:focus-visible + label { outline: 2px solid var(--cta); outline-offset: 2px; }
.fcb .choice .art { background: var(--plate); border-radius: 7px; display: grid; place-items: center; overflow: hidden; }
.fcb .choice .art svg { width: 86%; height: 56px; }
.fcb .choice .art .glyph { font: 700 13px var(--f-mono); color: #33505f; }
.fcb .choice .nm { font-size: 13px; font-weight: 500; line-height: 1.3; }
.fcb .choice .nm small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }
.fcb .choice.wide { grid-column: 1 / -1; }
.fcb .choice.wide label { grid-template-rows: auto; grid-template-columns: 56px 1fr; align-items: center; }
.fcb .choice.wide .art { height: 44px; }
.fcb .field { display: grid; gap: 6px; }
.fcb .field > span { font-size: 13px; font-weight: 500; }
.fcb select, .fcb input[type=number] { font: 14px var(--f-body); color: var(--ink); background: var(--surface); border: 1.5px solid var(--line); border-radius: 8px; padding: 8px 10px; width: 100%; }
.fcb select:focus, .fcb input:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 22%, transparent); }
.fcb .seg { display: flex; flex-wrap: wrap; gap: 6px; }
.fcb .seg input { position: absolute; opacity: 0; pointer-events: none; }
.fcb .seg label { border: 1.5px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 13px; cursor: pointer; background: var(--surface); }
.fcb .seg input:checked + label { border-color: var(--primary); background: var(--primary); color: var(--primary-ink); }
.fcb .seg input:focus-visible + label { outline: 2px solid var(--cta); outline-offset: 2px; }
.fcb .toggle { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; font-size: 14px; cursor: pointer; }
.fcb .toggle input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--primary); }
.fcb .toggle small { display: block; color: var(--muted); font-size: 12.5px; }
.fcb .pinpick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fcb .gpio { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.fcb .gpio label { display: flex; gap: 8px; align-items: center; border: 1.5px solid var(--line); border-radius: 8px; padding: 6px 8px; font-size: 13px; cursor: pointer; }
.fcb .gpio input { accent-color: var(--primary); }
.fcb .gpio i { width: 12px; height: 12px; border-radius: 3px; border: 1px solid rgba(0,0,0,.25); flex: none; }
.fcb .gpio small { color: var(--muted); margin-left: auto; font-family: var(--f-mono); }
.fcb .lens { display: grid; gap: 10px; }
.fcb .len { display: grid; grid-template-columns: 1fr 96px; gap: 6px 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); }
.fcb .len b { font-size: 14px; font-weight: 500; }
.fcb .len small { grid-column: 1 / -1; font-size: 12.5px; color: var(--muted); }
.fcb .len small.bad { color: var(--warn-ink); }
.fcb .len input[type=range] { grid-column: 1 / -1; width: 100%; accent-color: var(--primary); }
.fcb .nav { display: flex; justify-content: space-between; gap: 10px; padding-top: 4px; }
.fcb .stage { border-left: 1px solid var(--line); padding: 18px clamp(16px, 2.4vw, 26px) 26px; display: grid; gap: 16px; align-content: start; min-width: 0; background: var(--sunk); }
.fcb .stage-top { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; }
.fcb .code { font: 500 13px var(--f-mono); background: var(--surface); border: 1px dashed var(--line); border-radius: 8px; padding: 6px 10px; overflow-wrap: anywhere; }
.fcb .drawing { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow-x: auto; }
.fcb .drawing svg { display: block; min-width: 600px; width: 100%; height: auto; }
.fcb .cap { font-size: 12.5px; color: var(--muted); margin: 0; }
.fcb .cap .swipe { display: none; }
@media (max-width: 640px) { .fcb .cap .swipe { display: inline; } }
.fcb .issues { display: grid; gap: 8px; }
.fcb .tbl-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.fcb table { border-collapse: collapse; width: 100%; font-size: 13.5px; min-width: 620px; }
.fcb th, .fcb td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.fcb th { font: 700 11px var(--f-body); letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); background: var(--sunk); }
.fcb td.pin { font-family: var(--f-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.fcb tr.grp-row td { background: var(--sunk); font-weight: 500; font-size: 12.5px; color: var(--muted); }
.fcb .sw { display: inline-flex; gap: 8px; align-items: center; white-space: nowrap; }
.fcb .sw i { width: 22px; height: 8px; border-radius: 4px; border: 1px solid rgba(0,0,0,.25); }
.fcb .leg { cursor: pointer; }
.fcb .leg.dim { opacity: .38; }
.fcb .leg:hover .jacket { stroke-width: 15; }
.fcb .leg:focus-visible { outline: none; }
.fcb .leg:focus-visible .jacket { stroke: var(--cta); }
.fcb svg text { fill: var(--ink); font-family: var(--f-body); }
.fcb svg .t-muted { fill: var(--muted); }
.fcb svg .t-mono { font-family: var(--f-mono); }
.fcb .toast { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px; font-size: 14px; }
@media (prefers-reduced-motion: no-preference) {
  .fcb .leg, .fcb .choice label, .fcb .steps button { transition: opacity .2s, border-color .15s, background .15s; }
}

/* ── "Wiring the FC-501" section on the product page ── */
.fcw { display: grid; gap: 22px; }
.fcw-map { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.fcw-grp { border: 1px solid var(--border-blue); border-radius: var(--radius); padding: 14px 16px; display: grid; gap: 8px; align-content: start; background: #f5f9fc; }
.fcw-grp h3 { font-size: 15px; margin: 0; display: flex; align-items: center; gap: 8px; }
.fcw-grp h3 i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.fcw-grp ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 14px; }
.fcw-grp li { display: grid; grid-template-columns: 30px 1fr; gap: 8px; }
.fcw-grp li b { font-weight: 600; font-variant-numeric: tabular-nums; color: #55646d; text-align: right; }
.fcw-grp li span span { color: #55646d; }
.fcw-grp p { margin: 0; font-size: 13px; color: #55646d; }
.fcw-notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.fcw-notes > div { border-radius: var(--radius); padding: 12px 16px; font-size: 14px; border: 1px solid #e3a13a; background: #fff4e0; color: #6a4400; }
.fcw-notes > div.info { border-color: var(--border-blue); background: #f5f9fc; color: var(--text-primary); }
.fcw-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
