/* ui.tip.css - THE HOUSE TOOLTIP for data-tip="..." on www.ravenbreath.com (assets/js/ui.tip.js; owner, 2026-10-19:
   never the browser's own tooltip). The site's own palette from theme.css: the card surface, the light text, the brand
   red edge; it sits on <body>, fixed, so nothing clips it. */
.com-tip {
    position: fixed;
    z-index: 400;
    max-width: min(22rem, calc(100vw - 16px));
    width: max-content;
    padding: 0.55rem 0.75rem;
    background: var(--com-bg-card, #1d1d22);
    color: var(--com-text-light, #ced4da);
    border: 1px solid var(--com-color-primary, #750808);
    border-radius: var(--com-border-radius-md, 0.5rem);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
    font-size: 0.82rem;
    line-height: 1.35;
    text-align: left;
    white-space: pre-line;
    overflow-wrap: anywhere;
    pointer-events: none;
}
.com-tip[hidden] { display: none; }
.com-tip::after {
    content: "";
    position: absolute;
    left: var(--tip-arrow-x, 50%);
    bottom: -0.36rem;
    width: 0.65rem;
    height: 0.65rem;
    background: var(--com-bg-card, #1d1d22);
    border-right: 1px solid var(--com-color-primary, #750808);
    border-bottom: 1px solid var(--com-color-primary, #750808);
    transform: translateX(-50%) rotate(45deg);
}
.com-tip.is-below::after {
    bottom: auto;
    top: -0.36rem;
    transform: translateX(-50%) rotate(225deg);
}
@media (prefers-reduced-motion: no-preference) {
    .com-tip { animation: com-tip-in 0.12s ease-out; }
    @keyframes com-tip-in { from { opacity: 0; } to { opacity: 1; } }
}
