/* AFH-LR product visuals: the shared drawing style for layouts and schematics. A layout reads as a design file in a
   layout editor, not as a manufactured board: flat colours by layer and no material, light or shadow.
   Layers: board outline (light neutral), copper (blue: tracks, pads, vias) and drill (dark). A schematic stays
   technically distinct: neutral line symbols, wires and junctions, without copper colour. The boards are sourced
   KiCad layouts (tools/boards, tools/layout_scene.py); the markup comes from tools/product_visuals.py. */
@layer scenes {
  .ix-lrd{--lrd-edge:#c7d3dc;--lrd-cu:#4c8ec4;--lrd-pad:#9cc9ea;--lrd-zone:rgba(76,142,196,.13);--lrd-drill:#0a1219;}
  .ix-lrd .ix-lrh-sub{fill:rgba(170,205,232,.035);stroke:none;}
  .ix-lrd .ix-lrh-edge{fill:none;stroke:var(--lrd-edge);stroke-width:1px;vector-effect:non-scaling-stroke;}
  /* Copper in millimetres: every track of a board has one thin width (stroke-width in the markup). As in a layout
     editor, the bottom layer is dimmer than the top layer. */
  .ix-lrd .ix-lrh-routes>g{fill:none;stroke:var(--lrd-cu);stroke-linecap:round;stroke-linejoin:round;}
  .ix-lrd :is(.ix-lrh-routes,.ix-lrh-fp) .ix-kb-B{opacity:.45;}
  .ix-lrd .ix-lrh-fp .ix-kb-pad{fill:var(--lrd-pad);}
  .ix-lrd .ix-lrh-fp .ix-kb-drill{fill:var(--lrd-drill);}
  .ix-lrd .ix-lrh-via{fill:var(--lrd-drill);stroke:var(--lrd-pad);}
  .ix-lrd .ix-lrh-stitch .ix-lrh-via{stroke:var(--lrd-cu);}
  .ix-lrd .ix-lrh-hole{fill:var(--lrd-drill);stroke:var(--lrd-edge);stroke-width:1px;vector-effect:non-scaling-stroke;}
  .ix-lrd .ix-lrh-rats path{fill:none;stroke:rgba(226,235,242,.6);stroke-width:1px;vector-effect:non-scaling-stroke;}

  /* Schematic: symbols and wires in neutral lines. */
  .ix-lrs{--lrs-line:#aebbc5;}
  .ix-lrs :is(path,rect){fill:none;stroke:var(--lrs-line);stroke-width:1px;vector-effect:non-scaling-stroke;stroke-linecap:round;stroke-linejoin:round;}
  .ix-lrs .ix-lrh-wires{stroke:#7f909c;}
  .ix-lrs circle{fill:var(--lrs-line);stroke:none;}

  /* Sourced KiCad boards drawn whole (tools/kicad_board.py, Home Explore): one path per layer in millimetres. The copper
     is neutral; the current board (.is-picked) takes the copper blue. The outline stays a thin line at every scale. */
  .ix-lrd .ix-kb-edge{fill:rgba(170,205,232,.04);stroke:#7d8d99;stroke-width:1px;vector-effect:non-scaling-stroke;}
  .ix-lrd .ix-kb-zone{fill:rgba(147,167,182,.08);}
  .ix-lrd .ix-kb-cu{fill:none;stroke:#62778a;stroke-linecap:round;stroke-linejoin:round;}
  .ix-lrd .ix-kb-pad{fill:#8b9eae;}
  .ix-lrd .ix-kb-drill{fill:var(--lrd-drill);}
  /* Vias and drills are round dots: zero-length lines with round caps, as wide as the circle. */
  .ix-lrd .ix-kb-dots{fill:none;stroke-linecap:round;}
  .ix-lrd .ix-kb-via{stroke:#8b9eae;}
  .ix-lrd .ix-kb-dots.ix-kb-drill{stroke:var(--lrd-drill);}
  .ix-lrd.is-picked .ix-kb-zone{fill:var(--lrd-zone);}
  .ix-lrd.is-picked .ix-kb-cu{stroke:var(--lrd-cu);}
  .ix-lrd.is-picked .ix-kb-pad{fill:var(--lrd-pad);}
  .ix-lrd.is-picked .ix-kb-via{stroke:var(--lrd-pad);}

  /* Each footprint carries its schematic symbol for the AFH-LR hero, which shows it while the parts move. */
  .ix-lrd .ix-lrh-sym{display:none;}
  .ix-lrd :is(.ix-lrh-cmp,.ix-lrh-frame,.ix-lrh-routes path){transform-box:view-box;}
}
