/* Shared mobile navigation. Desktop rules remain untouched. */
@media(max-width:980px){
 html #nav .menuBtn,html #nav.stuck .menuBtn{width:82px;height:44px;min-height:44px;border-radius:12px;display:flex;align-items:center;justify-content:center;gap:10px;padding:0 10px;background:#edf3fc!important;color:#152849;border:1px solid #dce6f5;font:500 13px/1 "Outfit",sans-serif}
 html #nav .menuBtn>i{display:none}
 html #nav .menuBtn svg{width:20px;height:20px;overflow:visible;flex:none}
 html #nav .menuBtn path{stroke:currentColor;stroke-width:1.8;stroke-linecap:round;transform-origin:10px 10px;transition:transform .2s}
 html #nav.open .menuBtn path:first-child{transform-origin:10px 6px;transform:translateY(4px) rotate(45deg)}
 html #nav.open .menuBtn path:last-child{transform-origin:10px 14px;transform:translateY(-4px) rotate(-45deg)}
 html #nav .menuBtn:focus-visible{outline:3px solid #85baff;outline-offset:2px}
 html #sheet{top:var(--mobile-menu-top,78px);width:calc(100% - 24px);max-width:560px;max-height:calc(100svh - var(--mobile-menu-top,78px) - 12px);padding:20px;border-radius:20px;overscroll-behavior:contain;box-shadow:0 18px 50px -15px #10234840,0 0 0 1px #e3eaf4}
 html #sheet>a:not(.ncta){font-size:22px;padding:2px 0 16px;margin:0}
 html #sheet .sps{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:0}
 html #sheet .sps a{display:flex;align-items:center;gap:8px;min-height:52px;padding:9px;border-radius:12px;color:#172744;background:#f4f7fc;font-size:13px;line-height:1.2}
 html #sheet .sps a img{width:26px;height:26px;flex:none;object-fit:contain}
 html #sheet .sps a.cur,html #sheet .sps a[aria-current=page]{background:#e9f0ff;color:#145de9}
 html #sheet>.ncta{min-height:48px;margin-top:16px;border-radius:12px;background:#145de9;box-shadow:none}
 /* r155: Our story sits under the products as its own line, with room above it. On the narrowest phones the two columns
    could not shrink below their longest word, so Prequalification ran off the right edge: the columns may now shrink,
    and under 350 wide the sheet and its tiles are set a little tighter so that word fits. */
 html #sheet>a[data-label="Our story"]{margin-top:16px}
 html #sheet .sps{grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr)}
 html #sheet .sps a span{min-width:0}
 @media (max-width:350px){html #sheet{padding:18px 14px}html #sheet .sps a{gap:6px;padding:8px 7px;font-size:12px}html #sheet .sps a img{width:22px;height:22px}}
}
@media(max-width:640px){
 html #nav,html #nav.stuck,html #nav.open,html #nav.tw-stk,html #nav.light{min-height:56px;padding-right:6px}
 html #nav.stuck .logo{width:120px;height:18px}
}
@media(prefers-reduced-motion:reduce){html #nav .menuBtn path{transition:none}}
/* r190 (Will, 24 November: "on mobile in the hero, sometimes when I scroll to the top, the menu gets really jumpy").
   The bar was pinned to the screen and a script moved it down under the demo banner on every scroll event, with a
   0.34s ease on that move, so near the top it kept gliding after the finger, and the phone's bounce at the top pulled
   the banner away from it. On a phone the bar now sits in the page right under the banner and the browser keeps it
   at the top once the banner has gone (sticky), so the two move as one with no script. It takes no room of its own,
   so nothing below it moves. Wider screens keep their floating bar; it follows the banner at once instead of easing. */
@media(max-width:640px){
 html body #nav.gnav,html body #nav.gnav.stuck,html body #nav.gnav.tw-stk,html body #nav.gnav.open,html body #nav.gnav.light{
  position:sticky!important;top:0!important;left:auto!important;right:auto!important;transform:none!important;
  margin-bottom:-56px!important}
}
/* r190 (Will, 24 November: "a better design for the Our Story ... an icon like the other ones and ... full width (like
   the width of design studio and homeowner experience)"). Our story is a tile like the products, across both columns. */
@media(max-width:980px){
 html #sheet>a.sps-os{display:flex;align-items:center;gap:8px;min-height:52px;margin:6px 0 0;padding:9px;border-radius:12px;
  color:#172744;background:#f4f7fc;font-size:13px;line-height:1.2;font-weight:500;letter-spacing:0}
 html #sheet>a.sps-os img{width:26px;height:26px;flex:none;object-fit:contain}
 html #sheet>a.sps-os.cur,html #sheet>a.sps-os[aria-current=page]{background:#e9f0ff;color:#145de9}
 @media (max-width:350px){html #sheet>a.sps-os{gap:6px;padding:8px 7px;font-size:12px}html #sheet>a.sps-os img{width:22px;height:22px}}
}
/* r192 (Will, 24 November, 2:58 pm): the Our story tile is night water with the story's whale swimming in it
   (mobile-nav150.js draws the whale) */
@media(max-width:980px){
 html #sheet>a.sps-os.sos{position:relative;overflow:hidden;isolation:isolate;min-height:84px;padding:0 18px;font-size:22px;font-weight:600;letter-spacing:-.02em;
  background:linear-gradient(100deg,#030a2c,#0b2a7a 62%,#123fa6);color:#fff}
 html #sheet>a.sps-os.sos img{display:none}
 html #sheet>a.sps-os.sos>span{position:relative;z-index:1;text-shadow:0 1px 10px rgba(2,6,30,.45)}
 html #sheet>a.sps-os.sos .sos-cv{position:absolute;left:0;top:0;width:100%;height:100%;z-index:0;pointer-events:none}
}
@media(min-width:641px){
 html body #nav.gnav[style*="top"]{transition:height .34s cubic-bezier(.3,.7,.2,1),width .34s cubic-bezier(.3,.7,.2,1),border-radius .34s cubic-bezier(.3,.7,.2,1),padding .34s,background .3s,box-shadow .3s!important}
}
