/* Mobile layer (31 Oct): the phone menu behind the burger, roomier footer links for thumbs,
   and a hint that the services bar scrolls sideways. Loaded after site.css on every page. */

/* phone menu: a panel that drops down from under the header */
.mnav{position:fixed;left:0;right:0;z-index:60;background:#ffffff;border-top:1px solid var(--line);
  box-shadow:0 24px 40px -18px rgba(9,68,65,.35);max-height:calc(100vh - var(--mnav-top,64px));overflow-y:auto;
  transform:translateY(-8px);opacity:0;visibility:hidden;transition:opacity .22s,transform .22s,visibility 0s .22s}
.mnav.is-open{transform:none;opacity:1;visibility:visible;transition:opacity .22s,transform .22s}
.mnav__list{list-style:none;margin:0;padding:8px 20px 4px}
.mnav__list>li>a{display:flex;align-items:center;justify-content:space-between;padding:15px 2px;font:600 17px/1.2 var(--text);
  color:var(--navy);text-decoration:none;border-bottom:1px solid var(--line)}
.mnav__list>li>a[aria-current="page"]{color:var(--blue)}
.mnav__list>li>a[aria-current="page"]::after{content:"";width:8px;height:8px;border-radius:50%;background:var(--orange)}
.mnav__sub{list-style:none;margin:0;padding:4px 0 10px 14px;border-bottom:1px solid var(--line)}
.mnav__sub a{display:block;padding:10px 2px;font:500 15.5px/1.3 var(--text);color:var(--slate);text-decoration:none}
.mnav__sub a[aria-current="page"]{color:var(--blue);font-weight:600}
.mnav__foot{display:grid;gap:12px;padding:18px 20px 24px}
.mnav__foot .btn{justify-content:center}
.mnav__foot .mnav__phone{display:block;text-align:center;padding:10px;font-weight:600;color:var(--blue);text-decoration:none}
.mnav-shade{position:fixed;inset:0;z-index:55;background:rgba(9,68,65,.35);opacity:0;visibility:hidden;transition:opacity .22s,visibility 0s .22s}
.mnav-shade.is-open{opacity:1;visibility:visible;transition:opacity .22s}
.burger{cursor:pointer;border-radius:10px}
.burger:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
html.mnav-lock,html.mnav-lock body{overflow:hidden}
@media (min-width:861px){.mnav,.mnav-shade{display:none}}

@media (max-width:860px){
  /* footer: links big enough for a thumb */
  .ftr ul{gap:0}
  .ftr ul a{display:inline-block;padding:9px 0}
  .ftr__bottom a{display:inline-block;padding:8px 0}
  .ftr .social a{width:44px;height:44px}
  .cta__phone,.hero .hero__phone{display:inline-block;padding:10px 4px}
  .crumbs a{display:inline-block;padding:10px 0}

  /* services bar: a soft fade on the right says "there is more, swipe" */
  .subnav{position:relative}
  .subnav::after{content:"";position:absolute;top:0;right:0;bottom:0;width:44px;pointer-events:none;
    background:linear-gradient(90deg,rgba(244,253,252,0),#F4FDFC 80%)}
}

/* 31.10 evening: services bar on a phone = one button that opens the list (menu.js), no hidden sideways strip */
.subnav__btn{display:none}
@media (max-width:860px){
  .subnav::after{display:none}
  .subnav__btn{display:flex;align-items:center;gap:10px;width:100%;min-height:52px;padding:0 16px;border:0;background:#F4FDFC;font:600 15.5px/1.2 var(--text);color:var(--blue);cursor:pointer;text-align:left}
  .subnav__btn>svg:first-child{width:20px;height:20px;color:var(--orange);flex:0 0 auto}
  .subnav__hint{margin-left:auto;font-weight:500;font-size:13.5px;color:#6B978D}
  .subnav__chev{width:20px;height:20px;flex:0 0 auto;color:var(--blue);transition:transform .25s}
  .subnav.is-open .subnav__chev{transform:rotate(180deg)}
  .subnav__in{display:none;flex-direction:column;gap:0;padding:4px 0 10px;overflow:visible}
  .subnav.is-open .subnav__in{display:flex}
  .subnav__in a{min-height:48px;padding:0 16px;border-bottom:0;border-left:3px solid transparent}
  .subnav__in a[aria-current]{border-left-color:var(--orange);background:#ffffff}
}

/* 31.10 evening: phone hero = one continuous night sky; the text has no box of its own and the 3D hub sits
   below it, smaller, fading in from the top, so nothing gets cut */
@media (max-width:860px){
  .hero__text::before{display:none}
  .hero__text{padding-bottom:350px}
  .hero__canvas,.hero__still{height:340px;-webkit-mask-image:linear-gradient(180deg,transparent 0,#000000 14%);mask-image:linear-gradient(180deg,transparent 0,#000000 14%)}
}

/* 31.10: on narrow phones (360 px) the two-column industries list was wider than the screen; the columns may now
   shrink and long names wrap, and nothing on the page can push it sideways any more */
@media (max-width:860px){
  .ind2__grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ind2__grid li{min-width:0;overflow-wrap:break-word;hyphens:auto}
  html,body{overflow-x:clip}
}
@media (max-width:440px){.ind2__grid{column-gap:12px}.ind2__grid li{font-size:15px;gap:9px;letter-spacing:-.01em}.ind2__grid svg{width:24px;height:24px}}
@media (max-width:370px){.ind2__grid li{font-size:14px;gap:8px}.ind2__grid svg{width:22px;height:22px}}

/* full check 31.10: the last few taps under 40 px on a phone (logo, "or call", contact links, footer Privacy Policy) */
@media (max-width:860px){
  .logo{min-height:44px}
  .cta__phone,.ftr__bottom a{display:inline-flex;align-items:center;min-height:44px}
  .dside__list a{display:inline-flex;align-items:center;min-height:44px}
}
