/* ============================================================
   Mythox — plain-English explainer + "Ask Midas" helper styles
   (walkthrough foundational #3) · driven by assets/explain.js
   All classes are .cx-* so nothing collides with modules / .cg-* / .onb-*.
   Reuses Brand OS tokens from brand.css (palette/font flow automatically).
   ============================================================ */

/* the little (i) eye next to a field/label */
.cx-eye{
  display:inline-grid; place-items:center; flex:0 0 auto;
  width:17px; height:17px; padding:0; vertical-align:middle;
  border-radius:50%; border:1px solid var(--line);
  background:var(--surface-3); color:var(--muted);
  font-family:var(--font-body); font-size:10.5px; font-weight:700; font-style:italic;
  line-height:1; cursor:help; transition:.15s var(--ease);
}
.cx-eye:hover,.cx-eye:focus-visible{ background:color-mix(in srgb, var(--accent) 22%, var(--surface-3)); color:var(--ivory); border-color:color-mix(in srgb, var(--accent) 50%, var(--line)); outline:none }

/* the "✦ Ask Midas" pill */
.cx-ask{
  display:inline-flex; align-items:center; gap:5px; flex:0 0 auto;
  padding:3px 9px; border-radius:999px; cursor:pointer;
  border:1px solid color-mix(in srgb, var(--accent) 38%, var(--line));
  background:color-mix(in srgb, var(--accent) 10%, transparent);
  color:var(--accent); font-family:var(--font-body); font-size:11px; font-weight:600; letter-spacing:.01em;
  line-height:1; transition:.15s var(--ease);
}
.cx-ask:hover,.cx-ask:focus-visible{ background:color-mix(in srgb, var(--accent) 18%, transparent); color:var(--ivory); outline:none }
.cx-ask-ic{ font-size:10px; opacity:.9 }

/* a field-header row: label + eye + ask, all on one line */
.cx-fh{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-bottom:6px }
.cx-fh-lbl{ font-family:var(--font-body); font-size:12.5px; font-weight:600; letter-spacing:.02em; color:var(--muted) }

/* the shared floating tooltip (fixed → never clipped by scroll boxes) */
#cx-tip{
  position:fixed; z-index:200; max-width:min(280px, 86vw);
  padding:9px 12px; border-radius:11px;
  background:linear-gradient(180deg, var(--surface), var(--surface-grad-2));
  border:1px solid var(--line); box-shadow:0 18px 50px rgba(0,0,0,.5);
  color:var(--ivory); font-family:var(--font-body); font-size:12.5px; line-height:1.5;
  pointer-events:none; opacity:0; transform:translateY(4px);
  transition:opacity .14s var(--ease), transform .14s var(--ease);
}
#cx-tip.show{ opacity:1; transform:none }
#cx-tip[hidden]{ display:none }
/* arrow (points down by default; up when flipped below the anchor) */
#cx-tip::after{
  content:""; position:absolute; left:var(--cx-arrow,50%); transform:translateX(-50%) rotate(45deg);
  width:9px; height:9px; background:var(--surface-grad-2);
  border-right:1px solid var(--line); border-bottom:1px solid var(--line);
  bottom:-5px;
}
#cx-tip.cx-below::after{ top:-5px; bottom:auto; border:0; border-left:1px solid var(--line); border-top:1px solid var(--line); background:var(--surface) }

@media (prefers-reduced-motion:reduce){ #cx-tip{ transition:none } }

/* the Midas "why this matters" note (#8h) — minimalist, NOT a chat bubble.
   A subtle card with a left accent bar + the "//" mark. Drop in anywhere. */
.cx-why{
  display:flex; gap:10px; align-items:flex-start;
  background:var(--surface-2, var(--surface)); border:1px solid var(--line);
  border-left:2px solid var(--accent); border-radius:10px; padding:10px 12px; margin:10px 0;
}
.cx-why-mark{
  flex:0 0 auto; font-family:var(--font-display, sans-serif); font-weight:800;
  font-size:13px; letter-spacing:-1px; line-height:1.35; color:var(--accent); text-shadow:0 0 10px var(--glow);
}
.cx-why-body{ display:flex; flex-direction:column; gap:2px; min-width:0 }
.cx-why-k{ font-size:10.5px; font-weight:700; text-transform:uppercase; letter-spacing:.07em; color:var(--muted) }
.cx-why-t{ font-family:var(--font-body); font-size:12.5px; line-height:1.5; color:var(--ivory) }
.cx-why-compact{ padding:7px 11px }
