/*
    Guided walkthrough surfaces: click-blocking overlay, spotlight ring, and the step card.
    Colors come from the design-system tokens, so dark mode follows automatically.
*/

.telpa-tour-overlay {
    position: fixed;
    inset: 0;
    z-index: 1070;
    background: transparent;
}

.telpa-tour-spotlight {
    position: fixed;
    z-index: 1071;
    border-radius: var(--telpa-radius);
    box-shadow: 0 0 0 200vmax var(--telpa-overlay);
    pointer-events: none;
    transition: top 0.2s ease, left 0.2s ease, width 0.2s ease, height 0.2s ease;
}

.telpa-tour-card {
    position: fixed;
    z-index: 1072;
    width: min(22rem, calc(100vw - 2rem));
    padding: 1rem 1.25rem;
    border: 1px solid var(--telpa-border-strong);
    border-radius: var(--telpa-radius);
    background: var(--telpa-surface);
    box-shadow: var(--telpa-shadow-drawer);
}

.telpa-tour-card:focus {
    outline: 2px solid var(--telpa-accent);
    outline-offset: 2px;
}

.telpa-tour-card-sheet {
    top: auto !important;
    right: 0;
    bottom: 0;
    left: 0 !important;
    width: 100%;
    border-radius: 0;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
}

.telpa-tour-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.telpa-tour-eyebrow {
    margin-bottom: 0;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--telpa-ink-muted);
}

.telpa-tour-title {
    margin-bottom: 0.375rem;
}

.telpa-tour-body {
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    color: var(--telpa-ink-muted);
}

.telpa-tour-progress {
    margin-bottom: 0.75rem;
    font-size: 0.75rem;
    color: var(--telpa-ink-muted);
    font-variant-numeric: tabular-nums;
}

.telpa-tour-card-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

.telpa-tour-card-footer .btn:first-child {
    margin-right: auto;
}

@media (prefers-reduced-motion: reduce) {
    .telpa-tour-spotlight {
        transition: none;
    }
}
