
/* Dropdown-only changes. Header/home/hero/planner intentionally untouched. */
@media (min-width:1025px){
  .sc_layouts_menu_nav .soke-v39-empty,
  #mega-menu-wrap-primary .soke-v39-empty{
    display:none!important; width:0!important; height:0!important;
    min-width:0!important; min-height:0!important; margin:0!important;
    padding:0!important; border:0!important;
  }

  /* Reflow surviving generated cards into a clean responsive grid */
  .sc_layouts_menu_nav > li > ul.soke-v39-grid,
  #mega-menu-wrap-primary ul.mega-sub-menu.soke-v39-grid{
    display:grid!important;
    grid-template-columns:repeat(5,minmax(150px,1fr))!important;
    gap:16px!important;
    align-items:stretch!important;
    height:auto!important;
    min-height:0!important;
  }
  .soke-v39-grid > li,
  .soke-v39-grid > .soke-v33-flat-item,
  .soke-v39-grid > .soke-v34-flat-item{
    width:auto!important; max-width:none!important; min-width:0!important;
    margin:0!important;
  }

  /* Text must stay inside each card */
  .soke-v39-grid a,
  .soke-v39-grid .mega-menu-link{
    white-space:normal!important;
    overflow-wrap:anywhere!important;
    word-break:normal!important;
    line-height:1.25!important;
    text-align:center!important;
    max-width:100%!important;
    box-sizing:border-box!important;
  }
}
@media (min-width:1025px) and (max-width:1350px){
  .sc_layouts_menu_nav > li > ul.soke-v39-grid,
  #mega-menu-wrap-primary ul.mega-sub-menu.soke-v39-grid{
    grid-template-columns:repeat(4,minmax(145px,1fr))!important;
  }
}
