/* The search box: its quick results float under the input, over the page, while focus is in the box and until the
   person closes them (browser/search-box.js). Shared tokens and layout words only, on the root of the box
   (packages/components/src/styles.ts). */
.search-box {
  position: relative;
}

.search-box .quick {
  position: absolute;
  inset-inline-start: 0;
  inset-inline-end: 0;
  z-index: var(--nw-z-overlay);
  padding: var(--nw-space-8);
  color: var(--nw-color-text);
  background: var(--nw-color-surface-raised);
  border: var(--nw-border-width-1) solid var(--nw-color-border);
  border-radius: var(--nw-radius-m);
  box-shadow: var(--nw-shadow-overlay);
}

.search-box .quick:empty,
.search-box:not(:focus-within) .quick,
.search-box[data-closed] .quick {
  display: none;
}

.search-box .quick ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.search-box .quick li {
  padding-block: var(--nw-space-4);
  overflow-wrap: anywhere;
}

.search-box .quick .all {
  margin: 0;
  padding-top: var(--nw-space-8);
  border-top: var(--nw-border-width-1) solid var(--nw-color-border-subtle);
}
