/* The search box under the field, on the wall and on every other page (design canvas v37, approved 6 Nov 2026).
   Loaded by index.html, and by site/sitesearch.js on the other pages the first time their field is used. */
.qbox { position: fixed; z-index: 95; overflow-y: auto; overscroll-behavior: contain; padding: 8px; background: var(--glass-strong);
  -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3); border: 1px solid var(--hair);
  border-radius: var(--r-panel); box-shadow: var(--glass-shadow); color: var(--ink); }
.qbox[hidden] { display: none; }
.qhead { margin: 10px 10px 4px; font: 500 11px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--graphite); }
.qhead:first-child { margin-top: 4px; }
.qrow { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 6px 10px;
  border-radius: var(--r); cursor: pointer; color: var(--ink); text-decoration: none; }
.qrow.on { background: var(--field-3); }
.qrow:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.qtext { display: flex; flex-direction: column; min-width: 0; flex: 1; gap: 1px; }
.qtext b { font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qtext small { font-size: 13px; color: var(--graphite); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qface { flex: none; width: 36px; height: 36px; border-radius: var(--r); overflow: hidden; background: var(--slot); display: grid; place-items: center;
  font: 600 12px var(--mono); color: var(--slot-ink); }
.qface img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.qthumb { flex: none; width: 52px; height: 40px; overflow: hidden; background: var(--slot); } /* building photos stay square-cornered */
.qthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.qkind { flex: none; min-width: 52px; font: 500 11px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--graphite); }
.qgo { flex: none; width: 16px; height: 16px; fill: none; stroke: var(--graphite); stroke-width: 2; }
.qall { margin-top: 6px; border-top: 1px solid var(--hair); border-radius: 0 0 var(--r) var(--r); }
.qtry { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; cursor: pointer;
  border: 1px solid var(--hair); border-radius: var(--r); background: var(--surface); font-size: 14px; color: var(--ink); }
.qtry svg { width: 14px; height: 14px; fill: none; stroke: var(--graphite); stroke-width: 2; }
.qtry.on { border-color: var(--ink); }
.qfix, .qnone { margin: 6px 10px; font-size: 14px; color: var(--graphite); }
.qfix b, .qnone b { color: var(--ink); font-weight: 600; }
@media (hover: hover) {
  .qrow:hover, .qtry:hover { color: var(--red); }
  .qrow:hover .qtext small, .qrow:hover .qkind { color: var(--graphite); }
  .qrow:hover .qgo { stroke: var(--red); }
  .qtry:hover { border-color: var(--red); }
}
@media (max-width: 640px) { .qrow { min-height: 52px; } }
.qchips { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 8px 8px; }
/* Other pages' slim bar on a phone: the field takes the row while typing (the wall's own rule is in styles.css). */
@media (max-width: 640px) {
  .top:has(.search:focus-within) > :not(.search):not(.mark):not(script) { display: none; }
  .top:has(.search:focus-within) > .search { flex: 1 1 auto; }
}
