/* NUVIA — Inner-page navbar and footer parity with index.html (31 Oct 2026).
   Reuses the ACTUAL homepage's four-link nav and compact white footer.
   Scope prevents changes to About story motion or inner hero sections. */

/* Homepage desktop navbar geometry; retain each page's white/ink contrast
   controller so text remains readable over either sky or white content. */
@media (min-width:821px) {
  html body #nuvia-react-navigation {
    position: fixed !important;
    top: 24px !important;
    left: clamp(32px,8vw,120px) !important;
    right: auto !important;
    width: auto !important;
    max-width: calc(100vw - clamp(32px,8vw,120px) - 32px) !important;
    transform: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    pointer-events: none !important;
  }
  html body #nuvia-react-navigation .nv-nav {
    display:flex !important;
    width:auto !important;
    align-items:center !important;
    justify-content:flex-start !important;
    gap:0 !important;
    overflow:visible !important;
    pointer-events:auto !important;
  }
  html body #nuvia-react-navigation .nv-links {
    display:flex !important;
    flex:0 1 auto !important;
    flex-direction:row !important;
    align-items:center !important;
    gap:clamp(12px,1.15vw,20px) !important;
    width:auto !important;
    min-width:0 !important;
    overflow:visible !important;
  }
  html body #nuvia-react-navigation .nv-navitem {
    flex:0 0 auto !important;
    width:auto !important;
    margin:0 !important;
  }
  html body #nuvia-react-navigation .nv-navitem > button {
    min-height:40px !important;
    padding:6px 4px !important;
    border-radius:0 !important;
    background:transparent !important;
    font:600 14px/1.4 Inter,ui-sans-serif,system-ui,sans-serif !important;
  }
  html body #nuvia-react-navigation .nv-mobile-toggle,
  html body #nuvia-react-navigation .nv-header-brand {display:none !important}
  html body #nuvia-react-navigation .nv-chevron {width:13px !important;height:13px !important;margin-left:3px !important}
  html body #nuvia-react-navigation .nv-navitem > .nv-menu {
    position:absolute !important;
    top:100% !important;
    left:0 !important;
    right:auto !important;
    width:max-content !important;
    max-width:min(calc(100vw - 32px),1100px) !important;
    z-index:100 !important;
  }
}
/* Do not leave stale 'Pricing' controls in keyboard order or mobile drawers,
   even if a previously cached HTML document still contains them. */
#nuvia-react-navigation .nv-navitem--pricing {display:none!important}

/* Desktop-only contrast: the mobile menu always sits on a white panel. */
@media (min-width:821px) {
/* ABOUT blue stages — restore the native WHITE header palette. Some
   browsers may cache the historical .is-white-stage rule after the story.
   Use the live contrast controller instead of that persistent body class. */
body.nv-about-page #nuvia-react-navigation[data-nv-contrast="light"]
  .nv-navitem:not(.nv-navitem--studio) > button,
body.nv-about-page #nuvia-react-navigation[data-nv-contrast="light"]
  .nv-navitem:not(.nv-navitem--studio) > button .nv-nav-label,
body.nv-about-page #nuvia-react-navigation[data-nv-contrast="light"]
  .nv-navitem:not(.nv-navitem--studio) > button .nv-chevron {
  color:rgba(255,255,255,.96) !important;
  -webkit-text-fill-color:rgba(255,255,255,.96) !important;
}
body.nv-about-page #nuvia-react-navigation[data-nv-contrast="light"]
  .nv-navitem:not(.nv-navitem--studio) > button .nv-nav-label::after {
  background:rgba(255,255,255,.92) !important;
}
body.nv-about-page #nuvia-react-navigation[data-nv-contrast="light"]
  .nv-navitem:not(.nv-navitem--studio) > button:focus-visible {
  outline-color:#fff !important;
}
}

/* About mobile: prevent the blue-stage contrast controller from whitening
   menu labels on the drawer's white surface. Keep transforms/transitions
   of the existing burger, panel and accordion entirely unchanged. */
@media (max-width:820px) {
  body.nv-about-page #nuvia-react-navigation[data-mobile-open="true"] .nv-nav .nv-navitem:not(.nv-navitem--studio) > button,
  body.nv-about-page #nuvia-react-navigation[data-mobile-open="true"] .nv-nav .nv-navitem:not(.nv-navitem--studio) > button .nv-nav-label {
    color:#171b22!important;
    -webkit-text-fill-color:#171b22!important;
  }
  body.nv-about-page #nuvia-react-navigation[data-mobile-open="true"] .nv-nav .nv-navitem > button .nv-chevron {
    color:#4d5864!important;
    -webkit-text-fill-color:#4d5864!important;
  }
}
