/* Stringers Society site search (v1.19.0) */
.sscs-search-item { list-style: none; }
.sscs-search-open {
  display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; cursor: pointer;
  color: inherit; font: inherit; padding: 8px 10px; border-radius: 6px; line-height: 1;
}
.sscs-search-open:hover, .sscs-search-open:focus-visible { color: #c0190f; }
.sscs-search-open:focus-visible, .sscs-so-chip:focus-visible, .sscs-so-link:focus-visible { outline: 2px solid #c0190f; outline-offset: 2px; }
@media (min-width: 1024px) { .sscs-search-open-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }

/* Overlay */
html.sscs-so-lock { overflow: hidden; }
.sscs-so[hidden] { display: none; }
.sscs-so { position: fixed; inset: 0; z-index: 100000; }
.sscs-so-backdrop { position: absolute; inset: 0; background: rgba(17,17,17,.55); }
.sscs-so-panel {
  position: relative; max-width: 720px; margin: 8vh auto 0; background: #fff; border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,.3); display: flex; flex-direction: column; max-height: 80vh; overflow: hidden;
}
.sscs-so-form { display: flex; align-items: center; gap: 10px; padding: 0 14px; border-bottom: 1px solid #e2dfd8; }
.sscs-so-ico { color: #928e88; flex: none; }
.sscs-so-input {
  flex: 1; min-width: 0; border: 0 !important; box-shadow: none !important; outline: 0; background: transparent !important;
  font-size: 18px; padding: 18px 4px; color: #111;
}
.sscs-so-input::-webkit-search-cancel-button { display: none; }
.sscs-so-close { flex: none; font: 600 12px/1 inherit; padding: 6px 9px; border: 1px solid #e2dfd8; border-radius: 6px; background: #f8f7f4; color: #6b6760; cursor: pointer; }
.sscs-so-body { overflow-y: auto; padding: 6px 8px 12px; overscroll-behavior: contain; }
.sscs-so-h { font: 700 11px/1 inherit; letter-spacing: .14em; text-transform: uppercase; color: #928e88; padding: 14px 8px 6px; }
.sscs-so-chips, .sscs-so-links { display: flex; flex-wrap: wrap; gap: 8px; padding: 2px 8px 6px; }
.sscs-so-chip, .sscs-so-link {
  font: inherit; font-size: 14px; padding: 7px 13px; border-radius: 100px; border: 1px solid #e2dfd8; background: #fff;
  color: #111; cursor: pointer; text-decoration: none;
}
.sscs-so-chip:hover, .sscs-so-link:hover { border-color: #c0190f; color: #c0190f; }
.sscs-so-item { display: flex; align-items: center; gap: 12px; padding: 9px 8px; border-radius: 8px; text-decoration: none; color: #111; }
.sscs-so-item:hover, .sscs-so-item.is-active { background: #fdecea; }
.sscs-so-img { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; background: #f0eeea; flex: none; }
.sscs-so-txt { display: flex; flex-direction: column; min-width: 0; }
.sscs-so-title { font-weight: 600; font-size: 15px; line-height: 1.3; }
.sscs-so-meta { font-size: 13px; color: #6b6760; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.sscs-so-all { display: block; text-align: center; margin: 10px 8px 0; padding: 12px; font-weight: 600; color: #c0190f; text-decoration: none; border-top: 1px solid #e2dfd8; }
.sscs-so-all:hover { text-decoration: underline; }
.sscs-so-empty { padding: 20px 10px 8px; color: #444240; line-height: 1.5; }
.sscs-so-body[aria-busy="true"] { opacity: .65; }

@media (max-width: 600px) {
  .sscs-so-panel { margin: 0; max-width: none; height: 100%; max-height: none; border-radius: 0; }
  .sscs-so-input { font-size: 16px; } /* prevents iOS zoom */
}
@media (prefers-reduced-motion: no-preference) {
  .sscs-so:not([hidden]) .sscs-so-panel { animation: sscs-so-in .16s ease-out; }
  @keyframes sscs-so-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
}

/* Tabs, best match, highlights, loading */
.sscs-so-tabs { display: flex; gap: 6px; padding: 10px 14px 0; border-bottom: 1px solid #e2dfd8; overflow-x: auto; }
.sscs-so-tabs[hidden] { display: none; }
.sscs-so-tab { font: inherit; font-size: 13px; font-weight: 600; padding: 7px 12px; margin-bottom: -1px; border: 0; border-bottom: 2px solid transparent; background: none; color: #6b6760; cursor: pointer; white-space: nowrap; }
.sscs-so-tab:hover { color: #111; }
.sscs-so-tab.is-on { color: #c0190f; border-bottom-color: #c0190f; }
.sscs-so-count { margin-left: 8px; font-weight: 600; color: #b3afa8; letter-spacing: 0; }
.sscs-so-title mark { background: #ffe9a8; color: inherit; padding: 0 1px; border-radius: 2px; }
.sscs-so-best { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 8px 8px 2px; padding: 14px 16px; border: 1.5px solid #c0190f; border-radius: 10px; background: #fff7f6; color: #111; text-decoration: none; }
.sscs-so-best:hover, .sscs-so-best.is-active { background: #fdecea; }
.sscs-so-best-t { display: flex; flex-direction: column; min-width: 0; }
.sscs-so-best-k { font: 700 11px/1 inherit; letter-spacing: .12em; text-transform: uppercase; color: #c0190f; margin-bottom: 5px; }
.sscs-so-best-n { font-weight: 700; font-size: 18px; line-height: 1.25; }
.sscs-so-best-m { font-size: 13px; color: #6b6760; margin-top: 2px; }
.sscs-so-best-go { font-weight: 700; font-size: 14px; color: #c0190f; white-space: nowrap; }
.sscs-so-skel { margin: 10px 8px 0; padding: 12px; color: #928e88; font-size: 14px; border-radius: 8px; background: linear-gradient(90deg, #f8f7f4 25%, #efede8 50%, #f8f7f4 75%); background-size: 200% 100%; animation: sscs-so-shimmer 1.2s infinite linear; }
@keyframes sscs-so-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .sscs-so-skel { animation: none; } }
.sscs-so-dym { font-weight: 700; color: #c0190f; }

/* Results page extras */
.sscs-sx { margin: 0 0 28px; padding: 18px 22px; background: #f8f7f4; border: 1px solid #e2dfd8; border-radius: 8px; }
.sscs-sx h2 { font-size: 1.15rem; margin: 0 0 8px; }
.sscs-sx-list { margin: 0 0 14px; padding-left: 1.1rem; }
.sscs-sx-list span { color: #928e88; font-size: .85em; margin-left: 6px; }
