/* Tool tip: data-tip="one short plain sentence" on ANY element. HOW TO USE:
   1. Put data-tip="..." on the element; no script, no other class. The tip draws above it from ::after.
   2. A div/span that is not a button/link/input also needs tabindex="0" so the tip shows on keyboard focus.
   3. It shows on hover and on keyboard focus (focus-visible); a tap on touch counts as hover/focus.
   4. Keep it under about 80 characters (the bubble wraps at 240px). Not for <input>, <img>, <select>
      (no ::after there): put data-tip on a wrapping span. An element's own ::after would be overwritten.
   5. A button/icon with no visible text also needs aria-label with the same words; text elements need nothing.
   6. Limits: an ancestor with overflow:hidden clips the bubble, and near the screen edge it can run off.
   Colours are the --text / --surface variables swapped, so dark mode needs no change.
   The font falls back to the family v1 sets on its page (css/v1.css), which does not define --font-body. */
:where([data-tip]){position:relative}
[data-tip]::after{content:attr(data-tip);position:absolute;bottom:calc(100% + 6px);left:50%;transform:translateX(-50%);width:max-content;max-width:240px;padding:5px 9px;border-radius:5px;background:var(--text);color:var(--surface);font:400 12px/1.35 var(--font-body, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");letter-spacing:normal;text-align:left;text-transform:none;white-space:normal;box-shadow:var(--shadow-sm);opacity:0;visibility:hidden;pointer-events:none;transition:opacity .15s,visibility .15s;z-index:100001}
[data-tip]:hover::after,[data-tip]:focus-visible::after{opacity:1;visibility:visible}

/* Alert icons built by ftAlertIcon() in js/ui/alert-icons.js: .ft-alert-sm is the compact pill; data-alert-jump marks a pill that scrolls to its field. */
.header-alert-pill.ft-alert-sm{padding:2px 3px;gap:3px}
.header-alert-pill[data-alert-jump]{cursor:pointer}
