.ai-search-form {
    display: flex;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    max-width: 800px;
    margin-bottom: 2rem;
    background-color: var(--bg-surface);
}

.ai-search-form input {
    flex-grow: 1;
    border: none;
    padding: 0.75rem 1rem;
    font-size: 1rem;
}

.ai-search-form input:focus {
    outline: none;
    box-shadow: 0 0 0 3px var(--accent-light);
}

.ai-search-form button {
    background-color: var(--accent);
    color: white;
    border: none;
    padding: 0 1.25rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.ai-search-form button:hover {
    background-color: var(--accent-dark);
}

.knowledge-search-title {
    color: var(--primary);
}

.search-result-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s ease;
}

.search-result-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.search-result-card .badge {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    background-color: var(--accent-light);
    color: var(--accent-dark);
    text-transform: uppercase;
}

.search-result-card .badge-qa {
    background-color: #e0e7ff;
    color: #3730a3;
}

.search-result-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0.75rem 0 0.5rem;
}

.search-result-card h3 a {
    text-decoration: none;
    color: var(--primary);
}

.search-result-card h3 a:hover {
    color: var(--accent);
}

.search-result-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 0;
    line-height: 1.6;
}

.knowledge-search-empty-alert {
    background-color: #fffbeb;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.knowledge-search-alert-icon {
    width: 32px;
    height: 32px;
}

/* Production polish: flat search surfaces */
.search-result-card,
.knowledge-search-empty-alert {
    border-radius: 8px;
}

.search-result-card .badge {
    letter-spacing: 0;
}

/* Pastel production pass: search */
.knowledge-search-title {
    color: #172033;
}

.ai-search-form {
    border-color: rgba(137, 172, 195, 0.3);
    box-shadow: 0 10px 26px rgba(23, 32, 51, 0.05);
}

.ai-search-form input:focus {
    box-shadow: 0 0 0 4px rgba(169, 209, 230, 0.28);
}

.ai-search-form button {
    background: #e8f4ff;
    border-left: 1px solid #b9d9ec;
    color: #235675;
}

.ai-search-form button:hover {
    background: #dceef9;
    color: #1f4e6b;
}

.search-result-card {
    border-color: rgba(137, 172, 195, 0.28);
    box-shadow: 0 10px 26px rgba(23, 32, 51, 0.05);
}

.search-result-card:hover {
    border-color: #b9d9ec;
    box-shadow: 0 18px 38px rgba(23, 32, 51, 0.08);
}

.search-result-card .badge {
    background: #edf8f2;
    border: 1px solid #bfdfcc;
    color: #276346;
}

.search-result-card .badge-qa {
    background: #f1efff;
    border-color: #d8d1f4;
    color: #574a8b;
}

.search-result-card h3 a {
    color: #172033;
}

.search-result-card h3 a:hover,
.page-link {
    color: #2f6f95;
}

.knowledge-search-empty-alert {
    background: #fff4d8;
    border: 1px solid #ecd99b !important;
    color: #6f541c;
}
