/* The IFC 1.3 wiring diagram (js/wiring.js). Drawn as flight-controller makers do: always on white (also on a dark
   page, like a printed diagram), real cable colours, short labels. Motion: the wires lay themselves in once and the
   devices settle; nothing moves after that, nothing at all with reduced motion or in print. */
.wd-wrap { background: #fff; color: #16181d; border: 1px solid var(--line); border-radius: var(--r-card); padding: 16px 16px 12px; min-width: 0; }
.wd-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.wd-swipe { display: none; margin: 6px 4px 0; font-size: 13px; color: #5b6472; }
@media (max-width: 760px) { .wd { min-width: 1100px; } .wd-swipe { display: block; } }
.wd { display: block; width: 100%; min-width: 680px; height: auto; font-family: 'Plex Sans', system-ui, sans-serif; }
.wd-w { fill: none; stroke-width: 4.2; stroke-linecap: round; stroke-linejoin: round; }
.wd-edge { fill: none; stroke: #9aa1ad; stroke-width: 6; stroke-linecap: round; }
.wd-plug { fill: #fbfaf7; stroke: #c9c5bd; stroke-width: 1.4; }
.wd-lbl { font: 700 12px 'Plex Mono', monospace; fill: #16181d; paint-order: stroke; stroke: #fff; stroke-width: 3px; }
.wd-dev .wd-lbl[fill="#fff"] { fill: #fff; stroke: none; }
.wd-name { font-size: 15px; font-weight: 650; fill: #16181d; }
.wd-sub { font-size: 12px; fill: #5b6472; }
.wd-fwd path { stroke: #5b6472; stroke-width: 2; fill: none; }
.wd-fwd text { font-size: 12px; fill: #5b6472; }
.wd-dev { transition: opacity .25s ease; outline: none; }
.wd-dev.dim { opacity: .2; }
.wd-dev:focus-visible .wd-name { fill: var(--focus); }
.wd-dev:focus-visible { filter: drop-shadow(0 0 4px var(--focus)); }
.wd-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; margin: 10px 4px 0; padding: 0; font-size: 13px; color: #384661; }
.wd-legend i { display: inline-block; width: 20px; height: 5px; border-radius: 3px; vertical-align: middle; margin-right: 7px; }
.wd-legend i.white { background: #fff; box-shadow: inset 0 0 0 1px #9aa1ad; }
.wd-note { margin: 8px 4px 2px; font-size: 14px; color: #384661; }

@media screen and (prefers-reduced-motion: no-preference) {
  .wd .wd-w, .wd .wd-edge { stroke-dasharray: 100; stroke-dashoffset: 100; }
  .wd.in .wd-w, .wd.in .wd-edge { stroke-dashoffset: 0; transition: stroke-dashoffset .8s cubic-bezier(.16, 1, .3, 1) calc(var(--i, 0) * 30ms); }
  .wd .wd-dev > :not(path):not(text) { opacity: 0; transform: translateY(6px); transition: opacity .45s ease .1s, transform .45s cubic-bezier(.16, 1, .3, 1) .1s; }
  .wd.in .wd-dev > :not(path):not(text) { opacity: 1; transform: none; }
}
@media print {
  .wd-wrap { break-inside: avoid; border-color: #ccc; }
  .wd { min-width: 0 !important; }
  .wd-swipe { display: none !important; }
}
.wd-w.bat { stroke-width: 8; }
.wd-lead { fill: none; stroke: #9aa1ad; stroke-width: 1.4; stroke-dasharray: 4 4; }
.wd-tag rect { fill: #fff; stroke: #16181d; stroke-width: 1.2; }
.wd-tag text { font: 700 10.5px 'Plex Mono', monospace; fill: #16181d; }
/* In the product page's picture gallery: the whole drawing fits the square (no sideways scroll on a phone); the
   colour key and the note are on the datasheet, linked from the caption. */
.gallery-main .wd-wrap { width: 100%; height: 100%; padding: 6px; overflow: hidden; display: grid; place-items: center; }
.gallery-main .wd { min-width: 0; width: 100%; height: 100%; }
.gallery-main .wd-legend, .gallery-main .wd-note, .gallery-main .wd-swipe { display: none; }
.gallery-main .wd-scroll { width: 100%; height: 100%; overflow: hidden; display: grid; place-items: center; }
