/* The Finding : the search room's own sheet.
   Candlelit and quiet. The controls are the house's controls, not a
   dashboard's: brass on paper, comfortable touch targets, and the same
   focus manners as every other room. Nothing here flickers; the room
   respecteth reduced motion by having no motion to reduce.
   TEMPLE MARK S2: ␖ : search.css */

body.search-room .search-section {
  max-width: var(--body-max);
  margin-inline: auto;
}

body.search-room .search-form {
  margin: 1.4rem 0 0;
}

body.search-room .search-label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--bureau);
  font: 500 0.85rem/1.5 var(--font-ui);
}

body.search-room .search-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: stretch;
}

body.search-room .search-input {
  flex: 1 1 14rem;
  min-height: 44px;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-sm, 3px);
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.5 "EB Garamond", Georgia, serif;
}

body.search-room .search-input::placeholder {
  color: var(--bureau);
  opacity: 0.75;
}

body.search-room .search-button {
  min-height: 44px;
  padding: 0.55rem 1.4rem;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-pill, 999px);
  background: var(--paper);
  color: var(--brass);
  font: 500 0.9rem/1.4 var(--font-ui);
  cursor: pointer;
}

body.search-room .search-button:hover,
body.search-room .search-button:focus-visible {
  background: rgba(212, 175, 55, 0.12);
}

body.search-room .search-note,
body.search-room .search-status {
  margin: 0.6rem 0 0;
  color: var(--bureau);
  font: 400 0.82rem/1.6 var(--font-ui);
}

body.search-room .search-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin-top: 0.9rem;
}

body.search-room .search-filters-label {
  color: var(--bureau);
  font: 500 0.78rem/1.4 var(--font-ui);
}

body.search-room .search-filter {
  min-height: 44px;
  padding: 0.35rem 0.9rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill, 999px);
  background: transparent;
  color: var(--ink);
  font: 500 0.82rem/1.4 var(--font-ui);
  cursor: pointer;
}

body.search-room .search-filter[aria-pressed="true"] {
  border-color: var(--line-dark);
  color: var(--brass);
}

body.search-room .search-filter:hover,
body.search-room .search-filter:focus-visible {
  background: rgba(212, 175, 55, 0.1);
}

body.search-room .search-results {
  list-style: none;
  margin: 1.6rem 0 0;
  padding: 0;
}

body.search-room .search-family {
  margin: 1.6rem 0 0.5rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--line-dark);
}

body.search-room .search-family h3 {
  margin: 0;
  color: var(--brass);
  font: normal 1.05rem/1.4 "EB Garamond", Georgia, serif;
}

body.search-room .search-result {
  margin: 1rem 0 0;
  padding-left: 0.9rem;
  border-left: 1px solid var(--line-dark);
}

body.search-room .search-result-title {
  color: var(--ink);
  font: 500 1rem/1.5 "EB Garamond", Georgia, serif;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

body.search-room .search-result-snippet {
  margin: 0.3rem 0 0;
  color: var(--bureau);
  font: 400 0.92rem/1.65 "EB Garamond", Georgia, serif;
}

body.search-room .search-result-where {
  margin: 0.25rem 0 0;
  color: var(--bureau);
  font: 500 0.72rem/1.4 var(--font-ui);
  letter-spacing: 0.02em;
}

body.search-room .search-empty {
  margin: 1.2rem 0 0;
  color: var(--bureau);
  font: 400 0.95rem/1.65 "EB Garamond", Georgia, serif;
}

/* A finder that a phone may use with one thumb. */
@media (max-width: 30rem) {
  body.search-room .search-button { flex: 1 1 100%; }
  body.search-room .search-result { padding-left: 0.6rem; }
}
