/* section: events_spotlight → ACF layout `events_spotlight` (WP: auto-query Event CPT + weekly repeater) */
.events-spotlight {
  padding-block: var(--section-pad);
  background: var(--bg);
  position: relative;
}
.events-spotlight__inner {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.events-spotlight__title {
  font-size: clamp(48px, 6.5vw, 92px);
  margin: 14px 0 36px;
}
.events-spotlight__title em { font-style: normal; color: var(--accent); }

/* setlist */
.setlist { border-top: 3px solid var(--bg-ink); }
.setlist__item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 20px 6px;
  border-bottom: 1px solid var(--border-medium);
  transition: background 0.25s ease, padding 0.25s ease;
  position: relative;
}
.setlist__item:hover { background: var(--bg-elevated); padding-inline: 14px; }

.setlist__date {
  text-align: center;
  border: 2px solid var(--bg-ink);
  padding: 8px 6px 6px;
  background: var(--bg-elevated);
  transform: rotate(-2deg);
}
.setlist__date .mo {
  display: block;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
}
.setlist__date .day {
  display: block;
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1;
}
.setlist__date .dow {
  display: block;
  font-family: var(--font-label);
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.setlist__name {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1;
  text-transform: uppercase;
}
.setlist__meta {
  font-family: var(--font-label);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-top: 4px;
}
.setlist__meta .venue { color: var(--accent); font-weight: 700; }
.setlist__time {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--text-secondary);
}
.events-spotlight__all { margin-top: 30px; }

/* weekly residencies rail */
.residencies {
  scroll-margin-top: 110px; /* #residencies lands below the sticky header, not under it */
  background: var(--bg-ink);
  color: var(--text-on-ink);
  padding: 34px 30px 38px;
  border: 3px solid var(--bg-ink);
  box-shadow: 10px 10px 0 var(--accent);
  position: sticky;
  top: 110px;
}
.residencies__title {
  font-family: var(--font-display);
  font-size: 32px;
  text-transform: uppercase;
  margin: 10px 0 22px;
  color: var(--cream);
}
.residencies__list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto; /* words | venue badge */
  column-gap: 14px;
  row-gap: 2px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-on-ink);
}
.residencies__list li > * { grid-column: 1; }
.residencies__list li:last-child { border-bottom: none; }
.residencies__day {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
}
.residencies__what {
  font-family: var(--font-display);
  font-size: 23px;
  text-transform: uppercase;
  color: var(--cream);
}
.residencies__note {
  font-size: 13.5px;
  color: var(--text-on-ink-secondary);
}

/* Residency rows follow the venue filter, and each row carries its venue as a
   badge on the right in EVERY filter state, so it is always clear whose night
   it is (a cream ticket-stub, like the venue tag under the nav; orange is
   already the day's colour). Literal colours on purpose: var(--cream) as a
   background computed transparent on the nav tag. */
.residencies__list li > .residencies__venue {
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: start;
  margin-top: 1px;
  padding: 6px 9px 5px;
  background: #F5F0E6;
  color: #141414;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
}
.residencies__empty {
  padding: 14px 0;
  font-size: 13.5px;
  color: var(--text-on-ink-secondary);
}

@media (max-width: 960px) {
  .events-spotlight__inner { grid-template-columns: 1fr; }
  .residencies { position: static; }
}
@media (max-width: 560px) {
  .setlist__item { grid-template-columns: 72px minmax(0, 1fr); }
  .setlist__time { grid-column: 2; justify-self: start; }
  .setlist__date .day { font-size: 27px; }
  /* one date per day: the stamp, then each show with its time under it */
  .setlist__day { grid-template-columns: 72px minmax(0, 1fr); gap: 14px; }
  .setlist__day .setlist__item { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .setlist__day .setlist__time { grid-column: 1; }
}

/* no upcoming shows: a plain line where the setlist would be (never sample shows) */
.setlist__empty {
  border-top: 3px solid var(--bg-ink);
  padding: 22px 0 6px;
  font-family: var(--font-serif, Georgia, serif);
  font-size: 1.05rem;
  opacity: 0.8;
}

/* No residencies saved: the panel is not printed and the shows take the row. */
.events-spotlight__inner--solo { grid-template-columns: minmax(0, 1fr); }

/* 1.2.7: a whole row clicks through. The name stays the one real link (for screen
   readers and the keyboard); its ::after stretches over the row. */
.setlist__item { position: relative; }
.setlist__name a::after {
  content: '';
  position: absolute;
  inset: 0;
}
.setlist__name a:focus-visible { outline: none; }
.setlist__item:has(.setlist__name a:focus-visible) { outline: 2px solid var(--accent); outline-offset: -2px; }
.setlist__item:has(.setlist__name a) { cursor: pointer; }
.setlist__item:hover .setlist__name a { color: var(--accent); }

/* a weekly night with its own page or a link: the same treatment, plus a small arrow */
.residencies__item--link { position: relative; }
.residencies__what a { color: inherit; text-decoration: none; }
.residencies__what a::after {
  content: '';
  position: absolute;
  inset: 0;
}
.residencies__item--link .residencies__what::after {
  content: ' \2192';
  color: var(--accent);
  font-size: 0.8em;
}
.residencies__what a:focus-visible { outline: none; }
.residencies__item--link:has(.residencies__what a:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.residencies__item--link:hover .residencies__what { color: var(--accent); }

/* ── The full calendar (1.2.9; one month at a time from 1.2.11) ── */
/* one date per day, that day's shows stacked beside it (1.2.12) */
.setlist__day {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding: 12px 6px;
  border-bottom: 1px solid var(--border-medium);
}
.setlist__day[hidden] { display: none; }
.setlist__day > .setlist__date { margin-top: 8px; }
.setlist__day.is-past > .setlist__date { opacity: 0.62; }
.setlist__acts { list-style: none; margin: 0; padding: 0; }
.setlist__day .setlist__item { grid-template-columns: minmax(0, 1fr) auto; padding: 10px 6px; border-bottom: 0; }
.setlist__day .setlist__item:hover { padding-inline: 14px; }
/* a line between two things on one night, the same as the line between days, starting at the shows (not under the date) */
.setlist__day .setlist__item:not([hidden]) ~ .setlist__item:not([hidden]) { border-top: 1px solid var(--border-medium); margin-top: 6px; padding-top: 16px; }
.events-spotlight { scroll-margin-top: 90px; } /* a month link (#events-spotlight) lands below the sticky header */
.setlist__item.is-past { opacity: 0.62; transition: opacity 0.2s ease, background 0.25s ease, padding 0.25s ease; }
.setlist__item.is-past:hover,
.setlist__item.is-past:focus-within { opacity: 1; }

.calnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
  flex-wrap: wrap;
}
.calnav--top { margin-bottom: 22px; }
/* the month's name centred between its neighbours, whatever is beside it (1.2.11) */
.calnav--top { display: grid; grid-template-columns: 1fr auto 1fr; }
.calnav--top .calnav__step--prev { justify-self: start; }
.calnav--top .calnav__step--next { justify-self: end; margin-left: 0; }
/* no month before it (the opening view): the name starts the row on the left, the next month on the right */
.calnav--top.calnav--no-prev { grid-template-columns: 1fr auto; }
.calnav--no-prev .calnav__month { text-align: left; }
.calnav--no-prev .calnav__step--next { grid-column: -2 / -1; }
.calnav--foot { margin-top: 30px; }
/* the month's name: a small letter-spaced heading, like the theme's other section labels (1.2.11) */
.calnav__month {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.22em;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--text-primary);
  text-align: center;
  margin: 0;
  order: 0;
}
.calnav__month:focus { outline: none; }   /* takes the focus after a month change, for screen readers */
/* the steps to the months either side: plain links with their arrows, no boxes (1.2.11) */
.calnav__step {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-primary);
  white-space: nowrap;
  transition: color 0.2s ease, gap 0.25s ease;
}
.calnav__step:hover,
.calnav__step:focus-visible { color: var(--accent); gap: 14px; }
.calnav__step--prev { order: -1; }
.calnav__step--next { order: 1; margin-left: auto; }
.calnav__step--none { visibility: hidden; padding: 0; min-width: 1px; }

/* changing months in place (calendar.js): a quiet fade while the next one loads */
.setlist-calendar { transition: opacity 0.2s ease; }
.setlist-calendar.is-loading { opacity: 0.45; }

/* the chosen venue has nothing this month (1.2.11): one line where the shows would be, naming
   the venue the filter chose, with the way to every venue; the foot links stand down meanwhile */
.setlist__empty--venue { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; padding-bottom: 22px; border-bottom: 1px solid var(--border); }
.setlist__venue-name { display: none; }
[data-loc-active="nashville"] .setlist__venue-name[data-venue="nashville"],
[data-loc-active="lenoir-city"] .setlist__venue-name[data-venue="lenoir-city"],
[data-loc-active="airport"] .setlist__venue-name[data-venue="airport"] { display: inline; }
.setlist__all { background: none; border: 0; padding: 0; cursor: pointer; font-style: normal; }
.setlist__month:has(.setlist__empty--venue:not([hidden])) .setlist { border-top: 0; }
/* the foot repeats the month links only when the list is long enough to have scrolled the top ones
   away (six shows or more on show, whatever the venue); the opening view's "Past shows" always stays */
.setlist-calendar:not(:has(.setlist__day:nth-child(6 of :not([hidden])))) .calnav--foot .calnav__step:not(.calnav__step--past) { display: none; }
.setlist-calendar:not(:has(.setlist__day:nth-child(6 of :not([hidden])))) .calnav--foot:not(:has(.calnav__step--past)) { display: none; }

@media (max-width: 560px) {
  /* the month name on its own line, the two links side by side under it */
  .calnav--top { grid-template-columns: 1fr 1fr; }
  .calnav--top .calnav__month { grid-column: 1 / -1; order: -2; }
  .calnav__step { font-size: 11px; letter-spacing: 0.14em; }
}
