/* Живой поиск по практике — изолирован префиксом .nl-, светлая тема сайта */
.nl-search {
  /* по умолчанию — цвета блога; лендинг задаёт свои через .nl-theme-site */
  --nl-accent: #6d28d9;
  --nl-accent-soft: #ede9fe;
  --nl-accent-line: #ddd6fe;
  --nl-accent-focus: #a78bfa;
  --nl-cta-bg: linear-gradient(135deg, #f5f3ff, #eff6ff);
  --nl-grad: linear-gradient(135deg, #7c3aed, #2563eb);
  --nl-text: #0f172a;
  --nl-muted: #64748b;
  --nl-line: #e2e8f0;
  --nl-soft: #f8fafc;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--nl-text);
  text-align: left;
  line-height: 1.5;
  margin: 1.5rem 0;
}
.nl-search *, .nl-search *::before, .nl-search *::after { box-sizing: border-box; }

.nl-search__form {
  display: flex;
  gap: .5rem;
  padding: .5rem;
  background: #fff;
  border: 1px solid var(--nl-line);
  border-radius: 1rem;
  box-shadow: 0 10px 30px -12px rgba(15, 23, 42, .18);
}
.nl-search__input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  font: inherit;
  font-size: 1rem;
  padding: .65rem .75rem;
  color: var(--nl-text);
}
.nl-search__input::placeholder { color: #94a3b8; }
.nl-search__form:focus-within { border-color: var(--nl-accent-focus); box-shadow: 0 0 0 4px color-mix(in srgb, var(--nl-accent) 14%, transparent), 0 10px 30px -12px rgba(15, 23, 42, .18); }

.nl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  border: 0;
  border-radius: .75rem;
  padding: .7rem 1.15rem;
  background: var(--nl-grad);
  color: #fff !important;
  font: inherit;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none !important;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity .15s, transform .15s;
}
.nl-btn:hover { opacity: .92; }
.nl-btn:active { transform: translateY(1px); }
.nl-btn[disabled] { opacity: .6; cursor: progress; }

.nl-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .75rem; }
.nl-chip {
  border: 1px solid var(--nl-line);
  background: #fff;
  color: #334155;
  border-radius: 999px;
  padding: .35rem .8rem;
  font: inherit;
  font-size: .8rem;
  cursor: pointer;
  transition: border-color .15s, color .15s;
}
.nl-chip:hover { border-color: var(--nl-accent-focus); color: var(--nl-accent); }

.nl-search__meta { margin-top: .6rem; font-size: .78rem; color: var(--nl-muted); }

.nl-status { margin-top: 1rem; }
.nl-status__line { font-size: .88rem; color: #334155; }
.nl-status__bar { height: 4px; margin-top: .5rem; background: var(--nl-accent-soft); border-radius: 99px; overflow: hidden; }
.nl-status__fill { height: 100%; width: 0; background: var(--nl-grad); transition: width .5s ease-out; }

.nl-msg { margin: 1rem 0 0; font-size: .92rem; color: #334155; }

.nl-results { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .75rem; }
.nl-card {
  margin: 0;
  padding: 1rem 1.1rem;
  background: #fff;
  border: 1px solid var(--nl-line);
  border-radius: .9rem;
  transition: border-color .15s, box-shadow .15s;
}
.nl-card:hover { border-color: var(--nl-accent-focus); box-shadow: 0 6px 20px -10px rgba(15, 23, 42, .22); }
.nl-card__head { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.nl-card__court { font-weight: 600; font-size: .95rem; }
.nl-card__meta { display: flex; gap: .9rem; flex-wrap: wrap; margin-top: .15rem; font-size: .8rem; color: var(--nl-muted); }
.nl-badge {
  display: inline-block;
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .03em;
  padding: .15rem .5rem;
  border-radius: .4rem;
}
.nl-badge--app { background: var(--nl-accent-soft); color: var(--nl-accent); }
.nl-badge--cass { background: #dbeafe; color: #1e40af; }
.nl-outcome {
  display: inline-block;
  margin-top: .55rem;
  font-size: .78rem;
  font-weight: 500;
  padding: .2rem .55rem;
  border-radius: .4rem;
  background: var(--nl-soft);
  color: #334155;
  border: 1px solid var(--nl-line);
}
.nl-outcome--changed { background: #fff7ed; border-color: #fed7aa; color: #9a3412; }
.nl-outcome--kept { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.nl-card__summary { margin: .6rem 0 0; font-size: .9rem; font-weight: 500; }
.nl-card__snippet {
  margin: .6rem 0 0;
  padding: .1rem 0 .1rem .8rem;
  border-left: 3px solid var(--nl-accent-line);
  font-size: .88rem;
  color: #334155;
  font-style: normal;
}
.nl-card__snippet mark { background: #fef3c7; color: inherit; padding: 0 .1em; border-radius: .2em; }
.nl-card__foot { display: flex; gap: 1.1rem; flex-wrap: wrap; margin-top: .7rem; font-size: .85rem; }
.nl-link { color: var(--nl-muted) !important; text-decoration: none !important; font-weight: 500; }
.nl-link:hover { color: var(--nl-text) !important; }
.nl-link--accent { color: var(--nl-accent) !important; font-weight: 600; }

.nl-cta {
  margin-top: 1rem;
  padding: 1.25rem;
  border-radius: 1rem;
  background: var(--nl-cta-bg);
  border: 1px solid var(--nl-accent-line);
}
.nl-cta__title { font-weight: 700; font-size: 1.05rem; }
.nl-cta__list { margin: .6rem 0 1rem; padding-left: 1.1rem; font-size: .9rem; color: #334155; }
.nl-cta__list li { margin: .2rem 0; }
.nl-cta__note { margin-top: .6rem; font-size: .78rem; color: var(--nl-muted); }

/* в статьях — компактнее, 3 карточки хватает для доказательства */
.nl-search--compact .nl-card { padding: .85rem 1rem; }
.nl-search--compact .nl-search__input { font-size: .95rem; }

@media (max-width: 560px) {
  .nl-search__form { flex-direction: column; padding: .4rem; }
  .nl-search__btn { width: 100%; }
  .nl-cta .nl-btn { width: 100%; }
  .nl-card { padding: .85rem .9rem; }
}

/* тема лендинга (зелёный бренд), ставится на обёртку в Nuxt-страницах */
.nl-theme-site .nl-search, .nl-search.nl-theme-site {
  --nl-accent: #15803D;
  --nl-accent-soft: #DCFCE7;
  --nl-accent-line: #BBF7D0;
  --nl-accent-focus: #4ADE80;
  --nl-cta-bg: linear-gradient(135deg, #F0FDF4, #ECFDF5);
  --nl-grad: linear-gradient(135deg, #16A34A, #15803D);
}
