/* =========================================================
   AOM TRADERS V48.2 — GLOBAL PAGE RHYTHM
   One consistent top range across public pages.
   ========================================================= */

:root{
  --aom-page-top-gap:32px;
  --aom-page-bottom-gap:32px;
}

/* ---------------------------------------------------------
   GLOBAL FIRST SECTION
   --------------------------------------------------------- */

#main > .section-first{
  margin-top:0 !important;
}

/* Standard public hero types */
#main > .page-hero.section-first,
#main > .hero.section-first,
#main > .legal-hero.section-first,
#main > .product-detail-hero.section-first,
#main > .v43-calendar-root.section-first,
#main > .not-found.section-first{
  padding-top:var(--aom-page-top-gap) !important;
}

/* ---------------------------------------------------------
   NORMAL PAGE HERO
   Market / Products / Access / App / Strategy / XAUUSD
   --------------------------------------------------------- */

.page-hero.section-first{
  padding-bottom:var(--aom-page-bottom-gap) !important;
}

.page-hero.section-first .page-hero-grid{
  min-height:0 !important;
  align-items:center !important;
}

/* Avoid inherited oversized vertical hero dimensions */
.page-hero.section-first .container{
  min-height:0 !important;
}

/* ---------------------------------------------------------
   HOME + COMMUNITY HERO
   Keep visual identity, remove excessive empty top area
   --------------------------------------------------------- */

.hero.section-first{
  min-height:0 !important;
  padding-bottom:40px !important;
}

.hero.section-first .hero-grid{
  min-height:0 !important;
  padding-top:0 !important;
  padding-bottom:0 !important;
}

/* Community has its own hero composition */
.v45-community-hero.section-first,
.v463-community-hero.section-first{
  min-height:0 !important;
}

/* ---------------------------------------------------------
   ECONOMIC CALENDAR
   --------------------------------------------------------- */

.v43-calendar-root.section-first{
  padding-bottom:48px !important;
}

.v43-calendar-root.section-first .v43-calendar-hero{
  padding-top:0 !important;
  min-height:0 !important;
}

.v43-calendar-root.section-first .v43-calendar-copy{
  min-height:0 !important;
}

/* ---------------------------------------------------------
   PRODUCT DETAIL
   --------------------------------------------------------- */

.product-detail-hero.section-first{
  min-height:0 !important;
}

/* ---------------------------------------------------------
   LEGAL / 404 / DETAIL
   --------------------------------------------------------- */

.legal-hero.section-first{
  min-height:0 !important;
  padding-bottom:var(--aom-page-bottom-gap) !important;
}

.not-found.section-first{
  min-height:0 !important;
  padding-bottom:64px !important;
}

/* Community article/detail */
#main > .section-first > .v45-detail-wrap{
  padding-top:0 !important;
}

/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media (max-width:768px){

  :root{
    --aom-page-top-gap:20px;
    --aom-page-bottom-gap:24px;
  }

  #main > .page-hero.section-first,
  #main > .hero.section-first,
  #main > .legal-hero.section-first,
  #main > .product-detail-hero.section-first,
  #main > .v43-calendar-root.section-first,
  #main > .not-found.section-first{
    padding-top:20px !important;
  }

  .page-hero.section-first{
    padding-bottom:24px !important;
  }

  .page-hero.section-first .page-hero-grid{
    min-height:0 !important;
    align-items:start !important;
  }

  .hero.section-first{
    padding-bottom:28px !important;
  }

  .hero.section-first .hero-grid{
    min-height:0 !important;
  }

  .v43-calendar-root.section-first .v43-calendar-hero{
    padding-top:0 !important;
    gap:18px !important;
  }

  .product-detail-hero.section-first{
    padding-bottom:28px !important;
  }
}
