/* TEK-1452 — neutral loading state while a request handed over from /dental is
   routed (js/entry/dental-handoff-pending.js sets the attribute before paint).
   The page underneath keeps working; it is only not shown, so the market Home
   and its animated prompt never flash on the way to Search or Smart Match. */
html[data-dental-handoff="pending"] body > :not(.dental-handoff-pending) {
  visibility: hidden !important;
  /* A descendant could re-enable visibility; it cannot undo opacity. */
  opacity: 0 !important;
}
html[data-dental-handoff="pending"] body { overflow: hidden; }

.dental-handoff-pending {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 24px;
  background: var(--page-bg, #f7f9fc);
  color: var(--text-secondary, #475569);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
}
.dental-handoff-pending__mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid rgba(14, 165, 164, .18);
  border-top-color: #0ea5a4;
  animation: dental-handoff-spin .9s linear infinite;
}
.dental-handoff-pending__brand {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #0f766e;
}
@keyframes dental-handoff-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .dental-handoff-pending__mark { animation: none; border-color: #0ea5a4; opacity: .55; }
}

/* TEK-1452: a direct load of a non-Home route (Browse -> #/search) hides only
   the static Home inside <main id="app"> until the route has rendered; the
   header and breadcrumb paint immediately. */
html[data-dental-route="pending"] #app {
  visibility: hidden !important;
  opacity: 0 !important;
}
