/* Site search page (/search), in the black-and-gold look of legal.css. */
.sr-box { position: relative; display: flex; align-items: center; gap: 12px; margin: 8px 0 14px; padding: 4px 14px 4px 44px; border: 1px solid #2C2924; border-radius: 10px; background: #111113; box-shadow: inset 0 1px 0 rgba(201, 165, 90, .22); }
.sr-box::before { content: ""; position: absolute; left: 16px; top: 50%; width: 12px; height: 12px; margin-top: -9px; border: 2px solid #C9A55A; border-radius: 50%; }
.sr-box::after { content: ""; position: absolute; left: 28px; top: 50%; width: 7px; height: 2px; margin-top: 4px; background: #C9A55A; transform: rotate(45deg); transform-origin: left center; }
.sr-box:focus-within { border-color: rgba(201, 165, 90, .7); }
.sr-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#sr-q { flex: 1; min-width: 0; padding: 12px 0; border: 0; outline: 0; background: transparent; color: #F6F1E7; font: inherit; font-size: 17px; }
#sr-q::placeholder { color: #6C665B; }
#sr-q::-webkit-search-cancel-button { filter: sepia(1) saturate(2) hue-rotate(5deg); }
.sr-link { padding: 0; border: 0; background: none; color: #E6CB8B; font: inherit; font-size: 13px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(201, 165, 90, .5); }

.sr-sections { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin: 0 0 12px; scrollbar-width: thin; }
.sr-chip { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid #2C2924; border-radius: 999px; background: transparent; color: #D4CDBF; font: inherit; font-size: 13px; cursor: pointer; }
.sr-chip span { font-size: 11.5px; color: #9C9483; font-variant-numeric: tabular-nums; }
.sr-chip:hover { border-color: rgba(201, 165, 90, .55); }
.sr-chip[aria-pressed="true"] { border-color: rgba(201, 165, 90, .7); background: rgba(201, 165, 90, .12); color: #E6CB8B; }
.sr-chip[aria-pressed="true"] span { color: #E6CB8B; }

.sr-filters { display: grid; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); gap: 10px; margin: 0 0 8px; }
.sr-filters label { display: flex; flex-direction: column; gap: 4px; font-size: 10.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #9C9483; }
.sr-filters select, .sr-filters input { width: 100%; box-sizing: border-box; padding: 8px 10px; border: 1px solid #2C2924; border-radius: 6px; background: #111113; color: #F6F1E7; font: inherit; font-size: 14px; letter-spacing: 0; text-transform: none; color-scheme: dark; }
.sr-filters select:focus, .sr-filters input:focus { outline: 2px solid rgba(201, 165, 90, .6); outline-offset: 1px; }
.sr-filters select option:disabled { color: #6C665B; }
.sr-custom { display: contents; }
.sr-custom[hidden] { display: none; }

.sr-status { margin: 14px 0 10px; font-size: 13px; color: #9C9483; min-height: 1.2em; }
.sr-item { display: block; margin: 0 0 10px; padding: 14px 18px; border: 1px solid #2C2924; border-radius: 8px; background: #111113; text-decoration: none; color: #D4CDBF; transition: border-color .15s ease, background .15s ease; }
.sr-item:hover, .sr-item:focus-visible { border-color: rgba(201, 165, 90, .6); background: #141316; color: #D4CDBF; }
.sr-item h2 { margin: 6px 0 4px; font-size: 18px; line-height: 1.35; }
.sr-top, .sr-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0; font-size: 12px; color: #9C9483; }
.sr-sec { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #C9A55A; }
.sr-cat { font-size: 11px; color: #D4CDBF; }
.sr-imp { font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 999px; border: 1px solid #2C2924; }
.sr-critical { color: #E26C5F; border-color: rgba(226, 108, 95, .45); }
.sr-high { color: #D8A64A; border-color: rgba(216, 166, 74, .45); }
.sr-when { margin-left: auto; }
.sr-sum { margin: 4px 0 8px; font-size: 14px; line-height: 1.55; }
.sr-sym { padding: 1px 7px; border: 1px solid #2C2924; border-radius: 4px; font-size: 11px; font-weight: 600; color: #D4CDBF; }
.sr-src { margin-left: auto; }
.sr-item mark { background: rgba(201, 165, 90, .28); color: #F6F1E7; border-radius: 2px; padding: 0 1px; }
.sr-empty { padding: 24px 18px; border: 1px dashed #2C2924; border-radius: 8px; text-align: center; }
.sr-empty p { margin: 4px 0; }
.sr-more { font-size: 13px; color: #9C9483; text-align: center; }
nav.top a.nav-search { color: #E6CB8B; }
@media (max-width: 600px) {
  .sr-filters { grid-template-columns: 1fr 1fr; }
  .sr-when, .sr-src { margin-left: 0; }
  .sr-item { padding: 12px 14px; }
}
@media (prefers-reduced-motion: reduce) { .sr-item { transition: none; } }
