/* Third-level service navigation. Mobile panels use the existing MmenuLight. */
@media (min-width: 992px) {
  .top-menu > li:focus-within > ul { display:block; opacity:1; }
  .top-menu .bal-solutions { position:relative; break-inside:avoid; height:auto; }
  .top-menu .bal-solutions > .bal-solutions-label { display:block; padding:0 20px 0 0; color:#212529!important; cursor:default; font-weight:500; line-height:1.5; white-space:nowrap; }
  .new-header .top-menu .bal-solutions > .bal-solutions-label { font-size:14px; padding-top:0; padding-bottom:0; }
  .top-menu .bal-solutions > .bal-solutions-label::after { content:""; position:absolute; right:9px; top:50%; width:6px; height:6px; border-top:1px solid currentColor; border-right:1px solid currentColor; transform:translateY(-50%) rotate(45deg); }
  .top-menu .bal-solutions:hover > .bal-solutions-label,
  .top-menu .bal-solutions:focus-within > .bal-solutions-label { color:#12A339!important; }
  .top-menu .bal-solutions > .bal-solutions-submenu { display:none!important; position:absolute; z-index:1010; top:0; left:100%; right:auto; width:max-content; min-width:290px; max-width:calc(100vw - 24px); margin:0; padding:8px 0!important; columns:1; list-style:none; background:#fff; border:1px solid #12A339; opacity:0; animation:none!important; }
  .top-menu .bal-solutions:hover > .bal-solutions-submenu,
  .top-menu .bal-solutions:focus-within > .bal-solutions-submenu,
  .top-menu .bal-solutions.is-open > .bal-solutions-submenu { display:block!important; opacity:1; }
  .top-menu .bal-solutions.opens-left > .bal-solutions-submenu { left:auto; right:100%; }
  .top-menu .bal-solutions > .bal-solutions-submenu > li { float:none; height:auto; margin:0!important; padding:0!important; background:#fff; }
  .top-menu .bal-solutions > .bal-solutions-submenu > li > a { display:block; padding:6px 12px!important; font-size:14px; line-height:1.5; font-weight:500; color:#212529!important; text-align:left; white-space:nowrap; }
  .top-menu .bal-solutions > .bal-solutions-submenu > li > a:hover,
  .top-menu .bal-solutions > .bal-solutions-submenu > li > a:focus-visible { color:#12A339!important; text-decoration:underline; }
}
@media (min-width:992px) {
  /* A grid keeps the menu rows fixed while an absolute flyout opens. */
  .new-header .top-menu > li:first-child > .second-menu { columns:initial!important; grid-template-rows:repeat(9,auto); grid-template-columns:repeat(2,max-content); grid-auto-flow:column; gap:8px 24px; }
  .new-header .top-menu > li:first-child:hover > .second-menu,
  .new-header .top-menu > li:first-child:focus-within > .second-menu { display:grid!important; }
  .new-header .top-menu > li:first-child > .second-menu > li { margin:0!important; }
}

/* Keep the finishing menu aligned across both site stylesheet generations. */
@media (min-width:992px) {
  .new-header .top-menu > li:first-child > .second-menu > li > a,
  .new-header .top-menu > li:first-child > .second-menu > li > span.active {
    padding:0!important;
  }
  .new-header .top-menu > li:first-child > .second-menu > li.bal-solutions > .bal-solutions-label {
    padding:0 20px 0 0!important;
    font-size:14px;
    line-height:1.5;
  }
}

/* Use the home-page spacing for every desktop service dropdown. */
@media (min-width:992px) {
  .new-header .top-menu .second-menu li {border:0;}
  .new-header .top-menu > li:not(:first-child) > .second-menu {
    columns:initial!important;
    width:max-content;
    min-width:0;
  }
  .new-header .top-menu > li > .second-menu > li > a,
  .new-header .top-menu > li > .second-menu > li > span.active {
    padding:0!important;
    font-size:14px;
    line-height:1.5;
    font-weight:500;
  }
}

/* Mobile navigation uses the same Montserrat file as the home page header. */
@media (max-width:991.98px) {
  #my-menu {font-family:SiteHeaderMontserrat,SiteHeaderRoboto,sans-serif;}
}

/* Emphasise only the submenu indicator; keep the label at its normal weight and colour. */
@media (min-width:992px) {
  .new-header .top-menu > li:first-child > .second-menu > li.bal-solutions > .bal-solutions-label {
    padding-right:36px!important;
    color:#212529!important;
    font-weight:500;
    cursor:pointer;
  }
  .new-header .top-menu > li:first-child > .second-menu > li.bal-solutions > .bal-solutions-label::after {
    right:0; top:50%; width:24px; height:22px;
    border:0; border-radius:4px; transform:translateY(-50%);
    background:#12A339 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m6 4 4 4-4 4' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px 16px no-repeat;
    pointer-events:none;
  }
}
@media (max-width:991.98px) {
  #my-menu.mm-spn .bal-solutions::before {
    width:24px; height:22px; top:25px; right:20px;
    border:0; border-radius:4px; transform:translateY(-50%); opacity:1;
    background:#12A339 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m6 4 4 4-4 4' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px 16px no-repeat;
    pointer-events:none;
  }
}

/* Match the normal hover/focus colour of neighbouring menu items. */
@media (min-width:992px) {
  .new-header .top-menu > li:first-child > .second-menu > li.bal-solutions:hover > .bal-solutions-label,
  .new-header .top-menu > li:first-child > .second-menu > li.bal-solutions:focus-within > .bal-solutions-label {
    color:#12A339!important;
  }
}

/* Third-level links use colour on hover/focus, without an underline. */
@media (min-width:992px) {
  .new-header .top-menu .bal-solutions > .bal-solutions-submenu > li > a:hover,
  .new-header .top-menu .bal-solutions > .bal-solutions-submenu > li > a:focus,
  .new-header .top-menu .bal-solutions > .bal-solutions-submenu > li > a:focus-visible {
    color:#12A339!important;
    text-decoration:none!important;
  }
}
