/* NUVIA — 2026-11-01, fullscreen mobile navigation.
   Air-style white sheet from the very top; no burger-to-X morph.
   Uses the existing NUVIA links, submenu state and mobile toggle.
   Desktop and the About flying wordmark's native anchor remain unchanged. */
@media (max-width:820px) {
  /* Keep the document's original scrollbar gutter while the menu is open.
     The former overflow:hidden removed the native thumb and shifted header controls. */
  html.nv-fullscreen-menu-open {
    overflow-y:scroll!important;
    scrollbar-color:#929292 #fff;
  }
  html.nv-fullscreen-menu-open::-webkit-scrollbar-track {background:#fff;}
  html.nv-fullscreen-menu-open::-webkit-scrollbar-thumb {background:#929292;}
  /* Fixed grid columns prevent CTA and close control from changing their
     position when the panel appears, a submenu expands, or the address bar moves. */
  html body #nuvia-react-navigation {
    isolation:isolate!important;
    overflow:visible!important;
    top:calc(env(safe-area-inset-top,0px) + 12px)!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 108px 44px!important;
    column-gap:4px!important;
    row-gap:0!important;
    align-items:center!important;
    justify-content:stretch!important;
    flex-wrap:nowrap!important;
  }
  html body #nuvia-react-navigation::before {
    content:""!important;
    position:fixed!important;
    inset:0!important;
    width:100vw!important;
    /* Content-height sheet, not the previous 405px ceiling. Large accordions
       use a scrollable inner viewport only after reaching the screen edge. */
    height:var(--nv-mobile-sheet-height,405px)!important;
    max-height:calc(100dvh - 12px)!important;
    z-index:0!important;
    background:#fff!important;
    border:0!important;
    border-radius:0 0 12px 12px!important;
    box-shadow:0 12px 25px rgba(4,20,38,.10)!important;
    opacity:1!important;
    visibility:hidden!important;
    transform:translate3d(0,-102%,0)!important;
    transition:height 460ms cubic-bezier(.22,.82,.24,1),
               transform 240ms cubic-bezier(.2,.75,.28,1),
               visibility 0s linear 240ms!important;
    pointer-events:none!important;
  }
  html body #nuvia-react-navigation[data-mobile-open="true"]::before {
    visibility:visible!important;
    transform:translate3d(0,0,0)!important;
    transition:height 460ms cubic-bezier(.22,.82,.24,1),
               transform 240ms cubic-bezier(.2,.75,.28,1),
               visibility 0s linear 0s!important;
    pointer-events:auto!important;
  }
  html body #nuvia-react-navigation .nv-header-brand,
  html body #nuvia-react-navigation .nv-sample-cta--mobile,
  html body #nuvia-react-navigation .nv-mobile-toggle {
    position:relative!important;
    z-index:3!important;
  }
  /* A tighter 108px CTA, not the former 132px pill. */
  html body #nuvia-react-navigation .nv-sample-cta--mobile {
    width:108px!important;min-width:108px!important;max-width:108px!important;
    flex:0 0 108px!important;
    height:36px!important;min-height:36px!important;
    padding:0 8px!important;
    margin:0!important;
    border-radius:7px!important;
    font-size:12px!important;font-weight:500!important;
    white-space:nowrap!important;
  }
  html body #nuvia-react-navigation .nv-sample-long {display:none!important;}
  html body #nuvia-react-navigation .nv-sample-short {display:inline!important;}
  html body #nuvia-react-navigation[data-mobile-open="true"] .nv-sample-cta--mobile {
    background:#111!important;color:#fff!important;
    border-color:#111!important;
    -webkit-text-fill-color:#fff!important;
    box-shadow:none!important;
    transition:background-color .28s cubic-bezier(.22,.8,.24,1),
               border-color .28s ease,color .28s ease,
               -webkit-text-fill-color .28s ease!important;
  }
  /* Closed menu: white CTA becomes black on hover/press, the exact opposite
     of the open sheet's black-to-clear interaction. This selector outranks the
     ink-background rule from nuvia-i18n.css, which previously kept it white.
     The existing ::after glint retains its original 720ms horizontal sweep. */
  @media(hover:hover) and (pointer:fine){
    html body #nuvia-react-navigation:not([data-mobile-open="true"]) .nv-sample-cta--mobile:hover{
      background:#111!important;
      border-color:#111!important;
      color:#fff!important;
      -webkit-text-fill-color:#fff!important;
      --nv-sample-glint:rgba(255,255,255,.28);
      box-shadow:0 4px 13px rgba(12,22,32,.14)!important;
    }
  }
  html body #nuvia-react-navigation:not([data-mobile-open="true"]) .nv-sample-cta--mobile:is(:active,:focus-visible){
    background:#111!important;
    border-color:#111!important;
    color:#fff!important;
    -webkit-text-fill-color:#fff!important;
    --nv-sample-glint:rgba(255,255,255,.28);
    box-shadow:0 4px 13px rgba(12,22,32,.14)!important;
  }
  /* On the white open sheet, invert the black Sample CTA to a clear outline
     on interaction. Keep the closed-menu CTA and all geometry untouched. */
  @media(hover:hover) and (pointer:fine){
    html body #nuvia-react-navigation[data-mobile-open="true"] .nv-sample-cta--mobile:hover{
      background:transparent!important;
      color:#111!important;-webkit-text-fill-color:#111!important;
      border-color:#111!important;box-shadow:none!important;
    }
  }
  html body #nuvia-react-navigation[data-mobile-open="true"] .nv-sample-cta--mobile:active,
  html body #nuvia-react-navigation[data-mobile-open="true"] .nv-sample-cta--mobile:focus-visible{
    background:transparent!important;
    color:#111!important;-webkit-text-fill-color:#111!important;
    border-color:#111!important;box-shadow:none!important;
  }
  /* Reuse the shared 720ms left-to-right glint from nuvia-i18n.css.
     Once the black CTA becomes transparent, its original white highlight
     disappears against the white drawer; a dark translucent highlight
     restores the same visible sweep without changing timing or motion. */
  html body #nuvia-react-navigation[data-mobile-open="true"] .nv-sample-cta--mobile:is(:hover,:active,:focus-visible)::after{
    background:linear-gradient(107deg,
      transparent 22%,
      rgba(17,17,17,.085) 43%,
      rgba(17,17,17,.22) 52%,
      transparent 78%)!important;
    opacity:1!important;
    transform:translate3d(105%,0,0)!important;
  }
  /* The 44px touch zone is retained; visual shell is 36px. */
  html body #nuvia-react-navigation .nv-mobile-toggle,
  html body #nuvia-react-navigation[data-mobile-open="true"] .nv-mobile-toggle {
    flex:0 0 44px!important;
    width:44px!important;height:44px!important;min-height:44px!important;
    margin:0!important;padding:0!important;
    border:0!important;border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
    backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
  }
  html body #nuvia-react-navigation .nv-mobile-toggle::before {
    inset:4px!important;
    border:1px solid rgba(255,255,255,.82)!important;
    border-radius:7px!important;
    background:rgba(255,255,255,.055)!important;
    transition:none!important;
  }
  html body #nuvia-react-navigation[data-mobile-open="true"] .nv-mobile-toggle::before,
  html body #nuvia-react-navigation[data-mobile-open="true"] .nv-mobile-toggle:hover::before {
    border:1px solid #151515!important;
    background:#fff!important;
    box-shadow:none!important;
  }
  /* Instant icon swap: the menu comes down from above, not an X morph. */
  html body #nuvia-react-navigation .nv-mobile-toggle::after {
    content:"×"!important;
    position:absolute!important;
    z-index:2!important;
    left:50%!important;top:50%!important;
    transform:translate3d(-50%,-50%,0)!important;
    color:#111!important;
    font:300 27px/1 Arial,Helvetica,sans-serif!important;
    opacity:0!important;
    visibility:hidden!important;
    pointer-events:none!important;
    transition:none!important;
  }
  html body #nuvia-react-navigation[data-mobile-open="true"] .nv-mobile-toggle::after {
    opacity:1!important;visibility:visible!important;
  }
  html body #nuvia-react-navigation[data-mobile-open="true"] .nv-mobile-toggle-icon {
    visibility:hidden!important;
    transition:none!important;
  }
  html body #nuvia-react-navigation .nv-mobile-stroke {
    transition:none!important;
  }
  /* Content viewport grows with the Air-style sheet, capped by the visible screen. */
  html body #nuvia-react-navigation .nv-nav,
  html body #nuvia-react-navigation[data-mobile-open="true"] .nv-nav {
    position:fixed!important;
    z-index:2!important;
    top:calc(env(safe-area-inset-top,0px) + 82px)!important;
    left:clamp(20px,4.2vw,32px)!important;
    right:clamp(20px,4.2vw,32px)!important;
    bottom:auto!important;
    width:auto!important;min-width:0!important;
    height:var(--nv-mobile-nav-height,300px)!important;
    max-height:none!important;
    box-sizing:border-box!important;
    margin:0!important;
    padding:16px 0 max(22px,env(safe-area-inset-bottom,0px))!important;
    display:flex!important;flex-direction:column!important;align-items:stretch!important;
    border:0!important;border-radius:0!important;
    background:transparent!important;color:#171c17!important;
    box-shadow:none!important;
    backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
    overflow-x:hidden!important;overflow-y:hidden!important;
    overscroll-behavior-y:contain!important;
    -webkit-overflow-scrolling:touch;
    opacity:0!important;visibility:hidden!important;
    transform:translate3d(0,-22px,0)!important;
    pointer-events:none!important;
    transition:height 460ms cubic-bezier(.22,.82,.24,1),
               opacity 140ms ease,transform 220ms cubic-bezier(.2,.75,.28,1),
               visibility 0s linear 230ms!important;
  }
  html body #nuvia-react-navigation[data-mobile-open="true"] .nv-nav {
    opacity:1!important;visibility:visible!important;
    transform:translate3d(0,0,0)!important;
    pointer-events:auto!important;
    transition:height 460ms cubic-bezier(.22,.82,.24,1),
               opacity 140ms ease 60ms,transform 220ms cubic-bezier(.2,.75,.28,1),
               visibility 0s linear 0s!important;
  }
  html body #nuvia-react-navigation[data-mobile-open="true"][data-mobile-scroll="true"] .nv-nav {
    overflow-y:auto!important;
  }
  html body #nuvia-react-navigation[data-mobile-open="true"][data-mobile-scroll="false"] .nv-nav {
    overflow-y:hidden!important;
    scrollbar-width:none!important;
  }
  html body #nuvia-react-navigation .nv-links {
    display:flex!important;flex-direction:column!important;
    align-items:stretch!important;flex:0 0 auto!important;
    width:100%!important;max-width:100%!important;
    margin:0!important;padding:0!important;gap:0!important;
    overflow:visible!important;
  }
  html body #nuvia-react-navigation .nv-navitem,
  html body #nuvia-react-navigation[data-mobile-open="true"] .nv-navitem {
    display:block!important;
    width:100%!important;min-width:0!important;
    opacity:1!important;transform:none!important;
    transition:none!important;
  }
  html body #nuvia-react-navigation .nv-navitem>button,
  html body #nuvia-react-navigation .nv-navitem>a.nv-nav-direct-link {
    display:flex!important;align-items:center!important;
    justify-content:space-between!important;
    width:100%!important;max-width:none!important;min-height:63px!important;
    margin:0!important;padding:0 2px!important;
    border:0!important;border-bottom:1px solid #d5d5d5!important;
    border-radius:0!important;
    background:transparent!important;color:#181a1e!important;
    -webkit-text-fill-color:#181a1e!important;
    box-shadow:none!important;
    font:500 14px/1.35 Inter,Arial,sans-serif!important;
    text-decoration:none!important;text-align:left!important;
    white-space:normal!important;
    transition:background-color .18s ease!important;
  }
  html body #nuvia-react-navigation .nv-navitem:last-child>button,
  html body #nuvia-react-navigation .nv-navitem:last-child>a.nv-nav-direct-link {
    border-bottom-color:transparent!important;
  }
  html body #nuvia-react-navigation .nv-navitem>button:hover,
  html body #nuvia-react-navigation .nv-navitem>a.nv-nav-direct-link:hover {
    background:transparent!important;
  }
  html body #nuvia-react-navigation .nv-navitem .nv-nav-label {
    text-decoration:none!important;
    color:inherit!important;
    -webkit-text-fill-color:inherit!important;
  }
  /* Restore exactly the Studio coral used on light/white desktop stages.
     This must beat the generic dark mobile row styling above. */
  html body #nuvia-react-navigation .nv-navitem.nv-navitem--studio > a.nv-nav-direct-link,
  html body #nuvia-react-navigation .nv-navitem.nv-navitem--studio > a.nv-nav-direct-link .nv-nav-label {
    color:#C85F4A!important;
    -webkit-text-fill-color:#C85F4A!important;
  }
  html body #nuvia-react-navigation .nv-navitem.nv-navitem--studio > a.nv-nav-direct-link:hover,
  html body #nuvia-react-navigation .nv-navitem.nv-navitem--studio > a.nv-nav-direct-link:hover .nv-nav-label {
    color:#AE4D3A!important;
    -webkit-text-fill-color:#AE4D3A!important;
  }
  html body #nuvia-react-navigation .nv-navitem .nv-nav-label::after {
    display:none!important;
  }
  html body #nuvia-react-navigation .nv-chevron {
    display:block!important;
    color:#30383b!important;
    flex:0 0 14px!important;
    width:14px!important;height:14px!important;
    margin-left:auto!important;
  }
  html body #nuvia-react-navigation .nv-navitem[data-open="true"]>.nv-menu {
    margin:3px 0 8px!important;
  }
  html body #nuvia-react-navigation .nv-menu .nuvi-panel {
    border-radius:8px!important;
    background:#f6f7f8!important;
  }

}
@media (max-width:820px) and (max-height:580px) {
  html body #nuvia-react-navigation .nv-nav,
  html body #nuvia-react-navigation[data-mobile-open="true"] .nv-nav {
    top:calc(env(safe-area-inset-top,0px) + 69px)!important;
    height:var(--nv-mobile-nav-height,300px)!important;
    padding-top:4px!important;
    padding-bottom:10px!important;
  }
  html body #nuvia-react-navigation .nv-navitem>button,
  html body #nuvia-react-navigation .nv-navitem>a.nv-nav-direct-link {
    min-height:48px!important;
  }
}
@media (max-width:360px) {
  html body #nuvia-react-navigation {
    grid-template-columns:minmax(0,1fr) 102px 44px!important;
    column-gap:3px!important;
  }
  html body #nuvia-react-navigation .nv-sample-cta--mobile {
    width:102px!important;min-width:102px!important;max-width:102px!important;
    flex-basis:102px!important;padding:0 5px!important;margin:0!important;
  }
}
@media (max-width:820px) and (prefers-reduced-motion:reduce) {
  html body #nuvia-react-navigation::before,
  html body #nuvia-react-navigation .nv-nav {transition:none!important;}
}


/* NUVIA mobile menu: hide only the SECOND (internal) scrollbar.
   Keep scrollability on expanded accordions, and keep the browser's
   native scrollbar at the far-right edge visible and unchanged. */
@media (max-width:820px) {
  html body #nuvia-react-navigation .nv-nav {
    scrollbar-width:none!important; /* Firefox */
    -ms-overflow-style:none!important;
  }
  html body #nuvia-react-navigation .nv-nav::-webkit-scrollbar {
    display:none!important;
    width:0!important;
    height:0!important;
  }
}


/* NUVIA 20261101 mobile pure-white accordion.
   Keep the fine row dividers, typography, icons and animations.
   Remove the two visible grey slabs: the selected top-level row
   and the nested panel. Scope ONLY to the open mobile sheet. */
@media (max-width:820px) {
  html body #nuvia-react-navigation[data-mobile-open="true"] .nv-navitem > button,
  html body #nuvia-react-navigation[data-mobile-open="true"] .nv-navitem > button:hover,
  html body #nuvia-react-navigation[data-mobile-open="true"] .nv-navitem > button:active,
  html body #nuvia-react-navigation[data-mobile-open="true"] .nv-navitem[data-open="true"] > button,
  html body #nuvia-react-navigation[data-mobile-open="true"] .nv-navitem[data-open="true"] > button:hover {
    background:#fff!important;
    background-image:none!important;
  }
  html body #nuvia-react-navigation[data-mobile-open="true"] .nv-navitem > .nv-menu,
  html body #nuvia-react-navigation[data-mobile-open="true"] .nv-navitem > .nv-menu .nuvi-panel,
  html body #nuvia-react-navigation[data-mobile-open="true"] .nv-navitem > .nv-menu .nuvi-panel-column,
  html body #nuvia-react-navigation[data-mobile-open="true"] .nv-navitem > .nv-menu .nuvi-panel-group,
  html body #nuvia-react-navigation[data-mobile-open="true"] .nv-navitem > .nv-menu .nuvi-panel-row,
  html body #nuvia-react-navigation[data-mobile-open="true"] .nv-navitem > .nv-menu .nuvi-panel-row:hover {
    background:#fff!important;
    background-image:none!important;
    box-shadow:none!important;
  }
  html body #nuvia-react-navigation[data-mobile-open="true"] .nv-menu .nuvi-panel-icon,
  html body #nuvia-react-navigation[data-mobile-open="true"] .nv-menu .nuvi-panel-row:hover .nuvi-panel-icon {
    background:transparent!important;
  }
}
