/* ==========================================================================
   Chuzz — /meetups only
   --------------------------------------------------------------------------
   Everything here is scoped to .page-meetups, so it cannot touch another
   page. It builds on the site's own tokens, components and fonts, and only
   pushes the type bigger and the colour warmer, the way the ads look.

   Priority of actions on this page, in order:
     1. Join the WhatsApp group   (green, the biggest thing on screen)
     2. Sign up for a meetup      (outlined, right beside it)
   ========================================================================== */

.page-meetups {
  /* The WhatsApp colours are declared on .lp (the /join page) rather than on
     :root, so .btn--whatsapp and the green band would both fall back to
     nothing here. Same values, scoped to this page. */
  --wa: #25d366;
  --wa-600: #1fbe5a;
  --wa-700: #0f8a4c;
  --wa-ink: #05341c;
  --wa-050: #e9f9f0;
  --wa-line: #bfe9d0;

  --mt-night: #0c1a19;
  --mt-night-2: #12302c;
  --mt-amber: var(--cream);        /* the site's warm yellow, #f2dea0 */
  --mt-amber-ink: #6b4d05;
}

/* ─── Display type ──────────────────────────────────────────── */
.page-meetups .h1,
.page-meetups .h2 {
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.page-meetups .mt-hero .h1 {
  font-size: clamp(2.3rem, 7.4vw, 4.4rem);
  line-height: 1.0;
  font-weight: 800;
}

.page-meetups .h2 {
  font-size: clamp(1.6rem, 3.6vw, 2.5rem);
  line-height: 1.1;
  font-weight: 800;
}

/* A hand-drawn looking swipe under one or two words, never a whole line. */
.page-meetups .mark {
  position: relative;
  white-space: nowrap;
  z-index: 0;
}
.page-meetups .mark::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset-inline: -0.12em;
  inset-block-end: 0.03em;
  block-size: 0.34em;
  background: var(--mt-amber);
  border-radius: var(--radius-pill);
  opacity: 0.9;
}

/* ─── Hero ──────────────────────────────────────────────────── */
.page-meetups .mt-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2.6rem, 6vw, 4.5rem);
  background:
    radial-gradient(60ch 40ch at 15% 0%, var(--mt-night-2) 0%, transparent 62%),
    linear-gradient(160deg, var(--mt-night) 0%, #0f2522 55%, var(--mt-night) 100%);
  color: #f6f3ea;
  border-block-end: 0;
}

.page-meetups .mt-hero .h1 { color: #ffffff; }

.page-meetups .mt-hero .lede {
  color: color-mix(in srgb, #f6f3ea 78%, transparent);
  max-inline-size: 48ch;
  margin-block-start: 1.1rem;
}

.page-meetups .mt-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.95rem;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--teal) 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--teal) 45%, transparent);
  color: #9fe9e6;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.page-meetups .mt-eyebrow svg {
  inline-size: 1.05em;
  block-size: 1.05em;
  color: var(--teal);
}

/* The two actions, in priority order. */
.page-meetups .mt-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
  margin-block-start: 2rem;
}

.page-meetups .mt-actions .btn--whatsapp {
  inline-size: auto;
  min-inline-size: min(100%, 22rem);
  justify-content: center;
}

/* The quieter second action. Outlined on the dark hero. */
.page-meetups .mt-hero .btn--ghost {
  color: #f6f3ea;
  border-color: color-mix(in srgb, #f6f3ea 38%, transparent);
  background: transparent;
}
.page-meetups .mt-hero .btn--ghost:hover {
  color: var(--mt-night);
  background: #f6f3ea;
  border-color: #f6f3ea;
}

.page-meetups .mt-hero .mt-note {
  margin-block-start: 1.1rem;
  font-size: 0.92rem;
  color: color-mix(in srgb, #f6f3ea 62%, transparent);
}

.page-meetups .mt-hero-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

@media (min-width: 900px) {
  .page-meetups .mt-hero-grid { grid-template-columns: 1.05fr 0.95fr; }
}

/* The table, drawn rather than photographed, so the hero stays quick. */
.page-meetups .mt-table {
  inline-size: 100%;
  max-inline-size: 380px;
  block-size: auto;
  margin-inline: auto;
  display: block;
}

/* ─── Section headings ──────────────────────────────────────── */
.page-meetups .section-head .h2::after {
  content: "";
  display: block;
  inline-size: 3.2rem;
  block-size: 4px;
  margin-block-start: 0.85rem;
  border-radius: var(--radius-pill);
  background: var(--mt-amber);
}
.page-meetups .section-head--center .h2::after { margin-inline: auto; }

/* ─── Steps ─────────────────────────────────────────────────── */
.page-meetups .step__num {
  color: color-mix(in srgb, var(--teal) 32%, transparent);
  font-size: clamp(3.2rem, 7vw, 4.6rem);
  font-weight: 800;
  line-height: 1;
}

/* ─── The evening list ──────────────────────────────────────── */
.page-meetups .mt-list {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.page-meetups .mt-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  max-inline-size: 46ch;
}

.page-meetups .mt-list svg {
  inline-size: 1.15rem;
  block-size: 1.15rem;
  flex: none;
  margin-block-start: 0.28rem;
  color: var(--teal);
}

.page-meetups .mt-photo {
  inline-size: 100%;
  block-size: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

/* ─── The WhatsApp band: the main thing on the page ─────────── */
.page-meetups .mt-wa {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 7vw, 5rem);
  background:
    radial-gradient(50ch 30ch at 85% 10%, color-mix(in srgb, var(--wa) 22%, transparent) 0%, transparent 65%),
    linear-gradient(150deg, var(--mt-night) 0%, #10322c 100%);
  color: #f6f3ea;
  text-align: center;
}

.page-meetups .mt-wa .h2 { color: #ffffff; }

.page-meetups .mt-wa p {
  color: color-mix(in srgb, #f6f3ea 78%, transparent);
  max-inline-size: 44ch;
  margin-inline: auto;
}

.page-meetups .mt-wa .mt-actions {
  justify-content: center;
  margin-block-start: 1.8rem;
}

.page-meetups .mt-count {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  line-height: 1;
  color: var(--mt-amber);
  letter-spacing: -0.02em;
}

/* ─── Sticky bar, phones only ───────────────────────────────── */
.page-meetups .mt-sticky {
  position: fixed;
  inset-inline: 0;
  inset-block-end: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.65rem var(--gutter) max(0.65rem, env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--mt-night) 94%, transparent);
  backdrop-filter: blur(10px);
  border-block-start: 1px solid color-mix(in srgb, #f6f3ea 14%, transparent);
  translate: 0 115%;
  transition: translate 0.3s var(--ease);
}

.page-meetups .mt-sticky.is-visible { translate: 0 0; }

.page-meetups .mt-sticky .btn--whatsapp {
  flex: 1 1 auto;
  inline-size: auto;
  padding: 0.85rem 1.1rem;
  font-size: 1rem;
  justify-content: center;
}

.page-meetups .mt-sticky a:not(.btn) {
  flex: none;
  color: color-mix(in srgb, #f6f3ea 80%, transparent);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* So the bar never sits on top of the last line of the footer. */
@media (max-width: 767px) {
  .page-meetups .site-footer { padding-block-end: 5.5rem; }
}

@media (min-width: 768px) {
  .page-meetups .mt-sticky { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .page-meetups .mt-sticky { transition: none; }
}
