/* HPB — guided tour engine (self-contained, no external dependencies).
 * A dimming spotlight highlights one element at a time while a popover
 * explains what it is and what the user can do. */

.hpb-tour-blocker {
    position: fixed;
    inset: 0;
    z-index: 20000;
    background: transparent;
    cursor: default;
}

.hpb-tour-spot {
    position: absolute;
    z-index: 20001;
    border-radius: 10px;
    box-shadow: 0 0 0 9999px rgba(15, 23, 42, .62);
    pointer-events: none;
    transition: all .25s ease;
}

.hpb-tour-pop {
    position: absolute;
    z-index: 20002;
    width: 340px;
    max-width: calc(100vw - 24px);
    background: #fff;
    color: #1e293b;
    border-radius: 14px;
    box-shadow: 0 18px 48px rgba(2, 6, 23, .32);
    padding: 18px 18px 14px;
    font-family: 'Nunito', system-ui, sans-serif;
    animation: hpbTourIn .18s ease;
}

@keyframes hpbTourIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hpb-tour-pop .hpb-tour-eyebrow {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #2563eb;
    margin-bottom: 4px;
}

.hpb-tour-pop h4 {
    font-size: 1.05rem;
    font-weight: 800;
    margin: 0 0 6px;
    color: #0f172a;
}

.hpb-tour-pop p {
    font-size: .9rem;
    line-height: 1.5;
    margin: 0 0 14px;
    color: #475569;
}

.hpb-tour-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.hpb-tour-foot-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
}

.hpb-tour-count {
    font-size: .78rem;
    font-weight: 700;
    color: #94a3b8;
}

.hpb-tour-skiptour {
    border: 0;
    background: transparent;
    color: #94a3b8;
    font-size: .78rem;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    font-family: inherit;
}
.hpb-tour-skiptour:hover { color: #2563eb; }

.hpb-tour-actions {
    display: flex;
    gap: 8px;
}

.hpb-tour-btn {
    border: 0;
    border-radius: 8px;
    padding: 7px 14px;
    font-size: .85rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: background .15s ease, opacity .15s ease;
}

.hpb-tour-btn.primary { background: #2563eb; color: #fff; }
.hpb-tour-btn.primary:hover { background: #1d4ed8; }
.hpb-tour-btn.ghost { background: #f1f5f9; color: #475569; }
.hpb-tour-btn.ghost:hover { background: #e2e8f0; }
.hpb-tour-btn:disabled { opacity: .4; cursor: default; }

.hpb-tour-skip {
    position: absolute;
    top: 12px;
    right: 14px;
    border: 0;
    background: transparent;
    color: #94a3b8;
    font-size: 1rem;
    cursor: pointer;
    line-height: 1;
}
.hpb-tour-skip:hover { color: #475569; }

/* Topbar "Guide" trigger — a labelled pill (icon + "Guide"), visible on every
 * page. Overrides the fixed 42px square of .topbar-btn so the text fits.
 * tour.js only wires up the click + auto-run behaviour. */
#hpbTourBtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: auto;
    height: 42px;
    padding: 0 14px;
    font-weight: 700;
    font-size: .9rem;
}
#hpbTourBtn .hpb-guide-label { line-height: 1; }

/* Drop the word on very small screens so the top bar doesn't crowd. */
@media (max-width: 480px) {
    #hpbTourBtn .hpb-guide-label { display: none; }
    #hpbTourBtn { padding: 0; width: 42px; }
}

/* Dark theme support (the app dims to a slate palette on some views). */
@media (prefers-color-scheme: dark) {
    .hpb-tour-pop { background: #1e293b; color: #e2e8f0; }
    .hpb-tour-pop h4 { color: #f8fafc; }
    .hpb-tour-pop p { color: #cbd5e1; }
    .hpb-tour-btn.ghost { background: #334155; color: #e2e8f0; }
    .hpb-tour-btn.ghost:hover { background: #475569; }
}
