/* ============================================================================
   Guided tour — a hole in a dark sheet, and a card that points at something.
   ========================================================================= */

/* The sheet is one element with an enormous shadow rather than four panels
   around the target: one box to move, and the hole takes the target's own
   rounded corners. With no target it collapses to nothing and the shadow
   covers the screen on its own. */
.tour-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(17, 24, 39, 0.55);
    transition: all 0.2s ease;
}

.tour-overlay-spot {
    inset: auto;
    background: transparent;
    border-radius: 10px;
    box-shadow: 0 0 0 9999px rgba(17, 24, 39, 0.55);
    pointer-events: none;
}

.tour-card {
    position: fixed;
    z-index: 2001;
    max-width: 360px;
    width: calc(100vw - 32px);
    background: #fff;
    border-radius: 10px;
    padding: 18px 20px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.tour-count {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #1e7cec;
    margin: 0 0 6px;
    text-transform: uppercase;
}

.tour-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #212529;
    margin: 0 0 8px;
}

.tour-body {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #495057;
    margin: 0 0 16px;
}

.tour-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tour-button {
    border-radius: 6px;
    border: 1px solid transparent;
    padding: 7px 14px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
}

/* Skip sits apart from the others: it is the way out, not a way on. */
.tour-skip {
    margin-right: auto;
    background: none;
    color: #6c757d;
}

.tour-skip:hover {
    color: #212529;
    text-decoration: underline;
}

.tour-back {
    background: #fff;
    border-color: #ced4da;
    color: #495057;
}

.tour-next {
    background: #1e7cec;
    color: #fff;
}

.tour-next:hover {
    background: #1560d4;
}

.tour-button:focus-visible {
    outline: 3px solid #1e7cec;
    outline-offset: 2px;
}

/* ── The menu of chapters ─────────────────────────────────────────────── */
.tour-menu-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    width: 100%;
    text-align: left;
    border: 1px solid #e3e6ea;
    border-radius: 8px;
    background: #fff;
    padding: 12px 14px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.tour-menu-item:hover {
    border-color: #1e7cec;
    box-shadow: 0 4px 12px rgba(30, 124, 236, 0.12);
}

.tour-menu-item i {
    font-size: 1.25rem;
    color: #1e7cec;
    line-height: 1.2;
}

.tour-menu-title {
    font-weight: 600;
    color: #212529;
}

.tour-menu-blurb {
    font-size: 0.85rem;
    color: #6c757d;
}

/* What a chapter will do for somebody who has nothing yet. */
.tour-menu-note {
    display: inline-block;
    margin-top: 4px;
    font-size: 0.8rem;
    color: #1e7cec;
}

/* ── The nudge a new account gets once ────────────────────────────────── */
.tour-invite {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    border: 1px solid #b6d4fe;
    background: #eff6ff;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 16px;
}

.tour-invite p {
    margin: 0;
    color: #1e3a5f;
    flex: 1 1 260px;
}

/* On a phone the card is as wide as the screen allows, and its position is
   left to the script, which clamps it to the viewport. An !important here
   used to overrule that, so the card sat at a fixed 16px while the spotlight
   moved — the two drifting apart is exactly what looked broken. */
@media (max-width: 575.98px) {
    .tour-card {
        max-width: none;
        width: calc(100vw - 32px);
    }
}
