/* AM Pins - native drawings (drawings.js). Dark by default; light under :root[data-scheme="light"] or .pd-light; print = black on white.
   Group colours are fill/stroke attributes on the dots; everything neutral is here. .pd-on = highlighted pin (the page toggles it). */
.pd{display:block;width:100%;height:auto;max-width:640px;margin:0 auto;font-family:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
--pd-ink:#e4e9ef;--pd-muted:#9aa6b6;--pd-plate:#3a4757;--pd-plate2:#2e3a48;--pd-edge:#8796a8;--pd-paper:#1f2731;--pd-cl:#6b7a8c;
--pd-pl:#4cc07c;--pd-ring:#e4e9ef;--pd-warn:#f5c26b;--pd-ext:#6b7a8d;--pd-zero:#ff6b6b}
:root[data-scheme="light"] .pd,.pd.pd-light{--pd-ink:#1d2430;--pd-muted:#5b6676;--pd-plate:#c9d3de;--pd-plate2:#dfe5ec;--pd-edge:#5b6676;
--pd-paper:#f4f6f9;--pd-cl:#7b8696;--pd-pl:#1f8a4c;--pd-ring:#fff;--pd-warn:#b04a00;--pd-ext:#9aa7b8;--pd-zero:#c62828}
:root .pd.pd-dark{--pd-ink:#e4e9ef;--pd-muted:#9aa6b6;--pd-plate:#3a4757;--pd-plate2:#2e3a48;--pd-edge:#8796a8;--pd-paper:#1f2731;--pd-cl:#6b7a8c;
--pd-pl:#4cc07c;--pd-ring:#e4e9ef;--pd-warn:#f5c26b;--pd-ext:#6b7a8d;--pd-zero:#ff6b6b}
.pd text{fill:var(--pd-ink)}
.pd text.pd-m{fill:var(--pd-muted)}
.pd text.pd-warn{fill:var(--pd-warn);font-style:italic}
.pd text.pd-h{font-weight:700;letter-spacing:.04em}
.pd text.pd-k{font-family:Consolas,"SF Mono",Menlo,monospace}
.pd text.pd-lt{fill:#fff;font-weight:700;pointer-events:none}
.pd .pd-pillar{fill:#9aa3ad;stroke:#5d6672;stroke-width:1}
.pd text.pd-hwl{font-weight:700;fill:var(--pd-muted)}
/* the zero corner (ZERO line): a red ring on the B-Plate corner + "ZERO", the offset leader pin grey in a red ring */
.pd .pd-zr{fill:none;stroke:var(--pd-zero);stroke-width:2}
.pd .pd-zr.pd-zlr{stroke-width:1.3}
.pd .pd-zlp{fill:#9aa3ad;stroke:#5d6672;stroke-width:.8}
.pd text.pd-zl{fill:var(--pd-zero);font-weight:700;letter-spacing:.04em}
.pd text.pd-zno{fill:var(--pd-zero);font-weight:700}
.pd text.pd-pltext{fill:var(--pd-plc);font-weight:600}
/* dark theme: the sheet's light ring round every dot and a light halo under each pin line (critic 8 #3: lines were < 3:1) */
.pd .pd-halo{stroke:var(--pd-ring);stroke-width:3.6;opacity:.9}
.pd .pd-face{stroke-width:1.2;opacity:.7}
.pd g.pd-meas.pd-on .pd-face{stroke-width:2.2;opacity:1}
.pd .pd-plate{fill:var(--pd-plate);stroke:var(--pd-edge);stroke-width:1}
.pd .pd-plate.pd-alt{fill:var(--pd-plate2)}
.pd .pd-ph{fill:none;stroke:var(--pd-warn);stroke-width:1.2;stroke-dasharray:5 3}
.pd .pd-plline{stroke:var(--pd-plc);stroke-width:2.2}
.pd .pd-dim{stroke:var(--pd-ink);stroke-width:.8;fill:none}
.pd .pd-ext,.pd .pd-lead{stroke:var(--pd-ext);stroke-width:.7;fill:none}
.pd .pd-paper{fill:var(--pd-paper);stroke:var(--pd-edge)}
.pd .pd-cl{stroke:var(--pd-cl);stroke-width:.6;stroke-dasharray:6 3 1 3;fill:none}
.pd .pd-frame{fill:none;stroke:var(--pd-muted);stroke-width:.8;stroke-dasharray:4 3}
.pd .pd-frame.pd-cavf{stroke:var(--pd-ink);stroke-width:1.1;stroke-dasharray:5 3}
/* the close-up frame / marker = the molded part's outer loops, dashed (Seth 11-27: "match the part, not a generic box"), in the
   part-edge colour: the ink parting-line chain runs along it and keeps its 3:1 on the edge (see the token notes below) */
.pd .pd-frame.pd-olf{stroke:var(--pd-part-edge);stroke-width:1.4;stroke-dasharray:5 3;stroke-linejoin:round}
.pd text.pd-cavn{font-weight:700;fill:var(--pd-ink)}
.pd .pd-tick{stroke:var(--pd-ink);stroke-width:1.6;stroke-linecap:round}
.pd circle.pd-pin:not(.pd-ring),.pd circle.pd-gl,.pd circle.pd-sw,.pd circle.pd-tag{stroke:var(--pd-ring);stroke-width:1}
.pd [data-key]{cursor:pointer}
.pd circle.pd-pin.pd-on:not(.pd-ring){stroke:var(--pd-ink);stroke-width:3.5}
.pd circle.pd-ring.pd-on{stroke-width:4}
.pd .pd-hit{fill:transparent;stroke:none;cursor:pointer}
/* a selected group: its pins, its stack-up line and legend row stand out, everything else of the groups fades */
.pd.pd-sel [data-group]:not(.pd-on):not(.pd-hit){opacity:.22}
.pd g.pd-on line{stroke-width:3.5}
.pd g.pd-leg.pd-on text{font-weight:700}
/* a selected plate: outline + its measuring arrow */
.pd [data-role]{cursor:pointer}
.pd rect.pd-on{stroke:var(--pd-ink);stroke-width:2.5}
.pd g.pd-meas.pd-on line,.pd g.pd-meas.pd-on polyline{stroke-width:2.2}
/* Display options (drawings.js opts.pins / side / layout / outline). Tokens light + dark; WCAG 2 contrast, relative luminance,
   measured by web\tests\test-drawings.js 'theme tokens' (it fails under the floor):
   The parting line (--pd-plc, ink) also clears the part fill AND the part edge by 3:1 (DRAWING-SPEC; compare-3 #6: dark was
   1.34:1, one white outline), so the dark part fill is darker and its edge mid-tone:
   dark  (card #1a2029 / map paper #1f2731 / plate #3a4757 / part #3a3428):
     --pd-part-edge #9d927e: 5.34 card, 4.92 paper, 3.09 plate, 4.02 part     --pd-plc #ffffff: 3.07 on the edge, 12.34 part
   light (card #fff / map paper #f4f6f9 / plate #c9d3de / part #e6dfd3):
     --pd-part-edge #776a58: 5.27 card, 4.87 paper, 3.48 plate, 3.98 part     --pd-plc #000000: 3.99 on the edge
   The part fill is a tint (never the only cue: its edge carries it - 1 px on the map, 1.8 in the side view). */
.pd{--pd-part:#3a3428;--pd-part-edge:#9d927e;--pd-plc:#ffffff;--pd-tagl:#9aa6b6;--pd-pinx:#e4e9ef;--pd-card:#1a2029}
:root[data-scheme="light"] .pd,.pd.pd-light{--pd-part:#e6dfd3;--pd-part-edge:#776a58;--pd-plc:#000000;--pd-tagl:#5b6676;--pd-pinx:#1d2430;--pd-card:#ffffff}
:root .pd.pd-dark{--pd-part:#3a3428;--pd-part-edge:#9d927e;--pd-plc:#ffffff;--pd-tagl:#9aa6b6;--pd-pinx:#e4e9ef;--pd-card:#1a2029}
.pd .pd-part{fill:var(--pd-part);stroke:none}
.pd .pd-pedge{fill:none;stroke:var(--pd-part-edge);stroke-width:1;stroke-linejoin:round}
.pd .pd-part.pd-open{fill:none}
.pd .pd-partf{fill:var(--pd-part);fill-opacity:.92;stroke:none}
.pd .pd-partv{fill:none;stroke:var(--pd-part-edge);stroke-width:1.8;stroke-linejoin:round}
.pd .pd-parth{fill:none;stroke:var(--pd-part-edge);stroke-width:1.2;stroke-dasharray:5 3}
.pd .pd-plc{fill:none;stroke:var(--pd-plc);stroke-width:2.2;stroke-dasharray:14 3 3 3;stroke-linejoin:round}
.pd .pd-plc.pd-plci{stroke-width:1.2;stroke-dasharray:8 2 2 2}
.pd text.pd-plt{fill:var(--pd-plc);font-weight:700}
.pd .pd-pllead{stroke:var(--pd-plc);stroke-width:.8}
.pd .pd-pldot{fill:var(--pd-plc)}
.pd text.pd-halo2{paint-order:stroke;stroke:var(--pd-card);stroke-width:2.5px;stroke-linejoin:round}
.pd text.pd-asl,.pd tspan.pd-asl{fill:var(--pd-ink);font-weight:700}
.pd text.pd-bcp{fill:var(--pd-warn);font-weight:700}
.pd text.pd-cn{font-weight:600}
/* A-side pins on the map: hollow in their group colour (color attribute), the dashed ring round them (DRAWING-SPEC) */
.pd circle.pd-pin.pd-hollow:not(.pd-ring){fill:var(--pd-paper);stroke:currentColor;stroke-width:1.6}
.pd circle.pd-pin.pd-hollow.pd-on:not(.pd-ring){stroke-width:3.5}
/* tags with more than a letter: "K+F" (coaxial, an ink pill) and "E x6" (folded places, the group colour) */
.pd rect.pd-pill{stroke:var(--pd-ring);stroke-width:1}
.pd rect.pd-pill.pd-inkp{fill:var(--pd-pinx)}
.pd text.pd-pillt{fill:var(--pd-paper);font-weight:700;pointer-events:none}
.pd .pd-tagl{stroke:var(--pd-tagl);stroke-width:.8;fill:none}
.pd circle.pd-pin.pd-tp:not(.pd-ring){stroke-width:.6}
.pd circle.pd-pin.pd-tmin:not(.pd-ring){stroke:var(--pd-pinx);stroke-width:.8}
.pd .pd-truering{fill:none;stroke:var(--pd-pinx);stroke-width:.8;pointer-events:none}
.pd .pd-aring{fill:none;stroke:var(--pd-pinx);stroke-width:.9;stroke-dasharray:2 1.5;pointer-events:none}
.pd .pd-sil{stroke:var(--pd-ring);stroke-width:1;stroke-linejoin:round}
.pd .pd-sil.pd-aside{fill-opacity:.35;stroke:var(--pd-pinx);stroke-dasharray:3 2}
.pd .pd-plate.pd-bg{fill:none;stroke-dasharray:4 3}
.pd .pd-pillar.pd-bgp{opacity:.6}
.pd .pd-brk{stroke:var(--pd-muted);stroke-width:.7;fill:none}
.pd .pd-clip{fill:#000}
.pd text.pd-in{paint-order:stroke;stroke:var(--pd-plate);stroke-width:3px;stroke-linejoin:round}
.pd text.pd-in tspan{font-family:Consolas,"SF Mono",Menlo,monospace}
/* aligned layout: the close-up and the side view one under the other at one width, or they do not line up */
.pdw:has(.pd-al){grid-template-columns:minmax(0,1fr)}
/* the side view's right-hand column (pd-rc: viewBox 424 = 320 drawing + 104 column). Wide screens and paper show it and draw the
   map at 320 / 424 of that width, so both keep one scale; phones hang the column off the right edge (clipped) and read the
   caption list under the side view instead (DRAWING-SPEC "Plate names ... Phone width") */
.pd.pd-rc{max-width:848px}
@media (min-width:700px),print{
  .pd.pd-al{margin-left:0}
  .pd.pd-map.pd-al{width:75.47%;max-width:640px}
  .pd .pd-capl{display:none}
}
@media screen and (max-width:699.98px){
  .pd.pd-rc{width:132.5%;max-width:none;margin-left:0}
  .pdw:has(.pd-rc),.pdraw figure:has(.pd-rc),details.pd-sidev{overflow:hidden}
  .pd .pd-rcol{display:none}
}
@media print{
  :root .pd.pd,:root .pd.pd-dark{--pd-part:#e6dfd3;--pd-part-edge:#776a58;--pd-plc:#000;--pd-tagl:#333;--pd-pinx:#000;--pd-card:#fff}
  :root .pd.pd,:root .pd.pd-dark{max-width:100%;--pd-ink:#000;--pd-muted:#333;--pd-plate:#c9d3de;--pd-plate2:#dfe5ec;--pd-edge:#000;--pd-paper:#fff;
  --pd-cl:#999;--pd-pl:#1f8a4c;--pd-ring:#fff;--pd-warn:#000;--pd-ext:#555;--pd-zero:#c62828}
  .pd{-webkit-print-color-adjust:exact;print-color-adjust:exact;break-inside:avoid}
}
.pd text.pd-lh{fill:var(--pd-ink);font-weight:700;pointer-events:none}
.pd text.pd-lhh{stroke:var(--pd-paper)}
.pd text.pd-lb{font-weight:700;pointer-events:none}  /* a letter beside its true-size pin (Seth 11-30), group colour + halo */
