/* SCOM2K7 Search. Tokens follow the theme: blue #1D4ED8, text #111827 / #374151, muted #6B7280, border #E5E7EB. */

/* Header buttons */
.nav-search-item { display: flex; align-items: center; }
.nav-search-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.25rem; height: 2.25rem; margin-right: 0.25rem;
  background: none; border: 0; border-radius: 0.375rem; color: #374151; cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-search-btn:hover, .nav-search-btn[aria-expanded="true"] { background: #EFF6FF; color: #1D4ED8; }
.nav-search-btn:focus-visible { outline: 2px solid #1D4ED8; outline-offset: 2px; }
.mobile-nav-search {
  display: flex; align-items: center; gap: 0.625rem; width: 100%;
  margin: 0.5rem 0 0.25rem; padding: 0.75rem 0.75rem;
  background: #F9FAFB; border: 1px solid #E5E7EB; border-radius: 0.5rem;
  color: #374151; font: inherit; font-weight: 500; text-align: left; cursor: pointer;
}
.mobile-nav-search:hover { border-color: #1D4ED8; color: #1D4ED8; }

/* Panel under the header */
.s2k-search { position: fixed; left: 0; right: 0; top: 65px; z-index: 1100; }
.s2k-search[hidden] { display: none; }
.s2k-search__panel {
  background: #FFFFFF; border-bottom: 1px solid #E5E7EB;
  box-shadow: 0 16px 40px rgba(17, 24, 39, 0.16);
  max-height: calc(100vh - 65px); overflow-y: auto;
  padding: 1rem 0 1.25rem;
}
.s2k-search__form { position: relative; display: flex; align-items: center; gap: 0.5rem; }
.s2k-search__icon { position: absolute; left: 0.875rem; top: 50%; transform: translateY(-50%); color: #6B7280; pointer-events: none; }
.s2k-search__input {
  flex: 1; min-width: 0; padding: 0.875rem 1rem 0.875rem 2.75rem;
  border: 1px solid #E5E7EB; border-radius: 0.5rem; background: #FFFFFF;
  color: #111827; font: inherit; font-size: 1.0625rem;
}
.s2k-search__input:focus { outline: none; border-color: #1D4ED8; box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12); }
.s2k-search__input::-webkit-search-cancel-button { -webkit-appearance: none; }
.s2k-search__submit {
  padding: 0.875rem 1.25rem; background: #1D4ED8; color: #FFFFFF; border: 0; border-radius: 0.5rem;
  font: inherit; font-weight: 600; cursor: pointer;
}
.s2k-search__submit:hover { background: #2563EB; }
.s2k-search__close {
  display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem;
  background: none; border: 0; border-radius: 0.5rem; color: #6B7280; cursor: pointer;
}
.s2k-search__close:hover { background: #F3F4F6; color: #111827; }
.s2k-search.is-loading .s2k-search__icon { color: #1D4ED8; }

.s2k-search__results { margin-top: 0.75rem; }
.s2k-search__item {
  display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 0.875rem; align-items: start;
  padding: 0.75rem 0.75rem; border-radius: 0.5rem; text-decoration: none; color: inherit;
}
.s2k-search__item:hover, .s2k-search__item.is-active { background: #F3F4F6; }
.s2k-search__item.is-active .s2k-search__title { color: #1D4ED8; }
.s2k-search__type, .s2k-result__type {
  display: inline-block; margin-top: 0.1rem; padding: 0.15rem 0.5rem; border-radius: 999px;
  background: #F3F4F6; color: #4B5563; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.02em; white-space: nowrap;
}
.s2k-search__type--product, .s2k-result__type--product { background: #EFF6FF; color: #1D4ED8; }
.s2k-search__type--guide, .s2k-result__type--guide { background: #ECFDF5; color: #047857; }
.s2k-search__text { display: block; min-width: 0; }
.s2k-search__title { display: block; font-weight: 600; color: #111827; line-height: 1.35; }
.s2k-search__snippet { display: block; margin-top: 0.15rem; color: #4B5563; font-size: 0.875rem; line-height: 1.45; }
.s2k-search__date { display: block; margin-top: 0.15rem; color: #9CA3AF; font-size: 0.75rem; }
.s2k-search__more {
  display: inline-block; margin: 0.5rem 0.75rem 0; color: #1D4ED8; font-weight: 600; text-decoration: none;
}
.s2k-search__more:hover { text-decoration: underline; }
.s2k-search__hint { margin: 0.75rem 0.75rem 0; color: #6B7280; font-size: 0.8125rem; }
.s2k-search__hint:empty { display: none; }
.s2k-search__keys kbd {
  display: inline-block; padding: 0 0.35rem; margin: 0 0.1rem; border: 1px solid #E5E7EB; border-bottom-width: 2px;
  border-radius: 0.25rem; background: #FFFFFF; font: inherit; font-size: 0.75rem; color: #374151;
}
mark { background: rgba(29, 78, 216, 0.14); color: inherit; border-radius: 2px; padding: 0 1px; }

@media (max-width: 767px) {
  .s2k-search__panel { padding: 0.75rem 0 1rem; max-height: calc(100vh - 56px); }
  .s2k-search__item { grid-template-columns: minmax(0, 1fr); gap: 0.25rem; }
  .s2k-search__submit { display: none; }
  .s2k-search__input { font-size: 1rem; }
}

/* Results page */
.s2k-results__head { max-width: 46rem; margin: 0 auto; text-align: center; }
.s2k-results__title { font-size: 2rem; font-weight: 700; color: #111827; margin: 0 0 1.25rem; line-height: 1.2; overflow-wrap: anywhere; }
.s2k-results__form { display: flex; gap: 0.5rem; }
.s2k-results__form input {
  flex: 1; min-width: 0; padding: 0.875rem 1rem; border: 1px solid #E5E7EB; border-radius: 0.5rem; background: #FFFFFF;
  color: #111827; font: inherit; font-size: 1.0625rem;
}
.s2k-results__form input:focus { outline: none; border-color: #1D4ED8; box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12); }
.s2k-results__form .btn { padding: 0.875rem 1.5rem; }
.s2k-results__note { margin: 1rem 0 0; color: #374151; }
.s2k-results__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1rem; max-width: 46rem; margin: 0 auto 1.5rem; }
.s2k-results__count { margin: 0; color: #374151; font-weight: 600; }
.s2k-results__ms { color: #9CA3AF; font-weight: 400; font-size: 0.875rem; }
.s2k-results__filters { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.s2k-chip {
  display: inline-block; padding: 0.4rem 0.9rem; border: 1px solid #E5E7EB; border-radius: 999px;
  color: #374151; font-size: 0.875rem; font-weight: 500; text-decoration: none; background: #FFFFFF;
}
.s2k-chip:hover { border-color: #1D4ED8; color: #1D4ED8; }
.s2k-chip.is-active { background: #1D4ED8; border-color: #1D4ED8; color: #FFFFFF; }
.s2k-results__list { list-style: none; max-width: 46rem; margin: 0 auto; padding: 0; }
.s2k-result { padding: 1.25rem 0; border-top: 1px solid #E5E7EB; }
.s2k-result:last-child { border-bottom: 1px solid #E5E7EB; }
.s2k-result__meta { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.35rem; }
.s2k-result__date { color: #6B7280; font-size: 0.8125rem; }
.s2k-result__title { margin: 0; font-size: 1.25rem; line-height: 1.3; font-weight: 700; }
.s2k-result__title a { color: #111827; text-decoration: none; }
.s2k-result__title a:hover { color: #1D4ED8; text-decoration: underline; }
.s2k-result__snippet { margin: 0.4rem 0 0.25rem; color: #374151; line-height: 1.55; }
.s2k-result__url { margin: 0; color: #047857; font-size: 0.8125rem; overflow-wrap: anywhere; }
.s2k-results__empty { max-width: 46rem; margin: 0 auto; color: #374151; line-height: 1.6; }
.s2k-results__empty ul { margin: 0.5rem 0 1rem 1.25rem; }
.s2k-results__pages { display: flex; align-items: center; justify-content: center; gap: 1rem; max-width: 46rem; margin: 2rem auto 0; }
.s2k-results__pageinfo { color: #6B7280; font-size: 0.875rem; }
