/* Help Center — client-side search */

.tv-help-search {
    position: relative;
    max-width: 40rem;
    margin: 0 auto 2.5rem;
}

.tv-help-search-field {
    position: relative;
}

.tv-help-search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
    font-size: 1rem;
}

.tv-help-search-input {
    width: 100%;
    padding: 0.9rem 2.75rem 0.9rem 2.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.85rem;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    font-size: 1rem;
    color: #0f172a;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.tv-help-search-input:focus {
    outline: none;
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15), 0 8px 24px rgba(15, 23, 42, 0.08);
}

.tv-help-search-input::placeholder {
    color: #94a3b8;
}

.tv-help-search-clear {
    position: absolute;
    right: 0.65rem;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #94a3b8;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.tv-help-search-clear:hover {
    color: #475569;
    background: #f1f5f9;
}

.tv-help-search.is-dirty .tv-help-search-clear {
    display: inline-flex;
}

.tv-help-search-hint {
    margin: 0.55rem 0 0;
    font-size: 0.85rem;
    color: #64748b;
    text-align: center;
}

.tv-help-search-results {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 0.45rem);
    z-index: 20;
    display: none;
    max-height: min(26rem, 70vh);
    overflow: auto;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.85rem;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.tv-help-search.is-open .tv-help-search-results {
    display: block;
}

.tv-help-search-meta {
    padding: 0.65rem 1rem 0.35rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
}

.tv-help-search-list {
    list-style: none;
    margin: 0;
    padding: 0.25rem 0.4rem 0.5rem;
}

.tv-help-search-item a {
    display: block;
    text-decoration: none;
    color: inherit;
    padding: 0.7rem 0.75rem;
    border-radius: 0.55rem;
    transition: background 0.12s ease;
}

.tv-help-search-item a:hover,
.tv-help-search-item.is-active a {
    background: #f1f5f9;
}

.tv-help-search-item-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 0.55rem;
    margin-bottom: 0.2rem;
}

.tv-help-search-kind {
    display: inline-flex;
    align-items: center;
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: #e2e8f0;
    color: #334155;
}

.tv-help-search-kind[data-kind="Documentation"] {
    background: #dbeafe;
    color: #1d4ed8;
}

.tv-help-search-kind[data-kind="Guide"] {
    background: #fef3c7;
    color: #b45309;
}

.tv-help-search-kind[data-kind="Blog"] {
    background: #e2e8f0;
    color: #475569;
}

.tv-help-search-kind[data-kind="Training"] {
    background: #dcfce7;
    color: #15803d;
}

.tv-help-search-kind[data-kind="Hub"] {
    background: #ede9fe;
    color: #6d28d9;
}

.tv-help-search-category {
    font-size: 0.75rem;
    color: #64748b;
}

.tv-help-search-title {
    display: block;
    font-size: 0.98rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
}

.tv-help-search-excerpt {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.84rem;
    color: #64748b;
    line-height: 1.4;
}

.tv-help-search-empty {
    padding: 1.1rem 1rem;
    font-size: 0.9rem;
    color: #64748b;
    text-align: center;
}

.tv-help-search-mark {
    background: #fef08a;
    color: inherit;
    padding: 0 0.1em;
    border-radius: 0.15rem;
}
