/* 慧联产研洞察 — page-search-dock + toast */
/* Dock layout lives in style.css (.page-search-dock). This file keeps
   highlight marks, toast, and legacy banner cleanup. */

mark.search-hit {
  background: rgba(232, 93, 4, 0.18);
  color: #d4380d;
  padding: 0 2px;
  border-radius: 2px;
  font-weight: inherit;
}

/* Toast */
.ssb-toast {
  position: fixed;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%) translateY(12px);
  z-index: 12000;
  padding: 12px 20px;
  border-radius: 10px;
  background: rgba(15, 23, 42, .92);
  color: #fff;
  font-size: 14px;
  box-shadow: 0 12px 32px rgba(0,0,0,.28);
  opacity: 0;
  pointer-events: none;
  transition: .25s ease;
  max-width: min(90vw, 420px);
  text-align: center;
}
.ssb-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* 首页已有大搜索：隐藏顶栏小搜索（防御性） */
body.is-home .nav-search-box { display: none !important; }

/* Hide empty host before JS inject */
#site-search-banner:empty { display: none; }

/* ===== News search dock: policy shell + left-aligned filter card =====
   Core height/radius/shadow/btn live in style.css (.page-search-dock .psd-form .big-search*).
   Page-specific stack / panel styles live in news.html. */
#site-search-banner.news-search-dock:not(:empty) { display: block; }
.page-search-dock.news-search-dock { margin-bottom: 8px; }
.page-search-dock.news-search-dock .psd-form {
  margin-left: 0;
  margin-right: auto;
}
.page-search-dock.news-search-dock .news-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
}