/* First-load guided tour (assets/js/tour.js). Colours come from the shared tokens, so Dark, Mixed and Light
   all read: in Mixed the popover keeps the dark brand frame colours, in Light it is a light card.
   No gradients. Every button is at least 44px. Motion only when the visitor has not asked for less. */
.shot-tour {
  position: fixed; z-index: 9000; box-sizing: border-box; max-height: calc(100vh - 24px); overflow-y: auto;
  padding: 16px 16px 8px; border-radius: 16px;
  background: var(--shot-surface-elevated, #1A1A1A); color: var(--shot-text, #FFFFFF);
  border: 1px solid var(--shot-text-muted, #8C8C8C);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  font-family: Montserrat, system-ui, sans-serif; font-size: 14px; line-height: 1.5;
}
.shot-tour:focus { outline: none; }
.shot-tour-count { margin: 0 0 4px; font-size: 12px; font-weight: 600; color: var(--shot-text-secondary, #B3B3B3); }
.shot-tour-title { margin: 0 0 8px; font: 700 18px/1.25 Poppins, Montserrat, sans-serif; color: var(--shot-text, #FFFFFF); }
.shot-tour-body p { margin: 0 0 8px; color: var(--shot-text, #FFFFFF); }
.shot-tour-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px; }
.shot-tour-foot { display: flex; flex-wrap: wrap; gap: 4px 8px; justify-content: space-between; margin-top: 4px; }
.shot-tour-btn {
  min-width: 44px; min-height: 44px; padding: 0 16px; border-radius: 10px; cursor: pointer;
  font: 600 14px Montserrat, system-ui, sans-serif;
  background: transparent; color: var(--shot-text, #FFFFFF); border: 1px solid var(--shot-text-muted, #8C8C8C);
}
.shot-tour-btn--primary { background: var(--shot-teal, #1ABC9C); color: #000000; border-color: transparent; min-width: 88px; }
.shot-tour-btn--quiet { border-color: transparent; padding: 0 8px; color: var(--shot-text-secondary, #B3B3B3); text-decoration: underline; text-underline-offset: 3px; }
.shot-tour-btn:disabled { opacity: .5; cursor: default; }
.shot-tour-btn:focus-visible { outline: 3px solid var(--shot-gold, #F7B613); outline-offset: 2px; }
.shot-tour-btn--primary:focus-visible { outline-color: var(--shot-text, #FFFFFF); box-shadow: 0 0 0 2px #000000; }

/* Ring around the anchored element: a dark inner line and a gold outer line, so it shows on any surface. */
.shot-tour-ring {
  position: fixed; z-index: 8999; box-sizing: border-box; pointer-events: none; border-radius: 12px;
  box-shadow: 0 0 0 2px #0A0A0A, 0 0 0 5px var(--shot-gold, #F7B613);
}
.shot-tour-ring[hidden] { display: none; }
.shot-tour-live { position: fixed; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (prefers-reduced-motion: no-preference) {
  .shot-tour { animation: shot-tour-in 160ms ease-out; }
  .shot-tour-ring { transition: top 160ms ease, left 160ms ease, width 160ms ease, height 160ms ease; }
}
@keyframes shot-tour-in { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 380px) { .shot-tour-foot { justify-content: flex-start; } }

/* Guided demo tap tip: small, non-blocking, never takes focus or pointer events. */
.shot-tour-tap {
  position: fixed; z-index: 9001; box-sizing: border-box; pointer-events: none; padding: 10px 12px; border-radius: 12px;
  background: var(--shot-surface-elevated, #1A1A1A); color: var(--shot-text, #FFFFFF);
  border: 1px solid var(--shot-text-muted, #8C8C8C); box-shadow: 0 6px 20px rgba(0, 0, 0, .3);
  font: 600 13px/1.4 Montserrat, system-ui, sans-serif;
}
.shot-tour-guide { padding: 0 8px; }
@media (prefers-reduced-motion: no-preference) { .shot-tour-tap { animation: shot-tour-in 140ms ease-out; } }

/* End-of-tour card: three stacked choices. */
.shot-tour-end-actions { display: grid; gap: 8px; margin-top: 12px; }
.shot-tour-end-actions .shot-tour-btn { width: 100%; }

/* "What brings you to SHOT?": a centred card over the app on a visitor's first load. Tokens keep it readable in
   Dark, Mixed and Light; options are large 44px+ targets. */
.shot-tour-pick {
  position: fixed; inset: 0; z-index: 9500; display: grid; place-items: center; padding: 16px; overflow-y: auto;
  background: rgba(0, 0, 0, .72);
}
.shot-tour-pick-card {
  box-sizing: border-box; width: min(100%, 560px); max-height: 100%; overflow-y: auto; padding: 24px 20px 12px; border-radius: 20px;
  background: var(--shot-surface-elevated, #1A1A1A); color: var(--shot-text, #FFFFFF);
  border: 1px solid var(--shot-text-muted, #8C8C8C); box-shadow: 0 16px 48px rgba(0, 0, 0, .45);
  font-family: Montserrat, system-ui, sans-serif;
}
.shot-tour-pick-card:focus { outline: none; }
.shot-tour-pick-title { margin: 0 0 8px; font: 700 24px/1.2 Poppins, Montserrat, sans-serif; color: var(--shot-text, #FFFFFF); }
.shot-tour-pick-sub { margin: 0 0 16px; font-size: 15px; line-height: 1.5; color: var(--shot-text, #FFFFFF); }
.shot-tour-pick-grid { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .shot-tour-pick-grid { grid-template-columns: 1fr 1fr; } }
.shot-tour-pick-opt {
  display: flex; flex-direction: column; gap: 4px; align-items: flex-start; text-align: left; min-height: 88px; padding: 14px 16px;
  border-radius: 14px; cursor: pointer; font-family: Montserrat, system-ui, sans-serif;
  background: transparent; color: var(--shot-text, #FFFFFF); border: 2px solid var(--shot-text-muted, #8C8C8C);
}
.shot-tour-pick-opt:hover { border-color: var(--shot-teal, #1ABC9C); }
.shot-tour-pick-opt:focus-visible { outline: 3px solid var(--shot-gold, #F7B613); outline-offset: 2px; }
.shot-tour-pick-name { font: 700 18px/1.2 Poppins, Montserrat, sans-serif; }
.shot-tour-pick-line { font-size: 14px; line-height: 1.4; color: var(--shot-text-secondary, #B3B3B3); }
.shot-tour-pick-skip { display: block; margin: 8px auto 0; }

/* Picker groups: "For my organisation" and "For me". */
.shot-tour-pick-group { margin: 0 0 16px; }
.shot-tour-pick-gtitle { margin: 0 0 8px; font: 700 14px/1.3 Montserrat, system-ui, sans-serif; letter-spacing: .04em; text-transform: uppercase; color: var(--shot-text, #FFFFFF); }
.shot-tour-pick-opt { min-height: 56px; padding: 10px 14px; gap: 2px; }
.shot-tour-pick-name { font-size: 16px; }
.shot-tour-pick-line { font-size: 13px; }
.shot-tour-pick-card { padding: 20px 16px 8px; }
