/* ============================================================================
 * CORE — shared, tenant-agnostic components
 * ----------------------------------------------------------------------------
 * The reusable half of the design system: reset, navigation, footer, utilities,
 * page-header pattern, buttons, badges, forms, social links, animations.
 *
 * NOTHING here is tenant-specific, and nothing here should be. Every
 * colour and font comes from tokens.css, so a second club re-brands by
 * overriding tokens (STYLE_REFACTOR_PLAN §4) without editing a single rule in
 * this file. That is the whole point of the split.
 *
 * Page compositions — home, shows, show detail, calendar, gallery, comedian,
 * groups, passed comics, static pages, ticket — stay in the page stylesheet,
 * which
 * loads after this.
 *
 * Extracted from witsend.css sections 02-11, Phase 4 of the style refactor.
 * ============================================================================ */

/* ── 02. RESET + BASE ────────────────────────────────────────────────────── */
/* touch-action: manipulation on EVERY element of EVERY customer page (Q-06).
   A quick double tap never zooms the page; scrolling and pinch-zoom are
   untouched. It has to be on everything, not on the buttons alone: a DISABLED
   button (the ticket quantity + at its limit) takes no touch, so the tap lands
   on whatever is behind it, and that element decides. Guard:
   tests/test_q06_no_double_tap_zoom.py. */
* { box-sizing: border-box; margin: 0; padding: 0; touch-action: manipulation; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

/* Tel: links never get default link styling — they appear as plain text */
a[href^="tel"] { color: inherit; text-decoration: none; }


/* ── 03. NAVIGATION + MOBILE MENU ────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 48px;
  /* Q-03 (8 Nov): every club's --nav-bg is a 95 % colour, and 5 % of a bold
     light title or step tab scrolling under the bar was still legible beside
     the logo. The page colour is painted UNDER the nav colour, so the bar is
     solid on every page without touching a single generated theme. Home and
     Calendar below override this with their blurred variants, as designed. */
  background: linear-gradient(var(--nav-bg), var(--nav-bg)), var(--bg);
  border-bottom: 1px solid var(--border);
}

/* home page nav: stronger blur effect */
.home-page nav {
  background: var(--nav-bg-home);
  backdrop-filter: blur(12px);
}

/* calendar page nav: stronger blur effect */
.calendar-page nav {
  background: var(--nav-bg-calendar);
  backdrop-filter: blur(12px);
}

/* passed_comics page nav: blur effect */
.passed-comics-page nav {
  backdrop-filter: blur(8px);
}

.nav-logo {
  font-family: var(--font-wordmark);
  font-size: 1.4rem;
  color: var(--wordmark-ink);
  text-decoration: none;
  letter-spacing: .05em;
  /* Both default to no-ops (transparent / 0) so a club that declares neither
     renders exactly as it did. A LIGHT club needs the band: its cream ink on
     its own pale nav measures 1.10:1 — see tenant.py, laughbarn. */
  background: var(--wordmark-plate);
  padding: var(--wordmark-plate-pad);
  border-radius: 3px;
  /* The band is a rectangle around the words, not a line box that collapses. */
  display: inline-block;
  line-height: 1.05;
}
.nav-logo span { color: var(--wordmark-accent); }
/* A 25px-tall logo is a 25px target. Grow the target, not the lockup. */
.nav-logo { position: relative; }
.nav-logo::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 44px; transform: translateY(-50%); }
/* AN UPLOADED LOGO IS SIZED IN PIXELS, not at the text's 1em (25 Sep 2026).
   At 1em the nav's 1.4rem made every club's image mark 22px tall: Cobblestone's
   hand-lettered two-line logo is drawn for 28px and up (its designer's test
   strip starts at 24), and the Laugh Shack's square mark read as a dot. The
   text lockup is untouched; only an <img class="brand-mark"> takes this. */
.nav-logo .brand-mark { height: 28px; max-width: min(60vw, 240px); vertical-align: middle; }
@media (min-width: 768px) { .nav-logo .brand-mark { height: 36px; max-width: 320px; } }

/* THE HEADER TAGLINE (P-09), a club setting rendered only when set. It sits
   beside the lockup in the body face and gives the free space to its own right
   margin, so the links (or the menu button) stay packed at the far edge. It
   may shrink and wrap to two short lines; the lockup and the button never
   shrink, so it cannot push into either. A long line folds the nav links
   first (the fold script measures it). */
/* JAMESON'S MOCK (Cobblestone punch list, 3 Nov 2026): capitals, extra-bold,
   near-white, no rule. He set it in Montserrat Extra-Bold #f2f2f2 "or whatever
   is in the theme", so it is the platform body face at 800 in --text: a
   light-themed club gets dark text, not his white. */
.nav-tagline {
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  line-height: 1.2;
  color: var(--text);
  margin-left: 22px;
  margin-right: auto;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 34ch;
  align-self: center;
}
@media (max-width: 768px) {
  /* Two lines of this are shorter than the 1.4rem lockup, so the bar never grows. */
  .nav-tagline { font-size: .6rem; letter-spacing: .04em; line-height: 1.15; margin-left: 12px; max-width: 24ch; }
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
  flex-shrink: 0;   /* the tagline wraps before the links are squeezed */
}
.nav-links a {
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  /* 16px of text was the whole target; a tablet in landscape gets this nav (audit N3) */
  transition: color .2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); }
/* The text links only. `.nav-links a` outranks `.nav-cta`, so a padding here
   replaced the button's own 9px 22px and drew a tall, clipped GET TICKETS
   (Liam's screenshot, 25 Sep). */
.nav-links a:not(.nav-cta) { padding: 14px 0; }
/* A label never breaks: a nav that does not fit folds whole into the menu
   button instead (core/render.py _NAV_FOLD, queue D31; the fold rules sit
   after .nav-ham below). */
.nav-links a { white-space: nowrap; }

.nav-cta {
  padding: 9px 22px;
  background: var(--red);
  color:var(--on-accent) !important;
  border-radius: 4px;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .2s;
}
.nav-cta:hover { background: var(--red-deep); }

.nav-ham {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  /* reset browser <button> defaults so it looks identical to the old div —
     no gray box, no border, inherit text color (bars are #fff below) */
  background: transparent;
  border: 0;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
  position: relative;               /* anchors the phantom hit area below */
}
/* A nav measured too wide for its links folds into the button (queue D31). */
nav.nav-fold .nav-links { display: none; }
nav.nav-fold .nav-ham { display: flex; }
/* THE BURGER IS THE TALLEST THING IN THE NAV, so its box IS the header's
   height on a phone — and that is why the hit area is a phantom rather than a
   44×44 button.

   home.css used to carry its own copy of this rule at a literal 44×44 while
   this one was 30×23, so the header measured 73px on the home page and 53px on
   every other page and visibly shrank on the first navigation away from home.
   Measured at 390px. Sizing the button up to 44 would have fixed that by
   making all nine pages the TALLER number — and taken ~20px of clearance away
   from every page's first row of content, which on the gallery grid meant the
   top row of photographs touching the header.

   So the ink stays 30×23 and the TOUCH TARGET is grown to 44×44 with a
   pseudo-element that occupies no layout. Same trick as `.scroll-dot::before`
   further down this file, and the same reason: Apple's 44×44 minimum
   (UX_PRINCIPLES §11, "non-negotiable") is a requirement about where a finger
   may land, not about how big the glyph is.

   The nav is `align-items:center`, so its height is now `max(lockup, burger) +
   padding` with the burger at 23px — meaning a club whose wordmark is taller
   than that sets its own header height, equally, on every page. A club that
   declares `wordmark_plate` gets .14em/.42em of plate (core/theme.py), which
   measures 30px and is the tallest element in its nav; its header is 4px
   taller than Wit's End's on all nine pages rather than on one of them. */
.nav-ham::before {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 44px; height: 44px;
  transform: translate(-50%, -50%);
}
.nav-ham span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
}

.mob-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--bg);
  padding: 90px 32px 48px;
  flex-direction: column;
  overflow-y: auto;                 /* the menu itself scrolls when items overflow */
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;     /* don't chain the scroll to the page behind it */
}
.mob-menu.open { display: flex; }
.mob-menu a {
  font-family: var(--font-big);
  font-size: 2.2rem;
  color: var(--text);
  text-decoration: none;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
/* Get Tickets CTA in the mobile menu — a filled red button, not red text.
   The home page carried its own `.mob-cta` with the same declarations in
   home.css; it now uses this class like every other page, so the menu is one
   component with one definition. */
.mob-menu a.mob-get-tickets {
  background: var(--red);
  color:var(--on-accent);
  padding: 18px 24px;
  border-bottom: 0;
  border-radius: 4px;
  text-align: center;
  margin-bottom: 14px;
  letter-spacing: .04em;
  transition: background .2s;
}
.mob-menu a.mob-get-tickets:hover,
.mob-menu a.mob-get-tickets:active { background: var(--red-deep); }


/* ── 04. FOOTER ──────────────────────────────────────────────────────────── */
/* ONE footer (Q-05, 8 Nov 2026). templates/partials/footer.html is the compact
   footer on every public page; home keeps its columns and shares the legal row
   (partials/footer_legal.html). Every footer rule lives HERE: eleven hand-copied
   footers and six per-page `footer{}` rules had drifted into three paddings, two
   link colours and a 105px height difference between two pages on a phone.
   tests/test_public_footer_is_shared.py + test_public_footer_in_browser.py. */
footer {
  background: var(--chrome-solid);
  border-top: 1px solid var(--border);
  padding: 32px 20px 28px;
  text-align: center;
  color: var(--muted);
}
@media (min-width: 768px) { footer { padding: 40px 48px 32px; } }

/* A row is a centred, wrapping line of items. An item never breaks inside
   itself (the address is one piece, not "3320 Rivers Ave, North / Charleston
   SC"); when a row is too narrow the next ITEM drops to the next line.
   Separators are drawn, not typed, and only where a row cannot wrap, so no
   line ever starts or ends with a stray dot. */
.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  font-size: .74rem;
  line-height: 1.4;
  color: var(--muted);
}
.footer-row > * { white-space: nowrap; }
.footer-row a { color: inherit; text-decoration: none; transition: color .2s; }
.footer-row a:hover { color: var(--text); }
/* Links are 44px targets (UXP §11); the height comes from the item, not from a
   tall line box. 15px links in a 45px line failed the 25 Sep audit, and the 45px
   line then turned every wrapped row into a 45px gap. */
.footer-links > * { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0 10px; }
/* The credit's link is the target, not the words before it: 44px tall, and a
   space kept between "Built by" and the name (flex drops the text node's). */
.footer-powered a { color: var(--accent-ink); display: inline-flex; align-items: center; min-height: 44px; margin-left: .3em; }
.footer-powered a:hover { color: var(--accent-ink); text-decoration: underline; }

/* The meta line — copyright · address · contact. Three short lines on a phone
   (the contact is a 44px target); one line with dots from 768px, where it fits. */
.footer-meta { flex-direction: column; gap: 2px; }
/* The contact is the club's own text (a phone, or a support email of any
   length): the one footer item that may break inside itself, because a long
   email kept on one line widened the phone page by 14px (the 8 Nov full suite,
   tests/test_home_never_scrolls_sideways.py). It breaks; it never widens. */
.footer-meta a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  white-space: normal; overflow-wrap: anywhere; max-width: 100%; }
@media (min-width: 768px) {
  .footer-meta { flex-direction: row; gap: 0; }
  .footer-meta > * + *::before { content: "·"; margin: 0 10px; color: var(--muted); }
}

/* Site links and the legal row: two stacked rows on narrow screens, one line
   from 900px (≈700px of items, so it never wraps there — the only place dots
   are drawn between links). */
.footer-rowgroup { display: flex; flex-direction: column; align-items: center; margin-top: 6px; }
/* Side by side, the two rows are flex items: their own `margin: 0 auto` would
   push them apart to the band's edges, so it is dropped here. */
.footer-rowgroup > .footer-row { margin: 0; max-width: none; }
@media (min-width: 900px) {
  .footer-rowgroup { flex-direction: row; justify-content: center; flex-wrap: wrap; }
  .footer-rowgroup .footer-row > * + *::before,
  .footer-rowgroup .footer-legal > :first-child::before { content: "·"; margin-right: 10px; color: var(--muted); }
}

/* Home's expanded footer: brand + address, page columns, Follow Us. Four
   columns on a desktop, two from 900px down with the brand across both — never
   ONE column, which made the footer 1151px tall on a phone. */
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: left;
}
/* A column may shrink below its longest word (25 Sep 2026): a long email or
   street breaks instead of widening the page on a phone. */
.footer-inner > * { min-width: 0; }
@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr 1fr; gap: 20px 16px; text-align: center; }
  .footer-inner > :first-child { grid-column: 1 / -1; }
}
/* Under 600px three columns would break "Corporate Events" inside itself. */
@media (max-width: 600px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
.footer-brand {
  font-family: var(--font-wordmark);
  font-size: 1.8rem;
  color: var(--wordmark-ink);
  margin-bottom: 8px;
}
.footer-brand span { color: var(--wordmark-accent); }
.footer-addr {
  font-size: .82rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.8;
  overflow-wrap: anywhere;
}
/* The contact reads as a line of the address and is still a 44px target: the
   box grows into the address's own leading, which nothing else can be tapped in. */
.footer-addr a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(var(--ink-rgb),.35);
  text-underline-offset: 3px;
  display: inline-block;
  padding: 10px 8px;
  margin: -10px -8px;
}
.footer-col h4 {
  font-size: .65rem;
  font-weight: 500;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 8px;
}
.footer-col a {
  display: block;
  font-size: .82rem;
  font-weight: 300;
  color: var(--muted);
  text-decoration: none;
  padding: 14px 0;                 /* 17px text + 28 = a 45px target (audit N2) */
  transition: color .2s;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  max-width: 1200px;
  margin: 24px auto 0;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
@media (min-width: 900px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}
/* Apple's licence line under the show page's footer (UXP §17): the same chrome,
   so it reads as the band's last line, not a page of its own. */
.footer-legal-apple {
  background: var(--chrome-solid);
  margin-top: -12px;
  padding: 0 max(16px, calc(50% - 360px)) 24px;
  font-size: .62rem;
  line-height: 1.5;
  color: var(--muted);
  text-align: center;
}


/* ── 05. UTILITY CLASSES ─────────────────────────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
}
.container-wide { max-width: 1200px; margin: 0 auto; }
.container-narrow { max-width: 760px; margin: 0 auto; }

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

.loading {
  text-align: center;
  padding: 80px;
  color: var(--text-faint);
  font-size: .85rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}


/* ── 06. PAGE HEADER PATTERN ─────────────────────────────────────────────── */
/* Used on shows, gallery, calendar, passed_comics, static_page */
.page-header {
  padding: 88px 48px 22px;   /* compact, consistent header across all listing pages */
  border-bottom: 1px solid var(--border);
}

/* ── Bare header ──────────────────────────────────────────────────────────
   The visible title block is dropped on the listing/content pages: it restated
   what the nav already says and pushed the actual content (filters, shows,
   photos) down the screen.

   The <h1> is NOT deleted — it's kept in the DOM and visually hidden. A public
   marketing page with no heading is an SEO and screen-reader regression, and
   costs nothing to avoid. The top padding stays because the nav is fixed and
   the content still has to clear it. */
.page-header.is-bare {
  padding: 78px 48px 0;
  border-bottom: none;
}
.page-header.is-bare .page-eyebrow,
.page-header.is-bare .page-meta,
.page-header.is-bare .header-sub,
.page-header.is-bare .header-count { display: none; }
.page-header.is-bare .page-title {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
@media (max-width: 768px) {
  .page-header.is-bare { padding: 70px 20px 0; }
}
.page-eyebrow {
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 10px;
}
.page-title {
  font-family: var(--font-big);
  font-size: clamp(2.2rem, 5vw, 3.4rem);   /* compact, consistent across listing pages */
  color: var(--text);
  line-height: 1;
}
.page-meta {
  font-size: .78rem;
  font-weight: 300;
  color: var(--muted);
  margin-top: 8px;
}

/* Static page narrower content area */
.page-content {
  padding: 52px 48px 80px;
}


/* ── 07. BUTTONS ─────────────────────────────────────────────────────────── */
.btn-red {
  padding: 14px 32px;
  background: var(--red);
  color:var(--on-accent);
  border-radius: 4px;
  font-family: var(--font-big);
  font-size: 1.2rem;
  letter-spacing: .08em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background .2s;
  display: inline-block;
}
.btn-red:hover { background: var(--red-deep); }

.btn-outline {
  padding: 14px 32px;
  border: 1px solid var(--border-strong);
  color: var(--text);
  border-radius: 4px;
  font-family: var(--font-big);
  font-size: 1.2rem;
  letter-spacing: .08em;
  text-decoration: none;
  background: transparent;
  cursor: pointer;
  transition: all .2s;
  display: inline-block;
}
.btn-outline:hover {
  border-color: var(--text);
  background: var(--surface-tint);
}

/* "See all" / "View all" inline link */
.see-all {
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all .2s;
  white-space: nowrap;
}
.see-all:hover {
  color: var(--text);
  border-color: var(--border-emph);
}


/* ── 08. BADGES ──────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 10px;
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.badge-onsale  { background: rgba(var(--red-rgb),0.12); color: var(--accent-ink); border: 1px solid rgba(var(--red-rgb),0.25); }
.badge-soldout { background: var(--surface-tint); color: var(--muted); border: 1px solid var(--border); }
.badge-low     { background: rgba(var(--amber-rgb), 0.08); color: var(--amber); border: 1px solid rgba(var(--amber-rgb), 0.2); }
.badge-mic     { background: rgba(var(--blue-rgb), 0.08); color: var(--blue); border: 1px solid rgba(var(--blue-rgb), 0.2); }
.badge-free    { background: rgba(var(--green-rgb), 0.08); color: var(--green); border: 1px solid rgba(var(--green-rgb), 0.2); }
.badge-notify  {
  background: rgba(var(--red-rgb),0.1);
  color: var(--accent-ink);
  border: 1px solid rgba(var(--red-rgb),0.25);
  cursor: pointer;
  transition: all .2s;
  font-weight: 600;
}
.badge-notify:hover {
  background: rgba(var(--red-rgb),0.2);
  color:var(--text);
  border-color: var(--red);
}


/* ── 09. FORMS (public-site dark theme) ─────────────────────────────────── */
/* Note: admin uses different form styles — see admin.css */

.form-label,
label.form-label {
  display: block;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 5px;
}
.form-label .req { color: var(--accent-ink); }

.form-input,
input[type=text].form-input,
input[type=email].form-input,
input[type=tel].form-input,
input[type=number].form-input,
select.form-input,
textarea.form-input {
  width: 100%;
  padding: 11px 14px;
  background: var(--surface-tint);
  border: 1px solid var(--border-input);
  border-radius: 6px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;                 /* .9rem = 14.4px; iOS Safari zooms any input under 16 (UXP §2) */
  outline: none;
  transition: all .2s;
  -webkit-appearance: none;
}
.form-input:focus {
  border-color: rgba(var(--red-rgb),0.5);
  background: rgba(var(--red-rgb),0.04);
}
.form-input::placeholder { color: var(--placeholder); }
select.form-input option { background: var(--select-option-bg); }
.form-textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.form-group {
  position: relative;
  margin-bottom: 16px;
}


/* ── 10. SOCIAL ICON LINKS ───────────────────────────────────────────────── */
/* Used on comedian.html hero and show_detail.html main column */
.social-icons-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 0 0 28px;
}
.social-icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-mid);
  color: var(--text-soft);
  text-decoration: none;
  transition: all .2s;
  flex-shrink: 0;
}
.social-icon-link:hover {
  border-color: var(--border-hover);
  color: var(--text);
  transform: translateY(-1px);
}
.social-icon-instagram:hover { border-color: #e1306c; color: #e1306c; }
.social-icon-tiktok:hover    { border-color: #69c9d0; color: #69c9d0; }
.social-icon-youtube:hover   { border-color: #ff0000; color: #ff0000; }


/* ── 11. ANIMATIONS + KEYFRAMES ──────────────────────────────────────────── */
@keyframes fadeup {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%      { opacity: .4; }
}
@keyframes urgency-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .5; transform: scale(1.3); }
}

/* THE CLUB'S UPLOADED PAGE MARK, rendered by core/render._wordmark() in place of
   the two-tone text lockup when the club has supplied a logo.svg. Until 17 Aug
   2026 brand_mark() had zero callers: the upload was accepted and the mark
   appeared in the browser tab and nowhere else.

   Sized in em, so it inherits whatever font-size its container sets. The lockup
   lives in seven different selectors (.nav-logo, .footer-brand, .logo-mark,
   .sidebar-logo-text, .mobile-topbar-logo, .topbar-logo, .header-title) at
   different sizes, and one fixed pixel height would be wrong in six of them.

   REPEATED in core.css, auth.css, admin.css and ticket.css because those four are
   what the 17 templates carrying __WORDMARK__ load between them. There is no
   universal component stylesheet — tokens.css is :root-only by design and
   fonts.css is @font-face — so the alternative was putting a component rule in a
   file whose whole purpose is not that. */
/* An uploaded mark is sized by HEIGHT, and a wide lockup has no width limit.
   Cobblestone's logo.svg is 18.9:1 — 422px at 1em — and on a 390px phone it
   ran off the right edge and pushed the menu button out of the viewport.
   height stays 1em — NOT max-height with height:auto, which was tried first
   and measured 0x0 on every screen: an SVG with only a viewBox has no
   intrinsic size, so an auto height collapses it. The width cap only ever
   bites on a phone; object-fit:contain keeps a raster mark's ratio inside the
   capped box, and an SVG letterboxes itself. 70vw leaves room for the 24px
   gutters and a 44px menu button. The same rule lives in admin.css, auth.css
   and ticket.css, byte-identical, for the same mark. */
.brand-mark{height:1em;width:auto;max-width:min(100%,70vw);object-fit:contain;display:inline-block;vertical-align:-.12em}

/* KEYBOARD FOCUS RING — the customer-facing side had NONE. Measured 17 Aug 2026:
   228 `:hover` rules across the stylesheets against 4 `:focus-visible`, and 38
   `outline: none`. UX_PRINCIPLES §15 asks for visible focus on primary actions, so
   this was a measurable failure of a binding rule — and the checkout expressed
   focus as a 1px border recolour, which is below WCAG 2.2 §2.4.13, on the screen
   that takes money.

   :focus-visible, so it appears for keyboard navigation and not on mouse clicks.
   Named elements rather than :where(), because :where() contributes zero
   specificity and ties with any class — see the note in admin.css. --focus-ring is
   deliberately not the accent, so it cannot read as a selected state. */
button:focus-visible, a:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}
