/* The site search (site/search.7eeb079c73.js), in the header of every page. It reads /llms-full.txt in the browser. The results open
   in a panel under the header while the box has words in it and focus; Esc clears it. Colours are the site's (base.css). */
.search { margin: 0; position: static; }
.search label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }   /* for screen readers */
.search input { box-sizing: border-box; width: 100%; min-height: 38px; padding: .45rem .75rem; border: 2px solid var(--ink); border-radius: 0;
  background: var(--card); box-shadow: 3px 3px 0 var(--line); color: var(--ink); font: 1rem/1.3 var(--sans); -webkit-appearance: none; appearance: none; }
.search input::placeholder { color: var(--muted); opacity: 1; }
.search input:focus { outline: 2px dashed var(--accent); outline-offset: 2px; }

/* the results: a panel hung from the header, the page's width */
.search-panel { position: absolute; top: 100%; left: max(16px, calc((100% - 42rem) / 2 + 16px)); right: max(16px, calc((100% - 42rem) / 2 + 16px));
  max-height: min(70vh, 34rem); overflow-y: auto; overscroll-behavior: contain; background: var(--card); border: 2px solid var(--ink); border-top: 0; box-shadow: 5px 5px 0 var(--line); }
.search:not(:focus-within) .search-panel, .search:has(input:placeholder-shown) .search-panel { display: none; }
.search .search-status { margin: 0; padding: .7rem .9rem .5rem; font: 600 .82rem/1.4 var(--sans); letter-spacing: .04em; color: var(--muted); }
.search .search-status:empty { display: none; }
.search-results { list-style: none; margin: 0; padding: 0 .4rem .4rem; }
.search-results:empty { display: none; }
.search-results li { border-top: 1px solid var(--line); }
.search-results a { display: grid; gap: .2rem; padding: .7rem .5rem; color: var(--muted); text-decoration: none; }
.search-results a:hover, .search-results a:focus-visible { background: var(--tint); }
.search-results a:focus-visible { outline: 2px dashed var(--accent); outline-offset: -2px; }
.sr-title { font: 700 1rem/1.3 var(--sans); color: var(--ink); text-decoration: underline dotted; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.sr-where { font: 600 .78rem/1.4 var(--sans); letter-spacing: .03em; color: var(--accent); }
.sr-text { font: .92rem/1.5 var(--sans); overflow-wrap: anywhere; }
.search-results mark { background: var(--mark); color: var(--ink); padding: 0 .1em; }
