/* Homepage search: original MockCampus field and result vocabulary, adapted to notes. */
body.reading-room-home .hub-search-zone.kh-search-enhanced{isolation:auto!important;overflow:visible!important}
body.reading-room-home .hub-search-zone.kh-search-enhanced .search-shell{display:grid!important;grid-template-columns:minmax(0,1fr) 48px 48px!important;grid-template-rows:auto auto;align-items:center;gap:9px 10px!important;width:100%!important;height:auto!important;min-width:0;margin:0!important}
body.reading-room-home .hub-search-zone.kh-search-enhanced .hub-search{display:flex!important;gap:10px!important;grid-column:1;min-width:0;min-height:58px!important;height:58px!important;padding:10px 16px!important;border:1.5px solid #e2e8f0!important;border-radius:14px!important;background:#fff!important;box-shadow:0 10px 30px rgba(15,30,77,.10)!important;color:#64748b!important}
body.reading-room-home .hub-search-zone.kh-search-enhanced .hub-search::before,body.reading-room-home .hub-search-zone.kh-search-enhanced .hub-search::after{display:none!important}
body.reading-room-home .hub-search-zone.kh-search-enhanced .hub-search:focus-within{border-color:#d99a25!important;box-shadow:0 0 0 3px rgba(245,158,11,.10),0 12px 34px rgba(245,158,11,.18)!important}
body.reading-room-home .hub-search-zone.kh-search-enhanced .kh-search-icon{flex:0 0 21px;color:#69788f}
body.reading-room-home .hub-search-zone.kh-search-enhanced #noteSearch{flex:1;min-width:0;width:100%;margin:0!important;padding:0!important;border:0!important;outline:0!important;background:transparent!important;color:#0f1e4d!important;font:600 16px/1.4 Inter,system-ui,sans-serif!important;box-shadow:none!important}
body.reading-room-home .hub-search-zone.kh-search-enhanced #noteSearch::placeholder{color:#7c889c!important;font-weight:500!important;opacity:1!important}
body.reading-room-home .hub-search-zone.kh-search-enhanced #noteSearch::-webkit-search-cancel-button{display:none}
body.reading-room-home .hub-search-zone.kh-search-enhanced .hub-search kbd{display:inline-block!important;flex:0 0 auto;margin:0!important;padding:2px 7px!important;border:1px solid #e2e8f0!important;border-radius:6px!important;background:transparent!important;color:#8a97ab!important;font:700 11px/1.5 Inter,system-ui,sans-serif!important}
body.reading-room-home .hub-search-zone.kh-search-enhanced .kh-search-clear{flex:0 0 32px;display:grid;place-items:center;width:32px;height:36px;padding:0;border:0;border-radius:7px;background:transparent;color:#64748b;cursor:pointer;font:400 25px/1 Inter,system-ui,sans-serif}
body.reading-room-home .hub-search-zone.kh-search-enhanced .kh-search-clear:hover{background:#f1f5f9;color:#0f1e4d}
body.reading-room-home .hub-search-zone.kh-search-enhanced .knowledge-appearance-control{grid-column:2;align-self:center;width:48px;height:48px;min-width:0}
body.reading-room-home .hub-search-zone.kh-search-enhanced .knowledge-appearance-button,body.reading-room-home .hub-search-zone.kh-search-enhanced .exam-filter-button{position:relative!important;top:auto!important;right:auto!important;display:grid!important;place-items:center!important;gap:0!important;width:48px!important;height:48px!important;min-height:48px!important;margin:0!important;padding:0!important;border:1px solid #dce2eb!important;border-radius:12px!important;background:#fff!important;color:#53627a!important;box-shadow:0 6px 18px rgba(15,30,77,.06)!important}
body.reading-room-home .hub-search-zone.kh-search-enhanced .exam-filter-button{grid-column:3}
body.reading-room-home .hub-search-zone.kh-search-enhanced .exam-filter-button::after{display:none!important}
body.reading-room-home .hub-search-zone.kh-search-enhanced .exam-filter-button.kh-filter-active{color:#a5640d!important;border-color:#d6ae63!important;background:#fff8e9!important}
body.reading-room-home .hub-search-zone.kh-search-enhanced .kh-search-tools{grid-row:2;grid-column:1/-1;display:flex;align-items:center;gap:8px;min-width:0;min-height:24px;padding:0 3px;color:#6b6b71;font:500 11px/1.45 Inter,system-ui,sans-serif}
body.reading-room-home .hub-search-zone.kh-search-enhanced #khSearchStatus{min-width:0;overflow-wrap:anywhere}
body.reading-room-home .hub-search-zone.kh-search-enhanced .kh-search-filter{flex:0 0 auto;max-width:145px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:4px 9px;border:1px solid #ead2a8;border-radius:999px;background:#fff5e3;color:#8f5b13;cursor:pointer;font:700 10px/1.2 Inter,system-ui,sans-serif}
body.reading-room-home .hub-search-zone.kh-search-enhanced button:focus-visible{outline:3px solid #c78a23!important;outline-offset:3px!important}
body.reading-room-home .kh-search-clear[hidden],body.reading-room-home .kh-search-filter[hidden]{display:none!important}
/* The popup is portaled by the existing campus script, outside the scene. */
body.reading-room-home #searchLive.kh-search-results{position:fixed!important;z-index:99999!important;right:auto!important;padding:0!important;border:1px solid #e8edf5!important;border-radius:14px!important;background:#fff!important;box-shadow:0 20px 50px rgba(15,30,77,.22)!important;color:#0f1e4d!important;overflow:auto!important;overscroll-behavior:contain;scroll-padding:8px;backdrop-filter:none!important;font-family:Inter,system-ui,sans-serif}
body.reading-room-home #searchLive.kh-search-results .search-live-head{position:sticky;top:0;z-index:1;gap:10px;padding:12px 16px;background:inherit;color:#64748b;font:700 10px/1.4 Inter,system-ui,sans-serif;letter-spacing:.7px}
body.reading-room-home #searchLive.kh-search-results .search-live-head b{color:#9b650e;font:700 10px/1.4 Inter,system-ui,sans-serif}
body.reading-room-home #searchLive.kh-search-results .search-hit{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:10px;min-height:65px;padding:12px 16px;border-bottom:1px solid #f1f5f9;border-radius:0;color:#0f1e4d;text-decoration:none}
body.reading-room-home #searchLive.kh-search-results .search-hit:hover,body.reading-room-home #searchLive.kh-search-results .search-hit.is-selected{background:#f8fafc}
body.reading-room-home #searchLive.kh-search-results .kh-search-copy{display:block;min-width:0}
body.reading-room-home #searchLive.kh-search-results .search-hit b{display:block;font:700 14px/1.45 Inter,system-ui,sans-serif;overflow-wrap:anywhere}
body.reading-room-home #searchLive.kh-search-results .search-hit small{display:block;margin-top:4px;color:#64748b;font:500 11px/1.4 Inter,system-ui,sans-serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.reading-room-home #searchLive.kh-search-results .search-hit-badge{min-width:0;padding:4px 8px;border-radius:999px;background:#fff4dc;color:#a36a10;font:700 10px/1.3 Inter,system-ui,sans-serif;letter-spacing:0;white-space:nowrap}
body.reading-room-home #searchLive.kh-search-results .search-hit i{color:#8b98aa;font:400 16px/1 Inter,system-ui,sans-serif}
body.reading-room-home #searchLive.kh-search-results mark{background:#fff0bf;color:inherit;border-radius:2px;padding:0}
body.reading-room-home #searchLive.kh-search-results .search-live-empty{padding:24px 20px;gap:7px}
body.reading-room-home #searchLive.kh-search-results .search-live-empty b{font:700 14px/1.4 Inter,system-ui,sans-serif;color:inherit}
body.reading-room-home #searchLive.kh-search-results .search-live-empty span{font:500 12px/1.55 Inter,system-ui,sans-serif;color:#64748b}
body.reading-room-home #searchLive.kh-search-results .search-live-more{display:block;width:100%;margin:0;padding:13px 16px;border:0;border-top:1px solid #e8edf5;border-radius:0;background:#fffaf0;color:#966110;cursor:pointer;text-align:left;font:700 12px/1.4 Inter,system-ui,sans-serif}
body.reading-room-home #searchLive.kh-search-results .search-live-more span{float:right}
body.reading-room-home #searchLive.kh-search-results .kh-search-warning{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 16px;background:#fff8ea;font:500 12px/1.4 Inter,system-ui,sans-serif;color:#87551a}
body.reading-room-home #searchLive.kh-search-results .kh-search-warning button{padding:6px 10px;border:1px solid #d8b985;border-radius:7px;background:#fff;color:#87551a;font:700 12px Inter,system-ui,sans-serif;cursor:pointer}
body.reading-room-home #searchLive.kh-search-results .kh-search-key-hint{display:flex;justify-content:center;gap:18px;padding:9px 14px;color:#7b8798;font:500 10px/1.4 Inter,system-ui,sans-serif}
body.reading-room-home #searchLive.kh-search-results button:focus-visible{outline:3px solid #c78a23;outline-offset:-3px}
body.reading-room-home #noteResults .kh-search-show-more{grid-column:1/-1;justify-self:center;min-height:44px;margin:12px 0;padding:10px 20px;border:1px solid #d8b985;border-radius:10px;background:#fffaf0;color:#8f5b13;font:700 13px Inter,system-ui,sans-serif;cursor:pointer}
body.reading-room-home .notes-section{scroll-margin-top:100px}
body.reading-room-home[data-theme="dark"] .hub-search-zone.kh-search-enhanced .hub-search,body.reading-room-home[data-theme="dark"] .hub-search-zone.kh-search-enhanced .knowledge-appearance-button,body.reading-room-home[data-theme="dark"] .hub-search-zone.kh-search-enhanced .exam-filter-button{background:#10204a!important;border-color:#304572!important;color:#cad5ee!important}
body.reading-room-home[data-theme="dark"] .hub-search-zone.kh-search-enhanced #noteSearch{color:#e8eefc!important}
body.reading-room-home[data-theme="dark"] .hub-search-zone.kh-search-enhanced #noteSearch::placeholder{color:#a5b2cd!important}
body.reading-room-home[data-theme="dark"] .hub-search-zone.kh-search-enhanced .kh-search-tools{color:#bac3d5}
body.reading-room-home[data-theme="dark"] #searchLive.kh-search-results{background:#0f1e4d!important;border-color:#304572!important;color:#e8eefc!important}
body.reading-room-home[data-theme="dark"] #searchLive.kh-search-results .search-hit{color:#e8eefc;border-color:#273b69}
body.reading-room-home[data-theme="dark"] #searchLive.kh-search-results .search-hit:hover,body.reading-room-home[data-theme="dark"] #searchLive.kh-search-results .search-hit.is-selected{background:#192d5e}
body.reading-room-home[data-theme="dark"] #searchLive.kh-search-results .search-hit small,body.reading-room-home[data-theme="dark"] #searchLive.kh-search-results .search-live-head,body.reading-room-home[data-theme="dark"] #searchLive.kh-search-results .search-live-empty span,body.reading-room-home[data-theme="dark"] #searchLive.kh-search-results .kh-search-key-hint{color:#b7c3dc}
body.reading-room-home[data-theme="dark"] #searchLive.kh-search-results .search-live-head b{color:#e6bd74}
body.reading-room-home[data-theme="dark"] #searchLive.kh-search-results .search-live-more{border-color:#304572;background:#182747;color:#f1cd8e}
body.reading-room-home[data-theme="dark"] #searchLive.kh-search-results mark{background:#6b531f;color:#fff0cc}
@media(max-width:600px){
 body.reading-room-home .hub-search-zone.kh-search-enhanced .search-shell{grid-template-columns:minmax(0,1fr) 44px 44px!important;gap:7px 8px!important}
 body.reading-room-home .hub-search-zone.kh-search-enhanced .hub-search{grid-column:1/-1;min-height:56px!important;height:56px!important;padding:10px 12px!important}
 body.reading-room-home .hub-search-zone.kh-search-enhanced .hub-search kbd{display:none!important}
 body.reading-room-home .hub-search-zone.kh-search-enhanced .knowledge-appearance-control{grid-column:2;grid-row:2;width:44px;height:44px}
 body.reading-room-home .hub-search-zone.kh-search-enhanced .exam-filter-button{grid-column:3;grid-row:2}
 body.reading-room-home .hub-search-zone.kh-search-enhanced .knowledge-appearance-button,body.reading-room-home .hub-search-zone.kh-search-enhanced .exam-filter-button{width:44px!important;height:44px!important;min-height:44px!important}
 body.reading-room-home .hub-search-zone.kh-search-enhanced .kh-search-tools{grid-column:1;grid-row:2;gap:4px;flex-wrap:wrap;font-size:10px;line-height:1.3}
 body.reading-room-home #searchLive.kh-search-results .search-hit{padding:11px 12px;gap:7px}
 body.reading-room-home #searchLive.kh-search-results .search-hit b{font-size:13px}
 body.reading-room-home #searchLive.kh-search-results .search-hit i{display:none}
 body.reading-room-home #searchLive.kh-search-results .search-hit{grid-template-columns:minmax(0,1fr) auto}
 body.reading-room-home #searchLive.kh-search-results .kh-search-key-hint{display:none}
}
