/* Per-feature "?" help icon — explains + sells a prototype feature in place,
   then invites feedback tagged to it. Alan, 2026-07-20. */

.pgspca-help-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-left: 6px;
    border-radius: 50%;
    border: 1.5px solid #2271b1;
    background: #fff;
    color: #2271b1;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    vertical-align: middle;
    flex: none;
}
.pgspca-help-icon:hover,
.pgspca-help-icon:focus-visible {
    background: #2271b1;
    color: #fff;
    outline: none;
}

/* Page-level variant: a standout fixed badge (top-right), matching the
   Issue Reporter's "!" bottom-right button in size/weight so it reads as
   an equally important, always-visible control — not a normal inline "?". */
.pgspca-help-icon--page {
    position: fixed;
    top: 60px;
    right: 50px;
    width: 46px;
    height: 46px;
    margin-left: 0;
    border: none;
    background: #2271b1;
    color: #fff;
    font-size: 22px;
    box-shadow: 0 3px 12px rgba(34, 113, 177, 0.5);
    z-index: 99990;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.15s;
}
.pgspca-help-icon--page:hover,
.pgspca-help-icon--page:focus-visible {
    background: #135e96;
    transform: scale(1.1) translateY(-1px);
    box-shadow: 0 6px 18px rgba(34, 113, 177, 0.6);
    outline: none;
}
.pgspca-help-icon--page:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}
@media (max-width: 480px) {
    .pgspca-help-icon--page { top: 46px; right: 20px; width: 40px; height: 40px; font-size: 19px; }
}

.pgspca-help-popover {
    position: absolute;
    z-index: 100000;
    max-width: 340px;
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 10px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.16);
    padding: 14px 16px;
    font-size: 13.5px;
    line-height: 1.5;
    color: #1d2327;
}
.pgspca-help-popover[hidden] { display: none; }

.pgspca-help-popover h4 {
    margin: 0 0 8px;
    font-size: 14.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.pgspca-help-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    background: #f0f6fc;
    color: #2271b1;
    border: 1px solid #c3ddf4;
    border-radius: 999px;
    padding: 2px 8px;
}

.pgspca-help-popover p { margin: 0 0 8px; }
.pgspca-help-popover p:last-of-type { margin-bottom: 12px; }
.pgspca-help-popover .pgspca-help-label {
    font-weight: 700;
    color: #646970;
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: .03em;
    display: block;
    margin-bottom: 2px;
}

.pgspca-help-actions { display: flex; align-items: center; gap: 10px; }
.pgspca-help-feedback-btn {
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.pgspca-help-feedback-btn:hover { background: #135e96; }
.pgspca-help-close {
    background: none;
    border: none;
    color: #646970;
    font-size: 13px;
    cursor: pointer;
    padding: 4px;
}
.pgspca-help-close:hover { color: #1d2327; text-decoration: underline; }

@media (max-width: 480px) {
    .pgspca-help-popover { max-width: calc(100vw - 32px); }
}
