/* ============================================================================
   shared/bws-help.css - THE INFO ICON (the small "?" beside a heading or a label)
   Card P3385, his FD1074 notes of 11/13/2026, verbatim: "Why would you not, for example, have a little question mark icon or a
   little info icon? They can hover over it or click it and it expands, shows the data, or pops up. That needs to be a theme you
   follow on the site when you're doing work like this."
   ----------------------------------------------------------------------------
   THE RULE IT SERVES. A screen holds a short Title Case heading, and whatever explains it sits behind this icon, so a person who
   already knows is not made to read it every time. The icon opens on hover (the shared delay), at once on keyboard focus, and on a
   click or a tap, which keeps it open until a second click, a click elsewhere or Escape.
   THE BEHAVIOR IS NOT HERE. shared/tooltip.js owns every [data-tip] bubble and already pins a ".help-q" button on click (it toggles
   aria-expanded), so this file only paints the control and shared/bws-help.js writes its markup:
       <button type="button" class="help-q" aria-expanded="false" data-tip="NOTE" aria-label="LABEL: NOTE">?</button>
   The note is repeated in aria-label so a screen reader reads it without hovering (moving words into a hover that only a mouse can
   reach would hide them from people who could read them before).
   ONE COPY. materials.html and hardware.html each carry an older page-local copy of these rules; a page that links this file drops
   its own copy (those two pages are converted on their own lanes). Theme tokens only, so both themes read from theme.css, never a
   color written here. Link it after shared/theme.css.
   SIZE. The ring is 16 px; the ::before grows the area that answers a press to 24 px (WCAG 2.2, target size), without moving a pixel
   of layout.
   ============================================================================ */
.help-q {
  position: relative; box-sizing: border-box;
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  min-width: 16px; height: 16px; margin-inline-start: 6px; padding: 0 4px;
  border: 1px solid var(--text-muted); border-radius: var(--radius-pill, 999px);
  background: var(--surface-2, transparent); color: var(--text-muted);
  font-family: inherit; font-size: 10px; font-weight: 800; line-height: 1; letter-spacing: 0; text-transform: none;
  cursor: pointer; vertical-align: middle; -webkit-appearance: none; appearance: none;
}
.help-q::before { content: ""; position: absolute; top: -4px; right: -4px; bottom: -4px; left: -4px; }
/* --accent-ink is the fixed deep tone theme.css designed to sit on an --accent-soft fill (5.38:1), so the open and hover states keep the 3:1 control boundary. */
.help-q:hover, .help-q[aria-expanded="true"], .help-q:focus-visible {
  background: var(--accent-soft); border-color: var(--accent-ink); color: var(--accent-ink);
}
.help-q:focus-visible {
  outline: var(--focus-ring-width, 2px) solid var(--focus-ring-color, currentColor); outline-offset: var(--focus-ring-offset, 2px);
}
