* { box-sizing: border-box; }
body {
  font-family: system-ui, sans-serif;
  margin: 0;
  color: #222;
  background: #fafafa;
}
main {
  max-width: 40rem;
  margin: 0 auto;
  padding: 1rem;
}
h1 { font-size: 1.4rem; }
header { margin: 0.5rem 0 1rem; }
header a {
  color: #06c;
  text-decoration: none;
  font-weight: bold;
}
input[type="search"] {
  width: 100%;
  font-size: 1.3rem;
  padding: 0.5rem 0.75rem;
  border: 2px solid #bbb;
  border-radius: 6px;
}
input[type="search"]:focus { border-color: #06c; outline: none; }
ul.results { list-style: none; padding: 0; margin: 1rem 0; }
ul.results li a {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.5rem 0.25rem;
  border-bottom: 1px solid #e5e5e5;
  color: inherit;
  text-decoration: none;
}
ul.results li a:hover { background: #eef4fb; }
.plate {
  font-weight: bold;
  font-family: ui-monospace, monospace;
  background: #fff;
  border: 1px solid #999;
  border-radius: 4px;
  padding: 0 0.35rem;
  white-space: nowrap;
}
.plate.hit { border-color: #06c; color: #06c; }
/* many plates wrap into a second row instead of pushing the name out */
.plates {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  max-width: 55%;
}
ul.results li a > span:last-child { flex: 1; min-width: 0; }
.plates-big { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0; }
.plates-big .plate { font-size: 1.6rem; padding: 0.15rem 0.6rem; }
table.facts { border-collapse: collapse; }
table.facts th, table.facts td {
  text-align: left;
  padding: 0.3rem 1rem 0.3rem 0;
  border-bottom: 1px solid #e5e5e5;
}
.muted { color: #777; font-size: 0.85rem; }
.qualifier { color: #999; font-size: 0.85em; }
