:root {
  --meb-ink: #1a1a1a;
  --meb-muted: #6b6b6b;
  --meb-paper: #f6f7f8;
  --meb-accent: #9b64fb;
  --meb-accent-soft: #efe6ff;
  --meb-brand: #004b8d;
  --meb-attend: #004b8d;
  --meb-date-bg: #e7f0f7;
  --meb-date-fg: #004b8d;
  --meb-line: rgba(26, 26, 26, 0.1);
  --meb-radius: 16px;
  --meb-shadow: 0 12px 36px rgba(17, 24, 39, 0.12);
  /* Inherit the active theme / site font stack */
  --meb-font: inherit;
}

.meb-single,
.meb-hero,
.meb-block,
.meb-cta,
.meb-related,
.meb-editor-note,
.meb-actions,
.meb-btn {
  color: var(--meb-ink);
  font-family: var(--meb-font);
}

.meb-single {
  background: linear-gradient(180deg, #fafbfc 0%, var(--meb-paper) 45%, #f3f4f6 100%);
  min-height: 70vh;
  padding-bottom: 6rem;
}

.meb-single__shell {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding-top: 2rem;
}

.meb-kicker {
  display: inline-block;
  margin: 0 0 0.65rem;
  color: var(--meb-muted);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.meb-hero__title,
.meb-block__title,
.meb-related__title,
.meb-cta__title {
  font-family: inherit;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.meb-hero__title {
  font-size: clamp(1.75rem, 3.6vw, 2.5rem);
  margin: 0 0 0.35rem;
}

.meb-hero__sub,
.meb-hero__venue,
.meb-block__lead,
.meb-block__meta,
.meb-cta__meta,
.meb-related__date,
.meb-related__venue {
  color: var(--meb-muted);
}

.meb-hero__grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1.25rem, 4vw, 2.75rem);
  align-items: start;
  margin-bottom: 2.25rem;
}

/* Square (1:1) poster — matches Meetup-style square uploads without cropping */
.meb-poster {
  position: relative;
  margin: 0;
  width: 100%;
  max-width: 440px;
  border-radius: calc(var(--meb-radius) + 4px);
  overflow: hidden;
  box-shadow: var(--meb-shadow);
  background: #e8eaed;
  animation: meb-rise 0.65s ease both;
}

.meb-poster--square {
  aspect-ratio: 1 / 1;
}

.meb-poster__img,
.meb-poster__placeholder {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.meb-poster__placeholder {
  background:
    linear-gradient(145deg, rgba(155, 100, 251, 0.35), transparent 55%),
    linear-gradient(205deg, #4b5563, #111827 70%);
}

.meb-poster__badge {
  position: absolute;
  left: 0.85rem;
  top: 0.85rem;
  display: grid;
  place-items: center;
  min-width: 3.75rem;
  padding: 0.45rem 0.55rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--meb-ink);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  text-align: center;
  line-height: 1.05;
}

.meb-poster__badge-month {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.meb-poster__badge-day {
  font-size: 1.45rem;
  font-weight: 700;
}

.meb-hero__copy {
  animation: meb-rise 0.7s ease 0.06s both;
}

.meb-hero__cost {
  margin: 1rem 0 0;
}

.meb-chip {
  display: inline-flex;
  align-items: center;
  min-height: 1.75rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: #f0f0f0;
  color: var(--meb-ink);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}

.meb-hero__actions,
.meb-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin: 1.25rem 0 0;
}

.meb-actions--bar {
  margin: 0;
  flex-shrink: 0;
}

.meb-hero--fullbleed .meb-hero__bleed {
  position: relative;
  min-height: min(64vh, 560px);
  border-radius: calc(var(--meb-radius) + 6px);
  overflow: hidden;
  margin-bottom: 2rem;
  background:
    linear-gradient(120deg, #1f2937, #4b5563 50%, #9b64fb);
  background-image: var(--meb-hero-image), linear-gradient(120deg, #1f2937, #4b5563 50%, #9b64fb);
  background-size: cover;
  background-position: center;
  box-shadow: var(--meb-shadow);
  animation: meb-rise 0.65s ease both;
}

.meb-hero__bleed-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 10, 10, 0.72) 12%, rgba(10, 10, 10, 0.28) 70%, rgba(10, 10, 10, 0.12));
}

.meb-hero__bleed-inner {
  position: relative;
  z-index: 1;
  max-width: 40rem;
  padding: clamp(2rem, 6vw, 4rem);
  color: #f8fafc;
}

.meb-hero--fullbleed .meb-kicker,
.meb-hero--fullbleed .meb-hero__sub {
  color: rgba(248, 250, 252, 0.86);
}

.meb-hero--fullbleed .meb-hero__title {
  color: #fff;
}

.meb-single__columns {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.8fr);
  gap: clamp(1.5rem, 4vw, 2.75rem);
  align-items: start;
}

.meb-single__aside-sticky {
  position: sticky;
  top: 1.25rem;
  display: grid;
  gap: 0.85rem;
}

.meb-section,
.meb-block,
.meb-related {
  margin-bottom: 1.5rem;
}

.meb-block,
.meb-cta__inner {
  background: #fff;
  border: 1px solid var(--meb-line);
  border-radius: var(--meb-radius);
  padding: 1.1rem 1.15rem;
}

.meb-block__title {
  font-size: 1.15rem;
  margin: 0 0 0.45rem;
}

.meb-block__lead {
  margin: 0;
  font-size: 1.02rem;
  color: var(--meb-ink);
  font-weight: 600;
}

.meb-block__meta {
  margin: 0.3rem 0 0;
}

.meb-datetime {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: center;
}

.meb-datetime__badge {
  display: grid;
  place-items: center;
  min-width: 4.25rem;
  padding: 0.5rem;
  border-radius: 12px;
  background: var(--meb-date-bg);
  color: var(--meb-date-fg);
  text-align: center;
  border: 1px solid rgba(0, 75, 141, 0.12);
}

.meb-datetime__month,
.meb-datetime__weekday {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.meb-datetime__day {
  font-size: 1.55rem;
  line-height: 1;
  font-weight: 700;
}

.meb-host__row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: start;
}

.meb-host--compact {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0.15rem 0 0.85rem;
}

.meb-host--compact .meb-host__avatar {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.meb-host--compact .meb-host__avatar--fallback {
  font-size: 0.9rem;
}

.meb-host--compact .meb-host__line {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.35;
  color: var(--meb-muted);
}

.meb-host--compact .meb-host__label {
  margin-right: 0.25rem;
}

.meb-host--compact .meb-host__name {
  color: var(--meb-ink);
  font-size: inherit;
  font-weight: 700;
}

.meb-host__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  background: #eceff1;
}

.meb-host__avatar--fallback {
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--meb-ink);
}

.meb-host__name {
  margin: 0;
  font-weight: 700;
  font-size: 1.02rem;
}

.meb-prose {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--meb-ink);
}

.meb-prose > *:first-child {
  margin-top: 0;
}

.meb-btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2.75rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.meb-btn__icon {
  display: block;
}

/* Attend: brand blue pill */
.meb-btn--attend,
.meb-btn--primary {
  background: var(--meb-attend);
  color: #fff;
  min-width: 7.5rem;
  box-shadow: 0 8px 20px rgba(0, 75, 141, 0.22);
}

.meb-btn--attend:hover,
.meb-btn--primary:hover {
  background: #003a6e;
  transform: translateY(-1px);
  color: #fff;
}

/* Meetup-like Share: soft purple icon button */
.meb-btn--share {
  width: 2.75rem;
  min-width: 2.75rem;
  padding: 0;
  border-radius: 14px;
  background: var(--meb-accent-soft);
  color: #5b2db5;
}

.meb-btn--share:hover {
  background: #e4d5ff;
  color: #4a1f9c;
}

.meb-btn--ghost {
  background: transparent;
  color: var(--meb-ink);
  border: 1px solid var(--meb-line);
}

.meb-btn--ghost:hover {
  background: rgba(0, 0, 0, 0.04);
}

.meb-text-link {
  color: #5b2db5;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.meb-cta--bar .meb-cta__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1rem;
  padding: 0.85rem 1rem;
}

.meb-cta__copy {
  flex: 1 1 12rem;
  min-width: 0;
}

.meb-cta__title {
  margin: 0.15rem 0 0;
  font-size: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.meb-cta__meta {
  margin: 0;
  font-size: 0.82rem;
}

.meb-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.meb-related__grid {
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.meb-related__link {
  display: grid;
  gap: 0.7rem;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.meb-related__media {
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  background: #e8eaed;
}

.meb-related__media img,
.meb-related__placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.meb-related__placeholder {
  background: linear-gradient(145deg, #4b5563, #9b64fb);
}

.meb-related__body {
  display: grid;
  gap: 0.2rem;
}

.meb-related__date {
  font-size: 0.82rem;
  font-weight: 600;
}

.meb-related__title {
  font-size: 1.02rem;
}

.meb-related__link:hover .meb-related__title {
  color: #5b2db5;
}

.meb-editor-note {
  padding: 1rem 1.1rem;
  border-radius: 12px;
  border: 1px dashed var(--meb-line);
  background: rgba(255, 255, 255, 0.7);
  color: var(--meb-muted);
}

@keyframes meb-rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .meb-hero__grid,
  .meb-single__columns,
  .meb-related__grid {
    grid-template-columns: 1fr;
  }

  .meb-poster {
    max-width: 360px;
    margin-inline: auto;
  }

  .meb-cta--sticky {
    position: sticky;
    bottom: 0.75rem;
    z-index: 20;
  }

  .meb-cta--sticky .meb-cta__inner {
    box-shadow: var(--meb-shadow);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
  }

  .meb-cta--sticky .meb-cta__copy {
    display: none;
  }
}

@media (min-width: 901px) {
  .meb-cta--sticky {
    position: sticky;
    bottom: 1rem;
    z-index: 20;
  }

  .meb-cta--sticky .meb-cta__inner {
    box-shadow: var(--meb-shadow);
  }
}

@media (prefers-reduced-motion: reduce) {
  .meb-poster,
  .meb-hero__copy,
  .meb-hero--fullbleed .meb-hero__bleed,
  .meb-btn {
    animation: none !important;
    transition: none !important;
  }
}
