/* Help tips: the Enhanced Dashboard's "i" icon, shared by every portal page (2026-11-15).
   Markup is written by js/help-tip.js from two attributes, so pages only carry text:
     data-help="..."  on a label, heading or column header -> an "i" icon is appended after its text
     data-tip="..."   on a button or link                  -> the same bubble on hover and keyboard focus
   The bubble is one element appended to <body> and positioned in fixed coordinates, so a dialog or
   table that scrolls or clips its contents cannot cut it off. The icon's "i" is drawn by ::before,
   so the label's textContent does not change (code that reads a label's text keeps working). */
.fm-info {
    display: inline-flex; align-items: center; justify-content: center; flex: none;
    width: 15px; height: 15px; margin-left: 6px; vertical-align: middle;
    border-radius: 50%; border: 1px solid var(--pu-border-strong, #cbd5e1);
    background: var(--pu-chip, #f1f5f9); color: var(--pu-faint, #64748b);
    font: italic 700 10px/1 Georgia, 'Times New Roman', serif;
    text-transform: none; letter-spacing: 0; cursor: help; user-select: none;
}
.fm-info::before { content: "i"; }
.fm-info:hover, .fm-info[aria-expanded="true"] { color: var(--pu-text, #0f172a); border-color: var(--pu-faint, #64748b); }
.fm-info:focus-visible { outline: 2px solid var(--pu-info, #1d4ed8); outline-offset: 2px; }
/* On a dark band (summary headers) */
.fm-info.on-dark { background: rgba(255, 255, 255, .08); color: #cbd5e1; border-color: rgba(255, 255, 255, .3); }

.fm-tip-bubble {
    position: fixed; z-index: 2147483000; top: 0; left: 0;
    /* max-content: inside a transformed dialog "fixed" is sized against the dialog, so a shrink-to-fit
       width would change as the bubble moves; this keeps one width wherever it is placed. */
    width: max-content; max-width: min(300px, calc(100vw - 24px)); box-sizing: border-box; padding: 10px 12px;
    background: #0f172a; color: #e2e8f0; border-radius: 8px; box-shadow: 0 8px 24px rgba(15, 23, 42, .25);
    font: 400 12px/1.45 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; text-align: left;
    white-space: pre-line; overflow-wrap: anywhere;
    opacity: 0; visibility: hidden; transition: opacity .12s;
}
.fm-tip-bubble.is-open { opacity: 1; visibility: visible; }
.fm-tip-bubble::after {
    content: ""; position: absolute; left: var(--fm-tip-arrow, 50%); transform: translateX(-50%);
    border: 6px solid transparent;
}
.fm-tip-bubble[data-side="top"]::after { top: 100%; border-top-color: #0f172a; }
.fm-tip-bubble[data-side="bottom"]::after { bottom: 100%; border-bottom-color: #0f172a; }
@media (prefers-reduced-motion: reduce) { .fm-tip-bubble { transition: none; } }
@media (forced-colors: active) { .fm-tip-bubble { border: 1px solid CanvasText; } }
