/* OBP search widget styles. Dark theme aligned with the rest of the network. */
.obp-search-wrap {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}
.obp-search-input {
  width: 100%;
  padding: 14px 18px;
  font-size: 1rem;
  color: #e6edf3;
  background: #151b23;
  border: 1px solid #252d38;
  border-radius: 10px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
  appearance: none;
}
.obp-search-input::placeholder {
  color: #7d8590;
}
.obp-search-input:focus {
  border-color: #58a6ff;
  box-shadow: 0 0 0 3px rgba(88,166,255,0.18);
}
.obp-search-hint {
  margin-top: 8px;
  font-size: 0.78rem;
  color: #7d8590;
  text-align: center;
}
.obp-search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 8px;
  background: #0d1117;
  border: 1px solid #252d38;
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.45);
  max-height: 480px;
  overflow-y: auto;
  z-index: 2000;
}
.obp-search-results[hidden] { display: none; }
.obp-search-row {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "pgm name" "pgm meta";
  gap: 4px 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #1a2230;
  color: #e6edf3;
  text-decoration: none;
  transition: background 0.1s;
}
.obp-search-row:last-child { border-bottom: none; }
.obp-search-row:hover { background: #1a2230; text-decoration: none; }
.obp-search-pgm {
  grid-area: pgm;
  align-self: center;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  letter-spacing: 0.06em;
  line-height: 1;
}
.obp-pgm-ppp { background: #0d2818; color: #3fb950; }
.obp-pgm-eidl { background: #2a2110; color: #d29922; }
.obp-pgm-cases { background: #0d1a2a; color: #58a6ff; }
.obp-search-name {
  grid-area: name;
  font-weight: 600;
  font-size: 0.95rem;
}
.obp-search-meta {
  grid-area: meta;
  font-size: 0.82rem;
  color: #b1bac4;
}
.obp-search-lender { color: #7d8590; }
.obp-search-empty {
  padding: 16px;
  color: #7d8590;
  font-size: 0.9rem;
  text-align: center;
}
.obp-search-banner {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 8px 14px;
  background: #0d1a2a;
  border-bottom: 1px solid #1a2230;
  color: #b1bac4;
  font-size: 0.78rem;
  line-height: 1.4;
}
.obp-search-banner-label {
  color: #58a6ff;
  font-weight: 600;
}
.obp-search-banner em {
  color: #d6dae0;
  font-style: italic;
}
.obp-search-banner a {
  color: #58a6ff;
  text-decoration: underline;
  text-decoration-color: rgba(88, 166, 255, 0.4);
}
.obp-search-banner a:hover {
  text-decoration-color: #58a6ff;
}
.obp-search-ack {
  padding: 20px 18px;
  background: #0d1117;
  text-align: center;
}
.obp-search-ack-title {
  margin: 0 0 8px 0;
  color: #58a6ff;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.obp-search-ack-body {
  margin: 0 0 14px 0;
  color: #b1bac4;
  font-size: 0.82rem;
  line-height: 1.5;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.obp-search-ack-body em {
  color: #d6dae0;
  font-style: italic;
}
.obp-search-ack-body a {
  color: #58a6ff;
  text-decoration: underline;
  text-decoration-color: rgba(88, 166, 255, 0.4);
}
.obp-search-ack-body a:hover {
  text-decoration-color: #58a6ff;
}
.obp-search-ack-btn {
  background: #58a6ff;
  color: #0d1117;
  border: 0;
  border-radius: 6px;
  padding: 8px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.obp-search-ack-btn:hover {
  background: #79b8ff;
}
