/* Next Steps search. Uses the page's own ink, paper, and lime. */
.ns-search-slot { margin: 22px 0 0; }
.ns-search { position: relative; }
.ns-search-form {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 2px solid var(--ink, #111110);
  border-radius: 999px;
  background: #fff;
  padding: 0 16px;
  min-height: 52px;
}
.ns-search-form:focus-within { box-shadow: 0 0 0 3px var(--lime, #D6E857); }
.ns-search-icon { flex: none; width: 18px; height: 18px; color: var(--ink, #111110); }
.ns-search-form input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink, #111110);
  padding: 12px 0;
  outline: none;
}
.ns-search-form input::placeholder { color: var(--slate, #6B6864); font-weight: 700; }
.ns-search-hint {
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate, #6B6864);
}
.ns-search-panel {
  position: fixed;
  z-index: 80;
  max-height: min(60vh, 420px);
  overflow: auto;
  background: var(--paper, #F4F3F0);
  color: var(--ink, #111110);
  border: 2px solid var(--ink, #111110);
  border-radius: 16px;
  box-shadow: 6px 6px 0 var(--ink, #111110);
  padding: 6px;
}
.ns-search-panel[hidden] { display: none; }
.ns-search-status, .ns-search-empty {
  margin: 0;
  padding: 12px 14px;
  font-size: 15px;
  font-weight: 700;
}
.ns-search-option {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: inherit;
  font: inherit;
  padding: 10px 12px;
  cursor: pointer;
}
.ns-search-option.is-active, .ns-search-option:hover { background: var(--lime, #D6E857); }
.ns-search-option:focus { outline: none; }
.ns-search-kicker {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate, #6B6864);
}
.ns-search-option.is-active .ns-search-kicker, .ns-search-option:hover .ns-search-kicker { color: var(--ink, #111110); }
.ns-search-label {
  display: block;
  margin-top: 3px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.3;
}
.ns-search-label mark, .ns-search-snippet mark {
  background: transparent;
  color: inherit;
  font-weight: 900;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}
.ns-search-snippet {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}
.ns-search-hit {
  background: var(--lime, #E2EE28);
  box-shadow: 0 0 0 4px var(--lime, #E2EE28);
}
html.book-on .book-bar { height: auto; min-height: 2.6em; flex-wrap: wrap; gap: 8px; }
html.book-on .book-bar .ns-search { flex: 1 1 180px; min-width: 0; margin: 0.15em 0; }
html.book-on .book-bar .ns-search-form { min-height: 0; padding: 0 0.7em; border-width: 2px; }
html.book-on .book-bar .ns-search-form input { font-size: 16px; padding: 0.35em 0; }
html.book-on .book-bar .ns-search-icon { width: 0.85em; height: 0.85em; }
@media print {
  .ns-search, .ns-search-slot, .ns-search-panel { display: none !important; }
}
