/* ============================================================
   ARCADE COMEDY THEATER — EVENTS LIST VIEW ("What's on")
   css/events-list.css

   Loaded on the events views (inc/events-list.php) for the theme's
   tribe/events/v2/list.php: the arcade-platform mockup's shows page.
   Colours and type come from style.css §00; the chips are §06's .pill.

   EVERY SELECTOR STARTS WITH .tribe-common ON PURPOSE. The Events
   Calendar ships a reset (`.tribe-common a`, `.tribe-common div`,
   `.tribe-common h2` … { margin:0; padding:0; border:0; font:inherit })
   whose class+element selectors outrank a lone class, so a plain
   `.arc-lstub { border: 3px … }` renders with no border at all. Two
   classes beat class+element, and the view's own container carries
   .tribe-common, so the prefix costs nothing and wins everywhere.
   Same root cause as style.css §49/§51/§52/§53.
   ============================================================ */

/* ---------- hero (the §14 .page-hero recipe, restated at this specificity) ---------- */
.tribe-common .arc-shows__hero {
  background: var(--ink); color: var(--paper);
  padding: clamp(40px, 6vw, 80px) 0; margin: 0;
  position: relative; overflow: hidden;
  border: 0; border-bottom: 4px solid var(--gold);
  background-image: var(--dots-dark); background-size: 22px 22px;
}
.tribe-common .arc-shows__hero .arcade-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); position: relative; z-index: 1; }
.tribe-common .arc-shows__hero .eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--marker); font-weight: 400; font-size: 1.05rem; letter-spacing: 0; text-transform: none;
  color: var(--volt); margin: 0 0 0.4rem; transform: rotate(-1.5deg); transform-origin: left center;
}
.tribe-common .arc-shows__hero h1 {
  font-family: var(--display); font-weight: 800; font-size: clamp(2.6rem, 7vw, 5.5rem);
  text-transform: uppercase; letter-spacing: -0.02em; line-height: 0.92; color: var(--paper); margin: 0;
}
.tribe-common .arc-shows__hero h1 span { color: var(--gold); }
.tribe-common .arc-shows__hero p {
  font-family: var(--body); color: rgba(255, 246, 227, 0.82); font-size: clamp(1.05rem, 1.6vw, 1.3rem); max-width: 60ch;
  margin: 1rem 0 0; line-height: 1.5;
}
.tribe-common .arc-shows__filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.tribe-common .arc-shows__filters a { text-decoration: none; display: inline-block; border: 0; transition: transform 0.12s; }
.tribe-common .arc-shows__filters a:hover, .tribe-common .arc-shows__filters a.on { transform: translate(-1px, -1px); }
.tribe-common .arc-shows__filters a:hover .pill, .tribe-common .arc-shows__filters a.on .pill { box-shadow: 3px 3px 0 var(--ink); }
.tribe-common .arc-shows__filters a.on .pill { outline: 2px solid var(--paper); outline-offset: 1px; }

/* Chips (§06 .pill), restated because the reset flattens spans too. */
.tribe-common .arc-shows .pill,
.tribe-common .arc-shows__filters .pill {
  display: inline-flex; align-items: center; gap: 0.4em;
  font-family: var(--display); font-weight: 800; font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.35em 0.7em; border-radius: 999px; border: 2px solid var(--ink);
  background: var(--paper); color: var(--ink); line-height: 1; white-space: nowrap;
}
.tribe-common .arc-shows__filters .pill { font-size: 0.78rem; padding: 0.45em 0.85em; }
.tribe-common .arc-shows .pill-pink,   .tribe-common .arc-shows__filters .pill-pink   { background: var(--pink);   color: var(--ink); }
.tribe-common .arc-shows .pill-volt,   .tribe-common .arc-shows__filters .pill-volt   { background: var(--volt);   color: var(--ink); }
.tribe-common .arc-shows .pill-teal,   .tribe-common .arc-shows__filters .pill-teal   { background: var(--teal);   color: var(--ink); }
.tribe-common .arc-shows .pill-orange, .tribe-common .arc-shows__filters .pill-orange { background: var(--orange); color: var(--ink); }
.tribe-common .arc-shows .pill-purple, .tribe-common .arc-shows__filters .pill-purple { background: var(--purple-soft); color: var(--ink); }
.tribe-common .arc-shows .pill-blue,   .tribe-common .arc-shows__filters .pill-blue   { background: var(--blue);   color: var(--ink); }
.tribe-common .arc-shows .pill-gold,   .tribe-common .arc-shows__filters .pill-gold   { background: var(--gold);   color: var(--ink); }
.tribe-common .arc-shows .pill-sold { background: var(--ink); color: var(--paper); }
.tribe-common .arc-shows .pill-few  { background: var(--orange); color: var(--ink); }

/* TEC's own H1 is not rendered (the hero has one). */
.tribe-common .arc-shows .tribe-events-header__content-title,
.tribe-common .arc-shows .tribe-events-header__title { display: none; }

/* ---------- day rows ---------- */
.tribe-common .arc-shows__days { display: block; }
.tribe-common .arc-shows__day {
  display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 24px;
  padding: 26px 0 30px; margin: 0; border: 0; border-bottom: 3px dashed var(--ink-40);
}
.tribe-common .arc-shows__day:last-of-type { border-bottom: 0; }
.tribe-common .arc-shows__label {
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  font-size: 1.5rem; line-height: 1; letter-spacing: -0.02em; color: var(--ink); margin: 6px 0 0; padding: 0;
}
.tribe-common .arc-shows__day--today .arc-shows__label { color: var(--pink-deep); }
.tribe-common .arc-shows__date { font-family: var(--display); font-weight: 700; font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin: 6px 0 0; }
.tribe-common .arc-shows__stubs { display: grid; gap: 14px; }

/* ---------- ticket stubs ---------- */
.tribe-common .arc-lstub {
  display: grid; grid-template-columns: 78px auto minmax(0, 1fr) auto; align-items: center; gap: 14px;
  background: var(--cream); color: var(--ink);
  border: 3px solid var(--ink); border-radius: var(--r-lg); padding: 12px 18px 12px 14px; margin: 0;
  text-decoration: none; position: relative; box-shadow: var(--hard);
  font: inherit; transition: transform 0.12s;
}
.tribe-common .arc-lstub:hover, .tribe-common .arc-lstub:focus { transform: translate(-2px, -2px) rotate(-0.4deg); color: var(--ink); text-decoration: none; }
/* The punched notches, in the page's paper so they read as holes. */
.tribe-common .arc-lstub::before, .tribe-common .arc-lstub::after {
  content: ''; position: absolute; width: 22px; height: 22px; border-radius: 50%;
  background: var(--paper); top: 50%; transform: translateY(-50%); z-index: 2;
}
.tribe-common .arc-lstub::before { left: -14px; }
.tribe-common .arc-lstub::after  { right: -14px; }
.tribe-common .arc-lstub--out { opacity: 0.78; }

.tribe-common .arc-lstub__time {
  display: block; font-family: var(--display); font-weight: 800; font-size: 1.25rem; line-height: 1; text-align: center;
  border: 0; border-right: 2px dashed var(--ink-12); padding: 0 12px 0 0; white-space: nowrap;
}
.tribe-common .arc-lstub__time small { display: block; font-family: var(--display); font-weight: 700; font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.tribe-common .arc-lstub__thumb {
  display: block; width: 64px; height: 64px; border-radius: 8px; border: 2px solid var(--ink);
  background: var(--ink-2) center / cover no-repeat;
}
.tribe-common .arc-lstub__body { display: block; min-width: 0; }
.tribe-common .arc-lstub__title {
  display: block; font-family: var(--display); font-weight: 800; font-size: 1.15rem; line-height: 1.05; letter-spacing: -0.01em; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tribe-common .arc-lstub__meta { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.tribe-common .arc-lstub__meta .pill { font-size: 0.66rem; }
.tribe-common .arc-lstub__price {
  display: inline-block; font-family: var(--display); font-weight: 800; font-size: 1.25rem; line-height: 1;
  background: var(--gold); color: var(--ink); border: 2px solid var(--ink); border-radius: 8px;
  padding: 0.25em 0.5em; transform: rotate(3deg); white-space: nowrap;
}
.tribe-common .arc-lstub--out .arc-lstub__price { background: var(--paper); color: var(--muted); }

/* ---------- empty ---------- */
.tribe-common .arc-shows__empty {
  background: var(--cream); border: 3px solid var(--ink); border-radius: var(--r-xl); box-shadow: var(--hard);
  padding: 28px; text-align: center; margin: 12px 0;
}
.tribe-common .arc-shows__empty-title { font-family: var(--display); font-weight: 800; font-size: 1.3rem; letter-spacing: -0.01em; margin: 0 0 6px; }
.tribe-common .arc-shows__empty p { margin: 0; }
.tribe-common .arc-shows__empty a { color: var(--pink-deep); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- TEC chrome around it ---------- */
.tribe-common .arc-shows .tribe-events-header { margin-top: clamp(20px, 3vw, 36px); }
.tribe-common .arc-shows .tribe-events-c-nav { margin-top: 28px; }
/* The stub's notches and price tag sit a few px outside its box; the
   container must not clip them. */
.tribe-common.tribe-events .arc-shows { overflow: visible; }

/* ---------- phones ---------- */
@media (max-width: 767px) {
  .tribe-common .arc-shows__day { grid-template-columns: 1fr; gap: 12px; padding: 20px 0 24px; }
  .tribe-common .arc-shows__when { display: flex; align-items: baseline; gap: 10px; }
  .tribe-common .arc-shows__label { font-size: 1.25rem; margin: 0; }
  .tribe-common .arc-shows__date { margin: 0; }
  .tribe-common .arc-lstub { grid-template-columns: 62px minmax(0, 1fr) auto; gap: 10px; padding: 10px 12px 10px 10px; }
  .tribe-common .arc-lstub__thumb { display: none; }
  .tribe-common .arc-lstub__time { font-size: 1rem; padding-right: 8px; }
  .tribe-common .arc-lstub__title { font-size: 1rem; }
  .tribe-common .arc-lstub__price { font-size: 1rem; }
  .tribe-common .arc-lstub::before, .tribe-common .arc-lstub::after { width: 16px; height: 16px; }
  .tribe-common .arc-lstub::before { left: -11px; } .tribe-common .arc-lstub::after { right: -11px; }
  .tribe-common .arc-shows__filters .pill, .tribe-common .arc-shows .pill { font-size: 11px; }
  .tribe-common .arc-shows__hero { padding: 34px 0 30px; }
  .tribe-common .arc-shows__hero h1 { font-size: clamp(2rem, 9.5vw, 2.6rem); }
}
@media (prefers-reduced-motion: reduce) {
  .tribe-common .arc-lstub, .tribe-common .arc-shows__filters a { transition: none; }
  .tribe-common .arc-lstub:hover, .tribe-common .arc-shows__filters a:hover { transform: none; }
}
