/* ========================================================================== Tooltip — the app's custom styled tooltip (replaces native title tooltips everywhere). A single fixed-position bubble driven by Tooltip.svelte's delegated [data-tooltip] hover/focus listeners. Design: a quiet warm-ink card in the app's Claude palette — the signature terracotta hairline on top, a soft shadow, and an arrow that tracks the anchored element (--ax set by the component). In dark mode it inverts to a warm parchment so it reads against the dark surface. pointer-events: none — it is read-only and never intercepts clicks. ========================================================================== */ .lal-tooltip { position: fixed; z-index: 1000; max-width: 340px; padding: 7px 12px; border-radius: 8px; background: #2c241b; color: #f6eee1; border: 1px solid #4a3b2b; border-top: 2px solid var(--accent, #d97757); box-shadow: 0 10px 26px rgba(44, 36, 27, 0.35), 0 2px 6px rgba(44, 36, 27, 0.18); font-size: 12.5px; line-height: 1.5; pointer-events: none; opacity: 0; transform: translateY(4px) scale(0.97); transition: opacity 0.12s ease, transform 0.12s ease; word-break: break-word; } .lal-tooltip.open { opacity: 1; transform: translateY(0) scale(1); } /* Arrow — a rotated square matching the bubble, aimed at the anchor via the --ax custom property (falls back to the bubble centre). */ .lal-tooltip::after { content: ""; position: absolute; left: var(--ax, 50%); width: 9px; height: 9px; margin-left: -4.5px; background: #2c241b; transform: rotate(45deg); } .lal-tooltip.above::after { bottom: -5px; border-right: 1px solid #4a3b2b; border-bottom: 1px solid #4a3b2b; } .lal-tooltip.below::after { top: -5px; border-left: 1px solid #4a3b2b; border-top: 1px solid #4a3b2b; } /* Dark mode: a warm parchment bubble with dark ink — pops against the dark surface instead of disappearing into it. */ html.dark .lal-tooltip { background: #f4ead9; color: #2c241b; border-color: #d9c9ae; border-top-color: var(--accent, #e8936c); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.35); } html.dark .lal-tooltip::after { background: #f4ead9; } html.dark .lal-tooltip.above::after { border-right-color: #d9c9ae; border-bottom-color: #d9c9ae; } html.dark .lal-tooltip.below::after { border-left-color: #d9c9ae; border-top-color: #d9c9ae; }