/* Site search modal (assets/js/search.js). Uses the theme's own colour variables so it follows light/dark. */
.el-search[hidden] { display: none; }
.el-search {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 12vh 16px 16px;
    background: rgb(0 0 0 / 0.6);
}
.el-search-open { overflow: hidden; }
.el-search-panel {
    position: relative;
    width: 100%;
    max-width: 640px;
    max-height: 76vh;
    display: flex;
    flex-direction: column;
    background: var(--background-color, #fff);
    color: var(--color-primary-text, #15171a);
    border: 1px solid var(--color-border, rgb(0 0 0 / 0.15));
    border-radius: 6px;
    box-shadow: 0 20px 60px rgb(0 0 0 / 0.45);
    overflow: hidden;
}
.el-search-input {
    width: 100%;
    padding: 18px 56px 18px 20px;
    font: inherit;
    font-size: 1.8rem;
    color: inherit;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--color-border, rgb(0 0 0 / 0.15));
    outline: none;
}
.el-search-input::-webkit-search-cancel-button { display: none; }   /* the modal has its own close button */
.el-search-input:focus-visible { box-shadow: inset 0 -2px 0 var(--ghost-accent-color, #ffd400); }
.el-search-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 40px;
    height: 40px;
    font-size: 2.6rem;
    line-height: 1;
    color: var(--color-secondary-text, #666);
    background: transparent;
    border: 0;
    cursor: pointer;
}
.el-search-close:hover { color: var(--color-primary-text, #15171a); }
.el-search-results {
    margin: 0;
    padding: 0;
    list-style: none;
    overflow-y: auto;
}
.el-search-results li { margin: 0; }
.el-search-results a {
    display: block;
    padding: 12px 20px;
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid var(--color-border, rgb(0 0 0 / 0.08));
}
.el-search-results a:hover,
.el-search-results a:focus-visible { background: var(--color-lighter-gray, rgb(0 0 0 / 0.05)); outline: none; }
.el-search-results strong { display: block; font-size: 1.6rem; font-weight: 600; }
.el-search-results span {
    display: block;
    margin-top: 4px;
    font-size: 1.4rem;
    line-height: 1.4;
    color: var(--color-secondary-text, #666);
}
.el-search-empty { padding: 18px 20px; color: var(--color-secondary-text, #666); }
