/* =====================================================================
   Blogs search (24 Nov 2026) — template-parts/blog-search.php, on /blogs.
   The field, × button, results line, highlight and empty state copy the
   Guides search box value for value (assets/css/help.css §5), so the two
   pages look the same. Results are list rows (assets/css/list-row.css).
   ===================================================================== */

.awwrt-blog-search {
	--bs-text: #CFD4DD;
	--bs-text-hi: #fff;
	--bs-text-strong: #E2E5EC;
	--bs-text-muted: #AAB4C6;
	--bs-text-dim: #8b94a7;
	--bs-accent: #75B8FF;
	max-width: 760px;              /* the Guides column */
	margin: 0 auto;
	text-align: left;
	font-family: Roboto, system-ui, sans-serif;
}
/* Same distance under the support line as the Guides search (40px + 16px). */
.awwrt-blog-search-section { padding-top: 16px; }
/* needs the script: hidden until it has run */
.awwrt-blog-search:not(.is-ready) { display: none; }

.awwrt-blog-search .awwrt-bs-sr {
	position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* the field (= .awwrt-help-search) */
.awwrt-blog-search .awwrt-bs-field {
	position: relative; display: flex; align-items: center; height: 56px; margin: 0;
	border-radius: 999px;
	background: #22252d;   /* flat, sample A (24 Nov 2026): was a glass gradient, blur and shadow */
	transition: box-shadow .2s;
}
/* (24 Nov 2026) no hover change: the field looks the same until it is selected */
/* selected: one thin white line */
.awwrt-blog-search .awwrt-bs-field:focus-within {
	box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.72);
}
.awwrt-blog-search .awwrt-bs-icon {
	position: absolute; left: 20px; width: 20px; height: 20px; pointer-events: none;
	fill: var(--bs-text-muted); transition: fill .2s;
}
.awwrt-blog-search .awwrt-bs-field:focus-within .awwrt-bs-icon { fill: #fff; }
.awwrt-blog-search .awwrt-bs-input {
	flex: 1; min-width: 0; height: 100%; margin: 0; padding: 0 56px 0 54px; border: 0; outline: 0; background: transparent;
	color: #F1F2F6; caret-color: #fff; font: 400 16px/1 Roboto, system-ui, sans-serif;
	-webkit-appearance: none; appearance: none;
}
.awwrt-blog-search .awwrt-bs-input::placeholder { color: var(--bs-text-muted); opacity: 1; }
.awwrt-blog-search .awwrt-bs-input::-webkit-search-cancel-button,
.awwrt-blog-search .awwrt-bs-input::-webkit-search-decoration { -webkit-appearance: none; display: none; }
.awwrt-blog-search .awwrt-bs-clear {
	position: absolute; right: 12px; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0;
	border-radius: 999px; background: rgba(255,255,255,.08); color: var(--bs-text); cursor: pointer;
	transition: background-color .15s, color .15s;
}
.awwrt-blog-search .awwrt-bs-clear[hidden] { display: none; }
.awwrt-blog-search .awwrt-bs-clear:hover { background: rgba(255,255,255,.16); color: var(--bs-text-hi); }
.awwrt-blog-search .awwrt-bs-clear:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.awwrt-blog-search .awwrt-bs-clear svg { width: 20px; height: 20px; fill: currentColor; }

/* "3 posts found" */
.awwrt-blog-search .awwrt-bs-count { margin: 12px 0 0; font-size: 13px; line-height: 1.4; color: var(--bs-text-dim); }
.awwrt-blog-search .awwrt-bs-count:empty { display: none; }

/* results */
.awwrt-blog-search .awwrt-bs-results { margin-top: 16px; }
.awwrt-blog-search .awwrt-bs-results[hidden] { display: none; }
.awwrt-blog-search .awwrt-bs-list { list-style: none; margin: 0; padding: 0; }
.awwrt-blog-search .awwrt-bs-list > li[hidden] { display: none; }
.awwrt-blog-search mark.awwrt-bs-hit { padding: 0; background: none; color: var(--bs-accent); font-weight: 700; }
/* while searching, descriptions show in full so every match is visible */
.awwrt-blog-search.is-searching .awwrt-help-excerpt { display: block; -webkit-line-clamp: unset; overflow: visible; }

/* no results */
.awwrt-blog-search .awwrt-bs-empty { padding: 16px 0 8px; text-align: center; }
.awwrt-blog-search .awwrt-bs-empty[hidden] { display: none; }
.awwrt-blog-search .awwrt-bs-empty p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--bs-text-muted); }
.awwrt-blog-search .awwrt-bs-empty .awwrt-bs-empty-title { margin-bottom: 6px; font-size: 18px; font-weight: 600; color: var(--bs-text-strong); }

/* While a search is on, the rest of /blogs steps aside: only the heading, the
   field and the results show. Clearing the field brings it all back. */
.blogs-archive-page.is-blog-searching > *:not(.awwrt-page-heading):not(.awwrt-blog-search-section) { display: none !important; }
.blogs-archive-page.is-blog-searching .awwrt-blog-search-section { padding-bottom: 96px; }

/* phones (= help.css phone values) */
@media (max-width: 767px) {
	.awwrt-blog-search .awwrt-bs-field { height: 52px; }
	.awwrt-blog-search .awwrt-bs-clear { right: 10px; }
	.awwrt-blog-search .awwrt-bs-icon { left: 18px; }
	.awwrt-blog-search .awwrt-bs-input { padding: 0 52px 0 50px; }
	.awwrt-blog-search .awwrt-bs-count { margin: 10px 0 0; }
	.awwrt-blog-search.is-searching .awwrt-help-title { display: block; -webkit-line-clamp: unset; overflow: visible; }
}
