/* Site search: additions to the old theme's .site-search styles in
   _requirements/site.css (panel, quick links, .site-search-results). */

/* Desktop button in the top menu */
nav.primary-nav ul .site-search-item { vertical-align: middle; }
nav.primary-nav ul .site-search-btn { margin: -6px -4px -6px 0; float: none; cursor: pointer; }
.site-search-btn img { width: 32px; height: 32px; }
.site-search-btn:hover img, .site-search-btn.active img { filter: brightness(.6); }
.site-search-btn:focus-visible { outline: 2px solid #00bce2; outline-offset: 4px; }

/* Panel: the theme fades it in with .active; [hidden] keeps it out of the tab order when closed */
.site-search[hidden] { display: none; }
.site-search { padding-top: 40px; max-height: calc(100vh - 100px); }
.site-search.active { opacity: .98; }
/* Close X: in the search row after the Search button (the theme put it top right, right under the menu's search button) */
.site-search .site-search-close-btn { position: relative; top: auto; right: auto; flex: none; align-self: center; background: none; border: 0; padding: 0; margin-left: 8px; }
.site-search .site-search-close-btn:focus-visible { outline: 2px solid #00bce2; outline-offset: 4px; opacity: 1; }
.site-search form { display: flex; gap: 16px; align-items: flex-end; margin-top: 10px; }
.site-search input[name="q"] {
  flex: 1; min-width: 0; height: 56px; background: none; border: 0; border-bottom: 1px solid #ddd;
  border-radius: 0; box-shadow: none; font-size: 40px; font-weight: 700; color: #58595B; padding: 0;
}
.site-search input[name="q"]:focus { border-bottom-color: #00bce2; outline: none; box-shadow: none; }
.site-search form .btn { flex: none; }

/* Results (panel and /search/ page) */
.site-search-status { margin: 20px 0 0; color: #58595B; font-size: 16px; }
.site-search-results h4 { font-size: 22px; }
.site-search-results p { font-size: 16px; color: #58595B; }
.site-search-results mark { background: #fff2a8; padding: 0 1px; color: inherit; }
.site-search-more { margin: 10px 0 30px; }

/* Phone menu search box */
.mobi-search { padding: 12px 0 8px; }
.mobi-search form { display: flex; gap: 8px; }
.mobi-search form .form-control { flex: 1; min-width: 0; height: 48px; padding: 0 12px; font-size: 16px; }
.mobi-search form .btn { display: inline-block; height: 48px; }

/* /search/ page */
.search-page form { display: flex; gap: 12px; max-width: 720px; margin: 10px 0 0; }
.search-page form .form-control { flex: 1; min-width: 0; font-size: 18px; padding: 10px 12px; }
.search-page .site-search-results { max-width: 860px; }

@media (max-width: 991px) {
  .site-search input[name="q"] { font-size: 26px; height: 44px; }
}
