/* Portal search and expanded desktop navigation use existing portal surfaces. */
/* S1 search results: kit panels in a two-column grid */
.s1gs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: calc(16px * var(--s1-scale, 1)); align-items: start; }
.s1gs-grid .k-row { grid-template-columns: auto minmax(0, 1fr); }
@media (max-width: 760px) { .s1gs-grid { grid-template-columns: 1fr; }
}

/* Type-ahead under the top search box (global-search.js). */
form.srch[data-portal-search-form] { position: relative; overflow: visible; }
.s1ta { position: absolute; z-index: 40; top: calc(100% + 6px); left: 0; right: 0; min-width: min(560px, calc(100vw - 32px)); background: var(--s1-panel, #fff); border: 1px solid var(--s1-line, #e3e5ea); border-radius: 12px; box-shadow: 0 12px 32px rgba(21, 23, 28, .14); padding: calc(6px * var(--s1-scale, 1)); display: grid; gap: 2px; }
.s1ta[hidden] { display: none; }
.s1ta-item { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 2px calc(8px * var(--s1-scale, 1)); align-items: baseline; padding: calc(8px * var(--s1-scale, 1)) calc(10px * var(--s1-scale, 1)); border-radius: 8px; color: var(--s1-ink, #15171c); text-decoration: none; font-size: var(--s1-fs-2); }
.s1ta-item:hover, .s1ta-item.is-active { background: var(--s1-well, #f1f2f5); }
.s1ta-kind { font-size: var(--s1-fs-1); font-weight: 650; color: var(--s1-mute, #6b7280); }
.s1ta-name { font-weight: 600; overflow-wrap: anywhere; line-height: 1.3; }
.s1ta-none { margin: 0; padding: calc(10px * var(--s1-scale, 1)); font-size: var(--s1-fs-2); color: var(--s1-mute, #6b7280); }
.s1ta-item small { grid-column: 2; min-width: 0; color: var(--s1-mute, #6b7280); font-size: var(--s1-fs-1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s1gs-dup { margin-top: 2px; }
