/* Club and club-plan pages: a full-bleed cover with the club's name over it,
   then its plans and a panel to join (with a QR code on big screens).
   Tokens, fonts and buttons come from styles.css. */

body.club-page { display: block; padding: 0; background: var(--cream);
  /* The hero's text lines up with the content column below it. */
  --edge: clamp(16px, 4vw, 48px); --gutter: max(var(--edge), calc((100% - 1240px) / 2 + var(--edge))); }
.club-page main { max-width: none; display: block; gap: 0; }

/* ---------- Hero ---------- */
.hero-cover { position: relative; min-height: min(86vh, 860px); display: flex; flex-direction: column;
  color: var(--cream); background: var(--forest); overflow: hidden; isolation: isolate; }
.hero-cover > img.cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
  animation: settle 1.6s cubic-bezier(.2,.7,.2,1) both; }
.hero-cover::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgba(22,27,21,.92) 0%, rgba(22,27,21,.55) 38%, rgba(22,27,21,0) 66%),
    linear-gradient(to bottom, rgba(22,27,21,.45), rgba(22,27,21,0) 22%); }
.hero-cover.no-cover::after { background: radial-gradient(120% 90% at 85% 10%, rgba(247,227,160,.18), transparent 60%); }
@keyframes settle { from { transform: scale(1.06); } to { transform: scale(1); } }

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px var(--gutter); }
.topbar .wordmark { color: var(--cream); text-decoration: none; font-size: 24px; }
.nav-links { display: flex; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 999px;
  font: 600 15px/1 -apple-system, system-ui, sans-serif; text-decoration: none; cursor: pointer; border: 0; }
.pill.glass { color: var(--cream); background: rgba(250,247,239,.14); box-shadow: inset 0 0 0 1px rgba(250,247,239,.35);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.pill.glass:hover { background: rgba(250,247,239,.24); }

.hero-body { margin-top: auto; padding: 0 var(--gutter) clamp(28px, 5vw, 56px);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 32px; }
.club-mark { width: clamp(84px, 9vw, 128px); aspect-ratio: 1; border-radius: 30%; object-fit: cover; display: grid; place-items: center;
  box-shadow: 0 0 0 4px var(--cream), 0 18px 40px rgba(0,0,0,.35); background: var(--forest);
  font: 400 clamp(40px, 5vw, 64px)/1 "Fraunces", Georgia, serif; color: var(--cream); margin-bottom: 22px; }
.hero-name { font: 340 clamp(52px, 9.2vw, 136px)/.92 "Fraunces", Georgia, serif; letter-spacing: -0.035em;
  font-variation-settings: "opsz" 144; text-wrap: balance; overflow-wrap: anywhere; max-width: 14ch; }
.hero-handle { margin-top: 14px; font-size: clamp(17px, 1.6vw, 21px); font-weight: 600; opacity: .85; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding: 0; list-style: none; }
.facts li { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; border-radius: 999px;
  font-size: 15px; font-weight: 500; background: rgba(250,247,239,.14); box-shadow: inset 0 0 0 1px rgba(250,247,239,.28);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.facts svg { width: 16px; height: 16px; }
.hero-actions { display: flex; flex-direction: column; gap: 10px; width: 260px; }
.hero-actions .button { height: 58px; width: 100%; }
.button.light { background: transparent; color: var(--cream); box-shadow: inset 0 0 0 1.25px rgba(250,247,239,.7); }
.button.light:hover { background: rgba(250,247,239,.12); }
.button.primary:hover { filter: brightness(1.05); }

/* ---------- Numbers ---------- */
.stats { max-width: 1240px; margin: 0 auto; padding: clamp(28px, 4vw, 44px) var(--edge) 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { display: flex; flex-direction: column; gap: 4px; padding: 4px 24px; border-left: 1px solid var(--line); }
.stat:first-child { padding-left: 0; border-left: 0; }
.stat .v { font: 340 clamp(40px, 4.6vw, 64px)/1 "Fraunces", Georgia, serif; letter-spacing: -0.035em; font-variation-settings: "opsz" 144; }
.stat .l { font-size: 15px; font-weight: 600; color: var(--ink-soft); }
.stat .s { font-size: 14px; font-weight: 600; color: var(--forest); }
.facts .badge { padding: 0; background: var(--butter); box-shadow: none; }
.facts .badge a { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; color: var(--ink); text-decoration: none; font-weight: 700; }

/* ---------- Content ---------- */
.content { max-width: 1240px; margin: 0 auto; padding: clamp(32px, 5vw, 56px) clamp(16px, 4vw, 48px) 24px;
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.about { font: 400 clamp(21px, 2vw, 27px)/1.42 "Fraunces", Georgia, serif; letter-spacing: -0.005em; max-width: 34em; color: var(--ink); }
.section-title { font: 400 clamp(30px, 3vw, 40px)/1.1 "Fraunces", Georgia, serif; letter-spacing: -0.02em;
  margin: clamp(40px, 5vw, 64px) 0 20px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.section-title small { font: 500 15px/1 -apple-system, system-ui, sans-serif; color: var(--ink-soft); letter-spacing: 0; }

/* A plan as a ticket: date stub, what and where, photo. */
.tickets { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.ticket-row { display: grid; grid-template-columns: 104px minmax(0, 1fr) 168px; min-height: 148px; text-decoration: none; color: var(--ink);
  background: var(--paper); border-radius: 26px; overflow: hidden; box-shadow: 0 0 0 1px var(--line);
  transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s; }
.ticket-row:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--line), 0 16px 36px rgba(34,40,32,.10); }
.stub { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  border-right: 1.5px dashed rgba(34,40,32,.18); }
.stub .wd { font-size: 13px; font-weight: 700; color: var(--tomato); letter-spacing: .04em; }
.stub .day { font: 400 50px/1 "Fraunces", Georgia, serif; letter-spacing: -0.03em; }
.stub .mo { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.ticket-text { padding: 20px 22px; display: flex; flex-direction: column; justify-content: center; gap: 6px; min-width: 0; }
.ticket-text .t { font: 400 clamp(23px, 2.2vw, 29px)/1.1 "Fraunces", Georgia, serif; letter-spacing: -0.015em; }
.ticket-text .m { color: var(--ink-soft); font-size: 16px; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.ticket-text .m span { display: inline-flex; align-items: center; gap: 6px; }
.ticket-text .m svg { width: 15px; height: 15px; flex: none; }
.spots { display: flex; align-items: center; gap: 10px; margin-top: 6px; font-size: 14px; font-weight: 600; }
.spots .bar { flex: 0 1 140px; height: 6px; border-radius: 3px; background: var(--sand); overflow: hidden; }
.spots .bar i { display: block; height: 100%; background: var(--forest); border-radius: 3px; }
.repeat { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; background: var(--butter);
  color: var(--ink); font-size: 12.5px; font-weight: 600; align-self: flex-start; }
.ticket-row .photo { width: 100%; height: 100%; object-fit: cover; }

.empty { background: var(--paper); border-radius: 26px; box-shadow: 0 0 0 1px var(--line); padding: 32px;
  display: flex; gap: 20px; align-items: center; }
.empty svg { width: 44px; height: 44px; flex: none; color: var(--ink); }
.empty p { color: var(--ink-soft); font-size: 17px; }
.empty strong { display: block; color: var(--ink); font: 400 24px/1.2 "Fraunces", Georgia, serif; margin-bottom: 4px; }

/* ---------- Side panel ---------- */
.panel { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 14px; }
.card { background: var(--paper); border-radius: 26px; box-shadow: 0 0 0 1px var(--line); padding: 24px; }
.card h3 { font: 400 24px/1.15 "Fraunces", Georgia, serif; letter-spacing: -0.01em; margin-bottom: 6px; }
.card p { color: var(--ink-soft); font-size: 15px; }
.scan { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 18px; align-items: center; }
.qr { width: 132px; height: 132px; padding: 10px; border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.qr svg { width: 100%; height: 100%; display: block; }
.card .button { margin-top: 16px; width: 100%; }
.copy { margin-top: 14px; display: flex; align-items: center; gap: 8px; height: 50px; padding: 0 6px 0 16px; border-radius: 999px;
  background: var(--cream); box-shadow: inset 0 0 0 1px var(--line); }
.copy span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; color: var(--ink-soft); }
.copy span b { color: var(--ink); font-weight: 600; }
.copy button { height: 38px; padding: 0 16px; border-radius: 999px; border: 0; background: var(--ink); color: var(--cream);
  font: 600 14px/1 -apple-system, system-ui, sans-serif; cursor: pointer; }
.rules { list-style: none; padding: 0; margin-top: 10px; display: flex; flex-direction: column; gap: 10px; }
.rules li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 16px; color: var(--ink); }
.rules li::before { content: ""; width: 8px; height: 8px; margin: 8px 0 0 6px; border-radius: 50%; background: var(--forest); }

/* The club, linked from a plan page. */
.club-link { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); }
.club-link img, .club-link .ph { width: 56px; height: 56px; border-radius: 30%; object-fit: cover; flex: none;
  display: grid; place-items: center; background: var(--forest); color: var(--cream); font: 400 26px/1 "Fraunces", Georgia, serif; }
.club-link b { display: block; font: 400 21px/1.15 "Fraunces", Georgia, serif; }
.club-link span { color: var(--ink-soft); font-size: 15px; }

.site-foot { max-width: 1240px; margin: 0 auto; padding: 40px clamp(16px, 4vw, 48px) 48px; display: flex; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--ink-soft); }
.site-foot a { color: var(--ink-soft); margin-left: 16px; }
.site-foot .wordmark { font-size: 18px; color: var(--ink); text-decoration: none; }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: var(--cream); padding: 12px 20px; border-radius: 999px; font-size: 15px; font-weight: 600;
  transition: opacity .2s, transform .2s; z-index: 10; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* Phone bar: joining stays one tap away. */
.dock { display: none; }

:focus-visible { outline: 2.5px solid var(--tomato); outline-offset: 3px; }

@media (max-width: 900px) {
  .hero-cover { min-height: min(74svh, 680px); }
  .hero-body { grid-template-columns: 1fr; gap: 22px; }
  .hero-actions { display: none; }
  .content { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 22px; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .panel { position: static; }
  .scan-card { display: none; }
  .ticket-row { grid-template-columns: 82px minmax(0, 1fr) 0; min-height: 124px; }
  .ticket-row .photo { display: none; }
  .stub .day { font-size: 40px; }
  .ticket-text { padding: 16px 18px; }
  .dock { display: flex; gap: 10px; position: sticky; bottom: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(250,247,239,.92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 -1px 0 var(--line); z-index: 5; }
  .dock .button { flex: 1; height: 52px; }
  .dock .button.secondary { flex: 0 0 auto; padding: 0 20px; }
  .site-foot { padding-bottom: 24px; }
}
@media (max-width: 520px) {
  .nav-links .pill:last-child { display: none; }
  .hero-name { font-size: clamp(44px, 13vw, 64px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-cover > img.cover { animation: none; }
  .ticket-row, .toast { transition: none; }
}
