/* EDIT GUIDE: css/bw-search.css
   Search inputs, suggestions, results and modal layouts. Keep mobile/short-screen overrides with their related desktop rules.
   Search EDIT BLOCK for selectors/functions; see EDITING-GUIDE.md for the file map.
*/
/* Search controls and result lists; plain local JS progressively enhances normal GET forms. */

/* EDIT BLOCK: .bw-search. Change the declarations below; shared overrides may load later. */
.bw-search{position:relative;margin:0;min-width:0}
/* EDIT BLOCK: .bw-search label. Change the declarations below; shared overrides may load later. */
.bw-search label{display:block;font-size:15px;font-weight:600;margin-bottom:10px}
/* EDIT BLOCK: .bw-search-field. Change the declarations below; shared overrides may load later. */
.bw-search-field{display:flex;background:#fff;border:1px solid #a8bbce;border-radius:4px;overflow:hidden}
/* EDIT BLOCK: .bw-search-field:focus-within. Change the declarations below; shared overrides may load later. */
.bw-search-field:focus-within{outline:3px solid #ff9563;outline-offset:2px}
/* EDIT BLOCK: .bw-search-field input. Change the declarations below; shared overrides may load later. */
.bw-search-field input{width:100%;min-width:0;border:0;padding:14px 16px;background:white;color:#0b1f3a;font-size:16px;outline:none!important}
/* EDIT BLOCK: .bw-search-field button. Change the declarations below; shared overrides may load later. */
.bw-search-field button{border:0;background:#ff6a2a;color:#0b1f3a;font-size:14px;font-weight:700;padding:12px 22px;white-space:nowrap}
/* EDIT BLOCK: .bw-search-field button:hover. Change the declarations below; shared overrides may load later. */
.bw-search-field button:hover{background:#ff854e}
/* EDIT BLOCK: .bw-suggestions. Change the declarations below; shared overrides may load later. */
.bw-suggestions{position:absolute;left:0;right:0;top:100%;background:white;color:#0b1f3a;border:1px solid #bacbdb;border-radius:4px;box-shadow:0 12px 28px #07172d33;z-index:20;max-height:360px;overflow:auto;margin-top:4px}
/* EDIT BLOCK: .bw-suggestion-group. Change the declarations below; shared overrides may load later. */
.bw-suggestion-group{border-top:1px solid #e3eaf1;padding:7px 12px 3px;color:#536274;font-size:10px;letter-spacing:.12em;font-weight:700}
/* EDIT BLOCK: .bw-suggestion. Change the declarations below; shared overrides may load later. */
.bw-suggestion{display:block;padding:10px 14px;cursor:pointer;font-size:14px;line-height:1.4}
/* EDIT BLOCK: .bw-suggestion small. Change the declarations below; shared overrides may load later. */
.bw-suggestion small{display:block;color:#536274;font-size:11px;margin-top:3px}
/* EDIT BLOCK: .bw-suggestion:hover,.bw-suggestion[aria-selected=true]. Change the declarations below; shared overrides may load later. */
.bw-suggestion:hover,.bw-suggestion[aria-selected=true]{background:#fff0e7;box-shadow:inset 3px 0 #ff6a2a}
/* EDIT BLOCK: .bw-search-dialog. Change the declarations below; shared overrides may load later. */
.bw-search-dialog{width:min(820px,calc(100% - 32px));max-height:85dvh;overflow:visible;padding:28px;border:1px solid #ccd8e4;border-radius:8px;color:#0b1f3a;margin:110px auto auto;background:#fff}
/* EDIT BLOCK: .bw-search-dialog::backdrop. Change the declarations below; shared overrides may load later. */
.bw-search-dialog::backdrop{background:#06182bd9}
/* EDIT BLOCK: .bw-dialog-top. Change the declarations below; shared overrides may load later. */
.bw-dialog-top{display:flex;justify-content:space-between;gap:20px;margin-bottom:26px;align-items:start}
/* EDIT BLOCK: .bw-dialog-top button. Change the declarations below; shared overrides may load later. */
.bw-dialog-top button{border:1px solid #b6c6d5;background:white;padding:5px 10px;font-size:12px;white-space:nowrap}
/* EDIT BLOCK: .bw-search-dialog>a. Change the declarations below; shared overrides may load later. */
.bw-search-dialog>a{display:inline-block;margin-top:16px;font-size:13px;color:#1f4e79}
/* EDIT BLOCK: .bw-search-dialog .bw-suggestions. Change the declarations below; shared overrides may load later. */
.bw-search-dialog .bw-suggestions{max-height:min(330px,40dvh)}
/* EDIT BLOCK: .bw-search-page. Change the declarations below; shared overrides may load later. */
.bw-search-page{min-height:65vh;background:#f8fafc;padding:44px 0 64px}
/* EDIT BLOCK: .bw-search-page h1. Change the declarations below; shared overrides may load later. */
.bw-search-page h1{font-size:40px;margin:12px 0 22px}
/* EDIT BLOCK: .bw-search-page>.bw-wrap>p. Change the declarations below; shared overrides may load later. */
.bw-search-page>.bw-wrap>p{max-width:760px;margin-bottom:24px}
/* EDIT BLOCK: .bw-result-filters. Change the declarations below; shared overrides may load later. */
.bw-result-filters{display:flex;gap:9px;flex-wrap:wrap;margin:24px 0 16px}
/* EDIT BLOCK: .bw-result-filters button. Change the declarations below; shared overrides may load later. */
.bw-result-filters button{border:1px solid #bbcbd9;border-radius:30px;background:white;color:#1f4e79;padding:7px 16px;font-size:13px}
/* EDIT BLOCK: .bw-result-filters button[aria-pressed=true]. Change the declarations below; shared overrides may load later. */
.bw-result-filters button[aria-pressed=true]{background:#0b1f3a;color:white;border-color:#0b1f3a}
/* EDIT BLOCK: .bw-results. Change the declarations below; shared overrides may load later. */
.bw-results{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:22px}
/* EDIT BLOCK: .bw-result. Change the declarations below; shared overrides may load later. */
.bw-result{display:block;text-decoration:none;background:white;border:1px solid #dce4ec;padding:24px;border-radius:5px}
/* EDIT BLOCK: .bw-result:hover. Change the declarations below; shared overrides may load later. */
.bw-result:hover{border-color:#c45423}
/* EDIT BLOCK: .bw-result h2. Change the declarations below; shared overrides may load later. */
.bw-result h2{font-size:21px;letter-spacing:0;margin:7px 0 12px}
/* EDIT BLOCK: .bw-result p. Change the declarations below; shared overrides may load later. */
.bw-result p{font-size:13px}
/* EDIT BLOCK: .bw-result span. Change the declarations below; shared overrides may load later. */
.bw-result span{font-size:10px;color:#9d3b10;letter-spacing:.1em}
/* EDIT BLOCK: .bw-result-context. Change the declarations below; shared overrides may load later. */
.bw-result-context{background:#eaf1f7;border-left:3px solid #ff6a2a;padding:18px;margin-top:20px;color:#1f4e79;font-size:14px}
/* EDIT BLOCK: .bw-result-context a. Change the declarations below; shared overrides may load later. */
.bw-result-context a{font-weight:700}
/* EDIT BLOCK: .bw-legacy-search. Change the declarations below; shared overrides may load later. */
.bw-legacy-search{display:inline-flex!important;align-items:center;font-weight:600}

/* EDIT BLOCK: @media(max-width:760px). Change the declarations below; shared overrides may load later. */
@media(max-width:760px){.bw-search-field input{padding:12px;font-size:16px}.bw-search-field button{padding:10px 13px;font-size:12px}.bw-search label{font-size:13px}.bw-search-dialog{padding:20px;margin-top:82px}.bw-dialog-top strong{font-size:16px;line-height:1.4}.bw-results{grid-template-columns:1fr}.bw-search-page h1{font-size:32px}.bw-search-page{padding-top:30px}.bw-result{padding:20px}}
/* Landscape phones and compact windows: keep close/search/results reachable.
   Suggestions join the dialog flow here so an overflowing list cannot escape it. */

/* EDIT BLOCK: @media(max-height:720px). Change the declarations below; shared overrides may load later. */
@media(max-height:720px){
 .bw-search-dialog{margin:16px auto;max-height:calc(100dvh - 32px);overflow:auto}
 .bw-search-dialog .bw-suggestions{position:static;max-height:34dvh}
 .bw-dialog-top{margin-bottom:16px}
}

/* EDIT BLOCK: .bw-dialog-top button. Change the declarations below; shared overrides may load later. */
.bw-dialog-top button{min-height:44px}

/* EDIT BLOCK: .bw-result:is(:hover,:focus-visible). Change the declarations below; shared overrides may load later. */
.bw-result:is(:hover,:focus-visible){border-color:#ff6a2a;box-shadow:0 8px 24px #0b1f3a12}
