/* Navbar search toggle + slide-down panel (every page) and the /search results page. */
.site-search-toggle { display: inline-flex; align-items: center; justify-content: center; }
.navbar .site-search-item .site-search-toggle { width: 42px; height: 42px; padding: 0 !important; border-radius: 50%; }
.navbar .site-search-item .site-search-toggle:hover,
.navbar .site-search-item .site-search-toggle[aria-expanded="true"] { background: rgba(255, 255, 255, .14); }
.navbar:not(.navbar-transparent) .site-search-item .site-search-toggle:hover,
.navbar:not(.navbar-transparent) .site-search-item .site-search-toggle[aria-expanded="true"] { background: rgba(0, 0, 0, .06); }
.site-search-toggle:focus-visible { outline: 3px solid #d2a458; outline-offset: 2px; }

/* Mobile toggle sits next to the hamburger; the desktop one lives in the collapsed menu. */
.site-search-toggle-mobile { display: none; }
@media (max-width: 1000px) {
    .site-search-item { display: none !important; }
    .site-search-toggle-mobile {
        display: inline-flex;
        position: absolute;
        top: 50%;
        right: 62px;
        width: 42px;
        height: 42px;
        border-radius: 50%;
        color: #fff;
        transform: translateY(-50%);
    }
    .navbar:not(.navbar-transparent) .site-search-toggle-mobile { color: #24241f; }
    .navbar-translate { position: relative; }
}

/* Slide-down panel */
/* Absolutely positioned under the fixed navbar, so it never competes with the menu for space. */
.site-search {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    padding: 30px 0 26px;
    background: #1d2c27;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .25);
    animation: site-search-in .18s ease-out;
}
.site-search[hidden] { display: none; }
@keyframes site-search-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .site-search { animation: none; } }

.site-search-form { display: flex; gap: 14px; max-width: 760px; margin: 0 auto; }
.site-search-form input {
    flex: 1;
    min-width: 0;
    height: 60px;
    padding: 0 26px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 40px;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    font-size: 18px;
}
.site-search-form input::placeholder { color: rgba(255, 255, 255, .6); }
.site-search-form input:focus { border-color: #d2a458; outline: none; box-shadow: 0 0 0 3px rgba(210, 164, 88, .35); }
.site-search-form button {
    display: inline-flex;
    flex: 0 0 60px;
    align-items: center;
    justify-content: center;
    height: 60px;
    border: 0;
    border-radius: 50%;
    background: #a9702f;
    color: #fff;
    cursor: pointer;
}
.site-search-form button:hover { background: #81521e; }
.site-search-form button:focus-visible { outline: 3px solid #d2a458; outline-offset: 3px; }
.site-search-try { margin: 14px 0 0; color: rgba(255, 255, 255, .62); font-size: 14px; text-align: center; }
.site-search-try a { margin: 0 4px; color: rgba(255, 255, 255, .85); }
.site-search-try a:hover { color: #e6bd7e; }

@media (max-width: 680px) {
    .site-search { padding: 20px 0 18px; }
    .site-search-form { gap: 10px; }
    .site-search-form input { height: 50px; padding: 0 18px; font-size: 16px; }
    .site-search-form button { flex-basis: 50px; height: 50px; }
}

/* /search results page */
.search-page-head { padding: 150px 0 50px; background: #1d2c27; color: #fff; }
.search-page-head h1 { margin: 0 0 24px; color: #fff; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(34px, 4vw, 52px); font-weight: 400; }
.search-page-form { display: flex; gap: 14px; }
.search-page-form input {
    flex: 1;
    min-width: 0;
    height: 60px;
    padding: 0 26px;
    border: 1px solid #ddd5c6;
    border-radius: 40px;
    background: #fff;
    color: #24241f;
    font-size: 18px;
}
.search-page-form input:focus { border-color: #a9702f; outline: none; box-shadow: 0 0 0 3px rgba(169, 112, 47, .3); }
.search-page-form button { flex: 0 0 auto; height: 60px; padding: 0 34px; border: 0; border-radius: 40px; background: #a9702f; color: #fff; font-size: 17px; font-weight: 800; cursor: pointer; }
.search-page-form button:hover { background: #81521e; }
.search-page-form button:focus-visible { outline: 3px solid #d2a458; outline-offset: 3px; }

.search-page-results { min-height: 40vh; padding: 40px 0 90px; background: #f7f4ed; color: #24241f; }
.search-page-count { margin: 0 0 24px; font-size: 16px; }
.search-page-count a { color: #81521e; font-weight: 700; text-decoration: underline; }
.search-card { margin-bottom: 26px; padding: 30px 36px; border: 1px solid #e8e2d5; border-radius: 14px; background: #fff; }
.search-card h2 { margin: 0; padding-bottom: 18px; border-bottom: 1px solid #e8e2d5; color: #24241f; font-family: Georgia, 'Times New Roman', serif; font-size: 24px; font-weight: 400; }
.search-list { margin: 0; padding: 0; list-style: none; }
.search-list li { padding: 22px 0; border-bottom: 1px solid #efeae0; }
.search-list li:last-child { padding-bottom: 4px; border-bottom: 0; }
.search-list h3 { margin: 0 0 6px; font-family: inherit; font-size: 19px; font-weight: 700; }
.search-list h3 a { color: #24241f; }
.search-list h3 a:hover { color: #81521e; }
.search-meta { margin: 0 0 6px; color: #81521e; font-size: 13px; font-weight: 800; letter-spacing: .04em; }
.search-snippet { margin: 0; color: #5f5f56; font-size: 15px; line-height: 1.7; }
.search-snippet strong { color: #24241f; }
.search-empty a { color: #81521e; font-weight: 700; }

@media (max-width: 680px) {
    .search-page-head { padding: 120px 0 36px; }
    .search-page-form { flex-direction: column; gap: 10px; }
    .search-page-form input, .search-page-form button { height: 52px; }
    .search-card { padding: 22px 20px; }
}
