/* Unified public-metadata search. The listbox is positioned against the visual viewport while open. */
.discovery-search-form{position:relative;z-index:20;overflow:visible}
.discovery-search-shell{position:relative;display:flex;align-items:center;flex:1;min-width:0;overflow:visible}
.discovery-search-shell input{width:100%;min-height:44px}
.discovery-suggestions{position:absolute;z-index:80;top:calc(100% + 8px);left:-8px;right:-8px;box-sizing:border-box;max-width:calc(100vw - 16px);margin:0;padding:6px;list-style:none;border:1px solid #4a3b5c;border-radius:10px;background:#17151d;box-shadow:0 16px 34px #08070d99;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain}
.discovery-suggestions[hidden]{display:none}
.discovery-suggestions li{margin:0;padding:0}
.discovery-suggestions li a{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;min-height:44px;padding:9px 11px;border-radius:7px;color:#f1f0f5;text-decoration:none;line-height:1.5}
.discovery-suggestions li a:hover,.discovery-suggestions li a:focus-visible,.discovery-suggestions li[aria-selected="true"] a{background:#2a2036;color:#fff;outline:none}
.discovery-suggestions li a span{min-width:0;flex:1 1 auto;overflow-wrap:anywhere;word-break:break-word}
.discovery-suggestions li a small{min-width:0;max-width:48%;flex:0 1 48%;overflow:hidden;color:#a19fae;font-size:11px;line-height:1.45;text-align:right;overflow-wrap:anywhere;word-break:break-word;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.discovery-search-page-form{position:relative;z-index:10;max-width:720px;margin:25px 0 0;overflow:visible}
.discovery-search-page-form .search-form{max-width:none;margin:0}
.hero-copy.has-discovery-suggestions,.discovery-search-page-form.has-discovery-suggestions{z-index:35}
.discovery-inline-search{position:relative;z-index:1;margin:0 0 42px;padding:27px 0 0;border-top:1px solid #29282f;scroll-margin-top:120px}
.discovery-inline-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:16px}
.discovery-inline-heading h2{margin:0;color:#eee7f4;font-size:22px;line-height:1.45}
.discovery-inline-heading p{margin-top:5px;color:#a19fae;font-size:12px;line-height:1.7;overflow-wrap:anywhere}
.discovery-clear-search{display:inline-flex;align-items:center;justify-content:center;min-height:44px;color:#cbb0f8;font-size:11px;white-space:nowrap}
.discovery-clear-search:hover,.discovery-clear-search:focus-visible{color:#fff;text-decoration:underline;text-underline-offset:3px}
.discovery-inline-search .discovery-type-filters{margin-top:17px}
.discovery-inline-search .discovery-empty{margin-bottom:0}
.discovery-type-filters{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0 0;border-bottom:1px solid #29282f;padding-bottom:12px}
.discovery-type-filter{display:inline-flex;align-items:center;gap:7px;min-height:44px;padding:8px 12px;border:1px solid #3c3246;border-radius:7px;color:#a19fae;font-size:12px;text-decoration:none}
.discovery-type-filter span{font-size:11px;color:#cbb0f8;font-variant-numeric:tabular-nums}
.discovery-type-filter:hover,.discovery-type-filter:focus-visible{border-color:#8060a6;color:#f1eafa;outline:2px solid #a78bfa;outline-offset:2px}
.discovery-type-filter.active{border-color:#a78bfa;background:#302040;color:#f1eafa}
.discovery-search-summary{margin:20px 0 8px;color:#a19fae;font-size:12px;line-height:1.7}
.discovery-result-group{margin:24px 0 0}
.discovery-group-heading{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin-bottom:10px;border-bottom:1px solid #29282f;padding-bottom:10px}
.discovery-group-heading h2{margin:0;color:#eee7f4;font-size:19px;line-height:1.45}
.discovery-group-heading span{color:#a19fae;font-size:11px;font-variant-numeric:tabular-nums}
.discovery-result-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.discovery-result-card{min-width:0;padding:17px 16px 15px;border:1px solid #29282f;border-radius:10px;background:#121216}
.discovery-result-card:hover{border-color:#5b4572}
.discovery-result-type{color:#bca8c9;font-size:10px;letter-spacing:.08em}
.discovery-result-card h3{margin:8px 0 5px;color:#f1f0f5;font-size:16px;line-height:1.5;overflow-wrap:anywhere}
.discovery-result-card h3 a{color:inherit;text-decoration:none}
.discovery-result-card h3 a:hover,.discovery-result-card h3 a:focus-visible{color:#cfb5eb;text-decoration:underline;text-underline-offset:3px}
.discovery-result-card p{min-height:3.4em;margin:0;color:#a19fae;font-size:11px;line-height:1.7;overflow-wrap:anywhere}
.discovery-result-open{display:inline-flex;align-items:center;gap:6px;min-height:44px;margin-top:10px;color:#cbb0f8;font-size:11px;text-decoration:none}
.discovery-result-open:hover,.discovery-result-open:focus-visible{color:#fff;text-decoration:underline;text-underline-offset:3px}
.discovery-more{display:flex;width:max-content;align-items:center;justify-content:center;min-height:44px;margin:22px auto 0}
.discovery-empty{max-width:680px;margin:30px 0;padding:28px 0;border-top:1px solid #29282f;border-bottom:1px solid #29282f}
.discovery-empty h2{margin:0 0 8px;color:#eee7f4;font-size:20px;line-height:1.5}
.discovery-empty p{margin:0;color:#a19fae;font-size:12px;line-height:1.8}
.discovery-empty a.secondary{display:inline-flex;align-items:center;min-height:44px;margin-top:14px}
.discovery-examples{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}
.discovery-examples a{display:inline-flex;align-items:center;min-height:44px;padding:8px 12px;border:1px solid #3c3246;border-radius:7px;color:#cbb0f8;font-size:12px;text-decoration:none}
.discovery-examples a:hover,.discovery-examples a:focus-visible{border-color:#a78bfa;color:#fff;outline:2px solid #a78bfa;outline-offset:2px}
.discovery-index-note{margin:18px 0;color:#a19fae;font-size:11px;line-height:1.7}

/* Manual density is a presentation preference only; all gated actions and disclosures stay in the row. */
.manual-density-control{display:inline-flex;align-items:center;gap:6px;flex-wrap:wrap}
.manual-density-label{color:#a19fae;font-size:11px;white-space:nowrap}
.manual-density-button{display:inline-flex;align-items:center;justify-content:center;min-width:52px;min-height:44px;border:1px solid #3c3246;border-radius:7px;background:transparent;color:#a19fae;padding:8px 10px;font:inherit;font-size:11px;cursor:pointer}
.manual-density-button:hover,.manual-density-button:focus-visible{border-color:#8060a6;color:#f1eafa;outline:2px solid #a78bfa;outline-offset:2px}
.manual-density-button.active{border-color:#a78bfa;background:#302040;color:#f1eafa}
.manuals-library[data-manual-density="compact"] .manual-row{grid-template-columns:minmax(0,1fr) minmax(120px,160px);gap:16px;padding-block:16px}
.manuals-library[data-manual-density="compact"] .manual-row-heading h3{font-size:16px}
.manuals-library[data-manual-density="compact"] .manual-meta span[data-manual-meta-item],.manuals-library[data-manual-density="compact"] .manual-meta .manual-activity{display:none}
.manuals-library[data-manual-density="compact"] .manual-disclosure{margin-top:2px}
.manuals-library[data-manual-density="detail"] .manual-row{grid-template-columns:minmax(0,1fr) minmax(155px,205px);gap:28px;padding-block:24px}

:root[data-theme="light"] .manual-density-label{color:#5d5968}
:root[data-theme="light"] .manual-density-button{border-color:#c9c4d4;color:#5d5968}
:root[data-theme="light"] .manual-density-button:hover,:root[data-theme="light"] .manual-density-button:focus-visible{border-color:#8064c7;color:#43268f}
:root[data-theme="light"] .manual-density-button.active{border-color:#8064c7;background:#eee9fb;color:#5f3b9f}

/* Header entry keeps the affordance visible on desktop and becomes icon-only on narrow screens. */
.header-search-entry{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-width:44px;min-height:44px;color:#b0aebb;font-size:12px;text-decoration:none;white-space:nowrap}
.header-search-entry svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.6}
.header-search-entry:hover,.header-search-entry:focus-visible{color:#fff;outline:2px solid #a78bfa;outline-offset:3px;border-radius:6px}

:root[data-theme="light"] .discovery-suggestions{border-color:#c9c4d4;background:#fff;box-shadow:0 16px 34px #3e315222}
:root[data-theme="light"] .discovery-suggestions li a{color:#302b38}
:root[data-theme="light"] .discovery-suggestions li a:hover,:root[data-theme="light"] .discovery-suggestions li a:focus-visible,:root[data-theme="light"] .discovery-suggestions li[aria-selected="true"] a{background:#eee9fb;color:#302b38}
:root[data-theme="light"] .discovery-suggestions li a small,:root[data-theme="light"] .discovery-search-summary,:root[data-theme="light"] .discovery-group-heading span,:root[data-theme="light"] .discovery-result-card p,:root[data-theme="light"] .discovery-index-note{color:#5d5968}
:root[data-theme="light"] .discovery-type-filters,:root[data-theme="light"] .discovery-group-heading,:root[data-theme="light"] .discovery-empty{border-color:#dedbe6}
:root[data-theme="light"] .discovery-type-filter{border-color:#c9c4d4;color:#5d5968}
:root[data-theme="light"] .discovery-type-filter span{color:#5f3b9f}
:root[data-theme="light"] .discovery-type-filter:hover,:root[data-theme="light"] .discovery-type-filter:focus-visible{border-color:#8064c7;color:#43268f}
:root[data-theme="light"] .discovery-type-filter.active{border-color:#8064c7;background:#eee9fb;color:#5f3b9f}
:root[data-theme="light"] .discovery-group-heading h2,:root[data-theme="light"] .discovery-result-card h3,:root[data-theme="light"] .discovery-empty h2{color:#302b38}
:root[data-theme="light"] .discovery-result-card{border-color:#dedbe6;background:#fff}
:root[data-theme="light"] .discovery-result-card:hover{border-color:#b3a0d0}
:root[data-theme="light"] .discovery-result-type,:root[data-theme="light"] .discovery-result-open,:root[data-theme="light"] .discovery-examples a{color:#5f3b9f}
:root[data-theme="light"] .discovery-empty p{color:#5d5968}
:root[data-theme="light"] .discovery-examples a{border-color:#c9c4d4}
:root[data-theme="light"] .header-search-entry{color:#5d5968}
:root[data-theme="light"] .header-search-entry:hover,:root[data-theme="light"] .header-search-entry:focus-visible{color:#43268f}

@media(max-width:600px){.discovery-suggestions li a{flex-direction:column;gap:2px;font-size:14px}.discovery-suggestions li a small{flex:none;max-width:100%;font-size:12px;text-align:left}}

@media(max-width:900px){.discovery-result-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.header-search-entry span{display:none}.header-search-entry{margin-left:auto}}
@media(max-width:600px){.discovery-search-page-form{margin-top:20px}.discovery-search-form input[role="combobox"]{font-size:16px}.discovery-suggestions{left:-5px;right:-5px}.discovery-inline-search{margin-bottom:32px;padding-top:22px}.discovery-inline-heading{align-items:flex-start;gap:10px}.discovery-inline-heading h2{font-size:19px}.discovery-clear-search{flex:0 0 auto}.discovery-result-grid{grid-template-columns:1fr;gap:10px}.discovery-result-card{padding:15px 14px}.discovery-result-card p{min-height:0}.discovery-type-filters{gap:6px}.discovery-type-filter{min-width:0;flex:1 1 calc(50% - 6px);justify-content:space-between;overflow-wrap:anywhere}.discovery-empty{margin-top:24px;padding:22px 0}.discovery-group-heading h2{font-size:17px}.manuals-library[data-manual-density="compact"] .manual-row,.manuals-library[data-manual-density="detail"] .manual-row{grid-template-columns:1fr;gap:16px;padding-block:20px}.manual-density-control{width:100%;justify-content:flex-start}}

:root[data-theme="light"] .discovery-inline-search{border-color:#dedbe6}
:root[data-theme="light"] .discovery-inline-heading h2{color:#302b38}
:root[data-theme="light"] .discovery-inline-heading p{color:#5d5968}
:root[data-theme="light"] .discovery-clear-search{color:#5f3b9f}
:root[data-theme="light"] .discovery-clear-search:hover,:root[data-theme="light"] .discovery-clear-search:focus-visible{color:#43268f}
