/* Header search button + overlay (html/softway_search.php, js/sw-search.js) */
.sw-header__search { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; background: #f2f4f7; color: #101828; cursor: pointer; transition: background-color .15s ease, color .15s ease; }
.sw-header__search:hover, .sw-header__search:focus-visible { background: #fff1ee; color: #f14833; outline: none; }
.sw-header__search svg, .sw-find svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

html.sw-find-open { overflow: hidden; }

.sw-find { position: fixed; inset: 0; z-index: 100000; display: flex; justify-content: center; align-items: flex-start; padding: 9vh 16px 16px; font-family: inherit; }
.sw-find[hidden] { display: none; }
.sw-find__backdrop { position: absolute; inset: 0; background: rgba(10, 18, 36, .58); backdrop-filter: blur(3px); opacity: 0; transition: opacity .16s ease; }
.sw-find__panel { position: relative; width: 100%; max-width: 680px; max-height: 82vh; display: flex; flex-direction: column; background: #fff; border-radius: 20px; box-shadow: 0 30px 80px rgba(10, 18, 36, .35); overflow: hidden; opacity: 0; transform: translateY(-12px) scale(.98); transition: opacity .16s ease, transform .16s ease; }
.sw-find.is-open .sw-find__backdrop { opacity: 1; }
.sw-find.is-open .sw-find__panel { opacity: 1; transform: none; }

.sw-find__form { position: relative; display: flex; align-items: center; gap: 10px; margin: 0; padding: 14px 14px 14px 20px; border-bottom: 1px solid #eaecf0; }
.sw-find__icon { flex: none; color: #98a2b3; }
.sw-find.is-loading .sw-find__icon { color: #f14833; animation: sw-find-pulse .8s ease-in-out infinite alternate; }
@keyframes sw-find-pulse { to { opacity: .35; } }
.sw-find__input { flex: 1 1 auto; min-width: 0; height: 46px !important; margin: 0 !important; padding: 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important; color: #101828; font-size: 19px !important; line-height: 46px; outline: none; }
.sw-find__input::-webkit-search-cancel-button { -webkit-appearance: none; }
.sw-find__submit { flex: none; height: 42px; padding: 0 20px; border: 0; border-radius: 999px; background: #f14833; color: #fff; font-weight: 700; font-size: 15px; cursor: pointer; }
.sw-find__submit:hover { background: #d93a26; }
.sw-find__close { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: #f2f4f7; color: #475467; cursor: pointer; }
.sw-find__close:hover { background: #e4e7ec; color: #101828; }

.sw-find__body { overflow-y: auto; padding: 14px 12px 16px; }
.sw-find__hot[hidden] { display: none; }
.sw-find__label { margin: 6px 8px 8px; color: #667085; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.sw-find__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 8px; padding: 0; list-style: none; }
.sw-find__chips button { padding: 7px 14px; border: 1px solid #eaecf0; border-radius: 999px; background: #f9fafb; color: #344054; font-size: 14px; cursor: pointer; }
.sw-find__chips button:hover, .sw-find__chips button:focus-visible { border-color: #f14833; background: #fff1ee; color: #f14833; outline: none; }
.sw-find__tip { margin: 16px 8px 2px; color: #98a2b3; font-size: 13px; }
.sw-find kbd { display: inline-block; padding: 1px 6px; border: 1px solid #d0d5dd; border-bottom-width: 2px; border-radius: 5px; background: #fff; color: #344054; font: 600 11px/1.5 inherit; box-shadow: none; }

.sw-find__list, .sw-find__cats { margin: 0 0 8px; padding: 0; list-style: none; }
.sw-find__item { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 12px; color: #101828 !important; text-decoration: none !important; outline: none; }
.sw-find__item:hover, .sw-find__item:focus { background: #f5f6f8; }
.sw-find__item:focus-visible { box-shadow: inset 0 0 0 2px #f14833; }
.sw-find__cats .sw-find__item { justify-content: space-between; }
.sw-find__cats .sw-find__item b { font-weight: 600; }
.sw-find__cats .sw-find__item span { flex: none; color: #98a2b3; font-size: 13px; font-weight: 400; }
.sw-find__post img, .sw-find__noimg { flex: none; width: 64px; height: 44px; border-radius: 8px; object-fit: cover; background: linear-gradient(135deg, #fff1ee, #f2f4f7); }
.sw-find__text { display: flex; flex-direction: column; min-width: 0; }
.sw-find__text b { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-weight: 600; font-size: 15px; line-height: 1.35; }
.sw-find__text small { margin-top: 2px; color: #98a2b3; font-size: 12.5px; }
.sw-find mark { padding: 0; background: transparent; color: #f14833; }
.sw-find__empty { margin: 8px 10px 12px; color: #475467; font-size: 15px; }
.sw-find__all { justify-content: center; margin-top: 4px; background: #fff1ee; color: #f14833 !important; font-weight: 700; }
.sw-find__all:hover, .sw-find__all:focus { background: #ffe3dd; }

@media (max-width: 767px) {
	.sw-header__search { width: 40px; height: 40px; }
	.sw-find { padding: 0; }
	.sw-find__panel { max-width: none; max-height: none; height: 100%; border-radius: 0; }
	.sw-find__form { padding: 10px 10px 10px 14px; }
	.sw-find__input { font-size: 17px !important; }
	.sw-find__submit { display: none; }
}

/* ---------- Full results page (com_search override) ---------- */
.sw-results { max-width: 860px; margin: 0 auto; padding: 8px 0 40px; }
.sw-results__title { margin: 0 0 18px; font-size: 32px; font-weight: 800; line-height: 1.2; color: #101828; }
.sw-results__form { display: flex; gap: 10px; margin: 0 0 10px; }
.sw-results__form input[type=search] { flex: 1 1 auto; min-width: 0; height: 52px; margin: 0; padding: 0 18px; border: 1px solid #d0d5dd; border-radius: 14px; font-size: 17px; box-shadow: none; }
.sw-results__form input[type=search]:focus { border-color: #f14833; box-shadow: 0 0 0 4px rgba(241, 72, 51, .12); outline: none; }
.sw-results__form button { flex: none; height: 52px; padding: 0 26px; border: 0; border-radius: 14px; background: #f14833; color: #fff; font-weight: 700; font-size: 16px; cursor: pointer; }
.sw-results__opts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 18px; color: #475467; font-size: 14px; }
.sw-results__opts label { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-weight: 400; cursor: pointer; }
.sw-results__opts input { margin: 0; }
.sw-results__count { margin: 0 0 14px; color: #475467; }
.sw-results__count b { color: #101828; }
.sw-results__list { margin: 0; padding: 0; list-style: none; }
.sw-results__item { padding: 18px 0; border-bottom: 1px solid #eaecf0; }
.sw-results__item:first-child { padding-top: 6px; }
.sw-results__cat { display: inline-block; margin-bottom: 4px; color: #f14833; font-size: 12.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.sw-results__item h2 { margin: 0 0 6px; font-size: 20px; font-weight: 700; line-height: 1.35; }
.sw-results__item h2 a { color: #101828; text-decoration: none; }
.sw-results__item h2 a:hover { color: #f14833; }
.sw-results__text { margin: 0; color: #475467; font-size: 15px; line-height: 1.6; }
.sw-results .sw-results__item mark, .sw-results .sw-results__item .highlight { padding: 0 1px; border-radius: 3px; background: #fff1ee !important; color: #c2341f !important; font-weight: 600; }
.sw-results__date { margin-top: 6px; color: #98a2b3; font-size: 13px; }
.sw-results__note { margin: 0 0 14px; padding: 12px 16px; border-radius: 12px; background: #f9fafb; color: #475467; font-size: 14px; }
.sw-results__empty { padding: 26px 22px; border-radius: 16px; background: #f9fafb; color: #475467; }
.sw-results__empty h2 { margin: 0 0 8px; font-size: 20px; color: #101828; }
.sw-results .pagination { margin-top: 24px; }
