span.pfet-trigger { cursor: help; color: inherit; opacity: .75; text-decoration-line: underline; text-decoration-style: dotted; text-decoration-thickness: .15rem; text-underline-offset: .4rem; }
span.pfet-icon-trigger { display: inline-block; text-decoration: none; vertical-align: baseline; padding-left: 0.25rem !important;}
span.pfet-trigger > .pfet-icon {vertical-align: middle; box-sizing: border-box !important; width: 1em !important; height: 1em !important; padding: 0 !important; line-height: 1 !important; }
.pfet-trigger:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.pfet-sr-only, .pfet-tooltip:not(.pfet-open) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.pfet-tooltip[hidden] { display: none; }
.pfet-tooltip.pfet-open { position: fixed; z-index: 100000; display: block; box-sizing: border-box; width: max-content; height: auto; max-width: min(320px, calc(100vw - 20px)); margin: 0; padding: 0; border: 0; overflow: visible; white-space: normal; overflow-wrap: anywhere; font: inherit; text-align: start; animation: pfet-fade-in 140ms ease-out both; }
.pfet-tooltip .pfet-content { display: block; box-sizing: border-box; max-height: calc(100vh - 40px); padding: 10px 12px; overflow: auto; background: var(--pfet-background, #222); border-radius: 4px; box-shadow: 0 2px 8px #0003; }
.pfet-tooltip a { color: inherit; text-decoration: underline; }
.pfet-tooltip a:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
/* Transparent bridge keeps the tooltip hoverable while crossing the pointer gap. */
.pfet-tooltip.pfet-open::before { content: ''; position: absolute; inset: -12px; z-index: -1; }
.pfet-tooltip.pfet-open::after { content: ''; position: absolute; border: 6px solid transparent; pointer-events: none; }
.pfet-tooltip[data-position="top"]::after { top: 100%; left: var(--pfet-arrow-x, 50%); transform: translateX(-50%); border-top-color: var(--pfet-background); border-bottom: 0; }
.pfet-tooltip[data-position="bottom"]::after { bottom: 100%; left: var(--pfet-arrow-x, 50%); transform: translateX(-50%); border-bottom-color: var(--pfet-background); border-top: 0; }
.pfet-tooltip[data-position="left"]::after { left: 100%; top: var(--pfet-arrow-y, 50%); transform: translateY(-50%); border-left-color: var(--pfet-background); border-right: 0; }
.pfet-tooltip[data-position="right"]::after { right: 100%; top: var(--pfet-arrow-y, 50%); transform: translateY(-50%); border-right-color: var(--pfet-background); border-left: 0; }
@keyframes pfet-fade-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .pfet-tooltip.pfet-open { animation: none; } }
@media (max-width: 820px) { .pfet-tooltip.pfet-open { max-width: calc(100vw - 20px) !important; } }
/* An outlined alternative without a filled background or external image. */
span.pfet-trigger > .pfet-icon.pfet-outline-question { display: inline-flex !important; align-items: center; justify-content: center; border: 0.08em solid currentColor !important; border-radius: 50% !important; background: transparent !important; font-family: system-ui, sans-serif !important; font-weight: 600; font-style: normal;}
.pfet-icon.pfet-outline-question > .pfet-icon-glyph { font-size: 0.8em !important; line-height: 1 !important; }