/* The disclosure's accessible state is authoritative, including before the
   Mechanical runtime initializes. Do not leave an expanded, invisible panel. */
html .ebt-imported-page #dingmans-nav-v2 .dnm-trigger[aria-expanded="true"] + .dnm-dropdown {
  display: block !important;
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}
html .ebt-imported-page #dingmans-nav-v2 .dnm-trigger[aria-expanded="false"] + .dnm-dropdown {
  /* Match the theme's !important hover/focus display rule so closed panels
     cannot create an invisible, full-height accordion row. */
  display: none !important;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}
html .ebt-imported-page #dingmans-nav-v2 .dnm-trigger[aria-expanded="false"]::after {
  transform: rotate(45deg) translateY(-1px);
}
html .ebt-imported-page #dingmans-nav-v2 .dnm-trigger[aria-expanded="true"]::after {
  transform: rotate(-135deg) translateY(-1px);
}

@media (max-width: 1180px) {
  /* Collision's viewport-bounded header: keep the logo/close button in place
     and let one navigation area scroll, with natural-height accordion rows. */
  html .ebt-imported-page #dingmans-nav-v2.is-mobile-open .dnm-bar {
    height: calc(100vh - var(--wp-admin--admin-bar--height, 0px));
    height: calc(100dvh - var(--wp-admin--admin-bar--height, 0px));
    grid-template-rows: auto minmax(0, 1fr);
    align-content: start;
    overflow: hidden !important;
  }
  html .ebt-imported-page #dingmans-nav-v2.is-mobile-open .dnm-nav {
    min-height: 0;
    max-height: 100%;
    align-self: stretch;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    scrollbar-width: thin;
    scrollbar-color: var(--dnm-accent) var(--dnm-bg);
    padding-bottom: max(20px, env(safe-area-inset-bottom));
  }
  html .ebt-imported-page #dingmans-nav-v2 .dnm-links {
    height: auto !important;
    min-height: 0;
    align-content: start;
  }
  html .ebt-imported-page #dingmans-nav-v2 .dnm-trigger + .dnm-dropdown {
    max-height: none;
    overflow: visible;
    transform: none;
    transition: none;
  }
  html .ebt-imported-page #dingmans-nav-v2 .dnm-about-grid {
    grid-auto-rows: auto;
  }
}
@media (max-width: 640px) {
  /* The removed fixed action strip no longer needs clearance below the footer. */
  html .ebt-imported-page #dingmans-footer-v4 { padding-bottom: 0; }
}
