/* MME Blog – live search dropdown (see assets/js/live-search.js). */
.search-form.has-ls { position: relative; }
.search-form.ls-loading input[type="search"] { background-image: linear-gradient(90deg, transparent, color-mix(in srgb, var(--c-primary) 12%, transparent), transparent); background-size: 200% 100%; animation: ls-load 1s linear infinite; }
@keyframes ls-load { from { background-position: 100% 0; } to { background-position: -100% 0; } }

.ls { position: absolute; top: calc(100% + 8px); left: 0; z-index: 80; width: max(100%, 400px); max-width: calc(100vw - 24px); max-height: min(70vh, 560px); overflow-y: auto; overscroll-behavior: contain; padding: 8px; background: #fff; border: 1px solid var(--c-border, #e3eaea); border-radius: 16px; box-shadow: 0 18px 48px rgba(31, 42, 48, .16), 0 2px 6px rgba(31, 42, 48, .06); text-align: left; animation: ls-in .16s ease-out; }
.ls[hidden] { display: none; }
@keyframes ls-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.ls__group + .ls__group { margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--c-border, #e3eaea); }
.ls__head { display: flex; justify-content: space-between; margin: 0; padding: 8px 10px 4px; color: var(--c-text-muted, #5d6a70); font-size: .6875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.ls__head span { letter-spacing: 0; text-transform: none; font-weight: 500; }

.ls__item { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; color: var(--c-text, #1f2a30); text-decoration: none; }
.ls__item.is-active { background: var(--c-bg-soft, #f1f6f5); }
.ls__thumb { flex: none; width: 48px; height: 48px; overflow: hidden; border-radius: 9px; background: var(--tone-bg, #e6efed); }
.ls__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ls__avatar { flex: none; width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.ls__txt { min-width: 0; display: grid; gap: 2px; }
.ls__title { font-size: .9rem; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ls__meta { color: var(--c-text-muted, #5d6a70); font-size: .75rem; }
.ls__meta b { color: var(--tone-ink, var(--c-primary, #2d7a73)); font-weight: 600; }
.ls mark { background: color-mix(in srgb, var(--c-accent) 35%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }

.ls__chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 6px 6px; }
.ls__chip { gap: 7px; padding: 6px 12px; border: 1px solid var(--c-border, #e3eaea); border-radius: 99px; font-size: .8125rem; font-weight: 600; }
.ls__chip small { color: var(--c-text-muted, #5d6a70); font-weight: 500; }
.ls__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--tone-badge, var(--c-primary, #2d7a73)); }
.ls__chip.is-active { border-color: var(--c-primary, #2d7a73); }

.ls__empty { display: grid; gap: 4px; padding: 18px 12px 12px; text-align: center; }
.ls__empty span { color: var(--c-text-muted, #5d6a70); font-size: .85rem; }
.ls__all { justify-content: center; margin-top: 6px; padding: 11px; border-top: 1px solid var(--c-border, #e3eaea); border-radius: 0 0 10px 10px; color: var(--c-primary, #2d7a73); font-size: .85rem; font-weight: 700; }

@media (max-width: 599px) {
	.ls { left: 0; right: 0; width: auto; max-width: none; max-height: 65vh; }
}
@media (prefers-reduced-motion: reduce) { .ls { animation: none; } .search-form.ls-loading input[type="search"] { animation: none; } }
