.resptooltip-word
{
    text-decoration: underline dotted;
    text-underline-offset: 2px;
    cursor: help;
    position: relative;
}

.resptooltip-word:hover::after,
.resptooltip-word:focus::after
{
    content: attr(data-tooltip);
    position: absolute;
    z-index: 10000;
    left: 0;
    bottom: calc(100% + 8px);
    width: max-content;
    max-width: min(320px, 80vw);
    padding: 7px 10px;
    border-radius: 4px;
    background: #222;
    color: #fff;
    font: 13px/1.4 sans-serif;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
    pointer-events: none;
}

.resptooltip-word:focus-visible
{
    outline: 2px solid currentColor;
    outline-offset: 2px;
}
