/* Benchmarked search (Phase 10). Builds on account.css (inputs, buttons,
   notices, .bm-sr). Live kit colours only: text #191919, body #555555,
   muted #6B6B6B, border #E2E2E2, green #087443 / #055C35. An editorial
   list, not cards; no badges; 44px minimum targets. Scoped to .bm-*. */

/* Form */
html body .bm-searchform{display:grid;gap:8px;margin:0;width:100%;}
html body .bm-searchform__label{font-weight:500;font-size:.9375rem;color:#191919;}
html body .bm-searchform__row{display:flex;gap:8px;align-items:stretch;}
html body .bm-searchform__input{flex:1 1 auto;min-width:0;min-height:52px;font-size:1.0625rem;}
html body .bm-searchform__input::-webkit-search-cancel-button{cursor:pointer;}
html body .bm-searchform .bm-searchform__button{width:auto;flex:none;min-height:52px;padding:12px 24px;}
html body .bm-searchform--hero{max-width:560px;}
html body .bm-searchform--inline{max-width:480px;}
html body .bm-searchform--inline .bm-searchform__input,html body .bm-searchform--inline .bm-searchform__button{min-height:48px;font-size:1rem;}

/* Page */
html body .bm-search{display:grid;gap:24px;max-width:860px;}
html body .bm-search__types ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:4px 20px;border-bottom:1px solid #E2E2E2;}
html body .bm-search__type{display:inline-flex;align-items:center;gap:6px;min-height:44px;color:#555555;text-decoration:none;font-weight:500;border-bottom:2px solid transparent;margin-bottom:-1px;}
html body .bm-search__type:hover{color:#191919;}
html body .bm-search__type.is-current{color:#191919;border-bottom-color:#191919;}
html body .bm-search__type:focus-visible,html body .bm-search__page:focus-visible,html body .bm-sresult__title a:focus-visible{outline:2px solid #087443;outline-offset:2px;}
html body .bm-search__count{color:#6B6B6B;font-weight:400;font-variant-numeric:tabular-nums;}
html body .bm-search__refine{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px 16px;margin:0;}
html body .bm-search__field{display:grid;gap:6px;min-width:0;}
html body .bm-search__field-label{font:500 .75rem/1.6 var(--bmx-font-mono,"Geist Mono",monospace);letter-spacing:.06em;text-transform:uppercase;color:#6B6B6B;}
html body .bm-search__select{box-sizing:border-box;min-height:44px;min-width:200px;max-width:100%;padding:8px 36px 8px 12px;border:1px solid #C8C8C8;border-radius:2px;background:#FFFFFF;color:#191919;font:400 1rem/1.4 var(--bmx-font-body,"General Sans",sans-serif);}
html body .bm-search__select:focus{outline:2px solid #087443;outline-offset:1px;border-color:#087443;}
html body .bm-search .bm-search__apply{width:auto;min-height:44px;}
html body .bm-search__notice{margin:0;font-size:.9375rem;color:#555555;}
html body .bm-search__summary{display:grid;gap:4px;}
html body .bm-search__summary-title{margin:0;font-family:var(--bmx-font-heading,"Geist",sans-serif);font-size:1.375rem;font-weight:500;line-height:1.3;letter-spacing:-.01em;color:#191919;overflow-wrap:anywhere;}
html body .bm-search__order{margin:0;font-size:.875rem;color:#6B6B6B;}

/* Results */
html body .bm-search__results{list-style:none;margin:0;padding:0;border-top:1px solid #E2E2E2;}
html body .bm-search__results > li{border-bottom:1px solid #E2E2E2;}
html body .bm-sresult{display:grid;gap:4px;padding:18px 0;}
html body .bm-sresult__type{margin:0;font:500 .75rem/1.6 var(--bmx-font-mono,"Geist Mono",monospace);letter-spacing:.06em;text-transform:uppercase;color:#6B6B6B;}
html body .bm-sresult__title{margin:0;font-family:var(--bmx-font-heading,"Geist",sans-serif);font-size:1.25rem;font-weight:500;line-height:1.3;letter-spacing:-.01em;}
html body .bm-sresult__title a{display:inline-block;min-height:28px;color:#191919;text-decoration:none;overflow-wrap:anywhere;}
html body .bm-sresult__title a:hover{color:#055C35;text-decoration:underline;text-underline-offset:3px;}
html body .bm-sresult__meta{margin:0;font-size:.9375rem;color:#555555;}
html body .bm-sresult__desc{margin:2px 0 0;font-size:1rem;line-height:1.6;color:#555555;max-width:68ch;}
html body .bm-sresult__why{margin:2px 0 0;font-size:.8125rem;color:#6B6B6B;}

/* States */
html body .bm-search__state{padding:24px 0;border-top:1px solid #E2E2E2;color:#555555;}
html body .bm-search__state p{margin:0 0 8px;}
html body .bm-search__state-title{font-family:var(--bmx-font-heading,"Geist",sans-serif);font-size:1.25rem;font-weight:500;color:#191919;overflow-wrap:anywhere;}
html body .bm-search__state--error{border-top:2px solid #B42318;}
html body .bm-search__tips{margin:8px 0 0;padding-left:1.2em;display:grid;gap:6px;}

/* Pagination */
html body .bm-search__pages{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;}
html body .bm-search__pages ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:6px;}
html body .bm-search__page{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:0 12px;border:1px solid #E2E2E2;border-radius:2px;color:#191919;text-decoration:none;font-variant-numeric:tabular-nums;box-sizing:border-box;}
html body a.bm-search__page:hover{border-color:#191919;}
html body .bm-search__page.is-current{background:#191919;border-color:#191919;color:#FFFFFF;}
html body .bm-search__pageof{margin:0;font-size:.875rem;color:#6B6B6B;}

@media (max-width:600px){
html body .bm-searchform__row{flex-direction:column;}
html body .bm-searchform .bm-searchform__button{width:100%;}
html body .bm-search__refine{display:grid;grid-template-columns:minmax(0,1fr);}
html body .bm-search__select{width:100%;min-width:0;}
html body .bm-search .bm-search__apply{width:100%;}
html body .bm-search__types ul{gap:4px 16px;}
}

/* Suggestions (search-suggest.js) */
html body .bm-searchform.has-suggest .bm-searchform__row{position:relative;}
html body .bm-suggest{position:absolute;z-index:50;top:calc(100% + 4px);left:0;right:0;max-height:min(60vh,420px);overflow-y:auto;margin:0;padding:6px;list-style:none;background:#FFFFFF;border:1px solid #C8C8C8;border-radius:4px;box-shadow:0 8px 24px rgba(25,25,25,.12);text-align:left;}
html body .bm-suggest[hidden]{display:none;}
html body .bm-suggest__item{display:grid;gap:2px;min-height:44px;padding:8px 12px;border-radius:2px;cursor:pointer;}
html body .bm-suggest__item[aria-selected="true"],html body .bm-suggest__item:hover{background:#E8F5EF;}
html body .bm-suggest__item[aria-selected="true"]{outline:2px solid #087443;outline-offset:-2px;}
html body .bm-suggest__title{font-weight:500;color:#191919;font-size:.9375rem;line-height:1.35;overflow-wrap:anywhere;}
html body .bm-suggest__meta{font-size:.8125rem;color:#6B6B6B;}

/* "best loan apps": route to the official ranking */
html body .bm-search__intent{margin:0;padding:14px 16px;border-left:3px solid #087443;background:#E8F5EF;color:#191919;font-size:.9375rem;line-height:1.55;}
html body .bm-search__intent .bm-textlink{font-weight:600;color:#055C35;}
@media (max-width:600px){html body .bm-searchform.has-suggest .bm-searchform__row{position:static;}html body .bm-searchform.has-suggest{position:relative;}html body .bm-suggest{top:auto;}}
