/* Kinnect sheet links (pdf-links.js) — a drawing sheet's callouts to the
   set's other sheets, as links over the sheet: a faint red box at rest, a
   stronger one under the pointer, a tip saying where it goes. */
.kpl-svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}
/* The box is what shows; a wider invisible edge around it is easier to hit when zoomed out. */
.kpl-hit{fill:transparent;stroke:transparent;stroke-width:10px;stroke-linejoin:round;vector-effect:non-scaling-stroke;pointer-events:all;cursor:pointer}
.kpl-box{fill:var(--k-accent);fill-opacity:.06;stroke:var(--k-accent);stroke-opacity:.45;stroke-width:1px;stroke-linejoin:round;vector-effect:non-scaling-stroke;pointer-events:none;transition:fill-opacity .12s,stroke-opacity .12s}
.kpl-a:hover .kpl-box{fill-opacity:.16;stroke-opacity:1;stroke-width:1.5px}
.kpv.is-hand .kpl-hit{cursor:grab}
.kpv.is-zbox .kpl-hit{cursor:zoom-in}
@media (pointer:coarse){.kpl-hit{stroke-width:18px}}

/* Where a link landed: a ring that grows and fades, twice. */
.kpl-pulse{fill:none;stroke:var(--k-accent);stroke-width:3px;vector-effect:non-scaling-stroke;transform-box:fill-box;transform-origin:center;animation:kpl-pulse 1.2s var(--k-ease,ease-out) 2;pointer-events:none}
@keyframes kpl-pulse{0%{transform:scale(.55);opacity:1}100%{transform:scale(1.9);opacity:0}}

/* "→ A5.01 Wall sections · Detail 3" beside the pointer. */
.kpl-tip{position:absolute;z-index:4;display:flex;align-items:center;gap:8px;max-width:min(420px,calc(100% - 16px));padding:6px 11px;border-radius:var(--k-r-md,8px);background:rgba(15,15,18,.9);color:#FFFFFF;font-size:12px;line-height:1.3;white-space:nowrap;pointer-events:none;box-shadow:var(--k-shadow-md)}
.kpl-tip[hidden]{display:none}
.kpl-tip .fa{font-size:10.5px;color:#FF8A8A}
.kpl-tip-n{font-family:var(--k-mono);font-weight:600}
.kpl-tip-t{min-width:0;overflow:hidden;text-overflow:ellipsis;color:rgba(255,255,255,.82)}
.kpl-tip small{flex:0 0 auto;padding-left:8px;border-left:1px solid rgba(255,255,255,.25);font-size:11.5px;color:rgba(255,255,255,.82)}

/* The toolbar's Links switch: red when the links show. */
.kpv-b[data-kpv="links"].is-on{color:var(--k-accent)}
.kpv-b[data-kpv="links"]:not(.is-on){color:var(--k-text-3)}
@media (prefers-reduced-motion:reduce){.kpl-pulse{animation-iteration-count:1}.kpl-box{transition:none}}
