/* Homepage search toolbar: compact by default, full functionality on demand.
   This sheet is loaded AFTER the established navy/blue site styles. */
body .search-panel .active-filters:empty { display:none; }
body .search-panel .filters {
  position:relative;
  display:grid;
  grid-template-columns:1.05fr 1fr .95fr 1.02fr .93fr 1.03fr 118px;
  gap:8px;
  align-items:stretch;
  margin:12px auto 0;
  padding:0 24px;
  max-width:1180px;
  box-sizing:border-box;
}
body .search-panel .filters > select {
  width:100%;
  min-width:0;
  min-height:45px;
  padding:10px 27px 10px 11px;
  border:1px solid #dbe4f0;
  border-radius:9px;
  color:#21344f;
  background:#fff;
  font-size:14px;
  font-weight:550;
  line-height:1.3;
  text-overflow:ellipsis;
  box-shadow:0 1px 3px rgba(10,31,58,.035);
}
body .search-panel .filters > .search-advanced { min-width:0; margin:0; padding:0; }
body .search-panel .filters > .search-advanced > summary {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-height:45px;
  box-sizing:border-box;
  padding:10px 11px;
  border:1px solid #bcd2f1;
  border-radius:9px;
  background:#eef5ff;
  color:#194e8f;
  font-size:13px;
  font-weight:720;
  line-height:1.2;
  white-space:nowrap;
  cursor:pointer;
}
body .search-panel .filters > .search-advanced > summary::before { content:none; }
body .search-panel .filters > .search-advanced > summary::after {
  content:"⌄";
  font-size:17px;
  font-weight:500;
  line-height:1;
  transform:translateY(-1px);
}
body .search-panel .filters > .search-advanced[open] > summary::after { transform:rotate(180deg) translateY(-1px); }
body .search-panel .filters > .search-advanced > summary:hover,
body .search-panel .filters > .search-advanced[open] > summary {
  background:#e3efff;
  border-color:#98b7e9;
  color:#123f78;
}
body .search-panel .filters > .search-advanced > summary:focus-visible {
  outline:3px solid #8bb5fb;
  outline-offset:3px;
}
body .search-panel .filters .search-advanced-inner {
  position:absolute;
  z-index:15;
  top:calc(100% + 9px);
  right:24px;
  width:min(775px, calc(100% - 48px));
  max-height:min(72vh, 720px);
  overflow-y:auto;
  overscroll-behavior:contain;
  box-sizing:border-box;
  margin:0;
  padding:20px;
  border:1px solid #d9e6f5;
  border-radius:13px;
  background:#fff;
  box-shadow:0 18px 45px rgba(14,41,76,.16);
}
body .search-panel .filters .advanced-utilities {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:10px 18px;
  border-top:1px solid #e9eef7;
  margin-top:15px;
  padding-top:12px;
}
body .search-panel .filters .advanced-utilities > .saved-search-panel {
  flex:1 1 270px;
  min-width:0;
  margin:0;
}
body .search-panel .filters .advanced-utilities > #shareSearch {
  margin:0;
  min-height:39px;
  white-space:nowrap;
}
body .search-panel .filters .search-workspace-status { margin:5px 0 0; }
body .content { padding-top:21px; }
body .content-header { align-items:center; gap:12px 20px; margin-bottom:11px; }
body .content-header .results-tools { display:flex; align-items:center; flex-wrap:wrap; justify-content:flex-end; gap:8px 17px; }
body .content-header .result-count { font-size:13px; color:#64758a; }
body .content-header #createAlertLink { color:#155eef; text-decoration:none; font-size:13px; font-weight:680; }
body .content-header #createAlertLink:hover { text-decoration:underline; }
body .specialty-shortcuts { display:flex; align-items:center; flex-wrap:wrap; gap:7px 9px; margin:0 0 16px; font-size:13px; line-height:1.25; }
body .specialty-shortcuts .specialty-label { color:#65758b; font-weight:650; margin-right:2px; }
body .specialty-shortcuts > a, body .specialty-shortcuts .specialty-more > summary {
  display:inline-flex;
  align-items:center;
  box-sizing:border-box;
  min-height:33px;
  border:1px solid #e0e8f4;
  background:#fff;
  color:#285a98;
  padding:7px 11px;
  border-radius:8px;
  font-size:12px;
  font-weight:600;
  text-decoration:none;
  white-space:nowrap;
}
body .specialty-shortcuts > a:hover,
body .specialty-shortcuts .specialty-more > summary:hover { background:#eff5ff; border-color:#bdd5f4; color:#155eef; }
body .specialty-shortcuts .specialty-more { position:relative; }
body .specialty-shortcuts .specialty-more > summary { cursor:pointer; list-style:none; }
body .specialty-shortcuts .specialty-more > summary::-webkit-details-marker { display:none; }
body .specialty-shortcuts .specialty-more > summary::after { content:"⌄"; margin-left:7px; color:#6d82a1; }
body .specialty-shortcuts .specialty-more[open] > summary::after { transform:rotate(180deg); }
body .specialty-shortcuts .specialty-more-links {
  position:absolute;
  top:calc(100% + 7px);
  right:0;
  z-index:4;
  display:grid;
  width:max-content;
  min-width:190px;
  gap:4px;
  padding:8px;
  box-sizing:border-box;
  border:1px solid #dce6f1;
  border-radius:10px;
  background:#fff;
  box-shadow:0 12px 28px rgba(17,43,81,.12);
}
body .specialty-shortcuts .specialty-more-links a { display:block; text-decoration:none; border-radius:7px; color:#285a98; padding:10px 11px; white-space:nowrap; }
body .specialty-shortcuts .specialty-more-links a:hover { background:#eff5ff; }
@media(max-width:1040px) {
  body .search-panel .filters { grid-template-columns:repeat(3,minmax(0,1fr)); }
  body .search-panel .filters > .search-advanced { grid-column:span 3; }
  body .search-panel .filters > .search-advanced > summary { justify-content:center; }
}
@media(max-width:700px) {
  body .search-panel .filters { padding:0 16px; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
  body .search-panel .filters > .search-advanced { grid-column:span 2; }
  body .search-panel .filters .search-advanced-inner { right:16px; width:calc(100% - 32px); padding:15px; max-height:72vh; }
  body .content { padding-top:20px; }
  body .content-header { align-items:flex-start; flex-wrap:wrap; }
  body .content-header .results-tools { justify-content:flex-start; }
  body .specialty-shortcuts .specialty-label { flex-basis:100%; }
}
@media(max-width:370px) {
  body .search-panel .filters > select { font-size:13px; padding-left:8px; }
  body .specialty-shortcuts .specialty-more-links { right:auto; left:0; }
}
