/* AOM Traders V45.2 — Optical Vertical Centering Tune
   Scope: desktop first-view alignment only.
   Reference: Access page optical balance.
   No backend/data/CMS/product/calendar-data changes.
*/

@media (min-width:901px){
  /* HOME — keep V45.1 viewport fit, then lift the complete hero grid
     by 30px so upper/lower whitespace is optically balanced. */
  #main > .hero.section-first:first-child:not(.v45-community-hero),
  main > .hero.section-first:first-child:not(.v45-community-hero){
    min-height:calc(100svh - var(--v40-header-space,96px))!important;
    padding-top:24px!important;
    padding-bottom:24px!important;
    align-items:center!important;
  }
  #main > .hero.section-first:first-child:not(.v45-community-hero) > .container.hero-grid,
  main > .hero.section-first:first-child:not(.v45-community-hero) > .container.hero-grid{
    min-height:0!important;
    align-items:center!important;
    position:relative!important;
    top:-30px!important;
  }
  #main > .hero.section-first:first-child:not(.v45-community-hero) .hero-copy,
  main > .hero.section-first:first-child:not(.v45-community-hero) .hero-copy,
  #main > .hero.section-first:first-child:not(.v45-community-hero) .hero-visual,
  main > .hero.section-first:first-child:not(.v45-community-hero) .hero-visual{
    align-self:center!important;
  }
  #main > .hero.section-first:first-child:not(.v45-community-hero) .aom-v40-home-xau-card,
  main > .hero.section-first:first-child:not(.v45-community-hero) .aom-v40-home-xau-card{
    align-self:center!important;
  }

  /* COMMUNITY — V45.1 fixed the viewport height; V45.2 moves only the
     inner container 30px upward to match the Access-page optical center. */
  #main > .hero.section-first.v45-community-hero:first-child,
  main > .hero.section-first.v45-community-hero:first-child{
    min-height:calc(100svh - var(--v40-header-space,96px))!important;
    padding-top:24px!important;
    padding-bottom:24px!important;
    align-items:center!important;
  }
  .v45-community-hero > .container{
    width:min(1780px,calc(100% - (var(--wide-gutter,32px) * 2)))!important;
    position:relative!important;
    top:-30px!important;
  }
  .v45-community-hero .hero-copy{
    padding-top:0!important;
    padding-bottom:0!important;
  }

  /* CALENDAR — the V43 root and hero both reserve top space. V45.2 trims
     the remaining duplicated reserve by 42px. This lifts the headline,
     three summary cards, and the calendar panel together, without changing
     event data or card sizing. */
  .v43-calendar-root.section-first{
    padding-top:30px!important;
  }
  .v43-calendar-hero{
    padding-top:18px!important;
    align-items:center!important;
  }
  .v43-calendar-copy{
    justify-content:center!important;
  }
  .v43-calendar-summary{
    align-content:center!important;
  }

  /* ACCESS is deliberately untouched: it is the visual reference. */
}

@media (max-width:900px){
  /* Preserve the existing responsive/mobile layout. */
  .v43-calendar-root.section-first{padding-top:inherit}
}
