/* OP-003, the one search: the records of the person's apps and the guide's sections the words found
   (Components/Layout/SearchResults.razor) — in the ⌘K palette (app.js) under its Pages, and in Mayla's panel
   (js/onix-mayla-search.js) above the guide's sections. Tokens only (onix-theme.css carries both themes). */

/* ── the palette's groups ─────────────────────────────────────────────── */
.palette-group,
.onix-found-title {
    display: block;
    padding: 10px 12px 4px;
    color: var(--muted);
    font: 600 11px/1.3 var(--font-text);
    letter-spacing: .06em;
    text-transform: uppercase;
}
.palette-group:first-child { padding-top: 4px; }
.palette-searching { padding: 10px 12px; color: var(--muted); font-size: 0.86rem; }

/* ── a group of records (both places) ─────────────────────────────────── */
.onix-found { display: block; }
.onix-found-app + .onix-found-app { margin-top: 4px; }
.onix-found-apphead {
    display: flex; align-items: center; gap: 8px;
    padding: 6px 12px 2px;
    color: var(--ink); font: 600 12.5px/1.3 var(--font-text);
}
.onix-found-item {
    display: flex; align-items: flex-start; gap: 10px;
    width: 100%;
    padding: 8px 12px;
    border: 0; border-radius: var(--radius-sm);
    background: none;
    color: var(--ink) !important;
    font: inherit; text-align: left; text-decoration: none !important;
    cursor: pointer;
}
.onix-found-item:hover, .onix-found-item.selected { background: var(--brand-soft); }
.onix-found-item:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ring); }
/* One width for every kind, so the names line up down the list ("Customer invoice" and "Partner" alike). */
.onix-found-kind {
    flex: 0 0 112px;
    padding-top: 1px;
    color: var(--muted); font-size: 0.74rem; line-height: 1.35;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.onix-found-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.onix-found-name {
    font-weight: 600; font-size: 0.9rem; line-height: 1.35;
    overflow-wrap: anywhere;
}
.onix-found-item.is-exact .onix-found-name { color: var(--brand-strong, var(--brand)); }
.onix-found-preview {
    color: var(--muted); font-size: 0.78rem; line-height: 1.35;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.onix-found-more {
    display: inline-block;
    margin: 0 0 2px 12px; padding: 4px 8px;
    border-radius: var(--radius-sm);
    color: var(--brand) !important; font-size: 0.8rem; font-weight: 500;
    text-decoration: none !important;
}
.onix-found-more:hover, .onix-found-more.selected { background: var(--brand-soft); }
.onix-found-offline { margin: 6px 12px 2px; color: var(--muted); font-size: 0.78rem; }

/* ── in Mayla's panel: a compact card above the guide's sections ──────── */
.mayla-found {
    margin: 0 0 12px;
    padding: 4px 0 6px;
    border: 1px solid var(--line); border-radius: var(--radius-md, 12px);
    background: var(--panel);
}
.mayla-turn > .mayla-found { margin-top: 0; }
.mayla-found .onix-found-title { padding: 6px 12px 2px; }
.mayla-found .onix-found-item { padding: 6px 12px; border-radius: 0; }
.mayla-found .onix-found-kind { flex-basis: 86px; }

@media (max-width: 560px) {
    .onix-found-kind { flex-basis: 76px; }
}
