/* New user guide: toggle bar, spotlight, coach marks (Scripts/odeTour.js). Uses odeCommon.css variables. 10/7/2026 */

/* ---- "New user guide" bar above Step 1 */
.odeGuideBar { font-family: var(--ode-font-ui); font-size: 13px; color: var(--ode-text);
    margin: 8px 0 2px 0; padding: 6px 10px; border: 1px solid transparent; border-radius: var(--ode-radius);
    display: inline-block; position: relative; }
.odeGuideToggle { font: inherit; font-weight: 600; color: #1f4fa3; background: #fff; border: 1px solid #2f6fd6; border-radius: var(--ode-radius);
    padding: 4px 12px; cursor: pointer; white-space: nowrap; }
.odeGuideToggle:hover { background: #eef3fb; }
.odeGuideNote { color: var(--ode-text-secondary); margin-left: 8px; }

/* emphasis for likely new users (no saved criteria, guide never used) */
.odeGuideBar.odeGuideBar-new { background: #eef3fb; border-color: #b9cdee; }
.odeGuideBar.odeGuideBar-new .odeGuideToggle { animation: odeGuidePulse 1.8s ease-out 4; }
.odeGuideBar .odeGuideDismiss { display: none; background: none; border: 0; cursor: pointer; color: #555;
    font-size: 14px; line-height: 1; padding: 2px 4px; margin-left: 8px; border-radius: 4px; }
.odeGuideBar.odeGuideBar-new .odeGuideDismiss { display: inline; }
.odeGuideBar .odeGuideDismiss:hover { background: #dde7f7; }
@keyframes odeGuidePulse {
    0%   { box-shadow: 0 0 0 0 rgba(47, 111, 214, 0.55); }
    70%  { box-shadow: 0 0 0 8px rgba(47, 111, 214, 0); }
    100% { box-shadow: 0 0 0 0 rgba(47, 111, 214, 0); }
}

/* ---- spotlight: a transparent box over the target whose huge shadow dims the rest of the page.
   pointer-events:none keeps the page fully clickable (the user can open a mission while the tour points at it). */
.odeTour-spot { position: fixed; z-index: 9000; pointer-events: none; border-radius: 6px;
    box-shadow: 0 0 0 3px var(--ode-accent), 0 0 0 9999px rgba(0, 0, 0, 0.40); transition: all 0.2s ease; }
.odeTour-spot.odeTour-spot-full { top: 0 !important; left: 0 !important; width: 100% !important; height: 100% !important;
    border-radius: 0; box-shadow: none; background: rgba(0, 0, 0, 0.40); }

/* ---- coach mark */
.odeTour-coach { position: fixed; z-index: 9001; width: 330px; max-width: 92vw; box-sizing: border-box;
    font-family: var(--ode-font-ui); font-size: 14px; line-height: 1.45; text-align: left;
    background: #eef3fb; color: #12305f; border: 1px solid #8fb0e6; border-radius: 12px;
    padding: 12px 14px 10px 14px; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22); }
.odeTour-coach * { box-sizing: border-box; }
.odeTour-coach button, .odeTour-coach a { font-family: inherit; }
.odeTour-title { display: block; font-size: 15px; font-weight: 600; margin: 0 22px 4px 0; padding: 0; color: #0d2a57; outline: none; }
.odeTour-body { margin: 0; }
.odeTour-body b { font-weight: 600; }
.odeTour-body a { color: var(--ode-accent-dark); }
.odeTour-close { position: absolute; top: 8px; right: 8px; background: none; border: 0; cursor: pointer;
    color: #12305f; font-size: 15px; line-height: 1; padding: 3px 5px; border-radius: 5px; }
.odeTour-close:hover { background: #dde7f7; }
.odeTour-nav { overflow: hidden; margin-top: 10px; }
.odeTour-count { float: left; font-size: 12px; color: #3d5a88; padding-top: 6px; }
.odeTour-btns { float: right; }
.odeTour-btn { font-size: 13px; padding: 5px 12px; margin-left: 6px; cursor: pointer; border-radius: var(--ode-radius);
    border: 1px solid #8fb0e6; background: #fff; color: #12305f; }
.odeTour-btn:hover { background: #f4f8fe; }
.odeTour-btn-primary { background: var(--ode-accent); border-color: var(--ode-accent); color: #fff; font-weight: 600; }
.odeTour-btn-primary:hover { background: var(--ode-accent-dark); }
.odeTour-btn-link { border-color: transparent; background: none; color: var(--ode-accent-dark); padding-left: 4px; padding-right: 4px; }
.odeTour-btn-link:hover { background: none; text-decoration: underline; }
.odeTour-coach button:focus, .odeTour-coach a:focus { outline: 2px solid var(--ode-accent); outline-offset: 1px; }

/* arrow: a rotated square on the side facing the target */
.odeTour-arrow { position: absolute; width: 12px; height: 12px; background: #eef3fb; transform: rotate(45deg); }
.odeTour-coach[data-place="right"]  .odeTour-arrow { left: -7px;  border-left: 1px solid #8fb0e6; border-bottom: 1px solid #8fb0e6; }
.odeTour-coach[data-place="left"]   .odeTour-arrow { right: -7px; border-right: 1px solid #8fb0e6; border-top: 1px solid #8fb0e6; }
.odeTour-coach[data-place="bottom"] .odeTour-arrow { top: -7px;   border-left: 1px solid #8fb0e6; border-top: 1px solid #8fb0e6; }
.odeTour-coach[data-place="top"]    .odeTour-arrow { bottom: -7px; border-right: 1px solid #8fb0e6; border-bottom: 1px solid #8fb0e6; }
.odeTour-coach[data-place="center"] .odeTour-arrow { display: none; }

@media (prefers-reduced-motion: reduce) {
    .odeTour-spot { transition: none; }
    .odeGuideBar.odeGuideBar-new .odeGuideToggle { animation: none; }
}
