/* A Club page on Stub (ADR 0009): the page shell from site.css, with themed runs as tickets and the season so far as
   kept stubs beside each section title, and the weekly facts as text rows. */

/* The title stamps in from 1.12 times its size; unclipped, it widens a phone's page mid-stamp and Chrome aborts the
   cross-page transition ("Viewport size changed"). */
.page-head { overflow-x: clip; }

/* ---------- tickets ---------- */

/* Themed runs are tickets: one stands wide beside the section title, more stand upright in a row. The season so far
   is its kept stubs; more than one ticket stands in justified rows (.tkt-row) in the 932 column. */
.club-tickets { --row-h: clamp(200px, 21vw, 300px); flex: 1; min-width: 0; gap: 16px; }
.club-tickets:not(.tkt-row) { display: grid; grid-template-columns: minmax(0, 1fr); align-items: stretch; }
.club-tickets[data-count="1"] { grid-template-columns: minmax(0, 1fr); }
.club-tickets[data-count="1"] .tkt--wide { --face-h: clamp(320px, 23vw, 360px); }
.club-tickets .tkt--wide .tkt-name { font-size: var(--display-48); line-height: 46px; }
.club-tickets .tkt--wide .tkt-meta { font-size: var(--text-17); line-height: 24px; }
/* A flyer face keeps its shape, so a narrower stub sets its type down rather than growing taller than the flyer. */
@media (max-width: 1320px) {
  .club-tickets .tkt--wide .tkt-name { font-size: var(--display-38); line-height: 38px; }
  .club-tickets .tkt--wide .tkt-meta { font-size: var(--text-15); line-height: 22px; }
}
.club-kept { --row-h: clamp(200px, 21vw, 300px); flex: 1; min-width: 0; gap: 16px; }
.club-kept .tkt:not(.tkt--canceled) .tkt-status { display: none; }
.club-kept .tkt-name { font-size: var(--display-24); line-height: 26px; }
.club-kept .tkt-stub { padding-bottom: 18px; }
.club-empty { flex: 1; font-size: var(--text-17); line-height: 24px; color: var(--muted-dark); }
.club-phone { display: none; }

/* ---------- every week ---------- */

.club-week { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.club-week .btn-row { margin-top: 8px; }
.club-week .list-text { padding-block: 20px; }
.club-week .list-text-name { width: 160px; font-size: var(--text-15); line-height: 24px; color: var(--muted-dark); }
.club-week .list-text-body { gap: 2px; line-height: 24px; }
.club-week .list-text-sub { line-height: 20px; }
.club-week .list-text-end { width: 160px; }
.club-week .list-text-end .btn--link { padding-block: 0; font-size: var(--text-15); line-height: 24px; }

/* Beside a section title the column is too narrow below this: one wide ticket wraps its stub taller than its flyer
   and the weekly facts wrap every value, so each section stacks under its title. */
@media (max-width: 1180px) {
  .page-sec:has(> :is(.club-tickets, .club-week, .club-kept, .club-empty)) { flex-direction: column; gap: 32px; }
  .page-sec:has(> :is(.club-tickets, .club-week, .club-kept, .club-empty)) > .page-sec-head { width: auto; }
  .club-tickets, .club-kept, .club-week, .club-empty { width: 100%; }
}

/* ---------- phone ---------- */

@media (max-width: 760px) {
  #club-themed-h { font-size: var(--display-48); line-height: 44px; }
  .club-tickets { display: grid; grid-template-columns: minmax(0, 1fr); }
  .club-tickets .tkt--wide > .tkt-stub { padding: 16px 16px 6px; gap: 12px; }
  .club-tickets .tkt--wide .tkt-name { font-size: var(--display-30); line-height: 30px; }
  .club-tickets .tkt--wide .tkt-meta { font-size: var(--text-15); line-height: 20px; }
  .club-kept { gap: 12px; width: calc(100% + 2 * var(--gutter)); margin: -6px calc(-1 * var(--gutter)) 0; padding: 10px var(--gutter) 8px; scroll-padding-inline: var(--gutter); }
  .club-week { gap: 20px; }
  /* Every row stacks its label over its value, the way an Event's facts do. */
  .club-week .list-text { flex-direction: column; gap: 2px; padding-block: 14px; }
  .club-week .list-text-name { width: auto; font-size: 14px; line-height: 18px; }
  .club-week .list-text-body { font-size: 16px; line-height: 22px; }
  .club-week .list-text-sub { font-size: 16px; line-height: 22px; color: var(--ink); }
  .club-week .list-text-end { width: auto; padding-top: 4px; }
  .club-wide { display: none; }
  .club-phone { display: inline; }
  p.club-phone { display: block; }
}
