/*
 * tip.css: the one tooltip of the panel (assets/js/ui/tip.js). Used by the table of the bots (fixed variant), the labels of the Access tab (small variant) and Knock Score. It reads only the tokens of tokens.css.
 * @comments-complete 2026-11-08
 */
.ptip { position: relative; display: inline-flex; }
.ptip-btn { display: inline-grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); color: var(--text-2); font-size: var(--fs-xs); font-weight: var(--fw-semibold); line-height: 1; cursor: pointer; }
.ptip-btn:hover, .ptip-btn[aria-expanded="true"] { background: var(--surface-2); color: var(--text); }
.ptip-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.ptip-panel { position: absolute; top: calc(100% + 8px); right: 0; z-index: 6; width: min(340px, calc(100vw - 32px)); padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--r-m); background: var(--surface); box-shadow: var(--shadow-pop); color: var(--text-2); font-size: var(--fs-s); font-weight: var(--fw-regular); letter-spacing: 0; text-transform: none; text-align: left; white-space: normal; line-height: var(--lh-snug); }
.ptip-title { margin: 0 0 6px; color: var(--text); font-weight: var(--fw-semibold); }
.ptip-text { margin: 0; }
.ptip-list { display: flex; flex-direction: column; gap: 6px; margin: 0; padding-left: 18px; }
/* The small variant (the labels of the Access tab): a smaller button with a wider hit area, the panel opens under it to the right (or to the left at the edge of a card). */
.ptip-s .ptip-btn { position: relative; width: 20px; height: 20px; font-size: 11px; }
.ptip-s .ptip-btn::after { content: ""; position: absolute; inset: -6px; }
.ptip-s .ptip-panel { left: 0; right: auto; }
.ptip-s.ptip-end .ptip-panel { left: auto; right: 0; }
/* The fixed variant (the titles of the table of the bots): the script puts the panel at its button, so the table that scrolls sideways does not clip it. */
.ptip-start .ptip-panel { left: 0; right: auto; }
.ptip-fixed .ptip-btn { width: 18px; height: 18px; font-size: 11px; }
.ptip-fixed .ptip-panel { position: fixed; right: auto; z-index: 20; width: min(300px, calc(100vw - 16px)); padding: 10px 12px; }
/* The title-as-button variant (the titles of the columns of the tables at the top of Freshness): the words of the column are the button, underlined with dots; it takes only the room of its words, so nothing covers a neighbour. */
.ptip-link, .ptip-fixed .ptip-link { display: inline; width: auto; height: auto; padding: 0; border: 0; border-radius: 2px; background: transparent; color: inherit; font: inherit; line-height: inherit; text-decoration: underline dotted; text-decoration-thickness: 1px; text-underline-offset: 3px; white-space: nowrap; }
.ptip-link { position: relative; }
.ptip-link:hover, .ptip-link[aria-expanded="true"] { background: transparent; color: var(--accent-text); }
/* The sign of the tooltip shows beside the words on hover, on focus and while the panel is open; it hangs in the gap between the columns, so it takes no room and never covers a neighbour. */
.ptip-link::after { content: "?"; position: absolute; left: 100%; top: 50%; margin-left: 2px; transform: translateY(-50%); font-size: 0.75em; font-weight: var(--fw-semibold); line-height: 1; color: var(--accent-text); text-decoration: none; opacity: 0; pointer-events: none; }
.ptip-link:hover::after, .ptip-link:focus-visible::after, .ptip-link[aria-expanded="true"]::after { opacity: 1; }
@media (max-width: 719px) {
  /* A panel that hangs under its button opens in the flow of its row, under the label, instead of over the page. */
  .ptip:not(.ptip-fixed) { display: contents; }
  .ptip:not(.ptip-fixed) .ptip-panel { position: static; flex: 1 1 100%; width: auto; box-shadow: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .ptip-btn { transition: background-color 0.15s, color 0.15s; }
}
/* The row of a heading and its "?" tooltip: the sentence that used to stand under the heading. */
.tip-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; min-width: 0; }
