/**
 * Explorea — desktop mega menu viewport fix
 *
 * Scope: desktop navigation (> 1024px), only the "Wyprawy" mega menu.
 * Mobile uses a separate drawer and remains untouched.
 *
 * The production theme anchors the 860px panel to the narrow navigation item,
 * which pushes it beyond the left edge on smaller desktop viewports. Making
 * that one item static moves the panel's containing block to `.site-header`,
 * so the existing `left: 50%` and opening animation center it in the viewport.
 */
@media (min-width: 1025px) {
  .site-header .nav-item.has-mega:has(> #mega-wyprawy) {
    position: static;
  }

  #mega-wyprawy {
    width: min(860px, calc(100vw - 32px));
  }
}

/* Karty liderów: specjalizacje mogą mieć różną liczbę wierszy, ale CTA pozostaje równo. */
.single-wyprawa .team-track {
  align-items: stretch;
}

.single-wyprawa .team-slide,
.single-wyprawa .team-member {
  display: flex;
  flex-direction: column;
}

.single-wyprawa .team-member {
  height: 100%;
}

.single-wyprawa .team-link {
  margin-top: auto;
}
