/* lab-hints.css: Study Lab hints that tell students what to do next.
   Shared file: used by many pages. Pages load it in a fixed position between their own styles, so keep the rules in this order.
   After editing, run tools/refresh-asset-versions.sh so browsers fetch the new version. */
  .gm-page [hidden]{ display:none !important; }
  .hk-coach{ display:flex; align-items:center; gap:10px; margin:0 0 12px; padding:9px 12px; border-radius:12px; background:rgba(var(--ac-rgb),.1); border:1px solid rgba(var(--ac-rgb),.4); font-size:0.93rem; line-height:1.45; color:var(--text); }
  .hk-coach svg{ flex-shrink:0; width:24px; height:24px; color:var(--ac); }
  .hk-coach b{ color:var(--ac); font-weight:700; }
  .hk-coach.done{ background:rgba(var(--ok-rgb),.1); border-color:rgba(var(--ok-rgb),.5); } .hk-coach.done svg, .hk-coach.done b{ color:var(--ok); }
  .hk-pulse:not(:disabled){ animation:hkBtn 1.6s ease-out infinite; }
  @keyframes hkBtn{ 0%{ box-shadow:0 0 0 0 rgba(var(--ac-rgb),.65); } 70%,100%{ box-shadow:0 0 0 12px rgba(var(--ac-rgb),0); } }
  .gm-split > .gm-card:not(:has(> *)){ display:none; }
  .hk-docked{ margin-top:14px; scroll-margin-top:84px; scroll-margin-bottom:100px; }
  .b2-check li.next{ border-color:rgba(var(--ac-rgb),.7); background:rgba(var(--ac-rgb),.08); }
  .b2-check li.next .ck{ border-color:var(--ac); border-style:solid; }
  .b2-check li small b{ color:var(--ac); font-weight:600; }
  .b2-check li[data-tool]:not(.done){ cursor:pointer; }
  .hk-tabs button{ display:inline-flex; align-items:center; gap:6px; }
  .hk-tabs button .num{ display:inline-grid; place-items:center; width:19px; height:19px; border-radius:50%; font-size:0.7rem; font-weight:700; border:1.5px solid currentColor; }
  .hk-tabs button.done .num{ background:var(--ok); border-color:var(--ok); color:var(--bg); }
  .hk-tabs button[aria-pressed="true"].done .num{ border-color:var(--bg); }
  /* phones: theory tables become stacked cards, so no column gets squeezed */
  @media (max-width:560px){
    .gm-theory table.hk-stack, .gm-theory table.hk-stack tbody{ display:block; }
    .gm-theory table.hk-stack tr.hk-head{ display:none; }
    .gm-theory table.hk-stack tr{ display:block; padding:10px 0; border-bottom:1px solid var(--border); }
    .gm-theory table.hk-stack th, .gm-theory table.hk-stack td{ display:block; width:auto !important; border:none; padding:2px 0; text-align:left; white-space:normal; }
    .gm-theory table.hk-stack tr > :first-child{ font-weight:700; color:var(--text); font-size:0.98rem; }
    .gm-theory table.hk-stack td[data-l]:not(:first-child)::before{ content:attr(data-l) ': '; color:var(--text-muted); font-family:Inter, sans-serif; font-weight:500; font-size:0.8rem; }
    .gm-theory .w4-code{ white-space:pre-wrap; overflow-wrap:anywhere; }
  }
  .s3-range.hk-pulse, .s3-chips button.hk-pulse, .px-toggle.hk-pulse{ border-radius:12px; }
  .px-toggle.hk-pulse{ padding:2px 8px; margin-left:-8px; }
  .b2-seg button.hk-pulse, .s3-chips button.hk-pulse, .s3-tool.hk-pulse:not(:disabled), .px-toggle.hk-pulse, .px-can.hk-pulse, .fr-edcan.hk-pulse, .fr-thumb.hk-pulse, .cw-view.hk-pulse{ outline:2px solid var(--ac); outline-offset:2px; }
  .s3-chips button.hk-pulse{ background:rgba(var(--ac-rgb),.18); }
  .b2-bit.hk-pulse, .ff-point.hk-pulse, .gm-page .btn.hk-pulse:not(:disabled), .or-step.hk-pulse{ outline:2px solid var(--ac); outline-offset:2px; }
  .hk-mini{ display:inline-flex; align-items:center; margin:2px 0 0 4px; padding:3px 10px; border-radius:999px; border:1px solid var(--ac); background:var(--bg); color:var(--ac); font:inherit; font-size:0.84rem; font-weight:600; cursor:pointer; vertical-align:baseline; }
  .hk-mini:hover{ background:var(--ac); color:var(--bg); }
  .hk-mini:focus-visible{ outline:2px solid var(--ac); outline-offset:2px; }
  /* things to tap: a dashed edge and a glowing dot until found, then a tick */
  .hk-spot{ position:relative; }
  .hk-spot.hint{ border-style:dashed !important; border-color:rgba(var(--ac-rgb),.7) !important; }
  .hk-spot.hint::after, .hk-spot.found::after{ content:''; position:absolute; top:7px; right:7px; width:9px; height:9px; border-radius:50%; pointer-events:none; }
  .hk-spot.hint::after{ background:var(--ac); animation:hkBtn 1.6s ease-out infinite; }
  .hk-spot.found::after{ content:'\2713'; width:auto; height:auto; top:4px; right:7px; background:none; color:var(--ok); font:700 0.8rem/1 Inter, sans-serif; }
  /* the list of parts under an explanation: each name is a button, the next one glows */
  .gm-seen button{ padding:4px 10px; border-radius:100px; font:inherit; font-size:0.78rem; border:1px dashed var(--border); color:var(--text-muted); background:none; cursor:pointer; }
  .gm-seen button.on{ border-style:solid; border-color:rgba(var(--ok-rgb),.5); color:var(--ok); background:rgba(var(--ok-rgb),.08); }
  .gm-seen button:hover{ border-color:var(--ac); }
  .gm-seen button.hk-pulse{ border-style:solid; border-color:var(--ac); color:var(--ac); font-weight:600; }
  .gm-seen button:focus-visible{ outline:2px solid var(--ac); outline-offset:2px; }
  .gm-hot.hk-pulse{ background:var(--ac); transform:scale(1.18); }
  .gm-hot.hk-pulse::after{ display:none; }
  @media (prefers-reduced-motion:reduce){ .hk-pulse, .hk-spot.hint::after{ animation:none !important; } }
