.tag-header, .search-main { width: 100%; max-width: 48rem; margin-inline: auto; }
.search-main { padding: 0 1.25rem 2rem; }
#search-form { display: flex; align-items: center; gap: .5rem; }
.search-input { position: relative; min-width: 0; flex: 1; }
#query, #search-filter summary, .search-main button {
  font: inherit;
  font-size: 1rem;
  min-height: 48px;
  padding: .75rem;
  border: 1px solid #69786e;
  border-radius: .5rem;
  background: white;
  color: #202724;
}
#query { width: 100%; padding-inline-end: 3rem; }
.search-main button { cursor: pointer; background: #e6eee8; }
.search-input #clear {
  position: absolute;
  inset-inline-end: .125rem;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  min-height: 44px;
  padding: .5rem;
  border: 0;
  background: transparent;
}
.search-input #clear:hover { background: #e6eee8; }
#query::-webkit-search-cancel-button { -webkit-appearance: none; }
.search-main :is(input, summary, button):focus-visible { outline: 3px solid #253e33; outline-offset: 3px; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
#search-filter { position: relative; flex: none; }
#search-filter summary { display: flex; align-items: center; justify-content: center; cursor: pointer; list-style: none; }
#search-filter summary::-webkit-details-marker { display: none; }
#search-filter[open] summary { background: #e6eee8; }
.field-menu {
  position: absolute;
  z-index: 1;
  inset-inline-start: 0;
  top: calc(100% + .75rem);
  width: 16rem;
  padding: .5rem;
  margin: 0;
  border: 1px solid #d3ddd6;
  border-radius: .75rem;
  background: #fff;
  box-shadow: 0 4px 20px #20272426;
}
.field-menu label { display: flex; align-items: center; gap: .75rem; min-height: 48px; padding: .75rem; cursor: pointer; border-radius: .5rem; }
.field-menu label:hover, .field-menu label:has(:checked) { background: #e6eee8; }
.field-menu input { margin: 0; accent-color: #253e33; }
#search-status { margin-block: 1.5rem 1rem; line-height: 1.6; }
.search-results { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.search-results a {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  min-height: 56px;
  border: 1px solid #d3ddd6;
  border-radius: .75rem;
  background: white;
  color: #253e33;
  text-decoration: none;
  font-size: 1.125rem;
  overflow-wrap: anywhere;
}
.search-results a:hover { background: #e6eee8; text-decoration: underline; }
@media (max-width: 600px) {
  .search-main { padding-bottom: calc(6rem + env(safe-area-inset-bottom)); }
  #search-form {
    position: fixed;
    z-index: 2;
    inset-inline: 0;
    bottom: 0;
    padding: .75rem;
    padding-bottom: calc(.75rem + env(safe-area-inset-bottom));
    background: #faf9f6;
    border-top: 1px solid #d3ddd6;
  }
  .field-menu { top: auto; bottom: calc(100% + .75rem); }
}
