/* =====================================================================
   Light Tracer · patch v5 — "01 · Anatomy" becomes a real leader-line diagram
   Append AFTER lighttracer-patch-v4.css (or merge into the theme CSS and bump the version).
   The old .diagram / .callouts rules can stay; they are simply no longer used.
   Reference screenshots: delivery/previews/anatomy-1440.png, anatomy-1280.png, anatomy-390.png
   ===================================================================== */
/* ---------- anatomy: leader-line diagram (v5) ----------
   Canvas = 1200 x 780 units. Pointer image (pointer-800.webp) sits at x 340, y 150, 640 wide.
   Anchor points (canvas units) are measured on that image; re-measure if the image changes:
   01 beam 337,90 · 02 emitter 466,227 · 03 body 572,366 · 04 warning label 729,496 · 05 tail 852,646 */
.anatomy { position: relative; margin: 0; }
.anatomy-clip { position: relative; overflow: hidden; aspect-ratio: 720 / 780; }
.anatomy-canvas { position: absolute; top: 0; left: -33.333%; width: 166.667%; aspect-ratio: 1200 / 780; }
.anatomy-canvas img { position: absolute; left: 28.333%; top: 19.231%; width: 53.333%; height: auto; aspect-ratio: 1 / 1; filter: drop-shadow(0 24px 40px rgba(0,0,0,.75)); }
.anatomy-canvas svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.anatomy .beam { stroke: url(#lt-beam-grad); stroke-width: 2.5; fill: none; filter: drop-shadow(0 0 6px var(--laser-glow)); }
.anatomy .ldr { stroke: var(--laser); stroke-width: 1.25; fill: none; }
.anatomy-dot { position: absolute; left: var(--x); top: var(--y); width: 24px; height: 24px; margin: -12px 0 0 -12px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); border: 1.5px solid var(--laser); box-shadow: 0 0 10px var(--laser-glow); color: var(--laser); font: 500 11px/1 var(--font-mono); }
.anatomy-specs { list-style: none; padding: 0; margin: var(--s5) 0 0; display: grid; gap: 0; }
.anatomy-specs li { display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: var(--s3); padding: var(--s3) 0; border-top: 1px solid var(--line); }
.anatomy-specs .n { font: 500 12px/1 var(--font-mono); color: var(--laser); padding-top: 9px; }
.anatomy-specs .v { display: block; font-family: var(--font-mono); font-size: 26px; line-height: 1.1; white-space: nowrap; }
.anatomy-specs .k { display: block; color: var(--muted); font-size: var(--fs-small); }
.anatomy-specs .fn { display: block; color: var(--faint); font-size: 13px; }
.anatomy-note { margin-top: var(--s4); color: var(--faint); font-size: 13px; }
.anatomy .ldr { display: none; }
@media (min-width: 560px) and (max-width: 899px) {
  .anatomy-specs { grid-template-columns: 1fr 1fr; column-gap: var(--s5); }
}
@media (min-width: 900px) {
  .anatomy-clip { overflow: visible; aspect-ratio: 1200 / 780; }
  .anatomy-canvas { left: 0; width: 100%; }
  .anatomy .ldr { display: inline; }
  .anatomy-dot { width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; background: var(--laser); color: transparent; font-size: 0; }
  .anatomy-specs { position: absolute; inset: 0; margin: 0; display: block; aspect-ratio: 1200 / 780; }
  .anatomy-specs li { position: absolute; top: var(--y); width: 23.333%; display: block; padding: 0; border: 0; transform: translateY(-17px); }
  .anatomy-specs li[data-side="l"] { right: 76.667%; text-align: right; }
  .anatomy-specs li[data-side="r"] { left: 80.5%; width: 19.5%; }
  .anatomy-specs .n { display: block; padding: 0 0 6px; font-size: 11px; position: absolute; top: -18px; }
  .anatomy-specs li[data-side="l"] .n { right: 0; }
  .anatomy-specs .v { font-size: clamp(22px, 2.3vw, 30px); }
}
/* draw-in: JS adds .arm (only when motion is allowed), then .in once the diagram is on screen */
@media (prefers-reduced-motion: no-preference) {
  .anatomy.arm .ldr, .anatomy.arm .beam { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .anatomy.arm .anatomy-dot, .anatomy.arm .anatomy-specs li { opacity: 0; }
  .anatomy.arm.in .beam { stroke-dashoffset: 0; transition: stroke-dashoffset .9s var(--ease-out); }
  .anatomy.arm.in .ldr { stroke-dashoffset: 0; transition: stroke-dashoffset .6s var(--ease-out) calc(.5s + var(--i) * .14s); }
  .anatomy.arm.in .anatomy-dot { opacity: 1; transition: opacity .3s ease calc(.4s + var(--i) * .14s); }
  .anatomy.arm.in .anatomy-specs li { opacity: 1; transition: opacity .4s ease calc(.85s + var(--i) * .14s); }
}

