/* Learning Center search results. */

.lc-search-page { background: #fff; }

.lc-search-hero {
    padding: 150px 0 40px;
    border-bottom: 1px solid var(--lc-line);
    background: var(--lc-soft);
}
body.admin-bar .lc-search-hero {
    padding-top: calc(150px + var(--wp-admin--admin-bar--height, 32px));
}
body:has(#simple-banner:not(.simple-banner-scrolling)) .lc-search-hero {
    padding-top: 210px;
}
body.admin-bar:has(#simple-banner:not(.simple-banner-scrolling)) .lc-search-hero {
    padding-top: calc(210px + var(--wp-admin--admin-bar--height, 32px));
}
@media (max-width: 1180px) {
    .lc-search-hero,
    body.admin-bar .lc-search-hero { padding-top: 120px; }
    body:has(#simple-banner:not(.simple-banner-scrolling)) .lc-search-hero { padding-top: 220px; }
    body.admin-bar:has(#simple-banner:not(.simple-banner-scrolling)) .lc-search-hero {
        padding-top: calc(220px + var(--wp-admin--admin-bar--height, 32px));
    }
}

.lc-search-hero .lc-hub-breadcrumb { margin-bottom: 22px; color: var(--lc-muted); }
.lc-search-hero .lc-hub-breadcrumb a { color: var(--lc-muted); }
.lc-search-hero .lc-hub-breadcrumb a:hover { color: var(--lc-navy); }
.lc-search-hero h1 {
    max-width: 900px;
    margin: 0 0 24px;
    color: var(--lc-navy);
    font-size: clamp(32px, 3.6vw, 46px);
    font-weight: 400;
    letter-spacing: -.02em;
    line-height: 1.05;
}
.lc-search-hero .lc-search-field { width: 100%; max-width: 720px; margin-bottom: 26px; }
.lc-search-hero .lc-search-control {
    padding: 6px;
    border: 1px solid #d7deea;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 16px 36px -30px rgba(15, 39, 73, .55);
}
.lc-search-hero .lc-search-control input { height: 50px; border: 0; border-radius: 999px; }
.lc-search-hero .lc-search-control button { min-width: 142px; }
.lc-search-hero .lc-filter-row { margin-top: 14px; }

.lc-search-page .lc-results-section { padding: 48px 0 88px; }

.lc-search-page .lc-filter-row .lc-facet { padding-right: 12px; }

/* The empty state is the results container's own content, so it keeps its edges. */
.lc-empty--suggestions {
    padding: 40px 0 44px;
    border-radius: 0;
    background: transparent;
    text-align: left;
}
.lc-empty-head h2 { margin: 0 0 8px; font-size: 28px; line-height: 1.2; }
.lc-empty-head p { color: var(--lc-muted); }
.lc-empty-block {
    margin-top: 32px;
    padding-top: 28px;
    border-top: 1px solid var(--lc-line);
}
.lc-empty-block h3 {
    margin: 0 0 18px;
    color: var(--lc-navy);
    font-size: 18px;
    font-weight: 700;
}
.lc-empty-block .lc-outline-button { margin-top: 22px; }
.lc-empty-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}
.lc-suggestion-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.lc-suggestion-chips li { margin: 0; }
.lc-suggestion-chips a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 16px;
    border: 1px solid #d7deea;
    border-radius: 999px;
    background: #fff;
    color: var(--lc-navy);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}
.lc-suggestion-chips a:hover { border-color: var(--lc-blue); color: var(--lc-blue); }
.lc-empty-cta {
    margin-top: 32px;
    padding-top: 28px;
    border-top: 1px solid var(--lc-line);
}
.lc-empty-cta p { margin: 0 0 16px; color: var(--lc-muted); }
.lc-empty-cta div { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
/* Stretched flex items keep their top padding, which reads as text sitting high. */
.lc-empty-cta .lc-outline-button { min-height: 46px; align-items: center; }

@media (max-width: 900px) {
    .lc-empty-grid { grid-template-columns: 1fr; }
    .lc-empty--suggestions { padding: 30px 0 34px; }
}
