/* Staging-only Kadence full-section menu; native mobile menu remains available. */
@media (min-width: 1025px) {
  /*
   * The full-width desktop panel itself conveys expandability.
   * Suppress native Kadence top-level chevrons, but do not touch the
   * mobile/off-canvas submenu disclosure buttons.
   * The mega script adds csc-mega-ready only once the panel is functional.
   */
  #site-navigation .primary-menu-container.csc-mega-ready > ul.menu > li.menu-item-has-children > a .dropdown-nav-toggle,
  #site-navigation .primary-menu-container.csc-mega-ready > ul.menu > li.menu-item-has-children > a .menu-item-dropdown-toggle,
  #site-navigation .primary-menu-container.csc-mega-ready > ul.menu > li.menu-item-has-children > a > .kadence-svg-iconset {
    display: none !important;
  }
  /* Hide native cascading flyouts only after the JS enhancement is ready. */
  #site-navigation .primary-menu-container.csc-mega-ready ul.sub-menu {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
  #site-navigation .csc-mega-active > a {
    text-decoration: underline;
    text-underline-offset: 0.3em;
  }
  .csc-mega-panel {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 99990;
    box-sizing: border-box;
    /* High-contrast navigation surface against the site's blue header. */
    background: #f7f5ef;
    color: #213b5c;
    border-top: 3px solid #c49b45;
    box-shadow: 0 14px 30px rgba(11, 35, 62, .28);
    max-height: min(72dvh, var(--csc-mega-room, 65vh));
    overscroll-behavior: contain;
    overflow-y: auto;
  }
  .csc-mega-panel[hidden] { display: none !important; }
  .csc-mega-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
    gap: 1.7rem;
    max-width: 1220px;
    margin: auto;
    padding: 1.7rem clamp(1.5rem, 4vw, 3rem) 2rem;
  }
  .csc-mega-column { min-width: 0; }
  .csc-mega-heading {
    color: #213b5c;
    font: inherit;
    font-size: .94rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    border-bottom: 2px solid #c49b45;
    margin: 0 0 .7rem;
    padding-bottom: .45rem;
  }
  .csc-mega-heading-link, .csc-mega-plain > a {
    color: #213b5c !important;
    text-decoration: none;
  }
  .csc-mega-plain { color: #213b5c; margin-bottom: .6rem; font-weight: 600; }
  .csc-mega-links { list-style: none; margin: 0; padding: 0; }
  .csc-mega-links li { margin: 0; padding: 0; }
  .csc-mega-links .csc-mega-link {
    color: #213b5c !important;
    display: block;
    padding: .38rem .35rem;
    line-height: 1.4;
    border-radius: 4px;
    text-decoration: none;
    overflow-wrap: anywhere;
  }
  .csc-mega-links .csc-mega-link:is(:hover, :focus-visible),
  .csc-mega-heading-link:is(:hover, :focus-visible) {
    background: rgba(33,59,92,.11);
    color: #122a47 !important;
    outline: 2px solid transparent;
    outline-offset: 2px;
  }
  .csc-mega-links .csc-mega-link:focus-visible,
  .csc-mega-heading-link:focus-visible {
    outline-color: #b58a2d;
  }
  .csc-mega-indented { padding-left: .7rem !important; }
}
/* Kadence's hamburger drawer: guarantee menu can scroll on shorter viewports. */
#mobile-drawer .drawer-inner { max-height: 100dvh; overflow-y: auto; overscroll-behavior: contain; }
#mobile-drawer .drawer-content { min-height: 0; }
#mobile-drawer .mobile-navigation a,
#mobile-drawer .mobile-navigation button { min-height: 42px; }
