/* ---------------------------------------------------------------------------
   The guided page tour.

   Self-contained colours rather than the brand tokens: the overlay is drawn at
   the top of the document, outside the .shield-page element the tokens are
   declared on, so var(--shield-*) would resolve to nothing here.

   Sits above the application chrome but below MudBlazor's dialogs, which start
   at 1400 - a tour explains a page, and there is nothing to explain about a
   page hidden behind a modal.
   --------------------------------------------------------------------------- */

.tour-layer {
    position: fixed;
    inset: 0;
    z-index: 1290;
    cursor: pointer;
}

/* One element, one enormous shadow: everything outside the box is dimmed, and
   the box itself stays untouched. Cheaper and steadier than four panels. */
.tour-spot {
    position: absolute;
    border-radius: 8px;
    box-shadow: 0 0 0 9999px rgba(20, 20, 28, .58);
    outline: 2px solid #FFFFFF;
    outline-offset: 0;
    transition: top .18s ease, left .18s ease, width .18s ease, height .18s ease;
    pointer-events: none;
}

.tour-card {
    position: fixed;
    z-index: 1291;
    width: min(380px, calc(100vw - 32px));
    background: #FFFFFF;
    color: #292929;
    border-radius: 12px;
    box-shadow: 0 18px 48px rgba(20, 20, 28, .34);
    padding: 16px 18px 14px;
    font-family: Poppins, system-ui, -apple-system, "Segoe UI", sans-serif;
}

.tour-card-head {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
}

.tour-count {
    font-family: Inter, system-ui, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #2D2BAB;
}

.tour-x {
    margin-left: auto;
    background: none;
    border: 0;
    font-size: 22px;
    line-height: 1;
    /* Darker than the page's muted ink: at 22px this is not large text by the
       accessibility rules, so it needs 4.5 and #787878 only reaches 4.4. */
    color: #6B6B6B;
    cursor: pointer;
    padding: 0 2px;
}

.tour-x:hover { color: #292929; }

.tour-card-title {
    font-weight: 600;
    font-size: 16px;
    line-height: 1.3;
    margin-bottom: 6px;
}

.tour-card-body {
    font-size: 13.5px;
    line-height: 1.6;
    color: #4A4A4A;
    margin: 0 0 14px;
}

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

.tour-spacer { flex: 1 1 auto; }

.tour-btn {
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    color: #FFFFFF;
    background: #2D2BAB;
    border: 0;
    border-radius: 5px;
    padding: 8px 18px;
    cursor: pointer;
}

.tour-btn:hover { background: #242290; }

.tour-btn-quiet {
    background: none;
    color: #2D2BAB;
    border: 1px solid #C9C8EE;
}

.tour-btn-quiet:hover { background: #EEEEFA; }

.tour-btn:focus-visible,
.tour-x:focus-visible {
    outline: 2px solid #2D2BAB;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .tour-spot { transition: none; }
}

@media (prefers-color-scheme: dark) {
    .tour-card {
        background: #23222A;
        color: #E6E4DC;
    }

    .tour-card-body { color: #B9B7AE; }
    .tour-count { color: #9D9BF0; }
    .tour-btn { background: #4B49C8; }
    .tour-btn:hover { background: #5A58D8; }
    .tour-btn-quiet { color: #9D9BF0; border-color: #444268; }
    .tour-btn-quiet:hover { background: #2C2B44; }
    .tour-x { color: #9C9A92; }
    .tour-x:hover { color: #E6E4DC; }
}
