/* Search page: the same clean video hero and search field used on the home. */
.search-hero {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: min(54vh, 470px);
    overflow: hidden;
    padding: 4rem 1.5rem;
    position: relative;
}

.search-hero-video {
    height: 100%;
    left: 0;
    object-fit: cover;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 0;
}

.search-hero-content {
    max-width: 800px;
    position: relative;
    text-align: center;
    z-index: 1;
}

.search-hero h1 {
    color: #333;
    font-size: clamp(2.2rem, 5vw, 3.25rem);
    font-weight: 700;
    letter-spacing: -.03em;
    line-height: 1.2;
    margin: 0 0 1rem;
}

.search-hero h1 span { color: #2d6a4f; }

.search-hero p {
    color: #555;
    font-size: 1.1rem;
    line-height: 1.8;
    margin: 0 0 2rem;
}

/* Kept deliberately identical in spirit to the home search control. */
.hero-search {
    display: flex;
    margin: 0 auto;
    max-width: 500px;
}

.hero-search input {
    background: #fff;
    border: none;
    border-radius: 4px 0 0 4px;
    flex: 1;
    font-family: inherit;
    font-size: 1rem;
    min-width: 0;
    outline: none;
    padding: 1rem 1.25rem;
}

.hero-search input:focus { box-shadow: 0 0 0 2px #5cb85c; }

.hero-search button {
    background: #2d6a4f;
    border: none;
    border-radius: 0 4px 4px 0;
    color: #fff;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    padding: 1rem 1.5rem;
    transition: background .2s;
}

.hero-search button:hover { background: #1b4332; }

.search-page {
    background: #fff;
    padding: 3.5rem 1.5rem 6rem;
}

.search-results-inner {
    margin: 0 auto;
    max-width: 1000px;
}

.sort-controls {
    align-items: center;
    color: #555;
    display: flex;
    flex-wrap: wrap;
    font-size: .95rem;
    gap: .35rem .75rem;
    margin: 0 0 1rem;
}

.sort-controls a {
    border-bottom: 1px solid transparent;
    color: #2d6a4f;
    font-weight: 700;
    text-decoration: none;
}

.sort-controls a:hover,
.sort-controls a:focus-visible {
    border-bottom-color: currentColor;
}

.sort-controls a[aria-current="true"] {
    color: #333;
    cursor: default;
    pointer-events: none;
}

.search-status {
    color: #555;
    font-size: .95rem;
    margin: 0 0 1rem;
}

.results-list {
    display: grid;
    gap: 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.result {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: clamp(1.15rem, 2vw, 1.45rem);
    transition: border-color .18s ease, box-shadow .18s ease;
}

.result:hover {
    border-color: #c8c8c8;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .06);
}

.result h2 { font-size: 1.22rem; line-height: 1.35; margin: 0 0 .45rem; }
.result h2 a { color: #333; text-decoration: none; }
.result h2 a:hover { color: #2d6a4f; text-decoration: underline; text-underline-offset: .16em; }
.result-meta { color: #666; font-size: .9rem; margin: 0 0 .7rem; }
.result p { color: #444; line-height: 1.55; margin: 0; }
.result-series { color: #2d6a4f; font-weight: 700; }
.result-match { color: #5d5d5d !important; font-size: .85rem; margin-top: .85rem !important; }
.result-match > span { color: #2d6a4f; font-weight: 700; }
.empty-state { background: #fff; border: 1px dashed #bbb; border-radius: 4px; color: #555; padding: 1.25rem; }

@media (max-width: 520px) {
    .search-hero { min-height: 410px; padding: 3rem 1rem; }
    .search-hero h1 { font-size: 2.35rem; }
    .hero-search { flex-direction: column; }
    .hero-search input { border-radius: 4px; margin-bottom: .5rem; }
    .hero-search button { border-radius: 4px; }
    .search-page { padding: 2.5rem 1rem 4rem; }
}
