/* Shared search: homepage and Resources use this single stylesheet. */
html { scrollbar-gutter: stable; }
body.knowledge-search-open { overflow: hidden; }
.knowledge-search-palette { position: fixed; inset: 0; width: min(800px, calc(100% - 40px)); max-width: none; max-height: min(640px, calc(100dvh - 64px)); margin: auto; padding: 0; overflow: hidden; border: 1px solid #dce0eb; border-radius: 22px; background: #fcfcff; box-shadow: 0 24px 72px #10142b33; color: #24293d; font: 400 16px/1.5 Inter, Arial, sans-serif; text-align: start; color-scheme: light; }
.knowledge-search-palette *, .knowledge-search-palette *::before, .knowledge-search-palette *::after { box-sizing: border-box; }
.knowledge-search-palette:not([open]) { display: none; }
.knowledge-search-palette[open] { display: flex; flex-direction: column; animation: knowledge-search-enter .16s ease-out; }
.knowledge-search-palette::backdrop { background: #12142257; backdrop-filter: none; -webkit-backdrop-filter: none; }
.knowledge-search-palette .knowledge-search-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.knowledge-search-palette button { font: inherit; cursor: pointer; text-transform: none; letter-spacing: normal; }
.knowledge-search-bar { display: flex; flex-shrink: 0; align-items: center; gap: 12px; padding: 22px 24px 16px; }
.knowledge-search-input { display: flex; flex: 1; min-width: 0; align-items: center; gap: 13px; border-radius: 6px; }
.knowledge-search-input > svg { flex: 0 0 21px; width: 21px; height: 21px; color: #74768e; }
.knowledge-search-input input { flex: 1; min-width: 0; width: 100%; height: 48px; padding: 0; border: 0; border-radius: 0; outline: none; box-shadow: none; background: transparent; color: #25273c; font: 400 19px/1.4 Inter, Arial, sans-serif; }
.knowledge-search-input input::placeholder { color: #787a8f; opacity: 1; }
.knowledge-search-input input::-webkit-search-cancel-button { -webkit-appearance: none; }
.knowledge-search-input:focus-within { box-shadow: 0 2px 0 #d7d2ef; }
.knowledge-search-palette .knowledge-search-clear { flex-shrink: 0; min-height: 44px; padding: 0 6px; border: 0; border-radius: 6px; background: transparent; color: #5e587c; font-size: 14px; }
.knowledge-search-palette .knowledge-search-clear:disabled { color: #9b9ba9; cursor: default; }
.knowledge-search-clear:not(:disabled):hover { color: #46318d; background: #f0eef7; }
.knowledge-search-divider { width: 1px; height: 24px; flex-shrink: 0; background: #e0dfe8; }
.knowledge-search-palette .knowledge-search-close { display: grid; flex: 0 0 44px; width: 44px; height: 44px; place-items: center; padding: 0; border: 0; border-radius: 8px; background: transparent; color: #66677b; }
.knowledge-search-close svg { width: 23px; height: 23px; }
.knowledge-search-close:hover { background: #f0eef7; color: #46318d; }
.knowledge-search-tabs { display: flex; flex-shrink: 0; gap: 6px; padding: 0 24px 16px; }
.knowledge-search-tabs button { min-height: 42px; padding: 8px 17px; border: 0; border-radius: 24px; background: transparent; color: #6b6d80; font-size: 14px; white-space: nowrap; }
.knowledge-search-tabs button:hover { background: #f1f0f7; color: #403459; }
.knowledge-search-tabs button[aria-selected="true"] { background: #ebe7f5; color: #48348a; font-weight: 600; }
.knowledge-search-filters { flex-shrink: 0; padding: 0 24px 14px; }
.knowledge-search-filters label { display: block; position: relative; width: min(260px, 100%); }
.knowledge-search-filters select { appearance: none; -webkit-appearance: none; width: 100%; min-height: 40px; padding: 8px 44px 8px 13px; border: 1px solid #e1e0e9; border-radius: 9px; color: #646278; background: transparent; font: 400 13px/1.4 Inter, Arial, sans-serif; text-overflow: ellipsis; cursor: pointer; }
.knowledge-search-filters label > svg { position: absolute; right: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); pointer-events: none; color: #77738c; }
.knowledge-search-status { display: flex; flex-shrink: 0; justify-content: space-between; gap: 10px; padding: 12px 28px; border-top: 1px solid #ecebf2; color: #858395; font-size: 11px; }
.knowledge-search-status span:first-child { color: #767387; }
.knowledge-search-scroll { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 14px 14px; scrollbar-width: thin; scrollbar-color: #d6d2e3 transparent; }
.knowledge-search-results { display: grid; gap: 4px; padding: 0; margin: 0; list-style: none; }
.knowledge-search-result { display: grid; grid-template-columns: minmax(0, 1fr) auto 20px; align-items: center; gap: 20px; padding: 17px 22px; border: 0; border-radius: 12px; text-decoration: none; color: inherit; transition: background .15s ease; }
.knowledge-search-result:hover { background: #f0eef7; }
.knowledge-search-result:focus-visible { background: #f0eef7; outline: 2px solid #8873bf; outline-offset: -2px; }
.knowledge-search-result-main { display: grid; gap: 5px; min-width: 0; }
.knowledge-search-category { color: #756794; font-size: 11px; font-weight: 500; }
.knowledge-search-result strong { color: #292a3f; font-size: 15px; font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; }
.knowledge-search-result small { color: #7b788c; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.knowledge-search-result-meta { color: #858093; font-size: 11px; white-space: nowrap; }
.knowledge-search-result > i { color: #82769c; font-size: 19px; font-style: normal; text-align: center; }
.knowledge-search-empty { margin: 4px 12px 12px; padding: 28px 12px; }
.knowledge-search-empty strong { font-size: 16px; font-weight: 600; }
.knowledge-search-empty p { margin: 10px 0 18px; color: #7b788c; font-size: 14px; line-height: 1.5; }
.knowledge-search-empty div { display: flex; gap: 8px; flex-wrap: wrap; }
.knowledge-search-empty button { min-height: 44px; padding: 10px 14px; border: 1px solid #dedbe9; border-radius: 9px; color: #514766; background: transparent; font-size: 13px; }
.knowledge-search-empty [data-search-all] { background: #eeeaf6; border-color: #eeeaf6; color: #48348a; }
.knowledge-search-palette button:focus-visible, .knowledge-search-palette select:focus-visible { outline: 2px solid #8873bf; outline-offset: 2px; }
.knowledge-search-results[hidden], .knowledge-search-empty[hidden] { display: none; }
@keyframes knowledge-search-enter { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .knowledge-search-palette[open] { animation: none; } .knowledge-search-result { transition: none; } }
@media (max-width: 600px) {
  .knowledge-search-palette { width: calc(100% - 20px); max-height: min(640px, calc(100dvh - 32px)); border-radius: 18px; }
  .knowledge-search-bar { padding: 14px 14px 12px; gap: 5px; }
  .knowledge-search-input { gap: 8px; }
  .knowledge-search-input > svg { display: none; }
  .knowledge-search-input input { font-size: 16px; }
  .knowledge-search-palette .knowledge-search-clear { font-size: 12px; padding: 0 5px; }
  .knowledge-search-palette .knowledge-search-close { flex-basis: 38px; width: 38px; }
  .knowledge-search-tabs { gap: 3px; padding: 0 12px 12px; }
  .knowledge-search-tabs button { flex: 1 1 auto; padding: 8px 7px; font-size: 12px; }
  .knowledge-search-filters { padding: 0 16px 12px; }
  .knowledge-search-filters label { width: min(230px, 100%); }
  .knowledge-search-status { padding: 10px 20px; }
  .knowledge-search-status span:last-child { display: none; }
  .knowledge-search-scroll { padding: 0 8px 10px; }
  .knowledge-search-result { grid-template-columns: minmax(0, 1fr) 20px; gap: 8px 14px; padding: 15px 16px; }
  .knowledge-search-result-meta { grid-row: 2; }
  .knowledge-search-result > i { grid-column: 2; grid-row: 1; }
}
