/* assets/als.css – AJAX Link Search */

.als-wrap {
    position: relative;
    max-width: 560px;
    margin: 1em 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ---- Search box ---- */
.als-search-box {
    display: flex;
    align-items: center;
    border: 2px solid #c7cdd4;
    border-radius: 8px;
    background: #fff;
    transition: border-color .2s;
    overflow: hidden;
}
.als-search-box:focus-within {
    border-color: #2271b1;
    box-shadow: 0 0 0 3px rgba(34,113,177,.15);
}

.als-input {
    flex: 1;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    padding: 11px 14px;
    font-size: 15px;
    background: transparent;
    color: #1d2327;
}
.als-input::placeholder { color: #8c9aab; }

/* spinner */
.als-spinner {
    width: 18px;
    height: 18px;
    margin-right: 12px;
    flex-shrink: 0;
    border: 2px solid #d0d5db;
    border-top-color: #2271b1;
    border-radius: 50%;
    display: none;
}
.als-spinner.als-spinning {
    display: block;
    animation: als-spin .6s linear infinite;
}
@keyframes als-spin { to { transform: rotate(360deg); } }

/* ---- Results list ---- */
.als-results {
    list-style: none;
    margin: 4px 0 0;
    padding: 0;
    background: #fff;
    border: 1.5px solid #d0d5db;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0,0,0,.10);
    max-height: 360px;
    overflow-y: auto;
    display: none;
    position: absolute;
    left: 0; right: 0;
    z-index: 9999;
}
.als-results.als-open { display: block; }

/* ---- Items ---- */
.als-item {
    border-bottom: 1px solid #f0f2f4;
}
.als-item:last-child { border-bottom: none; }

.als-item a {
    display: flex;
    flex-direction: column;
    padding: 10px 14px;
    text-decoration: none;
    color: inherit;
    transition: background .15s;
    outline: none;
}
.als-item a:hover,
.als-item.als-active a {
    background: #f0f6fc;
}
.als-item.als-active { outline: 2px solid #2271b1; outline-offset: -2px; border-radius: 4px; }

.als-title {
    font-size: 14px;
    font-weight: 600;
    color: #2271b1;
}
.als-desc {
    font-size: 12px;
    color: #555d66;
    margin-top: 2px;
}
.als-url {
    font-size: 11px;
    color: #8c9aab;
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.als-item mark {
    background: #fff176;
    color: inherit;
    border-radius: 2px;
    padding: 0 1px;
}

/* ---- No results / error ---- */
.als-no-results {
    padding: 12px 16px;
    color: #555d66;
    font-size: 14px;
    font-style: italic;
}
.als-error { color: #b32d2e; }
