/* Search results on the services page.
 *
 * The theme has no search styling of its own, so these follow its own
 * conventions: theme variables for every colour, and the same square,
 * flat-bordered look as the service cards they sit among.
 */

.search-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 20px;
    margin-bottom: 40px;
    padding: 18px 25px;
    background-color: var(--thm-light-bg);
    border-left: 4px solid var(--thm-primary);
}

.search-summary p {
    margin-bottom: 0;
}

.search-summary strong {
    color: var(--thm-black);
}

.search-summary-clear {
    flex-shrink: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--thm-gray);
}

.search-summary-clear:hover {
    color: var(--thm-primary);
}

.search-summary-clear i {
    margin-left: 8px;
    font-size: 12px;
}

/* The services that put a category into the results, listed on its card. */
.service-one-matches {
    margin-top: 15px;
    margin-bottom: 0;
    padding-top: 15px;
    border-top: 1px solid var(--thm-border);
}

.service-one-matches li + li {
    margin-top: 8px;
}

.service-one-matches a,
.search-loose a {
    display: flex;
    align-items: baseline;
    font-size: 15px;
    font-weight: 600;
    color: var(--thm-black);
}

.service-one-matches a:hover,
.search-loose a:hover {
    color: var(--thm-primary);
}

.service-one-matches a i,
.search-loose a i {
    flex-shrink: 0;
    margin-right: 10px;
    font-size: 12px;
    color: var(--thm-primary);
}

/* Matching services that belong to no category, so have no card to sit on. */
.search-loose {
    margin-top: 40px;
    padding: 25px 30px;
    background-color: var(--thm-light-bg);
}

.search-loose h4 {
    margin-bottom: 15px;
    font-size: 18px;
}

.search-loose li + li {
    margin-top: 10px;
}
