/* ==========================================================================
   Transcell — search results page
   Added 2026-09-06 for Search Action 02 (Site Search Review 2026-09-01).

   Every rule is scoped to body.search-results so nothing here can reach the
   blog, category or product archives, which share the .post card markup.

   Values are taken from the live site rather than invented:
     .eyebrow      Montserrat 800, uppercase, 2.16px tracking, #BB1200
     body copy     Montserrat, #363636
     navy          #1B3A5C      teal   #1A8A7D      red  #BB1200
   The type label reuses the site's existing .eyebrow component; the rules
   below only resize it and reset its block-level margin so it can sit above
   a result title.

   Class-name note. `.post__meta` could NOT be reused: style-blog.css carries
   `.search .post__image, .search .post__meta { display: none }`, so the theme
   deliberately hides both on search pages. The meta line therefore uses
   `.search-result__meta`. Do not rename it back. That same rule is also why
   search results carry no thumbnails — a deliberate theme choice, not a fault.

   One layout note. .post__content is a relatively positioned flex column, and
   .arrow-link.boxed::after — the blue arrow square — is absolutely positioned
   at bottom:0 right:0 of that column, 52px wide. It therefore sits over
   whatever ends up at the bottom right of the card. The theme clears it on the
   title with 80px of right padding; the description and meta line below use the
   same 80px so nothing runs underneath it.
   ========================================================================== */

/* Type label ------------------------------------------------------------- */

.search-results .post__content .post__type {
	display: inline-block;
	margin: 0 0 0.35rem;
	font-size: 0.6875rem;      /* 11px — .eyebrow is 14.4px, too heavy above an 18px title */
	letter-spacing: 1.6px;
	color: #1B3A5C;
}

/* Buyable results keep the native red eyebrow colour so they stand out
   from the editorial results around them. */
.search-results .post--product .post__type {
	color: #BB1200;
}

/* Title ------------------------------------------------------------------ */

/* The theme gives .post__title a 24px bottom margin because it is the only
   thing in the card. With a description underneath it, that gap is too wide. */
.search-results .post__content .post__title {
	margin-bottom: 0.5rem;
}

/* Description ------------------------------------------------------------ */

.search-results .post__excerpt {
	margin: 0;
	padding-right: 80px;       /* clears .arrow-link.boxed::after */
	font-size: 0.9375rem;      /* 15px */
	line-height: 1.55;
	color: #4a4a4a;
}

/* Meta line: price, stock, SKU, file type, file size --------------------- */

.search-results .search-result__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.35rem;
	margin: 0.65rem 0 0;
	padding-right: 80px;       /* clears .arrow-link.boxed::after */
	font-size: 0.875rem;       /* 14px */
	line-height: 1.4;
}

.search-results .search-result__meta-sep {
	color: #b6bec6;
}

.search-results .post__price {
	font-weight: 700;
	color: #1B3A5C;
}

.search-results .post__price del {
	font-weight: 400;
	opacity: 0.6;
}

.search-results .post__price ins {
	text-decoration: none;
}

/* WooCommerce ships .stock as a block with its own margin; neutralise it
   so it sits inline in the meta row. */
.search-results .search-result__meta .stock {
	display: inline;
	margin: 0;
	padding: 0;
	font-weight: 600;
}

.search-results .search-result__meta .stock.in-stock {
	color: #1A8A7D;
}

.search-results .search-result__meta .stock.out-of-stock,
.search-results .search-result__meta .stock.available-on-backorder {
	color: #BB1200;
}

.search-results .post__sku,
.search-results .post__filesize {
	color: #666;
}

.search-results .post__filetype {
	font-weight: 700;
	color: #1B3A5C;
}

/* Chat assistant handoff (Search Action 05) ------------------------------ */

/* Sits below the results by default; the template and the inline script move it
   above them when the search failed, and :first-child flips the margin. */
.search-results .search-assist {
	margin: 2rem 0 0;
	padding: 1.5rem;
	background: #F8FAFB;
	border: 1px solid #E4E9ED;
}

.search-results .blog-main > .search-assist:first-child {
	margin: 0 0 2rem;
}

.search-results .search-assist .eyebrow {
	font-size: 0.6875rem;
	letter-spacing: 1.6px;
}

.search-results .search-assist__title {
	margin: 0.25rem 0 0.5rem;
	font-size: 1.125rem;       /* 18px, matches .post__title.h5 */
	font-weight: 600;
	color: #1B3A5C;
}

.search-results .search-assist p {
	margin: 0 0 1.25rem;
	max-width: 56ch;
	font-size: 0.9375rem;
	line-height: 1.55;
	color: #4a4a4a;
}

.search-results .search-assist__title + p {
	margin-top: 0;
}

/* .button is the theme's own component and is left alone apart from letting a
   long query wrap instead of overflowing a narrow column. */
.search-results .search-assist .button {
	max-width: 100%;
	white-space: normal;
}

/* Result count in the page header --------------------------------------- */

.search-results .search-results__count {
	margin: 0.5rem 0 0;
	opacity: 0.85;
}

/* Mobile ----------------------------------------------------------------- */

@media (max-width: 600px) {
	.search-results .post__excerpt {
		font-size: 0.875rem;
	}

	/* The meta line wraps at this width. Dropping the dot separators avoids a
	   stranded "&middot;" at the end of the first line; the wider gap does the
	   same job. */
	.search-results .search-result__meta {
		gap: 0.2rem 0.6rem;
		font-size: 0.8125rem;
	}

	.search-results .search-result__meta-sep {
		display: none;
	}

	.search-results .search-assist {
		padding: 1.25rem;
	}
}
