/* V130 — controlador visual único para menu e tema mobile */
@media (max-width:860px){
  html,body{overflow-x:hidden!important;max-width:100%!important}
  body.nav-open-v71{overflow:hidden!important;touch-action:none!important}

  .site-header .nav-toggle,
  .site-header .theme-toggle{
    pointer-events:auto!important;
    touch-action:manipulation!important;
    -webkit-tap-highlight-color:transparent!important;
    cursor:pointer!important;
  }

  .site-header .nav-shell{
    grid-template-columns:44px minmax(0,1fr) 54px!important;
    grid-template-areas:"toggle brand actions"!important;
    overflow:visible!important;
  }
  .site-header .nav-toggle{grid-area:toggle!important;justify-self:start!important;z-index:10095!important}
  .site-header .brand{grid-area:brand!important;justify-self:center!important}
  .site-header .nav-actions{grid-area:actions!important;justify-self:end!important;z-index:10095!important}

  .site-header .nav-menu{
    display:flex!important;
    position:fixed!important;
    top:82px!important;
    left:10px!important;
    right:10px!important;
    width:auto!important;
    max-width:calc(100vw - 20px)!important;
    max-height:calc(100dvh - 96px)!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    visibility:hidden!important;
    opacity:0!important;
    pointer-events:none!important;
    transform:translateY(-10px) scale(.985)!important;
    transition:opacity .18s ease,transform .18s ease,visibility .18s ease!important;
    z-index:10100!important;
  }
  .site-header .nav-menu.open,
  .site-header.nav-is-open-v71 .nav-menu{
    visibility:visible!important;
    opacity:1!important;
    pointer-events:auto!important;
    transform:translateY(0) scale(1)!important;
  }
  .site-header .nav-link{
    width:100%!important;
    max-width:100%!important;
    text-align:left!important;
    justify-content:flex-start!important;
  }

  .nav-backdrop-v71{
    position:fixed!important;
    inset:0!important;
    width:100vw!important;
    height:100dvh!important;
    display:block!important;
    visibility:hidden!important;
    opacity:0!important;
    pointer-events:none!important;
    background:rgba(1,7,18,.52)!important;
    backdrop-filter:blur(5px)!important;
    border:0!important;
    z-index:10090!important;
    transition:opacity .18s ease,visibility .18s ease!important;
  }
  .nav-backdrop-v71.is-open{
    visibility:visible!important;
    opacity:1!important;
    pointer-events:auto!important;
  }

  .site-header .theme-toggle{position:relative!important;z-index:10105!important}
  html[data-theme="light"] .site-header .theme-toggle .toggle-orb{left:5px!important}
  html[data-theme="dark"] .site-header .theme-toggle .toggle-orb{left:22px!important}

  html[data-theme="light"] body,
  html[data-theme="light"] .page-bg{color-scheme:light!important}
  html[data-theme="dark"] body,
  html[data-theme="dark"] .page-bg{color-scheme:dark!important}

  .hqt-home-theme-light-v114,
  .hqt-managed-theme-light-v118{display:block!important}
  .hqt-home-theme-dark-v114,
  .hqt-managed-theme-dark-v118{display:none!important}
  html[data-theme="dark"] .hqt-home-theme-light-v114,
  html[data-theme="dark"] .hqt-managed-theme-light-v118{display:none!important}
  html[data-theme="dark"] .hqt-home-theme-dark-v114,
  html[data-theme="dark"] .hqt-managed-theme-dark-v118{display:block!important}
}
