/*! NDIT CMS – © 2026 NdIT22 Kft. Minden jog fenntartva. Zárt licenc (docs/LICENSE.hu.txt). */
/* NDIT CMS – Keresés */
.nd-search { position: relative; display: flex; align-items: stretch; gap: 8px; width: 100%; max-width: 640px; }
.nd-search-field { position: relative; flex: 1; min-width: 0; display: flex; align-items: center; }
.nd-search input[type=search] { width: 100%; min-width: 0; font: inherit; font-size: 15px; color: var(--nd-ink, #111); background: var(--nd-bg, #fff);
  border: 1px solid var(--nd-line, #d4d8de); border-radius: var(--nd-btn-radius, 8px); padding: 10px 14px; line-height: 1.3; -webkit-appearance: none; appearance: none; }
.nd-search input[type=search]::-webkit-search-decoration { -webkit-appearance: none; }
.nd-search input[type=search]:focus { outline: 2px solid var(--nd-search-btn, var(--nd-accent, #2563eb)); outline-offset: 1px; border-color: transparent; }
.nd-search-ico { position: absolute; left: 12px; color: var(--nd-muted, #6b7280); display: flex; pointer-events: none; }
.nd-search-ico + input[type=search] { padding-left: 38px; }
.nd-search-btn { font: inherit; font-weight: 600; font-size: 15px; border: 0; cursor: pointer; padding: 0 18px; border-radius: var(--nd-btn-radius, 8px);
  background: var(--nd-search-btn, var(--nd-accent, #2563eb)); color: var(--nd-search-btn-ink, var(--nd-accent-ink, #fff)); display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.nd-search-btn:hover { filter: brightness(1.08); }
.nd-search-btn-icon { padding: 0; width: 44px; flex: none; }
.nd-search .nd-search-tbtn { font-size: 15px; padding: 0 18px; justify-content: center; flex: none; }
.nd-search .nd-search-tbtn.nd-search-btn-icon { padding: 0; width: 44px; }
.nd-search-pill .nd-search-tbtn { border-radius: 999px; }
.nd-search-lg input[type=search] { font-size: 17px; padding: 14px 16px; }
.nd-search-lg .nd-search-ico + input[type=search] { padding-left: 42px; }
.nd-search-lg .nd-search-btn { font-size: 16px; padding: 0 24px; }
.nd-search-pill input[type=search], .nd-search-pill .nd-search-btn { border-radius: 999px; }
.nd-search-underline input[type=search] { border-width: 0 0 2px; border-radius: 0; background: transparent; padding-left: 2px; }
.nd-search-underline .nd-search-ico + input[type=search] { padding-left: 30px; }
.nd-search-underline .nd-search-ico { left: 2px; }
.nd-search-underline .nd-search-btn { background: transparent; color: var(--nd-ink, #111); }
/* sötét háttéren (pl. fejléc) */
.nd-tone-light .nd-search input[type=search], .nd-tone-dark .nd-search input[type=search] { color: #111; }

/* javaslatok */
.nd-suggest { position: absolute; z-index: 60; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 6px; list-style: none; background: #fff; color: #111;
  border: 1px solid var(--nd-line, #e5e7eb); border-radius: 10px; box-shadow: 0 12px 32px rgba(15, 23, 42, .16); max-height: 360px; overflow: auto; text-align: left; }
.nd-suggest[hidden] { display: none; }
.nd-suggest li { margin: 0; }
.nd-suggest a { display: flex; gap: 10px; justify-content: space-between; align-items: baseline; padding: 9px 10px; border-radius: 7px; color: inherit; text-decoration: none; font-size: 14.5px; line-height: 1.35; }
.nd-suggest a small { color: #6b7280; font-size: 12px; flex: none; }
.nd-suggest a[aria-selected=true], .nd-suggest a:hover { background: #f1f5f9; }
.nd-suggest mark, .nd-search-results mark { background: color-mix(in srgb, var(--nd-search-btn, var(--nd-accent, #2563eb)) 18%, transparent); color: inherit; padding: 0 1px; border-radius: 2px; }
.nd-suggest .nd-suggest-all a { color: var(--nd-search-btn, var(--nd-accent, #2563eb)); font-weight: 600; justify-content: flex-start; }

/* találati oldal */
.nd-search-page h1 { margin-bottom: 18px; }
.nd-search-page .nd-search { max-width: none; }
.nd-search-count { margin: 18px 0 8px; color: var(--nd-muted, #6b7280); }
.nd-search-empty { padding: 4px 0 12px; }
.nd-search-empty p { margin: 0 0 6px; font-weight: 600; }
.nd-search-empty ul { margin: 0; padding-left: 1.2em; color: var(--nd-muted, #6b7280); }
.nd-search-results { list-style: none; margin: 8px 0 0; padding: 0; }
.nd-search-item { display: flex; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--nd-line, #e5e7eb); }
.nd-search-img { flex: none; width: 128px; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: var(--nd-line, #e5e7eb); }
.nd-search-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nd-search-main { min-width: 0; }
.nd-search-meta { margin: 0 0 4px; font-size: 13px; color: var(--nd-muted, #6b7280); display: flex; gap: 10px; }
.nd-search-type { text-transform: uppercase; letter-spacing: .05em; font-weight: 600; font-size: 11.5px; }
.nd-search-title { font-size: 1.2rem; line-height: 1.3; margin: 0 0 6px; }
.nd-search-title a { text-decoration: none; color: var(--nd-head, inherit); }
.nd-search-title a:hover { text-decoration: underline; }
.nd-search-snippet { margin: 0; color: var(--nd-ink-2, var(--nd-muted, #4b5563)); line-height: 1.55; font-size: 15px; overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .nd-search-img { width: 84px; }
  .nd-search-btn:not(.nd-search-btn-icon) { padding: 0 14px; }
}

/* a hírlista (blog) fejlécében */
.nd-news-head.has-search { display: flex; gap: 24px; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; }
.nd-news-head.has-search .nd-news-head-text { flex: 1 1 320px; min-width: 0; }
.nd-news-head .nd-news-search { flex: 0 1 340px; margin-bottom: 6px; }
.nd-news-search-below { margin: 0 0 24px; }
.nd-news-search-below .nd-search { max-width: none; }
@media (max-width: 700px) { .nd-news-head .nd-news-search { flex-basis: 100%; } }
