/* ============================================================
   LAW FM 103.9 — Search page (/search). Flat: hairlines, no shadows.
   ============================================================ */
.sr-wrap { max-width: 860px; }
.sr-hero { padding: 48px 0 56px; }
.sr-title { text-align: center; margin-bottom: 22px; }
.sr-form { position: relative; display: flex; align-items: center; background: #fff; border-radius: 16px; padding: 6px 6px 6px 50px; border: 1px solid rgba(255, 255, 255, .2); }
.sr-form__icon { position: absolute; left: 19px; top: 50%; transform: translateY(-50%); color: #8a8ca0; font-size: 17px; pointer-events: none; }
.sr-form__input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 17px; color: #1d1f33; height: 48px; padding: 0 8px 0 0; -webkit-appearance: none; appearance: none; }
.sr-form__input::placeholder { color: #8a8ca0; }
.sr-form__input::-webkit-search-cancel-button { -webkit-appearance: none; }
.sr-form:focus-within { border-color: #fff; outline: 3px solid rgba(242, 184, 185, .55); outline-offset: 2px; }
.sr-form__btn { flex: none; height: 48px; padding: 0 22px; border-radius: 12px; border: 0; background: var(--accent, #a03234); color: #fff; font-weight: 600; font-size: 15px; cursor: pointer; transition: background .2s; }
.sr-form__btn:hover { background: #86272a; }
.sr-main.section-padding { padding-top: 36px; }
.sr-count { color: #4a4d5e; font-size: 15px; margin: 0 0 14px; }
.sr-filters { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 6px; margin: 0 0 18px; }
.sr-filters::-webkit-scrollbar { display: none; }
.sr-filter { flex: none; display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 15px; border-radius: 999px; border: 1px solid rgba(49, 51, 95, .16); background: #fff; color: var(--primary, #31335f); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.sr-filter span { font-weight: 500; color: #6b6e80; }
.sr-filter:hover { border-color: rgba(49, 51, 95, .4); }
.sr-filter.is-active { background: var(--primary, #31335f); border-color: var(--primary, #31335f); color: #fff; }
.sr-filter.is-active span { color: rgba(255, 255, 255, .75); }
.sr-group { margin: 0 0 30px; }
.sr-group[hidden] { display: none; }
.sr-h2 { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 1.2rem; color: var(--primary, #31335f); margin: 0 0 12px; }
.sr-list { list-style: none; margin: 0; padding: 0; border: 1px solid rgba(49, 51, 95, .12); border-radius: 16px; overflow: hidden; background: #fff; }
.sr-list li + li { border-top: 1px solid rgba(49, 51, 95, .08); }
.sr-item { display: flex; align-items: center; gap: 16px; padding: 14px 18px; color: inherit; text-decoration: none; transition: background .15s; }
.sr-item:hover { background: #F7F7FB; }
.sr-item__img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; flex: none; background: #e3e4ee; }
.sr-item__img--round { border-radius: 50%; object-position: center top; }
.sr-item__icon { width: 56px; height: 56px; border-radius: 12px; flex: none; display: grid; place-items: center; background: #F1F1F7; color: var(--primary, #31335f); font-size: 18px; }
.sr-item__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.sr-item__title { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 1.04rem; color: var(--primary, #31335f); line-height: 1.3; }
.sr-item__meta { font-size: 13px; color: #6b6e80; }
.sr-item__text { font-size: 14px; color: #4a4d5e; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sr-item mark { background: #FBEAEA; color: inherit; padding: 0 2px; border-radius: 3px; }
.sr-item__go { color: #a6a8ba; font-size: 13px; flex: none; }
.sr-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sr-chips--center { justify-content: center; margin-top: 18px; }
.sr-chips a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(49, 51, 95, .16); color: var(--primary, #31335f); font-weight: 600; font-size: 14.5px; text-decoration: none; transition: border-color .2s, background .2s; }
.sr-chips a:hover { border-color: var(--primary, #31335f); background: #F7F7FB; }
.sr-empty { text-align: center; padding: 26px 10px; color: #4a4d5e; }
.sr-empty__title { font-family: 'Outfit', sans-serif; font-size: 1.3rem; font-weight: 700; color: var(--primary, #31335f); margin: 0 0 6px; }
@media (max-width: 767px) {
  .sr-hero { padding: 30px 0 36px; }
  .sr-form { padding-left: 44px; border-radius: 14px; }
  .sr-form__icon { left: 16px; }
  .sr-form__btn { padding: 0 16px; }
  .sr-item { padding: 12px 14px; gap: 12px; }
  .sr-item__img, .sr-item__icon { width: 48px; height: 48px; }
  .sr-item__go { display: none; }
}
body.dark-mode .sr-count, body.dark-mode .sr-empty, body.dark-mode .sr-item__text { color: #d6d8e4; }
body.dark-mode .sr-h2, body.dark-mode .sr-item__title, body.dark-mode .sr-empty__title { color: #fff; }
body.dark-mode .sr-item__meta, body.dark-mode .sr-filter span { color: #aeb1c6; }
body.dark-mode .sr-list { background: #1c2036; border-color: rgba(255, 255, 255, .1); }
body.dark-mode .sr-list li + li { border-color: rgba(255, 255, 255, .07); }
body.dark-mode .sr-item:hover { background: #242944; }
body.dark-mode .sr-item__icon { background: #2b3050; color: #fff; }
body.dark-mode .sr-item mark { background: rgba(160, 50, 52, .45); }
body.dark-mode .sr-filter, body.dark-mode .sr-chips a { background: #1c2036; border-color: rgba(255, 255, 255, .12); color: #fff; }
body.dark-mode .sr-filter.is-active { background: #fff; color: var(--primary, #31335f); border-color: #fff; }
body.dark-mode .sr-filter.is-active span { color: #4a4d5e; }
