/* Applications menu only. Existing Blocksy hover, focus and mobile accordion remain native. */
@media (min-width: 900px) {
  #header [data-device="desktop"] .menu-item-4298 {
    position: static;
  }
  #header [data-device="desktop"] .menu-item-4298 > .sub-menu {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 24px;
    row-gap: 0;
    width: min(1180px, calc(100vw - 48px));
    max-width: 1180px;
    inset-inline: 0 !important;
    margin-inline: auto;
    padding: 16px;
    box-sizing: border-box;
    background: #fff;
    border: 0;
    border-radius: 0;
    box-shadow: 0 3px 8px rgb(0 0 0 / 6%);
  }
  #header [data-device="desktop"] .menu-item-4298 > .sub-menu > li {
    min-width: 0;
    height: auto;
    padding: 0;
    border: 0;
    overflow: visible;
  }
  #header [data-device="desktop"] .menu-item-4298 > .sub-menu > li > a {
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 64px;
    height: auto;
    padding: 16px 18px;
    margin: 0;
    box-sizing: border-box;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
    hyphens: auto;
    text-align: start;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
  }
  #header [data-device="desktop"] .menu-item-4298 > .sub-menu > li > a:is(:hover, :focus-visible) {
    color: var(--theme-link-hover-color);
    background: #fafbfc;
  }
  #header [data-device="desktop"] .menu-item-4298 > a {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
    min-width: 0;
  }
  #header [data-device="desktop"] .menu-item-4298 > .hsp-applications-nested {
    inset-inline-start: var(--hsp-app-menu-offset, 0px) !important;
    inset-inline-end: auto !important;
    inset-block-start: var(--hsp-app-menu-top, 100%);
    margin-inline: 0;
    transform: none !important;
  }
}
@media (min-width: 900px) and (max-width: 1199px) {
  #header [data-device="desktop"] .menu-item-4298 > .sub-menu {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: calc(100vw - 32px);
  }
}
/* Text wrapping only; no changes to the mobile accordion display or events. */
.mobile-menu .menu-item-4298 a {
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
  text-align: start;
}
