.local-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .5rem;
  align-items: center;
}

.local-search-form label {
  grid-column: 1 / -1;
}

.local-search-form input,
.local-search-form button {
  min-width: 0;
  padding: .5rem .75rem;
  border: 1px solid var(--color-rule, currentColor);
}

#local-search-results > li {
  padding-block: .75rem;
  border-bottom: 1px solid var(--color-rule, currentColor);
  overflow-wrap: anywhere;
}

#local-search-results a {
  font-weight: 600;
}

#local-search-results p {
  font-size: .875rem;
}

@media (max-width: 640px) {
  main {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  main :is(pre, code) {
    white-space: pre-wrap !important;
    overflow-wrap: anywhere;
  }

  main img {
    min-width: 0 !important;
    max-width: 100%;
    height: auto;
  }

  main :is(.overflow-x-auto, figure) {
    min-width: 0;
    max-width: 100%;
  }

  main table[role="table"] {
    display: block;
    width: 100%;
    min-width: 0 !important;
    max-width: 100%;
  }

  main table[role="table"] > thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  main table[role="table"] > :is(tbody, tfoot),
  main table[role="table"] > :is(tbody, tfoot) > tr {
    display: block;
  }

  main table[role="table"] > :is(tbody, tfoot) > tr + tr {
    border-top: 2px solid var(--color-rule, currentColor);
  }

  main table[role="table"] > :is(tbody, tfoot) > tr > :is(th, td) {
    display: block;
    position: static !important;
    width: auto !important;
    max-width: none !important;
    white-space: normal !important;
    padding-inline: .75rem;
  }

  main table[role="table"] td[data-col]::before {
    content: attr(data-col);
    display: block;
    font-weight: 600;
    font-size: .75rem;
    margin-bottom: .2rem;
  }
}
