/* Harbor & Hive shared WCAG 2.2 AA foundation. */
.hh-skip-link {
  position: fixed;
  inset-block-start: 0.5rem;
  inset-inline-start: 0.5rem;
  z-index: 100000;
  transform: translateY(-180%);
  padding: 0.75rem 1rem;
  border: 3px solid #082f55;
  border-radius: 0.35rem;
  background: #fff;
  color: #082f55;
  font-weight: 700;
}
.hh-skip-link:focus { transform: translateY(0); }
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid #f4c542 !important;
  outline-offset: 3px !important;
}
:where(button, input, select, textarea) { min-block-size: 2.75rem; }
:where(button, [role="button"], a.btn, a.button) { touch-action: manipulation; }
.hh-visually-hidden {
  position: absolute !important;
  inline-size: 1px !important;
  block-size: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Shared Global Search / Universal Transaction Recall shell control. */
.hh-global-search-launcher {
  position: fixed;
  inset-inline-end: 1rem;
  inset-block-end: 1rem;
  z-index: 9000;
  min-block-size: 2.75rem;
  padding: .65rem .9rem;
  border: 2px solid #f4c542;
  border-radius: 999px;
  background: #082f55;
  color: #fff;
  box-shadow: 0 8px 28px rgba(8,47,85,.25);
  font-weight: 800;
}
.hh-global-search-launcher kbd { font: inherit; opacity: .8; margin-inline-start: .35rem; }
.hh-search-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9500;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: min(10vh,5rem) 1rem 1rem;
  background: rgba(5,22,38,.68);
}
.hh-search-backdrop[data-open="true"] { display: flex; }
.hh-search-dialog {
  inline-size: min(900px,100%);
  max-block-size: 82vh;
  overflow: auto;
  border: 1px solid #cbd5e1;
  border-radius: .85rem;
  background: #fff;
  color: #172033;
  box-shadow: 0 22px 65px rgba(0,0,0,.3);
}
.hh-search-head { display:flex; align-items:center; gap:.6rem; padding:1rem; border-block-end:1px solid #d7e0ea; }
.hh-search-head input { flex:1; min-inline-size:0; padding:.7rem .8rem; border:1px solid #94a3b8; border-radius:.45rem; }
.hh-search-close { border:1px solid #64748b; border-radius:.45rem; background:#fff; color:#172033; padding:.55rem .75rem; font-weight:800; }
.hh-search-shortcuts { display:flex; gap:.45rem; flex-wrap:wrap; padding:.75rem 1rem; border-block-end:1px solid #e2e8f0; }
.hh-search-shortcuts button { border:1px solid #1f5b8f; border-radius:999px; background:#fff; color:#1f5b8f; padding:.45rem .65rem; font-size:.82rem; font-weight:750; }
.hh-search-shortcuts button[aria-pressed="true"] { background:#1f5b8f; color:#fff; }
.hh-search-status { padding:.65rem 1rem; color:#475569; font-size:.85rem; }
.hh-search-results { display:grid; gap:.65rem; padding:0 1rem 1rem; }
.hh-search-result { border:1px solid #d7e0ea; border-radius:.6rem; padding:.8rem; background:#fff; }
.hh-search-result-head { display:flex; justify-content:space-between; gap:.8rem; align-items:flex-start; }
.hh-search-result strong { color:#082f55; }
.hh-search-meta { display:flex; flex-wrap:wrap; gap:.35rem .8rem; margin-block-start:.5rem; color:#475569; font-size:.78rem; }
.hh-search-id { margin-block-start:.5rem; font-family:ui-monospace,SFMono-Regular,Consolas,monospace; font-size:.72rem; color:#6b3fa0; overflow-wrap:anywhere; }
.hh-search-links { display:flex; flex-wrap:wrap; gap:.45rem; margin-block-start:.65rem; }
.hh-search-links a { font-size:.78rem; font-weight:750; color:#1f5b8f; }
.hh-search-empty { padding:1rem; color:#64748b; text-align:center; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
@media (forced-colors: active) {
  :where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
    outline: 3px solid CanvasText !important;
  }
  .hh-global-search-launcher { border-color: CanvasText; }
}
