/* Shared search controls for the ten Dynamic Libraries. */
.lm-library-search-form {
  margin-top: 0;
  width: 100%;
  grid-template-columns: minmax(0, 1fr) auto;
}
.lm-library-search-form > label { min-width: 0; }
.lm-library-search-form input { min-width: 0; }
.lm-library-search-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 25px;
  border: 0;
  border-radius: 18px;
  background: #0f567f;
  color: #fff;
  font: inherit;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 10px 22px rgba(8, 43, 87, .15);
  cursor: pointer;
}
.lm-library-search-button:hover { background: #0c4365; }
.lm-library-search-button:focus-visible {
  outline: 3px solid #e5ad26;
  outline-offset: 3px;
}
@media (max-width: 480px) {
  .lm-library-search-form { grid-template-columns: minmax(0, 1fr); }
  .lm-library-search-button { width: 100%; }
}

/* Visible only after the user submits a nonempty search. */
.lm-library-search-summary[hidden] { display: none; }
.lm-library-search-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 18px 0 16px;
  padding: 12px 18px;
  background: #edf7fc;
  border: 1px solid #d9e9f5;
  border-radius: 14px;
  color: #123e65;
  font-size: 0.95rem;
  font-weight: 700;
}
.lm-library-clear-search {
  border: 1px solid #c2d6e6;
  border-radius: 999px;
  padding: 6px 14px;
  background: #fff;
  color: #164d73;
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}
.lm-library-clear-search:hover { background: #e2eff9; }
.lm-library-clear-search:focus-visible {
  outline: 3px solid #e5ad26;
  outline-offset: 2px;
}
