/* ==========================================================
   Pallet Town Watch Order — Regions (regions.html) only
   Loaded after css/base.css, so rules here can build on it.
   ========================================================== */

/* ---------- Regions: route map (replaces the region tiles, 2026-10-23) ---------- */
.route-card { padding: 0; overflow: hidden; }

.route { --dot: 46px; padding: 22px 24px 18px; }

/* The stops sit on one line at every screen size. When they don't all fit
   (tablets, phones, or many regions) the line scrolls sideways inside the
   card, with a fade on the side that has more, and starts centred on the
   region you're in. */
.route__stops {
  position: relative;   /* so each stop's offsetLeft is measured from here */
  list-style: none;
  margin: 0 -8px;
  padding: 6px 8px 8px;
  display: flex;
  align-items: flex-start;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.route__stops.is-more-right { -webkit-mask-image: linear-gradient(to right, #000 85%, transparent); mask-image: linear-gradient(to right, #000 85%, transparent); }

.route__stops.is-more-left { -webkit-mask-image: linear-gradient(to left, #000 85%, transparent); mask-image: linear-gradient(to left, #000 85%, transparent); }

.route__stops.is-more-left.is-more-right { -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent); }

.route__stop { flex: 1 0 78px; min-width: 78px; position: relative; scroll-snap-align: center; }

/* The line to the next stop: blue once this region is finished. */
.route__stop:not(:last-child)::after {
  content: "";
  position: absolute;
  top: calc(var(--dot) / 2 - 2px);
  left: calc(50% + var(--dot) / 2 + 2px);
  right: calc(-50% + var(--dot) / 2 + 2px);
  height: 4px;
  border-radius: 2px;
  background: var(--track);
}

.route__stop.is-done:not(:last-child)::after { background: var(--blue); }

.route__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0 4px 4px;
  text-align: center;
  color: var(--ink);
  text-decoration: none;
  border-radius: var(--radius-sm);
}

.route__dot {
  width: var(--dot);
  height: var(--dot);
  flex: 0 0 var(--dot);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 3px solid var(--line-strong);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.is-done .route__dot { background: var(--blue); border-color: var(--blue); color: var(--on-dark); }

.is-now .route__dot {
  background: var(--yellow);
  border-color: var(--yellow-dark);
  color: var(--on-accent);
  box-shadow: 0 0 0 5px rgba(255, 203, 5, 0.32);
}

.route__link:hover .route__dot { transform: scale(1.08); border-color: var(--blue); }

.route__link:hover .route__name { color: var(--link); }

.route__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

/* Names wrap between words only ("Battle / Frontier"), never mid-word. */
.route__name { font-weight: 700; font-size: 14px; line-height: 1.25; overflow-wrap: normal; word-break: normal; hyphens: manual; }

.route__count { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); }

/* Navy Up next band hanging off the bottom of the route card:
   same colours as the Master List band, smaller type and padding. */
.next-band--attached {
  border-radius: 0;
  padding: 18px 24px 20px;
  gap: 16px 36px;
}

.next-band--attached .next-band__main { gap: 4px; flex-basis: 360px; }

.next-band--attached .next-band__kicker { font-size: 12px; }

.next-band--attached .next-band__title { font-size: 24px; }

.next-band--attached .next-band__meta { font-size: 13px; }

.next-band--attached .next-band__actions { margin-top: 8px; }

.next-band--attached .next-band__actions .btn { min-height: 40px; padding: 6px 14px; font-size: 14px; }

.next-band--attached .next-band__season { flex-basis: 260px; padding-left: 28px; gap: 6px; }

.next-band--attached .next-band__season-name { font-size: 15px; }

.next-band--attached .next-band__season-count { font-size: 13px; }

/* Region name in the navy band links to its section */
.next-band__region-link { color: var(--on-dark); text-decoration: none; }

.next-band__region-link:hover { color: var(--yellow); text-decoration: underline; }

/* Phones: smaller stops (still one sideways line), stacked strip. */
@media (max-width: 640px) {
  .route { --dot: 38px; padding: 16px 16px 14px; }
  .next-band--attached { padding: 16px 16px 18px; }
  .next-band--attached .next-band__title { font-size: 21px; }
  .next-band--attached .next-band__season { flex-basis: 100%; padding-left: 0; padding-top: 14px; }
  .route__stop { flex: 0 0 76px; min-width: 76px; }
  .route__name { font-size: 13px; }
}
