/* Gentill Mob Production Cleanup v5 - mobile menu, copy safety, no horizontal overflow */
html,
body,
.gentill-mob-page {
  max-width: 100%;
  overflow-x: clip;
}

@supports not (overflow-x: clip) {
  html,
  body,
  .gentill-mob-page { overflow-x: hidden; }
}

.gentill-mob-page *,
.gentill-mob-page *::before,
.gentill-mob-page *::after {
  box-sizing: border-box;
}

.gentill-mob-nav,
.gentill-mob-shell,
.gentill-mob-section,
.gentill-mob-main {
  min-width: 0;
  max-width: 100%;
}

@media (max-width: 720px) {
  .gentill-mob-header {
    overflow: visible;
  }

  .gentill-mob-nav {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: visible;
  }

  .gentill-mob-logo {
    min-width: 0 !important;
    max-width: calc(100vw - 9.5rem) !important;
  }

  .gentill-mob-logo picture,
  .gentill-mob-logo img {
    max-width: 100% !important;
    height: auto !important;
  }

  .gentill-mob-nav-menu {
    position: static !important;
    max-width: 100%;
    flex: 0 0 auto;
  }

  .gentill-mob-nav-menu summary {
    max-width: 8.1rem;
    min-width: auto !important;
    width: auto !important;
    white-space: nowrap;
  }

  .gentill-mob-nav-menu-panel {
    position: fixed !important;
    left: max(.75rem, env(safe-area-inset-left)) !important;
    right: max(.75rem, env(safe-area-inset-right)) !important;
    top: calc(4.75rem + env(safe-area-inset-top)) !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    max-height: calc(100dvh - 6rem) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
    transform-origin: top center !important;
  }

  .gentill-mob-nav-menu-panel nav,
  .gentill-mob-nav-menu-panel a,
  .gentill-mob-nav-menu-panel .gentill-mob-contact {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  body:has(.gentill-mob-nav-menu[open]) {
    overflow-x: hidden !important;
  }
}

.gentill-mob-section-head p,
.gentill-mob-panel p,
.gentill-mob-mini-card p,
.gentill-mob-model-card p,
.gentill-mob-faq-item p,
.gentill-mob-rule-panel p,
.gentill-commercial-note p {
  word-break: normal;
  overflow-wrap: anywhere;
}
