/* DoctsHub — search as you type (static/ui/live-search.js), shared by every app. */

/* Matched words in the results. */
mark.dh-hit{background:linear-gradient(180deg,transparent 8%,#ffe58f 8%,#ffd666 92%,transparent 92%);color:inherit;font-weight:inherit;border-radius:4px;padding:0 1px;margin:0 -1px;box-decoration-break:clone;-webkit-box-decoration-break:clone}
a mark.dh-hit,button mark.dh-hit{text-decoration:inherit}

/* The search box is the button now. */
.dh-live .dh-live-hide{display:none!important}
.dh-live .dh-live-status{position:absolute!important;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;padding:0}

/* Older pages whose search box had no design of its own. */
.dh-live input.dh-live-input.dh-live-plain{
  display:block;box-sizing:border-box;width:100%;max-width:560px;min-height:46px!important;margin:6px 0 10px!important;
  padding:10px 14px 10px 42px!important;border:1.5px solid #cbd9d9!important;border-radius:14px!important;
  background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23638585' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 14px center/18px 18px!important;
  font-size:15px!important;line-height:22px;color:#0f2a2a!important;box-shadow:0 1px 2px rgba(16,42,42,.06)!important;
  transition:border-color .15s ease,box-shadow .15s ease}
.dh-live input.dh-live-input.dh-live-plain::placeholder{color:#7f9a9a}
.dh-live input.dh-live-input.dh-live-plain:hover{border-color:#9fbcbc!important}
.dh-live input.dh-live-input.dh-live-plain:focus{outline:none!important;border-color:var(--dh-brand-600,#0f8b8d)!important;box-shadow:0 0 0 4px rgba(15,139,141,.16)!important}

/* All live boxes: one focus colour, a tidy clear (×) button, and a moving line while results load. */
.dh-live input.dh-live-input::-webkit-search-cancel-button{-webkit-appearance:none;appearance:none;width:18px;height:18px;cursor:pointer;opacity:.6;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23cfdede'%3E%3Ccircle cx='12' cy='12' r='11'/%3E%3Cpath d='m8 8 8 8M16 8l-8 8' stroke='%23335555' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/18px 18px no-repeat}
.dh-live input.dh-live-input::-webkit-search-cancel-button:hover{opacity:1}
.dh-live.is-searching input.dh-live-input{
  background-image:linear-gradient(90deg,transparent,var(--dh-brand-600,#0f8b8d),transparent)!important;
  background-repeat:no-repeat!important;background-size:38% 2px!important;background-position:-40% 100%!important;
  animation:dh-live-scan 1s ease-in-out infinite}
.dh-live.is-searching input.dh-live-input.dh-live-plain{
  background:linear-gradient(90deg,transparent,var(--dh-brand-600,#0f8b8d),transparent) no-repeat -40% calc(100% - 1px)/38% 2px,
    #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f8b8d' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 14px center/18px 18px!important;
  animation:dh-live-scan-plain 1s ease-in-out infinite}
@keyframes dh-live-scan{to{background-position:140% 100%}}
@keyframes dh-live-scan-plain{to{background-position:140% calc(100% - 1px),14px center}}
@media (prefers-reduced-motion:reduce){.dh-live.is-searching input.dh-live-input{animation:none}}
