/* Generated by brand/scripts/build-components.mjs from brand/components/. Do not edit. Load public/tokens/tokens.css first. */

/* Stops (R-G of nuevauno/nu#341, first drawn by Flota): a route, an order or a request as a line of stops with their time. What is
   done is green, where it is now beats in orange, what comes is grey. The consumer puts the state on each stop. */
.nu-stops {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nu-stop {
  display: grid;
  grid-template-columns: calc(var(--nu-control-large) - var(--nu-space-4)) var(--nu-control-icon) minmax(0, 1fr) auto;
  align-items: start;
  gap: var(--nu-space-8);
  min-height: var(--nu-control-row);
}

.nu-stop__time {
  padding-top: calc(var(--nu-space-4) / 2);
  color: var(--nu-color-muted);
  font-family: var(--nu-font-family-mono);
  font-size: var(--nu-size-caption);
  font-variant-numeric: tabular-nums;
}

.nu-stop__dot {
  position: relative;
  display: flex;
  justify-content: center;
  align-self: stretch;
}

.nu-stop__dot::before {
  position: absolute;
  top: 0;
  bottom: 0;
  width: calc(var(--nu-border-width) * 2);
  background: var(--nu-color-border);
  content: "";
}

.nu-stop:last-child .nu-stop__dot::before {
  bottom: auto;
  height: var(--nu-space-8);
}

.nu-stop__dot::after {
  position: relative;
  width: var(--nu-space-12);
  height: var(--nu-space-12);
  margin-top: var(--nu-space-4);
  border: calc(var(--nu-border-width) * 2) solid var(--nu-color-border-strong);
  background: var(--nu-color-surface);
  content: "";
}

.nu-stop__body {
  display: grid;
  min-width: 0;
  color: var(--nu-color-ink);
}

.nu-stop__note {
  color: var(--nu-color-muted);
  font-size: var(--nu-size-caption);
}

.nu-stop--done .nu-stop__dot::before {
  background: var(--nu-color-success);
}

.nu-stop--done .nu-stop__dot::after {
  border-color: var(--nu-color-success);
  background: var(--nu-color-success);
}

.nu-stop--now .nu-stop__dot::after {
  border-color: var(--nu-color-accent);
  background: var(--nu-color-accent);
  animation: nu-stop-beat calc(var(--nu-motion-count) * 2) var(--nu-motion-ease-in-out) infinite;
}

.nu-stop--now .nu-stop__time {
  color: var(--nu-color-accent);
}

@keyframes nu-stop-beat {
  50% {
    box-shadow: 0 0 0 var(--nu-space-6) var(--nu-color-accent-soft);
  }
}

@media (prefers-reduced-motion: reduce) {
  .nu-stop--now .nu-stop__dot::after {
    animation: none;
  }
}
