/* Sentinel v2 - tip.css: the hover tip (v2/tip.js) - one quiet card for every [data-tip] on every page.
   The raised surface, a hairline, a soft shadow and a small pointer aimed at the control: never a ring (the owner's rule). The tokens'
   colours, so every theme - the dark ones too - draws it in its own; the fallbacks only matter on a page that loads no tokens. */

.v2-tip {
  position: fixed; inset: auto; left: 0; top: 0; margin: 0; z-index: 2147482000;
  display: none; box-sizing: border-box; width: max-content; max-width: min(300px, calc(100vw - 16px));
  padding: 8px 12px; overflow: visible;
  background: var(--surface-raised, #ffffff); color: var(--ink-1, #1a2330);
  border: 1px solid var(--line-2, #e6e0d2); border-radius: var(--radius-md, 10px);
  box-shadow: var(--e2, 0 2px 4px rgba(26, 35, 48, .06), 0 8px 16px -6px rgba(26, 35, 48, .14));
  font-family: var(--font-ui, "Inter", system-ui, sans-serif); font-size: 12.5px; line-height: 18px; font-weight: 400;
  letter-spacing: 0; text-align: left; text-transform: none; white-space: normal; overflow-wrap: break-word;
  pointer-events: none; user-select: none;
  opacity: 0; transform: translateY(3px);
  transition: opacity 140ms ease, transform 180ms cubic-bezier(.22, 1, .36, 1);
}
.v2-tip.is-below { transform: translateY(-3px); }
.v2-tip.is-shown:not([popover]),
.v2-tip[popover]:popover-open { display: block; }
.v2-tip.is-on { opacity: 1; transform: none; }

/* the pointer: a small square turned 45°, sharing the card's hairline on its two outer sides, at the control's centre (--tip-x) */
.v2-tip::after {
  content: ""; position: absolute; left: var(--tip-x, 50%); bottom: -5px; width: 8px; height: 8px; margin-left: -4px;
  background: inherit; border: solid var(--line-2, #e6e0d2); border-width: 0 1px 1px 0; transform: rotate(45deg);
}
.v2-tip.is-below::after { bottom: auto; top: -5px; border-width: 1px 0 0 1px; }

/* the dark themes: the hairline a touch lighter, so the card stands off the page */
body[data-theme="midnight"] .v2-tip, body[data-theme="eclipse"] .v2-tip { border-color: var(--line-3, rgba(255, 255, 255, .18)); }
body[data-theme="midnight"] .v2-tip::after, body[data-theme="eclipse"] .v2-tip::after { border-color: var(--line-3, rgba(255, 255, 255, .18)); }
