/* Your Band (/world/your-band/, src/world/your-band.njk). Built on the brochure's own pieces in main.css (sections,
   lists, chips, Puntuale's note and Right now box); only the kerb picture and the colour swatches are here. The
   colours on the cars and the band are the car service's own (vehicles.yaml rider_match), set inline as --match;
   everything else is theme tokens. */

.band-kerb { margin: 18px 0 20px; padding: 18px 18px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-sunken); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px 20px; align-items: center; }
.band-kerb figcaption { grid-column: 1 / -1; font-size: 14px; color: var(--ink-soft); line-height: 1.5; }

/* the band on the wrist */
.band-kerb__wrist { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-soft); }
.band-kerb__band { position: relative; display: grid; place-items: center; width: 74px; height: 30px; border-radius: var(--radius-pill); background: var(--ink); box-shadow: inset 0 -5px 0 var(--match), 0 0 18px color-mix(in srgb, var(--match) 55%, transparent); }
.band-kerb__code { font-family: var(--font-display); font-weight: 600; font-size: 14px; letter-spacing: 2px; color: color-mix(in srgb, var(--match) 70%, var(--bg-sunken)); }

/* the kerb: a row of pearl cars, each with its door line and code; the unlit ones wait at the back */
.band-kerb__row { list-style: none; margin: 0; padding: 10px 0 12px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; border-bottom: 3px solid var(--border); }
.band-kerb__car { position: relative; aspect-ratio: 1 / 1.25; border-radius: 40% 40% 18% 18%; background: linear-gradient(180deg, var(--ink) 0 34%, var(--ink-soft) 34% 44%, var(--ink) 44%); opacity: 0.86; }
.band-kerb__door { position: absolute; left: 12%; right: 12%; bottom: 10%; display: grid; place-items: center; padding-bottom: 3px; font-family: var(--font-display); font-weight: 600; font-size: clamp(8px, 1.3vw, 12px); letter-spacing: 1px; color: var(--match); border-bottom: 3px solid var(--match); text-shadow: 0 0 1px var(--bg-sunken); min-height: 1.4em; }
.band-kerb__car--waiting { opacity: 0.45; }
.band-kerb__car--waiting .band-kerb__door { border-bottom-color: transparent; }
.band-kerb__car--yours { opacity: 1; box-shadow: 0 0 0 2px var(--match), 0 0 22px color-mix(in srgb, var(--match) 60%, transparent); }
.band-kerb__car--yours::after { content: ""; position: absolute; left: 50%; top: -12px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--match); animation: band-tap 2.4s ease-out infinite; }
@keyframes band-tap { 0%, 60%, 100% { transform: scale(1); opacity: 0.9; } 10% { transform: scale(1.8); opacity: 0.3; } }

.band-colours { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; color: var(--ink-soft); }
.band-colours li { display: inline-flex; align-items: center; gap: 6px; }
.band-colours__swatch { width: 26px; height: 6px; border-radius: var(--radius-pill); background: var(--match); }

.band-steps .whats-on__item { grid-template-columns: 2.5rem minmax(0, 1fr); }
.band-steps .whats-on__item > .whats-on__where { display: none; }
.band-steps .whats-on__when { font-family: var(--font-display); color: var(--brand-text); }
.band-steps .whats-on__addr { max-width: 62ch; }
.band-now__band { margin: 8px 0 0; font-weight: 600; color: var(--ink); }
.band-now__band[hidden] { display: none; }

@media (max-width: 700px) {
  .band-kerb { grid-template-columns: 1fr; padding: 14px 12px 12px; }
  .band-kerb__row { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .band-kerb__door { font-size: 11px; }
  .band-steps .whats-on__item { grid-template-columns: 2rem minmax(0, 1fr); }
  .band-steps .whats-on__item > .whats-on__when { grid-column: 1; grid-row: 1; }
  .band-steps .whats-on__item > .whats-on__what { grid-column: 2; grid-row: 1; }
}
@media (prefers-reduced-motion: reduce) { .band-kerb__car--yours::after { animation: none; } }
