/* ==========================================================================
   PULSE — the ticket panel.

   GET TICKETS opens an event selector and says, on the panel itself, that
   ticketing is not connected. It does not invent inventory, a price, a date or
   a sold-out state, and pressing CONTINUE does not pretend to have worked.
   That honesty is the design: the panel exists to show a client exactly where
   their provider gets wired in.
   ========================================================================== */
.tickets {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  z-index: 500;
  width: min(100%, 460px);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  background: var(--night);
  border-left: 1px solid var(--rule);
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 340ms cubic-bezier(0.22, 1, 0.32, 1),
              visibility 0s linear 340ms;
}
/* Closed means visibility:hidden rather than the hidden attribute, so the panel
   can slide out rather than vanish — and visibility (unlike opacity) still
   takes it out of the tab order and out of the accessibility tree while it is
   away, which is the part that actually matters. */
.tickets.is-open {
  transform: none;
  visibility: visible;
  transition: transform 340ms cubic-bezier(0.22, 1, 0.32, 1), visibility 0s;
}

@media (prefers-reduced-motion: reduce) {
  .tickets { transition: none; }
}

.tickets__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.tickets__close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--rule);
  cursor: pointer;
  transition: border-color var(--cut), color var(--cut);
}
.tickets__close:hover, .tickets__close:focus-visible {
  border-color: var(--glow);
  color: var(--glow);
}

.tickets__list { display: flex; flex-direction: column; }

.tkt {
  width: 100%;
  min-height: 64px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  cursor: pointer;
}
.tkt__no { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; color: var(--glow); }
.tkt__lines { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
.tkt__title {
  font-family: var(--display);
  font-size: clamp(1.1rem, 4.4vw, 1.4rem);
  line-height: 1;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--ink) 72%, transparent);
  transition: color var(--cut);
}
.tkt__title { display: block; }
.tkt__type {
  display: block;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
}
.tkt__state {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: var(--night);
  background: var(--acid);
  padding: 0.3rem 0.5rem;
  opacity: 0;
}
/* selected: the title fills in, and the SELECTED chip appears. Two signals. */
.tkt[aria-pressed="true"] .tkt__title { color: var(--ink); }
.tkt[aria-pressed="true"] .tkt__state { opacity: 1; }

.tickets__foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}
.tickets__blocked {
  padding: 0.8rem 1rem;
  border-left: 3px solid var(--acid);
  background: color-mix(in srgb, var(--acid) 10%, transparent);
  font-size: 0.9rem;
}

/* ============================================================== footer ===== */
.foot {
  padding-block: clamp(2rem, 5vw, 4rem) clamp(1.6rem, 3vw, 2.4rem);
  border-top: 1px solid var(--rule);
}
.foot__top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: clamp(2rem, 5vw, 3.5rem);
}
.foot__brand { display: flex; align-items: baseline; gap: 0.7rem; }
.foot__place {
  font-family: var(--mono);
  font-size: var(--t-mono);
  letter-spacing: 0.2em;
  color: var(--ink-dim);
}
.foot__tagline { color: var(--glow); }

.foot__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: clamp(1.6rem, 4vw, 3rem);
  padding-bottom: clamp(2rem, 5vw, 3.5rem);
}
.foot__nav { display: flex; flex-direction: column; gap: 0.6rem; }
.foot__nav a {
  font-family: var(--mono);
  font-size: var(--t-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-dim);
  transition: color var(--cut);
}
.foot__nav a:hover, .foot__nav a:focus-visible { color: var(--ink); }
.foot__head { color: var(--ink-faint); margin-bottom: 0.8rem; }
.foot__social { display: flex; flex-direction: column; gap: 0.5rem; }
.foot__social li {
  font-family: var(--mono);
  font-size: var(--t-mono);
  letter-spacing: 0.16em;
  color: var(--ink-dim);
}

/* --- the language switcher -------------------------------------------------- */
.foot__langs { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.lang {
  min-height: 40px;
  padding: 0.5rem 0.8rem;
  border: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: var(--t-mono);
  letter-spacing: 0.1em;
  color: var(--ink-dim);
  cursor: pointer;
  transition: border-color var(--cut), color var(--cut);
}
.lang:hover, .lang:focus-visible { border-color: var(--ink); color: var(--ink); }
.lang[aria-current="true"] {
  border-color: var(--glow);
  color: var(--ink);
}
/* a locale whose copy has not had a native speaker's pass says so, here, in the
   place a reader chooses it — not only in a README nobody opens */
.lang__draft {
  display: block;
  font-size: 0.55rem;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  color: var(--acid);
}

.foot__base {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.2rem;
  padding-top: clamp(1.4rem, 3vw, 2rem);
  border-top: 1px solid var(--rule);
}
.foot__base .demo-note { margin-top: 0; }
.foot__rights { color: var(--ink-faint); }
