/* css/ss-pages/tour.css - Tour & Events (/events) in the Safety design.
   Loaded by head.nvx when the page sets INFO["ss_css"] = "tour". Served byte for byte (css/ss-pages/main.mdk).
   Extends the shared components only; every selector is ss- prefixed and stays inside .ss-main. */

/* moved from the core (css/ss-pages/safety-site.css) by RD/tools/css_split.py, review 2026-10-05:
   the rules below are used only by the pages that load this partial; they keep their core order */
.ss-tour-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 18px 40px; margin-bottom: 22px; }
.ss-tour-legend { margin: 0; color: var(--ss-muted-2); font-size: 13px; }
.ss-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px 14px;
  margin: 0 0 18px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--ss-line-2);
  background: rgba(8, 14, 28, 0.55);
}
.ss-filter .ss-field { flex: 1 1 240px; max-width: 360px; }
.ss-filter-count { margin: 0 0 0 auto; align-self: center; color: var(--ss-muted); font-size: 13px; font-weight: 500; }
html:not(.ss-js) .ss-filter { visibility: hidden; }
.ss-shows { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.ss-show {
  position: relative;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 176px;
  align-items: center;
  gap: 18px 22px;
  padding: 16px 20px 16px 16px;
  border-radius: var(--ss-radius);
  background: linear-gradient(100deg, rgba(26, 42, 74, 0.55), rgba(16, 27, 51, 0.55) 45%, rgba(11, 20, 38, 0.6));
  border: 1px solid var(--ss-line-2);
  transition: border-color 0.35s, box-shadow 0.45s, transform 0.45s var(--ss-ease-out);
}
.ss-show::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(60% 120% at 0% 50%, rgba(242, 201, 135, 0.08), rgba(242, 201, 135, 0) 70%);
  opacity: 0;
  transition: opacity 0.4s;
}
.ss-show:hover { border-color: rgba(242, 201, 135, 0.3); box-shadow: 0 20px 60px -34px rgba(224, 164, 88, 0.5); transform: translateY(-2px); }
.ss-show:hover::before { opacity: 1; }
.ss-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 74px;
  padding-right: 18px;
  border-right: 1px solid var(--ss-line);
  text-align: center;
  line-height: 1.1;
}
.ss-date .ss-wd { color: var(--ss-amber); font-size: 11px; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; }
.ss-date .ss-md { margin-top: 4px; font-family: var(--ss-serif); font-size: 27px; font-weight: 600; color: var(--ss-cream); white-space: nowrap; font-variant-numeric: lining-nums; }
.ss-date .ss-yr { margin-top: 3px; color: var(--ss-muted-2); font-size: 11px; letter-spacing: 0.16em; }
.ss-date.is-tba .ss-md { font-size: 17px; font-style: italic; line-height: 1.1; white-space: normal; color: var(--ss-amber-hi); }
.ss-where { min-width: 0; }
.ss-city { margin: 0; font-family: var(--ss-serif); font-size: clamp(22px, 2.2vw, 28px); font-weight: 600; line-height: 1.1; color: var(--ss-cream); }
.ss-venue { margin: 3px 0 0; color: var(--ss-ink); font-size: 14.5px; font-weight: 500; }
.ss-show-meta { margin: 3px 0 0; color: var(--ss-muted-2); font-size: 12.5px; letter-spacing: 0.02em; }
.ss-act { display: flex; justify-content: flex-end; }
.ss-act .ss-btn { width: 100%; }
.ss-show.is-soon { background: rgba(11, 20, 38, 0.5); }
.ss-show.is-cancelled .ss-city { text-decoration: line-through; color: rgba(243, 233, 210, 0.6); }
.ss-state { color: var(--ss-muted); font-size: 13.5px; font-weight: 600; letter-spacing: 0.04em; }
@media (max-width: 860px) {
  .ss-show { grid-template-columns: 74px minmax(0, 1fr); grid-template-areas: "date where" "act act"; gap: 14px 16px; padding: 16px; }
  .ss-date { grid-area: date; padding-right: 14px; min-height: 64px; }
  .ss-date .ss-md { font-size: 23px; }
  .ss-where { grid-area: where; }
  .ss-act { grid-area: act; }
}
.ss-band {
  position: relative;
  overflow: hidden;
  padding: clamp(80px, 11vw, 150px) 0;
  isolation: isolate;
  background: radial-gradient(70% 60% at 50% 0%, rgba(26, 42, 74, 0.9), rgba(6, 11, 23, 0) 70%), var(--ss-navy-0);
}
.ss-band-moon {
  position: absolute;
  z-index: -2;
  left: 0;
  right: 0;
  margin: 0 auto;
  top: 4%;
  width: min(70vw, 620px);
  aspect-ratio: 1;
  /* centred by margin: the ss-breathe animation owns transform */
  border-radius: 50%;
  background: radial-gradient(circle at 42% 38%, rgba(255, 246, 225, 0.5), rgba(243, 233, 210, 0.26) 40%, rgba(200, 161, 101, 0.1) 64%, rgba(200, 161, 101, 0) 72%);
  filter: blur(2px);
  animation: ss-breathe 9s ease-in-out infinite;
}
.ss-band-road {
  position: absolute;
  z-index: -1;
  left: 50%;
  bottom: -14%;
  width: max(110%, 900px);
  max-width: none;
  transform: translateX(-50%);
  opacity: 0.55;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 45%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 45%);
}
.ss-band::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 11, 23, 0.2) 0%, rgba(6, 11, 23, 0.55) 60%, rgba(6, 11, 23, 0.9) 100%);
}
.ss-band .ss-glass { max-width: 820px; margin: 0 auto; text-align: center; }
.ss-band .ss-h2 { font-size: clamp(32px, 4.4vw, 56px); }
.ss-band .ss-shows { margin: 22px 0 26px; text-align: left; }
.ss-band .ss-btn-row { justify-content: center; }
.ss-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ss-amber-hi) 50%), linear-gradient(135deg, var(--ss-amber-hi) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 42px;
}
.ss-select option { background: var(--ss-navy-2); color: var(--ss-cream); }
/* end of the rules moved from the core */

/* page head: the tour heading itself, short, so the city filter and the first shows are above the fold
   (the night shows through; no dancer imagery) */
.ss-main .ss-tourhead { padding-bottom: clamp(14px, 2vw, 24px); }
.ss-main .ss-tourhead .ss-display { max-width: 7.15em; } /* = 15ch of Cormorant, font-swap safe */
.ss-main .ss-tourhead .ss-lede { max-width: 24em; margin-top: 12px; } /* fonts-1006: the one-line lede is 22.4em in Brygada 1918 (20.4em in Cormorant, was 21.9em) */

/* the list section sits right under the head: the legend, then the filter, then the shows */
.ss-main .ss-tour { padding-top: clamp(4px, 1vw, 12px); }
.ss-main .ss-tour .ss-tour-head { margin-bottom: 10px; }
.ss-main .ss-tour .ss-filter { align-items: flex-end; }
.ss-main .ss-tour .ss-filter .ss-btn { min-height: 52px; }

/* empty state */
.ss-main .ss-tour-empty { max-width: 680px; margin: 0 auto; }
.ss-main .ss-tour-empty p { margin: 14px auto 0; max-width: 52ch; color: var(--ss-muted); font-size: 16px; line-height: 1.65; }
.ss-main .ss-tour-empty a:not(.ss-btn) { color: var(--ss-amber-hi); text-decoration: underline; text-underline-offset: 3px; }
.ss-main .ss-tour-empty .ss-btn-row { justify-content: center; margin-top: 22px; }

/* ticket registration over the band (moon + lamp-lit road; no people) */
.ss-main .ss-tour-reg {
  /* no hard seam with the ambient night above: the band fades in from transparent */
  background: radial-gradient(70% 60% at 50% 0%, rgba(26, 42, 74, 0.5), rgba(6, 11, 23, 0) 70%), linear-gradient(180deg, rgba(6, 11, 23, 0) 0%, var(--ss-navy-0) 45%);
}
.ss-main .ss-tour-reg .ss-glass { max-width: 760px; }
.ss-main .ss-tour-reg .ss-lede { margin: 12px auto 0; max-width: 44ch; }
.ss-main .ss-reg-form {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  max-width: 560px;
  margin: 26px auto 0;
}
.ss-main .ss-reg-form .ss-btn { min-height: 52px; white-space: nowrap; }
@media (max-width: 620px) {
  .ss-main .ss-reg-form { grid-template-columns: minmax(0, 1fr); }
  .ss-main .ss-tour .ss-filter .ss-field { flex-basis: 100%; max-width: none; }
}

/* the legend sits over the moonlit sky on phones: the lighter muted tone (review 2026-10-05) */
.ss-main .ss-tour-legend { color: var(--ss-muted); }
