/* Search section - Scientific Bulletin, Automotive Series (used by search.js) */
.bup-search {
  max-width: 1100px;
  margin: 1.5rem auto 0;
  padding: 1.5rem 2rem;
  border: 1px solid #cfd8e3;
  border-radius: 10px;
  background: #f7f9fc;
  box-sizing: border-box;
}
.bup-search h2 {
  font-family: 'Merriweather', serif;
  color: #004080;
  font-size: 1.4rem;
  margin: 0 0 0.3rem;
}
.bup-search-intro { margin: 0 0 1rem; color: #444; }
.bup-search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.bup-search-form input[type="search"] {
  flex: 1 1 320px;
  min-width: 0;
  padding: 0.6rem 0.75rem;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid #9fb3c8;
  border-radius: 6px;
  background: #fff;
}
.bup-search-form select {
  padding: 0.55rem 0.5rem;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid #9fb3c8;
  border-radius: 6px;
  background: #fff;
}
.bup-search-form input:focus,
.bup-search-form select:focus,
.bup-search-form button:focus-visible {
  outline: 2px solid #004080;
  outline-offset: 1px;
}
.bup-years { display: inline-flex; align-items: center; gap: 0.3rem; }
.bup-search-form button {
  background: #004080;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.62rem 1.3rem;
  font-size: 1rem;
  font-weight: bold;
  font-family: inherit;
  cursor: pointer;
}
.bup-search-form button:hover { background: #00305f; }
.bup-search-help { font-size: 0.85rem; color: #555; margin: 0.6rem 0 0; }
.bup-status { margin: 1rem 0 0.4rem; font-weight: bold; color: #004080; }
.bup-status:empty { display: none; }
.bup-results { list-style: none; margin: 0; padding: 0; }
.bup-hit {
  background: #fff;
  border: 1px solid #dde4ec;
  border-radius: 8px;
  padding: 0.9rem 1rem;
  margin: 0.6rem 0;
}
.bup-hit-title {
  color: #004080;
  font-weight: bold;
  font-size: 1.05rem;
  text-decoration: none;
  line-height: 1.35;
}
.bup-hit-title:hover { text-decoration: underline; }
.bup-hit-authors { margin: 0.3rem 0 0.2rem; color: #222; }
.bup-hit-meta { font-size: 0.85rem; color: #666; }
.bup-hit-meta a { color: #004080; }
.bup-hit-snippet { margin: 0.5rem 0 0.25rem; font-size: 0.92rem; line-height: 1.45; color: #333; }
.bup-hit-kw { font-size: 0.85rem; color: #444; }
.bup-hit-kw span { font-weight: bold; }
.bup-hit-badge {
  display: inline-block;
  margin-top: 0.4rem;
  padding: 0.15rem 0.5rem;
  font-size: 0.78rem;
  color: #004080;
  background: #eef4fb;
  border-radius: 4px;
}
.bup-search mark { background: #ffe58a; color: inherit; padding: 0 0.1em; border-radius: 2px; }
.bup-more {
  display: block;
  margin: 0.8rem auto 0;
  padding: 0.55rem 1.2rem;
  font-size: 0.95rem;
  font-family: inherit;
  color: #004080;
  background: #fff;
  border: 1px solid #004080;
  border-radius: 6px;
  cursor: pointer;
}
.bup-more:hover { background: #eef4fb; }
.bup-more[hidden] { display: none; }
.bup-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
@media (max-width: 640px) {
  .bup-search { margin: 1rem; padding: 1rem; }
  .bup-search-form select, .bup-search-form button { flex: 1 1 auto; }
}
