/* The results page. The cards are the theme's own; these rules cover what the page adds: the filter chips, the group
   headings, Show more, and the meta line's clearance for the card's blue arrow button (project memory 2026-09-06).
   Tokens are repeated here (not just on dropdown.css's .tsearch-scope) so the page still reads right if this
   stylesheet loads before the dropdown ever attaches. */
.tsearch-scope {
  --ts-blue: #355a84; --ts-ink: #363636; --ts-muted: #767676; --ts-line: #e4e7eb; --ts-hover: #eef3f8;
  --ts-green: #2e7d32; --ts-amber: #b26a00; --ts-red: #b3261e;
  font-family: inherit; color: var(--ts-ink); text-align: left; line-height: 1.35;
}
.tsearch-scope .tsearch-icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
/* Datasheets & sales sheets, Guides and Related pages: icons supplied by Stan (2026-09-19), tinted brand blue through a mask. */
.tsearch-scope .tsearch-glyph { width: 26px; height: 26px; background: currentColor; -webkit-mask: var(--ts-glyph) center / contain no-repeat; mask: var(--ts-glyph) center / contain no-repeat; }
.tsearch-scope .tsearch-glyph--datasheet { --ts-glyph: url(icons/datasheet.png); }
.tsearch-scope .tsearch-glyph--guide { --ts-glyph: url(icons/guide.png); }
.tsearch-scope .tsearch-glyph--pages { --ts-glyph: url(icons/pages.png); }
.tsearch-scope .tsearch-badge { font-size: 11px; color: var(--ts-blue); }
.tsearch-scope .tsearch-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
/* A chip is a link (it has to filter without JavaScript), so it also has to beat the theme's own `a` rule -
   color #363636, font-weight 700, text-decoration underline. Two classes deep under .tsearch-scope outweighs a
   bare element selector, and `font: inherit` resets the weight; the underline needs saying outright. */
.tsearch-scope .tsearch-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 14px;
  border: 1px solid var(--ts-line); border-radius: 0; background: #fff; color: var(--ts-ink); font: inherit; font-size: 14px; cursor: pointer; text-decoration: none; }
.tsearch-scope .tsearch-chip:hover { border-color: var(--ts-blue); }
.tsearch-scope .tsearch-chip[aria-current="true"] { background: var(--ts-blue); border-color: var(--ts-blue); color: #fff; }
.tsearch-scope .tsearch-chip__count { font-size: 12px; opacity: .75; }
.tsearch-scope .tsearch-cards { margin: 0 0 32px; }
.tsearch-scope .tsearch-cards__head { display: flex; align-items: baseline; gap: 12px; margin: 0 0 12px; }
.tsearch-scope .tsearch-cards__head .eyebrow { margin: 0; }
.tsearch-scope .tsearch-cards__note { font-size: 12px; color: var(--ts-muted); }
.tsearch-scope .tsearch-cards__more { margin: 8px 0 0; font-size: 14px; color: var(--ts-muted); }
.tsearch-scope .tsearch-engineer-line { margin: 16px 0 0; }
.tsearch-scope .tsearch-engineer { color: var(--ts-blue); font-weight: 700; text-decoration: none; font-size: inherit; }
.tsearch-scope .tsearch-engineer:is(:hover, :focus) { color: var(--ts-blue); text-decoration: underline; }
.tsearch-scope .tsearch-more { margin: 8px 0 0; padding: 10px 18px; border: 1px solid var(--ts-blue); background: #fff;
  color: var(--ts-blue); font: inherit; font-weight: 700; font-size: 14px; border-radius: 0; cursor: pointer; }
.tsearch-scope .tsearch-more:hover { background: var(--ts-blue); color: #fff; }
/* The card's arrow button is pinned to the bottom right of .post__content, so the meta line keeps clear of it. */
.tsearch-scope .search-result__meta { display: flex; flex-wrap: wrap; gap: 8px; padding-right: 80px; margin: 8px 0 0;
  font-size: 14px; color: var(--ts-muted); }
.tsearch-scope .search-result__meta .post__price { font-weight: 700; color: var(--ts-ink); }
.tsearch-scope .search-result__meta .post__model { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.tsearch-scope .tsearch-card__tile { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
  min-height: 96px; color: var(--ts-blue); }
.tsearch-scope .tsearch-card__tile .tsearch-glyph { width: 48px; height: 48px; }

/* Only this stylesheet sets it, which is how results.js tells whether it is already in force. The shared tokens
   above cannot answer that: dropdown.css defines the same block on the same selector, and it loads the moment the
   visitor touches the header field. A different selector from that block on purpose, so the two stylesheets keep
   the identical .tsearch-scope rule that engine/test/assets.test.js holds them to. */
#tsearch-results { --ts-results: 1; }
