/* Website 2026 v6_288: iPad portrait layout and tablet hamburger reliability.
   Keep phone and wide desktop treatments unchanged. */

/* The prior 901–1179px CSS combined position:fixed, top/bottom and an
   inherited auto height. On iPad this collapsed the opened menu to 30px.
   Use an explicit bounded, scrollable tablet panel instead. */
@media (min-width:701px) and (max-width:1179px) {
  .site-header.standard-main-nav {
    z-index:10000!important;
  }
  .site-header.standard-main-nav .mobile-menu-toggle {
    display:flex!important;
    width:44px!important;
    height:44px!important;
    min-width:44px!important;
    min-height:44px!important;
    position:relative!important;
    z-index:10002!important;
    pointer-events:auto!important;
    touch-action:manipulation!important;
  }
  .site-header.standard-main-nav #primary-nav.nav-links {
    position:fixed!important;
    top:78px!important;
    bottom:auto!important;
    left:auto!important;
    right:16px!important;
    width:min(420px, calc(100vw - 32px))!important;
    height:min(520px, calc(100dvh - 98px))!important;
    max-height:calc(100dvh - 98px)!important;
    min-height:0!important;
    overflow-x:hidden!important;
    overflow-y:auto!important;
    overscroll-behavior:contain!important;
    -webkit-overflow-scrolling:touch!important;
    align-items:stretch!important;
    flex-direction:column!important;
    z-index:10001!important;
    pointer-events:auto!important;
    visibility:visible!important;
    padding:10px 12px 18px!important;
    box-sizing:border-box!important;
    background:#fff!important;
    border:1px solid #dce5ef!important;
    border-radius:16px!important;
    box-shadow:0 20px 60px rgba(10,24,48,.18)!important;
  }
  .site-header.standard-main-nav #primary-nav.nav-links:not(.mobile-open) {
    display:none!important;
  }
  .site-header.standard-main-nav #primary-nav.nav-links.mobile-open {
    display:flex!important;
  }
  .site-header.standard-main-nav #primary-nav.nav-links > .dropdown,
  .site-header.standard-main-nav #primary-nav.nav-links > a {
    flex-shrink:0!important;
  }
  .site-header.standard-main-nav .dropdown-menu,
  .site-header.standard-main-nav #solutions-menu.solutions-simple-menu-v6279 {
    position:static!important;
    max-height:none!important;
    overflow:visible!important;
  }
}

/* Tablet portrait: retain the clear single-column story, but don't stretch
   the home orb into a second, screen-height hero. Wide desktop and phone are
   intentionally unaffected. */
@media (min-width:701px) and (max-width:1179px) and (orientation:portrait) {
  .home-hero.home-hero-swap {
    min-height:0!important;
    height:auto!important;
    padding-top:40px!important;
    padding-bottom:28px!important;
  }
  .home-hero.home-hero-swap .home-hero-grid {
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    gap:0!important;
    min-height:0!important;
    height:auto!important;
    align-items:start!important;
  }
  .home-hero.home-hero-swap .hero-copy {
    width:100%!important;
    max-width:760px!important;
    margin-left:auto!important;
    margin-right:auto!important;
  }
  .home-hero.home-hero-swap .home-orb-stage.hero-system {
    width:100%!important;
    height:320px!important;
    min-height:320px!important;
    max-height:320px!important;
    margin-top:8px!important;
    margin-bottom:0!important;
    position:relative!important;
  }
  .home-hero.home-hero-swap .home-orb-stage .home-brand-orb {
    position:absolute!important;
    width:520px!important;
    height:520px!important;
    min-width:520px!important;
    min-height:520px!important;
    top:50%!important;
    left:50%!important;
    right:auto!important;
    bottom:auto!important;
    margin:0!important;
    transform:translate(-50%,-50%) scale(.60)!important;
    transform-origin:center!important;
  }
  .home-hero.home-hero-swap .home-orb-stage .home-orb-outer-edge,
  .home-hero.home-hero-swap .home-orb-stage .home-orb-ambient,
  .home-hero.home-hero-swap .home-orb-stage .home-orb-text-guard {
    display:none!important;
  }
}
