/* Black Sheep guided site tour (Shepherd.js) theme — matches the chat widget's
   amber/zinc dark palette. Loaded eagerly; Shepherd's own JS/CSS load lazily
   from js/tour.js only when the tour actually starts. */
.shepherd-element.bsco-tour-step {
  background: #18181b;
  color: #f4f4f5;
  border: 1px solid #3f3f46;
  border-radius: 1rem;
  font-family: inherit;
  /* Never wider than the viewport minus gutter — a fixed 320px could spill
     off the edge on small screens when Shepherd centers the step. */
  max-width: min(320px, calc(100vw - 2rem));
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}
.shepherd-element.bsco-tour-step .shepherd-arrow::before {
  background: #18181b;
  border: 1px solid #3f3f46;
}
.shepherd-element.bsco-tour-step .shepherd-header {
  background: linear-gradient(90deg, #eab308, #f97316, #18181b);
  border-radius: 1rem 1rem 0 0;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.shepherd-element.bsco-tour-step .shepherd-title {
  color: #09090b;
  font-weight: 700;
  font-size: 0.85rem;
  flex: 1;
  min-width: 0;
  overflow-wrap: break-word;
}
/* Sheldon is a free-range guide — he stands OUTSIDE the tour box, never
   framed inside it. The img is appended to .shepherd-element (positioned by
   floating-ui, so it is the containing block), parked just off the card's
   edge at exactly 4x his old 190px — completely still, never shrunk.
   --right mirrors him to the right edge when the left side has less room;
   --below parks him under the card on screens too narrow to flank one
   (phones). --photo frames jpeg scenes like a picture card instead of a
   bare rectangle. pointer-events:none so he never eats a click. */
.bsco-tour-sheldon {
  position: absolute;
  left: -772px;
  bottom: -30px; /* tour.js re-anchors his feet to the viewport floor */
  width: 760px;
  /* Never taller than the screen — object-fit keeps the aspect, so tall
     poses shrink proportionally instead of losing their head off the top. */
  max-height: calc(100vh - 48px);
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.6));
  z-index: 10;
}
.bsco-tour-sheldon--right {
  left: auto;
  right: -772px;
}
.bsco-tour-sheldon--right:not(.bsco-tour-sheldon--photo) {
  transform: scaleX(-1);
}
.bsco-tour-sheldon--below {
  left: 50%;
  right: auto;
  bottom: auto;
  top: calc(100% + 12px);
  transform: translateX(-50%);
  width: min(440px, 82vw);
  max-height: 55vh;
}
.bsco-tour-sheldon--photo {
  border-radius: 0.75rem;
  border: 1px solid #3f3f46;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.6);
  filter: none;
}
.shepherd-element.bsco-tour-step .shepherd-cancel-icon {
  color: rgba(9, 9, 11, 0.7);
}
.shepherd-element.bsco-tour-step .shepherd-cancel-icon:hover {
  color: #09090b;
}
.shepherd-element.bsco-tour-step .shepherd-text {
  color: #e4e4e7;
  font-size: 0.8rem;
  line-height: 1.5;
  padding: 1rem;
  /* Long unbroken strings (URLs, IDs) used to spill out of the tooltip —
     let them wrap instead of overflowing the box. */
  overflow-wrap: break-word;
  word-break: break-word;
}
.shepherd-element.bsco-tour-step .shepherd-footer {
  padding: 0 1rem 1rem;
  gap: 0.5rem;
  /* With Back + ecosystem buttons + Next in one row, the footer could
     overflow the card — let buttons drop to a second line. */
  flex-wrap: wrap;
}
.shepherd-element.bsco-tour-step .shepherd-button {
  background: #eab308;
  color: #09090b;
  font-weight: 600;
  font-size: 0.75rem;
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  border: none;
  /* Shepherd's default nowrap can push a long label ("Open Diesel Tech ↗")
     outside the card on narrow steps — allow wrapping. */
  white-space: normal;
  text-align: center;
}
.shepherd-element.bsco-tour-step .shepherd-button:not(:disabled):hover {
  background: #f59e0b;
  color: #09090b;
}
.shepherd-element.bsco-tour-step .shepherd-button.shepherd-button-secondary {
  background: transparent;
  color: #d4d4d8;
  border: 1px solid #52525b;
}
.shepherd-element.bsco-tour-step .shepherd-button.shepherd-button-secondary:not(:disabled):hover {
  background: #27272a;
  color: #f4f4f5;
}
.shepherd-modal-overlay-container {
  opacity: 0.55;
}
/* Wider variant for steps with more copy (e.g. the ecosystem capstone) */
.shepherd-element.bsco-tour-step--wide {
  max-width: 420px;
}
/* Step X / Y pill + dot progress bar, injected into the footer */
.bsco-tour-progress {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-right: auto;
}
.bsco-tour-progress-label {
  font-size: 0.7rem;
  color: #a1a1aa;
  font-variant-numeric: tabular-nums;
}
.bsco-tour-progress-dots {
  display: flex;
  gap: 4px;
  /* ~50 stops on the full tour — the dots have to wrap or they push the
     footer wider than the card. */
  flex-wrap: wrap;
  max-width: 140px;
}
.bsco-tour-progress-dot {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: #3f3f46;
}
.bsco-tour-progress-dot.is-active {
  background: #eab308;
  box-shadow: 0 0 6px rgba(234, 179, 8, 0.7);
}
.bsco-tour-progress-dot.is-done {
  background: #71717a;
}

/* Autoplay countdown bar — sits above the step copy whenever the tour is
   driving itself. Shrinks left-to-right over the 15s window; disappears the
   moment the visitor clicks anything, since autoplay turns off for good at
   that point (see js/tour.js manualAdvance). */
.bsco-tour-bar-track {
  height: 3px;
  margin: 0.85rem 1rem 0;
  background: rgba(63, 63, 70, 0.6);
  border-radius: 999px;
  overflow: hidden;
}
.bsco-tour-bar-fill {
  height: 100%;
  width: 100%;
  transform: scaleX(1);
  transform-origin: left;
  background: linear-gradient(90deg, #eab308, #f97316);
  transition-property: transform;
  transition-timing-function: linear;
}