/* dashboard-tour.css - the dashboard's guided tour (dashboard-tour.js), shown to
   every signed-in role. Was demo-tour.css until the tour was unbundled from demo
   mode (programme plan U1). BEM kebab-case, base.css tokens only. Spotlight and
   tip movement is a no-op under prefers-reduced-motion (end of file). */

.dashboard-tour {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  /* Visual only: the dashboard stays fully interactive during the tour so the
     viewer can click the spotlighted control. Only the tip re-enables pointer
     events for its own buttons. */
  pointer-events: none;
}

/* A transparent box whose massive outset shadow dims the rest of the page,
   leaving the highlighted element visible and bright. */
.dashboard-tour__spot {
  position: fixed;
  border-radius: var(--radius-md);
  box-shadow: 0 0 0 9999px var(--color-scrim);
  pointer-events: none;
  transition: top 0.2s ease, left 0.2s ease, width 0.2s ease,
    height 0.2s ease;
}

.dashboard-tour__tip {
  position: fixed;
  pointer-events: auto;
  width: min(380px, calc(100vw - 24px));
  padding: var(--spacing-xl);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  transition: top 0.2s ease, left 0.2s ease;
}

.dashboard-tour__tip--center {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.dashboard-tour__count {
  margin: 0 0 var(--spacing-xs);
  color: var(--color-primary);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-tour__title {
  margin: 0 0 var(--spacing-sm);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-extrabold);
  color: var(--color-text);
}

.dashboard-tour__body {
  margin: 0 0 var(--spacing-lg);
  font-size: var(--font-size-sm);
  line-height: 1.6;
  color: var(--color-text-light);
}

.dashboard-tour__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  align-items: center;
}

.dashboard-tour__btn {
  min-height: 44px;
  padding: var(--spacing-sm) var(--spacing-lg);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
}

.dashboard-tour__btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.dashboard-tour__btn--primary {
  margin-left: auto;
  background: var(--gradient-primary);
  color: var(--color-text-inverse);
  border-color: transparent;
}

.dashboard-tour__btn--ghost {
  border-color: transparent;
  color: var(--color-text-light);
}

.dashboard-tour__btn:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

/* The sidebar's "Take the tour" trigger wears .dashboard__signout (a link
   style); reset the native button chrome that class does not cover. */
.dashboard__tour-start {
  border: 0;
  background: transparent;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  .dashboard-tour__spot,
  .dashboard-tour__tip {
    transition: none;
  }
}
