/* The spotlight tour (UI.tour) and the Tour menu in the header. Colours come from the tokens in app.css. */
.tour-layer { position: fixed; inset: 0; z-index: var(--layer-dialog); }
.tour-spot {
  position: fixed; box-sizing: border-box; pointer-events: none;
  border: 2px solid var(--accent); border-radius: var(--radius-lg);
  box-shadow: 0 0 0 100vmax var(--backdrop);
  transition: left .2s, top .2s, width .2s, height .2s;
}
.tour-card {
  position: fixed; right: 16px; bottom: 16px; width: 360px; max-width: calc(100vw - 16px); box-sizing: border-box;
  background: var(--surface); color: var(--fg); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 14px var(--s4);
}
.tour-card:focus { outline: none; }
.tour-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tour-step { margin: 0 0 var(--s1); }
.tour-title { margin: 0 0 var(--s1h); font-size: 17px; }
.tour-text { margin: 0 0 var(--s3); }
.tour-buttons { justify-content: flex-end; }
.tour-target { scroll-margin-top: 72px; scroll-margin-bottom: 240px; }
.tour-menu { position: relative; display: inline-block; }
.tour-menu > summary { cursor: pointer; padding: var(--s1) var(--s2); }
.tour-menu-list {
  position: absolute; right: 0; top: 100%; z-index: var(--layer-dropdown); width: 260px; max-width: calc(100vw - 16px); max-height: 70vh; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-menu); padding: var(--s3);
}
.tour-menu-list p { margin: var(--s2h) 0 var(--s1); }
.welcome-panel { position: fixed; inset: 0; z-index: var(--layer-overlay); display: flex; align-items: flex-start; justify-content: center; padding: 72px var(--s4) var(--s4); background: var(--backdrop); overflow-y: auto; }
.welcome-panel:focus { outline: none; }
.welcome-panel-card { width: 520px; max-width: 100%; box-sizing: border-box; background: var(--surface); }
@media (max-width: 640px) {
  .tour-card { left: 8px; right: 8px; bottom: 8px; width: auto; max-width: none; }
  .tour-buttons button { min-height: 44px; }
  .tour-menu-list button.link { min-height: 44px; min-width: 44px; }
  /* On a phone the header wraps, so a list hung off the Tour button's right edge ran off the left of the screen. It is a sheet across the screen instead. */
  .tour-menu-list { position: fixed; left: 8px; right: 8px; top: auto; width: auto; max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  .tour-spot { transition: none; }
}
