/* ==========================================================================
   Discover (Advanced Search)
   ========================================================================== */

/* Keyword match mode / typo tolerance, tucked behind a filter icon next to
   the keyword box instead of always taking up space (mirrors the topbar
   search filters pattern, light-themed for this page's white background). */
.discover-search-filters {
    position: relative;
    flex: none;
}

.discover-search-filters > summary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 38px;
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-md);
    background: var(--color-surface);
    color: var(--color-text-secondary);
    cursor: pointer;
    list-style: none;
}

.discover-search-filters > summary::-webkit-details-marker { display: none; }
.discover-search-filters > summary::marker { display: none; }

.discover-search-filters > summary:hover {
    color: var(--color-primary-700);
    border-color: var(--color-primary-300);
}

.discover-search-filters-body {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: var(--z-dropdown);
    width: min(420px, 90vw);
    padding: 12px;
    background: var(--color-surface);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}
