/* Catalog search: results and the /search/ page. The header trigger and the dialog frame are in head-inline.css. */

/* Results (dialog and page) ------------------------------------------------- */
.sr-list { margin: 0; padding: 0; list-style: none; }
.sr { display: grid; grid-template-columns: 88px 1fr; gap: 16px; align-items: center; padding: 10px; color: inherit; transition: background var(--t-fast); }
.sr:hover, [aria-selected="true"] > .sr { background: rgba(255, 255, 255, .05); }
[aria-selected="true"] > .sr { box-shadow: inset 2px 0 0 var(--red); }
.sr:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.sr-thumb { display: grid; place-items: center; aspect-ratio: 16 / 10; overflow: hidden; background: #141517; border: 1px solid var(--line); }
.sr-thumb picture, .sr-thumb img { width: 100%; height: 100%; }
.sr-thumb img { object-fit: cover; transform: scale(1.3); }
.sr-glyph { font-size: 12px; letter-spacing: .1em; color: var(--blue-hi); }
.sr-body { display: grid; gap: 3px; min-width: 0; }
.sr-kind { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-mid); }
.sr-title { color: #fff; font-size: 16px; line-height: 1.3; }
.sr-meta { color: var(--text-mid); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-hits { font-size: 12px; letter-spacing: .04em; color: var(--text-mid); }
.sr-hits mark { background: none; color: var(--blue-hi); }
/* Match reason: the spec a unit phrase matched ("Output frequency 50 · 60 · 400 Hz"), or the field. */
.sr-why { font-size: 13px; line-height: 1.35; color: var(--text-mid); }
.sr-why mark { background: none; color: #c9d6e3; }

/* /search/ page ------------------------------------------------------------- */
.search-page { padding: calc(var(--nav-h) + 40px) 0 96px; min-height: 70vh; }
.search-page .page-title { margin: 22px 0 28px; font: 300 var(--fs-h1)/1.1 var(--font-display); }
.search-form { display: flex; gap: 12px; max-width: 760px; }
.search-field { flex: 1; display: flex; align-items: center; gap: 12px; padding: 0 16px; border: 1px solid var(--line-3); background: var(--charcoal); color: var(--text-low); }
/* D-08: a 2 px focus edge (the 1 px border colour change alone was hard to see). */
.search-field:focus-within { border-color: var(--blue-hi); box-shadow: 0 0 0 1px var(--blue-hi); }
.search-field input { flex: 1; min-width: 0; height: 52px; border: 0; background: none; color: #fff; font: 300 17px/1 var(--font-body); }
.search-field input:focus { outline: none; }
.search-form .btn { margin: 0; }
.search-results { margin-top: 32px; max-width: 900px; }
.search-status { color: var(--text-mid); }
.search-hints { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; color: var(--text-low); }
.search-hints a { color: var(--blue-hi); padding: 12px 0; }
.search-page .sr-list { border-top: 1px solid var(--line); }
.search-page .sr-list li { border-bottom: 1px solid var(--line); }
@media (max-width: 640px) { .search-form { flex-direction: column; } .search-form .btn { width: 100%; } .sr { grid-template-columns: 72px 1fr; gap: 12px; }
	/* D-05: on phones the maker · code · category line wraps instead of ending in "Rugged True Onl...". */
	.sr-meta { white-space: normal; overflow: visible; } }

/* Home "Find a product": all 18 category codes visible, two columns, no inner scroll. */
.code-search .cs-results { max-height: none; overflow: visible; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
.code-search .cs-box .search-form { margin-bottom: 22px; }
@media (max-width: 640px) { .code-search .cs-results { grid-template-columns: 1fr; } }
