/* =========================================
   SEARCH RESULTS PAGE (Radix Theme Structure)
   ========================================= */

/* The main ordered list containing the results */
.block__content > ol {
    list-style-type: none !important;
    padding-left: 0;
    margin-top: 30px;
}

/* Individual search result container */
.block__content > ol > li {
    padding: 25px 0;
    border-bottom: 1px solid #e5ebf2; /* Matches your light grey/blue */
    margin-bottom: 0;
}

/* Remove the border from the very last result */
.block__content > ol > li:last-child {
    border-bottom: none;
}

/* The Result Title */
.block__content > ol > li h3 {
    margin: 0 0 10px 0;
    font-size: 1.4rem;
}

.block__content > ol > li h3 a {
    color: #042969; /* Your brand dark blue */
    text-decoration: none;
    font-weight: bold;
}

.block__content > ol > li h3 a:hover {
    text-decoration: underline;
}

/* The summary snippet text */
.block__content > ol > li p {
    margin: 0;
    color: #333;
    line-height: 1.6;
}

/* Content Type Badge */
.block__content > ol > li .search-content-type {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    background-color: #e5ebf2; /* Your light grey/blue brand color */
    color: #042969; /* Your dark blue brand color */
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 8px;
    font-weight: bold;
}

/* =========================================
   SEARCH PAGE: CLEANUP & FILTER PANEL
   ========================================= */

/* 1. Hide the redundant keyword box, help link, and "Search results" H2 */
#edit-basic,
#edit-help-link,
form.search-form + h2 {
    display: none !important;
}

/* 2. Style the Advanced Search box into a clean filter panel */
details.search-advanced {
    background-color: #f8f9fa; /* Very light, neutral grey */
    border: 1px solid #e5ebf2; /* Matches your brand border color */
    border-radius: 6px;
    padding: 15px 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

/* 3. Style the clickable toggle text */
details.search-advanced summary {
    color: #042969; /* Your brand dark blue */
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    margin: 0;
    list-style: none; /* Removes default arrow in some browsers */
}

/* Add custom icon (optional, standard plus sign) */
details.search-advanced summary::before {
    content: '+';
    display: inline-block;
    margin-right: 10px;
    font-weight: bold;
}

details.search-advanced[open] summary::before {
    content: '-';
}

details.search-advanced summary:hover {
    text-decoration: underline;
}

/* 4. Spacing for the actual filters when it opens */
details.search-advanced .details-wrapper {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e5ebf2;
}

/* Remove default margin on the last item so the box stays tight */
details.search-advanced .form-actions {
    margin-bottom: 0;
}

/* Hide the Language filter in Advanced Search */
#edit-lang-fieldset {
    display: none !important;
}

/* OPTIONAL: Hide the extra Keyword filters (phrase, negative words, etc.) */
/* Uncomment this if you ONLY want the Content Type checkboxes to show */
/*
#edit-keywords-fieldset {
    display: none !important;
}
*/

/* Clean Authored On Date */
.block__content > ol > li .search-result__date {
    font-size: 0.85rem;
    color: #666; /* Subtle grey */
    margin-top: 8px;
    font-style: italic; /* Helps differentiate it from the snippet text */
}