.catalog-header { position: relative; }
.catalog-header nav a.nav-tool-search,
.catalog-header nav button.nav-tool-search {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border: 1px solid #254f3c;
  border-radius: 6px;
  background: #254f3c;
  color: #fffaf0;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.catalog-header nav .nav-tool-search:hover { background: #183b2c; color: #fffaf0; }
.catalog-header nav .nav-tool-search small { margin: 0; color: #254f3c; }
.catalog-header nav .nav-tool-search[hidden],
.nav-tool-panel[hidden],
.nav-tool-examples[hidden] { display: none; }

.nav-tool-panel {
  position: absolute;
  inset: calc(100% + 6px) 0 auto auto;
  z-index: 12;
  box-sizing: border-box;
  width: min(100%, 460px);
  max-height: min(66vh, 550px);
  overflow-y: auto;
  padding: 17px;
  border: 1px solid #c9d5bf;
  border-radius: 9px;
  background: #fffdf7;
  color: #253f33;
  box-shadow: 0 12px 26px rgba(26, 56, 41, .16);
}
.nav-tool-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 11px; }
.nav-tool-heading h2 { margin: 0; font: 24px/1.15 Georgia, serif; }
.nav-tool-heading button {
  flex: 0 0 34px;
  min-height: 34px;
  padding: 0;
  border: 1px solid #d7dfcf;
  border-radius: 5px;
  background: #fffefa;
  color: inherit;
  font: 22px/1 Arial, sans-serif;
  cursor: pointer;
}
.nav-tool-panel form label { display: block; margin-bottom: 6px; font-weight: 700; font-size: 13px; }
.nav-tool-input-row { display: flex; gap: 8px; }
.nav-tool-input-row input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 8px;
  border: 1px solid #a8b9a0;
  border-radius: 5px;
  background: white;
  color: #253f33;
  font: 16px/1.25 Arial, sans-serif;
}
.nav-tool-input-row button {
  padding: 8px 12px;
  border-radius: 5px;
  background: #254f3c;
  color: white;
  font: 700 13px Arial, sans-serif;
  cursor: pointer;
}
.nav-tool-examples { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 11px; font-size: 12px; }
.nav-tool-examples button {
  min-height: 33px;
  padding: 3px 10px;
  border: 1px solid #cbd7c2;
  border-radius: 15px;
  background: #eff2e8;
  color: #254f3c;
  font: inherit;
  cursor: pointer;
}
.nav-tool-status { margin: 10px 0 0; color: #4b604f; font-size: 13px; }
.nav-tool-status:empty { margin: 0; }
.nav-tool-results { list-style: none; margin: 0; padding: 0; }
.nav-tool-results a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 40px;
  padding: 5px 8px;
  border-bottom: 1px solid #dde4d7;
  color: #254f3c;
  font-size: 14px;
}
.nav-tool-results a:hover, .nav-tool-results a:focus-visible { background: #edf1e7; text-decoration: underline; }
.nav-tool-results small { color: #4b604f; font-size: 11px; }
.nav-tool-directory { display: inline-block; margin-top: 12px; color: #254f3c; font-weight: 700; font-size: 13px; }
.nav-tool-panel :focus-visible, .catalog-header .nav-tool-search:focus-visible { outline: 2px solid #4b795b; outline-offset: 2px; }
@media (max-width: 480px) {
  .catalog-header nav .nav-tool-search small { display: none; }
  .catalog-header nav .nav-tool-search { padding-inline: 6px; }
  .nav-tool-panel { padding: 13px; }
}
