/* HI-Search styles. Uses the site's colour variables; falls back to sensible defaults. */
.hi-suggest { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 30; margin: 0; padding: 6px; list-style: none;
  background: var(--white, #fff); border: 1.5px solid var(--line, #e3e6e4); border-radius: var(--radius, 10px);
  box-shadow: var(--shadow-soft, 0 4px 16px rgba(27,27,47,.1)); max-height: 60vh; overflow-y: auto; text-align: left; }
.hi-suggest li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 12px; border-radius: var(--radius-sm, 6px); cursor: pointer; color: var(--ink, #1b1b2f); font-size: 1rem; }
.hi-suggest li.on, .hi-suggest li:hover { background: var(--mint, #d8f3dc); }
.hi-suggest mark, .hi-card mark { background: transparent; color: inherit; font-weight: 700; text-decoration: underline; text-decoration-color: var(--forest-bright, #3e8c68); text-underline-offset: 2px; }
.hi-hint { font-family: var(--font-mono, ui-monospace, monospace); font-size: .75rem; color: var(--ink-faint, #8a8a99); white-space: nowrap; }
.hi-card { display: block; }
.hi-card.hi-rel { border-style: dashed; opacity: .92; }
.hi-vias { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.hi-via { font-size: .75rem; padding: 2px 8px; border-radius: 999px; background: var(--mint, #d8f3dc); color: var(--forest, #2d6a4f); }
.hi-ev { margin-left: 8px; font-size: .75rem; padding: 2px 8px; border-radius: 999px; border: 1px solid currentColor; }
.hi-ev-green { color: var(--evidence-strong, #2d6a4f); } .hi-ev-yellow { color: var(--evidence-moderate, #b08900); } .hi-ev-red { color: #9b2c2c; }
.hi-note { border-left: 3px solid var(--evidence-moderate, #b08900); background: var(--white, #fff); padding: 12px 16px; margin: 0 0 16px; border-radius: var(--radius-sm, 6px); color: var(--ink-soft, #52525b); }
.hi-dym, .hi-exp { margin: 0 0 10px; font-size: .95rem; }
.hi-ms { margin-left: 8px; font-size: .8rem; color: var(--ink-faint, #8a8a99); }
.hi-h2 { font-size: 1.1rem; margin: 28px 0 10px; }
.hi-explain { display: block; margin-top: 8px; font-size: .75rem; color: var(--ink-soft, #52525b); }
.hi-opts { margin: -20px 0 28px; font-size: .95rem; color: var(--ink-soft, #52525b); }
.hi-opts summary { cursor: pointer; padding: 6px 0; }
.hi-opts-body { display: grid; gap: 10px; padding: 12px 16px; background: var(--white, #fff); border: 1px solid var(--line, #e3e6e4); border-radius: var(--radius, 10px); }
.hi-opts-body label { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hi-opts-body code { font-family: var(--font-mono, ui-monospace, monospace); font-size: .85em; background: var(--bg, #f9fafb); padding: 1px 5px; border-radius: 4px; }
.hi-tips { margin: 6px 0 0; line-height: 1.7; }
@media (max-width: 560px) { .hi-suggest li { padding: 12px; } .hi-hint { display: none; } }
@media (prefers-reduced-motion: no-preference) { .hi-suggest { animation: hi-in .12s ease-out; } @keyframes hi-in { from { opacity: 0; transform: translateY(-3px); } } }

/* small-screen fix: let the search box shrink so the Search button is not pushed off screen */
.search-form { max-width: 100%; } .search-form .search-input { min-width: 0; }
