/*
 * SEARCH PL 01 (13.10.2026) — wyszukiwarka treści: przycisk w nagłówku, okno, moduł w treści, wyniki, mapa tematów.
 * Jasne tło, spokojne akcenty niebieskie i zielone z palety motywu (zmienne --sem-*), bez ciemnych płaszczyzn.
 * Kontrast: tekst #1B2228 / #3A444C / #51606B na bieli ≥ 7:1 / 9:1 / 6,4:1; odnośniki #0A5A9C 7,1:1; elementy dotykowe ≥ 44 px.
 */
.sem-search-open.sem-search-open, .sem-search .sem-search__go, .sem-search .sem-search__close, .sem-search .sem-search__more, .sem-search .sem-search__retry, .sem-search .sem-chip {
	font-family: var(--sem-font, Inter, Arial, sans-serif); text-transform: none; letter-spacing: normal; line-height: 1.2; box-shadow: none; text-shadow: none; }

/* ---------- przycisk „Szukaj na stronie” ---------- */
.sem-search-open.sem-search-open { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 0; min-height: 0; border: 0; border-radius: 4px; background: none; cursor: pointer; color: #1B2228; font-size: 14px; font-weight: 600; text-decoration: none; }
.sem-search-open.sem-search-open svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; flex: none; }
/* Zestaw Elementora nadaje button:hover / button:focus ciemnozielone tło i biały tekst (.elementor-kit-N button:hover — 0,2,1):
   stany najechania i fokusu przycisków wyszukiwarki podajemy w całości (tło + kolor, 0,3,0), żeby zostały jasne. */
.sem-search-open.sem-search-open:hover, .sem-search-open.sem-search-open:focus { background: none; color: #0A5A9C; }
.sem-search-open.sem-search-open:focus-visible { outline: 2px solid #0B6BB5; outline-offset: 2px; border-radius: 4px; }
/* pasek nad nagłówkiem (komputer, ≥ 1200 px) — sam pasek: motyw (style.css, .sem-topbar) */
.sem-search-open.sem-search-open--bar { font-size: 13px; letter-spacing: .01em; min-height: 26px; padding: 3px 12px 3px 10px; border: 1px solid #D3E3F0; border-radius: 999px; background: #F1F7FC; color: #1B2228; }
.sem-search-open.sem-search-open--bar svg { width: 16px; height: 16px; color: #0B6BB5; }
.sem-search-open.sem-search-open--bar:hover, .sem-search-open.sem-search-open--bar:focus { background: #E3EFF9; border-color: #9BC3E6; color: #0A5A9C; }
@media (max-width: 1199px) {
	.sem-search-open.sem-search-open--bar { display: none; }
}
/* nagłówek telefonu (< 1200 px): obok przycisku menu */
.sem-search-open.sem-search-open--mobile { min-height: 44px; padding: 0 12px; margin-right: 6px; border: 1px solid #DDE3E7; border-radius: 22px; background: #F5F9FC; font-size: 14px; white-space: nowrap; }
.sem-search-open.sem-search-open--mobile:hover, .sem-search-open.sem-search-open--mobile:focus { background: #EAF3FA; border-color: #9BC3E6; color: #0A5A9C; }
@media (max-width: 359px) { .sem-search-open.sem-search-open--mobile span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } .sem-search-open.sem-search-open--mobile { padding: 0 11px; } }

/* ---------- pole wyszukiwania (okno i moduł) ---------- */
.sem-search { color: #1B2228; font-size: 16px; line-height: 1.5; }
.sem-search__label { display: block; margin: 0 0 8px; font-size: 18px; font-weight: 700; color: #1B2228; }
.sem-search__row { display: flex; align-items: stretch; border: 1.5px solid #9AA9B4; border-radius: 10px; background: #fff; overflow: hidden; }
.sem-search__row:focus-within { border-color: #0B6BB5; box-shadow: 0 0 0 3px rgba(11, 107, 181, .18); }
.sem-search__ico { display: flex; align-items: center; padding: 0 4px 0 14px; color: #51606B; }
.sem-search__ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.sem-search .sem-search__row .sem-search__input { flex: 1 1 auto; min-width: 0; min-height: 48px; margin: 0; padding: 10px 10px; border: 0 !important; outline: 0; background: transparent; font: inherit; font-size: 17px; color: #1B2228; box-shadow: none !important; text-overflow: ellipsis; }
.sem-search .sem-search__row .sem-search__input::placeholder { color: #66737D; opacity: 1; }
.sem-search .sem-search__row .sem-search__input::-webkit-search-cancel-button { cursor: pointer; }
.sem-search .sem-search__go { flex: none; min-height: 48px; margin: 0; padding: 0 20px; border: 0; border-left: 1px solid #DDE3E7; background: #EAF3FA; color: #0A5A9C; font-size: 15px; font-weight: 700; cursor: pointer; }
.sem-search .sem-search__go:hover, .sem-search .sem-search__go:focus { background: #DCEBF7; color: #0A5A9C; }
.sem-search .sem-search__go:focus-visible, .sem-search .sem-search__close:focus-visible, .sem-search .sem-search__more:focus-visible, .sem-search .sem-search__retry:focus-visible, .sem-search .sem-chip:focus-visible { outline: 2px solid #0B6BB5; outline-offset: 2px; }
.sem-search__hint { margin: 8px 0 0; font-size: 14px; color: #51606B; }
.sem-search__status { margin: 10px 0 0; font-size: 14px; color: #3A444C; min-height: 1px; }
.sem-search__status:empty { margin: 0; }

/* ---------- wyniki ---------- */
.sem-results { list-style: none; margin: 8px 0 0; padding: 0; }
.sem-result { margin: 0; border-bottom: 1px solid #E6EBEE; }
.sem-result:last-child { border-bottom: 0; }
.sem-result__link { display: block; padding: 12px 10px; border-radius: 8px; color: inherit; text-decoration: none; }
.sem-result__link:hover { background: #F5F9FC; }
.sem-result__link:focus-visible { outline: 2px solid #0B6BB5; outline-offset: -2px; background: #F5F9FC; }
.sem-result__top { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 3px; }
.sem-result__type { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.sem-result__type--m { background: #E6F2EB; color: #175F37; }
.sem-result__type--p { background: #E8F1FA; color: #0A5A9C; }
.sem-result__type--s { background: #EEF1F4; color: #2E3A44; }
.sem-result__type--n { background: #F2F8F4; color: #175F37; border: 1px solid #CFE5D7; }
.sem-result__type--i { background: #F3F4F6; color: #3A444C; }
.sem-result__via { font-size: 12px; color: #51606B; }
.sem-result__title { display: block; font-size: 17px; font-weight: 700; line-height: 1.35; color: #0A5A9C; overflow-wrap: anywhere; }
.sem-result__link:hover .sem-result__title { text-decoration: underline; text-underline-offset: 3px; }
.sem-result__where { display: block; margin-top: 2px; font-size: 13px; color: #175F37; font-weight: 600; overflow-wrap: anywhere; }
.sem-result__snip { display: block; margin-top: 4px; font-size: 15px; color: #3A444C; overflow-wrap: anywhere; }
.sem-results mark { background: #FFF1B8; color: inherit; padding: 0 1px; border-radius: 2px; }
.sem-search .sem-search__more, .sem-search .sem-search__retry { display: inline-flex; align-items: center; min-height: 44px; margin: 10px 0 0; padding: 0 16px; border: 1.5px solid #0B6BB5; border-radius: 8px; background: #fff; color: #0A5A9C; font-size: 15px; font-weight: 700; cursor: pointer; }
.sem-search .sem-search__more:hover, .sem-search .sem-search__more:focus, .sem-search .sem-search__retry:hover, .sem-search .sem-search__retry:focus { background: #EAF3FA; color: #0A5A9C; }
.sem-search__amb { margin: 8px 0 0; padding: 10px 12px; border: 1px solid #D7E8DD; border-radius: 10px; background: #F4F9F6; font-size: 15px; color: #1B2228; }
.sem-search__amb-t { margin: 0 0 8px; font-weight: 700; }
.sem-search__amb-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.sem-search .sem-chip.sem-chip--amb, .sem-search .sem-chip.sem-chip--all { min-height: 40px; padding: 4px 14px; font-size: 15px; }
.sem-search .sem-chip.sem-chip--amb[aria-pressed="true"] { background: #EAF3FA; border-color: #0B6BB5; color: #0A5A9C; box-shadow: inset 0 0 0 1px #0B6BB5; }
.sem-search .sem-chip.sem-chip--amb[aria-pressed="true"]::before { content: "✓"; margin-right: 6px; font-weight: 700; }
.sem-search .sem-chip.sem-chip--all { border-style: dashed; color: #3A444C; }
.sem-search .sem-search__amb .sem-search__amb-link { display: inline-block; margin-top: 8px; font-size: 14px; font-weight: 600; }
.sem-search .sem-search__amb a, .sem-search .sem-search__cta a, .sem-search .sem-search__fallback a, .sem-search .sem-search__none a, .sem-search .sem-search__browse a { color: #0A5A9C; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.sem-search .sem-chip { display: inline-flex; align-items: center; min-height: 32px; margin: 2px 0; padding: 2px 12px; border: 1px solid #C9D7E1; border-radius: 999px; background: #fff; color: #1B2228; font-size: 14px; font-weight: 600; cursor: pointer; }
.sem-search .sem-chip:hover, .sem-search .sem-chip:focus { background: #fff; border-color: #0B6BB5; color: #0A5A9C; }
.sem-search__none { margin: 10px 0 0; }
.sem-search__none-links { margin: 4px 0 0; padding: 0; list-style: none; }
.sem-search__none-links li { display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; min-height: 40px; margin: 0; font-size: 15px; }
.sem-search__none p { margin: 0 0 8px; }
.sem-search__cta { margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid #E6EBEE; font-size: 14px; color: #51606B; }
.sem-search__cta-link { white-space: nowrap; }
.sem-search__error, .sem-search__empty { margin: 8px 0 0; }
.sem-search__examples { margin: 0 0 6px; font-size: 14px; color: #51606B; }
.sem-search__fallback { margin: 10px 0 0; font-size: 15px; }
.sem-search__browse { margin: 12px 0 0; font-size: 15px; }

/* ---------- okno (dialog) ---------- */
html.sem-search-locked { overflow: hidden; }
.sem-search-dialog { width: min(760px, calc(100vw - 32px)); max-height: calc(100vh - 64px); margin: 32px auto auto; padding: 0; border: 1px solid #DDE3E7; border-radius: 14px; background: #fff; color: #1B2228; box-shadow: 0 18px 50px rgba(27, 34, 40, .18); overflow: auto; }
.sem-search-dialog::backdrop { background: rgba(27, 34, 40, .35); }
.sem-search--dialog { padding: 20px 22px 18px; }
.sem-search__top { display: flex; align-items: flex-end; gap: 12px; }
.sem-search__top .sem-search__form { flex: 1 1 auto; min-width: 0; }
.sem-search .sem-search__close { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-width: 48px; min-height: 48px; margin: 0; padding: 4px; border: 0; border-radius: 8px; background: none; color: #3A444C; font-size: 11px; font-weight: 600; cursor: pointer; }
.sem-search .sem-search__close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.sem-search .sem-search__close:hover, .sem-search .sem-search__close:focus { background: #F1F4F6; color: #1B2228; }
@media (max-width: 767px) {
	.sem-search-dialog { width: 100vw; max-width: 100vw; height: 100%; max-height: 100%; margin: 0; border: 0; border-radius: 0; }
	.sem-search--dialog { padding: 14px 16px 24px; }
	.sem-search .sem-search__go { padding: 0 14px; }
	/* telefon: „Zamknij” w wierszu etykiety — pole wyszukiwania na całą szerokość */
	.sem-search--dialog .sem-search__top { position: relative; display: block; }
	.sem-search--dialog .sem-search__label { display: flex; align-items: center; min-height: 48px; margin: 0 60px 4px 0; }
	.sem-search--dialog .sem-search__close { position: absolute; top: 0; right: 0; }
}
@media (max-width: 480px) {
	/* wąski ekran: bez ozdobnej lupy w polu (etykieta i przycisk „Szukaj” zostają), mniejsza podpowiedź — wpisywany tekst 17 px */
	.sem-search .sem-search__ico { display: none; }
	.sem-search .sem-search__row .sem-search__input { padding-left: 14px; }
	.sem-search .sem-search__row .sem-search__input::placeholder { font-size: 15px; }
}

/* ---------- moduł w treści: Baza wiedzy, strona główna ---------- */
.sem-search--inline { box-sizing: border-box; width: 100%; max-width: 1240px; margin: 0 auto; padding: 28px 20px; }
.sem-search--kb { padding-top: 8px; }
.sem-search--kb .sem-search__form { max-width: 760px; }
.sem-search--kb .sem-search__status, .sem-search--kb .sem-search__results { max-width: 760px; }
.sem-search--inline.has-results .sem-search__results { margin-top: 6px; padding: 6px 12px 12px; border: 1px solid #DDE3E7; border-radius: 12px; background: #fff; }
.sem-search--inline.sem-search--kb, .sem-search--inline.sem-search--topics { padding-left: 0; padding-right: 0; }   /* kontener Elementora ma już margines strony */
.sem-search--inline.sem-search--topics, .sem-search--inline.sem-search--topics.sem-search--topics { padding-top: 8px; padding-bottom: 0; }   /* pod mapą tylko odstęp kontenera Elementora (zmiana tła oddziela sekcje) */
.sem-search--home { max-width: 820px; padding: 4px 20px 26px; text-align: left; }
.sem-search--home .sem-search__label { text-align: center; font-size: 20px; }
.sem-search--home .sem-search__hint { text-align: center; }
.sem-topics { max-width: 1240px; margin: 22px 0 0; }
.sem-search .sem-topics__title { margin: 0 0 10px; font-size: 20px; font-weight: 700; line-height: 1.3; letter-spacing: normal; color: #1B2228; }   /* nawigacja, nie nagłówek sekcji (zestaw: h2 0,1,1) */
.sem-topics__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 18px; }
.sem-topics__group { margin: 0; padding: 12px 14px 10px; border: 1px solid #DDE3E7; border-top: 3px solid #2E9A5B; border-radius: 10px; background: #fff; }
.sem-topics__group:nth-child(even) { border-top-color: #0B6BB5; }
.sem-topics__group summary { display: flex; align-items: center; justify-content: space-between; min-height: 32px; font-size: 15px; font-weight: 700; color: #1B2228; cursor: pointer; list-style: none; }
.sem-topics__group summary::-webkit-details-marker { display: none; }
.sem-topics__group summary::after { content: ""; width: 9px; height: 9px; margin-left: 10px; border-right: 2px solid #51606B; border-bottom: 2px solid #51606B; transform: rotate(45deg) translateY(-2px); flex: none; }
.sem-topics__group[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.sem-topics__group summary:focus-visible { outline: 2px solid #0B6BB5; outline-offset: 2px; border-radius: 4px; }
.sem-topics__n { margin-left: auto; padding: 0 7px; border-radius: 999px; background: #F1F4F6; font-size: 12px; color: #51606B; }
.sem-topics__group ul { margin: 6px 0 0; padding: 0; list-style: none; }
.sem-topics__group li { margin: 0; }
.sem-search .sem-topics__group a { display: block; padding: 5px 0; font-size: 15px; line-height: 1.35; color: #0A5A9C; text-decoration: none; }
.sem-search .sem-topics__group a:hover { text-decoration: underline; text-underline-offset: 3px; }
.sem-topics__group a:focus-visible { outline: 2px solid #0B6BB5; outline-offset: 1px; border-radius: 3px; }
@media (max-width: 1023px) { .sem-topics__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) {
	.sem-search--inline { padding: 22px 16px; }
	.sem-search--inline.sem-search--home { padding-left: 0; padding-right: 0; }
	.sem-topics__grid { grid-template-columns: 1fr; gap: 8px; }
	.sem-topics__group a { padding: 9px 0; }
	.sem-search__label { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) { .sem-search * { transition: none !important; } }
