/* Blog title search (2026-10-28): search card on the right of the blog hero, instant suggestions, results bar, empty state.
   Loaded only on /blogs. Builds on site.css tokens. */

/* ---------- hero with a right-hand column ---------- */
/* the hero clips its decorative glow; let the suggestion list hang below it (clip sideways only) and sit above the posts */
.site-hero--aside { overflow: visible; overflow-x: clip; z-index: 5; }
@media (min-width: 992px) {
    .site-hero--aside .site-container { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 430px); column-gap: clamp(32px, 4vw, 64px); align-items: center; }
    .site-hero--aside .site-container > :not(.site-hero__aside) { grid-column: 1; }
    .site-hero--aside .site-hero__aside { grid-column: 2; grid-row: 1 / span 4; }
}
.site-hero__aside { position: relative; z-index: 3; margin-top: 24px; }
@media (min-width: 992px) { .site-hero__aside { margin-top: 0; } }

/* ---------- search card ---------- */
.bs { margin: 0; }
.bs__card { position: relative; padding: 18px; border-radius: 22px; background: rgba(255, 255, 255, .82); border: var(--border); box-shadow: 0 24px 48px -32px rgba(0, 0, 0, .35), 0 1px 2px rgba(0, 0, 0, .04); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.bs__card::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none; background: linear-gradient(135deg, rgba(247, 147, 31, .55), rgba(247, 147, 31, 0) 45%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.bs__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.bs__title { font-size: 14.5px; font-weight: 600; color: var(--c-text); }
.bs__count { padding: 3px 10px; border-radius: var(--r-pill); background: var(--accent-tint); font-size: 12px; color: var(--accent-text); }
.bs__count b { font-weight: 600; }

.bs__field { position: relative; display: flex; align-items: center; }
.bs__icon { position: absolute; left: 16px; width: 19px; height: 19px; fill: none; stroke: var(--c-faint); stroke-width: 2; stroke-linecap: round; pointer-events: none; transition: stroke .15s var(--ease); }
.bs__field input { width: 100%; min-height: 52px; padding: 12px 96px 12px 46px; border: 1px solid var(--c-border-strong); border-radius: var(--r-pill); background: #fff; font: 400 15px var(--font); color: var(--c-text); outline: 0; -webkit-appearance: none; appearance: none;
    transition: border-color .15s var(--ease), box-shadow .15s var(--ease); }
.bs__field input::placeholder { color: var(--c-faint); }
.bs__field input::-webkit-search-cancel-button { -webkit-appearance: none; }
.bs__field input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(247, 147, 31, .18); }
.bs__field:focus-within .bs__icon { stroke: var(--accent-text); }
.bs__kbd { position: absolute; right: 58px; display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 6px; border: 1px solid var(--c-border-strong); background: var(--c-surface-alt); font: 500 12px/1 var(--font); color: var(--c-muted); transition: opacity .15s var(--ease); }
.bs__field:focus-within .bs__kbd { opacity: 0; }
@media (hover: none) { .bs__kbd { display: none; } .bs__field input { padding-right: 62px; } }
.bs__go { position: absolute; right: 6px; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--accent); color: #111; cursor: pointer; box-shadow: 0 8px 18px -10px rgba(242, 96, 12, .9); transition: background-color .15s var(--ease), transform .15s var(--ease); }
.bs__go svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.bs__go:hover { background: var(--accent-hover); transform: translateX(1px); }
.bs__go:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* suggestions */
.bs__list { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 20; max-height: 340px; overflow-y: auto; margin: 0; padding: 6px; list-style: none; background: #fff; border: var(--border); border-radius: 16px; box-shadow: var(--shadow-pop); animation: bs-in .16s var(--ease); }
@keyframes bs-in { from { opacity: 0; transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .bs__list { animation: none; } }
.bs__list a { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 10px; font-size: 13.5px; line-height: 1.45; color: var(--c-text) !important; text-decoration: none; }
.bs__list svg { flex: none; width: 16px; height: 16px; margin-top: 2px; fill: none; stroke: var(--c-faint); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bs__list li.is-active a, .bs__list a:hover { background: var(--c-surface-alt); }
.bs__list li.is-active svg, .bs__list a:hover svg { stroke: var(--accent-text); }
.bs__list mark { padding: 0 1px; border-radius: 3px; background: var(--accent-tint); color: var(--accent-text); font-weight: 600; }
.bs__none { padding: 12px; font-size: 13.5px; color: var(--c-muted); }
.bs__all { padding: 4px 6px 2px; border-top: 1px dashed var(--c-border); margin-top: 4px; }
.bs__all button { width: 100%; padding: 9px 10px; border: 0; border-radius: 10px; background: none; font: 500 13px var(--font); color: var(--accent-text); text-align: left; cursor: pointer; }
.bs__all button:hover { background: var(--accent-tint); }

/* quick terms */
.bs__quick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; font-size: 12.5px; color: var(--c-muted); }
.bs__quick span { margin-right: 2px; }
.bs__quick a { padding: 4px 11px; border-radius: var(--r-pill); background: #fff; border: var(--border); color: var(--c-text-2) !important; text-decoration: none; transition: border-color .15s var(--ease), color .15s var(--ease); }
.bs__quick a:hover, .bs__quick a[aria-current] { border-color: var(--accent); color: var(--accent-text) !important; }

/* ---------- results bar + empty state ---------- */
.bs-results { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 22px; padding: 12px 14px 12px 18px; border-radius: 16px; background: var(--c-surface-alt); border: var(--border); }
.bs-results p { margin: 0; font-size: 14.5px; color: var(--c-text-2); }
.bs-results b { font-weight: 600; color: var(--c-text); }
.bs-results q { font-weight: 600; color: var(--accent-text); quotes: "“" "”"; }
.bs-results__clear { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: var(--r-pill); background: #fff; border: var(--border); font-size: 13px; font-weight: 500; color: var(--c-text) !important; text-decoration: none; }
.bs-results__clear svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.bs-results__clear:hover { border-color: var(--c-text-3); }
.bs-empty { display: grid; justify-items: center; gap: 8px; max-width: 520px; margin: 10px auto; padding: 40px 24px; text-align: center; border: 1px dashed var(--c-border-strong); border-radius: var(--r-xl); }
.bs-empty svg { width: 46px; height: 46px; padding: 11px; margin-bottom: 6px; border-radius: 14px; background: var(--accent-tint); fill: none; stroke: var(--accent-text); stroke-width: 2; stroke-linecap: round; }
.bs-empty strong { font-size: 17px; font-weight: 600; }
.bs-empty p { margin: 0 0 10px; font-size: 14px; color: var(--c-muted); }
