/* Home page site-wide search: magnifier at the left of the nav, results drop down below */
.site-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}
.site-search-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  transition: color 0.18s ease, background-color 0.18s ease;
}
.site-search-toggle:hover,
.site-search-toggle:focus-visible,
.site-search-toggle[aria-expanded="true"] {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}
.site-search-toggle svg {
  width: 18px;
  height: 18px;
}
/* Drops down below the magnifier (search box, then results), so the nav links never move */
.site-search-pop {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.site-search .site-search-input {
  width: 280px;
  padding: 7px 12px;
  font: inherit;
  font-size: 0.9rem;
  color: #ffffff;
  background-color: #0d0d0d;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 8px;
  outline: none;
}
.site-search .site-search-input:focus {
  border-color: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.16);
}
/* Results come from search-dropdown.js (dark styles in dark-theme.css); just size them for the nav */
.site-search .sd-wrap {
  width: auto;
  max-width: none;
}
.site-search .sd-wrap > .site-search-input {
  width: 280px;
}
.site-search .sd-menu {
  width: min(440px, calc(100vw - 32px));
}
