/* =====================================================================
   Terra Vita Hub v444.3 — Header search route lock
   Purpose: make the icon search control behave like a real working route
   across every Hub surface. Search opens /search.html and focuses the
   public artefact query when already on a search surface.
   No auth, SQL, protected data, readiness posture or authority logic changed.
   ===================================================================== */

html body #tvh-header .tvh-search-trigger,
html body header#tvh-header .tvh-search-trigger{
  position:relative !important;
  z-index:10040 !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:8px !important;
  width:auto !important;
  min-width:124px !important;
  max-width:none !important;
  height:44px !important;
  min-height:44px !important;
  max-height:44px !important;
  margin:0 !important;
  padding:0 15px !important;
  border:1px solid rgba(8,42,67,.18) !important;
  border-radius:999px !important;
  background:#fffdf6 !important;
  color:#082a43 !important;
  overflow:hidden !important;
  white-space:nowrap !important;
  cursor:pointer !important;
  pointer-events:auto !important;
  text-decoration:none !important;
  box-sizing:border-box !important;
  -webkit-appearance:none !important;
  appearance:none !important;
}
html body #tvh-header .tvh-search-trigger:hover,
html body #tvh-header .tvh-search-trigger:focus-visible,
html body header#tvh-header .tvh-search-trigger:hover,
html body header#tvh-header .tvh-search-trigger:focus-visible{
  color:#0b7d73 !important;
  border-color:rgba(11,125,115,.32) !important;
  background:#ffffff !important;
  box-shadow:0 10px 28px rgba(8,42,67,.10) !important;
  outline:none !important;
  transform:translateY(-1px) !important;
}
html body #tvh-header .tvh-search-trigger svg,
html body header#tvh-header .tvh-search-trigger svg{
  display:block !important;
  width:19px !important;
  height:19px !important;
  min-width:19px !important;
  flex:0 0 19px !important;
  pointer-events:none !important;
}
html body #tvh-header .tvh-search-trigger .label,
html body header#tvh-header .tvh-search-trigger .label{
  display:inline-flex !important;
  visibility:visible !important;
  width:auto !important;
  min-width:0 !important;
  max-width:none !important;
  flex:0 0 auto !important;
  opacity:1 !important;
  overflow:visible !important;
  white-space:nowrap !important;
  font-size:13px !important;
  line-height:1 !important;
  letter-spacing:.005em !important;
  font-weight:850 !important;
  pointer-events:none !important;
}
html body #tvh-header .tvh-search-shortcut,
html body header#tvh-header .tvh-search-shortcut{
  display:inline-flex !important;
  visibility:visible !important;
  width:auto !important;
  min-width:0 !important;
  flex:0 0 auto !important;
  opacity:.66 !important;
  border:1px solid rgba(8,42,67,.14) !important;
  border-radius:999px !important;
  padding:3px 6px !important;
  background:rgba(8,42,67,.035) !important;
  color:inherit !important;
  font-size:11px !important;
  line-height:1 !important;
  font-weight:850 !important;
  pointer-events:none !important;
}

/* At tighter desktop widths the search becomes a true circular icon, not a
   wide empty rectangle. */
@media (max-width:1520px){
  html body #tvh-header .tvh-search-trigger,
  html body header#tvh-header .tvh-search-trigger{
    width:46px !important;
    min-width:46px !important;
    max-width:46px !important;
    height:46px !important;
    min-height:46px !important;
    max-height:46px !important;
    padding:0 !important;
    gap:0 !important;
    border-radius:999px !important;
  }
  html body #tvh-header .tvh-search-trigger .label,
  html body #tvh-header .tvh-search-shortcut,
  html body header#tvh-header .tvh-search-trigger .label,
  html body header#tvh-header .tvh-search-shortcut{
    display:none !important;
    visibility:hidden !important;
    width:0 !important;
    min-width:0 !important;
    max-width:0 !important;
    opacity:0 !important;
  }
}

@media (max-width:1320px){
  html body #tvh-header .tvh-search-trigger,
  html body header#tvh-header .tvh-search-trigger{
    display:none !important;
  }
}
