/* Search on the posts index; keep the existing posts and sidebar layout. */
body:not(.pa-home) .ec-cases-search {
    background: #fff;
    border: 1px solid rgba(22, 32, 27, 0.16);
    border-radius: 8px;
    box-sizing: border-box;
    color: #16201b;
    display: grid;
    gap: 10px;
    margin: 0 0 28px;
    padding: clamp(16px, 2vw, 24px);
}

body:not(.pa-home) .ec-cases-search label {
    color: #16201b;
    font-size: 1rem;
    font-weight: 750;
}

body:not(.pa-home) .ec-cases-search__controls {
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(0, 1fr) auto;
}

body:not(.pa-home) .ec-cases-search input[type="search"] {
    appearance: none;
    background: #f6f8f7;
    border: 1px solid #748379;
    border-radius: 6px;
    box-sizing: border-box;
    color: #16201b;
    font: inherit;
    font-size: 16px;
    min-height: 48px;
    min-width: 0;
    padding: 12px 16px;
    width: 100%;
}

body:not(.pa-home) .ec-cases-search input::placeholder {
    color: #52615a;
    opacity: 1;
}

body:not(.pa-home) .ec-cases-search button {
    margin: 0;
    min-height: 48px;
}

body:not(.pa-home) .ec-cases-search input:focus-visible,
body:not(.pa-home) .ec-cases-search button:focus-visible,
body:not(.pa-home) .ec-cases-search__clear:focus-visible,
body:not(.pa-home) .ec-cases-pagination a:focus-visible {
    outline: 3px solid #179247;
    outline-offset: 3px;
}

body:not(.pa-home) .ec-cases-search__summary {
    margin: 0;
    overflow-wrap: anywhere;
}

body:not(.pa-home) .ec-cases-search__clear {
    color: inherit;
    justify-self: start;
    text-decoration: underline;
    text-underline-offset: 3px;
}

body:not(.pa-home) .ec-cases-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}

body:not(.pa-home) .ec-cases-pagination .page-numbers {
    align-items: center;
    background: #fff;
    border: 1px solid #748379;
    border-radius: 6px;
    color: #16201b;
    display: inline-flex;
    justify-content: center;
    min-height: 44px;
    min-width: 44px;
    padding: 6px 12px;
}

body:not(.pa-home) .ec-cases-pagination .current {
    background: #32d467;
    color: #061009;
    font-weight: 750;
}

@media (max-width: 479px) {
    body:not(.pa-home) .ec-cases-search__controls {
        grid-template-columns: minmax(0, 1fr);
    }
}
