/*
  Kelnex Page Top Alignment Guard
  Purpose: normalize page canvas/content top alignment across pages.
  Protected: navbar structure, navbar links, navbar labels, language selector, theme selector.
  This stylesheet intentionally avoids nav/header/menu selectors.
*/

html,
body {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Normalize page-level canvases only. Do not target navbar/header. */
main,
.kx-page,
.kx-page-root,
.kx-page-content,
.kx-platform-native,
.kx-doctrine-page,
.kx-doctrine-native,
.kx-landing-page,
.kx-orbitmap-page,
.kx-access-page,
.kx-support-page {
  margin-top: 0 !important;
}

/* Remove inconsistent first-section vertical drift below the already-rendered global navbar. */
main > section:first-child,
.kx-page-content > section:first-child,
.kx-platform-native > section:first-child,
.kx-doctrine-page > section:first-child,
.kx-doctrine-native > section:first-child,
.kx-landing-page > section:first-child {
  margin-top: 0 !important;
}

/*
  Keep page hero sections visually aligned to the top of their own content area.
  This does not alter the navbar.
*/
.kx-platform-hero,
.kx-doctrine-hero,
.kx-home-hero,
.kx-landing-hero,
.hero,
.page-hero {
  margin-top: 0 !important;
}

/* Prevent accidental blank band between navbar and page canvas. */
body > main:first-of-type {
  margin-top: 0 !important;
}
