/* ────────────────────────────────────────────────────────────
   Section 3 - The Solve (v3)
   Updated per the Schematic Hotspot brief + follow-up edits:
     • Two-column layout (60% text panel / 40% schematic)
     • 7 numbered hotspots, ids 01–07 (consecutive)
     • Markers sit OFF the drill image, connected back to the
       component via a subtle 1px leader line (#EDEAE2 @ 0.7).
       Lines alternate length to create visual rhythm.
     • Single-active-panel pattern; default active = "01".
     • Staged intersection-observer reveal
       (image → leaders → markers → panel → active body).

   State model: a single string `activeId` ∈ {01..07}.
   All visual state on markers and panel entries derives from it.
   No marker can be deselected; Esc returns to "01".
   ──────────────────────────────────────────────────────────── */

/* ── Subsystem content ─────────────────────────────────────
   Source: Axion Feasibility Study v1.0 (Dec 2025) - copy
   verbatim from Axion_Schematic_Hotspot_Copy_v2.md.

   Coordinate model (% of the schematic image box):
     • cx, cy - origin: where the leader line starts, just
       outside the drill body.
     • mx, my - marker position (where the numbered dot sits).
     The leader line is drawn from (cx,cy) to a point ~2% short
     of (mx,my) so there's a small visible gap between the line
     and the circular hotspot.
     Hotspots alternate sides - odd ids (01, 03, 05, 07) sit
     to the RIGHT of the drill, even ids (02, 04, 06) sit to
     the LEFT. */
/* Spec rows are [LABEL, VALUE] or [LABEL, VALUE, "redacted"].
   A "redacted" row must render as a redaction bar: the VALUE string
   is NOT shipped to the DOM - render a graphite block in its place,
   never the real figure. Labels always render in the clear. */
const SOLVE_SUBS = [
  {
    id: "01",
    title: "Umbilical / Cable Entry",
    deck: "Proven oilfield hardware, unchanged.",
    one: "Identical to ESP cable systems already in oilfield use.",
    body: "Identical to ESP cable systems already in oilfield use. 12–15 kV DC bus delivers full power at depth with sub-3% transmission losses.",
    spec: [
      ["VOLTAGE", "12–15 kV DC", "redacted"],
      ["TRANSMISSION LOSS", "< 3%", "redacted"],
      ["HERITAGE", "Electric submersible pump"],
      ["DEPLOYMENT", "Standard oilfield infrastructure"]
    ],
    cx: 60, cy: 7,  mx: 92, my: 7
  },
  {
    id: "02",
    title: "Power Sub",
    deck: "Pressure beats the depth problem.",
    one: "Modular SiC DC/DC converters - oil-filled, pressure-balanced.",
    body: "Modular SiC DC/DC converters, oil-filled and pressure-balanced - eliminating the need for thick-walled atmospheric chambers. Distributed along the sub length to carry the full system load.",
    spec: [
      ["CONVERTER UNIT", "5–10 kW SiC modules", "redacted"],
      ["TOTAL VOLUME", "40–80 L (10 m/h case)", "redacted"],
      ["PRESSURE STRATEGY", "Oil-filled, pressure-balanced"],
      ["HERITAGE", "Industrial SiC power electronics"]
    ],
    cx: 40, cy: 17, mx: 8, my: 17
  },
  {
    id: "03",
    title: "Thermal Management",
    deck: "No cryogenics. Just a closed loop.",
    one: "Closed-loop water/glycol coolant in counter-flow umbilical.",
    body: "Closed-loop water/glycol coolant in a counter-flow umbilical architecture. Holds the supply line at safe operating temperature in formations up to 300 °C - no cryogenic cooling required.",
    spec: [
      ["WASTE HEAT LOAD", "≈ 0.65 MW (10 m/h case)", "redacted"],
      ["FLOW RATE", "≈ 450 L/min", "redacted"],
      ["COLD-PLATE SETPOINT", "60 °C (ΔT = 20 K)", "redacted"],
      ["HERITAGE", "Commercial mud and hydraulic pumps"]
    ],
    cx: 60, cy: 30, mx: 92, my: 30
  },
  {
    id: "04",
    title: "Laser Array / Optical Assembly",
    deck: "The laser is generated at depth.",
    one: "Multi-diode array generates the laser at depth.",
    body: "Multi-diode array generates the laser at depth. No surface-to-downhole transmission, no fiber loss. The encapsulation is the architecture.",
    spec: [
      ["OPTICAL OUTPUT", "Up to 800 kW at the bit", "redacted"],
      ["WALL-PLUG EFFICIENCY", "50–55%", "redacted"],
      ["OPTICAL COUPLING (η)", "0.70 mid-case / 0.80 best", "redacted"],
      ["ARCHITECTURE", "Encapsulated, in situ generation"]
    ],
    cx: 40, cy: 47, mx: 8, my: 47
  },
  {
    id: "05",
    title: "Debris Management / Hybrid Flush",
    deck: "Gas where the optics need it. Liquid where the well does.",
    one: "Gas at the optics. Liquid up the well.",
    body: "A nitrogen purge holds the beam path clear at the rock face. Conventional drilling fluid carries cuttings to surface and controls the well. Two fluids, two jobs, cleanly separated.",
    spec: [
      ["BEAM PATH", "Nitrogen (N₂) purge"],
      ["CUTTINGS TRANSPORT", "Liquid flush, closed-loop"],
      ["HERITAGE", "Drilling-fluid circulation + solids control"]
    ],
    cx: 60, cy: 63, mx: 92, my: 63
  },
  {
    id: "06",
    title: "Sapphire Optical Window",
    deck: "One interface between laser and rock.",
    one: "AR-coated sapphire seals the optical cavity from the borehole.",
    body: "AR-coated sapphire seals the optical cavity from the borehole. Inert-gas purge keeps the window clear of spallation contact and thermal fouling. The single critical interface between laser and rock.",
    spec: [
      ["MATERIAL", "AR-coated sapphire"],
      ["PROTECTION", "Inert-gas purge flow"],
      ["SEAL", "Metal-to-glass hermetic feedthrough"],
      ["HERITAGE", "HPHT logging tool optics"]
    ],
    cx: 40, cy: 73, mx: 8, my: 73
  },
  {
    id: "07",
    title: "Laser Emission / Rock Interface",
    deck: "Thirty years of research, not theory.",
    one: "Focused beam spalls rock past the granite threshold.",
    body: "A focused beam delivers the specific energy needed to spall the rock face - past the spallation threshold for granite. Removed material is lifted upward; the bore wall vitrifies as the beam passes, reducing or eliminating casing in many formations. This is the mechanism behind Axion's projected drilling cost reduction.",
    spec: [
      ["MECHANISM", "Thermal spallation (granite-grade rock)"],
      ["BOREWALL EFFECT", "Vitrified glass rim"]
    ],
    cx: 60, cy: 86, mx: 92, my: 86
  }
];

window.SOLVE_SUBS = SOLVE_SUBS;
