/* ============================================================================
 * WIT'S END COMEDY CLUB — SHOW DETAIL PAGE STYLES
 * ----------------------------------------------------------------------------
 * Page-specific styles for /shows/<id> (single show page with Stripe ticket purchase).
 * Loaded alongside witsend.css.
 * ============================================================================ */

/* Tokens come from tokens.css + the tenant theme, both loaded first. */
/* clip, not hidden: `overflow-x:hidden` makes html and body scroll containers,
   and position:sticky then sticks to the document instead of the viewport —
   the Pay bar measured 277px below the fold on a phone (audit B2, 24 Sep). */
html,body{overflow-x:clip}
.nav-logo{font-family:var(--font-wordmark);font-size:1.4rem;color:var(--wordmark-ink);text-decoration:none;background:var(--wordmark-plate);padding:var(--wordmark-plate-pad);border-radius:3px;display:inline-block;line-height:1.05}
.nav-cta{padding:9px 22px;background:var(--red);color:var(--on-accent) !important;border-radius:4px}
.mob-menu{display:none;position:fixed;inset:0;z-index:99;background:var(--bg);padding:90px 32px 48px;flex-direction:column;overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain}

/* ────────────────────────────────────────────────────────────────────────────
 * DESKTOP SIDEBAR — LAYOUT DECISION (May 2026, v47+)
 * ────────────────────────────────────────────────────────────────────────────
 * The sidebar deliberately does NOT use position:sticky on desktop. Both
 * columns flow with the page as a single scroll surface (Pattern B).
 *
 * History: v46 and earlier used position:sticky + height:calc(100vh - 74px) +
 * overflow-y:auto on .show-sidebar. The "always-visible cart" pattern. It had
 * three real problems:
 *   1. Form fields cramped — name/email field sat below the fold of the
 *      sidebar's own internal scroll well, so users had to scroll INSIDE the
 *      panel to type their name. Felt broken; nothing else on the web does
 *      that.
 *   2. Success state trapped — the QR + share card + buttons after purchase
 *      (~600-700px of content) couldn't escape the 100vh height lock, and
 *      the panel's internal scrollTop persisted from the user's previous
 *      position so the QR ended up scrolled above the visible area.
 *   3. No room to grow — planned additions (donation box after qty select,
 *      richer urgency banners, group prompts) would make problems 1 and 2
 *      worse.
 *
 * Pattern A's pitch (pay button always visible) doesn't apply here. That
 * reassurance matters for multi-item carts where users forget what's in
 * the basket. We sell ONE show, ONE tier, qty 1-4. The user knows what
 * they're buying. The friction is real; the reassurance was theoretical.
 *
 * If we ever revert to Pattern A, the right way is a fixed-position bottom
 * action bar with just the pay button — NOT a height-locked sidebar. That
 * keeps the reassurance without the scroll well. But ship Pattern B first
 * and only revisit if real users tell us the pay button being below the
 * fold is a problem.
 *
 * Mobile already works correctly — .show-layout stacks at <=900px and the
 * sidebar's height/overflow rules don't apply to a stacked single column.
 * ──────────────────────────────────────────────────────────────────────── */
.show-sidebar{padding:20px 22px}

@keyframes urgency-pulse{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.5;transform:scale(1.3)}}

/* touch-action:manipulation stops iOS double-tap-to-zoom + the 300ms tap delay
   on these buttons only (pinch-zoom elsewhere still works). 44px target, no tap
   highlight / text-selection on rapid taps, snappy press feedback — built for
   older guests double-tapping the quantity. */
.qty-btn{width:44px;height:44px;border:1px solid rgba(var(--ink-rgb),.15);border-radius:50%;background:var(--state-hover);color:var(--text);font-size:1.3rem;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .12s,border-color .12s,transform .08s;line-height:1;touch-action:manipulation;-webkit-tap-highlight-color:transparent;user-select:none;-webkit-user-select:none}
.qty-btn:active{background:rgba(var(--tint-rgb),.2);transform:scale(.9)}
.qty-btn:disabled{opacity:.35;cursor:default;transform:none}
/* THE ORDER IS FROZEN WHILE PAY IS PROCESSING (audit F7, 10 Nov 2026). From
   the Pay tap until the attempt resolves the ticket cards, the stepper and the
   promo box cannot be acted on — the same signal as a sold-out tier (pointer
   events off, muted), the picked card left readable: it is what is being paid
   for. Pay reads "Processing..." beside them. show_detail.html _setPaying. */
body.is-paying .ticket-tier,body.is-paying .qty-btn,body.is-paying .promo-btn,body.is-paying .promo-input,body.is-paying .promo-toggle,body.is-paying .info-edit,body.is-paying .express-slot{pointer-events:none}
body.is-paying .ticket-tier:not(.selected):not(.sold-out):not(.unavailable),body.is-paying .promo-btn,body.is-paying .promo-input,body.is-paying .promo-toggle,body.is-paying .info-edit,body.is-paying .express-btns{opacity:.55}
/* The wallet row's own words stay readable: they are the one explanation of
   why a wallet tap did nothing while the card's attempt runs. */

.order-row.fee{color:var(--muted);font-size:.7rem}

/* FORM FIELDS — floating label feel */
.form-group{position:relative;margin-top:8px}
.form-label{display:block;font-size:.6rem;font-weight:600;letter-spacing:.15em;text-transform:uppercase;color:var(--muted);margin-bottom:3px}
/* The details row: the label, and Edit while the details are locked (D5.2).
   Edit's 44px hit area comes from padding cancelled by negative margin, so it
   does not make the row taller when it appears (UXP §11, and nothing moves). */
.info-head{display:flex;justify-content:space-between;align-items:baseline}
/* First and last side by side (S1-11): no taller than the one field was. */
.name-row{display:flex;gap:8px}
.name-col{flex:1 1 0;min-width:0}
/* Optional phone (S1-12): the same field as name and email; 16px so iOS
   doesn't zoom. The "(optional)" reads as a note, not a shout. */
.show-sidebar input[type=tel]{width:100%;padding:9px 11px;background:var(--surface-tint);border:1px solid var(--border-input);border-radius:6px;color:var(--text);font-family:var(--font-body);font-size:16px;outline:none;transition:all .2s}
.show-sidebar input[type=tel]:focus{border-color:var(--red);background:rgba(var(--red-rgb),0.04)}
.form-label-opt{text-transform:none;letter-spacing:0;font-weight:400}
.form-hint{font-size:.72rem;color:var(--muted);margin:4px 0 2px;line-height:1.4}
.info-edit{background:none;border:0;cursor:pointer;font:inherit;font-size:.78rem;font-weight:600;color:var(--accent-ink);padding:14px 10px;margin:-14px -10px -14px 0;line-height:1}
.info-edit[hidden]{display:none}
/* The wallet row (D5.5). A fixed 48px button band so Stripe's late render
   cannot move the fields below it; "or pay by card" divides it from the form. */
.express-slot{margin:2px 0 14px}
.express-slot[hidden]{display:none}
.express-btns{height:48px}
.express-slot .pay-error:empty{display:none}
.express-or{display:flex;align-items:center;gap:10px;margin-top:14px;font-size:.6rem;font-weight:600;letter-spacing:.15em;text-transform:uppercase;color:var(--muted)}
.express-or::before,.express-or::after{content:"";flex:1;height:1px;background:rgba(var(--ink-rgb),.12)}
.info-edit:focus-visible{outline:3px solid var(--accent-ink);outline-offset:2px;border-radius:3px}
input[type=text],input[type=email]{width:100%;padding:9px 11px;background:var(--surface-tint);border:1px solid rgba(var(--ink-rgb),.1);border-radius:6px;color:var(--text);font-family:var(--font-body);font-size:16px;outline:none;transition:all .2s}
input[type=text]:focus,input[type=email]:focus{border-color:var(--red);background:rgba(var(--red-rgb),.04)}
input[type=text],input[type=email]{min-height:44px}   /* 9px padding + 16px type measured 41 (audit 3.3) */
input[type=text]:focus-visible,input[type=email]:focus-visible{outline:2px solid var(--red);outline-offset:2px}   /* keyboard focus was a 1px recolour (audit 4.5) */
input[type=text]:valid:not(:placeholder-shown),input[type=email]:valid:not(:placeholder-shown){border-color:rgba(var(--green-rgb),.4)}
input::placeholder{color:var(--placeholder)}
input:read-only{opacity:.6;cursor:default}

/* Mail didn't send — this one has to be READ, not skimmed past, because the
   buyer needs to save the ticket off this screen. (§16) */
.success-email-note.warn{color:rgba(var(--ink-rgb),.75);background:rgba(var(--red-rgb),.1);
  border:1px solid rgba(var(--red-rgb),.32);border-radius:8px;padding:11px 13px;
  margin-top:12px;font-size:.74rem}
.success-email-note.warn strong{color:var(--text)}
.success-email-note .ic{width:13px;height:13px;vertical-align:-2px}
.success-show{text-align:center;margin:2px 0 14px}
/* The date line as directions (D9 step 6): the same words, underlined, with a
   44px tap band that does not change the line's height (UXP §11). */
.success-date-link{display:inline-block;padding:15px 4px;margin:-15px 0;color:inherit;text-decoration:underline;text-decoration-color:rgba(var(--ink-rgb),.35);text-underline-offset:3px}
.success-date-link:hover{color:var(--text)}
.success-date-link:focus-visible{outline:3px solid var(--accent-ink);outline-offset:-6px;border-radius:4px}
.success-more[hidden]{display:none}
.success-policy{margin-top:10px;text-align:center;font-size:.7rem;line-height:1.5;color:var(--muted)}
.success-receipt{margin-top:4px}
/* Itemised receipt lines (D9 step 7): the order summary's register, so the
   receipt reads as the same numbers the buyer approved. */
.success-line{padding:5px 0;border-bottom:0}
.success-line-label{font-size:.76rem;color:var(--muted)}
.success-line-value{font-size:.76rem;color:rgba(var(--ink-rgb),.8);font-variant-numeric:tabular-nums}
/* Add to calendar and Send to a friend: quiet peers under the ticket actions,
   never more full-width primaries (UXP §15). 44px targets (§11). */
.success-more{margin:10px 0 2px}
.success-more-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(0,1fr));gap:9px}
.success-more-btn{display:flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:0 12px;border:1px solid rgba(var(--ink-rgb),.14);border-radius:6px;background:rgba(var(--tint-rgb),.03);color:var(--text);font:inherit;font-size:.78rem;font-weight:600;text-decoration:none;cursor:pointer}
.success-more-btn:hover{background:rgba(var(--tint-rgb),.07)}
.success-more-btn:focus-visible,.success-more-alt:focus-visible{outline:3px solid var(--accent-ink);outline-offset:2px}
.success-more-btn .ic{width:15px;height:15px}
.success-more-alt{display:flex;align-items:center;justify-content:center;min-height:44px;font-size:.7rem;color:var(--muted);text-decoration:underline;text-underline-offset:2px}
.share-section{margin-top:16px;padding-top:16px;border-top:1px solid rgba(var(--ink-rgb),.08)}
.share-label{font-size:var(--type-label-size);font-weight:700;letter-spacing:.2em;text-transform:uppercase;color:var(--muted);margin-bottom:10px}
.share-card-wrap{position:relative;margin:0 auto 12px;width:100%;max-width:280px}
.share-card-canvas{width:100%;border-radius:10px;display:block;box-shadow:0 8px 32px rgba(var(--shadow-rgb),.5)}
.share-card-overlay{position:absolute;inset:0;border-radius:10px;background:rgba(var(--shadow-rgb),0);transition:background .2s;display:flex;align-items:center;justify-content:center;opacity:0;transition:opacity .2s}
.share-card-wrap:hover .share-card-overlay{opacity:1;background:rgba(var(--shadow-rgb),.35)}
.share-card-overlay span{font-size:.76rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--text);background:rgba(var(--shadow-rgb),.6);padding:6px 14px;border-radius:20px}
.share-hint{font-size:.65rem;color:var(--muted);line-height:1.5;margin-top:8px;text-align:center}
/* ── POST-PURCHASE ACTIONS ────────────────────────────────────────────────────
   NOTE: this file loads AFTER witsend.css, so these definitions win. They used
   to exist in BOTH files with different values, which is why the pair rendered
   mismatched (Bebas caps next to DM Sans sentence case). show_detail.css is now
   the single source of truth for the success screen — do not re-add copies to
   witsend.css.

   A matched pair: identical height, radius, type and icon size, so the only
   difference between them is emphasis. One primary, one peer. (UX_PRINCIPLES
   §15) */
.success-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-bottom:2px}
.btn-view-ticket,
.btn-save-pdf{
  display:flex;align-items:center;justify-content:center;gap:8px;
  height:48px;padding:0 14px;
  border-radius:8px;border:1px solid transparent;
  font-family:var(--font-big);font-size:1.02rem;letter-spacing:.05em;
  text-align:center;text-decoration:none;white-space:nowrap;
  cursor:pointer;transition:background .18s,color .18s,border-color .18s;
}
.btn-view-ticket .ic,
.btn-save-pdf .ic{width:17px;height:17px;flex:0 0 auto}
.btn-view-ticket{background:var(--red);color:var(--on-accent);box-shadow:0 4px 14px rgba(var(--red-rgb),.3)}
.btn-view-ticket:hover{background:var(--red-deep)}
.btn-save-pdf{background:rgba(var(--tint-rgb),.07);color:rgba(var(--ink-rgb),.78);
  border-color:rgba(var(--ink-rgb),.13)}
.btn-save-pdf:hover{background:rgba(var(--tint-rgb),.13);color:var(--text);
  border-color:rgba(var(--ink-rgb),.24)}

/* Add to Apple Wallet. Apple's badge has a fixed aspect ratio, so it is NEVER
   full-bleed — it sits at its natural width, centred. The text fallback matches
   that shape so the layout does not jump when the real artwork is dropped in.
   Sizing it to the content also keeps it visually secondary to our own actions,
   which Apple's guidelines require. (§17) */
#walletSlot{display:flex;justify-content:center;margin:0 0 9px}
.wallet-badge{
  display:inline-flex;align-items:center;justify-content:center;
  width:auto;margin:0;padding:0;
  background:none;border:0;text-decoration:none;line-height:0;
}
.wallet-badge img{height:48px;width:auto;display:block;filter:none}
.wallet-badge .wallet-badge-text{display:none}
/* Text fallback, shown only until Apple's licensed SVG is dropped in. It is NOT
   the badge and must not imitate one — no black pill, no Wallet mark — so it
   takes OUR button language instead and matches the action row beneath it
   exactly. A narrow outlined box floating between the QR and the buttons read
   as an orphan; same width and height as the row below reads as a deliberate
   third action. */
.wallet-badge.is-text{
  width:100%;height:48px;padding:0 18px;line-height:1;border-radius:8px;
  border:1px solid rgba(var(--ink-rgb),.16);background:var(--surface-tint);
  transition:background .18s,border-color .18s;
}
.wallet-badge.is-text .wallet-badge-text{
  display:inline-flex;align-items:center;
  font-family:var(--font-body);font-size:.88rem;font-weight:600;
  letter-spacing:.01em;color:rgba(var(--ink-rgb),.8);
}
.wallet-badge.is-text:hover{background:rgba(var(--tint-rgb),.07);
  border-color:rgba(var(--ink-rgb),.36)}
.wallet-badge.is-text:hover .wallet-badge-text{color:var(--text)}

/* Sticky pay bar — keeps the single primary action in a fixed, predictable
   place while the Stripe tabs element changes height. (§15; §1) */
.pay-actions{
  position:sticky;bottom:0;z-index:6;margin-top:10px;
  padding-bottom:calc(10px + env(safe-area-inset-bottom,0px));
  /* Fades THE PAGE out under the sticky bar, so it has to be the page colour.
     This was rgba(12,8,7,…) — a warm near-black matching no token at all, which
     painted an opaque dark band across a light club's checkout, on the screen
     that takes money. */
  background:linear-gradient(to bottom,rgba(var(--bg-rgb),0) 0%,
             rgba(var(--bg-rgb),.94) 16%,rgba(var(--bg-rgb),1) 42%,
             rgba(var(--bg-rgb),1) 100%);
}
.pay-charge-note{font-size:.72rem;color:var(--muted);text-align:center;
  margin-top:8px;line-height:1.5}
.pay-consent{font-size:.7rem;color:var(--muted);line-height:1.5;
  margin-top:6px;text-align:center}
.pay-consent a{color:rgba(var(--ink-rgb),.7);text-decoration:underline}

/* Share row — pills, deliberately a different language from the ticket
   actions above so the two groups never blur together. */
.share-actions{display:flex;gap:7px;justify-content:center;flex-wrap:wrap;margin-top:4px}
.share-actions .share-btn{flex:0 1 auto}
.share-primary{width:100%;max-width:280px;margin:0 auto 10px;min-height:42px}
.share-btn .ic{width:14px;height:14px;flex:0 0 auto}


/* auto-fit: as many columns as fit at >=260px, then wrap. Never overflows the
   container, stretches to fill on wide screens (3-up on desktop, 1 on phone). */
.also-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:14px}
/* min-width:0 lets the card shrink so the nowrap name/credits ellipsize inside
   the track instead of forcing the column wider than the screen. */
.also-card{min-width:0;display:flex;gap:14px;align-items:flex-start;padding:16px;background:var(--surface);border:1px solid var(--border);border-radius:8px;text-decoration:none;color:inherit;transition:all .22s;cursor:pointer}

@media(max-width:900px){
  nav{padding:14px 20px}.nav-links{display:none}.nav-ham{display:flex}
  .show-layout{grid-template-columns:1fr;padding-top:64px;max-width:100vw}
  .show-main{padding:28px 20px;border-right:none;border-bottom:1px solid var(--border)}
  .show-sidebar{position:static;height:auto;padding:18px 16px}
  .also-section{padding:32px 20px 48px;max-width:100vw;overflow-x:hidden}
  .also-grid{grid-template-columns:1fr;gap:10px}
  .also-title{font-size:1.6rem;margin-bottom:16px}
  /* Portrait 4:5 with the face anchored high so mobile stops cropping headshots
     through the eyes (16:9 sliced the top/bottom). object-fit:cover from base. */
  .show-headshot,.show-headshot-ph{max-width:100%;aspect-ratio:4/5;object-position:center 28%}
}

/* DESKTOP-ONLY: stop the tall portrait headshot from pushing the comedian's
   name + bio below the fold (you shouldn't have to scroll to see who's
   performing). Mobile (<=900px, stacked single column) is intentionally
   untouched — it already works well. */
@media(min-width:901px) and (max-width:1099px){
  /* Narrower desktops: keep it stacked but shrink the photo so the name clears. */
  .show-headshot,.show-headshot-ph{max-width:300px}
}
@media(min-width:1100px){
  /* Roomy desktops: float the photo so the name + bio sit BESIDE it, using the
     otherwise-empty horizontal space in this wide column. */
  .show-headshot,.show-headshot-ph{float:left;width:330px;max-width:34%;margin:4px 40px 24px 0}
  /* These blocks always start full-width below the photo, never in the gutter. */
  .social-icons-row,.show-rules{clear:left}
}

/* House Rules is secondary fine print. Its full-width boxed border read as
   stretched/unintentional across the wide desktop column — replace it with a
   quiet top-divider section. Mobile (<=900px) keeps its contained box, which
   looks fine on a narrow screen. */
@media(min-width:901px){
  .show-rules{border:none;border-top:1px solid var(--border);border-radius:0;padding:26px 0 0;margin-top:4px}
}
/* HOUSE RULES, ICON PER RULE (P-05). Each rule is icon + text on a flex row;
   the dash bullet from witsend.css is replaced by the icon. The icon is picked
   from the rule's own words in show_detail.html (ruleIcon). */
.show-rules li{display:flex;align-items:flex-start;gap:9px;padding-left:0}
.show-rules li::before{content:none}
.show-rules .rule-ic{width:15px;height:15px;flex:0 0 auto;margin-top:2px;color:var(--accent-ink);opacity:.85}
.show-rules li span{flex:1 1 auto;min-width:0}
@media(min-width:1100px){
  /* Short rules flow into two columns so the block reads as deliberate rather
     than a long lonely stack down the left edge of a wide column. The icon row
     must not split across the gap. */
  .show-rules ul{column-count:2;column-gap:48px}
  .show-rules li{break-inside:avoid;margin-bottom:8px}
}

/* Compact share block: one prominent native-share button + two utilities */
.share-primary{width:100%;padding:13px 16px;font-size:.86rem;border-radius:12px;gap:8px;margin-top:2px}
.share-primary .ic{width:1.1em;height:1.1em}
.share-actions{display:flex;gap:7px;margin-top:7px}
.share-actions .share-btn{flex:1;border-radius:12px;padding:10px}

/* Sold-out ticket tier: stays readable (not faded to 35%), price struck through,
   clear "Sold Out" badge with a ban icon instead of tiny grey text.

   COMPACT, BECAUSE IT CANNOT BE ACTED ON. A sold-out tier held exactly as much
   of the screen as a buyable one, and on a four-tier show that is a full tile of
   prime space spent on the one row nobody can tap. It keeps its NAME and its
   struck PRICE — the buyer should still see what the room offers and what the
   range is — and loses only the blurb, which describes a thing they cannot buy.

   Do not fade it further. It is also where a per-tier "notify me" belongs when
   that is built (research/06_THE_PURCHASE.md §5 N6): buyers look for the notify
   offer in the same place as the unavailable item, not elsewhere on the page. */
.ticket-tier.sold-out{opacity:1;cursor:not-allowed;pointer-events:none;background:rgba(var(--tint-rgb),.02);border-color:var(--border);padding-top:7px;padding-bottom:7px}
.ticket-tier.sold-out .tier-desc{display:none}
.ticket-tier.sold-out .tier-price{font-size:1.05rem}
.ticket-tier.sold-out .tier-name{color:var(--muted)}
.ticket-tier.sold-out .tier-desc{color:var(--muted)}
.ticket-tier.sold-out .tier-price{color:var(--muted);text-decoration:line-through;text-decoration-thickness:2px}
.ticket-tier.sold-out .tier-check{display:none}
.sold-badge{display:inline-flex;align-items:center;gap:5px;padding:3px 11px;border-radius:20px;background:rgba(var(--tint-rgb),.08);color:var(--muted);border:1px solid rgba(var(--ink-rgb),.14);font-size:.6rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase}
.sold-badge .ic{width:1.1em;height:1.1em}

/* Low-stock note, inline to the left of the price (mirrors the sold-out badge
   placement so all tier tiles share one height). Amber = tight, red = critical. */
/* EARLY BIRD SAVING (Liam, 2 Nov 2026): the early price is the big number; the
   regular price (same seats after the cutoff) sits under it struck through, with
   a small "Save $X" chip in the brand accent. An honest anchor shown at the
   point of choice (research/06_THE_PURCHASE.md §4.4 "price at discovery",
   "honest scarcity") — never a countdown or urgency (no pressure timers). The
   column right-aligns under the price so the tile's right edge stays clean. */
.tier-price-col{display:flex;flex-direction:column;align-items:flex-end;gap:2px;line-height:1.1}
/* The struck base-tier line ("General Admission $X"). Smaller than the live
   price (Liam, 2 Nov 2026): it is the price the buyer is NOT paying, so it reads
   as a quiet anchor, not a competing number. */
.tier-regular{font-size:.64rem;font-weight:600;color:var(--muted);text-decoration:line-through;text-decoration-thickness:1.3px}
.tier-save{margin-top:4px;font-size:.56rem;font-weight:800;letter-spacing:.05em;text-transform:uppercase;
  color:var(--red);background:rgba(var(--red-rgb),.12);padding:2px 8px;border-radius:20px;white-space:nowrap}
/* "Early bird price ends <date>" under the tier name — secondary info, so it is
   small and muted (Liam, 2 Nov 2026: the date isn't the headline). */
.tier-eb-ends{margin-top:4px;font-size:.6rem;font-weight:500;color:var(--muted);line-height:1.3}
.tier-eb-ends.tier-eb-done{color:var(--muted);font-weight:500}
.tier-low{font-size:.62rem;font-weight:700;display:inline-flex;align-items:center;gap:3px;white-space:nowrap;color:var(--muted)}
.tier-low .ic{width:1.05em;height:1.05em}
.tier-low.tight{color:var(--amber)}
.tier-low.critical{color:var(--danger)}

/* ── MOBILE STICKY BUY BAR ────────────────────────────────────────────────────
   Hidden by default and on desktop. JS adds .show while the ticket widget is
   off-screen; CSS only reveals it on mobile. Keeps the buy action one tap away
   no matter how far the bio/rules push the widget down the page. */
.buy-bar{display:none}
/* Nav clearance tracks the MEASURED nav height (--nav-h, set by the page).
   80px was a guess at this club's nav; a tenant with a taller logo would
   scroll its buy panel behind its own header. Falls back to 80px when the
   variable is missing. */
#showSidebar{scroll-margin-top:calc(var(--nav-h, 68px) + 12px)}
/* D35: the layout reserves the MEASURED nav, not witsend.css's 74px. The nav
   measures 81px at 1440 since the fold (D31), which left the step bar 7px
   under the header on first paint; a taller club logo would bury more. */
@media(min-width:901px){.show-layout{padding-top:var(--nav-h, 74px)}}
@media(max-width:900px){
  .buy-bar.show{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:90;
    align-items:center;justify-content:space-between;gap:12px;width:100%;
    padding:13px 18px calc(13px + env(safe-area-inset-bottom));
    border:none;border-top:1px solid rgba(var(--ink-rgb),.1);
    background:var(--bar-bg);color:var(--text);font-family:var(--font-body);
    cursor:pointer;box-shadow:0 -6px 24px rgba(var(--shadow-rgb),.45);
    animation:buyBarUp .28s cubic-bezier(.22,1,.36,1)}
  .buy-bar-price{font-family:var(--font-big);font-size:1.5rem;letter-spacing:.02em;color:var(--text)}
  .buy-bar-cta{display:inline-flex;align-items:center;gap:6px;background:var(--red);
    color:var(--on-accent);font-size:.82rem;font-weight:700;letter-spacing:.06em;
    text-transform:uppercase;padding:11px 22px;border-radius:6px;
    box-shadow:0 4px 16px rgba(var(--red-rgb),.42)}
}
@keyframes buyBarUp{from{transform:translateY(100%)}to{transform:translateY(0)}}

/* ── POST-PURCHASE, DESKTOP DENSITY ──────────────────────────────────────────
   The success block was built at phone scale and then shown inside a ~400px
   desktop sidebar, so everything read one size too big — 48px buttons with
   1rem Bebas caps in a narrow column look like a mobile screenshot pasted onto
   a desktop. Same hierarchy, tighter metrics. (DATA_VIEWS_DESIGN_STANDARDS:
   compact density on desktop; UX_PRINCIPLES §15) */
@media(min-width:901px){
  .success-hero{padding:14px 0 11px;margin-bottom:12px}
  .success-title{font-size:1.8rem}
  .success-check{width:42px;height:42px;margin-bottom:9px;font-size:1.15rem}
  .success-detail-row{padding:7px 0}
  .success-detail-value{font-size:.78rem}

  .success-qr-wrap{padding:12px 0 4px}
  .success-qr{width:118px;height:118px;padding:6px;margin-bottom:7px}
  .success-code{font-size:.92rem;letter-spacing:.16em}
  .success-code-sub{margin-bottom:10px}

  #walletSlot{margin-bottom:9px}
  .wallet-badge img{height:38px}
  .wallet-badge.is-text{height:38px;padding:0 16px}
  .wallet-badge.is-text .wallet-badge-text{font-size:.78rem}

  .success-actions{gap:7px}
  .btn-view-ticket,.btn-save-pdf{height:38px;font-size:.86rem;letter-spacing:.045em;gap:6px}
  .btn-view-ticket .ic,.btn-save-pdf .ic{width:14px;height:14px}
  .btn-view-ticket{box-shadow:0 3px 10px rgba(var(--red-rgb),.24)}

  .success-email-note{font-size:.68rem;padding:8px 0 0}
  .success-email-note.warn{padding:9px 11px;margin-top:9px;font-size:.7rem}

  .share-section{margin-top:20px;padding-top:16px}
  .share-card-wrap{max-width:232px;margin-bottom:10px}
  .share-primary{max-width:232px;min-height:36px;margin-bottom:8px}
  .share-btn{padding:7px 12px;font-size:.7rem;gap:4px;border-radius:16px}
  .share-btn .ic{width:12px;height:12px}
  .share-actions{gap:6px}
}

/* Warm-mounted payment block.
   The Stripe Payment Element used to be mounted inside display:none until the
   buyer pressed Continue. An iframe inside a display:none subtree is never laid
   out or painted, so Stripe could not measure its container and deferred the
   real render until reveal — which is why the card form took about a second to
   appear even when the intent had been preloaded and the card was already saved.
   height:0 + overflow:hidden keeps it in the render tree at the CORRECT
   container width (so revealing it causes no re-layout) while taking no space. */
#paymentWrap.pay-warm{
  height:0;
  overflow:hidden;
  opacity:0;
  pointer-events:none;
}

/* The QR is generated at a fixed pixel size by qrcodejs, but .success-qr is
   sized by CSS and shrinks on desktop — so the canvas overflowed its box and
   printed over the line beneath it. Scale whatever it renders into the box. */
.success-qr canvas,
.success-qr img{
  width:100% !important;
  height:100% !important;
  display:block;
}

/* D9 step 9: every target on the success screen at 44px, phone and desktop
   (UXP §11, §15; audit 5.2, 5.3). DATA_VIEWS §0.3 keeps compact density for
   the admin: the customer site is comfortable, so the desktop block keeps its
   compact type and loses nothing but the short targets. Labels at the type
   scale's own label size (10px), never 9. The Share button takes the club's
   accent (Liam, 26 Sep): one accent, not a borrowed gradient. */
#ticketSuccess .share-btn,
#ticketSuccess .btn-view-ticket,
#ticketSuccess .btn-save-pdf{min-height:44px}
#ticketSuccess .success-code-sub{font-size:var(--type-label-size)}
#shareSection .share-dl{background:var(--red);color:var(--on-accent)}
#shareSection .share-dl:hover{background:var(--red-deep);opacity:1}


/* Autofill keeps the club's colours. Safari and Chrome paint autofilled
   fields with their own yellow, which a background rule cannot override; an
   inset shadow in the field's own colour (its tint over the page) and the
   theme's ink can. Seen olive-on-charcoal on Liam's iPhone, 29 Sep. */
.show-sidebar input:-webkit-autofill,
.show-sidebar input:-webkit-autofill:hover,
.show-sidebar input:-webkit-autofill:focus{
  -webkit-text-fill-color:var(--text);
  caret-color:var(--text);
  box-shadow:inset 0 0 0 1000px var(--surface-tint),inset 0 0 0 1000px var(--bg);
  transition:background-color 100000s 0s;
}


/* U1: what a buyer who has already been charged reads, in place of the parts
   of the form that could start a second payment. */
.charged-notice{margin:0 0 14px;padding:12px 14px;border:1px solid rgba(var(--ink-rgb),.14);
  border-radius:6px;background:var(--surface-tint);color:var(--text);font-size:.82rem;line-height:1.55}
.charged-notice[hidden]{display:none}

/* N-01: one date's own note ("This is a special soft opening"). Reads as part
   of the page, not an alert: the accent rule marks it as this night's, and the
   text is the full ink colour so it is not lost in the muted blurb below.
   flow-root: beside the floated photo on desktop, the rule otherwise drew
   under the photo and vanished. */
.show-date-note{display:flow-root;margin:0 0 20px;padding:2px 0 2px 14px;border-left:3px solid var(--red);
  color:var(--text);font-size:1rem;font-weight:500;line-height:1.6;max-width:62ch}
/* F13 (4): while the buyer's own attempt is in the air the bar says what is
   happening ("Processing payment...") — words, not a call to buy, so no accent pill. */
@media(max-width:900px){
  .buy-bar.busy{justify-content:center}
  .buy-bar.busy .buy-bar-price{display:none}
  .buy-bar.busy .buy-bar-cta{background:none;box-shadow:none;color:var(--text);padding:11px 0;
    text-transform:none;letter-spacing:0;font-weight:600;font-size:.92rem}
}
