/* Layout fixes — async-enqueued from setup.php; merge into app.css on next Vite build */

.mentor-page-content {
  overflow-x: clip;
}

/* Podstrony: page-hero pod fixed header (jak mentor-hero na homepage). */
.mentor-page-content:has(> .mentor-page-hero:first-child),
.main > .mentor-page-hero:first-child,
.main > .mentor-page-default-hero:first-child {
  margin-top: calc(-1 * var(--mentor-site-header-offset));
}

.mentor-page-content > .mentor-page-hero:first-child,
.main > .mentor-page-hero:first-child,
.main > .mentor-page-default-hero:first-child {
  padding-top: var(--mentor-site-header-offset);
}

/* Homepage hero: extra gap below fixed header (mobile-first) */
.mentor-page-content > .mentor-hero:first-child,
.main > .mentor-hero:first-child {
  padding-top: calc(var(--mentor-site-header-offset) + 2rem);
}

@media (min-width: 640px) {
  .mentor-page-content > .mentor-hero:first-child,
  .main > .mentor-hero:first-child {
    padding-top: calc(var(--mentor-site-header-offset) + 2.5rem);
  }
}

@media (min-width: 1024px) {
  .mentor-page-content > .mentor-hero:first-child,
  .main > .mentor-hero:first-child {
    padding-top: calc(var(--mentor-site-header-offset) + 3rem);
  }
}

/* Legacy orphan paragraph (before mentor/seo-intro migration). */
.mentor-hero + .wp-block-paragraph {
  display: none;
}
