/* ============================================================
   Landing Page — Upcoming Events (image + event timeline + CTA).
   Layer-2 semantic tokens + .ts-* only.
   BEM root: .lp-events
   ============================================================ */

.lp-events {
  position: relative;
  width: 100%;
  padding: var(--spacing-12xl) var(--spacing-8xl);
  background: var(--surface-page);
  /* visible so the media image can bleed up into the section above */
  overflow: visible;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

/* Clipped backdrop layer — keeps the ring inside the section bounds */
.lp-events__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

/* Decorative ring, bottom-left (approximates Figma #154B49 @ 10%) */
.lp-events__ring {
  position: absolute;
  left: -382px;
  top: 302px;
  width: 906px;
  height: 906px;
  border: 72px solid var(--icon-brand);
  border-radius: 9999px;
  opacity: 0.1;
}

.lp-events__inner {
  flex: 1 1 0;
  position: relative;
  z-index: 1;
  max-width: 1440px;
  display: flex;
  align-items: stretch;
  gap: 40px;
}

/* ── Media column ──────────────────────────────────────────── */
.lp-events__media {
  flex: 1 1 0;
  align-self: flex-start;
}

.lp-events__image {
  display: block;
  width: 100%;
  height: 649px;
  /* bleed upward into the section above (Figma top: -180) */
  margin-top: -180px;
  object-fit: cover;
  position: relative;
  z-index: 2;
}

/* ── Content column ────────────────────────────────────────── */
.lp-events__content {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
}

.lp-events__body {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  gap: 64px;
}

/* Heading */
.lp-events__heading {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--spacing-xl);
}

.lp-events__eyebrow {
  display: inline-flex;
  align-items: center;
  padding: var(--spacing-xs) 0 var(--spacing-xs) var(--spacing-xl);
  border-left: 1px solid var(--border-input);
  color: var(--text-tertiary);
}

.lp-events__title {
  color: var(--text-primary);
}

/* ── Timeline ──────────────────────────────────────────────── */
.lp-events__timeline {
  align-self: stretch;
  display: flex;
  flex-direction: column;
}

.lp-events__item {
  align-self: stretch;
  display: flex;
  align-items: stretch;
  gap: var(--spacing-xl);
}

/* Date column */
.lp-events__date {
  width: 80px;
  flex-shrink: 0;
  padding-top: 2px;
  padding-bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-1xl);
}

/* last item needs no bottom tail */
.lp-events__item--last .lp-events__date {
  padding-bottom: 0;
}

.lp-events__date-block {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lp-events__date-day {
  color: var(--text-primary);
}

.lp-events__date-month {
  color: var(--text-tertiary);
}

.lp-events__date-sep {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--icon-muted);
  opacity: 0.2;
}

/* Track = marker + text */
.lp-events__track {
  flex: 1 1 0;
  display: flex;
  align-items: stretch;
  gap: var(--spacing-3xl);
}

.lp-events__marker {
  width: 40px;
  flex-shrink: 0;
  padding-top: var(--spacing-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-md);
}

.lp-events__dot {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  border-radius: 9999px;
  background: var(--icon-default);
}

.lp-events__line {
  width: 1px;
  flex: 1 1 0;
  background: var(--border-input);
  opacity: 0.5;
}

.lp-events__text {
  flex: 1 1 0;
  padding-top: 3px;
  padding-bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.lp-events__item-title,
.lp-events__item-title a {
  color: var(--text-primary);
}

.lp-events__item-desc {
  color: var(--text-primary);
  line-height: 1.2;
}

/* Last item: no padding tail */
.lp-events__item--last .lp-events__text {
  padding-bottom: 0;
}

/* ── CTA ───────────────────────────────────────────────────── */
.lp-events__cta {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-3xl) 64px;
  background: var(--surface-inverse);
  color: var(--text-on-dark);
}

.lp-events__cta:hover {
  color: var(--text-on-dark);
  background: var(--surface-cta);
  text-decoration: none;
}

.lp-events__cta:focus-visible {
  outline: 2px solid var(--text-accent);
  outline-offset: 2px;
}

.lp-events__cta-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--icon-accent);
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .lp-events {
    padding: var(--spacing-8xl) var(--spacing-3xl);
  }

  .lp-events__inner {
    flex-direction: column;
  }

  /* smaller ring, anchored bottom-left (Figma mobile) */
  .lp-events__ring {
    top: auto;
    left: -280px;
    bottom: -150px;
    width: 435px;
    height: 435px;
    border-width: 35px;
  }

  .lp-events__media {
    width: 100%;
    align-self: stretch;
  }

  /* image on top, bleeding up into the section above */
  .lp-events__image {
    height: 389px;
    margin-top: -120px;
  }

  /* full-width CTA on mobile — keep label on one line */
  .lp-events__cta {
    align-self: stretch;
    width: 100%;
    padding-left: var(--spacing-3xl);
    padding-right: var(--spacing-3xl);
    white-space: nowrap;
  }
}
