/* /events/ and /events/door/ — the page tail on top of give.css (2026-09-16).
   give.css carries the card, the fields, the wallet row, the card fold and the
   done card; this sheet only adds what a TICKET has and a gift does not: the
   event stub (name, date, one fixed price), the event list when more than one
   is on sale, and the leader's door. Tokens only, no new colors. */

/* ── the event stub at the top of the form ─────────────────────────── */
.event-stub { margin: 0 0 18px; }
.event-stub .eyebrow { margin-bottom: 6px; }
.event-stub h2 {
  margin: 0 0 4px;
  font-size: clamp(24px, 6vw, 30px);
  line-height: 1.12;
  letter-spacing: -0.015em;
}
.event-stub .event-date {
  margin: 0 0 14px;
  font-size: 16px;
  color: var(--steel);
}
.event-stub .amount-head { padding-top: 14px; border-top: 1px solid var(--line); }
.event-stub .amount-display .fig {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(40px, 12vw, 56px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.event-closed {
  margin: 0;
  padding: 14px 16px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-input);
  font-size: 16px;
  color: var(--steel);
}
.events-form .receipt-identity { padding-top: 0; border-top: 0; }
.events-form .field input[type="tel"] {
  width: 100%;
  font-family: var(--font-body);
  font-size: 16px;
  min-height: 44px;
  padding: 12px 16px;
  border-radius: var(--radius-input);
  border: 1px solid var(--control-line);
  background: var(--paper);
  color: var(--ink);
}
.events-form .field input[aria-invalid="true"] { border-color: var(--danger, #b3261e); }
.events-form .field-help {
  display: block;
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.4;
  color: var(--steel);
}

/* ── the list of events, when there is a list ──────────────────────── */
.events-pick { margin: 0 0 22px; }
.events-pick .eyebrow { margin-bottom: 10px; }
.events-list { display: grid; gap: 10px; margin: 0; padding: 0; }
.event-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 14px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-control);
  color: var(--ink);
  text-decoration: none;
  transition: border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
a.event-card:hover, a.event-card:focus-visible { border-color: var(--gold); }
a.event-card:active { transform: translateY(1px); }
.event-card.is-closed { opacity: 0.72; }
.event-card-copy { flex: 1 1 auto; min-width: 0; }
.event-card-name { margin: 0; font-weight: 600; font-size: 17px; line-height: 1.3; }
.event-card-date { margin: 2px 0 0; font-size: 14px; color: var(--steel); }
.event-card-price { margin: 0; flex: 0 0 auto; font-family: var(--font-display); font-weight: 600; font-size: 18px; }
.event-card-go { flex: 0 0 auto; color: var(--gold); font-size: 20px; line-height: 1; }

/* ── the empty state, the hub's dashed card ────────────────────────── */
/* Written out here rather than leaning on the hub's .week-empty rule so the
   card looks the same wherever styles.css puts that rule (it did not reach
   this page in the 2026-09-16 walk: no border, no centering). */
.events-empty {
  margin: 0;
  border: 1px dashed var(--line);
  border-radius: var(--radius-card);
  padding: 34px 26px;
  text-align: center;
  background: var(--paper);
}
.events-empty .evt-title { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 20px; color: var(--ink); }
.events-empty p { color: var(--steel); font-size: 16px; margin: 8px 0 18px; }
.events-empty .btn { margin-top: 4px; }
/* display set on a class must still yield to the hidden attribute */
.events-list[hidden], .events-door-link[hidden], .event-card[hidden] { display: none; }
/* .door-card was left out of the line above and carries `display: flex` from
   styles.css, so all three of the door page's panels — the sign-in wall, the
   event picker and the live check-in card — rendered at once for every
   visitor, and the Refresh button that came with them asked for
   /api/youth/events//sheet with no event and got a 404. events-door.js show()
   toggles `hidden` and was always right; nothing honoured the attribute.
   Found by the overnight QA crawl on 09-17 and again on 09-18. */
.door-card[hidden] { display: none; }

/* ── the ticket done card ──────────────────────────────────────────── */
.give-done[data-pending="1"] .give-success-mark { opacity: 0.35; }
.give-done .done-facts dd.mono-meta { font-size: 13px; letter-spacing: 0.02em; text-transform: none; }

/* ── the leader's door ─────────────────────────────────────────────── */
.events-door-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 6px;
  font-weight: 600;
  color: var(--ink);
}
.door-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px 16px 22px;
  box-shadow: var(--shadow-control);
}
.door-card + .door-card { margin-top: 14px; }
.door-card h2 { margin: 0 0 4px; font-size: clamp(22px, 5.6vw, 28px); line-height: 1.15; }
.door-card .event-date { margin: 0 0 14px; color: var(--steel); font-size: 16px; }
.door-counts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 16px;
  padding: 0;
}
.door-counts > div {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.door-counts dt {
  margin: 0 0 2px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
}
.door-counts dd {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 26px;
  line-height: 1.1;
  color: var(--ink);
}
.door-counts dd.money { font-size: 22px; }
.door-counts > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
.door-fee-note { margin: -4px 0 16px; font-size: 14px; color: var(--steel); }
.door-form { display: grid; gap: 10px; padding-top: 16px; border-top: 1px solid var(--line); }
.door-form .field { margin: 0; }
.door-form .field label {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.door-form .field input[type="tel"], .door-form .field input[type="search"] {
  width: 100%;
  font-family: var(--font-body);
  font-size: 18px;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: var(--radius-input);
  border: 1px solid var(--control-line);
  background: var(--paper);
  color: var(--ink);
}
.door-form .btn { width: 100%; min-height: 48px; }
.door-tools { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 20px 0 8px; }
.door-tools .eyebrow { margin: 0; }
.door-tools .link-more { min-height: 44px; }
button.door-refresh {
  appearance: none;
  -webkit-appearance: none;
  background: none;
  border: 0;
  padding: 0 4px;
  box-shadow: none;
  font: inherit;
  color: var(--ink);
  cursor: pointer;
}
.door-find { margin: 0 0 4px; }
.door-find input[type="search"] {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  font-family: var(--font-body);
  font-size: 16px;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: var(--radius-input);
  border: 1px solid var(--control-line);
  background: var(--paper);
  color: var(--ink);
}
.door-roster { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.door-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.door-row-who { flex: 1 1 auto; min-width: 0; }
.door-row-name { margin: 0; font-weight: 600; font-size: 17px; line-height: 1.3; }
.door-row-phone { margin: 2px 0 0; }
.door-row.is-in .door-row-name { color: var(--steel); font-weight: 500; }
.door-row.is-pending .door-row-name { font-style: italic; }
.door-row-mark { flex: 0 0 auto; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; color: var(--steel); }
.door-row-btn { flex: 0 0 auto; min-height: 44px; padding: 0 16px; }
.door-roster-none { margin: 14px 0 0; color: var(--steel); font-size: 16px; }
.door-wall p { margin: 0 0 16px; font-size: 16px; line-height: 1.5; }

/* Desktop header on the two ticket pages: the shared header's nav pills measure
   38px tall and the CTA 42px at 1280 (a tracked row on the hub and /give/).
   A payment page ships 44px tap boxes instead of inheriting that row; the
   padding stays as the shell sets it, only the box grows and centers. */
@media (min-width: 720px) {
  .nav-links a { display: inline-flex; align-items: center; min-height: 44px; }
  .nav-cta.btn { min-height: 44px; }
}
