.scm-search-page {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #1f2430;
}

/* ---- Sidebar ---- */
.scm-sp-sidebar {
    min-width: 0;
}
.scm-sp-facet-title {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 14px;
}
.scm-sp-facet-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.scm-sp-facet {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    cursor: pointer;
    min-width: 0;
}
.scm-sp-facet-checkbox {
    margin-top: 3px;
    flex: none;
}
.scm-sp-facet-label {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.scm-sp-count {
    flex: none;
    color: #8a8f99;
    font-size: 13px;
}
.scm-sp-facet.scm-sp-facet--zero {
    opacity: .45;
}

/* ---- Main column ---- */
.scm-sp-main {
    min-width: 0;
}
.scm-sp-searchbar {
    position: relative;
    margin-bottom: 20px;
}
.scm-sp-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    opacity: .5;
    font-size: 15px;
}
.scm-sp-input {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 16px 14px 44px;
    border: none;
    border-radius: 4px;
    background: #eeeeee;
    font-size: 15px;
    outline: none;
}
.scm-sp-input:focus {
    box-shadow: 0 0 0 2px #185fa5;
}

.scm-sp-results {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.scm-sp-result {
    display: flex;
    gap: 20px;
    padding: 20px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    background: #fff;
    min-width: 0;
}
.scm-sp-result-media {
    flex: none;
    width: 120px;
    height: 90px;
    border-radius: 4px;
    overflow: hidden;
    background: #f2f2f2;
}
.scm-sp-result-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.scm-sp-result-body {
    min-width: 0;
    flex: 1 1 auto;
}
.scm-sp-result-title {
    margin: 0 0 4px;
    font-size: 19px;
    line-height: 1.3;
}
.scm-sp-result-title a {
    color: #1a4fa0;
    text-decoration: none;
}
.scm-sp-result-title a:hover {
    text-decoration: underline;
}
.scm-sp-breadcrumb {
    color: #1e7e34;
    font-size: 13px;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.scm-sp-excerpt {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.55;
    color: #3a3d44;

    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.scm-sp-empty,
.scm-sp-hint {
    padding: 24px;
    text-align: center;
    color: #8a8f99;
    font-size: 14px;
}

/* ---- Mobile: sidebar stacks ABOVE results, never side-by-side-squished ---- */
@media (max-width: 780px) {
    .scm-search-page {
        display: block;
    }
    .scm-sp-sidebar {
        margin-bottom: 24px;
        padding-bottom: 20px;
        border-bottom: 1px solid #e5e5e5;
    }
    .scm-sp-facet-list {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
    }
    .scm-sp-facet {
        border: 1px solid #ddd;
        border-radius: 20px;
        padding: 6px 12px;
        max-width: 100%;
    }
    .scm-sp-result {
        flex-direction: column;
    }
    .scm-sp-result-media {
        width: 100%;
        height: 160px;
    }
}
