/* Hill Patent Consulting LLC — shared production overrides */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px !important;
}
section[id] {
  scroll-margin-top: 0 !important;
}

/* Shared mobile navigation used on every page. */
.mobile-nav { display:none; position:relative; margin-left:auto; }
.mobile-nav summary { cursor:pointer; list-style:none; background:var(--blue); color:#fff; border:1px solid var(--blue); border-radius:8px; padding:11px 16px; font-weight:700; font-size:14px; line-height:1; }
.mobile-nav summary::-webkit-details-marker { display:none; }
.mobile-nav[open] summary { background:var(--blue-dark); }
.mobile-panel { position:absolute; right:0; top:calc(100% + 10px); width:min(350px,calc(100vw - 28px)); max-height:calc(100vh - 110px); overflow:auto; background:#fff; border:1px solid var(--line); border-radius:12px; box-shadow:var(--shadow); padding:10px; z-index:100; }
.mobile-panel a { display:block; text-decoration:none; color:#2d3a45; padding:10px 11px; border-radius:7px; font-weight:700; font-size:15px; line-height:1.25; }
.mobile-panel a:hover { background:var(--blue-soft); color:var(--blue); }
.mobile-panel .mobile-label { padding:10px 11px 4px; color:var(--muted); font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.08em; }
.mobile-panel .mobile-service { padding-left:22px; font-weight:600; }
.mobile-panel .mobile-schedule { margin-top:8px; background:var(--blue); color:#fff; text-align:center; }
.mobile-panel .mobile-schedule:hover { background:var(--blue-dark); color:#fff; }

@media (max-width:1180px) {
  nav { display:none !important; }
  .mobile-menu { display:none !important; }
  .mobile-nav { display:block; }
}
@media (max-width:620px) {
  html { scroll-padding-top:68px !important; }
}





/* Mobile header consistency fix: use native sticky positioning on every page. */
header {
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
}

@media (max-width:1180px) {
  header {
    position: sticky !important;
    top: 0 !important;
    left: auto !important;
    right: auto !important;
    width: auto !important;
    background: #fff !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }

  .nav {
    min-height: 68px !important;
  }
}

@media (max-width:620px) {
  html {
    scroll-padding-top: 68px !important;
  }
}


/* Brave/mobile visual-viewport correction.
   Applied only when site.js adds html.vv-top-fix (Home and Supplied-Work). */
:root {
  --visual-viewport-top: 0px;
}

@media (max-width:1180px) {
  html.vv-top-fix header {
    top: var(--visual-viewport-top) !important;
  }
}

@media (max-width:620px) {
  html.vv-top-fix {
    scroll-padding-top: calc(68px + var(--visual-viewport-top)) !important;
  }
}
