/* Mobile off-canvas menu: solid site gray, full viewport, readable and clickable. */
@media (max-width: 1023px) {
  #root div.fixed.inset-0.z-50.bg-background {
    position: fixed !important;
    inset: 0 !important;
    z-index: 99999 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    box-sizing: border-box !important;
    overflow-y: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
    background: #e5e7eb !important;
    background-color: #e5e7eb !important;
    background-image: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    color: #1f2937 !important;
    isolation: isolate !important;
  }

  #root div.fixed.inset-0.z-50.bg-background > div:first-child {
    position: relative !important;
    z-index: 1 !important;
    background: #e5e7eb !important;
    background-color: #e5e7eb !important;
  }

  #root div.fixed.inset-0.z-50.bg-background nav[aria-label="Menu mobile"] {
    position: relative !important;
    z-index: 1 !important;
    min-height: calc(100vh - 64px) !important;
    min-height: calc(100dvh - 64px) !important;
    background: #e5e7eb !important;
    background-color: #e5e7eb !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  #root div.fixed.inset-0.z-50.bg-background nav[aria-label="Menu mobile"] a,
  #root div.fixed.inset-0.z-50.bg-background nav[aria-label="Menu mobile"] button {
    position: relative !important;
    z-index: 2 !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  #root div.fixed.inset-0.z-50.bg-background nav[aria-label="Menu mobile"] a:not(.bg-primary),
  #root div.fixed.inset-0.z-50.bg-background nav[aria-label="Menu mobile"] button:not(.bg-primary) {
    color: #1f2937 !important;
  }

  #root div.fixed.inset-0.z-50.bg-background nav[aria-label="Menu mobile"] input {
    position: relative !important;
    z-index: 2 !important;
    background: #ffffff !important;
    color: #171717 !important;
    opacity: 1 !important;
  }
}
