/* Scoped styles for Lucene search UI. Keep minimal and theme-friendly. */
.lucene-searchbox {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0;
    margin: 0 20px;
    width: 100%;
    max-width: 1024px;
}
.lucene-searchbox .search-box-input {
    flex: 1 1 auto;
    height: 36px;
    padding: 6px 12px 6px 6px; /* room for icon */
    border: 1px solid #ddd;
    border-radius: 0;
    outline: none;
}
.lucene-searchbox .search-box-input:focus {
    border-color: var(--color-border);
    box-shadow: 0 0 0 3px rgba(0,0,0,0.05);
}
.lucene-searchbox .search-box-button {
    height: 36px;
    width: 36px;
    min-width: 36px;
    padding: 0;
    border: 0;
    background: var(--color-brand-primary);
    color: var(--color-bg);
    border-radius: 0;
    cursor: pointer;
}




.lucene-searchbox .search-suggestions {
    position: absolute;
    z-index: 1000;
    top: calc(100% );
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e6e6e6;
    box-shadow: 0 10px 24px rgba(0,0,0,0.08);
    padding: 8px;
    max-height: 360px;
    overflow: auto;
}

.lucene-searchbox .sugg-dym {
    padding: 6px 8px;
    margin-bottom: 6px;
    background: #fafafa;
    border: 1px dashed #e2e2e2;
    border-radius: 8px;
    color: #444;
    font-size: 0.95rem;
}
.lucene-searchbox .sugg-dym a {
    color: #0066cc;
    text-decoration: none;
}
.lucene-searchbox .sugg-dym a:hover {
    text-decoration: underline;
}

.lucene-searchbox .sugg-group {
    margin-bottom: 6px;
}
.lucene-searchbox .sugg-title {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .02em;
    color: #888;
    padding: 4px 8px;
}
.lucene-searchbox .sugg-item {
    display: block;
    padding: 8px 12px;
    border-radius: 8px;
    color: #222;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.95rem;
}
.lucene-searchbox .sugg-item:hover,
.lucene-searchbox .sugg-item.active {
    background: #f2f6ff;
    outline: 2px solid rgba(0,102,204,0.15);
}

/* Utility for screen reader only text */
.lucene-searchbox .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}


/* Highlight style for matched tokens */
.lucene-searchbox .sugg-item mark {
    color: inherit;
    font-style: normal;
    font-weight: 500;
    padding: 0;
    border-radius: 2px;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .lucene-searchbox {
        width: 100%;
        margin: 0;
        order: 250;
    }
    .lucene-searchbox .search-box-input {
        height: 40px;
    }
    .lucene-searchbox .search-suggestions {
    }
}

mark { background-color: transparent; }

.search-header { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px; margin: 20px; }

.search-header h1 { font-size: 24px; font-weight: 700; color: var(--color-brand-primary); margin: 0 }
.search-header h2 { font-size: 18px; font-weight: 500; color: var(--color-text); margin: 0; }

@media (max-width: 767.98px) { .search-header { margin: 10px; }
    .search-header h1 { font-size: 20px; }
    .search-header h2 { font-size: 16px; }
}